@spscommerce/ds-react 5.20.2 → 5.20.3-ie
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/out-tsc/_template/SpsComponent.d.ts +15 -0
- package/dist/out-tsc/_template/SpsComponent.examples.d.ts +2 -0
- package/dist/out-tsc/_template/SpsComponent.examples.js +17 -0
- package/dist/out-tsc/_template/SpsComponent.examples.js.map +1 -0
- package/dist/out-tsc/_template/SpsComponent.js +44 -0
- package/dist/out-tsc/_template/SpsComponent.js.map +1 -0
- package/dist/out-tsc/_template/index.d.ts +2 -0
- package/dist/out-tsc/_template/index.js +3 -0
- package/dist/out-tsc/_template/index.js.map +1 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.d.ts +22 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.d.ts +2 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.js +43 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.js.map +1 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.js +58 -0
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.js.map +1 -0
- package/dist/out-tsc/advanced-search/index.d.ts +2 -0
- package/dist/out-tsc/advanced-search/index.js +3 -0
- package/dist/out-tsc/advanced-search/index.js.map +1 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.d.ts +29 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.d.ts +2 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.js +37 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.js.map +1 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.js +141 -0
- package/dist/out-tsc/autocomplete/SpsAutocomplete.js.map +1 -0
- package/dist/out-tsc/autocomplete/index.d.ts +2 -0
- package/dist/out-tsc/autocomplete/index.js +3 -0
- package/dist/out-tsc/autocomplete/index.js.map +1 -0
- package/dist/out-tsc/button/SpsButton.d.ts +18 -0
- package/dist/out-tsc/button/SpsButton.examples.d.ts +2 -0
- package/dist/out-tsc/button/SpsButton.examples.js +201 -0
- package/dist/out-tsc/button/SpsButton.examples.js.map +1 -0
- package/dist/out-tsc/button/SpsButton.js +67 -0
- package/dist/out-tsc/button/SpsButton.js.map +1 -0
- package/dist/out-tsc/button/SpsButtonGroup.d.ts +10 -0
- package/dist/out-tsc/button/SpsButtonGroup.js +68 -0
- package/dist/out-tsc/button/SpsButtonGroup.js.map +1 -0
- package/dist/out-tsc/button/SpsIconButtonPanel.d.ts +10 -0
- package/dist/out-tsc/button/SpsIconButtonPanel.js +61 -0
- package/dist/out-tsc/button/SpsIconButtonPanel.js.map +1 -0
- package/dist/out-tsc/button/index.d.ts +4 -0
- package/dist/out-tsc/button/index.js +5 -0
- package/dist/out-tsc/button/index.js.map +1 -0
- package/dist/out-tsc/card/SpsCard.d.ts +16 -0
- package/dist/out-tsc/card/SpsCard.examples.d.ts +2 -0
- package/dist/out-tsc/card/SpsCard.examples.js +98 -0
- package/dist/out-tsc/card/SpsCard.examples.js.map +1 -0
- package/dist/out-tsc/card/SpsCard.js +90 -0
- package/dist/out-tsc/card/SpsCard.js.map +1 -0
- package/dist/out-tsc/card/SpsCardHeader.d.ts +14 -0
- package/dist/out-tsc/card/SpsCardHeader.js +49 -0
- package/dist/out-tsc/card/SpsCardHeader.js.map +1 -0
- package/dist/out-tsc/card/SpsCardTabbedPane.d.ts +19 -0
- package/dist/out-tsc/card/SpsCardTabbedPane.js +63 -0
- package/dist/out-tsc/card/SpsCardTabbedPane.js.map +1 -0
- package/dist/out-tsc/card/index.d.ts +3 -0
- package/dist/out-tsc/card/index.js +4 -0
- package/dist/out-tsc/card/index.js.map +1 -0
- package/dist/out-tsc/card/useTab.d.ts +18 -0
- package/dist/out-tsc/card/useTab.js +110 -0
- package/dist/out-tsc/card/useTab.js.map +1 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.d.ts +21 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.d.ts +2 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.js +35 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.js.map +1 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.js +88 -0
- package/dist/out-tsc/checkbox/SpsCheckbox.js.map +1 -0
- package/dist/out-tsc/checkbox/index.d.ts +2 -0
- package/dist/out-tsc/checkbox/index.js +3 -0
- package/dist/out-tsc/checkbox/index.js.map +1 -0
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.d.ts +17 -0
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.js +54 -0
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.js.map +1 -0
- package/dist/out-tsc/checkbox-dropdown/index.d.ts +1 -0
- package/dist/out-tsc/checkbox-dropdown/index.js +2 -0
- package/dist/out-tsc/checkbox-dropdown/index.js.map +1 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.d.ts +16 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.d.ts +2 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.js +42 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.js.map +1 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.js +74 -0
- package/dist/out-tsc/clickable-tag/SpsClickableTag.js.map +1 -0
- package/dist/out-tsc/clickable-tag/index.d.ts +2 -0
- package/dist/out-tsc/clickable-tag/index.js +3 -0
- package/dist/out-tsc/clickable-tag/index.js.map +1 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.d.ts +19 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.d.ts +2 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.js +18 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.js.map +1 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.js +158 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooser.js.map +1 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.d.ts +17 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.js +61 -0
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.js.map +1 -0
- package/dist/out-tsc/column-chooser/index.d.ts +3 -0
- package/dist/out-tsc/column-chooser/index.js +4 -0
- package/dist/out-tsc/column-chooser/index.js.map +1 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.d.ts +11 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.d.ts +2 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.js +20 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.js.map +1 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.js +39 -0
- package/dist/out-tsc/conditional-field/SpsConditionalField.js.map +1 -0
- package/dist/out-tsc/conditional-field/index.d.ts +2 -0
- package/dist/out-tsc/conditional-field/index.js +3 -0
- package/dist/out-tsc/conditional-field/index.js.map +1 -0
- package/dist/out-tsc/content-row/SpsContentRow.d.ts +22 -0
- package/dist/out-tsc/content-row/SpsContentRow.examples.d.ts +2 -0
- package/dist/out-tsc/content-row/SpsContentRow.examples.js +51 -0
- package/dist/out-tsc/content-row/SpsContentRow.examples.js.map +1 -0
- package/dist/out-tsc/content-row/SpsContentRow.js +105 -0
- package/dist/out-tsc/content-row/SpsContentRow.js.map +1 -0
- package/dist/out-tsc/content-row/SpsContentRowCol.d.ts +15 -0
- package/dist/out-tsc/content-row/SpsContentRowCol.js +57 -0
- package/dist/out-tsc/content-row/SpsContentRowCol.js.map +1 -0
- package/dist/out-tsc/content-row/SpsContentRowExpansion.d.ts +10 -0
- package/dist/out-tsc/content-row/SpsContentRowExpansion.js +38 -0
- package/dist/out-tsc/content-row/SpsContentRowExpansion.js.map +1 -0
- package/dist/out-tsc/content-row/index.d.ts +4 -0
- package/dist/out-tsc/content-row/index.js +5 -0
- package/dist/out-tsc/content-row/index.js.map +1 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.d.ts +18 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.d.ts +2 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.js +20 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.js.map +1 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.js +82 -0
- package/dist/out-tsc/currency-input/SpsCurrencyInput.js.map +1 -0
- package/dist/out-tsc/currency-input/index.d.ts +2 -0
- package/dist/out-tsc/currency-input/index.js +3 -0
- package/dist/out-tsc/currency-input/index.js.map +1 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.d.ts +23 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.d.ts +2 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.js +42 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.js.map +1 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.js +635 -0
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.js.map +1 -0
- package/dist/out-tsc/dateRangePicker/index.d.ts +2 -0
- package/dist/out-tsc/dateRangePicker/index.js +3 -0
- package/dist/out-tsc/dateRangePicker/index.js.map +1 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.d.ts +19 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.d.ts +2 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.js +33 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.js.map +1 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.js +427 -0
- package/dist/out-tsc/datepicker/SpsDatepicker.js.map +1 -0
- package/dist/out-tsc/datepicker/index.d.ts +2 -0
- package/dist/out-tsc/datepicker/index.js +3 -0
- package/dist/out-tsc/datepicker/index.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.d.ts +21 -0
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.js +213 -0
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.d.ts +18 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.js +140 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.d.ts +13 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.js +65 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.d.ts +18 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.js +111 -0
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/index.d.ts +4 -0
- package/dist/out-tsc/datepicker-v2/index.js +5 -0
- package/dist/out-tsc/datepicker-v2/index.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/useCalendar.d.ts +2 -0
- package/dist/out-tsc/datepicker-v2/useCalendar.js +58 -0
- package/dist/out-tsc/datepicker-v2/useCalendar.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/useMoment.d.ts +3 -0
- package/dist/out-tsc/datepicker-v2/useMoment.js +24 -0
- package/dist/out-tsc/datepicker-v2/useMoment.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/utils.d.ts +23 -0
- package/dist/out-tsc/datepicker-v2/utils.js +169 -0
- package/dist/out-tsc/datepicker-v2/utils.js.map +1 -0
- package/dist/out-tsc/datepicker-v2/validation.d.ts +10 -0
- package/dist/out-tsc/datepicker-v2/validation.js +67 -0
- package/dist/out-tsc/datepicker-v2/validation.js.map +1 -0
- package/dist/out-tsc/datetime/SpsDateTime.d.ts +26 -0
- package/dist/out-tsc/datetime/SpsDateTime.examples.d.ts +2 -0
- package/dist/out-tsc/datetime/SpsDateTime.examples.js +21 -0
- package/dist/out-tsc/datetime/SpsDateTime.examples.js.map +1 -0
- package/dist/out-tsc/datetime/SpsDateTime.js +194 -0
- package/dist/out-tsc/datetime/SpsDateTime.js.map +1 -0
- package/dist/out-tsc/datetime/index.d.ts +2 -0
- package/dist/out-tsc/datetime/index.js +3 -0
- package/dist/out-tsc/datetime/index.js.map +1 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.d.ts +14 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.d.ts +2 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.js +47 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.js.map +1 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.js +65 -0
- package/dist/out-tsc/description-list/SpsDescriptionList.js.map +1 -0
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.d.ts +11 -0
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.js +46 -0
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.js.map +1 -0
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.d.ts +18 -0
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.js +92 -0
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.js.map +1 -0
- package/dist/out-tsc/description-list/index.d.ts +4 -0
- package/dist/out-tsc/description-list/index.js +5 -0
- package/dist/out-tsc/description-list/index.js.map +1 -0
- package/dist/out-tsc/dropdown/SpsDropdown.d.ts +26 -0
- package/dist/out-tsc/dropdown/SpsDropdown.examples.d.ts +2 -0
- package/dist/out-tsc/dropdown/SpsDropdown.examples.js +95 -0
- package/dist/out-tsc/dropdown/SpsDropdown.examples.js.map +1 -0
- package/dist/out-tsc/dropdown/SpsDropdown.js +164 -0
- package/dist/out-tsc/dropdown/SpsDropdown.js.map +1 -0
- package/dist/out-tsc/dropdown/index.d.ts +2 -0
- package/dist/out-tsc/dropdown/index.js +3 -0
- package/dist/out-tsc/dropdown/index.js.map +1 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.d.ts +12 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.d.ts +2 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.js +63 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.js.map +1 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.js +43 -0
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.js.map +1 -0
- package/dist/out-tsc/feedback-block/index.d.ts +2 -0
- package/dist/out-tsc/feedback-block/index.js +3 -0
- package/dist/out-tsc/feedback-block/index.js.map +1 -0
- package/dist/out-tsc/fieldset/SpsFieldset.d.ts +22 -0
- package/dist/out-tsc/fieldset/SpsFieldset.examples.d.ts +2 -0
- package/dist/out-tsc/fieldset/SpsFieldset.examples.js +54 -0
- package/dist/out-tsc/fieldset/SpsFieldset.examples.js.map +1 -0
- package/dist/out-tsc/fieldset/SpsFieldset.js +99 -0
- package/dist/out-tsc/fieldset/SpsFieldset.js.map +1 -0
- package/dist/out-tsc/fieldset/index.d.ts +2 -0
- package/dist/out-tsc/fieldset/index.js +3 -0
- package/dist/out-tsc/fieldset/index.js.map +1 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.d.ts +10 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.d.ts +2 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.js +31 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.js.map +1 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.js +37 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanel.js.map +1 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.d.ts +11 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.js +48 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.js.map +1 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.d.ts +16 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.js +49 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.js.map +1 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.d.ts +16 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.js +84 -0
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.js.map +1 -0
- package/dist/out-tsc/filter-panel/index.d.ts +5 -0
- package/dist/out-tsc/filter-panel/index.js +6 -0
- package/dist/out-tsc/filter-panel/index.js.map +1 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.d.ts +15 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.js +66 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.js.map +1 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.d.ts +10 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.d.ts +2 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.js +17 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.js.map +1 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.js +38 -0
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.js.map +1 -0
- package/dist/out-tsc/filter-tile-list/index.d.ts +3 -0
- package/dist/out-tsc/filter-tile-list/index.js +4 -0
- package/dist/out-tsc/filter-tile-list/index.js.map +1 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.d.ts +13 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.d.ts +2 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.js +19 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.js.map +1 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.js +80 -0
- package/dist/out-tsc/focused-task/SpsFocusedTask.js.map +1 -0
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.d.ts +10 -0
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.js +40 -0
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.js.map +1 -0
- package/dist/out-tsc/focused-task/index.d.ts +3 -0
- package/dist/out-tsc/focused-task/index.js +4 -0
- package/dist/out-tsc/focused-task/index.js.map +1 -0
- package/dist/out-tsc/form/AddRemoveFormRows.examples.d.ts +18 -0
- package/dist/out-tsc/form/AddRemoveFormRows.examples.js +25 -0
- package/dist/out-tsc/form/AddRemoveFormRows.examples.js.map +1 -0
- package/dist/out-tsc/form/SpsForm.d.ts +24 -0
- package/dist/out-tsc/form/SpsForm.examples.d.ts +50 -0
- package/dist/out-tsc/form/SpsForm.examples.js +67 -0
- package/dist/out-tsc/form/SpsForm.examples.js.map +1 -0
- package/dist/out-tsc/form/SpsForm.js +52 -0
- package/dist/out-tsc/form/SpsForm.js.map +1 -0
- package/dist/out-tsc/form/SpsFormComponentWrapper.d.ts +19 -0
- package/dist/out-tsc/form/SpsFormComponentWrapper.js +69 -0
- package/dist/out-tsc/form/SpsFormComponentWrapper.js.map +1 -0
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.d.ts +24 -0
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.js +2 -0
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.js.map +1 -0
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.d.ts +7 -0
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.js +24 -0
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.js.map +1 -0
- package/dist/out-tsc/form/hooks/formArray.d.ts +12 -0
- package/dist/out-tsc/form/hooks/formArray.js +211 -0
- package/dist/out-tsc/form/hooks/formArray.js.map +1 -0
- package/dist/out-tsc/form/hooks/formControl.d.ts +9 -0
- package/dist/out-tsc/form/hooks/formControl.js +68 -0
- package/dist/out-tsc/form/hooks/formControl.js.map +1 -0
- package/dist/out-tsc/form/hooks/formGroup.d.ts +10 -0
- package/dist/out-tsc/form/hooks/formGroup.js +182 -0
- package/dist/out-tsc/form/hooks/formGroup.js.map +1 -0
- package/dist/out-tsc/form/hooks/useCustomValidator.d.ts +7 -0
- package/dist/out-tsc/form/hooks/useCustomValidator.js +60 -0
- package/dist/out-tsc/form/hooks/useCustomValidator.js.map +1 -0
- package/dist/out-tsc/form/hooks/useForm.d.ts +2 -0
- package/dist/out-tsc/form/hooks/useForm.js +98 -0
- package/dist/out-tsc/form/hooks/useForm.js.map +1 -0
- package/dist/out-tsc/form/hooks/useFormControlId.d.ts +4 -0
- package/dist/out-tsc/form/hooks/useFormControlId.js +18 -0
- package/dist/out-tsc/form/hooks/useFormControlId.js.map +1 -0
- package/dist/out-tsc/form/hooks/useServerSideValidation.d.ts +3 -0
- package/dist/out-tsc/form/hooks/useServerSideValidation.js +37 -0
- package/dist/out-tsc/form/hooks/useServerSideValidation.js.map +1 -0
- package/dist/out-tsc/form/hooks/useSpsForm.d.ts +83 -0
- package/dist/out-tsc/form/hooks/useSpsForm.js +736 -0
- package/dist/out-tsc/form/hooks/useSpsForm.js.map +1 -0
- package/dist/out-tsc/form/index.d.ts +16 -0
- package/dist/out-tsc/form/index.js +17 -0
- package/dist/out-tsc/form/index.js.map +1 -0
- package/dist/out-tsc/form/validation/SpsValidators.d.ts +16 -0
- package/dist/out-tsc/form/validation/SpsValidators.js +84 -0
- package/dist/out-tsc/form/validation/SpsValidators.js.map +1 -0
- package/dist/out-tsc/form/validation/types.d.ts +10 -0
- package/dist/out-tsc/form/validation/types.js +21 -0
- package/dist/out-tsc/form/validation/types.js.map +1 -0
- package/dist/out-tsc/form/validation/validate.d.ts +2 -0
- package/dist/out-tsc/form/validation/validate.js +6 -0
- package/dist/out-tsc/form/validation/validate.js.map +1 -0
- package/dist/out-tsc/growler/SpsGrowler.d.ts +17 -0
- package/dist/out-tsc/growler/SpsGrowler.examples.d.ts +2 -0
- package/dist/out-tsc/growler/SpsGrowler.examples.js +122 -0
- package/dist/out-tsc/growler/SpsGrowler.examples.js.map +1 -0
- package/dist/out-tsc/growler/SpsGrowler.js +147 -0
- package/dist/out-tsc/growler/SpsGrowler.js.map +1 -0
- package/dist/out-tsc/growler/index.d.ts +3 -0
- package/dist/out-tsc/growler/index.js +4 -0
- package/dist/out-tsc/growler/index.js.map +1 -0
- package/dist/out-tsc/growler/useGrowlers.d.ts +12 -0
- package/dist/out-tsc/growler/useGrowlers.js +59 -0
- package/dist/out-tsc/growler/useGrowlers.js.map +1 -0
- package/dist/out-tsc/i18n.d.ts +3 -0
- package/dist/out-tsc/i18n.js +4 -0
- package/dist/out-tsc/i18n.js.map +1 -0
- package/dist/out-tsc/icon/SpsIcon.d.ts +13 -0
- package/dist/out-tsc/icon/SpsIcon.js +47 -0
- package/dist/out-tsc/icon/SpsIcon.js.map +1 -0
- package/dist/out-tsc/icon/index.d.ts +1 -0
- package/dist/out-tsc/icon/index.js +2 -0
- package/dist/out-tsc/icon/index.js.map +1 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.d.ts +15 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.d.ts +2 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.js +18 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.js.map +1 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.js +113 -0
- package/dist/out-tsc/incrementor/SpsIncrementor.js.map +1 -0
- package/dist/out-tsc/incrementor/index.d.ts +2 -0
- package/dist/out-tsc/incrementor/index.js +3 -0
- package/dist/out-tsc/incrementor/index.js.map +1 -0
- package/dist/out-tsc/index.d.ts +69 -0
- package/dist/out-tsc/index.js +70 -0
- package/dist/out-tsc/index.js.map +1 -0
- package/dist/out-tsc/input-group/SpsInputGroup.d.ts +17 -0
- package/dist/out-tsc/input-group/SpsInputGroup.js +74 -0
- package/dist/out-tsc/input-group/SpsInputGroup.js.map +1 -0
- package/dist/out-tsc/input-group/index.d.ts +1 -0
- package/dist/out-tsc/input-group/index.js +2 -0
- package/dist/out-tsc/input-group/index.js.map +1 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.d.ts +18 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.d.ts +2 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.js +59 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.js.map +1 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.js +91 -0
- package/dist/out-tsc/insight-tile/SpsInsightTile.js.map +1 -0
- package/dist/out-tsc/insight-tile/SpsInsights.d.ts +10 -0
- package/dist/out-tsc/insight-tile/SpsInsights.js +19 -0
- package/dist/out-tsc/insight-tile/SpsInsights.js.map +1 -0
- package/dist/out-tsc/insight-tile/index.d.ts +2 -0
- package/dist/out-tsc/insight-tile/index.js +3 -0
- package/dist/out-tsc/insight-tile/index.js.map +1 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.d.ts +11 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.d.ts +2 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.js +25 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.js.map +1 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.js +40 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueList.js.map +1 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.d.ts +13 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.js +44 -0
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.js.map +1 -0
- package/dist/out-tsc/key-value-list/index.d.ts +3 -0
- package/dist/out-tsc/key-value-list/index.js +4 -0
- package/dist/out-tsc/key-value-list/index.js.map +1 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.d.ts +16 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.d.ts +2 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.js +33 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.js.map +1 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.js +56 -0
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.js.map +1 -0
- package/dist/out-tsc/key-value-tag/index.d.ts +2 -0
- package/dist/out-tsc/key-value-tag/index.js +3 -0
- package/dist/out-tsc/key-value-tag/index.js.map +1 -0
- package/dist/out-tsc/label/SpsLabel.d.ts +20 -0
- package/dist/out-tsc/label/SpsLabel.examples.d.ts +2 -0
- package/dist/out-tsc/label/SpsLabel.examples.js +65 -0
- package/dist/out-tsc/label/SpsLabel.examples.js.map +1 -0
- package/dist/out-tsc/label/SpsLabel.js +223 -0
- package/dist/out-tsc/label/SpsLabel.js.map +1 -0
- package/dist/out-tsc/label/index.d.ts +2 -0
- package/dist/out-tsc/label/index.js +3 -0
- package/dist/out-tsc/label/index.js.map +1 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.d.ts +12 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.d.ts +2 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.js +61 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.js.map +1 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.js +59 -0
- package/dist/out-tsc/list-action-bar/SpsListActionBar.js.map +1 -0
- package/dist/out-tsc/list-action-bar/index.d.ts +2 -0
- package/dist/out-tsc/list-action-bar/index.js +3 -0
- package/dist/out-tsc/list-action-bar/index.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.d.ts +27 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.d.ts +3 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js +425 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.js +175 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.d.ts +12 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.js +35 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.d.ts +10 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.js +25 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSortBy.d.ts +21 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSortBy.js +35 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbarSortBy.js.map +1 -0
- package/dist/out-tsc/list-toolbar/index.d.ts +5 -0
- package/dist/out-tsc/list-toolbar/index.js +6 -0
- package/dist/out-tsc/list-toolbar/index.js.map +1 -0
- package/dist/out-tsc/manifest.d.ts +2 -0
- package/dist/out-tsc/manifest.js +462 -0
- package/dist/out-tsc/manifest.js.map +1 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.d.ts +13 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.d.ts +2 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.js +49 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.js.map +1 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.js +44 -0
- package/dist/out-tsc/micro-block/SpsMicroBlock.js.map +1 -0
- package/dist/out-tsc/micro-block/index.d.ts +2 -0
- package/dist/out-tsc/micro-block/index.js +3 -0
- package/dist/out-tsc/micro-block/index.js.map +1 -0
- package/dist/out-tsc/modal/SpsModal.d.ts +25 -0
- package/dist/out-tsc/modal/SpsModal.examples.d.ts +2 -0
- package/dist/out-tsc/modal/SpsModal.examples.js +138 -0
- package/dist/out-tsc/modal/SpsModal.examples.js.map +1 -0
- package/dist/out-tsc/modal/SpsModal.js +193 -0
- package/dist/out-tsc/modal/SpsModal.js.map +1 -0
- package/dist/out-tsc/modal/SpsModalAction.d.ts +18 -0
- package/dist/out-tsc/modal/SpsModalAction.js +73 -0
- package/dist/out-tsc/modal/SpsModalAction.js.map +1 -0
- package/dist/out-tsc/modal/SpsModalBody.d.ts +10 -0
- package/dist/out-tsc/modal/SpsModalBody.js +41 -0
- package/dist/out-tsc/modal/SpsModalBody.js.map +1 -0
- package/dist/out-tsc/modal/SpsModalFooter.d.ts +16 -0
- package/dist/out-tsc/modal/SpsModalFooter.js +48 -0
- package/dist/out-tsc/modal/SpsModalFooter.js.map +1 -0
- package/dist/out-tsc/modal/SpsModalHeader.d.ts +11 -0
- package/dist/out-tsc/modal/SpsModalHeader.js +45 -0
- package/dist/out-tsc/modal/SpsModalHeader.js.map +1 -0
- package/dist/out-tsc/modal/SpsModalOverlay.d.ts +12 -0
- package/dist/out-tsc/modal/SpsModalOverlay.js +53 -0
- package/dist/out-tsc/modal/SpsModalOverlay.js.map +1 -0
- package/dist/out-tsc/modal/index.d.ts +2 -0
- package/dist/out-tsc/modal/index.js +5 -0
- package/dist/out-tsc/modal/index.js.map +1 -0
- package/dist/out-tsc/modal-v2/SpsModalV2.d.ts +18 -0
- package/dist/out-tsc/modal-v2/SpsModalV2.js +146 -0
- package/dist/out-tsc/modal-v2/SpsModalV2.js.map +1 -0
- package/dist/out-tsc/modal-v2/index.d.ts +1 -0
- package/dist/out-tsc/modal-v2/index.js +2 -0
- package/dist/out-tsc/modal-v2/index.js.map +1 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.d.ts +38 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js +42 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js.map +1 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.js +245 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.js.map +1 -0
- package/dist/out-tsc/multi-select/index.d.ts +2 -0
- package/dist/out-tsc/multi-select/index.js +3 -0
- package/dist/out-tsc/multi-select/index.js.map +1 -0
- package/dist/out-tsc/option-list/SpsOptionList.d.ts +3 -0
- package/dist/out-tsc/option-list/SpsOptionList.js +418 -0
- package/dist/out-tsc/option-list/SpsOptionList.js.map +1 -0
- package/dist/out-tsc/option-list/SpsOptionListProps.d.ts +81 -0
- package/dist/out-tsc/option-list/SpsOptionListProps.js +53 -0
- package/dist/out-tsc/option-list/SpsOptionListProps.js.map +1 -0
- package/dist/out-tsc/option-list/index.d.ts +1 -0
- package/dist/out-tsc/option-list/index.js +2 -0
- package/dist/out-tsc/option-list/index.js.map +1 -0
- package/dist/out-tsc/option-list/useOptionListOptions.d.ts +8 -0
- package/dist/out-tsc/option-list/useOptionListOptions.js +171 -0
- package/dist/out-tsc/option-list/useOptionListOptions.js.map +1 -0
- package/dist/out-tsc/option-list/useOptionListSearch.d.ts +13 -0
- package/dist/out-tsc/option-list/useOptionListSearch.js +74 -0
- package/dist/out-tsc/option-list/useOptionListSearch.js.map +1 -0
- package/dist/out-tsc/option-list/useSpsAction.d.ts +2 -0
- package/dist/out-tsc/option-list/useSpsAction.js +40 -0
- package/dist/out-tsc/option-list/useSpsAction.js.map +1 -0
- package/dist/out-tsc/page-title/SpsPageSubtitle.d.ts +10 -0
- package/dist/out-tsc/page-title/SpsPageSubtitle.js +38 -0
- package/dist/out-tsc/page-title/SpsPageSubtitle.js.map +1 -0
- package/dist/out-tsc/page-title/SpsPageTitle.d.ts +10 -0
- package/dist/out-tsc/page-title/SpsPageTitle.examples.d.ts +2 -0
- package/dist/out-tsc/page-title/SpsPageTitle.examples.js +41 -0
- package/dist/out-tsc/page-title/SpsPageTitle.examples.js.map +1 -0
- package/dist/out-tsc/page-title/SpsPageTitle.js +50 -0
- package/dist/out-tsc/page-title/SpsPageTitle.js.map +1 -0
- package/dist/out-tsc/page-title/index.d.ts +3 -0
- package/dist/out-tsc/page-title/index.js +4 -0
- package/dist/out-tsc/page-title/index.js.map +1 -0
- package/dist/out-tsc/pagination/SpsPageSelector.d.ts +14 -0
- package/dist/out-tsc/pagination/SpsPageSelector.js +99 -0
- package/dist/out-tsc/pagination/SpsPageSelector.js.map +1 -0
- package/dist/out-tsc/pagination/SpsPagination.d.ts +16 -0
- package/dist/out-tsc/pagination/SpsPagination.examples.d.ts +2 -0
- package/dist/out-tsc/pagination/SpsPagination.examples.js +78 -0
- package/dist/out-tsc/pagination/SpsPagination.examples.js.map +1 -0
- package/dist/out-tsc/pagination/SpsPagination.js +138 -0
- package/dist/out-tsc/pagination/SpsPagination.js.map +1 -0
- package/dist/out-tsc/pagination/index.d.ts +3 -0
- package/dist/out-tsc/pagination/index.js +4 -0
- package/dist/out-tsc/pagination/index.js.map +1 -0
- package/dist/out-tsc/product-bar/SpsProductBar.d.ts +19 -0
- package/dist/out-tsc/product-bar/SpsProductBar.examples.d.ts +2 -0
- package/dist/out-tsc/product-bar/SpsProductBar.examples.js +42 -0
- package/dist/out-tsc/product-bar/SpsProductBar.examples.js.map +1 -0
- package/dist/out-tsc/product-bar/SpsProductBar.js +90 -0
- package/dist/out-tsc/product-bar/SpsProductBar.js.map +1 -0
- package/dist/out-tsc/product-bar/SpsProductBarTab.d.ts +6 -0
- package/dist/out-tsc/product-bar/SpsProductBarTab.js +38 -0
- package/dist/out-tsc/product-bar/SpsProductBarTab.js.map +1 -0
- package/dist/out-tsc/product-bar/index.d.ts +3 -0
- package/dist/out-tsc/product-bar/index.js +4 -0
- package/dist/out-tsc/product-bar/index.js.map +1 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.d.ts +15 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.d.ts +27 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.js +79 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.js.map +1 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.js +59 -0
- package/dist/out-tsc/progress-bar/SpsProgressBar.js.map +1 -0
- package/dist/out-tsc/progress-bar/index.d.ts +2 -0
- package/dist/out-tsc/progress-bar/index.js +3 -0
- package/dist/out-tsc/progress-bar/index.js.map +1 -0
- package/dist/out-tsc/progress-ring/SpsProgressRing.d.ts +13 -0
- package/dist/out-tsc/progress-ring/SpsProgressRing.js +37 -0
- package/dist/out-tsc/progress-ring/SpsProgressRing.js.map +1 -0
- package/dist/out-tsc/progress-ring/index.d.ts +1 -0
- package/dist/out-tsc/progress-ring/index.js +2 -0
- package/dist/out-tsc/progress-ring/index.js.map +1 -0
- package/dist/out-tsc/prop-types.d.ts +23 -0
- package/dist/out-tsc/prop-types.js +26 -0
- package/dist/out-tsc/prop-types.js.map +1 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.d.ts +23 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.d.ts +2 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.js +36 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.js.map +1 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.js +64 -0
- package/dist/out-tsc/radio-button/SpsRadioButton.js.map +1 -0
- package/dist/out-tsc/radio-button/index.d.ts +2 -0
- package/dist/out-tsc/radio-button/index.js +3 -0
- package/dist/out-tsc/radio-button/index.js.map +1 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.d.ts +11 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.d.ts +14 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.js +21 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.js.map +1 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.js +27 -0
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.js.map +1 -0
- package/dist/out-tsc/scrollable-container/index.d.ts +2 -0
- package/dist/out-tsc/scrollable-container/index.js +3 -0
- package/dist/out-tsc/scrollable-container/index.js.map +1 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.d.ts +13 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.d.ts +2 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.js +37 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.js.map +1 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.js +74 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.js.map +1 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBarV2.d.ts +14 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBarV2.js +68 -0
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBarV2.js.map +1 -0
- package/dist/out-tsc/search-results-bar/index.d.ts +3 -0
- package/dist/out-tsc/search-results-bar/index.js +4 -0
- package/dist/out-tsc/search-results-bar/index.js.map +1 -0
- package/dist/out-tsc/select/SpsSelect.d.ts +39 -0
- package/dist/out-tsc/select/SpsSelect.examples.d.ts +2 -0
- package/dist/out-tsc/select/SpsSelect.examples.js +77 -0
- package/dist/out-tsc/select/SpsSelect.examples.js.map +1 -0
- package/dist/out-tsc/select/SpsSelect.js +207 -0
- package/dist/out-tsc/select/SpsSelect.js.map +1 -0
- package/dist/out-tsc/select/index.d.ts +2 -0
- package/dist/out-tsc/select/index.js +3 -0
- package/dist/out-tsc/select/index.js.map +1 -0
- package/dist/out-tsc/side-nav/SpsSideNav.d.ts +38 -0
- package/dist/out-tsc/side-nav/SpsSideNav.examples.d.ts +2 -0
- package/dist/out-tsc/side-nav/SpsSideNav.examples.js +76 -0
- package/dist/out-tsc/side-nav/SpsSideNav.examples.js.map +1 -0
- package/dist/out-tsc/side-nav/SpsSideNav.js +128 -0
- package/dist/out-tsc/side-nav/SpsSideNav.js.map +1 -0
- package/dist/out-tsc/side-nav/SpsSideNavBranch.d.ts +9 -0
- package/dist/out-tsc/side-nav/SpsSideNavBranch.js +68 -0
- package/dist/out-tsc/side-nav/SpsSideNavBranch.js.map +1 -0
- package/dist/out-tsc/side-nav/index.d.ts +2 -0
- package/dist/out-tsc/side-nav/index.js +3 -0
- package/dist/out-tsc/side-nav/index.js.map +1 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.d.ts +11 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.d.ts +2 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.js +16 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.js.map +1 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.js +45 -0
- package/dist/out-tsc/slack-link/SpsSlackLink.js.map +1 -0
- package/dist/out-tsc/slack-link/index.d.ts +2 -0
- package/dist/out-tsc/slack-link/index.js +3 -0
- package/dist/out-tsc/slack-link/index.js.map +1 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.d.ts +13 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.d.ts +2 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.js +17 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.js.map +1 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.js +51 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeader.js.map +1 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.d.ts +17 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.js +71 -0
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.js.map +1 -0
- package/dist/out-tsc/sorting-header/index.d.ts +3 -0
- package/dist/out-tsc/sorting-header/index.js +4 -0
- package/dist/out-tsc/sorting-header/index.js.map +1 -0
- package/dist/out-tsc/spinner/SpsSpinner.d.ts +14 -0
- package/dist/out-tsc/spinner/SpsSpinner.examples.d.ts +2 -0
- package/dist/out-tsc/spinner/SpsSpinner.examples.js +22 -0
- package/dist/out-tsc/spinner/SpsSpinner.examples.js.map +1 -0
- package/dist/out-tsc/spinner/SpsSpinner.js +46 -0
- package/dist/out-tsc/spinner/SpsSpinner.js.map +1 -0
- package/dist/out-tsc/spinner/index.d.ts +2 -0
- package/dist/out-tsc/spinner/index.js +3 -0
- package/dist/out-tsc/spinner/index.js.map +1 -0
- package/dist/out-tsc/split-button/SpsSplitButton.d.ts +18 -0
- package/dist/out-tsc/split-button/SpsSplitButton.examples.d.ts +2 -0
- package/dist/out-tsc/split-button/SpsSplitButton.examples.js +39 -0
- package/dist/out-tsc/split-button/SpsSplitButton.examples.js.map +1 -0
- package/dist/out-tsc/split-button/SpsSplitButton.js +76 -0
- package/dist/out-tsc/split-button/SpsSplitButton.js.map +1 -0
- package/dist/out-tsc/split-button/index.d.ts +2 -0
- package/dist/out-tsc/split-button/index.js +3 -0
- package/dist/out-tsc/split-button/index.js.map +1 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.d.ts +22 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +28 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js +82 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js.map +1 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.js +58 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.js.map +1 -0
- package/dist/out-tsc/stepped-progress-bar/index.d.ts +2 -0
- package/dist/out-tsc/stepped-progress-bar/index.js +3 -0
- package/dist/out-tsc/stepped-progress-bar/index.js.map +1 -0
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.d.ts +2 -0
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.js +44 -0
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.js.map +1 -0
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.d.ts +14 -0
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.js +43 -0
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.js.map +1 -0
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.d.ts +10 -0
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.js +38 -0
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.js.map +1 -0
- package/dist/out-tsc/summary-list/SpsSummaryListRow.d.ts +13 -0
- package/dist/out-tsc/summary-list/SpsSummaryListRow.js +98 -0
- package/dist/out-tsc/summary-list/SpsSummaryListRow.js.map +1 -0
- package/dist/out-tsc/summary-list/index.d.ts +4 -0
- package/dist/out-tsc/summary-list/index.js +5 -0
- package/dist/out-tsc/summary-list/index.js.map +1 -0
- package/dist/out-tsc/table/SpsTable.d.ts +14 -0
- package/dist/out-tsc/table/SpsTable.examples.d.ts +2 -0
- package/dist/out-tsc/table/SpsTable.examples.js +138 -0
- package/dist/out-tsc/table/SpsTable.examples.js.map +1 -0
- package/dist/out-tsc/table/SpsTable.js +89 -0
- package/dist/out-tsc/table/SpsTable.js.map +1 -0
- package/dist/out-tsc/table/SpsTableBody.d.ts +11 -0
- package/dist/out-tsc/table/SpsTableBody.js +46 -0
- package/dist/out-tsc/table/SpsTableBody.js.map +1 -0
- package/dist/out-tsc/table/SpsTableCell.d.ts +15 -0
- package/dist/out-tsc/table/SpsTableCell.js +57 -0
- package/dist/out-tsc/table/SpsTableCell.js.map +1 -0
- package/dist/out-tsc/table/SpsTableHead.d.ts +15 -0
- package/dist/out-tsc/table/SpsTableHead.js +59 -0
- package/dist/out-tsc/table/SpsTableHead.js.map +1 -0
- package/dist/out-tsc/table/SpsTableHeader.d.ts +17 -0
- package/dist/out-tsc/table/SpsTableHeader.js +91 -0
- package/dist/out-tsc/table/SpsTableHeader.js.map +1 -0
- package/dist/out-tsc/table/SpsTableRow.d.ts +14 -0
- package/dist/out-tsc/table/SpsTableRow.js +59 -0
- package/dist/out-tsc/table/SpsTableRow.js.map +1 -0
- package/dist/out-tsc/table/index.d.ts +7 -0
- package/dist/out-tsc/table/index.js +8 -0
- package/dist/out-tsc/table/index.js.map +1 -0
- package/dist/out-tsc/table/usePinnedStyles.d.ts +4 -0
- package/dist/out-tsc/table/usePinnedStyles.js +192 -0
- package/dist/out-tsc/table/usePinnedStyles.js.map +1 -0
- package/dist/out-tsc/tabs/SpsTabs.d.ts +14 -0
- package/dist/out-tsc/tabs/SpsTabs.js +77 -0
- package/dist/out-tsc/tabs/SpsTabs.js.map +1 -0
- package/dist/out-tsc/tag/SpsTag.d.ts +13 -0
- package/dist/out-tsc/tag/SpsTag.examples.d.ts +2 -0
- package/dist/out-tsc/tag/SpsTag.examples.js +25 -0
- package/dist/out-tsc/tag/SpsTag.examples.js.map +1 -0
- package/dist/out-tsc/tag/SpsTag.js +47 -0
- package/dist/out-tsc/tag/SpsTag.js.map +1 -0
- package/dist/out-tsc/tag/index.d.ts +2 -0
- package/dist/out-tsc/tag/index.js +3 -0
- package/dist/out-tsc/tag/index.js.map +1 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.d.ts +36 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.d.ts +2 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.js +45 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.js.map +1 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.js +217 -0
- package/dist/out-tsc/task-queue/SpsTaskQueue.js.map +1 -0
- package/dist/out-tsc/task-queue/index.d.ts +2 -0
- package/dist/out-tsc/task-queue/index.js +3 -0
- package/dist/out-tsc/task-queue/index.js.map +1 -0
- package/dist/out-tsc/test-util.d.ts +2 -0
- package/dist/out-tsc/test-util.js +54 -0
- package/dist/out-tsc/test-util.js.map +1 -0
- package/dist/out-tsc/text-input/SpsTextInput.d.ts +22 -0
- package/dist/out-tsc/text-input/SpsTextInput.examples.d.ts +2 -0
- package/dist/out-tsc/text-input/SpsTextInput.examples.js +45 -0
- package/dist/out-tsc/text-input/SpsTextInput.examples.js.map +1 -0
- package/dist/out-tsc/text-input/SpsTextInput.js +73 -0
- package/dist/out-tsc/text-input/SpsTextInput.js.map +1 -0
- package/dist/out-tsc/text-input/index.d.ts +2 -0
- package/dist/out-tsc/text-input/index.js +3 -0
- package/dist/out-tsc/text-input/index.js.map +1 -0
- package/dist/out-tsc/textarea/SpsTextarea.d.ts +22 -0
- package/dist/out-tsc/textarea/SpsTextarea.examples.d.ts +2 -0
- package/dist/out-tsc/textarea/SpsTextarea.examples.js +36 -0
- package/dist/out-tsc/textarea/SpsTextarea.examples.js.map +1 -0
- package/dist/out-tsc/textarea/SpsTextarea.js +71 -0
- package/dist/out-tsc/textarea/SpsTextarea.js.map +1 -0
- package/dist/out-tsc/textarea/index.d.ts +2 -0
- package/dist/out-tsc/textarea/index.js +3 -0
- package/dist/out-tsc/textarea/index.js.map +1 -0
- package/dist/out-tsc/tile-list/SpsTile.d.ts +16 -0
- package/dist/out-tsc/tile-list/SpsTile.js +60 -0
- package/dist/out-tsc/tile-list/SpsTile.js.map +1 -0
- package/dist/out-tsc/tile-list/SpsTileList.d.ts +10 -0
- package/dist/out-tsc/tile-list/SpsTileList.examples.d.ts +2 -0
- package/dist/out-tsc/tile-list/SpsTileList.examples.js +36 -0
- package/dist/out-tsc/tile-list/SpsTileList.examples.js.map +1 -0
- package/dist/out-tsc/tile-list/SpsTileList.js +38 -0
- package/dist/out-tsc/tile-list/SpsTileList.js.map +1 -0
- package/dist/out-tsc/tile-list/index.d.ts +3 -0
- package/dist/out-tsc/tile-list/index.js +4 -0
- package/dist/out-tsc/tile-list/index.js.map +1 -0
- package/dist/out-tsc/toggle/SpsToggle.d.ts +27 -0
- package/dist/out-tsc/toggle/SpsToggle.examples.d.ts +2 -0
- package/dist/out-tsc/toggle/SpsToggle.examples.js +37 -0
- package/dist/out-tsc/toggle/SpsToggle.examples.js.map +1 -0
- package/dist/out-tsc/toggle/SpsToggle.js +95 -0
- package/dist/out-tsc/toggle/SpsToggle.js.map +1 -0
- package/dist/out-tsc/toggle/index.d.ts +2 -0
- package/dist/out-tsc/toggle/index.js +3 -0
- package/dist/out-tsc/toggle/index.js.map +1 -0
- package/dist/out-tsc/tooltip/SpsTooltip.d.ts +29 -0
- package/dist/out-tsc/tooltip/SpsTooltip.examples.d.ts +2 -0
- package/dist/out-tsc/tooltip/SpsTooltip.examples.js +119 -0
- package/dist/out-tsc/tooltip/SpsTooltip.examples.js.map +1 -0
- package/dist/out-tsc/tooltip/SpsTooltip.js +292 -0
- package/dist/out-tsc/tooltip/SpsTooltip.js.map +1 -0
- package/dist/out-tsc/tooltip/SpsTooltipTitle.d.ts +13 -0
- package/dist/out-tsc/tooltip/SpsTooltipTitle.js +32 -0
- package/dist/out-tsc/tooltip/SpsTooltipTitle.js.map +1 -0
- package/dist/out-tsc/tooltip/index.d.ts +3 -0
- package/dist/out-tsc/tooltip/index.js +4 -0
- package/dist/out-tsc/tooltip/index.js.map +1 -0
- package/dist/out-tsc/utils/FauxChangeEvent.d.ts +20 -0
- package/dist/out-tsc/utils/FauxChangeEvent.js +83 -0
- package/dist/out-tsc/utils/FauxChangeEvent.js.map +1 -0
- package/dist/out-tsc/utils/contentOf.d.ts +2 -0
- package/dist/out-tsc/utils/contentOf.js +6 -0
- package/dist/out-tsc/utils/contentOf.js.map +1 -0
- package/dist/out-tsc/utils/getPosition.d.ts +11 -0
- package/dist/out-tsc/utils/getPosition.js +181 -0
- package/dist/out-tsc/utils/getPosition.js.map +1 -0
- package/dist/out-tsc/utils/getScrollParent.d.ts +1 -0
- package/dist/out-tsc/utils/getScrollParent.js +28 -0
- package/dist/out-tsc/utils/getScrollParent.js.map +1 -0
- package/dist/out-tsc/utils/index.d.ts +11 -0
- package/dist/out-tsc/utils/index.js +12 -0
- package/dist/out-tsc/utils/index.js.map +1 -0
- package/dist/out-tsc/utils/selectChildren.d.ts +5 -0
- package/dist/out-tsc/utils/selectChildren.js +72 -0
- package/dist/out-tsc/utils/selectChildren.js.map +1 -0
- package/dist/out-tsc/utils/useCheckDeprecatedProps.d.ts +2 -0
- package/dist/out-tsc/utils/useCheckDeprecatedProps.js +35 -0
- package/dist/out-tsc/utils/useCheckDeprecatedProps.js.map +1 -0
- package/dist/out-tsc/utils/useDidUpdateEffect.d.ts +2 -0
- package/dist/out-tsc/utils/useDidUpdateEffect.js +11 -0
- package/dist/out-tsc/utils/useDidUpdateEffect.js.map +1 -0
- package/dist/out-tsc/utils/useDocumentEventListener.d.ts +1 -0
- package/dist/out-tsc/utils/useDocumentEventListener.js +39 -0
- package/dist/out-tsc/utils/useDocumentEventListener.js.map +1 -0
- package/dist/out-tsc/utils/useElementId.d.ts +2 -0
- package/dist/out-tsc/utils/useElementId.js +6 -0
- package/dist/out-tsc/utils/useElementId.js.map +1 -0
- package/dist/out-tsc/utils/useInputPopup.d.ts +6 -0
- package/dist/out-tsc/utils/useInputPopup.js +56 -0
- package/dist/out-tsc/utils/useInputPopup.js.map +1 -0
- package/dist/out-tsc/utils/usePatchReducer.d.ts +2 -0
- package/dist/out-tsc/utils/usePatchReducer.js +19 -0
- package/dist/out-tsc/utils/usePatchReducer.js.map +1 -0
- package/dist/out-tsc/utils/usePortal.d.ts +6 -0
- package/dist/out-tsc/utils/usePortal.js +57 -0
- package/dist/out-tsc/utils/usePortal.js.map +1 -0
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.d.ts +11 -0
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.js +46 -0
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.js.map +1 -0
- package/dist/out-tsc/vertical-rule/index.d.ts +1 -0
- package/dist/out-tsc/vertical-rule/index.js +2 -0
- package/dist/out-tsc/vertical-rule/index.js.map +1 -0
- package/dist/out-tsc/wizard/SpsWizard.examples.d.ts +2 -0
- package/dist/out-tsc/wizard/SpsWizard.examples.js +31 -0
- package/dist/out-tsc/wizard/SpsWizard.examples.js.map +1 -0
- package/dist/out-tsc/wizard/SpsWizardSidebar.d.ts +23 -0
- package/dist/out-tsc/wizard/SpsWizardSidebar.js +44 -0
- package/dist/out-tsc/wizard/SpsWizardSidebar.js.map +1 -0
- package/dist/out-tsc/wizard/SpsWizardSubstep.d.ts +14 -0
- package/dist/out-tsc/wizard/SpsWizardSubstep.js +37 -0
- package/dist/out-tsc/wizard/SpsWizardSubstep.js.map +1 -0
- package/dist/out-tsc/wizard/index.d.ts +3 -0
- package/dist/out-tsc/wizard/index.js +4 -0
- package/dist/out-tsc/wizard/index.js.map +1 -0
- package/dist/out-tsc/workflow/SpsWorkflow.d.ts +14 -0
- package/dist/out-tsc/workflow/SpsWorkflow.examples.d.ts +2 -0
- package/dist/out-tsc/workflow/SpsWorkflow.examples.js +25 -0
- package/dist/out-tsc/workflow/SpsWorkflow.examples.js.map +1 -0
- package/dist/out-tsc/workflow/SpsWorkflow.js +56 -0
- package/dist/out-tsc/workflow/SpsWorkflow.js.map +1 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocument.d.ts +11 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocument.js +46 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocument.js.map +1 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.d.ts +13 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.js +52 -0
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.js.map +1 -0
- package/dist/out-tsc/workflow/SpsWorkflowStep.d.ts +14 -0
- package/dist/out-tsc/workflow/SpsWorkflowStep.js +53 -0
- package/dist/out-tsc/workflow/SpsWorkflowStep.js.map +1 -0
- package/dist/out-tsc/workflow/index.d.ts +5 -0
- package/dist/out-tsc/workflow/index.js +6 -0
- package/dist/out-tsc/workflow/index.js.map +1 -0
- package/dist/out-tsc/zero-state/SpsMicroZeroState.d.ts +14 -0
- package/dist/out-tsc/zero-state/SpsMicroZeroState.js +46 -0
- package/dist/out-tsc/zero-state/SpsMicroZeroState.js.map +1 -0
- package/dist/out-tsc/zero-state/SpsZeroState.d.ts +13 -0
- package/dist/out-tsc/zero-state/SpsZeroState.examples.d.ts +2 -0
- package/dist/out-tsc/zero-state/SpsZeroState.examples.js +79 -0
- package/dist/out-tsc/zero-state/SpsZeroState.examples.js.map +1 -0
- package/dist/out-tsc/zero-state/SpsZeroState.js +47 -0
- package/dist/out-tsc/zero-state/SpsZeroState.js.map +1 -0
- package/dist/out-tsc/zero-state/index.d.ts +3 -0
- package/dist/out-tsc/zero-state/index.js +4 -0
- package/dist/out-tsc/zero-state/index.js.map +1 -0
- package/lib/index.cjs.js +35028 -8718
- package/lib/index.d.ts +1 -3
- package/lib/index.es.js +28310 -32198
- package/lib/zero-state/SpsMicroZeroState.d.ts +0 -1
- package/lib/zero-state/SpsZeroState.d.ts +1 -2
- package/package.json +13 -21
- package/rollup.config.js +22 -0
- package/vite.config.js +1 -1
- package/lib/card-v2/SpsCardV2.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Footer.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Header.d.ts +0 -2
- package/lib/card-v2/SpsCardV2Title.d.ts +0 -2
- package/lib/card-v2/index.d.ts +0 -5
- package/lib/tabs-v2/SpsTab.d.ts +0 -6
- package/lib/tabs-v2/SpsTabPanel.d.ts +0 -5
- package/lib/tabs-v2/SpsTabsV2.d.ts +0 -2
- package/lib/tabs-v2/index.d.ts +0 -4
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
import { SpsModalHeader } from "./SpsModalHeader";
|
|
4
|
+
import { SpsModalOverlay } from "./SpsModalOverlay";
|
|
5
|
+
import { SpsModalBody } from "./SpsModalBody";
|
|
6
|
+
import { SpsModalFooter } from "./SpsModalFooter";
|
|
7
|
+
import { SpsModalAction } from "./SpsModalAction";
|
|
8
|
+
declare const propTypes: {
|
|
9
|
+
kind: PropTypes.Requireable<string>;
|
|
10
|
+
id: PropTypes.Requireable<string>;
|
|
11
|
+
isOpen: PropTypes.Requireable<boolean>;
|
|
12
|
+
header: PropTypes.Requireable<string | (() => string)>;
|
|
13
|
+
onClose: PropTypes.Requireable<(...args: any[]) => any>;
|
|
14
|
+
onOpen: PropTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
+
size: PropTypes.Requireable<string>;
|
|
16
|
+
backdrop: PropTypes.Requireable<string>;
|
|
17
|
+
actionRequired: PropTypes.Requireable<boolean>;
|
|
18
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
19
|
+
className: PropTypes.Requireable<string>;
|
|
20
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
21
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
22
|
+
};
|
|
23
|
+
export declare type SpsModalProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
24
|
+
declare function SpsModal(modalProps: SpsModalProps): React.ReactPortal;
|
|
25
|
+
export { SpsModal, SpsModalHeader, SpsModalOverlay, SpsModalBody, SpsModalFooter, SpsModalAction, };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
/* eslint-disable react/prop-types */
|
|
6
|
+
/* eslint-disable react/jsx-one-expression-per-line */
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { code } from "@spscommerce/utils";
|
|
9
|
+
export var SpsModalExamples = {
|
|
10
|
+
generalUsage: {
|
|
11
|
+
label: "General Usage",
|
|
12
|
+
description: function (_a) {
|
|
13
|
+
var NavigateTo = _a.NavigateTo;
|
|
14
|
+
return (React.createElement(React.Fragment, null,
|
|
15
|
+
React.createElement("h5", { className: "mt-2" }, "Use a Modal:"),
|
|
16
|
+
React.createElement("ul", null,
|
|
17
|
+
React.createElement("li", null, "When the user needs to confirm a basic decision, such as deleting a record."),
|
|
18
|
+
React.createElement("li", null, "When important information needs to be displayed to the user before continuing."),
|
|
19
|
+
React.createElement("li", null, "When a simple selection, such as a single form input, is required before proceeding.")),
|
|
20
|
+
React.createElement("h5", null, "Avoid a Modal:"),
|
|
21
|
+
React.createElement("ul", null,
|
|
22
|
+
React.createElement("li", null,
|
|
23
|
+
"When a complex form is required. Use a",
|
|
24
|
+
" ",
|
|
25
|
+
React.createElement(NavigateTo, { to: "Focused Task" }, "Focused Task View"),
|
|
26
|
+
" instead."),
|
|
27
|
+
React.createElement("li", null,
|
|
28
|
+
"When sharing non-critical or tertiary information. Use a",
|
|
29
|
+
" ",
|
|
30
|
+
React.createElement(NavigateTo, { to: "Growlers" }, "Growler"),
|
|
31
|
+
" instead."))));
|
|
32
|
+
},
|
|
33
|
+
examples: {
|
|
34
|
+
noCloseButton: {
|
|
35
|
+
description: function () { return (React.createElement(React.Fragment, null,
|
|
36
|
+
React.createElement("h5", null, "Close Button"),
|
|
37
|
+
React.createElement("p", null, "Remove the Close Button in the upper right of the Modal if the user must choose the course of action before proceeding."))); },
|
|
38
|
+
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n function secondaryAction() {\n console.log(\"Secondary action invoked\");\n setShowModal(false);\n }\n \n function primaryAction() {\n console.log(\"Primary action invoked\");\n setShowModal(false);\n }\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <SpsModalV2Footer>\n <SpsButton onClick={secondaryAction}>Secondary Action</SpsButton>\n <SpsButton kind={ButtonKind.KEY} onClick={primaryAction}>Primary Action</SpsButton>\n </SpsModalV2Footer>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n function secondaryAction() {\n console.log(\"Secondary action invoked\");\n setShowModal(false);\n }\n \n function primaryAction() {\n console.log(\"Primary action invoked\");\n setShowModal(false);\n }\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n <SpsModalV2Footer>\n <SpsButton onClick={secondaryAction}>Secondary Action</SpsButton>\n <SpsButton kind={ButtonKind.KEY} onClick={primaryAction}>Primary Action</SpsButton>\n </SpsModalV2Footer>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
sizing: {
|
|
43
|
+
label: "Sizing",
|
|
44
|
+
description: function () { return (React.createElement("p", null, "There are 3 sizes of Modal: Small (4 columns), Medium (6 columns), and Large (8 columns). Use the size that best fits the content that needs to be in the Modal, erring towards the smallest size whenever possible.")); },
|
|
45
|
+
},
|
|
46
|
+
default: {
|
|
47
|
+
label: "Default",
|
|
48
|
+
description: function () { return (React.createElement("p", null, "Use Default Modals to inform the user of something with a neutral meaning. Use these as the default option for Modals.")); },
|
|
49
|
+
examples: {
|
|
50
|
+
small: {
|
|
51
|
+
description: "Small",
|
|
52
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
53
|
+
},
|
|
54
|
+
medium: {
|
|
55
|
+
description: "Medium",
|
|
56
|
+
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
57
|
+
},
|
|
58
|
+
large: {
|
|
59
|
+
description: "Large",
|
|
60
|
+
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Default Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
delete: {
|
|
65
|
+
label: "Delete",
|
|
66
|
+
description: function () { return (React.createElement("p", null, "Use Delete Modals to have the user confirm they want to continue with a destructive action. Be clear on what will happen if they continue.")); },
|
|
67
|
+
examples: {
|
|
68
|
+
small: {
|
|
69
|
+
description: "Small",
|
|
70
|
+
react: code(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
71
|
+
},
|
|
72
|
+
medium: {
|
|
73
|
+
description: "Medium",
|
|
74
|
+
react: code(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
75
|
+
},
|
|
76
|
+
large: {
|
|
77
|
+
description: "Large",
|
|
78
|
+
react: code(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Delete Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SERIOUS_WARNING}\n title=\"Delete\"\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
informational: {
|
|
83
|
+
label: "Informational",
|
|
84
|
+
description: function () { return (React.createElement("p", null, "Use Informational Modals to share impactful information with the user, such as telling them when an app will be down for maintenance.")); },
|
|
85
|
+
examples: {
|
|
86
|
+
small: {
|
|
87
|
+
description: "Small",
|
|
88
|
+
react: code(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
89
|
+
},
|
|
90
|
+
medium: {
|
|
91
|
+
description: "Medium",
|
|
92
|
+
react: code(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
93
|
+
},
|
|
94
|
+
large: {
|
|
95
|
+
description: "Large",
|
|
96
|
+
react: code(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Informational Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.INFO}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
success: {
|
|
101
|
+
label: "Success",
|
|
102
|
+
description: function () { return (React.createElement("p", null, "Use Success Modals to confirm that an action has been completed successfully.")); },
|
|
103
|
+
examples: {
|
|
104
|
+
small: {
|
|
105
|
+
description: "Small",
|
|
106
|
+
react: code(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
107
|
+
},
|
|
108
|
+
medium: {
|
|
109
|
+
description: "Medium",
|
|
110
|
+
react: code(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
111
|
+
},
|
|
112
|
+
large: {
|
|
113
|
+
description: "Large",
|
|
114
|
+
react: code(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Success Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.SUCCESS}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
warning: {
|
|
119
|
+
label: "Warning",
|
|
120
|
+
description: function () { return (React.createElement("p", null, "Use Warning Modals to warn of problems that may occur as a result of taking an action. When writing the message, be clear about what will happen if the user continues on the path.")); },
|
|
121
|
+
examples: {
|
|
122
|
+
small: {
|
|
123
|
+
description: "Small",
|
|
124
|
+
react: code(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Small Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.SMALL}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
125
|
+
},
|
|
126
|
+
medium: {
|
|
127
|
+
description: "Medium",
|
|
128
|
+
react: code(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Medium Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.MEDIUM}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
129
|
+
},
|
|
130
|
+
large: {
|
|
131
|
+
description: "Large",
|
|
132
|
+
react: code(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "], ["\n function Component() {\n const [showModal, setShowModal] = React.useState(false);\n\n return <>\n <SpsButton kind={ButtonKind.LINK} onClick={() => setShowModal(true)}>\n Show Large Warning Modal\n </SpsButton>\n {showModal && (\n <SpsModalV2\n size={ModalSize.LARGE}\n onClose={() => setShowModal(false)}\n kind={ModalKind.WARNING}\n >\n <div className=\"sps-text-semibold mb-1\">Optional Headline</div>\n <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>\n </SpsModalV2>\n )}\n </>;\n }\n "]))),
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
};
|
|
137
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
138
|
+
//# sourceMappingURL=SpsModal.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsModal.examples.js","sourceRoot":"","sources":["../../../src/modal/SpsModal.examples.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
24
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
25
|
+
if (!m) return o;
|
|
26
|
+
var i = m.call(o), r, ar = [], e;
|
|
27
|
+
try {
|
|
28
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
29
|
+
}
|
|
30
|
+
catch (error) { e = { error: error }; }
|
|
31
|
+
finally {
|
|
32
|
+
try {
|
|
33
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
34
|
+
}
|
|
35
|
+
finally { if (e) throw e.error; }
|
|
36
|
+
}
|
|
37
|
+
return ar;
|
|
38
|
+
};
|
|
39
|
+
// Circular dep will be resolved when we delete the old modal
|
|
40
|
+
/* eslint-disable import/no-cycle */
|
|
41
|
+
import * as React from "react";
|
|
42
|
+
import * as ReactDOM from "react-dom";
|
|
43
|
+
import clsx from "clsx";
|
|
44
|
+
import * as PropTypes from "../prop-types";
|
|
45
|
+
import { selectChildren } from "../utils/selectChildren";
|
|
46
|
+
import { SpsModalHeader } from "./SpsModalHeader";
|
|
47
|
+
import { SpsModalOverlay } from "./SpsModalOverlay";
|
|
48
|
+
import { SpsModalBody } from "./SpsModalBody";
|
|
49
|
+
import { SpsModalFooter } from "./SpsModalFooter";
|
|
50
|
+
import { SpsModalAction } from "./SpsModalAction";
|
|
51
|
+
var propsDoc = {
|
|
52
|
+
kind: "string",
|
|
53
|
+
isOpen: "boolean",
|
|
54
|
+
header: "string | () => string",
|
|
55
|
+
size: "string",
|
|
56
|
+
backdrop: "string",
|
|
57
|
+
actionRequired: "boolean",
|
|
58
|
+
onOpen: "Function",
|
|
59
|
+
onClose: "Function",
|
|
60
|
+
};
|
|
61
|
+
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { kind: PropTypes.string, id: PropTypes.string, isOpen: PropTypes.bool, header: PropTypes.oneOfType([
|
|
62
|
+
PropTypes.string, PropTypes.fun(),
|
|
63
|
+
]), onClose: PropTypes.func, onOpen: PropTypes.func, size: PropTypes.string, backdrop: PropTypes.string, actionRequired: PropTypes.bool });
|
|
64
|
+
function SpsModal(modalProps) {
|
|
65
|
+
var lastFocusable;
|
|
66
|
+
var isOpen = modalProps.isOpen;
|
|
67
|
+
// States
|
|
68
|
+
var _a = __read(React.useState(false), 2), visible = _a[0], setVisible = _a[1];
|
|
69
|
+
var _b = __read(React.useState(false), 2), isAsyncOn = _b[0], setIsAsyncOn = _b[1];
|
|
70
|
+
// Refs
|
|
71
|
+
var element = React.useRef();
|
|
72
|
+
// Effects
|
|
73
|
+
React.useEffect(function () { return document.body.classList.remove("modal-open"); }, []);
|
|
74
|
+
React.useEffect(function () {
|
|
75
|
+
if (!visible) {
|
|
76
|
+
document.body.classList.remove("modal-open");
|
|
77
|
+
}
|
|
78
|
+
}, [visible]);
|
|
79
|
+
var closeable = function () {
|
|
80
|
+
if (!modalProps.actionRequired && !isAsyncOn) {
|
|
81
|
+
/*
|
|
82
|
+
* sigh, this component is such a piece of trash
|
|
83
|
+
* will be resolved by deleting this entire file
|
|
84
|
+
*/
|
|
85
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
86
|
+
return close;
|
|
87
|
+
}
|
|
88
|
+
return function () { };
|
|
89
|
+
};
|
|
90
|
+
var onKeyDown = function (e) {
|
|
91
|
+
switch (e.key) {
|
|
92
|
+
case "Escape":
|
|
93
|
+
closeable()();
|
|
94
|
+
break;
|
|
95
|
+
case "Tab":
|
|
96
|
+
if (e.target === lastFocusable) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
}
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
var open = function () {
|
|
104
|
+
document.addEventListener("keydown", onKeyDown);
|
|
105
|
+
document.body.classList.add("modal-open");
|
|
106
|
+
setVisible(true);
|
|
107
|
+
if (typeof modalProps.onOpen === "function") {
|
|
108
|
+
modalProps.onOpen();
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
function close() {
|
|
112
|
+
document.removeEventListener("keydown", onKeyDown);
|
|
113
|
+
document.body.classList.remove("modal-open");
|
|
114
|
+
setVisible(false);
|
|
115
|
+
if (typeof modalProps.onClose === "function") {
|
|
116
|
+
modalProps.onClose();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
React.useEffect(function () {
|
|
120
|
+
if (isOpen) {
|
|
121
|
+
open();
|
|
122
|
+
}
|
|
123
|
+
else if (!isOpen) {
|
|
124
|
+
close();
|
|
125
|
+
}
|
|
126
|
+
}, [isOpen]);
|
|
127
|
+
var turnOnAsyncMode = function () {
|
|
128
|
+
setIsAsyncOn(true);
|
|
129
|
+
};
|
|
130
|
+
var turnOffAsyncMode = function () {
|
|
131
|
+
setIsAsyncOn(false);
|
|
132
|
+
};
|
|
133
|
+
var renderModalTemplate = function () {
|
|
134
|
+
var handleAsync = {
|
|
135
|
+
turnAsyncOn: turnOnAsyncMode,
|
|
136
|
+
turnAsyncOff: turnOffAsyncMode,
|
|
137
|
+
isAsyncOn: isAsyncOn,
|
|
138
|
+
};
|
|
139
|
+
var modalTypes = {
|
|
140
|
+
default: "sps-modal-legacy--default",
|
|
141
|
+
success: "sps-modal-legacy--success",
|
|
142
|
+
delete: "sps-modal-legacy--delete",
|
|
143
|
+
key: "sps-modal-legacy--key",
|
|
144
|
+
info: "sps-modal-legacy--info",
|
|
145
|
+
warning: "sps-modal-legacy--warning",
|
|
146
|
+
};
|
|
147
|
+
var modalSizes = {
|
|
148
|
+
small: "sps-modal-legacy__dialog--small",
|
|
149
|
+
large: "sps-modal-legacy__dialog--large",
|
|
150
|
+
};
|
|
151
|
+
var show = {
|
|
152
|
+
display: "block",
|
|
153
|
+
pointerEvents: "none",
|
|
154
|
+
paddingRight: "17px",
|
|
155
|
+
};
|
|
156
|
+
var hide = {
|
|
157
|
+
display: "none",
|
|
158
|
+
};
|
|
159
|
+
var id = modalProps.id, size = modalProps.size, backdrop = modalProps.backdrop, onClose = modalProps.onClose, onOpen = modalProps.onOpen, header = modalProps.header, kind = modalProps.kind, children = modalProps.children, className = modalProps.className, actionRequired = modalProps.actionRequired, testId = modalProps["data-testid"], rest = __rest(modalProps, ["id", "size", "backdrop", "onClose", "onOpen", "header", "kind", "children", "className", "actionRequired", "data-testid"]);
|
|
160
|
+
if (!kind) {
|
|
161
|
+
throw new Error("SpsModal: kind is a required field");
|
|
162
|
+
}
|
|
163
|
+
if (!id) {
|
|
164
|
+
throw new Error("SpsModal: id is a required field");
|
|
165
|
+
}
|
|
166
|
+
var modalClass = clsx("sps-modal-legacy", className, modalTypes[kind]);
|
|
167
|
+
var modalDialogClass = clsx("sps-modal-legacy__dialog", modalSizes[size]);
|
|
168
|
+
var _a = __read(selectChildren(children, [
|
|
169
|
+
[
|
|
170
|
+
{ type: SpsModalAction }, { type: SpsModalFooter },
|
|
171
|
+
],
|
|
172
|
+
]), 2), actionsAndFooter = _a[0], otherChildren = _a[1];
|
|
173
|
+
return (React.createElement(React.Fragment, null,
|
|
174
|
+
React.createElement("div", __assign({ className: modalClass }, rest, { style: visible ? show : hide, role: "dialog", "data-testid": "" + testId, onKeyDown: onKeyDown, ref: element }),
|
|
175
|
+
React.createElement("div", { className: modalDialogClass, role: "document" },
|
|
176
|
+
React.createElement("div", { className: "sps-modal-legacy__content" },
|
|
177
|
+
header ? React.createElement(SpsModalHeader, { header: header }) : null,
|
|
178
|
+
otherChildren,
|
|
179
|
+
React.Children.map(actionsAndFooter, function (child) { return React.cloneElement(child, {
|
|
180
|
+
closeModal: close,
|
|
181
|
+
handleAsync: handleAsync,
|
|
182
|
+
}); })))),
|
|
183
|
+
React.createElement(SpsModalOverlay, { id: "modal_overlay_" + id, backdrop: backdrop, onOverlayClick: closeable(), "data-testid": testId + "__overlay" })));
|
|
184
|
+
};
|
|
185
|
+
return ReactDOM.createPortal(React.createElement(React.Fragment, null, visible ? renderModalTemplate() : null), document.body);
|
|
186
|
+
}
|
|
187
|
+
Object.assign(SpsModal, {
|
|
188
|
+
props: propsDoc,
|
|
189
|
+
propTypes: propTypes,
|
|
190
|
+
displayName: "SpsModal",
|
|
191
|
+
});
|
|
192
|
+
export { SpsModal, SpsModalHeader, SpsModalOverlay, SpsModalBody, SpsModalFooter, SpsModalAction, };
|
|
193
|
+
//# sourceMappingURL=SpsModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsModal.js","sourceRoot":"","sources":["../../../src/modal/SpsModal.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAA6D;AAC7D,oCAAoC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,SAAS,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,IAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,uBAAuB;IAC/B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ;IAClB,cAAc,EAAE,SAAS;IACzB,MAAM,EAAE,UAAU;IAClB,OAAO,EAAE,UAAU;CACpB,CAAC;AAEF,IAAM,SAAS,yBACV,SAAS,CAAC,kBAAkB,KAC/B,IAAI,EAAE,SAAS,CAAC,MAAM,EACtB,EAAE,EAAE,SAAS,CAAC,MAAM,EACpB,MAAM,EAAE,SAAS,CAAC,IAAI,EACtB,MAAM,EAAE,SAAS,CAAC,SAAS,CAAC;QAC1B,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,EAAgB;KAChD,CAAC,EACF,OAAO,EAAE,SAAS,CAAC,IAAI,EACvB,MAAM,EAAE,SAAS,CAAC,IAAI,EACtB,IAAI,EAAE,SAAS,CAAC,MAAM,EACtB,QAAQ,EAAE,SAAS,CAAC,MAAM,EAC1B,cAAc,EAAE,SAAS,CAAC,IAAI,GAC/B,CAAC;AAIF,SAAS,QAAQ,CAAC,UAAyB;IACzC,IAAI,aAAa,CAAC;IAEV,IAAA,MAAM,GAAK,UAAU,OAAf,CAAgB;IAE9B,SAAS;IACH,IAAA,KAAA,OAAwB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAA,EAA5C,OAAO,QAAA,EAAE,UAAU,QAAyB,CAAC;IAC9C,IAAA,KAAA,OAA4B,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAA,EAAhD,SAAS,QAAA,EAAE,YAAY,QAAyB,CAAC;IAExD,OAAO;IACP,IAAM,OAAO,GAAQ,KAAK,CAAC,MAAM,EAAE,CAAC;IAEpC,UAAU;IACV,KAAK,CAAC,SAAS,CAAC,cAAM,OAAA,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,EAA5C,CAA4C,EAAE,EAAE,CAAC,CAAC;IAExE,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,CAAC,OAAO,EAAE;YACZ,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;SAC9C;IACH,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEd,IAAM,SAAS,GAAG;QAChB,IAAI,CAAC,UAAU,CAAC,cAAc,IAAI,CAAC,SAAS,EAAE;YAC5C;;;eAGG;YACH,mEAAmE;YACnE,OAAO,KAAK,CAAC;SACd;QACD,OAAO,cAAO,CAAC,CAAC;IAClB,CAAC,CAAC;IAEF,IAAM,SAAS,GAAG,UAAC,CAAC;QAClB,QAAQ,CAAC,CAAC,GAAG,EAAE;YACb,KAAK,QAAQ;gBACX,SAAS,EAAE,EAAE,CAAC;gBACd,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,CAAC,CAAC,MAAM,KAAK,aAAa,EAAE;oBAC9B,CAAC,CAAC,cAAc,EAAE,CAAC;iBACpB;gBACD,MAAM;YACR,QAAQ;SACT;IACH,CAAC,CAAC;IAEF,IAAM,IAAI,GAAG;QACX,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QAChD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QAC1C,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,IAAI,OAAO,UAAU,CAAC,MAAM,KAAK,UAAU,EAAE;YAC3C,UAAU,CAAC,MAAM,EAAE,CAAC;SACrB;IACH,CAAC,CAAC;IAEF,SAAS,KAAK;QACZ,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;QACnD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;QAC7C,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,IAAI,OAAO,UAAU,CAAC,OAAO,KAAK,UAAU,EAAE;YAC5C,UAAU,CAAC,OAAO,EAAE,CAAC;SACtB;IACH,CAAC;IAED,KAAK,CAAC,SAAS,CAAC;QACd,IAAI,MAAM,EAAE;YACV,IAAI,EAAE,CAAC;SACR;aAAM,IAAI,CAAC,MAAM,EAAE;YAClB,KAAK,EAAE,CAAC;SACT;IACH,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,IAAM,eAAe,GAAG;QACtB,YAAY,CAAC,IAAI,CAAC,CAAC;IACrB,CAAC,CAAC;IAEF,IAAM,gBAAgB,GAAG;QACvB,YAAY,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;IAEF,IAAM,mBAAmB,GAAG;QAC1B,IAAM,WAAW,GAAG;YAClB,WAAW,EAAE,eAAe;YAC5B,YAAY,EAAE,gBAAgB;YAC9B,SAAS,WAAA;SACV,CAAC;QACF,IAAM,UAAU,GAAG;YACjB,OAAO,EAAE,2BAA2B;YACpC,OAAO,EAAE,2BAA2B;YACpC,MAAM,EAAE,0BAA0B;YAClC,GAAG,EAAE,uBAAuB;YAC5B,IAAI,EAAE,wBAAwB;YAC9B,OAAO,EAAE,2BAA2B;SACrC,CAAC;QAEF,IAAM,UAAU,GAAG;YACjB,KAAK,EAAE,iCAAiC;YACxC,KAAK,EAAE,iCAAiC;SACzC,CAAC;QAEF,IAAM,IAAI,GAAG;YACX,OAAO,EAAE,OAAO;YAChB,aAAa,EAAE,MAAM;YACrB,YAAY,EAAE,MAAM;SACrB,CAAC;QAEF,IAAM,IAAI,GAAG;YACX,OAAO,EAAE,MAAM;SAChB,CAAC;QAGA,IAAA,EAAE,GAYA,UAAU,GAZV,EACF,IAAI,GAWF,UAAU,KAXR,EACJ,QAAQ,GAUN,UAAU,SAVJ,EACR,OAAO,GASL,UAAU,QATL,EACP,MAAM,GAQJ,UAAU,OARN,EACN,MAAM,GAOJ,UAAU,OAPN,EACN,IAAI,GAMF,UAAU,KANR,EACJ,QAAQ,GAKN,UAAU,SALJ,EACR,SAAS,GAIP,UAAU,UAJH,EACT,cAAc,GAGZ,UAAU,eAHE,EACC,MAAM,GAEnB,UAAU,eAFS,EAClB,IAAI,UACL,UAAU,EAbR,2HAaL,CADQ,CACM;QAEf,IAAI,CAAC,IAAI,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACvD;QAED,IAAI,CAAC,EAAE,EAAE;YACP,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;SACrD;QAED,IAAM,UAAU,GAAG,IAAI,CAAC,kBAAkB,EAAE,SAAS,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QACzE,IAAM,gBAAgB,GAAG,IAAI,CAAC,0BAA0B,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAEtE,IAAA,KAAA,OAAoC,cAAc,CAAC,QAAQ,EAAE;YACjE;gBACE,EAAE,IAAI,EAAE,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;aACnD;SACF,CAAC,IAAA,EAJK,gBAAgB,QAAA,EAAE,aAAa,QAIpC,CAAC;QAEH,OAAO,CACL;YACE,sCACE,SAAS,EAAE,UAAU,IACjB,IAAI,IACR,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAC5B,IAAI,EAAC,QAAQ,iBAEA,KAAG,MAAQ,EACxB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,OAAO;gBAEZ,6BAAK,SAAS,EAAE,gBAAgB,EAAE,IAAI,EAAC,UAAU;oBAC/C,6BAAK,SAAS,EAAC,2BAA2B;wBACvC,MAAM,CAAC,CAAC,CAAC,oBAAC,cAAc,IAAC,MAAM,EAAE,MAAM,GAAI,CAAC,CAAC,CAAC,IAAI;wBAClD,aAAa;wBACb,KAAK,CAAC,QAAQ,CAAC,GAAG,CACjB,gBAAgB,EAChB,UAAC,KAAK,IAAK,OAAA,KAAK,CAAC,YAAY,CAAC,KAAgC,EAAE;4BAC9D,UAAU,EAAE,KAAK;4BACjB,WAAW,aAAA;yBACZ,CAAC,EAHS,CAGT,CACH,CACG,CACF,CACF;YACN,oBAAC,eAAe,IACd,EAAE,EAAE,mBAAiB,EAAI,EACzB,QAAQ,EAAE,QAAQ,EAClB,cAAc,EAAE,SAAS,EAAE,iBACX,MAAM,cAAW,GACjC,CACD,CACJ,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,QAAQ,CAAC,YAAY,CAC1B,0CAAG,OAAO,CAAC,CAAC,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAI,EAC7C,QAAQ,CAAC,IAAI,CACd,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE;IACtB,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,UAAU;CACxB,CAAC,CAAC;AAEH,OAAO,EACL,QAAQ,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,GACxF,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ButtonKind } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
declare const propTypes: {
|
|
4
|
+
kind: PropTypes.Requireable<ButtonKind>;
|
|
5
|
+
closeModal: PropTypes.Requireable<() => void>;
|
|
6
|
+
handleAsync: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
|
+
turnAsyncOn: PropTypes.Requireable<(...args: any[]) => any>;
|
|
8
|
+
turnAsyncOff: PropTypes.Requireable<(...args: any[]) => any>;
|
|
9
|
+
isAsyncOn: PropTypes.Requireable<boolean>;
|
|
10
|
+
}>>;
|
|
11
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
12
|
+
className: PropTypes.Requireable<string>;
|
|
13
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
14
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
15
|
+
};
|
|
16
|
+
export declare type SpsModalActionProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
17
|
+
export declare function SpsModalAction(props: SpsModalActionProps): JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
import * as React from "react";
|
|
29
|
+
import { ButtonKind } from "@spscommerce/ds-shared";
|
|
30
|
+
import * as PropTypes from "../prop-types";
|
|
31
|
+
import { SpsButton } from "../button/SpsButton";
|
|
32
|
+
var propsDoc = {
|
|
33
|
+
kind: "ButtonKind",
|
|
34
|
+
closeModal: "() => void",
|
|
35
|
+
handleAsync: "{ turnAsyncOn: () => void, turnAsyncOff: () => void, isAsyncOn: boolean }",
|
|
36
|
+
};
|
|
37
|
+
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { kind: PropTypes.enumValue(ButtonKind), closeModal: PropTypes.fun(), handleAsync: PropTypes.shape({
|
|
38
|
+
turnAsyncOn: PropTypes.func,
|
|
39
|
+
turnAsyncOff: PropTypes.func,
|
|
40
|
+
isAsyncOn: PropTypes.bool,
|
|
41
|
+
}) });
|
|
42
|
+
export function SpsModalAction(props) {
|
|
43
|
+
var children = props.children, onClick = props.onClick, kind = props.kind, closeModal = props.closeModal, handleAsync = props.handleAsync;
|
|
44
|
+
var _a = __read(React.useState(false), 2), asyncButton = _a[0], setAsyncButton = _a[1];
|
|
45
|
+
var onClickFunc = closeModal;
|
|
46
|
+
if (onClick && typeof onClick === "function") {
|
|
47
|
+
onClickFunc = function () {
|
|
48
|
+
var result = onClick(null);
|
|
49
|
+
if (result !== undefined) {
|
|
50
|
+
if (result && typeof result.then === "function") {
|
|
51
|
+
setAsyncButton(true);
|
|
52
|
+
handleAsync.turnAsyncOn();
|
|
53
|
+
result.then(function (shouldModalClose) {
|
|
54
|
+
if (shouldModalClose !== false) {
|
|
55
|
+
closeModal();
|
|
56
|
+
}
|
|
57
|
+
handleAsync.turnAsyncOff();
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
closeModal();
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
return (React.createElement(SpsButton, { kind: kind, onClick: onClickFunc, disabled: asyncButton ? false : handleAsync.isAsyncOn, spinning: asyncButton ? handleAsync.isAsyncOn : false }, children));
|
|
67
|
+
}
|
|
68
|
+
Object.assign(SpsModalAction, {
|
|
69
|
+
props: propsDoc,
|
|
70
|
+
propTypes: propTypes,
|
|
71
|
+
displayName: "SpsModalAction",
|
|
72
|
+
});
|
|
73
|
+
//# sourceMappingURL=SpsModalAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsModalAction.js","sourceRoot":"","sources":["../../../src/modal/SpsModalAction.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,IAAM,QAAQ,GAAG;IACf,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,YAAY;IACxB,WAAW,EAAE,2EAA2E;CACzF,CAAC;AAEF,IAAM,SAAS,yBACV,SAAS,CAAC,kBAAkB,KAC/B,IAAI,EAAE,SAAS,CAAC,SAAS,CAAa,UAAU,CAAC,EACjD,UAAU,EAAE,SAAS,CAAC,GAAG,EAAc,EACvC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC;QAC3B,WAAW,EAAE,SAAS,CAAC,IAAI;QAC3B,YAAY,EAAE,SAAS,CAAC,IAAI;QAC5B,SAAS,EAAE,SAAS,CAAC,IAAI;KAC1B,CAAC,GACH,CAAC;AAIF,MAAM,UAAU,cAAc,CAAC,KAA0B;IAErD,IAAA,QAAQ,GAKN,KAAK,SALC,EACR,OAAO,GAIL,KAAK,QAJA,EACP,IAAI,GAGF,KAAK,KAHH,EACJ,UAAU,GAER,KAAK,WAFG,EACV,WAAW,GACT,KAAK,YADI,CACH;IAEJ,IAAA,KAAA,OAAgC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAA,EAApD,WAAW,QAAA,EAAE,cAAc,QAAyB,CAAC;IAC5D,IAAI,WAAW,GAAG,UAAU,CAAC;IAC7B,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE;QAC5C,WAAW,GAAG;YACZ,IAAM,MAAM,GAAQ,OAAO,CAAC,IAAI,CAAC,CAAC;YAClC,IAAI,MAAM,KAAK,SAAS,EAAE;gBACxB,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE;oBAC/C,cAAc,CAAC,IAAI,CAAC,CAAC;oBACrB,WAAW,CAAC,WAAW,EAAE,CAAC;oBAC1B,MAAM,CAAC,IAAI,CAAC,UAAC,gBAA0B;wBACrC,IAAI,gBAAgB,KAAK,KAAK,EAAE;4BAC9B,UAAU,EAAE,CAAC;yBACd;wBACD,WAAW,CAAC,YAAY,EAAE,CAAC;oBAC7B,CAAC,CAAC,CAAC;iBACJ;aACF;iBAAM;gBACL,UAAU,EAAE,CAAC;aACd;QACH,CAAC,CAAC;KACH;IACD,OAAO,CACL,oBAAC,SAAS,IACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,EACrD,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,IAEpD,QAAQ,CACC,CACb,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,cAAc,EAAE;IAC5B,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,gBAAgB;CAC9B,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as PropTypes from "../prop-types";
|
|
2
|
+
declare const propTypes: {
|
|
3
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
4
|
+
className: PropTypes.Requireable<string>;
|
|
5
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
6
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
7
|
+
};
|
|
8
|
+
export declare type SpsModalBodyProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
9
|
+
export declare function SpsModalBody(props: SpsModalBodyProps): JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import * as React from "react";
|
|
24
|
+
import clsx from "clsx";
|
|
25
|
+
import * as PropTypes from "../prop-types";
|
|
26
|
+
import { PortalContext } from "../utils/usePortal";
|
|
27
|
+
var propsDoc = {};
|
|
28
|
+
var propTypes = __assign({}, PropTypes.spsGlobalPropTypes);
|
|
29
|
+
export function SpsModalBody(props) {
|
|
30
|
+
var children = props.children, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["children", "className", "unsafelyReplaceClassName"]);
|
|
31
|
+
var ref = React.useRef();
|
|
32
|
+
var bodyClass = unsafelyReplaceClassName || clsx("sps-modal-legacy__body", className);
|
|
33
|
+
return (React.createElement("div", __assign({ className: bodyClass }, rest, { ref: ref }),
|
|
34
|
+
React.createElement(PortalContext.Provider, { value: { parentElementRef: ref, fixed: true } }, children)));
|
|
35
|
+
}
|
|
36
|
+
Object.assign(SpsModalBody, {
|
|
37
|
+
props: propsDoc,
|
|
38
|
+
propTypes: propTypes,
|
|
39
|
+
displayName: "SpsModalBody",
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=SpsModalBody.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsModalBody.js","sourceRoot":"","sources":["../../../src/modal/SpsModalBody.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,SAAS,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,IAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,IAAM,SAAS,gBACV,SAAS,CAAC,kBAAkB,CAChC,CAAC;AAIF,MAAM,UAAU,YAAY,CAAC,KAAwB;IAEjD,IAAA,QAAQ,GAIN,KAAK,SAJC,EACR,SAAS,GAGP,KAAK,UAHE,EACT,wBAAwB,GAEtB,KAAK,yBAFiB,EACrB,IAAI,UACL,KAAK,EALH,qDAKL,CADQ,CACC;IAEV,IAAM,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC;IAE3B,IAAM,SAAS,GAAG,wBAAwB,IAAI,IAAI,CAAC,wBAAwB,EAAE,SAAS,CAAC,CAAC;IACxF,OAAO,CACL,sCAAK,SAAS,EAAE,SAAS,IAAM,IAAI,IAAE,GAAG,EAAE,GAAG;QAC3C,oBAAC,aAAa,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,IAClE,QAAQ,CACc,CACrB,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IAC1B,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,cAAc;CAC5B,CAAC,CAAC"}
|