@pallasoft/ps-mobile-components 0.0.0-stage → 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 +22 -2
- package/dist/components/ps-action-menu/index.d.ts +2 -0
- package/dist/components/ps-action-menu/index.js +2 -0
- package/dist/components/ps-action-menu/ps-action-menu-entries.d.ts +12 -0
- package/dist/components/ps-action-menu/ps-action-menu-entries.js +31 -0
- package/dist/components/ps-action-menu/ps-action-menu-labelled.d.ts +7 -0
- package/dist/components/ps-action-menu/ps-action-menu-labelled.js +3 -0
- package/dist/components/ps-action-menu/ps-action-menu-props.d.ts +16 -0
- package/dist/components/ps-action-menu/ps-action-menu-props.js +1 -0
- package/dist/components/ps-action-menu/ps-action-menu-trigger.d.ts +8 -0
- package/dist/components/ps-action-menu/ps-action-menu-trigger.js +7 -0
- package/dist/components/ps-action-menu/ps-action-menu.android.d.ts +2 -0
- package/dist/components/ps-action-menu/ps-action-menu.android.js +38 -0
- package/dist/components/ps-action-menu/ps-action-menu.d.ts +2 -0
- package/dist/components/ps-action-menu/ps-action-menu.ios.d.ts +2 -0
- package/dist/components/ps-action-menu/ps-action-menu.ios.js +6 -0
- package/dist/components/ps-action-menu/ps-action-menu.js +17 -0
- package/dist/components/ps-action-sheet/index.d.ts +2 -0
- package/dist/components/ps-action-sheet/index.js +2 -0
- package/dist/components/ps-action-sheet/ps-action-sheet-props.d.ts +8 -0
- package/dist/components/ps-action-sheet/ps-action-sheet-props.js +1 -0
- package/dist/components/ps-action-sheet/ps-action-sheet.d.ts +2 -0
- package/dist/components/ps-action-sheet/ps-action-sheet.js +54 -0
- package/dist/components/ps-amount-field/index.d.ts +2 -0
- package/dist/components/ps-amount-field/index.js +2 -0
- package/dist/components/ps-amount-field/ps-amount-field-props.d.ts +11 -0
- package/dist/components/ps-amount-field/ps-amount-field-props.js +1 -0
- package/dist/components/ps-amount-field/ps-amount-field.d.ts +2 -0
- package/dist/components/ps-amount-field/ps-amount-field.js +27 -0
- package/dist/components/ps-amount-text/index.d.ts +2 -0
- package/dist/components/ps-amount-text/index.js +2 -0
- package/dist/components/ps-amount-text/ps-amount-text-props.d.ts +5 -0
- package/dist/components/ps-amount-text/ps-amount-text-props.js +1 -0
- package/dist/components/ps-amount-text/ps-amount-text.d.ts +2 -0
- package/dist/components/ps-amount-text/ps-amount-text.js +8 -0
- package/dist/components/ps-avatar/index.d.ts +2 -0
- package/dist/components/ps-avatar/index.js +2 -0
- package/dist/components/ps-avatar/ps-avatar-props.d.ts +6 -0
- package/dist/components/ps-avatar/ps-avatar-props.js +1 -0
- package/dist/components/ps-avatar/ps-avatar.d.ts +2 -0
- package/dist/components/ps-avatar/ps-avatar.js +29 -0
- package/dist/components/ps-badge/index.d.ts +2 -0
- package/dist/components/ps-badge/index.js +2 -0
- package/dist/components/ps-badge/ps-badge-props.d.ts +7 -0
- package/dist/components/ps-badge/ps-badge-props.js +1 -0
- package/dist/components/ps-badge/ps-badge.d.ts +2 -0
- package/dist/components/ps-badge/ps-badge.js +30 -0
- package/dist/components/ps-button/index.d.ts +2 -0
- package/dist/components/ps-button/index.js +2 -0
- package/dist/components/ps-button/ps-button-props.d.ts +15 -0
- package/dist/components/ps-button/ps-button-props.js +1 -0
- package/dist/components/ps-button/ps-button.d.ts +2 -0
- package/dist/components/ps-button/ps-button.js +37 -0
- package/dist/components/ps-card/index.d.ts +2 -0
- package/dist/components/ps-card/index.js +2 -0
- package/dist/components/ps-card/ps-card-props.d.ts +11 -0
- package/dist/components/ps-card/ps-card-props.js +1 -0
- package/dist/components/ps-card/ps-card.d.ts +2 -0
- package/dist/components/ps-card/ps-card.js +27 -0
- package/dist/components/ps-cartesian-chart/index.d.ts +6 -0
- package/dist/components/ps-cartesian-chart/index.js +6 -0
- package/dist/components/ps-cartesian-chart/ps-area-chart.d.ts +2 -0
- package/dist/components/ps-cartesian-chart/ps-area-chart.js +4 -0
- package/dist/components/ps-cartesian-chart/ps-bar-chart.d.ts +2 -0
- package/dist/components/ps-cartesian-chart/ps-bar-chart.js +4 -0
- package/dist/components/ps-cartesian-chart/ps-cartesian-chart-props.d.ts +18 -0
- package/dist/components/ps-cartesian-chart/ps-cartesian-chart-props.js +1 -0
- package/dist/components/ps-cartesian-chart/ps-cartesian-chart.d.ts +2 -0
- package/dist/components/ps-cartesian-chart/ps-cartesian-chart.js +70 -0
- package/dist/components/ps-cartesian-chart/ps-line-chart.d.ts +2 -0
- package/dist/components/ps-cartesian-chart/ps-line-chart.js +4 -0
- package/dist/components/ps-cartesian-chart/ps-stacked-bar-chart.d.ts +2 -0
- package/dist/components/ps-cartesian-chart/ps-stacked-bar-chart.js +4 -0
- package/dist/components/ps-chart-bar/index.d.ts +2 -0
- package/dist/components/ps-chart-bar/index.js +2 -0
- package/dist/components/ps-chart-bar/ps-chart-bar-props.d.ts +6 -0
- package/dist/components/ps-chart-bar/ps-chart-bar-props.js +1 -0
- package/dist/components/ps-chart-bar/ps-chart-bar.d.ts +2 -0
- package/dist/components/ps-chart-bar/ps-chart-bar.js +12 -0
- package/dist/components/ps-chart-delta-badge/index.d.ts +2 -0
- package/dist/components/ps-chart-delta-badge/index.js +2 -0
- package/dist/components/ps-chart-delta-badge/ps-chart-delta-badge-props.d.ts +6 -0
- package/dist/components/ps-chart-delta-badge/ps-chart-delta-badge-props.js +1 -0
- package/dist/components/ps-chart-delta-badge/ps-chart-delta-badge.d.ts +2 -0
- package/dist/components/ps-chart-delta-badge/ps-chart-delta-badge.js +22 -0
- package/dist/components/ps-chart-empty-state/index.d.ts +2 -0
- package/dist/components/ps-chart-empty-state/index.js +2 -0
- package/dist/components/ps-chart-empty-state/ps-chart-empty-state-props.d.ts +4 -0
- package/dist/components/ps-chart-empty-state/ps-chart-empty-state-props.js +1 -0
- package/dist/components/ps-chart-empty-state/ps-chart-empty-state.d.ts +2 -0
- package/dist/components/ps-chart-empty-state/ps-chart-empty-state.js +5 -0
- package/dist/components/ps-chart-frame/index.d.ts +2 -0
- package/dist/components/ps-chart-frame/index.js +2 -0
- package/dist/components/ps-chart-frame/ps-chart-frame-props.d.ts +9 -0
- package/dist/components/ps-chart-frame/ps-chart-frame-props.js +1 -0
- package/dist/components/ps-chart-frame/ps-chart-frame.d.ts +2 -0
- package/dist/components/ps-chart-frame/ps-chart-frame.js +6 -0
- package/dist/components/ps-chart-legend/index.d.ts +2 -0
- package/dist/components/ps-chart-legend/index.js +2 -0
- package/dist/components/ps-chart-legend/ps-chart-legend-props.d.ts +6 -0
- package/dist/components/ps-chart-legend/ps-chart-legend-props.js +1 -0
- package/dist/components/ps-chart-legend/ps-chart-legend.d.ts +2 -0
- package/dist/components/ps-chart-legend/ps-chart-legend.js +17 -0
- package/dist/components/ps-chart-line/index.d.ts +2 -0
- package/dist/components/ps-chart-line/index.js +2 -0
- package/dist/components/ps-chart-line/ps-chart-line-props.d.ts +9 -0
- package/dist/components/ps-chart-line/ps-chart-line-props.js +1 -0
- package/dist/components/ps-chart-line/ps-chart-line.d.ts +2 -0
- package/dist/components/ps-chart-line/ps-chart-line.js +14 -0
- package/dist/components/ps-chart-readout/index.d.ts +2 -0
- package/dist/components/ps-chart-readout/index.js +2 -0
- package/dist/components/ps-chart-readout/ps-chart-readout-props.d.ts +5 -0
- package/dist/components/ps-chart-readout/ps-chart-readout-props.js +1 -0
- package/dist/components/ps-chart-readout/ps-chart-readout.d.ts +2 -0
- package/dist/components/ps-chart-readout/ps-chart-readout.js +12 -0
- package/dist/components/ps-chart-skeleton/index.d.ts +2 -0
- package/dist/components/ps-chart-skeleton/index.js +2 -0
- package/dist/components/ps-chart-skeleton/ps-chart-skeleton-props.d.ts +6 -0
- package/dist/components/ps-chart-skeleton/ps-chart-skeleton-props.js +1 -0
- package/dist/components/ps-chart-skeleton/ps-chart-skeleton.d.ts +2 -0
- package/dist/components/ps-chart-skeleton/ps-chart-skeleton.js +6 -0
- package/dist/components/ps-checkbox/index.d.ts +2 -0
- package/dist/components/ps-checkbox/index.js +2 -0
- package/dist/components/ps-checkbox/ps-checkbox-props.d.ts +7 -0
- package/dist/components/ps-checkbox/ps-checkbox-props.js +1 -0
- package/dist/components/ps-checkbox/ps-checkbox.d.ts +2 -0
- package/dist/components/ps-checkbox/ps-checkbox.js +26 -0
- package/dist/components/ps-chip/index.d.ts +2 -0
- package/dist/components/ps-chip/index.js +2 -0
- package/dist/components/ps-chip/ps-chip-props.d.ts +7 -0
- package/dist/components/ps-chip/ps-chip-props.js +1 -0
- package/dist/components/ps-chip/ps-chip.d.ts +2 -0
- package/dist/components/ps-chip/ps-chip.js +27 -0
- package/dist/components/ps-color-swatches/index.d.ts +2 -0
- package/dist/components/ps-color-swatches/index.js +2 -0
- package/dist/components/ps-color-swatches/ps-color-swatches-props.d.ts +3 -0
- package/dist/components/ps-color-swatches/ps-color-swatches-props.js +1 -0
- package/dist/components/ps-color-swatches/ps-color-swatches.d.ts +2 -0
- package/dist/components/ps-color-swatches/ps-color-swatches.js +16 -0
- package/dist/components/ps-date-field/index.d.ts +2 -0
- package/dist/components/ps-date-field/index.js +2 -0
- package/dist/components/ps-date-field/ps-date-control-props.d.ts +6 -0
- package/dist/components/ps-date-field/ps-date-control-props.js +1 -0
- package/dist/components/ps-date-field/ps-date-control.d.ts +2 -0
- package/dist/components/ps-date-field/ps-date-control.js +19 -0
- package/dist/components/ps-date-field/ps-date-field-props.d.ts +14 -0
- package/dist/components/ps-date-field/ps-date-field-props.js +1 -0
- package/dist/components/ps-date-field/ps-date-field.android.d.ts +2 -0
- package/dist/components/ps-date-field/ps-date-field.android.js +21 -0
- package/dist/components/ps-date-field/ps-date-field.d.ts +2 -0
- package/dist/components/ps-date-field/ps-date-field.ios.d.ts +2 -0
- package/dist/components/ps-date-field/ps-date-field.ios.js +38 -0
- package/dist/components/ps-date-field/ps-date-field.js +20 -0
- package/dist/components/ps-date-range-field/index.d.ts +2 -0
- package/dist/components/ps-date-range-field/index.js +2 -0
- package/dist/components/ps-date-range-field/ps-date-range-field-props.d.ts +16 -0
- package/dist/components/ps-date-range-field/ps-date-range-field-props.js +1 -0
- package/dist/components/ps-date-range-field/ps-date-range-field.d.ts +2 -0
- package/dist/components/ps-date-range-field/ps-date-range-field.js +12 -0
- package/dist/components/ps-document-message/index.d.ts +2 -0
- package/dist/components/ps-document-message/index.js +2 -0
- package/dist/components/ps-document-message/ps-document-message-props.d.ts +9 -0
- package/dist/components/ps-document-message/ps-document-message-props.js +1 -0
- package/dist/components/ps-document-message/ps-document-message.d.ts +2 -0
- package/dist/components/ps-document-message/ps-document-message.js +17 -0
- package/dist/components/ps-document-page/index.d.ts +2 -0
- package/dist/components/ps-document-page/index.js +2 -0
- package/dist/components/ps-document-page/ps-document-page-props.d.ts +8 -0
- package/dist/components/ps-document-page/ps-document-page-props.js +1 -0
- package/dist/components/ps-document-page/ps-document-page.d.ts +2 -0
- package/dist/components/ps-document-page/ps-document-page.js +22 -0
- package/dist/components/ps-document-preview/index.d.ts +2 -0
- package/dist/components/ps-document-preview/index.js +2 -0
- package/dist/components/ps-document-preview/ps-document-preview-props.d.ts +10 -0
- package/dist/components/ps-document-preview/ps-document-preview-props.js +1 -0
- package/dist/components/ps-document-preview/ps-document-preview.d.ts +2 -0
- package/dist/components/ps-document-preview/ps-document-preview.js +37 -0
- package/dist/components/ps-document-viewer/index.d.ts +2 -0
- package/dist/components/ps-document-viewer/index.js +2 -0
- package/dist/components/ps-document-viewer/ps-document-viewer-props.d.ts +9 -0
- package/dist/components/ps-document-viewer/ps-document-viewer-props.js +1 -0
- package/dist/components/ps-document-viewer/ps-document-viewer.d.ts +2 -0
- package/dist/components/ps-document-viewer/ps-document-viewer.js +39 -0
- package/dist/components/ps-document-zoom-image/index.d.ts +2 -0
- package/dist/components/ps-document-zoom-image/index.js +2 -0
- package/dist/components/ps-document-zoom-image/ps-document-zoom-image-props.d.ts +8 -0
- package/dist/components/ps-document-zoom-image/ps-document-zoom-image-props.js +1 -0
- package/dist/components/ps-document-zoom-image/ps-document-zoom-image.d.ts +2 -0
- package/dist/components/ps-document-zoom-image/ps-document-zoom-image.js +104 -0
- package/dist/components/ps-donut-chart/index.d.ts +2 -0
- package/dist/components/ps-donut-chart/index.js +2 -0
- package/dist/components/ps-donut-chart/ps-donut-chart-props.d.ts +10 -0
- package/dist/components/ps-donut-chart/ps-donut-chart-props.js +1 -0
- package/dist/components/ps-donut-chart/ps-donut-chart.d.ts +2 -0
- package/dist/components/ps-donut-chart/ps-donut-chart.js +46 -0
- package/dist/components/ps-donut-slice/index.d.ts +2 -0
- package/dist/components/ps-donut-slice/index.js +2 -0
- package/dist/components/ps-donut-slice/ps-donut-slice-props.d.ts +10 -0
- package/dist/components/ps-donut-slice/ps-donut-slice-props.js +1 -0
- package/dist/components/ps-donut-slice/ps-donut-slice.d.ts +2 -0
- package/dist/components/ps-donut-slice/ps-donut-slice.js +16 -0
- package/dist/components/ps-empty-state/index.d.ts +2 -0
- package/dist/components/ps-empty-state/index.js +2 -0
- package/dist/components/ps-empty-state/ps-empty-state-props.d.ts +14 -0
- package/dist/components/ps-empty-state/ps-empty-state-props.js +1 -0
- package/dist/components/ps-empty-state/ps-empty-state.d.ts +2 -0
- package/dist/components/ps-empty-state/ps-empty-state.js +15 -0
- package/dist/components/ps-field-frame/index.d.ts +2 -0
- package/dist/components/ps-field-frame/index.js +2 -0
- package/dist/components/ps-field-frame/ps-field-frame-props.d.ts +7 -0
- package/dist/components/ps-field-frame/ps-field-frame-props.js +1 -0
- package/dist/components/ps-field-frame/ps-field-frame.d.ts +2 -0
- package/dist/components/ps-field-frame/ps-field-frame.js +8 -0
- package/dist/components/ps-field-skeleton/index.d.ts +2 -0
- package/dist/components/ps-field-skeleton/index.js +2 -0
- package/dist/components/ps-field-skeleton/ps-field-skeleton-props.d.ts +3 -0
- package/dist/components/ps-field-skeleton/ps-field-skeleton-props.js +1 -0
- package/dist/components/ps-field-skeleton/ps-field-skeleton.d.ts +2 -0
- package/dist/components/ps-field-skeleton/ps-field-skeleton.js +6 -0
- package/dist/components/ps-filter-bar/index.d.ts +2 -0
- package/dist/components/ps-filter-bar/index.js +2 -0
- package/dist/components/ps-filter-bar/ps-filter-bar-props.d.ts +13 -0
- package/dist/components/ps-filter-bar/ps-filter-bar-props.js +1 -0
- package/dist/components/ps-filter-bar/ps-filter-bar.d.ts +2 -0
- package/dist/components/ps-filter-bar/ps-filter-bar.js +14 -0
- package/dist/components/ps-filter-bar/ps-filter-group-chip.d.ts +2 -0
- package/dist/components/ps-filter-bar/ps-filter-group-chip.js +7 -0
- package/dist/components/ps-form-sheet/index.d.ts +2 -0
- package/dist/components/ps-form-sheet/index.js +2 -0
- package/dist/components/ps-form-sheet/ps-form-sheet-props.d.ts +18 -0
- package/dist/components/ps-form-sheet/ps-form-sheet-props.js +1 -0
- package/dist/components/ps-form-sheet/ps-form-sheet.d.ts +2 -0
- package/dist/components/ps-form-sheet/ps-form-sheet.js +11 -0
- package/dist/components/ps-host/index.d.ts +2 -0
- package/dist/components/ps-host/index.js +2 -0
- package/dist/components/ps-host/ps-host-props.d.ts +11 -0
- package/dist/components/ps-host/ps-host-props.js +1 -0
- package/dist/components/ps-host/ps-host.android.d.ts +2 -0
- package/dist/components/ps-host/ps-host.android.js +8 -0
- package/dist/components/ps-host/ps-host.d.ts +2 -0
- package/dist/components/ps-host/ps-host.ios.d.ts +2 -0
- package/dist/components/ps-host/ps-host.ios.js +8 -0
- package/dist/components/ps-host/ps-host.js +3 -0
- package/dist/components/ps-host-scope/index.d.ts +1 -0
- package/dist/components/ps-host-scope/index.js +1 -0
- package/dist/components/ps-host-scope/ps-host-scope.d.ts +2 -0
- package/dist/components/ps-host-scope/ps-host-scope.js +8 -0
- package/dist/components/ps-icon/index.d.ts +2 -0
- package/dist/components/ps-icon/index.js +2 -0
- package/dist/components/ps-icon/ps-icon-element.d.ts +5 -0
- package/dist/components/ps-icon/ps-icon-element.js +18 -0
- package/dist/components/ps-icon/ps-icon-props.d.ts +7 -0
- package/dist/components/ps-icon/ps-icon-props.js +1 -0
- package/dist/components/ps-icon/ps-icon.d.ts +2 -0
- package/dist/components/ps-icon/ps-icon.js +16 -0
- package/dist/components/ps-icon-button/index.d.ts +2 -0
- package/dist/components/ps-icon-button/index.js +2 -0
- package/dist/components/ps-icon-button/ps-icon-button-props.d.ts +13 -0
- package/dist/components/ps-icon-button/ps-icon-button-props.js +1 -0
- package/dist/components/ps-icon-button/ps-icon-button.d.ts +2 -0
- package/dist/components/ps-icon-button/ps-icon-button.js +42 -0
- package/dist/components/ps-icon-menu/index.d.ts +2 -0
- package/dist/components/ps-icon-menu/index.js +2 -0
- package/dist/components/ps-icon-menu/ps-icon-menu-props.d.ts +6 -0
- package/dist/components/ps-icon-menu/ps-icon-menu-props.js +1 -0
- package/dist/components/ps-icon-menu/ps-icon-menu.d.ts +2 -0
- package/dist/components/ps-icon-menu/ps-icon-menu.js +9 -0
- package/dist/components/ps-kpi-card/index.d.ts +2 -0
- package/dist/components/ps-kpi-card/index.js +2 -0
- package/dist/components/ps-kpi-card/ps-kpi-card-props.d.ts +9 -0
- package/dist/components/ps-kpi-card/ps-kpi-card-props.js +1 -0
- package/dist/components/ps-kpi-card/ps-kpi-card.d.ts +2 -0
- package/dist/components/ps-kpi-card/ps-kpi-card.js +12 -0
- package/dist/components/ps-list/index.d.ts +10 -0
- package/dist/components/ps-list/index.js +10 -0
- package/dist/components/ps-list/ps-list-action-row.d.ts +2 -0
- package/dist/components/ps-list/ps-list-action-row.js +24 -0
- package/dist/components/ps-list/ps-list-content.d.ts +2 -0
- package/dist/components/ps-list/ps-list-content.js +4 -0
- package/dist/components/ps-list/ps-list-context-menu.d.ts +8 -0
- package/dist/components/ps-list/ps-list-context-menu.js +14 -0
- package/dist/components/ps-list/ps-list-person-row-props.d.ts +7 -0
- package/dist/components/ps-list/ps-list-person-row-props.js +1 -0
- package/dist/components/ps-list/ps-list-person-row.d.ts +2 -0
- package/dist/components/ps-list/ps-list-person-row.js +21 -0
- package/dist/components/ps-list/ps-list-props.d.ts +72 -0
- package/dist/components/ps-list/ps-list-props.js +1 -0
- package/dist/components/ps-list/ps-list-row-body.d.ts +6 -0
- package/dist/components/ps-list/ps-list-row-body.js +48 -0
- package/dist/components/ps-list/ps-list-row-select-mark.d.ts +4 -0
- package/dist/components/ps-list/ps-list-row-select-mark.js +20 -0
- package/dist/components/ps-list/ps-list-row-skeleton.d.ts +3 -0
- package/dist/components/ps-list/ps-list-row-skeleton.js +33 -0
- package/dist/components/ps-list/ps-list-row.d.ts +2 -0
- package/dist/components/ps-list/ps-list-row.js +15 -0
- package/dist/components/ps-list/ps-list-section.d.ts +2 -0
- package/dist/components/ps-list/ps-list-section.js +16 -0
- package/dist/components/ps-list/ps-list-select-row-props.d.ts +12 -0
- package/dist/components/ps-list/ps-list-select-row-props.js +1 -0
- package/dist/components/ps-list/ps-list-select-row.d.ts +2 -0
- package/dist/components/ps-list/ps-list-select-row.js +27 -0
- package/dist/components/ps-list/ps-list-swipe-layer.d.ts +10 -0
- package/dist/components/ps-list/ps-list-swipe-layer.js +36 -0
- package/dist/components/ps-list/ps-list-swipe-row-props.d.ts +7 -0
- package/dist/components/ps-list/ps-list-swipe-row-props.js +1 -0
- package/dist/components/ps-list/ps-list-swipe-row.d.ts +2 -0
- package/dist/components/ps-list/ps-list-swipe-row.js +57 -0
- package/dist/components/ps-list/ps-list.d.ts +2 -0
- package/dist/components/ps-list/ps-list.js +6 -0
- package/dist/components/ps-mobile-theme-provider/index.d.ts +2 -0
- package/dist/components/ps-mobile-theme-provider/index.js +2 -0
- package/dist/components/ps-mobile-theme-provider/ps-mobile-theme-provider-props.d.ts +13 -0
- package/dist/components/ps-mobile-theme-provider/ps-mobile-theme-provider-props.js +1 -0
- package/dist/components/ps-mobile-theme-provider/ps-mobile-theme-provider.d.ts +2 -0
- package/dist/components/ps-mobile-theme-provider/ps-mobile-theme-provider.js +32 -0
- package/dist/components/ps-native-menu/index.d.ts +2 -0
- package/dist/components/ps-native-menu/index.js +2 -0
- package/dist/components/ps-native-menu/ps-native-menu-props.d.ts +14 -0
- package/dist/components/ps-native-menu/ps-native-menu-props.js +1 -0
- package/dist/components/ps-native-menu/ps-native-menu-row.d.ts +6 -0
- package/dist/components/ps-native-menu/ps-native-menu-row.js +22 -0
- package/dist/components/ps-native-menu/ps-native-menu.android.d.ts +2 -0
- package/dist/components/ps-native-menu/ps-native-menu.android.js +29 -0
- package/dist/components/ps-native-menu/ps-native-menu.d.ts +2 -0
- package/dist/components/ps-native-menu/ps-native-menu.ios.d.ts +2 -0
- package/dist/components/ps-native-menu/ps-native-menu.ios.js +12 -0
- package/dist/components/ps-native-menu/ps-native-menu.js +18 -0
- package/dist/components/ps-native-menu-overlay/index.d.ts +2 -0
- package/dist/components/ps-native-menu-overlay/index.js +2 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay-props.d.ts +6 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay-props.js +1 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay.d.ts +2 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay.ios.d.ts +2 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay.ios.js +19 -0
- package/dist/components/ps-native-menu-overlay/ps-native-menu-overlay.js +1 -0
- package/dist/components/ps-page-backdrop/index.d.ts +1 -0
- package/dist/components/ps-page-backdrop/index.js +1 -0
- package/dist/components/ps-page-backdrop/ps-page-backdrop.d.ts +1 -0
- package/dist/components/ps-page-backdrop/ps-page-backdrop.js +34 -0
- package/dist/components/ps-page-header/index.d.ts +2 -0
- package/dist/components/ps-page-header/index.js +2 -0
- package/dist/components/ps-page-header/ps-page-header-props.d.ts +10 -0
- package/dist/components/ps-page-header/ps-page-header-props.js +1 -0
- package/dist/components/ps-page-header/ps-page-header.d.ts +2 -0
- package/dist/components/ps-page-header/ps-page-header.js +36 -0
- package/dist/components/ps-pallasoft-sign-in-button/index.d.ts +3 -0
- package/dist/components/ps-pallasoft-sign-in-button/index.js +3 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-mark.d.ts +4 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-mark.js +4 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-button-props.d.ts +6 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-button-props.js +1 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-button.d.ts +2 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-button.js +26 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-content.d.ts +6 -0
- package/dist/components/ps-pallasoft-sign-in-button/ps-pallasoft-sign-in-content.js +6 -0
- package/dist/components/ps-screen/index.d.ts +2 -0
- package/dist/components/ps-screen/index.js +2 -0
- package/dist/components/ps-screen/ps-screen-props.d.ts +10 -0
- package/dist/components/ps-screen/ps-screen-props.js +1 -0
- package/dist/components/ps-screen/ps-screen.d.ts +2 -0
- package/dist/components/ps-screen/ps-screen.js +19 -0
- package/dist/components/ps-search-field/index.d.ts +2 -0
- package/dist/components/ps-search-field/index.js +2 -0
- package/dist/components/ps-search-field/ps-search-field-props.d.ts +7 -0
- package/dist/components/ps-search-field/ps-search-field-props.js +1 -0
- package/dist/components/ps-search-field/ps-search-field.d.ts +2 -0
- package/dist/components/ps-search-field/ps-search-field.js +25 -0
- package/dist/components/ps-segmented-control/index.d.ts +2 -0
- package/dist/components/ps-segmented-control/index.js +2 -0
- package/dist/components/ps-segmented-control/ps-segmented-control-props.d.ts +9 -0
- package/dist/components/ps-segmented-control/ps-segmented-control-props.js +1 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.android.d.ts +2 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.android.js +27 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.d.ts +2 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.ios.d.ts +2 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.ios.js +18 -0
- package/dist/components/ps-segmented-control/ps-segmented-control.js +55 -0
- package/dist/components/ps-select/index.d.ts +2 -0
- package/dist/components/ps-select/index.js +2 -0
- package/dist/components/ps-select/ps-select-control-props.d.ts +9 -0
- package/dist/components/ps-select/ps-select-control-props.js +1 -0
- package/dist/components/ps-select/ps-select-control.d.ts +2 -0
- package/dist/components/ps-select/ps-select-control.js +21 -0
- package/dist/components/ps-select/ps-select-props.d.ts +18 -0
- package/dist/components/ps-select/ps-select-props.js +1 -0
- package/dist/components/ps-select/ps-select-trigger.d.ts +8 -0
- package/dist/components/ps-select/ps-select-trigger.js +3 -0
- package/dist/components/ps-select/ps-select.d.ts +2 -0
- package/dist/components/ps-select/ps-select.js +20 -0
- package/dist/components/ps-sheet/index.d.ts +2 -0
- package/dist/components/ps-sheet/index.js +2 -0
- package/dist/components/ps-sheet/ps-sheet-props.d.ts +15 -0
- package/dist/components/ps-sheet/ps-sheet-props.js +1 -0
- package/dist/components/ps-sheet/ps-sheet.d.ts +2 -0
- package/dist/components/ps-sheet/ps-sheet.js +14 -0
- package/dist/components/ps-sheet-content/index.d.ts +2 -0
- package/dist/components/ps-sheet-content/index.js +2 -0
- package/dist/components/ps-sheet-content/ps-sheet-content-props.d.ts +8 -0
- package/dist/components/ps-sheet-content/ps-sheet-content-props.js +1 -0
- package/dist/components/ps-sheet-content/ps-sheet-content.d.ts +2 -0
- package/dist/components/ps-sheet-content/ps-sheet-content.js +40 -0
- package/dist/components/ps-sheet-header/index.d.ts +2 -0
- package/dist/components/ps-sheet-header/index.js +2 -0
- package/dist/components/ps-sheet-header/ps-sheet-header-props.d.ts +9 -0
- package/dist/components/ps-sheet-header/ps-sheet-header-props.js +1 -0
- package/dist/components/ps-sheet-header/ps-sheet-header.d.ts +2 -0
- package/dist/components/ps-sheet-header/ps-sheet-header.js +32 -0
- package/dist/components/ps-sheet-presenter/index.d.ts +2 -0
- package/dist/components/ps-sheet-presenter/index.js +2 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter-props.d.ts +7 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter-props.js +1 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.android.d.ts +2 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.android.js +17 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.d.ts +2 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.ios.d.ts +2 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.ios.js +28 -0
- package/dist/components/ps-sheet-presenter/ps-sheet-presenter.js +17 -0
- package/dist/components/ps-skeleton/index.d.ts +3 -0
- package/dist/components/ps-skeleton/index.js +3 -0
- package/dist/components/ps-skeleton/ps-skeleton-bar.d.ts +7 -0
- package/dist/components/ps-skeleton/ps-skeleton-bar.js +16 -0
- package/dist/components/ps-skeleton/ps-skeleton-list.d.ts +2 -0
- package/dist/components/ps-skeleton/ps-skeleton-list.js +11 -0
- package/dist/components/ps-skeleton/ps-skeleton-props.d.ts +16 -0
- package/dist/components/ps-skeleton/ps-skeleton-props.js +1 -0
- package/dist/components/ps-skeleton/ps-skeleton-sweep.d.ts +2 -0
- package/dist/components/ps-skeleton/ps-skeleton-sweep.js +13 -0
- package/dist/components/ps-skeleton/ps-skeleton.d.ts +2 -0
- package/dist/components/ps-skeleton/ps-skeleton.js +12 -0
- package/dist/components/ps-sortable-grid/index.d.ts +2 -0
- package/dist/components/ps-sortable-grid/index.js +2 -0
- package/dist/components/ps-sortable-grid/ps-sortable-grid-props.d.ts +22 -0
- package/dist/components/ps-sortable-grid/ps-sortable-grid-props.js +1 -0
- package/dist/components/ps-sortable-grid/ps-sortable-grid.d.ts +2 -0
- package/dist/components/ps-sortable-grid/ps-sortable-grid.js +140 -0
- package/dist/components/ps-sortable-grid/ps-sortable-item-props.d.ts +23 -0
- package/dist/components/ps-sortable-grid/ps-sortable-item-props.js +1 -0
- package/dist/components/ps-sortable-grid/ps-sortable-item.d.ts +2 -0
- package/dist/components/ps-sortable-grid/ps-sortable-item.js +72 -0
- package/dist/components/ps-sparkline/index.d.ts +2 -0
- package/dist/components/ps-sparkline/index.js +2 -0
- package/dist/components/ps-sparkline/ps-sparkline-props.d.ts +7 -0
- package/dist/components/ps-sparkline/ps-sparkline-props.js +1 -0
- package/dist/components/ps-sparkline/ps-sparkline.d.ts +2 -0
- package/dist/components/ps-sparkline/ps-sparkline.js +27 -0
- package/dist/components/ps-spinner/index.d.ts +2 -0
- package/dist/components/ps-spinner/index.js +2 -0
- package/dist/components/ps-spinner/ps-spinner-props.d.ts +4 -0
- package/dist/components/ps-spinner/ps-spinner-props.js +1 -0
- package/dist/components/ps-spinner/ps-spinner.d.ts +2 -0
- package/dist/components/ps-spinner/ps-spinner.js +7 -0
- package/dist/components/ps-splash-overlay/index.d.ts +2 -0
- package/dist/components/ps-splash-overlay/index.js +2 -0
- package/dist/components/ps-splash-overlay/ps-splash-overlay-props.d.ts +7 -0
- package/dist/components/ps-splash-overlay/ps-splash-overlay-props.js +1 -0
- package/dist/components/ps-splash-overlay/ps-splash-overlay.d.ts +2 -0
- package/dist/components/ps-splash-overlay/ps-splash-overlay.js +38 -0
- package/dist/components/ps-stagger/index.d.ts +3 -0
- package/dist/components/ps-stagger/index.js +3 -0
- package/dist/components/ps-stagger/ps-stagger-container.d.ts +2 -0
- package/dist/components/ps-stagger/ps-stagger-container.js +5 -0
- package/dist/components/ps-stagger/ps-stagger-item.d.ts +2 -0
- package/dist/components/ps-stagger/ps-stagger-item.js +13 -0
- package/dist/components/ps-stagger/ps-stagger-props.d.ts +10 -0
- package/dist/components/ps-stagger/ps-stagger-props.js +1 -0
- package/dist/components/ps-statement-table/index.d.ts +2 -0
- package/dist/components/ps-statement-table/index.js +2 -0
- package/dist/components/ps-statement-table/ps-statement-table-props.d.ts +27 -0
- package/dist/components/ps-statement-table/ps-statement-table-props.js +1 -0
- package/dist/components/ps-statement-table/ps-statement-table-row.d.ts +7 -0
- package/dist/components/ps-statement-table/ps-statement-table-row.js +31 -0
- package/dist/components/ps-statement-table/ps-statement-table-skeleton.d.ts +4 -0
- package/dist/components/ps-statement-table/ps-statement-table-skeleton.js +18 -0
- package/dist/components/ps-statement-table/ps-statement-table.d.ts +2 -0
- package/dist/components/ps-statement-table/ps-statement-table.js +27 -0
- package/dist/components/ps-switch/index.d.ts +2 -0
- package/dist/components/ps-switch/index.js +2 -0
- package/dist/components/ps-switch/ps-switch-props.d.ts +7 -0
- package/dist/components/ps-switch/ps-switch-props.js +1 -0
- package/dist/components/ps-switch/ps-switch.d.ts +2 -0
- package/dist/components/ps-switch/ps-switch.js +19 -0
- package/dist/components/ps-tabs/index.d.ts +2 -0
- package/dist/components/ps-tabs/index.js +2 -0
- package/dist/components/ps-tabs/ps-tabs-props.d.ts +10 -0
- package/dist/components/ps-tabs/ps-tabs-props.js +1 -0
- package/dist/components/ps-tabs/ps-tabs.d.ts +2 -0
- package/dist/components/ps-tabs/ps-tabs.js +49 -0
- package/dist/components/ps-text/index.d.ts +2 -0
- package/dist/components/ps-text/index.js +2 -0
- package/dist/components/ps-text/ps-text-props.d.ts +20 -0
- package/dist/components/ps-text/ps-text-props.js +1 -0
- package/dist/components/ps-text/ps-text.d.ts +2 -0
- package/dist/components/ps-text/ps-text.js +12 -0
- package/dist/components/ps-text-area/index.d.ts +2 -0
- package/dist/components/ps-text-area/index.js +2 -0
- package/dist/components/ps-text-area/ps-text-area-props.d.ts +11 -0
- package/dist/components/ps-text-area/ps-text-area-props.js +1 -0
- package/dist/components/ps-text-area/ps-text-area.d.ts +2 -0
- package/dist/components/ps-text-area/ps-text-area.js +30 -0
- package/dist/components/ps-text-field/index.d.ts +2 -0
- package/dist/components/ps-text-field/index.js +2 -0
- package/dist/components/ps-text-field/ps-text-field-props.d.ts +12 -0
- package/dist/components/ps-text-field/ps-text-field-props.js +1 -0
- package/dist/components/ps-text-field/ps-text-field.d.ts +2 -0
- package/dist/components/ps-text-field/ps-text-field.js +20 -0
- package/dist/components/ps-text-link/index.d.ts +2 -0
- package/dist/components/ps-text-link/index.js +2 -0
- package/dist/components/ps-text-link/ps-text-link-props.d.ts +5 -0
- package/dist/components/ps-text-link/ps-text-link-props.js +1 -0
- package/dist/components/ps-text-link/ps-text-link.d.ts +2 -0
- package/dist/components/ps-text-link/ps-text-link.js +12 -0
- package/dist/components/ps-toast/index.d.ts +3 -0
- package/dist/components/ps-toast/index.js +3 -0
- package/dist/components/ps-toast/ps-toast-props.d.ts +13 -0
- package/dist/components/ps-toast/ps-toast-props.js +1 -0
- package/dist/components/ps-toast/ps-toast-provider.d.ts +2 -0
- package/dist/components/ps-toast/ps-toast-provider.js +44 -0
- package/dist/components/ps-toast/ps-toast.d.ts +2 -0
- package/dist/components/ps-toast/ps-toast.js +26 -0
- package/dist/components/ps-widget-list/index.d.ts +3 -0
- package/dist/components/ps-widget-list/index.js +3 -0
- package/dist/components/ps-widget-list/ps-widget-grid.d.ts +2 -0
- package/dist/components/ps-widget-list/ps-widget-grid.js +10 -0
- package/dist/components/ps-widget-list/ps-widget-list-props.d.ts +10 -0
- package/dist/components/ps-widget-list/ps-widget-list-props.js +1 -0
- package/dist/components/ps-widget-list/ps-widget-list.d.ts +2 -0
- package/dist/components/ps-widget-list/ps-widget-list.js +14 -0
- package/dist/constants/ps-amount-field-config.d.ts +5 -0
- package/dist/constants/ps-amount-field-config.js +5 -0
- package/dist/constants/ps-avatar-config.d.ts +15 -0
- package/dist/constants/ps-avatar-config.js +5 -0
- package/dist/constants/ps-chart-config.d.ts +31 -0
- package/dist/constants/ps-chart-config.js +31 -0
- package/dist/constants/ps-chart-delta.d.ts +18 -0
- package/dist/constants/ps-chart-delta.js +16 -0
- package/dist/constants/ps-chart-kind.d.ts +7 -0
- package/dist/constants/ps-chart-kind.js +6 -0
- package/dist/constants/ps-chart-skeleton-variant.d.ts +6 -0
- package/dist/constants/ps-chart-skeleton-variant.js +5 -0
- package/dist/constants/ps-checkbox-config.d.ts +5 -0
- package/dist/constants/ps-checkbox-config.js +5 -0
- package/dist/constants/ps-color-swatches-config.d.ts +5 -0
- package/dist/constants/ps-color-swatches-config.js +5 -0
- package/dist/constants/ps-date-field-config.d.ts +7 -0
- package/dist/constants/ps-date-field-config.js +7 -0
- package/dist/constants/ps-document-config.d.ts +23 -0
- package/dist/constants/ps-document-config.js +23 -0
- package/dist/constants/ps-document-kind.d.ts +6 -0
- package/dist/constants/ps-document-kind.js +5 -0
- package/dist/constants/ps-document-scanner-config.d.ts +10 -0
- package/dist/constants/ps-document-scanner-config.js +10 -0
- package/dist/constants/ps-field-skeleton-config.d.ts +6 -0
- package/dist/constants/ps-field-skeleton-config.js +6 -0
- package/dist/constants/ps-font-config.d.ts +6 -0
- package/dist/constants/ps-font-config.js +6 -0
- package/dist/constants/ps-form-sheet-config.d.ts +3 -0
- package/dist/constants/ps-form-sheet-config.js +3 -0
- package/dist/constants/ps-layout-config.d.ts +26 -0
- package/dist/constants/ps-layout-config.js +26 -0
- package/dist/constants/ps-list-config.d.ts +11 -0
- package/dist/constants/ps-list-config.js +11 -0
- package/dist/constants/ps-mobile-control-config.d.ts +55 -0
- package/dist/constants/ps-mobile-control-config.js +45 -0
- package/dist/constants/ps-mobile-icon-key.d.ts +88 -0
- package/dist/constants/ps-mobile-icon-key.js +2 -0
- package/dist/constants/ps-motion-config.d.ts +9 -0
- package/dist/constants/ps-motion-config.js +9 -0
- package/dist/constants/ps-native-menu-config.d.ts +6 -0
- package/dist/constants/ps-native-menu-config.js +6 -0
- package/dist/constants/ps-page-header-config.d.ts +8 -0
- package/dist/constants/ps-page-header-config.js +8 -0
- package/dist/constants/ps-segmented-control-config.d.ts +4 -0
- package/dist/constants/ps-segmented-control-config.js +4 -0
- package/dist/constants/ps-sf-symbol-config.d.ts +36 -0
- package/dist/constants/ps-sf-symbol-config.js +36 -0
- package/dist/constants/ps-sheet-config.d.ts +11 -0
- package/dist/constants/ps-sheet-config.js +11 -0
- package/dist/constants/ps-skeleton-config.d.ts +7 -0
- package/dist/constants/ps-skeleton-config.js +27 -0
- package/dist/constants/ps-skeleton-shape.d.ts +11 -0
- package/dist/constants/ps-skeleton-shape.js +12 -0
- package/dist/constants/ps-sortable-grid-config.d.ts +16 -0
- package/dist/constants/ps-sortable-grid-config.js +18 -0
- package/dist/constants/ps-sortable-grid-span.d.ts +5 -0
- package/dist/constants/ps-sortable-grid-span.js +4 -0
- package/dist/constants/ps-statement-table-config.d.ts +13 -0
- package/dist/constants/ps-statement-table-config.js +13 -0
- package/dist/constants/ps-swipe-config.d.ts +20 -0
- package/dist/constants/ps-swipe-config.js +16 -0
- package/dist/constants/ps-tabs-config.d.ts +8 -0
- package/dist/constants/ps-tabs-config.js +8 -0
- package/dist/constants/ps-text-area-config.d.ts +5 -0
- package/dist/constants/ps-text-area-config.js +5 -0
- package/dist/constants/ps-text-config.d.ts +9 -0
- package/dist/constants/ps-text-config.js +9 -0
- package/dist/constants/ps-toast-config.d.ts +10 -0
- package/dist/constants/ps-toast-config.js +10 -0
- package/dist/contexts/ps-mobile-theme-context.d.ts +2 -0
- package/dist/contexts/ps-mobile-theme-context.js +2 -0
- package/dist/contexts/ps-native-tree-context.d.ts +1 -0
- package/dist/contexts/ps-native-tree-context.js +2 -0
- package/dist/contexts/ps-page-header-context.d.ts +1 -0
- package/dist/contexts/ps-page-header-context.js +2 -0
- package/dist/contexts/ps-scroll-context.d.ts +2 -0
- package/dist/contexts/ps-scroll-context.js +2 -0
- package/dist/contexts/ps-sheet-measure-context.d.ts +1 -0
- package/dist/contexts/ps-sheet-measure-context.js +2 -0
- package/dist/contexts/ps-stagger-index-context.d.ts +1 -0
- package/dist/contexts/ps-stagger-index-context.js +2 -0
- package/dist/contexts/ps-toast-context.d.ts +2 -0
- package/dist/contexts/ps-toast-context.js +5 -0
- package/dist/hooks/use-ps-chart-reveal.d.ts +2 -0
- package/dist/hooks/use-ps-chart-reveal.js +17 -0
- package/dist/hooks/use-ps-chart-scrub.d.ts +3 -0
- package/dist/hooks/use-ps-chart-scrub.js +23 -0
- package/dist/hooks/use-ps-chart-width.d.ts +2 -0
- package/dist/hooks/use-ps-chart-width.js +6 -0
- package/dist/hooks/use-ps-document-scanner.d.ts +3 -0
- package/dist/hooks/use-ps-document-scanner.js +21 -0
- package/dist/hooks/use-ps-focus.d.ts +6 -0
- package/dist/hooks/use-ps-focus.js +9 -0
- package/dist/hooks/use-ps-haptics.d.ts +2 -0
- package/dist/hooks/use-ps-haptics.js +7 -0
- package/dist/hooks/use-ps-mobile-theme.d.ts +2 -0
- package/dist/hooks/use-ps-mobile-theme.js +9 -0
- package/dist/hooks/use-ps-pulse.d.ts +1 -0
- package/dist/hooks/use-ps-pulse.js +10 -0
- package/dist/hooks/use-ps-refresh.d.ts +5 -0
- package/dist/hooks/use-ps-refresh.js +19 -0
- package/dist/hooks/use-ps-remote-data.d.ts +3 -0
- package/dist/hooks/use-ps-remote-data.js +72 -0
- package/dist/hooks/use-ps-scroll-host.d.ts +2 -0
- package/dist/hooks/use-ps-scroll-host.js +34 -0
- package/dist/hooks/use-ps-skeleton-sweep.d.ts +8 -0
- package/dist/hooks/use-ps-skeleton-sweep.js +21 -0
- package/dist/hooks/use-ps-toast.d.ts +2 -0
- package/dist/hooks/use-ps-toast.js +3 -0
- package/dist/index.d.ts +113 -0
- package/dist/index.js +109 -0
- package/dist/interfaces/ps-action-menu-header.d.ts +6 -0
- package/dist/interfaces/ps-action-menu-header.js +1 -0
- package/dist/interfaces/ps-action-menu-section.d.ts +6 -0
- package/dist/interfaces/ps-action-menu-section.js +1 -0
- package/dist/interfaces/ps-area-chart-datum.d.ts +5 -0
- package/dist/interfaces/ps-area-chart-datum.js +1 -0
- package/dist/interfaces/ps-backdrop-line.d.ts +4 -0
- package/dist/interfaces/ps-backdrop-line.js +1 -0
- package/dist/interfaces/ps-button-style-data.d.ts +7 -0
- package/dist/interfaces/ps-button-style-data.js +1 -0
- package/dist/interfaces/ps-cartesian-chart-series.d.ts +5 -0
- package/dist/interfaces/ps-cartesian-chart-series.js +1 -0
- package/dist/interfaces/ps-chart-bar-rect.d.ts +9 -0
- package/dist/interfaces/ps-chart-bar-rect.js +1 -0
- package/dist/interfaces/ps-chart-delta-colors.d.ts +4 -0
- package/dist/interfaces/ps-chart-delta-colors.js +1 -0
- package/dist/interfaces/ps-chart-domain.d.ts +5 -0
- package/dist/interfaces/ps-chart-domain.js +1 -0
- package/dist/interfaces/ps-chart-legend-item.d.ts +5 -0
- package/dist/interfaces/ps-chart-legend-item.js +1 -0
- package/dist/interfaces/ps-chart-palette-colors.d.ts +4 -0
- package/dist/interfaces/ps-chart-palette-colors.js +1 -0
- package/dist/interfaces/ps-chart-palette-input.d.ts +7 -0
- package/dist/interfaces/ps-chart-palette-input.js +1 -0
- package/dist/interfaces/ps-chart-plot.d.ts +6 -0
- package/dist/interfaces/ps-chart-plot.js +1 -0
- package/dist/interfaces/ps-chart-point.d.ts +4 -0
- package/dist/interfaces/ps-chart-point.js +1 -0
- package/dist/interfaces/ps-chart-readout-item.d.ts +5 -0
- package/dist/interfaces/ps-chart-readout-item.js +1 -0
- package/dist/interfaces/ps-chart-scrub-result.d.ts +5 -0
- package/dist/interfaces/ps-chart-scrub-result.js +1 -0
- package/dist/interfaces/ps-chart-width-result.d.ts +5 -0
- package/dist/interfaces/ps-chart-width-result.js +1 -0
- package/dist/interfaces/ps-color-scheme-choice.d.ts +1 -0
- package/dist/interfaces/ps-color-scheme-choice.js +1 -0
- package/dist/interfaces/ps-control-state.d.ts +5 -0
- package/dist/interfaces/ps-control-state.js +1 -0
- package/dist/interfaces/ps-date-limits.d.ts +4 -0
- package/dist/interfaces/ps-date-limits.js +1 -0
- package/dist/interfaces/ps-document-item.d.ts +9 -0
- package/dist/interfaces/ps-document-item.js +1 -0
- package/dist/interfaces/ps-document-labels.d.ts +9 -0
- package/dist/interfaces/ps-document-labels.js +1 -0
- package/dist/interfaces/ps-document-scanner-native.d.ts +14 -0
- package/dist/interfaces/ps-document-scanner-native.js +1 -0
- package/dist/interfaces/ps-document-scanner-options.d.ts +5 -0
- package/dist/interfaces/ps-document-scanner-options.js +1 -0
- package/dist/interfaces/ps-document-source.d.ts +4 -0
- package/dist/interfaces/ps-document-source.js +1 -0
- package/dist/interfaces/ps-donut-chart-datum.d.ts +6 -0
- package/dist/interfaces/ps-donut-chart-datum.js +1 -0
- package/dist/interfaces/ps-donut-slice-data.d.ts +7 -0
- package/dist/interfaces/ps-donut-slice-data.js +1 -0
- package/dist/interfaces/ps-filter-bar-labels.d.ts +8 -0
- package/dist/interfaces/ps-filter-bar-labels.js +1 -0
- package/dist/interfaces/ps-filter-chip.d.ts +4 -0
- package/dist/interfaces/ps-filter-chip.js +1 -0
- package/dist/interfaces/ps-filter-group.d.ts +7 -0
- package/dist/interfaces/ps-filter-group.js +1 -0
- package/dist/interfaces/ps-filter-option.d.ts +4 -0
- package/dist/interfaces/ps-filter-option.js +1 -0
- package/dist/interfaces/ps-font-weight.d.ts +1 -0
- package/dist/interfaces/ps-font-weight.js +1 -0
- package/dist/interfaces/ps-haptic-kind.d.ts +1 -0
- package/dist/interfaces/ps-haptic-kind.js +1 -0
- package/dist/interfaces/ps-menu-item-tone.d.ts +1 -0
- package/dist/interfaces/ps-menu-item-tone.js +1 -0
- package/dist/interfaces/ps-menu-item.d.ts +14 -0
- package/dist/interfaces/ps-menu-item.js +1 -0
- package/dist/interfaces/ps-mobile-fonts.d.ts +6 -0
- package/dist/interfaces/ps-mobile-fonts.js +1 -0
- package/dist/interfaces/ps-mobile-theme-input.d.ts +9 -0
- package/dist/interfaces/ps-mobile-theme-input.js +1 -0
- package/dist/interfaces/ps-mobile-theme.d.ts +31 -0
- package/dist/interfaces/ps-mobile-theme.js +1 -0
- package/dist/interfaces/ps-native-menu-item.d.ts +7 -0
- package/dist/interfaces/ps-native-menu-item.js +1 -0
- package/dist/interfaces/ps-overlay-scale.d.ts +4 -0
- package/dist/interfaces/ps-overlay-scale.js +1 -0
- package/dist/interfaces/ps-page-header-layout.d.ts +4 -0
- package/dist/interfaces/ps-page-header-layout.js +1 -0
- package/dist/interfaces/ps-remote-data-options.d.ts +5 -0
- package/dist/interfaces/ps-remote-data-options.js +1 -0
- package/dist/interfaces/ps-remote-data-result.d.ts +5 -0
- package/dist/interfaces/ps-remote-data-result.js +1 -0
- package/dist/interfaces/ps-remote-data-state.d.ts +5 -0
- package/dist/interfaces/ps-remote-data-state.js +1 -0
- package/dist/interfaces/ps-scanned-file.d.ts +5 -0
- package/dist/interfaces/ps-scanned-file.js +1 -0
- package/dist/interfaces/ps-screen-insets.d.ts +4 -0
- package/dist/interfaces/ps-screen-insets.js +1 -0
- package/dist/interfaces/ps-scroll-context-data.d.ts +7 -0
- package/dist/interfaces/ps-scroll-context-data.js +1 -0
- package/dist/interfaces/ps-scroll-host-result.d.ts +11 -0
- package/dist/interfaces/ps-scroll-host-result.js +1 -0
- package/dist/interfaces/ps-scroll-metrics-data.d.ts +7 -0
- package/dist/interfaces/ps-scroll-metrics-data.js +1 -0
- package/dist/interfaces/ps-sheet-action.d.ts +7 -0
- package/dist/interfaces/ps-sheet-action.js +1 -0
- package/dist/interfaces/ps-sign-in-surface.d.ts +6 -0
- package/dist/interfaces/ps-sign-in-surface.js +1 -0
- package/dist/interfaces/ps-size.d.ts +4 -0
- package/dist/interfaces/ps-size.js +1 -0
- package/dist/interfaces/ps-skeleton-resolved.d.ts +6 -0
- package/dist/interfaces/ps-skeleton-resolved.js +1 -0
- package/dist/interfaces/ps-skeleton-size.d.ts +4 -0
- package/dist/interfaces/ps-skeleton-size.js +1 -0
- package/dist/interfaces/ps-sortable-drag-data.d.ts +10 -0
- package/dist/interfaces/ps-sortable-drag-data.js +1 -0
- package/dist/interfaces/ps-sortable-rect.d.ts +6 -0
- package/dist/interfaces/ps-sortable-rect.js +1 -0
- package/dist/interfaces/ps-statement-section.d.ts +6 -0
- package/dist/interfaces/ps-statement-section.js +1 -0
- package/dist/interfaces/ps-tab-frame.d.ts +4 -0
- package/dist/interfaces/ps-tab-frame.js +1 -0
- package/dist/interfaces/ps-text-align.d.ts +1 -0
- package/dist/interfaces/ps-text-align.js +1 -0
- package/dist/interfaces/ps-text-field-type.d.ts +1 -0
- package/dist/interfaces/ps-text-field-type.js +1 -0
- package/dist/interfaces/ps-text-tone.d.ts +1 -0
- package/dist/interfaces/ps-text-tone.js +1 -0
- package/dist/interfaces/ps-text-variant.d.ts +1 -0
- package/dist/interfaces/ps-text-variant.js +1 -0
- package/dist/interfaces/ps-toast-action-data.d.ts +4 -0
- package/dist/interfaces/ps-toast-action-data.js +1 -0
- package/dist/interfaces/ps-toast-context-data.d.ts +6 -0
- package/dist/interfaces/ps-toast-context-data.js +1 -0
- package/dist/interfaces/ps-toast-item-data.d.ts +8 -0
- package/dist/interfaces/ps-toast-item-data.js +1 -0
- package/dist/interfaces/ps-toast-tone.d.ts +1 -0
- package/dist/interfaces/ps-toast-tone.js +1 -0
- package/dist/interfaces/ps-tone-colors.d.ts +4 -0
- package/dist/interfaces/ps-tone-colors.js +1 -0
- package/dist/interfaces/use-ps-document-scanner-result.d.ts +7 -0
- package/dist/interfaces/use-ps-document-scanner-result.js +1 -0
- package/dist/services/ps-action-menu-service.d.ts +10 -0
- package/dist/services/ps-action-menu-service.js +37 -0
- package/dist/services/ps-action-sheet-service.d.ts +3 -0
- package/dist/services/ps-action-sheet-service.js +6 -0
- package/dist/services/ps-amount-field-service.d.ts +3 -0
- package/dist/services/ps-amount-field-service.js +16 -0
- package/dist/services/ps-amount-tone-service.d.ts +5 -0
- package/dist/services/ps-amount-tone-service.js +12 -0
- package/dist/services/ps-backdrop-service.d.ts +6 -0
- package/dist/services/ps-backdrop-service.js +23 -0
- package/dist/services/ps-badge-tone-service.d.ts +6 -0
- package/dist/services/ps-badge-tone-service.js +21 -0
- package/dist/services/ps-button-style-service.d.ts +6 -0
- package/dist/services/ps-button-style-service.js +33 -0
- package/dist/services/ps-chart-bar-service.d.ts +11 -0
- package/dist/services/ps-chart-bar-service.js +48 -0
- package/dist/services/ps-chart-delta-service.d.ts +6 -0
- package/dist/services/ps-chart-delta-service.js +10 -0
- package/dist/services/ps-chart-donut-service.d.ts +7 -0
- package/dist/services/ps-chart-donut-service.js +28 -0
- package/dist/services/ps-chart-kind-service.d.ts +6 -0
- package/dist/services/ps-chart-kind-service.js +12 -0
- package/dist/services/ps-chart-path-service.d.ts +6 -0
- package/dist/services/ps-chart-path-service.js +22 -0
- package/dist/services/ps-chart-readout-service.d.ts +7 -0
- package/dist/services/ps-chart-readout-service.js +13 -0
- package/dist/services/ps-chart-scale-service.d.ts +15 -0
- package/dist/services/ps-chart-scale-service.js +76 -0
- package/dist/services/ps-chart-scrub-service.d.ts +6 -0
- package/dist/services/ps-chart-scrub-service.js +17 -0
- package/dist/services/ps-chart-series-service.d.ts +11 -0
- package/dist/services/ps-chart-series-service.js +34 -0
- package/dist/services/ps-context-menu-service.d.ts +6 -0
- package/dist/services/ps-context-menu-service.js +17 -0
- package/dist/services/ps-control-style-service.d.ts +8 -0
- package/dist/services/ps-control-style-service.js +35 -0
- package/dist/services/ps-date-field-service.d.ts +6 -0
- package/dist/services/ps-date-field-service.js +18 -0
- package/dist/services/ps-date-picker-service.d.ts +5 -0
- package/dist/services/ps-date-picker-service.js +16 -0
- package/dist/services/ps-date-range-service.d.ts +4 -0
- package/dist/services/ps-date-range-service.js +7 -0
- package/dist/services/ps-document-pager-service.d.ts +7 -0
- package/dist/services/ps-document-pager-service.js +18 -0
- package/dist/services/ps-document-scanner-service.d.ts +10 -0
- package/dist/services/ps-document-scanner-service.js +48 -0
- package/dist/services/ps-document-zoom-service.d.ts +9 -0
- package/dist/services/ps-document-zoom-service.js +28 -0
- package/dist/services/ps-filter-service.d.ts +12 -0
- package/dist/services/ps-filter-service.js +28 -0
- package/dist/services/ps-haptic-service.d.ts +5 -0
- package/dist/services/ps-haptic-service.js +26 -0
- package/dist/services/ps-icon-fit-service.d.ts +4 -0
- package/dist/services/ps-icon-fit-service.js +16 -0
- package/dist/services/ps-keyboard-service.d.ts +7 -0
- package/dist/services/ps-keyboard-service.js +22 -0
- package/dist/services/ps-list-service.d.ts +9 -0
- package/dist/services/ps-list-service.js +18 -0
- package/dist/services/ps-list-skeleton-service.d.ts +6 -0
- package/dist/services/ps-list-skeleton-service.js +22 -0
- package/dist/services/ps-mobile-color-service.d.ts +3 -0
- package/dist/services/ps-mobile-color-service.js +9 -0
- package/dist/services/ps-mobile-theme-service.d.ts +7 -0
- package/dist/services/ps-mobile-theme-service.js +104 -0
- package/dist/services/ps-native-menu-service.d.ts +5 -0
- package/dist/services/ps-native-menu-service.js +14 -0
- package/dist/services/ps-page-header-service.d.ts +4 -0
- package/dist/services/ps-page-header-service.js +11 -0
- package/dist/services/ps-screen-service.d.ts +6 -0
- package/dist/services/ps-screen-service.js +15 -0
- package/dist/services/ps-segmented-control-service.d.ts +4 -0
- package/dist/services/ps-segmented-control-service.js +11 -0
- package/dist/services/ps-select-service.d.ts +4 -0
- package/dist/services/ps-select-service.js +6 -0
- package/dist/services/ps-select-style-service.d.ts +6 -0
- package/dist/services/ps-select-style-service.js +12 -0
- package/dist/services/ps-sheet-service.d.ts +10 -0
- package/dist/services/ps-sheet-service.js +28 -0
- package/dist/services/ps-sign-in-surface-service.d.ts +7 -0
- package/dist/services/ps-sign-in-surface-service.js +22 -0
- package/dist/services/ps-skeleton-service.d.ts +6 -0
- package/dist/services/ps-skeleton-service.js +20 -0
- package/dist/services/ps-sortable-grid-service.d.ts +19 -0
- package/dist/services/ps-sortable-grid-service.js +89 -0
- package/dist/services/ps-statement-table-service.d.ts +18 -0
- package/dist/services/ps-statement-table-service.js +52 -0
- package/dist/services/ps-swipe-action-service.d.ts +8 -0
- package/dist/services/ps-swipe-action-service.js +20 -0
- package/dist/services/ps-swipe-service.d.ts +6 -0
- package/dist/services/ps-swipe-service.js +27 -0
- package/dist/services/ps-tabs-service.d.ts +4 -0
- package/dist/services/ps-tabs-service.js +8 -0
- package/dist/services/ps-text-service.d.ts +9 -0
- package/dist/services/ps-text-service.js +31 -0
- package/dist/services/ps-toast-tone-service.d.ts +8 -0
- package/dist/services/ps-toast-tone-service.js +26 -0
- package/jest-setup.js +59 -0
- package/package.json +115 -5
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PsSortableGridSpan } from '../constants/ps-sortable-grid-span';
|
|
2
|
+
import type { PsSortableRect } from '../interfaces/ps-sortable-rect';
|
|
3
|
+
export declare class PsSortableGridService {
|
|
4
|
+
static halfWidth(width: number): number;
|
|
5
|
+
static heights(ids: string[], measured: Record<string, number>): number[];
|
|
6
|
+
static isMeasured(ids: string[], measured: Record<string, number>, width: number): boolean;
|
|
7
|
+
static ids<T extends {
|
|
8
|
+
id: string;
|
|
9
|
+
}>(items: T[]): string[];
|
|
10
|
+
static isSameOrder(first: string[], second: string[]): boolean;
|
|
11
|
+
static rows(spans: PsSortableGridSpan[]): number[][];
|
|
12
|
+
static layout(spans: PsSortableGridSpan[], heights: number[], width: number): PsSortableRect[];
|
|
13
|
+
static contentHeight(rects: PsSortableRect[]): number;
|
|
14
|
+
static indexAt(rects: PsSortableRect[], x: number, y: number, current: number): number;
|
|
15
|
+
static move<T>(items: T[], from: number, to: number): T[];
|
|
16
|
+
static scrollStep(absoluteY: number, top: number, bottom: number, zone: number): number;
|
|
17
|
+
static clampOffset(offset: number, minimum: number, content: number, viewport: number): number;
|
|
18
|
+
private static distance;
|
|
19
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { PsSortableGridConfig } from '../constants/ps-sortable-grid-config';
|
|
2
|
+
import { PsSortableGridSpan } from '../constants/ps-sortable-grid-span';
|
|
3
|
+
export class PsSortableGridService {
|
|
4
|
+
static halfWidth(width) {
|
|
5
|
+
return Math.max((width - PsSortableGridConfig.columnGap) / 2, 0);
|
|
6
|
+
}
|
|
7
|
+
static heights(ids, measured) {
|
|
8
|
+
return ids.map((id) => (measured[id] === undefined ? 0 : measured[id]));
|
|
9
|
+
}
|
|
10
|
+
static isMeasured(ids, measured, width) {
|
|
11
|
+
return width > 0 && ids.every((id) => measured[id] !== undefined);
|
|
12
|
+
}
|
|
13
|
+
static ids(items) {
|
|
14
|
+
return items.map((item) => item.id);
|
|
15
|
+
}
|
|
16
|
+
static isSameOrder(first, second) {
|
|
17
|
+
return first.length === second.length && first.every((id, index) => id === second[index]);
|
|
18
|
+
}
|
|
19
|
+
static rows(spans) {
|
|
20
|
+
return spans.reduce((rows, span, index) => {
|
|
21
|
+
const last = rows[rows.length - 1];
|
|
22
|
+
const canJoin = span === PsSortableGridSpan.half &&
|
|
23
|
+
last !== undefined &&
|
|
24
|
+
last.length === 1 &&
|
|
25
|
+
spans[last[0]] === PsSortableGridSpan.half;
|
|
26
|
+
if (canJoin)
|
|
27
|
+
last.push(index);
|
|
28
|
+
else
|
|
29
|
+
rows.push([index]);
|
|
30
|
+
return rows;
|
|
31
|
+
}, []);
|
|
32
|
+
}
|
|
33
|
+
static layout(spans, heights, width) {
|
|
34
|
+
const half = PsSortableGridService.halfWidth(width);
|
|
35
|
+
const rects = [];
|
|
36
|
+
let top = 0;
|
|
37
|
+
PsSortableGridService.rows(spans).forEach((row) => {
|
|
38
|
+
row.forEach((index, column) => {
|
|
39
|
+
const isHalf = spans[index] === PsSortableGridSpan.half;
|
|
40
|
+
rects[index] = {
|
|
41
|
+
height: heights[index],
|
|
42
|
+
width: isHalf ? half : width,
|
|
43
|
+
x: column === 0 ? 0 : half + PsSortableGridConfig.columnGap,
|
|
44
|
+
y: top,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
top += Math.max(...row.map((index) => heights[index])) + PsSortableGridConfig.rowGap;
|
|
48
|
+
});
|
|
49
|
+
return rects;
|
|
50
|
+
}
|
|
51
|
+
static contentHeight(rects) {
|
|
52
|
+
return rects.reduce((bottom, rect) => Math.max(bottom, rect.y + rect.height), 0);
|
|
53
|
+
}
|
|
54
|
+
static indexAt(rects, x, y, current) {
|
|
55
|
+
const inside = rects.findIndex((rect) => x >= rect.x && x <= rect.x + rect.width && y >= rect.y && y <= rect.y + rect.height);
|
|
56
|
+
if (inside !== -1)
|
|
57
|
+
return inside;
|
|
58
|
+
if (rects.length === 0)
|
|
59
|
+
return current;
|
|
60
|
+
return rects.reduce((nearest, rect, index) => PsSortableGridService.distance(rect, x, y) <
|
|
61
|
+
PsSortableGridService.distance(rects[nearest], x, y)
|
|
62
|
+
? index
|
|
63
|
+
: nearest, 0);
|
|
64
|
+
}
|
|
65
|
+
static move(items, from, to) {
|
|
66
|
+
if (from === to || from < 0 || to < 0 || from >= items.length || to >= items.length)
|
|
67
|
+
return items;
|
|
68
|
+
const next = items.slice();
|
|
69
|
+
const [moved] = next.splice(from, 1);
|
|
70
|
+
next.splice(to, 0, moved);
|
|
71
|
+
return next;
|
|
72
|
+
}
|
|
73
|
+
static scrollStep(absoluteY, top, bottom, zone) {
|
|
74
|
+
const reach = Math.max(zone, 1);
|
|
75
|
+
if (absoluteY < top)
|
|
76
|
+
return -Math.ceil(PsSortableGridConfig.maxScrollStep *
|
|
77
|
+
Math.min((top - absoluteY) / reach + PsSortableGridConfig.scrollRamp, 1));
|
|
78
|
+
if (absoluteY > bottom)
|
|
79
|
+
return Math.ceil(PsSortableGridConfig.maxScrollStep *
|
|
80
|
+
Math.min((absoluteY - bottom) / reach + PsSortableGridConfig.scrollRamp, 1));
|
|
81
|
+
return 0;
|
|
82
|
+
}
|
|
83
|
+
static clampOffset(offset, minimum, content, viewport) {
|
|
84
|
+
return Math.min(Math.max(offset, minimum), Math.max(content - viewport, minimum));
|
|
85
|
+
}
|
|
86
|
+
static distance(rect, x, y) {
|
|
87
|
+
return Math.hypot(rect.x + rect.width / 2 - x, rect.y + rect.height / 2 - y);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { PsStatementAlign, PsStatementColumn, PsStatementRow } from '../components/ps-statement-table/ps-statement-table-props';
|
|
2
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
3
|
+
import type { PsStatementSection } from '../interfaces/ps-statement-section';
|
|
4
|
+
export declare class PsStatementTableService {
|
|
5
|
+
static sections(rows: PsStatementRow[]): PsStatementSection[];
|
|
6
|
+
static labelStyle(): {
|
|
7
|
+
flex: number;
|
|
8
|
+
minWidth: number;
|
|
9
|
+
};
|
|
10
|
+
static columnWidth(column: PsStatementColumn): number;
|
|
11
|
+
static width(columns: PsStatementColumn[]): number;
|
|
12
|
+
static fitWidth(containerWidth: number, contentWidth: number): number;
|
|
13
|
+
static align(column: PsStatementColumn): PsStatementAlign;
|
|
14
|
+
static indent(row: PsStatementRow): number;
|
|
15
|
+
static isStrong(row: PsStatementRow): boolean;
|
|
16
|
+
static color(row: PsStatementRow, theme: PsMobileTheme): string;
|
|
17
|
+
static value(row: PsStatementRow, index: number): string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PsStatementTableConfig } from '../constants/ps-statement-table-config';
|
|
2
|
+
export class PsStatementTableService {
|
|
3
|
+
static sections(rows) {
|
|
4
|
+
const sections = [];
|
|
5
|
+
for (const row of rows) {
|
|
6
|
+
if (row.emphasis === 'heading') {
|
|
7
|
+
sections.push({ data: [], heading: row, key: row.key });
|
|
8
|
+
continue;
|
|
9
|
+
}
|
|
10
|
+
const current = sections[sections.length - 1];
|
|
11
|
+
if (current === undefined)
|
|
12
|
+
sections.push({ data: [row], heading: null, key: row.key });
|
|
13
|
+
else
|
|
14
|
+
current.data.push(row);
|
|
15
|
+
}
|
|
16
|
+
return sections;
|
|
17
|
+
}
|
|
18
|
+
static labelStyle() {
|
|
19
|
+
return { flex: 1, minWidth: PsStatementTableConfig.labelMinWidth };
|
|
20
|
+
}
|
|
21
|
+
static columnWidth(column) {
|
|
22
|
+
return column.width === undefined ? PsStatementTableConfig.columnWidth : column.width;
|
|
23
|
+
}
|
|
24
|
+
static width(columns) {
|
|
25
|
+
return (PsStatementTableConfig.labelMinWidth +
|
|
26
|
+
PsStatementTableConfig.gutter * 2 +
|
|
27
|
+
columns.reduce((sum, column) => sum + PsStatementTableService.columnWidth(column), 0));
|
|
28
|
+
}
|
|
29
|
+
static fitWidth(containerWidth, contentWidth) {
|
|
30
|
+
return Math.max(containerWidth, contentWidth);
|
|
31
|
+
}
|
|
32
|
+
static align(column) {
|
|
33
|
+
return column.align === undefined ? 'right' : column.align;
|
|
34
|
+
}
|
|
35
|
+
static indent(row) {
|
|
36
|
+
return (row.level === undefined ? 0 : row.level) * PsStatementTableConfig.indentStep;
|
|
37
|
+
}
|
|
38
|
+
static isStrong(row) {
|
|
39
|
+
return row.emphasis === 'heading' || row.emphasis === 'subtotal' || row.emphasis === 'total';
|
|
40
|
+
}
|
|
41
|
+
static color(row, theme) {
|
|
42
|
+
const tone = row.tone === undefined ? 'neutral' : row.tone;
|
|
43
|
+
if (tone === 'danger')
|
|
44
|
+
return theme.danger;
|
|
45
|
+
if (tone === 'success')
|
|
46
|
+
return theme.success;
|
|
47
|
+
return row.emphasis === 'muted' ? theme.muted : theme.ink;
|
|
48
|
+
}
|
|
49
|
+
static value(row, index) {
|
|
50
|
+
return index < row.values.length ? row.values[index] : '';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PsMenuItem } from '../interfaces/ps-menu-item';
|
|
2
|
+
import type { PsMenuItemTone } from '../interfaces/ps-menu-item-tone';
|
|
3
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
4
|
+
export declare class PsSwipeActionService {
|
|
5
|
+
static tone(item: PsMenuItem): PsMenuItemTone;
|
|
6
|
+
static background(item: PsMenuItem, theme: PsMobileTheme): string;
|
|
7
|
+
static foreground(item: PsMenuItem, theme: PsMobileTheme): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export class PsSwipeActionService {
|
|
2
|
+
static tone(item) {
|
|
3
|
+
if (item.tone !== undefined)
|
|
4
|
+
return item.tone;
|
|
5
|
+
return item.isDanger === true ? 'danger' : 'primary';
|
|
6
|
+
}
|
|
7
|
+
static background(item, theme) {
|
|
8
|
+
const tone = PsSwipeActionService.tone(item);
|
|
9
|
+
if (tone === 'danger')
|
|
10
|
+
return theme.danger;
|
|
11
|
+
if (tone === 'success')
|
|
12
|
+
return theme.success;
|
|
13
|
+
if (tone === 'accent')
|
|
14
|
+
return theme.accent;
|
|
15
|
+
return theme.primary;
|
|
16
|
+
}
|
|
17
|
+
static foreground(item, theme) {
|
|
18
|
+
return PsSwipeActionService.tone(item) === 'primary' ? theme.primaryContrast : theme.white;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare class PsSwipeService {
|
|
2
|
+
static clamp(x: number, hasLeading: boolean, hasTrailing: boolean, width: number): number;
|
|
3
|
+
static isArmed(x: number, width: number): boolean;
|
|
4
|
+
static shouldCommit(x: number, velocityX: number, width: number): boolean;
|
|
5
|
+
static progress(x: number, width: number): number;
|
|
6
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { PsSwipeConfig } from '../constants/ps-swipe-config';
|
|
2
|
+
export class PsSwipeService {
|
|
3
|
+
static clamp(x, hasLeading, hasTrailing, width) {
|
|
4
|
+
if ((x > 0 && !hasLeading) || (x < 0 && !hasTrailing) || width === 0)
|
|
5
|
+
return 0;
|
|
6
|
+
const limit = width * PsSwipeConfig.maxFraction;
|
|
7
|
+
const distance = Math.abs(x);
|
|
8
|
+
if (distance <= limit)
|
|
9
|
+
return x;
|
|
10
|
+
return Math.sign(x) * (limit + (distance - limit) * PsSwipeConfig.rubberBand);
|
|
11
|
+
}
|
|
12
|
+
static isArmed(x, width) {
|
|
13
|
+
return width > 0 && Math.abs(x) >= width * PsSwipeConfig.commitFraction;
|
|
14
|
+
}
|
|
15
|
+
static shouldCommit(x, velocityX, width) {
|
|
16
|
+
if (PsSwipeService.isArmed(x, width))
|
|
17
|
+
return true;
|
|
18
|
+
return (Math.abs(velocityX) >= PsSwipeConfig.flingVelocity &&
|
|
19
|
+
Math.sign(velocityX) === Math.sign(x) &&
|
|
20
|
+
Math.abs(x) >= width * PsSwipeConfig.flingFraction);
|
|
21
|
+
}
|
|
22
|
+
static progress(x, width) {
|
|
23
|
+
if (width === 0)
|
|
24
|
+
return 0;
|
|
25
|
+
return Math.min(1, Math.abs(x) / (width * PsSwipeConfig.commitFraction));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PsTabsConfig } from '../constants/ps-tabs-config';
|
|
2
|
+
export class PsTabsService {
|
|
3
|
+
static scrollTarget(frame, viewportWidth) {
|
|
4
|
+
if (frame === undefined || viewportWidth === 0)
|
|
5
|
+
return null;
|
|
6
|
+
return Math.max(0, frame.x - (viewportWidth - frame.width) / 2 - PsTabsConfig.scrollMargin / 2);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
2
|
+
import type { PsFontWeight } from '../interfaces/ps-font-weight';
|
|
3
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
4
|
+
import type { PsTextTone } from '../interfaces/ps-text-tone';
|
|
5
|
+
import type { PsTextVariant } from '../interfaces/ps-text-variant';
|
|
6
|
+
export declare class PsTextService {
|
|
7
|
+
static color(tone: PsTextTone, theme: PsMobileTheme): string;
|
|
8
|
+
static style(variant: PsTextVariant, tone: PsTextTone, weight: PsFontWeight | undefined, theme: PsMobileTheme): TextStyle;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { PsTextConfig } from '../constants/ps-text-config';
|
|
2
|
+
export class PsTextService {
|
|
3
|
+
static color(tone, theme) {
|
|
4
|
+
switch (tone) {
|
|
5
|
+
case 'danger':
|
|
6
|
+
return theme.danger;
|
|
7
|
+
case 'muted':
|
|
8
|
+
return theme.muted;
|
|
9
|
+
case 'primary':
|
|
10
|
+
return theme.primary;
|
|
11
|
+
case 'success':
|
|
12
|
+
return theme.success;
|
|
13
|
+
case 'warning':
|
|
14
|
+
return theme.warning;
|
|
15
|
+
case 'white':
|
|
16
|
+
return theme.white;
|
|
17
|
+
default:
|
|
18
|
+
return theme.ink;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static style(variant, tone, weight, theme) {
|
|
22
|
+
const base = PsTextConfig[variant];
|
|
23
|
+
return {
|
|
24
|
+
color: PsTextService.color(tone, theme),
|
|
25
|
+
fontFamily: theme.fonts[weight === undefined ? base.weight : weight],
|
|
26
|
+
fontSize: base.fontSize,
|
|
27
|
+
fontVariant: variant === 'numeric' ? ['tabular-nums'] : undefined,
|
|
28
|
+
lineHeight: base.lineHeight,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PsHapticKind } from '../interfaces/ps-haptic-kind';
|
|
2
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
3
|
+
import type { PsToastTone } from '../interfaces/ps-toast-tone';
|
|
4
|
+
export declare class PsToastToneService {
|
|
5
|
+
static accent(theme: PsMobileTheme, tone: PsToastTone): string;
|
|
6
|
+
static haptic(tone: PsToastTone): PsHapticKind | null;
|
|
7
|
+
static duration(hasAction: boolean, durationMs: number, actionDurationMs: number): number;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export class PsToastToneService {
|
|
2
|
+
static accent(theme, tone) {
|
|
3
|
+
switch (tone) {
|
|
4
|
+
case 'danger':
|
|
5
|
+
return theme.danger;
|
|
6
|
+
case 'success':
|
|
7
|
+
return theme.success;
|
|
8
|
+
case 'warning':
|
|
9
|
+
return theme.warning;
|
|
10
|
+
case 'neutral':
|
|
11
|
+
return theme.muted;
|
|
12
|
+
default:
|
|
13
|
+
return theme.primary;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
static haptic(tone) {
|
|
17
|
+
if (tone === 'danger')
|
|
18
|
+
return 'error';
|
|
19
|
+
if (tone === 'success')
|
|
20
|
+
return 'success';
|
|
21
|
+
return tone === 'warning' ? 'warning' : null;
|
|
22
|
+
}
|
|
23
|
+
static duration(hasAction, durationMs, actionDurationMs) {
|
|
24
|
+
return hasAction ? actionDurationMs : durationMs;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/jest-setup.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
require('react-native-gesture-handler/jestSetup');
|
|
2
|
+
|
|
3
|
+
jest.mock('react-native-reanimated', () => {
|
|
4
|
+
const { View } = require('react-native');
|
|
5
|
+
const isSharedValue = (value) => typeof value === 'object' && value !== null && 'value' in value;
|
|
6
|
+
const builder = { delay: () => builder, duration: () => builder, springify: () => builder };
|
|
7
|
+
|
|
8
|
+
return {
|
|
9
|
+
__esModule: true,
|
|
10
|
+
default: { View, createAnimatedComponent: (component) => component, isSharedValue },
|
|
11
|
+
isSharedValue,
|
|
12
|
+
FadeIn: builder,
|
|
13
|
+
FadeInDown: builder,
|
|
14
|
+
Easing: { linear: 'linear' },
|
|
15
|
+
cancelAnimation: () => undefined,
|
|
16
|
+
interpolate: (value, input, output) => output[0],
|
|
17
|
+
withRepeat: (value) => value,
|
|
18
|
+
FadeInUp: builder,
|
|
19
|
+
FadeOutUp: builder,
|
|
20
|
+
useAnimatedProps: (props) => props(),
|
|
21
|
+
useAnimatedStyle: (style) => style(),
|
|
22
|
+
useComposedEventHandler: () => () => undefined,
|
|
23
|
+
useReducedMotion: () => false,
|
|
24
|
+
useSharedValue: (initial) => {
|
|
25
|
+
const shared = {
|
|
26
|
+
value: initial,
|
|
27
|
+
get: () => shared.value,
|
|
28
|
+
set: (next) => {
|
|
29
|
+
shared.value = next;
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
return shared;
|
|
34
|
+
},
|
|
35
|
+
withDelay: (_delay, value) => value,
|
|
36
|
+
withSequence: (...values) => values[values.length - 1],
|
|
37
|
+
withTiming: (value) => value,
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
jest.mock('expo-haptics', () => ({
|
|
42
|
+
__esModule: true,
|
|
43
|
+
ImpactFeedbackStyle: { Heavy: 'heavy', Light: 'light', Medium: 'medium' },
|
|
44
|
+
NotificationFeedbackType: { Error: 'error', Success: 'success', Warning: 'warning' },
|
|
45
|
+
impactAsync: jest.fn(() => Promise.resolve()),
|
|
46
|
+
notificationAsync: jest.fn(() => Promise.resolve()),
|
|
47
|
+
selectionAsync: jest.fn(() => Promise.resolve()),
|
|
48
|
+
}));
|
|
49
|
+
|
|
50
|
+
jest.mock('@react-native-menu/menu', () => {
|
|
51
|
+
const React = require('react');
|
|
52
|
+
const { View } = require('react-native');
|
|
53
|
+
|
|
54
|
+
return {
|
|
55
|
+
__esModule: true,
|
|
56
|
+
MenuView: ({ actions, children, onPressAction, testID }) =>
|
|
57
|
+
React.createElement(View, { actions, onPressAction, testID }, children),
|
|
58
|
+
};
|
|
59
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,116 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@pallasoft/ps-mobile-components",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Native iOS (SwiftUI) and Android (Jetpack Compose) Ps components for Pallasoft mobile apps",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"react-native": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"react-native": "./dist/index.js",
|
|
14
|
+
"require": "./dist/index.js",
|
|
15
|
+
"default": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./jest-setup": "./jest-setup.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"/dist",
|
|
21
|
+
"/jest-setup.js"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"husky:prepare": "npx husky",
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
|
|
27
|
+
"lint": "npm run lint:eslint",
|
|
28
|
+
"lint:fix": "npm run lint:eslint:fix",
|
|
29
|
+
"format:check": "npx prettier --check --ignore-unknown \"src/**/*.{ts,tsx,json,md}\"",
|
|
30
|
+
"format:prettier": "npx prettier --write \"src/**/*.{ts,tsx,json,md}\"",
|
|
31
|
+
"lint:eslint": "npx eslint \"src/**/*.{ts,tsx}\"",
|
|
32
|
+
"lint:eslint:fix": "npx eslint --fix \"src/**/*.{ts,tsx}\"",
|
|
33
|
+
"release": "semantic-release",
|
|
34
|
+
"test": "jest"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@pallasoft/ps-design-system": "^1.17.0",
|
|
38
|
+
"@pallasoft/ps-icons": "^1.11.0",
|
|
39
|
+
"@pallasoft/ps-utilities": "^2.26.0"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@expo/ui": "~58.0.0",
|
|
43
|
+
"@react-native-menu/menu": "^2.0.0",
|
|
44
|
+
"expo": "~58.0.0",
|
|
45
|
+
"expo-haptics": "~58.0.7",
|
|
46
|
+
"expo-linear-gradient": "~58.0.3",
|
|
47
|
+
"react": "^19.3.0",
|
|
48
|
+
"react-native": "~0.88.0",
|
|
49
|
+
"react-native-document-scanner-plugin": "^2.0.4",
|
|
50
|
+
"react-native-gesture-handler": "~3.3.0",
|
|
51
|
+
"react-native-reanimated": "~4.7.1",
|
|
52
|
+
"react-native-safe-area-context": "~5.10.1",
|
|
53
|
+
"react-native-svg": "~15.16.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependenciesMeta": {
|
|
56
|
+
"react-native-document-scanner-plugin": {
|
|
57
|
+
"optional": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@babel/core": "^7.28.0",
|
|
62
|
+
"@commitlint/cli": "^20.1.0",
|
|
63
|
+
"@commitlint/config-conventional": "^20.0.0",
|
|
64
|
+
"@eslint/compat": "^2.0.0",
|
|
65
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
66
|
+
"@eslint/js": "^9.39.1",
|
|
67
|
+
"@expo/ui": "~58.0.21",
|
|
68
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.0",
|
|
69
|
+
"@react-native-menu/menu": "^2.0.0",
|
|
70
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
71
|
+
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
72
|
+
"@semantic-release/git": "^10.0.1",
|
|
73
|
+
"@semantic-release/github": "^11.0.1",
|
|
74
|
+
"@semantic-release/npm": "^12.0.0",
|
|
75
|
+
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
76
|
+
"@testing-library/react-native": "^13.3.3",
|
|
77
|
+
"@types/jest": "^30.0.0",
|
|
78
|
+
"@types/react": "^19.3.0",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
80
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
81
|
+
"babel-preset-expo": "~58.0.0",
|
|
82
|
+
"commitlint": "^20.1.0",
|
|
83
|
+
"conventional-changelog-conventionalcommits": "^7.0.2",
|
|
84
|
+
"eslint": "^9.39.1",
|
|
85
|
+
"eslint-config-prettier": "^10.1.8",
|
|
86
|
+
"eslint-plugin-import": "^2.32.0",
|
|
87
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
88
|
+
"expo": "~58.0.16",
|
|
89
|
+
"expo-haptics": "~58.0.7",
|
|
90
|
+
"expo-linear-gradient": "~58.0.3",
|
|
91
|
+
"husky": "^9.1.7",
|
|
92
|
+
"jest": "^30.5.2",
|
|
93
|
+
"jest-expo": "~58.0.11",
|
|
94
|
+
"lint-staged": "^16.2.7",
|
|
95
|
+
"prettier": "^3.6.2",
|
|
96
|
+
"react": "^19.3.1",
|
|
97
|
+
"react-native": "0.88.0",
|
|
98
|
+
"react-native-gesture-handler": "~3.3.0",
|
|
99
|
+
"react-native-reanimated": "^4.7.1",
|
|
100
|
+
"react-native-safe-area-context": "~5.10.1",
|
|
101
|
+
"react-native-svg": "^15.16.0",
|
|
102
|
+
"react-native-worklets": "^0.13.0",
|
|
103
|
+
"react-test-renderer": "^19.3.1",
|
|
104
|
+
"semantic-release": "^24.2.0",
|
|
105
|
+
"ts-node": "^10.9.2",
|
|
106
|
+
"typescript": "^5.9.3"
|
|
107
|
+
},
|
|
108
|
+
"publishConfig": {
|
|
109
|
+
"access": "public",
|
|
110
|
+
"registry": "https://registry.npmjs.org/"
|
|
111
|
+
},
|
|
112
|
+
"repository": {
|
|
113
|
+
"type": "git",
|
|
114
|
+
"url": "git+https://github.com/pallasoft/ps-mobile-components.git"
|
|
115
|
+
}
|
|
116
|
+
}
|