@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,217 @@
|
|
|
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
|
+
import * as React from "react";
|
|
40
|
+
import { SpsTaskStatus, SpsTaskStatusIcons, TASK_QUEUE_NOTIFICATION_DURATION_MS, TooltipKind, TooltipShowTrigger, ButtonKind, Position, } from "@spscommerce/ds-shared";
|
|
41
|
+
import clsx from "clsx";
|
|
42
|
+
import { SpsTooltip, TooltipVisibility } from "../tooltip/SpsTooltip";
|
|
43
|
+
import * as PropTypes from "../prop-types";
|
|
44
|
+
import { I18nContext } from "../i18n";
|
|
45
|
+
import { SpsButton } from "../button/SpsButton";
|
|
46
|
+
import { getPosition } from "../utils/getPosition";
|
|
47
|
+
import { PortalContext, usePortal } from "../utils/usePortal";
|
|
48
|
+
var props = {
|
|
49
|
+
tasks: "ReactSpsTask[]",
|
|
50
|
+
taskQueuePosition: "Position",
|
|
51
|
+
notificationText: "string",
|
|
52
|
+
tooltipConfig: "{ position: Position, kind: TooltipKind }",
|
|
53
|
+
onClose: "() => void",
|
|
54
|
+
onOpen: "() => void",
|
|
55
|
+
onClearCompleted: "() => void",
|
|
56
|
+
suppressTooltips: "boolean",
|
|
57
|
+
};
|
|
58
|
+
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { tasks: PropTypes.arrayOf(PropTypes.any), taskQueuePosition: PropTypes.enumValue(Position), notificationText: PropTypes.string, tooltipConfig: PropTypes.shape({
|
|
59
|
+
position: PropTypes.enumValue(Position),
|
|
60
|
+
kind: PropTypes.enumValue(TooltipKind),
|
|
61
|
+
}), onClose: PropTypes.fun(), onOpen: PropTypes.fun(), onClearCompleted: PropTypes.fun(), suppressTooltips: PropTypes.bool });
|
|
62
|
+
export function SpsTaskQueue(_a) {
|
|
63
|
+
var _b = _a.tasks, tasks = _b === void 0 ? [] : _b, _c = _a.taskQueuePosition, taskQueuePosition = _c === void 0 ? Position.BOTTOM_RIGHT : _c, notificationText = _a.notificationText, _d = _a.tooltipConfig, tooltipConfig = _d === void 0 ? {} : _d, onOpen = _a.onOpen, onClose = _a.onClose, onClearCompleted = _a.onClearCompleted, className = _a.className, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, _e = _a.suppressTooltips, suppressTooltips = _e === void 0 ? false : _e, rest = __rest(_a, ["tasks", "taskQueuePosition", "notificationText", "tooltipConfig", "onOpen", "onClose", "onClearCompleted", "className", "data-testid", "unsafelyReplaceClassName", "suppressTooltips"]);
|
|
64
|
+
var t = React.useContext(I18nContext).t;
|
|
65
|
+
var hasTasks = !!tasks.length;
|
|
66
|
+
var _f = __read(React.useState(false), 2), isOpen = _f[0], setIsOpen = _f[1];
|
|
67
|
+
var _g = __read(React.useState(hasTasks), 2), showNotification = _g[0], setShowNotification = _g[1];
|
|
68
|
+
var toggleRef = React.useRef(null);
|
|
69
|
+
var taskQueueDropdownRef = React.useRef(null);
|
|
70
|
+
var resizeListener = React.useCallback(function () {
|
|
71
|
+
setIsOpen(false);
|
|
72
|
+
if (onClose) {
|
|
73
|
+
onClose();
|
|
74
|
+
}
|
|
75
|
+
}, []);
|
|
76
|
+
React.useEffect(function () {
|
|
77
|
+
if (isOpen) {
|
|
78
|
+
window.addEventListener("resize", resizeListener);
|
|
79
|
+
}
|
|
80
|
+
else {
|
|
81
|
+
window.removeEventListener("resize", resizeListener);
|
|
82
|
+
}
|
|
83
|
+
}, [isOpen]);
|
|
84
|
+
var portal = usePortal("sps-task-queue-portal");
|
|
85
|
+
var portalContext = React.useContext(PortalContext);
|
|
86
|
+
var _h = __read(isOpen
|
|
87
|
+
? getPosition(taskQueueDropdownRef, toggleRef, taskQueuePosition, __assign({ altPosition: taskQueuePosition }, portalContext))
|
|
88
|
+
: [{}, false], 1), posStyle = _h[0];
|
|
89
|
+
var tooltipPosition = tooltipConfig.position || Position.BOTTOM_RIGHT;
|
|
90
|
+
var tooltipKind = tooltipConfig.kind || TooltipKind.DEFAULT;
|
|
91
|
+
var unreadTasksCount = tasks.filter(function (task) { return task.unread; }).length;
|
|
92
|
+
var inProgressTasksCount = tasks.filter(function (task) { return task.status === SpsTaskStatus.IN_PROGRESS; })
|
|
93
|
+
.length;
|
|
94
|
+
var hasCompletedTask = tasks.some(function (task) { return (task.status === SpsTaskStatus.COMPLETED || task.status === SpsTaskStatus.ERRORED); });
|
|
95
|
+
// this gives us a stable reference to the freshest onClose handler
|
|
96
|
+
var onCloseRef = React.useRef(onClose);
|
|
97
|
+
onCloseRef.current = onClose;
|
|
98
|
+
var handleToggle = function () {
|
|
99
|
+
if (hasTasks && !isOpen) {
|
|
100
|
+
setIsOpen(true);
|
|
101
|
+
if (onOpen) {
|
|
102
|
+
onOpen();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
else if (isOpen) {
|
|
106
|
+
setIsOpen(false);
|
|
107
|
+
if (onClose) {
|
|
108
|
+
onClose();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
var getTaskIcon = function (task) { return (task.status === SpsTaskStatus.IN_PROGRESS
|
|
113
|
+
? SpsTaskStatusIcons[task.status]
|
|
114
|
+
: "sps-icon sps-icon-" + SpsTaskStatusIcons[task.status]); };
|
|
115
|
+
// handles closing the task queue automatically if there are no more tasks in it
|
|
116
|
+
React.useEffect(function () {
|
|
117
|
+
if (isOpen && !hasTasks) {
|
|
118
|
+
setIsOpen(false);
|
|
119
|
+
if (onCloseRef.current) {
|
|
120
|
+
onCloseRef.current();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}, [isOpen, hasTasks]);
|
|
124
|
+
// handles showing notifications when new tasks are added to the queue
|
|
125
|
+
var notificationTimeout = React.useRef();
|
|
126
|
+
React.useEffect(function () {
|
|
127
|
+
if (unreadTasksCount > 0) {
|
|
128
|
+
setShowNotification(true);
|
|
129
|
+
if (notificationTimeout.current) {
|
|
130
|
+
window.clearTimeout(notificationTimeout.current);
|
|
131
|
+
}
|
|
132
|
+
notificationTimeout.current = window.setTimeout(function () {
|
|
133
|
+
notificationTimeout.current = undefined;
|
|
134
|
+
setShowNotification(false);
|
|
135
|
+
}, TASK_QUEUE_NOTIFICATION_DURATION_MS);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
if (notificationTimeout.current) {
|
|
139
|
+
window.clearTimeout(notificationTimeout.current);
|
|
140
|
+
notificationTimeout.current = undefined;
|
|
141
|
+
}
|
|
142
|
+
setShowNotification(false);
|
|
143
|
+
}
|
|
144
|
+
}, [unreadTasksCount]);
|
|
145
|
+
// handles clicks outside of the task queue component
|
|
146
|
+
React.useEffect(function () {
|
|
147
|
+
// handles clicks outside of the task queue
|
|
148
|
+
var documentClickListener = function () {
|
|
149
|
+
setIsOpen(function (currentIsOpen) {
|
|
150
|
+
if (currentIsOpen && onCloseRef.current) {
|
|
151
|
+
onCloseRef.current();
|
|
152
|
+
}
|
|
153
|
+
return false;
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
document.addEventListener("click", documentClickListener);
|
|
157
|
+
return function () {
|
|
158
|
+
document.removeEventListener("click", documentClickListener);
|
|
159
|
+
};
|
|
160
|
+
}, []);
|
|
161
|
+
// handles cleanup
|
|
162
|
+
React.useEffect(function () { return function () {
|
|
163
|
+
if (notificationTimeout.current) {
|
|
164
|
+
window.clearTimeout(notificationTimeout.current);
|
|
165
|
+
}
|
|
166
|
+
}; }, []);
|
|
167
|
+
var containerClassNames = clsx(unsafelyReplaceClassName || "sps-task-queue", isOpen && "sps-task-queue--open", isOpen && "z-stratum-dropdown", !hasTasks && "sps-task-queue--no-tasks", className);
|
|
168
|
+
function renderActionButtons(task) {
|
|
169
|
+
return task.actions.map(function (action) {
|
|
170
|
+
if (React.isValidElement(action)) {
|
|
171
|
+
if (action.type !== SpsButton || action.props.kind !== ButtonKind.ICON) {
|
|
172
|
+
throw new Error("Task queue task action must be a config object or an SpsButton of kind ICON");
|
|
173
|
+
}
|
|
174
|
+
return action;
|
|
175
|
+
}
|
|
176
|
+
return (React.createElement("div", { key: action.icon, className: "sps-button sps-button--icon" },
|
|
177
|
+
React.createElement("button", { type: "button", title: action.label, disabled: action.disabled, onClick: function () {
|
|
178
|
+
if (action.onClick) {
|
|
179
|
+
action.onClick(task);
|
|
180
|
+
}
|
|
181
|
+
} },
|
|
182
|
+
action.caption,
|
|
183
|
+
action.icon && (React.createElement("i", { className: "sps-icon sps-icon-" + action.icon, "aria-hidden": "true" })))));
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
return (React.createElement("div", __assign({ className: containerClassNames, onClick: function (e) {
|
|
187
|
+
/*
|
|
188
|
+
* stops click events from propagating outside of the task queue
|
|
189
|
+
* so that it doesn't close itself when clicking inside of it
|
|
190
|
+
*/
|
|
191
|
+
e.nativeEvent.stopImmediatePropagation();
|
|
192
|
+
}, "data-testid": testId }, rest),
|
|
193
|
+
React.createElement("button", { type: "button", ref: toggleRef, className: "sps-task-queue__button", title: "Task Queue", onClick: handleToggle },
|
|
194
|
+
!!unreadTasksCount && (React.createElement("span", { className: "sps-tag sps-tag--info" }, unreadTasksCount)),
|
|
195
|
+
inProgressTasksCount ? (React.createElement("span", { className: "sps-spinner sps-spinner--small" })) : (React.createElement("i", { className: "sps-icon sps-icon-list", "aria-hidden": "true" }))),
|
|
196
|
+
React.createElement(SpsTooltip, { for: toggleRef, position: tooltipPosition, kind: tooltipKind, showOn: hasTasks ? TooltipShowTrigger.MANUAL : TooltipShowTrigger.MOUSEOVER, isShown: showNotification && !isOpen
|
|
197
|
+
? TooltipVisibility.VISIBLE
|
|
198
|
+
: TooltipVisibility.HIDDEN, hideDelay: TASK_QUEUE_NOTIFICATION_DURATION_MS },
|
|
199
|
+
!suppressTooltips && showNotification && (notificationText || t("design-system:taskQueue.newTask")),
|
|
200
|
+
!suppressTooltips && !showNotification && !hasTasks && t("design-system:taskQueue.noTasks")),
|
|
201
|
+
portal(React.createElement("div", { ref: taskQueueDropdownRef, className: clsx("sps-task-queue__task-list", isOpen && "sps-task-queue__task-list--open", "z-stratum-dropdown"), style: posStyle },
|
|
202
|
+
React.createElement("div", { className: "sps-task-queue__task-list-tasks" }, tasks.map(function (task, taskIndex) { return (React.createElement("div", { key: taskIndex, className: clsx("sps-task-queue__task", task.unread && "sps-task-queue__task--unread") },
|
|
203
|
+
React.createElement("i", { className: getTaskIcon(task) }),
|
|
204
|
+
React.createElement("div", { className: "sps-task-queue__task-description" },
|
|
205
|
+
React.createElement("div", { className: "sps-task-queue__task-heading" }, task.heading),
|
|
206
|
+
task.subheading && (React.createElement("div", { className: "sps-task-queue__task-subheading", title: task.subheading }, task.subheading))),
|
|
207
|
+
task.actions && !!task.actions.length && (React.createElement("div", { className: "sps-task-queue__task-actions" }, renderActionButtons(task))))); })),
|
|
208
|
+
hasCompletedTask && onClearCompleted && (React.createElement("div", { className: "sps-task-queue__footer" },
|
|
209
|
+
React.createElement("div", { className: "sps-button sps-button--link" },
|
|
210
|
+
React.createElement("button", { type: "button", onClick: onClearCompleted }, t("design-system:taskQueue.clearCompleted")))))))));
|
|
211
|
+
}
|
|
212
|
+
Object.assign(SpsTaskQueue, {
|
|
213
|
+
props: props,
|
|
214
|
+
propTypes: propTypes,
|
|
215
|
+
displayName: "SpsTaskQueue",
|
|
216
|
+
});
|
|
217
|
+
//# sourceMappingURL=SpsTaskQueue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTaskQueue.js","sourceRoot":"","sources":["../../../src/task-queue/SpsTaskQueue.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAO;oBACjE,IAAI,CAAC,UAAU,IAAI,CAClB,6BACE,SAAS,EAAC,iCAAiC,EAC3C,KAAK,EAAE,IAAI,CAAC,UAAoB,IAE/B,IAAI,CAAC,UAAU,CACZ,CACP,CACG;gBAEL,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CACxC,6BAAK,SAAS,EAAC,8BAA8B,IAC1C,mBAAmB,CAAC,IAAI,CAAC,CACtB,CACP,CACG,CACP,EA3B+B,CA2B/B,CAAC,CACE;YAEL,gBAAgB,IAAI,gBAAgB,IAAI,CACvC,6BAAK,SAAS,EAAC,wBAAwB;gBACrC,6BAAK,SAAS,EAAC,6BAA6B;oBAC1C,gCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,gBAAgB,IAC5C,CAAC,CAAC,wCAAwC,CAAC,CACrC,CACL,CACF,CACP,CACG,CACP,CACG,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IAC1B,KAAK,OAAA;IACL,SAAS,WAAA;IACT,WAAW,EAAE,cAAc;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/task-queue/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (_) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { act } from "@testing-library/react";
|
|
38
|
+
export function waitATick() {
|
|
39
|
+
var _this = this;
|
|
40
|
+
void act(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
41
|
+
return __generator(this, function (_a) {
|
|
42
|
+
return [2 /*return*/, new Promise(function (resolve) {
|
|
43
|
+
window.setTimeout(resolve, 0);
|
|
44
|
+
})];
|
|
45
|
+
});
|
|
46
|
+
}); });
|
|
47
|
+
}
|
|
48
|
+
export function wait(delay) {
|
|
49
|
+
if (delay === void 0) { delay = 0; }
|
|
50
|
+
return new Promise(function (resolve) {
|
|
51
|
+
window.setTimeout(resolve, delay);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=test-util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-util.js","sourceRoot":"","sources":["../../src/test-util.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAE7C,MAAM,UAAU,SAAS;IAAzB,iBAIC;IAHC,KAAK,GAAG,CAAC;;YAAY,sBAAA,IAAI,OAAO,CAAC,UAAC,OAAO;oBACvC,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;gBAChC,CAAC,CAAC,EAAA;;SAAA,CAAC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,IAAI,CAAC,KAAS;IAAT,sBAAA,EAAA,SAAS;IAC5B,OAAO,IAAI,OAAO,CAAC,UAAC,OAAO;QACzB,MAAM,CAAC,UAAU,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
3
|
+
import * as PropTypes from "../prop-types";
|
|
4
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
5
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
6
|
+
declare const propTypes: {
|
|
7
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
8
|
+
formControl: PropTypes.Requireable<SpsFormControl<string>>;
|
|
9
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<string>>;
|
|
10
|
+
icon: PropTypes.Requireable<SpsIcon>;
|
|
11
|
+
name: PropTypes.Requireable<string>;
|
|
12
|
+
onChange: PropTypes.Requireable<React.ChangeEventHandler<HTMLInputElement>>;
|
|
13
|
+
placeholder: PropTypes.Requireable<string>;
|
|
14
|
+
value: PropTypes.Requireable<string>;
|
|
15
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
className: PropTypes.Requireable<string>;
|
|
17
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
18
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
|
+
};
|
|
20
|
+
export declare type SpsTextInputProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
21
|
+
export declare const SpsTextInput: React.ForwardRefExoticComponent<Pick<SpsTextInputProps, "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "icon" | "data-testid" | "unsafelyReplaceClassName" | "formMeta" | "formControl"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
import { code } from "@spscommerce/utils";
|
|
6
|
+
export var SpsTextInputExamples = {
|
|
7
|
+
standard: {
|
|
8
|
+
label: "Standard",
|
|
9
|
+
description: "info about standard text inputs",
|
|
10
|
+
examples: {
|
|
11
|
+
standard: {
|
|
12
|
+
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>Foo</SpsLabel>\n <SpsTextInput\n value={formValue.foo}\n formMeta={formMeta.fields.foo}\n />\n </>;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>Foo</SpsLabel>\n <SpsTextInput\n value={formValue.foo}\n formMeta={formMeta.fields.foo}\n />\n </>;\n }\n "]))),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
b_placeholder: {
|
|
17
|
+
label: "Placeholder",
|
|
18
|
+
description: "info about text input placeholders",
|
|
19
|
+
examples: {
|
|
20
|
+
placeholder: {
|
|
21
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>\n Company Name\n </SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.foo}\n value={formValue.foo}\n placeholder=\"Enter a company name\"\n ></SpsTextInput>\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}>\n Company Name\n </SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.foo}\n value={formValue.foo}\n placeholder=\"Enter a company name\"\n ></SpsTextInput>\n </>\n }\n "]))),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
c_description: {
|
|
26
|
+
label: "Description",
|
|
27
|
+
description: "info about text inputs with descriptions",
|
|
28
|
+
examples: {
|
|
29
|
+
description: {
|
|
30
|
+
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}\n value={formValue.foo}\n description=\"This is a brief description of the field to provide additional context.\"\n >\n Label\n </SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.foo}/>\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ foo: \"bar\" });\n\n return <>\n <SpsLabel for={formMeta.fields.foo}\n value={formValue.foo}\n description=\"This is a brief description of the field to provide additional context.\"\n >\n Label\n </SpsLabel>\n <SpsTextInput formMeta={formMeta.fields.foo}/>\n </>\n }\n "]))),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
d_disabled: {
|
|
35
|
+
label: "Disabled",
|
|
36
|
+
description: "info about disabled text inputs",
|
|
37
|
+
examples: {
|
|
38
|
+
disabled: {
|
|
39
|
+
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ email: \"foo@bar.com\" });\n\n return <>\n <SpsLabel for={formMeta.fields.email}>\n Email Address\n </SpsLabel>\n <SpsTextInput id=\"disabledTextInput\" disabled\n value={formValue.email}\n formMeta={formMeta.fields.email}\n ></SpsTextInput>\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({ email: \"foo@bar.com\" });\n\n return <>\n <SpsLabel for={formMeta.fields.email}>\n Email Address\n </SpsLabel>\n <SpsTextInput id=\"disabledTextInput\" disabled\n value={formValue.email}\n formMeta={formMeta.fields.email}\n ></SpsTextInput>\n </>\n }\n "]))),
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
45
|
+
//# sourceMappingURL=SpsTextInput.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTextInput.examples.js","sourceRoot":"","sources":["../../../src/text-input/SpsTextInput.examples.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,CAAC,IAAM,oBAAoB,GAAoB;IACnD,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI,slBAAA,mhBAYF,IAAA;aACV;SACF;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,oCAAoC;QACjD,QAAQ,EAAE;YACR,WAAW,EAAE;gBACX,KAAK,EAAE,IAAI,ivBAAA,8qBAcF,IAAA;aACV;SACF;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,0CAA0C;QACvD,QAAQ,EAAE;YACR,WAAW,EAAE;gBACX,KAAK,EAAE,IAAI,+wBAAA,4sBAcF,IAAA;aACV;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI,+vBAAA,4rBAcF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|
|
@@ -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 __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 clsx from "clsx";
|
|
24
|
+
import * as React from "react";
|
|
25
|
+
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
26
|
+
import * as PropTypes from "../prop-types";
|
|
27
|
+
import { FauxChangeEvent } from "../utils/FauxChangeEvent";
|
|
28
|
+
import { useFormControlId } from "../form/hooks/useFormControlId";
|
|
29
|
+
import { SpsFormComponentWrapper } from "../form/SpsFormComponentWrapper";
|
|
30
|
+
var propsDoc = {
|
|
31
|
+
disabled: "boolean",
|
|
32
|
+
formMeta: "SpsFormFieldMeta<string>",
|
|
33
|
+
icon: "SpsIcon",
|
|
34
|
+
name: "string",
|
|
35
|
+
onChange: "ChangeEventHandler<HTMLInputElement>",
|
|
36
|
+
placeholder: "string",
|
|
37
|
+
value: "string",
|
|
38
|
+
};
|
|
39
|
+
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { disabled: PropTypes.bool, formControl: PropTypes.impl(), formMeta: PropTypes.impl(), icon: PropTypes.enumValue(SpsIcon), name: PropTypes.string, onChange: PropTypes.fun(), placeholder: PropTypes.string, value: PropTypes.string });
|
|
40
|
+
export var SpsTextInput = React.forwardRef(function (_a, ref) {
|
|
41
|
+
var className = _a.className, _b = _a.disabled, disabled = _b === void 0 ? false : _b, formControl = _a.formControl, formMeta = _a.formMeta, icon = _a.icon, id = _a.id, name = _a.name, onChange = _a.onChange, placeholder = _a.placeholder, testId = _a["data-testid"], title = _a.title, unsafelyReplaceClassName = _a.unsafelyReplaceClassName, _c = _a.value, value = _c === void 0 ? "" : _c, rest = __rest(_a, ["className", "disabled", "formControl", "formMeta", "icon", "id", "name", "onChange", "placeholder", "data-testid", "title", "unsafelyReplaceClassName", "value"]);
|
|
42
|
+
var meta = formMeta || formControl;
|
|
43
|
+
var _d = useFormControlId(id, meta), wrapperId = _d.wrapperId, controlId = _d.controlId;
|
|
44
|
+
var textInput = React.useRef();
|
|
45
|
+
function setAndPropagateValue(newValue, event) {
|
|
46
|
+
if (meta) {
|
|
47
|
+
meta.setValue(newValue);
|
|
48
|
+
meta.markAsDirty();
|
|
49
|
+
}
|
|
50
|
+
if (onChange) {
|
|
51
|
+
onChange(event || new FauxChangeEvent(textInput.current));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function clear() {
|
|
55
|
+
textInput.current.value = "";
|
|
56
|
+
setAndPropagateValue("");
|
|
57
|
+
}
|
|
58
|
+
function handleChange(event) {
|
|
59
|
+
setAndPropagateValue(event.target.value, event);
|
|
60
|
+
}
|
|
61
|
+
var classes = clsx(unsafelyReplaceClassName || "sps-text-input", className);
|
|
62
|
+
return (React.createElement(SpsFormComponentWrapper, { id: wrapperId, className: classes, formControl: formControl, formMeta: formMeta, inputRef: textInput, ref: ref, focusInputOnClick: true, "data-testid": "" + testId },
|
|
63
|
+
React.createElement("div", { className: clsx("sps-form-control", disabled && "disabled") },
|
|
64
|
+
icon && React.createElement("i", { className: clsx("sps-text-input__icon", "sps-icon", "sps-icon-" + icon) }),
|
|
65
|
+
React.createElement("input", __assign({ type: "text", ref: textInput, "data-testid": testId + "__input", className: "sps-text-input__input", id: controlId, name: name, placeholder: placeholder, onChange: handleChange, title: title, value: value, disabled: disabled }, rest)),
|
|
66
|
+
value && !disabled && (React.createElement("i", { "data-testid": testId + "__input_clear", className: "sps-icon sps-icon-x-circle sps-form-control__clear-btn", onClick: clear })))));
|
|
67
|
+
});
|
|
68
|
+
Object.assign(SpsTextInput, {
|
|
69
|
+
props: propsDoc,
|
|
70
|
+
propTypes: propTypes,
|
|
71
|
+
displayName: "SpsTextInput",
|
|
72
|
+
});
|
|
73
|
+
//# sour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E,QAAQ,EAClB,QAAQ,EAAE,SAAS,EACnB,GAAG,EAAE,GAAG,EACR,iBAAiB,uBACJ,KAAG,MAAQ;QAExB,6BAAK,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,IAAI,UAAU,CAAC;YAC7D,IAAI,IAAI,2BAAG,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,EAAE,cAAY,IAAM,CAAC,GAAI;YACvF,wCACE,IAAI,EAAC,MAAM,EACX,GAAG,EAAE,SAAS,iBACE,MAAM,YAAS,EAC/B,SAAS,EAAC,uBAAuB,EACjC,EAAE,EAAE,SAAS,EACb,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,IACd,IAAI,EACR;YACD,KAAK,IAAI,CAAC,QAAQ,IAAI,CACrB,0CACkB,MAAM,kBAAe,EACrC,SAAS,EAAC,wDAAwD,EAClE,OAAO,EAAE,KAAK,GACd,CACH,CACG,CACkB,CAC3B,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IAC1B,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,cAAc;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/text-input/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as PropTypes from "../prop-types";
|
|
3
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
4
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
5
|
+
declare const propTypes: {
|
|
6
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
7
|
+
formControl: PropTypes.Requireable<SpsFormControl<string>>;
|
|
8
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<string>>;
|
|
9
|
+
name: PropTypes.Requireable<string>;
|
|
10
|
+
onChange: PropTypes.Requireable<React.ChangeEventHandler<Element>>;
|
|
11
|
+
placeholder: PropTypes.Requireable<string>;
|
|
12
|
+
ref: PropTypes.Requireable<React.MutableRefObject<HTMLDivElement>>;
|
|
13
|
+
rows: PropTypes.Requireable<number>;
|
|
14
|
+
value: PropTypes.Requireable<string>;
|
|
15
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
16
|
+
className: PropTypes.Requireable<string>;
|
|
17
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
18
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
19
|
+
};
|
|
20
|
+
export declare type SpsTextareaProps = PropTypes.InferTS<typeof propTypes, HTMLTextAreaElement>;
|
|
21
|
+
export declare function SpsTextarea({ className, disabled, formControl, formMeta, id, name, onChange, placeholder, ref, rows, "data-testid": testId, unsafelyReplaceClassName, value, ...rest }: SpsTextareaProps): JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import { code } from "@spscommerce/utils";
|
|
6
|
+
export var SpsTextareaExamples = {
|
|
7
|
+
basic: {
|
|
8
|
+
label: "Basic",
|
|
9
|
+
description: "info about basic text areas",
|
|
10
|
+
examples: {
|
|
11
|
+
basic: {
|
|
12
|
+
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n function numLinesValidator(n) {\n return function(value) {\n const lines = typeof value === \"string\" ? value.split(\"\\n\").length : 0;\n if (lines !== n) {\n return {\n numLines: {\n actualLines: lines,\n requiredLines: n\n }\n };\n }\n return null;\n };\n }\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n haiku: \"\"\n }, {\n \"haiku\": [numLinesValidator(3)]\n });\n\n return <>\n <SpsLabel for={formMeta.fields.haiku}\n help=\"A haiku is a three-line poem of 5, 7, and 5 syllables respectively.\"\n errors={() =>\n formMeta.fields.haiku.hasError(\"numLines\") && (\n <>\n You need {formMeta.fields.haiku.errors[\"numLines\"].requiredLines} lines,\n but you've only written {formMeta.fields.haiku.errors[\"numLines\"].actualLines} lines!\n </>\n )\n }>\n Haiku\n </SpsLabel>\n <SpsTextarea placeholder=\"Write a haiku\" rows={3}\n formMeta={formMeta.fields.haiku}\n value={formValue.haiku}\n ></SpsTextarea>\n </>\n }\n "], ["\n function DemoComponent() {\n function numLinesValidator(n) {\n return function(value) {\n const lines = typeof value === \"string\" ? value.split(\"\\\\n\").length : 0;\n if (lines !== n) {\n return {\n numLines: {\n actualLines: lines,\n requiredLines: n\n }\n };\n }\n return null;\n };\n }\n\n const { formValue, formMeta, updateForm } = useSpsForm({\n haiku: \"\"\n }, {\n \"haiku\": [numLinesValidator(3)]\n });\n\n return <>\n <SpsLabel for={formMeta.fields.haiku}\n help=\"A haiku is a three-line poem of 5, 7, and 5 syllables respectively.\"\n errors={() =>\n formMeta.fields.haiku.hasError(\"numLines\") && (\n <>\n You need {formMeta.fields.haiku.errors[\"numLines\"].requiredLines} lines,\n but you've only written {formMeta.fields.haiku.errors[\"numLines\"].actualLines} lines!\n </>\n )\n }>\n Haiku\n </SpsLabel>\n <SpsTextarea placeholder=\"Write a haiku\" rows={3}\n formMeta={formMeta.fields.haiku}\n value={formValue.haiku}\n ></SpsTextarea>\n </>\n }\n "]))),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
b_description: {
|
|
17
|
+
label: "Description",
|
|
18
|
+
description: "info about text areas with descriptions",
|
|
19
|
+
examples: {
|
|
20
|
+
description: {
|
|
21
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n textareaWithDescription: \"\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.textareaWithDescription}\n description=\"This is a brief description of the field to provide additional context.\"\n >\n Label\n </SpsLabel>\n <SpsTextarea formMeta={formMeta.fields.textareaWithDescription}\n value={formValue.textareaWithDescription}\n />\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n textareaWithDescription: \"\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.textareaWithDescription}\n description=\"This is a brief description of the field to provide additional context.\"\n >\n Label\n </SpsLabel>\n <SpsTextarea formMeta={formMeta.fields.textareaWithDescription}\n value={formValue.textareaWithDescription}\n />\n </>\n }\n "]))),
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
c_disabled: {
|
|
26
|
+
label: "Disabled",
|
|
27
|
+
description: "info about disabled text areas",
|
|
28
|
+
examples: {
|
|
29
|
+
disabled: {
|
|
30
|
+
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n notes: \"This is the value of the textarea but you can't edit it right now\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.notes}>Notes</SpsLabel>\n <SpsTextarea disabled rows={5}\n formMeta={formMeta.fields.notes}\n value={formValue.notes}\n ></SpsTextarea>\n </>\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n notes: \"This is the value of the textarea but you can't edit it right now\"\n });\n\n return <>\n <SpsLabel for={formMeta.fields.notes}>Notes</SpsLabel>\n <SpsTextarea disabled rows={5}\n formMeta={formMeta.fields.notes}\n value={formValue.notes}\n ></SpsTextarea>\n </>\n }\n "]))),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
var templateObject_1, templateObject_2, templateObject_3;
|
|
36
|
+
//# sourceMappingURL=SpsTextarea.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTextarea.examples.js","sourceRoot":"","sources":["../../../src/textarea/SpsTextarea.examples.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,CAAC,IAAM,mBAAmB,GAAoB;IAClD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,WAAW,EAAE,6BAA6B;QAC1C,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,srEAAA,qnEA0CF,IAAA;aACV;SACF;KACF;IACD,aAAa,EAAE;QACb,KAAK,EAAE,aAAa;QACpB,WAAW,EAAE,yCAAyC;QACtD,QAAQ,EAAE;YACR,WAAW,EAAE;gBACX,KAAK,EAAE,IAAI,+4BAAA,40BAiBF,IAAA;aACV;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,WAAW,EAAE,gCAAgC;QAC7C,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI,ivBAAA,8qBAcF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|