@pallasoft/ps-mobile-components 0.0.0-stage → 1.1.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 +102 -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 +6 -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-remote-data-update.d.ts +1 -0
- package/dist/interfaces/ps-remote-data-update.js +1 -0
- package/dist/interfaces/ps-remote-data-write.d.ts +4 -0
- package/dist/interfaces/ps-remote-data-write.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-remote-data-service.d.ts +6 -0
- package/dist/services/ps-remote-data-service.js +13 -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,7 @@
|
|
|
1
|
+
export declare class PsDocumentPagerService {
|
|
2
|
+
static clampIndex(index: number, count: number): number;
|
|
3
|
+
static counter(index: number, count: number): string;
|
|
4
|
+
static hasMany(count: number): boolean;
|
|
5
|
+
static offset(index: number, width: number): number;
|
|
6
|
+
static pageIndex(offsetX: number, width: number, count: number): number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PsDocumentConfig } from '../constants/ps-document-config';
|
|
2
|
+
export class PsDocumentPagerService {
|
|
3
|
+
static clampIndex(index, count) {
|
|
4
|
+
return Math.max(0, Math.min(count - 1, index));
|
|
5
|
+
}
|
|
6
|
+
static counter(index, count) {
|
|
7
|
+
return `${index + 1}${PsDocumentConfig.counterSeparator}${count}`;
|
|
8
|
+
}
|
|
9
|
+
static hasMany(count) {
|
|
10
|
+
return count > 1;
|
|
11
|
+
}
|
|
12
|
+
static offset(index, width) {
|
|
13
|
+
return index * width;
|
|
14
|
+
}
|
|
15
|
+
static pageIndex(offsetX, width, count) {
|
|
16
|
+
return width <= 0 ? 0 : PsDocumentPagerService.clampIndex(Math.round(offsetX / width), count);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PsDocumentScannerOptions } from '../interfaces/ps-document-scanner-options';
|
|
2
|
+
import type { PsScannedFile } from '../interfaces/ps-scanned-file';
|
|
3
|
+
export declare class PsDocumentScannerService {
|
|
4
|
+
static isAvailable(): boolean;
|
|
5
|
+
static scan(options: PsDocumentScannerOptions): Promise<PsScannedFile[]>;
|
|
6
|
+
static toFiles(uris: string[], fileName?: string): PsScannedFile[];
|
|
7
|
+
static quality(jpegQuality?: number): number;
|
|
8
|
+
static pageLimit(maxPages?: number): number | null;
|
|
9
|
+
private static load;
|
|
10
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { PsDocumentScannerConfig } from '../constants/ps-document-scanner-config';
|
|
2
|
+
export class PsDocumentScannerService {
|
|
3
|
+
static isAvailable() {
|
|
4
|
+
return PsDocumentScannerService.load() !== null;
|
|
5
|
+
}
|
|
6
|
+
static async scan(options) {
|
|
7
|
+
const native = PsDocumentScannerService.load();
|
|
8
|
+
if (native === null)
|
|
9
|
+
return [];
|
|
10
|
+
const maxPages = PsDocumentScannerService.pageLimit(options.maxPages);
|
|
11
|
+
const response = await native.scanDocument({
|
|
12
|
+
croppedImageQuality: PsDocumentScannerService.quality(options.jpegQuality),
|
|
13
|
+
...(maxPages === null ? {} : { maxNumDocuments: maxPages }),
|
|
14
|
+
});
|
|
15
|
+
if (response.status !== PsDocumentScannerConfig.successStatus)
|
|
16
|
+
return [];
|
|
17
|
+
const uris = response.scannedImages === undefined ? [] : response.scannedImages;
|
|
18
|
+
const limited = maxPages === null ? uris : uris.slice(0, maxPages);
|
|
19
|
+
return PsDocumentScannerService.toFiles(limited, options.fileName);
|
|
20
|
+
}
|
|
21
|
+
static toFiles(uris, fileName) {
|
|
22
|
+
const base = fileName === undefined || fileName === ''
|
|
23
|
+
? PsDocumentScannerConfig.defaultFileName
|
|
24
|
+
: fileName;
|
|
25
|
+
return uris.map((uri, index) => ({
|
|
26
|
+
name: `${base}-${index + 1}.${PsDocumentScannerConfig.fileExtension}`,
|
|
27
|
+
type: PsDocumentScannerConfig.fileType,
|
|
28
|
+
uri,
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
31
|
+
static quality(jpegQuality) {
|
|
32
|
+
if (jpegQuality === undefined)
|
|
33
|
+
return PsDocumentScannerConfig.defaultJpegQuality;
|
|
34
|
+
return Math.min(PsDocumentScannerConfig.maxJpegQuality, Math.max(PsDocumentScannerConfig.minJpegQuality, Math.round(jpegQuality)));
|
|
35
|
+
}
|
|
36
|
+
static pageLimit(maxPages) {
|
|
37
|
+
return maxPages === undefined || maxPages < 1 ? null : Math.floor(maxPages);
|
|
38
|
+
}
|
|
39
|
+
static load() {
|
|
40
|
+
try {
|
|
41
|
+
const loaded = require('react-native-document-scanner-plugin');
|
|
42
|
+
return typeof loaded.default.scanDocument === 'function' ? loaded.default : null;
|
|
43
|
+
}
|
|
44
|
+
catch {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class PsDocumentZoomService {
|
|
2
|
+
static clampAxis(value: number, container: number, scale: number): number;
|
|
3
|
+
static clampScale(scale: number): number;
|
|
4
|
+
static dragOffset(translationY: number): number;
|
|
5
|
+
static focalOffset(tap: number, container: number, scale: number): number;
|
|
6
|
+
static isZoomed(scale: number): boolean;
|
|
7
|
+
static nextTapScale(scale: number): number;
|
|
8
|
+
static shouldDismiss(translationY: number, velocityY: number): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PsDocumentConfig } from '../constants/ps-document-config';
|
|
2
|
+
export class PsDocumentZoomService {
|
|
3
|
+
static clampAxis(value, container, scale) {
|
|
4
|
+
const limit = (container * (scale - 1)) / 2;
|
|
5
|
+
return Math.min(limit, Math.max(-limit, value));
|
|
6
|
+
}
|
|
7
|
+
static clampScale(scale) {
|
|
8
|
+
return Math.min(PsDocumentConfig.maxZoom, Math.max(PsDocumentConfig.minZoom, scale));
|
|
9
|
+
}
|
|
10
|
+
static dragOffset(translationY) {
|
|
11
|
+
return Math.max(0, translationY);
|
|
12
|
+
}
|
|
13
|
+
static focalOffset(tap, container, scale) {
|
|
14
|
+
return PsDocumentZoomService.clampAxis((container / 2 - tap) * (scale - 1), container, scale);
|
|
15
|
+
}
|
|
16
|
+
static isZoomed(scale) {
|
|
17
|
+
return scale > PsDocumentConfig.minZoom + PsDocumentConfig.scaleEpsilon;
|
|
18
|
+
}
|
|
19
|
+
static nextTapScale(scale) {
|
|
20
|
+
return PsDocumentZoomService.isZoomed(scale)
|
|
21
|
+
? PsDocumentConfig.minZoom
|
|
22
|
+
: PsDocumentConfig.doubleTapScale;
|
|
23
|
+
}
|
|
24
|
+
static shouldDismiss(translationY, velocityY) {
|
|
25
|
+
return (translationY >= PsDocumentConfig.dismissDistance ||
|
|
26
|
+
(translationY > 0 && velocityY >= PsDocumentConfig.dismissVelocity));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PsFilterBarLabels } from '../interfaces/ps-filter-bar-labels';
|
|
2
|
+
import type { PsFilterChip } from '../interfaces/ps-filter-chip';
|
|
3
|
+
import type { PsFilterGroup } from '../interfaces/ps-filter-group';
|
|
4
|
+
import type { PsFilterOption } from '../interfaces/ps-filter-option';
|
|
5
|
+
export declare class PsFilterService {
|
|
6
|
+
static values(groups: PsFilterGroup[]): Record<string, string>;
|
|
7
|
+
static cleared(groups: PsFilterGroup[]): Record<string, string>;
|
|
8
|
+
static chips(groups: PsFilterGroup[]): PsFilterChip[];
|
|
9
|
+
static without(groups: PsFilterGroup[], groupId: string): Record<string, string>;
|
|
10
|
+
static menuOptions(group: PsFilterGroup, labels: PsFilterBarLabels): PsFilterOption[];
|
|
11
|
+
static chipLabel(group: PsFilterGroup): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export class PsFilterService {
|
|
2
|
+
static values(groups) {
|
|
3
|
+
return Object.fromEntries(groups.map((group) => [group.id, group.value]));
|
|
4
|
+
}
|
|
5
|
+
static cleared(groups) {
|
|
6
|
+
return Object.fromEntries(groups.map((group) => [group.id, '']));
|
|
7
|
+
}
|
|
8
|
+
static chips(groups) {
|
|
9
|
+
return groups.flatMap((group) => {
|
|
10
|
+
const option = group.options.find((item) => item.value === group.value);
|
|
11
|
+
return group.value === '' || option === undefined
|
|
12
|
+
? []
|
|
13
|
+
: [{ groupId: group.id, label: `${group.label}: ${option.label}` }];
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
static without(groups, groupId) {
|
|
17
|
+
return { ...PsFilterService.values(groups), [groupId]: '' };
|
|
18
|
+
}
|
|
19
|
+
static menuOptions(group, labels) {
|
|
20
|
+
return [{ label: labels.all, value: '' }, ...group.options];
|
|
21
|
+
}
|
|
22
|
+
static chipLabel(group) {
|
|
23
|
+
const option = group.options.find((item) => item.value === group.value);
|
|
24
|
+
return group.value === '' || option === undefined
|
|
25
|
+
? group.label
|
|
26
|
+
: `${group.label}: ${option.label}`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as Haptics from 'expo-haptics';
|
|
2
|
+
export class PsHapticService {
|
|
3
|
+
static play(kind, isEnabled) {
|
|
4
|
+
if (!isEnabled)
|
|
5
|
+
return;
|
|
6
|
+
void PsHapticService.run(kind).catch(() => undefined);
|
|
7
|
+
}
|
|
8
|
+
static run(kind) {
|
|
9
|
+
switch (kind) {
|
|
10
|
+
case 'selection':
|
|
11
|
+
return Haptics.selectionAsync();
|
|
12
|
+
case 'light':
|
|
13
|
+
return Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
|
|
14
|
+
case 'medium':
|
|
15
|
+
return Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);
|
|
16
|
+
case 'heavy':
|
|
17
|
+
return Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy);
|
|
18
|
+
case 'success':
|
|
19
|
+
return Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
|
|
20
|
+
case 'warning':
|
|
21
|
+
return Haptics.notificationAsync(Haptics.NotificationFeedbackType.Warning);
|
|
22
|
+
default:
|
|
23
|
+
return Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PsIconConfig, PsIconFit } from '@pallasoft/ps-icons';
|
|
2
|
+
export class PsIconFitService {
|
|
3
|
+
static transform(iconKey) {
|
|
4
|
+
const fit = PsIconFit[iconKey];
|
|
5
|
+
if (fit === undefined)
|
|
6
|
+
return undefined;
|
|
7
|
+
const center = PsIconConfig.center;
|
|
8
|
+
return `translate(${center} ${center}) scale(${fit.scale}) translate(${-fit.centerX} ${-fit.centerY})`;
|
|
9
|
+
}
|
|
10
|
+
static strokeWidth(iconKey) {
|
|
11
|
+
const fit = PsIconFit[iconKey];
|
|
12
|
+
if (fit === undefined)
|
|
13
|
+
return PsIconConfig.strokeWidth;
|
|
14
|
+
return PsIconConfig.strokeWidth / fit.scale;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { KeyboardTypeOptions } from 'react-native';
|
|
2
|
+
import type { PsTextFieldType } from '../interfaces/ps-text-field-type';
|
|
3
|
+
export declare class PsKeyboardService {
|
|
4
|
+
static isSecure(type: PsTextFieldType): boolean;
|
|
5
|
+
static isFree(type: PsTextFieldType): boolean;
|
|
6
|
+
static keyboardType(type: PsTextFieldType): KeyboardTypeOptions;
|
|
7
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export class PsKeyboardService {
|
|
2
|
+
static isSecure(type) {
|
|
3
|
+
return type === 'password';
|
|
4
|
+
}
|
|
5
|
+
static isFree(type) {
|
|
6
|
+
return type === 'text';
|
|
7
|
+
}
|
|
8
|
+
static keyboardType(type) {
|
|
9
|
+
switch (type) {
|
|
10
|
+
case 'email':
|
|
11
|
+
return 'email-address';
|
|
12
|
+
case 'number':
|
|
13
|
+
return 'numeric';
|
|
14
|
+
case 'tel':
|
|
15
|
+
return 'phone-pad';
|
|
16
|
+
case 'url':
|
|
17
|
+
return 'url';
|
|
18
|
+
default:
|
|
19
|
+
return 'default';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import type { PsMenuItem } from '../interfaces/ps-menu-item';
|
|
3
|
+
export type PsListVariant = 'grouped' | 'plain';
|
|
4
|
+
export declare class PsListService {
|
|
5
|
+
static hasGutter(variant: PsListVariant): boolean;
|
|
6
|
+
static interleave(children: ReactNode, createDivider: (key: string) => ReactElement): ReactNode[];
|
|
7
|
+
static swipes(leading?: PsMenuItem, trailing?: PsMenuItem): PsMenuItem[];
|
|
8
|
+
static menuItems(actions?: PsMenuItem[], swipeActions?: PsMenuItem[]): PsMenuItem[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Children } from 'react';
|
|
2
|
+
export class PsListService {
|
|
3
|
+
static hasGutter(variant) {
|
|
4
|
+
return variant !== 'plain';
|
|
5
|
+
}
|
|
6
|
+
static interleave(children, createDivider) {
|
|
7
|
+
return Children.toArray(children).flatMap((child, index) => index === 0 ? [child] : [createDivider(`ps-list-divider-${index}`), child]);
|
|
8
|
+
}
|
|
9
|
+
static swipes(leading, trailing) {
|
|
10
|
+
return [leading, trailing].filter((item) => item !== undefined);
|
|
11
|
+
}
|
|
12
|
+
static menuItems(actions, swipeActions) {
|
|
13
|
+
const first = actions === undefined ? [] : actions;
|
|
14
|
+
const second = swipeActions === undefined ? [] : swipeActions;
|
|
15
|
+
const ids = new Set(first.map((item) => item.id));
|
|
16
|
+
return [...first, ...second.filter((item) => !ids.has(item.id))];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PsListSkeletonLayout, PsListSkeletonResolved, PsSkeletonRowLayout } from '../components/ps-list/ps-list-props';
|
|
2
|
+
export declare class PsListSkeletonService {
|
|
3
|
+
static resolve(layout: PsListSkeletonLayout | undefined): PsListSkeletonResolved;
|
|
4
|
+
static rows(shape: PsListSkeletonResolved): PsSkeletonRowLayout[];
|
|
5
|
+
static keys(count: number, prefix: string): string[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PsListConfig } from '../constants/ps-list-config';
|
|
2
|
+
export class PsListSkeletonService {
|
|
3
|
+
static resolve(layout) {
|
|
4
|
+
const given = layout === undefined ? {} : layout;
|
|
5
|
+
return {
|
|
6
|
+
hasLeadingIcon: given.hasLeadingIcon === true,
|
|
7
|
+
hasSubtitle: given.hasSubtitle !== false,
|
|
8
|
+
hasValue: given.hasValue === true,
|
|
9
|
+
rowLayout: given.rowLayout,
|
|
10
|
+
rows: given.rows === undefined ? PsListConfig.skeletonRows : given.rows,
|
|
11
|
+
sections: given.sections === undefined ? PsListConfig.skeletonSections : given.sections,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
static rows(shape) {
|
|
15
|
+
if (shape.rowLayout !== undefined)
|
|
16
|
+
return shape.rowLayout;
|
|
17
|
+
return Array.from({ length: shape.rows }, () => ({}));
|
|
18
|
+
}
|
|
19
|
+
static keys(count, prefix) {
|
|
20
|
+
return Array.from({ length: count }, (_, index) => `${prefix}-${index}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
2
|
+
import type { PsMobileThemeInput } from '../interfaces/ps-mobile-theme-input';
|
|
3
|
+
export declare class PsMobileThemeService {
|
|
4
|
+
static create({ chart, hasHaptics, isDark, isReduceMotion, primary, primaryContrast, secondary, }: PsMobileThemeInput): PsMobileTheme;
|
|
5
|
+
private static light;
|
|
6
|
+
private static dark;
|
|
7
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { PallasoftBrandColorService, PallasoftChartColor, PallasoftColor, PallasoftDarkChartColor, PallasoftDarkColor, } from '@pallasoft/ps-design-system';
|
|
2
|
+
import { PsFontConfig } from '../constants/ps-font-config';
|
|
3
|
+
import { PsMobileControlConfig } from '../constants/ps-mobile-control-config';
|
|
4
|
+
import { PsMobileColorService } from './ps-mobile-color-service';
|
|
5
|
+
export class PsMobileThemeService {
|
|
6
|
+
static create({ chart, hasHaptics, isDark, isReduceMotion, primary, primaryContrast, secondary, }) {
|
|
7
|
+
const scheme = isDark
|
|
8
|
+
? PsMobileThemeService.dark(primary, primaryContrast)
|
|
9
|
+
: PsMobileThemeService.light(primary, primaryContrast);
|
|
10
|
+
const base = {
|
|
11
|
+
...scheme,
|
|
12
|
+
chart: chart === undefined || chart.length === 0 ? scheme.chart : chart,
|
|
13
|
+
hasHaptics: hasHaptics === undefined ? true : hasHaptics,
|
|
14
|
+
isReduceMotion: isReduceMotion === undefined ? false : isReduceMotion,
|
|
15
|
+
};
|
|
16
|
+
const fallback = isDark ? PallasoftDarkColor.Accent : PallasoftColor.Accent;
|
|
17
|
+
const palette = PallasoftBrandColorService.palette(secondary === undefined ? fallback : secondary);
|
|
18
|
+
if (palette === null)
|
|
19
|
+
return base;
|
|
20
|
+
return {
|
|
21
|
+
...base,
|
|
22
|
+
secondary: palette.primary,
|
|
23
|
+
secondaryContrast: palette.contrast,
|
|
24
|
+
secondarySoft: isDark ? palette.softDark : palette.softLight,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
static light(primary, primaryContrast) {
|
|
28
|
+
return {
|
|
29
|
+
accent: PallasoftColor.Accent,
|
|
30
|
+
accentSoft: PallasoftColor.Mist,
|
|
31
|
+
background: PallasoftColor.Background,
|
|
32
|
+
chart: [
|
|
33
|
+
PallasoftChartColor.Chart1,
|
|
34
|
+
PallasoftChartColor.Chart2,
|
|
35
|
+
PallasoftChartColor.Chart3,
|
|
36
|
+
PallasoftChartColor.Chart4,
|
|
37
|
+
PallasoftChartColor.Chart5,
|
|
38
|
+
],
|
|
39
|
+
danger: PallasoftColor.Danger,
|
|
40
|
+
dangerSoft: PallasoftColor.DangerSoft,
|
|
41
|
+
fonts: PsFontConfig,
|
|
42
|
+
ink: PallasoftColor.Ink,
|
|
43
|
+
hasHaptics: true,
|
|
44
|
+
isDark: false,
|
|
45
|
+
isReduceMotion: false,
|
|
46
|
+
line: PallasoftColor.Line,
|
|
47
|
+
muted: PallasoftColor.Muted,
|
|
48
|
+
overlay: PsMobileColorService.withAlpha(PallasoftColor.Ink, PsMobileControlConfig.overlayAlpha),
|
|
49
|
+
primary,
|
|
50
|
+
primaryContrast,
|
|
51
|
+
primarySoft: PsMobileColorService.withAlpha(primary, PsMobileControlConfig.softAlphaLight),
|
|
52
|
+
secondary: PallasoftColor.Accent,
|
|
53
|
+
secondaryContrast: PallasoftColor.White,
|
|
54
|
+
secondarySoft: PallasoftColor.Mist,
|
|
55
|
+
skeletonBase: PsMobileColorService.withAlpha(PallasoftColor.Ink, PsMobileControlConfig.skeletonBaseAlpha.light),
|
|
56
|
+
skeletonSweep: PsMobileColorService.withAlpha(PallasoftColor.Ink, PsMobileControlConfig.skeletonSweepAlpha.light),
|
|
57
|
+
success: PallasoftColor.Success,
|
|
58
|
+
successSoft: PallasoftColor.SuccessSoft,
|
|
59
|
+
surface: PallasoftColor.White,
|
|
60
|
+
warning: PallasoftColor.Warning,
|
|
61
|
+
warningSoft: PallasoftColor.WarningSoft,
|
|
62
|
+
white: PallasoftColor.White,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
static dark(primary, primaryContrast) {
|
|
66
|
+
const alpha = PsMobileControlConfig.softAlphaDark;
|
|
67
|
+
return {
|
|
68
|
+
accent: PallasoftDarkColor.Accent,
|
|
69
|
+
accentSoft: PallasoftDarkColor.AccentSoft,
|
|
70
|
+
background: PallasoftDarkColor.Background,
|
|
71
|
+
chart: [
|
|
72
|
+
PallasoftDarkChartColor.Chart1,
|
|
73
|
+
PallasoftDarkChartColor.Chart2,
|
|
74
|
+
PallasoftDarkChartColor.Chart3,
|
|
75
|
+
PallasoftDarkChartColor.Chart4,
|
|
76
|
+
PallasoftDarkChartColor.Chart5,
|
|
77
|
+
],
|
|
78
|
+
danger: PallasoftDarkColor.Danger,
|
|
79
|
+
dangerSoft: PallasoftDarkColor.DangerSoft,
|
|
80
|
+
fonts: PsFontConfig,
|
|
81
|
+
ink: PallasoftDarkColor.Ink,
|
|
82
|
+
hasHaptics: true,
|
|
83
|
+
isDark: true,
|
|
84
|
+
isReduceMotion: false,
|
|
85
|
+
line: PallasoftDarkColor.Line,
|
|
86
|
+
muted: PallasoftDarkColor.Muted,
|
|
87
|
+
overlay: PsMobileColorService.withAlpha(PallasoftDarkColor.Background, PsMobileControlConfig.overlayAlphaDark),
|
|
88
|
+
primary,
|
|
89
|
+
primaryContrast,
|
|
90
|
+
primarySoft: PsMobileColorService.withAlpha(primary, alpha),
|
|
91
|
+
secondary: PallasoftDarkColor.Accent,
|
|
92
|
+
secondaryContrast: PallasoftDarkColor.White,
|
|
93
|
+
secondarySoft: PallasoftDarkColor.AccentSoft,
|
|
94
|
+
skeletonBase: PsMobileColorService.withAlpha(PallasoftDarkColor.Ink, PsMobileControlConfig.skeletonBaseAlpha.dark),
|
|
95
|
+
skeletonSweep: PsMobileColorService.withAlpha(PallasoftDarkColor.Ink, PsMobileControlConfig.skeletonSweepAlpha.dark),
|
|
96
|
+
success: PallasoftDarkColor.Success,
|
|
97
|
+
successSoft: PallasoftDarkColor.SuccessSoft,
|
|
98
|
+
surface: PallasoftDarkColor.Surface,
|
|
99
|
+
warning: PallasoftDarkColor.Warning,
|
|
100
|
+
warningSoft: PallasoftDarkColor.WarningSoft,
|
|
101
|
+
white: PallasoftDarkColor.White,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { PsSelectOption } from '../components/ps-select/ps-select-props';
|
|
2
|
+
import type { PsNativeMenuItem } from '../interfaces/ps-native-menu-item';
|
|
3
|
+
export declare class PsNativeMenuService {
|
|
4
|
+
static items(options: PsSelectOption[], value: string): PsNativeMenuItem[];
|
|
5
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PsNativeMenuConfig } from '../constants/ps-native-menu-config';
|
|
2
|
+
export class PsNativeMenuService {
|
|
3
|
+
static items(options, value) {
|
|
4
|
+
return options.map((option) => {
|
|
5
|
+
const isSelected = option.value === value;
|
|
6
|
+
return {
|
|
7
|
+
isSelected,
|
|
8
|
+
label: option.label,
|
|
9
|
+
systemImage: isSelected ? PsNativeMenuConfig.selectedSymbol : undefined,
|
|
10
|
+
value: option.value,
|
|
11
|
+
};
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PsPageHeaderConfig } from '../constants/ps-page-header-config';
|
|
2
|
+
import { PsTextConfig } from '../constants/ps-text-config';
|
|
3
|
+
export class PsPageHeaderService {
|
|
4
|
+
static layout() {
|
|
5
|
+
const gap = PsPageHeaderConfig.buttonSize - PsTextConfig.title.lineHeight;
|
|
6
|
+
return {
|
|
7
|
+
actionOffset: Math.max(0, -gap / 2),
|
|
8
|
+
titleOffset: Math.max(0, gap / 2),
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { PsRemoteDataUpdate } from '../interfaces/ps-remote-data-update';
|
|
2
|
+
export declare class PsRemoteDataService {
|
|
3
|
+
static rowsOf<T>(data: T | null): T[];
|
|
4
|
+
static apply<T>(rows: T[], updates: PsRemoteDataUpdate<T>[]): T[];
|
|
5
|
+
static shown<T>(rows: T[]): T | null;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export class PsRemoteDataService {
|
|
2
|
+
static rowsOf(data) {
|
|
3
|
+
return data === null ? [] : [data];
|
|
4
|
+
}
|
|
5
|
+
static apply(rows, updates) {
|
|
6
|
+
if (rows.length === 0)
|
|
7
|
+
return rows;
|
|
8
|
+
return [updates.reduce((current, update) => update(current), rows[0])];
|
|
9
|
+
}
|
|
10
|
+
static shown(rows) {
|
|
11
|
+
return rows.length === 0 ? null : rows[0];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { PsScreenInsets } from '../interfaces/ps-screen-insets';
|
|
3
|
+
export declare class PsScreenService {
|
|
4
|
+
static content(insets: PsScreenInsets, isIos: boolean, hasGutter: boolean, gap: number): ViewStyle;
|
|
5
|
+
static statusBarScrim(top: number): ViewStyle;
|
|
6
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PsLayoutConfig } from '../constants/ps-layout-config';
|
|
2
|
+
export class PsScreenService {
|
|
3
|
+
static content(insets, isIos, hasGutter, gap) {
|
|
4
|
+
const gutter = hasGutter ? PsLayoutConfig.gutter : 0;
|
|
5
|
+
return {
|
|
6
|
+
gap,
|
|
7
|
+
paddingBottom: (isIos ? 0 : insets.bottom) + gutter,
|
|
8
|
+
paddingHorizontal: gutter,
|
|
9
|
+
paddingTop: (isIos ? 0 : insets.top) + gutter,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
static statusBarScrim(top) {
|
|
13
|
+
return { height: top, left: 0, position: 'absolute', right: 0, top: 0 };
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PsSegmentedControlConfig } from '../constants/ps-segmented-control-config';
|
|
2
|
+
export class PsSegmentedControlService {
|
|
3
|
+
static thumbWidth(trackWidth, count) {
|
|
4
|
+
if (count === 0)
|
|
5
|
+
return 0;
|
|
6
|
+
return (trackWidth - PsSegmentedControlConfig.padding * 2) / count;
|
|
7
|
+
}
|
|
8
|
+
static thumbOffset(trackWidth, count, index) {
|
|
9
|
+
return PsSegmentedControlService.thumbWidth(trackWidth, count) * Math.max(index, 0);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { PsControlState } from '../interfaces/ps-control-state';
|
|
3
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
4
|
+
export declare class PsSelectStyleService {
|
|
5
|
+
static pill(theme: PsMobileTheme, state: PsControlState): ViewStyle;
|
|
6
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PsMobileControlConfig } from '../constants/ps-mobile-control-config';
|
|
2
|
+
import { PsControlStyleService } from './ps-control-style-service';
|
|
3
|
+
export class PsSelectStyleService {
|
|
4
|
+
static pill(theme, state) {
|
|
5
|
+
return {
|
|
6
|
+
...PsControlStyleService.container(theme, state),
|
|
7
|
+
borderRadius: PsMobileControlConfig.pillRadius,
|
|
8
|
+
minHeight: PsMobileControlConfig.controlHeights.compact,
|
|
9
|
+
paddingHorizontal: PsMobileControlConfig.controlPaddingX.compact,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PsSheetAction } from '../interfaces/ps-sheet-action';
|
|
2
|
+
export declare class PsSheetService {
|
|
3
|
+
static maxHeight(windowHeight: number): number;
|
|
4
|
+
static bottomPadding(isFloating: boolean, bottomInset: number): number;
|
|
5
|
+
static fittedHeight(headerHeight: number, bodyHeight: number, windowHeight: number): number;
|
|
6
|
+
static closeAction(label: string | undefined, onPress: () => void): PsSheetAction | undefined;
|
|
7
|
+
static isActionInactive(action: PsSheetAction): boolean;
|
|
8
|
+
static actionOpacity(action: PsSheetAction, isPressed: boolean): number;
|
|
9
|
+
static shouldClose(isPresented: boolean, isOpen: boolean, isDismissBlocked: boolean): boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PsLayoutConfig } from '../constants/ps-layout-config';
|
|
2
|
+
import { PsSheetConfig } from '../constants/ps-sheet-config';
|
|
3
|
+
export class PsSheetService {
|
|
4
|
+
static maxHeight(windowHeight) {
|
|
5
|
+
return Math.floor(windowHeight * PsSheetConfig.maxHeightFraction);
|
|
6
|
+
}
|
|
7
|
+
static bottomPadding(isFloating, bottomInset) {
|
|
8
|
+
return PsLayoutConfig.sheetGutter + (isFloating ? 0 : bottomInset);
|
|
9
|
+
}
|
|
10
|
+
static fittedHeight(headerHeight, bodyHeight, windowHeight) {
|
|
11
|
+
return Math.min(Math.ceil(headerHeight + bodyHeight), PsSheetService.maxHeight(windowHeight));
|
|
12
|
+
}
|
|
13
|
+
static closeAction(label, onPress) {
|
|
14
|
+
return label === undefined ? undefined : { label, onPress };
|
|
15
|
+
}
|
|
16
|
+
static isActionInactive(action) {
|
|
17
|
+
return action.isDisabled === true || action.isSubmitting === true;
|
|
18
|
+
}
|
|
19
|
+
static actionOpacity(action, isPressed) {
|
|
20
|
+
if (action.isDisabled === true) {
|
|
21
|
+
return PsSheetConfig.pressedOpacity;
|
|
22
|
+
}
|
|
23
|
+
return isPressed ? PsSheetConfig.pressedOpacity : 1;
|
|
24
|
+
}
|
|
25
|
+
static shouldClose(isPresented, isOpen, isDismissBlocked) {
|
|
26
|
+
return !isPresented && isOpen && !isDismissBlocked;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { PsMobileTheme } from '../interfaces/ps-mobile-theme';
|
|
2
|
+
import type { PsSignInSurface } from '../interfaces/ps-sign-in-surface';
|
|
3
|
+
export declare class PsSignInSurfaceService {
|
|
4
|
+
static readonly darkFillAlpha = 0.1;
|
|
5
|
+
static readonly darkBorderAlpha = 0.15;
|
|
6
|
+
static resolve(theme: PsMobileTheme, size: 'default' | 'large'): PsSignInSurface;
|
|
7
|
+
}
|