@spscommerce/ds-react 5.10.3 → 5.10.5-ie.2
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 +27 -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 +139 -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 +24 -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 +162 -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 +41 -0
- package/dist/out-tsc/form/SpsForm.examples.js +49 -0
- package/dist/out-tsc/form/SpsForm.examples.js.map +1 -0
- package/dist/out-tsc/form/SpsForm.js +51 -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/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 +77 -0
- package/dist/out-tsc/form/hooks/useSpsForm.js +652 -0
- package/dist/out-tsc/form/hooks/useSpsForm.js.map +1 -0
- package/dist/out-tsc/form/index.d.ts +15 -0
- package/dist/out-tsc/form/index.js +16 -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 +7 -0
- package/dist/out-tsc/form/validation/types.js +4 -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 +25 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.d.ts +3 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js +404 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js.map +1 -0
- package/dist/out-tsc/list-toolbar/SpsListToolbar.js +168 -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/index.d.ts +4 -0
- package/dist/out-tsc/list-toolbar/index.js +5 -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 +34 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.d.ts +2 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js +33 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js.map +1 -0
- package/dist/out-tsc/multi-select/SpsMultiSelect.js +229 -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 +412 -0
- package/dist/out-tsc/option-list/SpsOptionList.js.map +1 -0
- package/dist/out-tsc/option-list/SpsOptionListProps.d.ts +75 -0
- package/dist/out-tsc/option-list/SpsOptionListProps.js +49 -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 +163 -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 +36 -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/index.d.ts +2 -0
- package/dist/out-tsc/search-results-bar/index.js +3 -0
- package/dist/out-tsc/search-results-bar/index.js.map +1 -0
- package/dist/out-tsc/select/SpsSelect.d.ts +37 -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 +205 -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 +25 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +24 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js +78 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js.map +1 -0
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.js +54 -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 +88 -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 +285 -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 +52 -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 +34659 -8296
- package/lib/index.d.ts +1 -3
- package/lib/index.es.js +27969 -31456
- package/package.json +13 -19
- 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,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 SpsTileListExamples = {
|
|
7
|
+
basic: {
|
|
8
|
+
label: "Basic",
|
|
9
|
+
examples: {
|
|
10
|
+
basic: {
|
|
11
|
+
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function Component() {\n const apps = [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ];\n\n return (\n <>\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "], ["\n function Component() {\n const apps = [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ];\n\n return (\n <>\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "]))),
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
singleTile: {
|
|
16
|
+
label: "Single Tile",
|
|
17
|
+
examples: {
|
|
18
|
+
singleTile: {
|
|
19
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function Component() {\n return (\n <>\n <SpsTileList>\n <SpsTile\n title=\"Design System\"\n icon={\"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\"}\n onClick={() => console.log(\"Go to Design System\")}\n />\n </SpsTileList>\n </>\n )\n }\n "], ["\n function Component() {\n return (\n <>\n <SpsTileList>\n <SpsTile\n title=\"Design System\"\n icon={\"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\"}\n onClick={() => console.log(\"Go to Design System\")}\n />\n </SpsTileList>\n </>\n )\n }\n "]))),
|
|
20
|
+
},
|
|
21
|
+
tooltips: {
|
|
22
|
+
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function Component() {\n return (\n <>\n <SpsTileList>\n <SpsTile\n title=\"Assortment\"\n icon={\"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\"}\n error\n id=\"error-app\"\n />\n </SpsTileList>\n <SpsTooltip for=\"error-app\" title=\"Error\">\n Your application has been suspended\n </SpsTooltip>\n </>\n )\n }\n "], ["\n function Component() {\n return (\n <>\n <SpsTileList>\n <SpsTile\n title=\"Assortment\"\n icon={\"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\"}\n error\n id=\"error-app\"\n />\n </SpsTileList>\n <SpsTooltip for=\"error-app\" title=\"Error\">\n Your application has been suspended\n </SpsTooltip>\n </>\n )\n }\n "]))),
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
sortableTiles: {
|
|
27
|
+
label: "Sortable Tiles",
|
|
28
|
+
examples: {
|
|
29
|
+
basic: {
|
|
30
|
+
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function Component() {\n const [sort, setSort] = React.useState([{ key: 'name', direction: SortDirection.ASCENDING }]);\n\n const apps = React.useMemo(() => [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ].sort((a, b) => {\n if (!sort.length) {\n return 0;\n }\n\n const [{ key, direction }] = sort;\n\n // straightforward sort by name\n if (key === 'name') {\n if (a.name < b.name) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a.name > b.name) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n }\n }\n \n // custom sort by status\n if (key === 'status') {\n if (a.error + a.warning < b.error + b.warning) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a.error + a.warning > b.error + b.warning) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n }\n }\n\n return 0;\n }), [sort]);\n\n return (\n <>\n <SpsSortingHeader sort={sort} onSortChange={setSort} className=\"mb-2\">\n <SpsSortingHeaderCell sortKey=\"name\">\n Name\n </SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey=\"status\">\n Status\n </SpsSortingHeaderCell>\n </SpsSortingHeader>\n\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "], ["\n function Component() {\n const [sort, setSort] = React.useState([{ key: 'name', direction: SortDirection.ASCENDING }]);\n\n const apps = React.useMemo(() => [\n {\n name: \"App Manager\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/generic/generic.svg\",\n },\n {\n name: \"Assortment\",\n warning: false,\n error: false,\n href: \"https://www.google.com\",\n target: \"_blank\",\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/barcode/barcode.svg\",\n },\n {\n name: \"Community\",\n warning: false,\n error: false,\n onClick: () => console.log(\"Community\"),\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/community/community.svg\",\n },\n {\n name: \"Design System\",\n warning: false,\n error: true,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/design-system/design-system.svg\",\n },\n {\n name: \"Nexus\",\n warning: false,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/nexus/nexus.svg\",\n },\n {\n name: \"Testing & Certification\",\n warning: true,\n error: false,\n icon: \"https://cdn.dev.spsc.io/web/framework/assets/21.05.01/icons/checkmark/checkmark.svg\",\n },\n ].sort((a, b) => {\n if (!sort.length) {\n return 0;\n }\n\n const [{ key, direction }] = sort;\n\n // straightforward sort by name\n if (key === 'name') {\n if (a.name < b.name) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a.name > b.name) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n }\n }\n \n // custom sort by status\n if (key === 'status') {\n if (a.error + a.warning < b.error + b.warning) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a.error + a.warning > b.error + b.warning) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n }\n }\n\n return 0;\n }), [sort]);\n\n return (\n <>\n <SpsSortingHeader sort={sort} onSortChange={setSort} className=\"mb-2\">\n <SpsSortingHeaderCell sortKey=\"name\">\n Name\n </SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey=\"status\">\n Status\n </SpsSortingHeaderCell>\n </SpsSortingHeader>\n\n <SpsTileList>\n {apps.map((app, index) => {\n return (\n <SpsTile\n key={index}\n title={app.name}\n warning={app.warning}\n error={app.error}\n href={app.href}\n target={app.target}\n icon={app.icon}\n onClick={app.onClick}\n />\n )\n })}\n </SpsTileList>\n </>\n )\n }\n "]))),
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
36
|
+
//# sourceMappingURL=SpsTileList.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTileList.examples.js","sourceRoot":"","sources":["../../../src/tile-list/SpsTileList.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,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,08GAAA,u4GAiEF,IAAA;aACV;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,aAAa;QACpB,QAAQ,EAAE;YACR,UAAU,EAAE;gBACV,KAAK,EAAE,IAAI,osBAAA,ioBAcN,IAAA;aACN;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI,g8BAAA,63BAkBF,IAAA;aACV;SACF;KACF;IAED,aAAa,EAAE;QACb,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,05KAAA,u1KAsGF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 * as PropTypes from "../prop-types";
|
|
26
|
+
var propsDoc = {};
|
|
27
|
+
var propTypes = __assign({}, PropTypes.spsGlobalPropTypes);
|
|
28
|
+
export function SpsTileList(props) {
|
|
29
|
+
var children = props.children, unsafelyReplaceClassName = props.unsafelyReplaceClassName, testId = props["data-testid"], className = props.className, rest = __rest(props, ["children", "unsafelyReplaceClassName", "data-testid", "className"]);
|
|
30
|
+
var classes = clsx(unsafelyReplaceClassName || "sps-tile-list", className || "sfg-row");
|
|
31
|
+
return (React.createElement("div", __assign({ className: classes }, rest), children));
|
|
32
|
+
}
|
|
33
|
+
Object.assign(SpsTileList, {
|
|
34
|
+
props: propsDoc,
|
|
35
|
+
propTypes: propTypes,
|
|
36
|
+
displayName: "SpsTileList",
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=SpsTileList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTileList.js","sourceRoot":"","sources":["../../../src/tile-list/SpsTileList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,SAAS,MAAM,eAAe,CAAC;AAE3C,IAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,IAAM,SAAS,gBACV,SAAS,CAAC,kBAAkB,CAChC,CAAC;AAIF,MAAM,UAAU,WAAW,CAAC,KAAuB;IAE/C,IAAA,QAAQ,GACN,KAAK,SADC,EAAE,wBAAwB,GAChC,KAAK,yBAD2B,EAAiB,MAAM,GACvD,KAAK,eADkD,EAAE,SAAS,GAClE,KAAK,UAD6D,EAAK,IAAI,UAC3E,KAAK,EAFH,oEAEL,CAD8E,CACrE;IAEV,IAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,IAAI,eAAe,EAAE,SAAS,IAAI,SAAS,CAAC,CAAC;IAE1F,OAAO,CACL,sCAAK,SAAS,EAAE,OAAO,IAAM,IAAI,GAC9B,QAAQ,CACL,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE;IACzB,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tile-list/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { SpsFormControl } from "../form/hooks/formControl";
|
|
3
|
+
import type { SpsFormFieldMeta } from "../form/hooks/useSpsForm";
|
|
4
|
+
import * as PropTypes from "../prop-types";
|
|
5
|
+
declare const propTypes: {
|
|
6
|
+
active: PropTypes.Requireable<boolean>;
|
|
7
|
+
activeDescription: PropTypes.Deprecated<string>;
|
|
8
|
+
activeLabel: PropTypes.Deprecated<string>;
|
|
9
|
+
description: PropTypes.Requireable<string>;
|
|
10
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
11
|
+
formControl: PropTypes.Requireable<SpsFormControl<boolean>>;
|
|
12
|
+
formMeta: PropTypes.Requireable<SpsFormFieldMeta<boolean>>;
|
|
13
|
+
id: PropTypes.Requireable<string>;
|
|
14
|
+
inactiveDescription: PropTypes.Deprecated<string>;
|
|
15
|
+
inactiveLabel: PropTypes.Deprecated<string>;
|
|
16
|
+
label: PropTypes.Requireable<string>;
|
|
17
|
+
large: PropTypes.Requireable<boolean>;
|
|
18
|
+
onChange: PropTypes.Requireable<(isActive: boolean) => void>;
|
|
19
|
+
ref: PropTypes.Requireable<React.MutableRefObject<HTMLDivElement>>;
|
|
20
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
21
|
+
className: PropTypes.Requireable<string>;
|
|
22
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
23
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
24
|
+
};
|
|
25
|
+
export declare type SpsToggleProps = PropTypes.InferTS<typeof propTypes, HTMLInputElement>;
|
|
26
|
+
export declare function SpsToggle(props: SpsToggleProps): JSX.Element;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
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 SpsToggleExamples = {
|
|
7
|
+
small: {
|
|
8
|
+
label: "Small",
|
|
9
|
+
examples: {
|
|
10
|
+
a_small: {
|
|
11
|
+
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: false\n });\n\n return <SpsToggle formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n />;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: false\n });\n\n return <SpsToggle formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n />;\n }\n "]))),
|
|
12
|
+
},
|
|
13
|
+
b_changeHandler: {
|
|
14
|
+
description: "With UseState",
|
|
15
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function DemoComponent() {\n function changeHandler() {\n setActive(!checked);\n }\n const [active, setActive] = React.useState();\n return (\n <SpsToggle active={active} onChange={changeHandler}/>\n )\n }\n "], ["\n function DemoComponent() {\n function changeHandler() {\n setActive(!checked);\n }\n const [active, setActive] = React.useState();\n return (\n <SpsToggle active={active} onChange={changeHandler}/>\n )\n }\n "]))),
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
b_large: {
|
|
20
|
+
label: "Large",
|
|
21
|
+
examples: {
|
|
22
|
+
a_large: {
|
|
23
|
+
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: true\n });\n\n return <SpsToggle large formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n />;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggle: true\n });\n\n return <SpsToggle large formMeta={formMeta.fields.toggle}\n active={formValue.toggle}\n />;\n }\n "]))),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
d_disabled: {
|
|
28
|
+
label: "Disabled",
|
|
29
|
+
examples: {
|
|
30
|
+
disabled: {
|
|
31
|
+
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggleA: false,\n toggleB: true,\n });\n\n return <>\n <SpsToggle formMeta={formMeta.fields.toggleA}\n active={formValue.toggleA}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n disabled\n />\n <SpsToggle formMeta={formMeta.fields.toggleB}\n active={formValue.toggleB}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n disabled\n />\n </>;\n }\n "], ["\n function DemoComponent() {\n const { formValue, formMeta, updateForm } = useSpsForm({\n toggleA: false,\n toggleB: true,\n });\n\n return <>\n <SpsToggle formMeta={formMeta.fields.toggleA}\n active={formValue.toggleA}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n disabled\n />\n <SpsToggle formMeta={formMeta.fields.toggleB}\n active={formValue.toggleB}\n label=\"Main Label\"\n description=\"Extra descriptive text\"\n disabled\n />\n </>;\n }\n "]))),
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
37
|
+
//# sourceMappingURL=SpsToggle.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsToggle.examples.js","sourceRoot":"","sources":["../../../src/toggle/SpsToggle.examples.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,CAAC,IAAM,iBAAiB,GAAoB;IAChD,KAAK,EAAE;QACL,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,KAAK,EAAE,IAAI,ilBAAA,8gBAYF,IAAA;aACV;YACD,eAAe,EAAE;gBACf,WAAW,EAAE,eAAe;gBAC5B,KAAK,EAAE,IAAI,sfAAA,mbAUF,IAAA;aACV;SACF;KACF;IACD,OAAO,EAAE;QACP,KAAK,EAAE,OAAO;QACd,QAAQ,EAAE;YACR,OAAO,EAAE;gBACP,KAAK,EAAE,IAAI,geAAA,6ZAUF,IAAA;aACV;SACF;KACF;IACD,UAAU,EAAE;QACV,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE;YACR,QAAQ,EAAE;gBACR,KAAK,EAAE,IAAI,ukCAAA,ogCAsBF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
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 clsx from "clsx";
|
|
40
|
+
import * as React from "react";
|
|
41
|
+
import { useFormControlId } from "../form/hooks/useFormControlId";
|
|
42
|
+
import { SpsFormComponentWrapper } from "../form/SpsFormComponentWrapper";
|
|
43
|
+
import { useCheckDeprecatedProps } from "../utils/index";
|
|
44
|
+
import * as PropTypes from "../prop-types";
|
|
45
|
+
var propsDoc = {
|
|
46
|
+
active: "boolean",
|
|
47
|
+
activeDescription: { type: "string", deprecated: true },
|
|
48
|
+
activeLabel: { type: "string", deprecated: true },
|
|
49
|
+
description: "string",
|
|
50
|
+
disabled: "boolean",
|
|
51
|
+
formMeta: "SpsFormFieldMeta<boolean>",
|
|
52
|
+
inactiveDescription: { type: "string", deprecated: true },
|
|
53
|
+
inactiveLabel: { type: "string", deprecated: true },
|
|
54
|
+
label: "string",
|
|
55
|
+
large: "boolean",
|
|
56
|
+
onChange: "(isActive: boolean) => void",
|
|
57
|
+
};
|
|
58
|
+
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { active: PropTypes.bool, activeDescription: PropTypes.deprecated(PropTypes.string), activeLabel: PropTypes.deprecated(PropTypes.string), description: PropTypes.string, disabled: PropTypes.bool, formControl: PropTypes.impl(), formMeta: PropTypes.impl(), id: PropTypes.string, inactiveDescription: PropTypes.deprecated(PropTypes.string), inactiveLabel: PropTypes.deprecated(PropTypes.string), label: PropTypes.string, large: PropTypes.bool, onChange: PropTypes.fun(), ref: PropTypes.ref() });
|
|
59
|
+
export function SpsToggle(props) {
|
|
60
|
+
var activeProp = props.active, activeDescription = props.activeDescription, activeLabel = props.activeLabel, className = props.className, _a = props.description, description = _a === void 0 ? activeDescription : _a, disabled = props.disabled, formControl = props.formControl, formMeta = props.formMeta, id = props.id, inactiveDescription = props.inactiveDescription, inactiveLabel = props.inactiveLabel, _b = props.label, label = _b === void 0 ? activeLabel : _b, large = props.large, onChange = props.onChange, ref = props.ref, testId = props["data-testid"], unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["active", "activeDescription", "activeLabel", "className", "description", "disabled", "formControl", "formMeta", "id", "inactiveDescription", "inactiveLabel", "label", "large", "onChange", "ref", "data-testid", "unsafelyReplaceClassName"]);
|
|
61
|
+
useCheckDeprecatedProps("SpsToggle", propsDoc, props);
|
|
62
|
+
var meta = formMeta || formControl;
|
|
63
|
+
var _c = __read(React.useState(activeProp), 2), active = _c[0], setActive = _c[1];
|
|
64
|
+
var _d = useFormControlId(id, meta), wrapperId = _d.wrapperId, controlId = _d.controlId;
|
|
65
|
+
var statusLabelID = wrapperId + "_status-label";
|
|
66
|
+
var descriptionID = wrapperId + "_description";
|
|
67
|
+
var inputElement = React.useRef();
|
|
68
|
+
React.useEffect(function () { return setActive(activeProp); }, [activeProp]);
|
|
69
|
+
function handleChange(event) {
|
|
70
|
+
setActive(event.target.checked);
|
|
71
|
+
if (meta) {
|
|
72
|
+
meta.setValue(event.target.checked);
|
|
73
|
+
meta.markAsDirty();
|
|
74
|
+
}
|
|
75
|
+
if (onChange) {
|
|
76
|
+
onChange(event.target.checked);
|
|
77
|
+
}
|
|
78
|
+
inputElement.current.focus();
|
|
79
|
+
}
|
|
80
|
+
var classes = clsx(unsafelyReplaceClassName || "sps-toggle", active && "sps-toggle--active", large && "sps-toggle--large", disabled && "sps-toggle--disabled", className);
|
|
81
|
+
return (React.createElement(SpsFormComponentWrapper, { id: wrapperId, formControl: formControl, formMeta: formMeta, inputRef: inputElement, ref: ref, "data-testid": "" + testId },
|
|
82
|
+
React.createElement("div", { className: classes },
|
|
83
|
+
React.createElement("input", __assign({ type: "checkbox", ref: inputElement, className: "sps-toggle__input", id: controlId, checked: active || false, disabled: disabled, onChange: handleChange, "aria-describedby": statusLabelID + "," + descriptionID, "data-testid": testId + "__input" }, rest)),
|
|
84
|
+
React.createElement("span", { className: "sps-toggle__slider" }),
|
|
85
|
+
label
|
|
86
|
+
&& (React.createElement("label", { className: "sps-toggle__status-label", htmlFor: controlId, id: statusLabelID }, label)),
|
|
87
|
+
description
|
|
88
|
+
&& (React.createElement("span", { className: "sps-toggle__description", id: descriptionID }, description)))));
|
|
89
|
+
}
|
|
90
|
+
Object.assign(SpsToggle, {
|
|
91
|
+
props: propsDoc,
|
|
92
|
+
propTypes: propTypes,
|
|
93
|
+
displayName: "SpsToggle",
|
|
94
|
+
});
|
|
95
|
+
//# sourceMappingURL=SpsToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsToggle.js","sourceRoot":"","sources":["../../../src/toggle/SpsToggle.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/toggle/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Position, TooltipKind, TooltipShowTrigger } from "@spscommerce/ds-shared";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as PropTypes from "../prop-types";
|
|
4
|
+
export declare enum TooltipVisibility {
|
|
5
|
+
VISIBLE = "visible",
|
|
6
|
+
DEFER_VISIBLE = "defer_visible",
|
|
7
|
+
HIDDEN = "hidden",
|
|
8
|
+
DELAYED_HIDDEN = "delayed_hidden"
|
|
9
|
+
}
|
|
10
|
+
export declare function toggleTooltipState(state: TooltipVisibility): TooltipVisibility.VISIBLE | TooltipVisibility.HIDDEN;
|
|
11
|
+
declare const propTypes: {
|
|
12
|
+
for: PropTypes.Validator<string | React.MutableRefObject<any>>;
|
|
13
|
+
hideDelay: PropTypes.Requireable<number>;
|
|
14
|
+
isShown: PropTypes.Requireable<TooltipVisibility>;
|
|
15
|
+
kind: PropTypes.Requireable<TooltipKind>;
|
|
16
|
+
offsets: PropTypes.Requireable<number[]>;
|
|
17
|
+
onDeferred: PropTypes.Requireable<() => void>;
|
|
18
|
+
position: PropTypes.Requireable<Position>;
|
|
19
|
+
altPosition: PropTypes.Requireable<Position>;
|
|
20
|
+
showOn: PropTypes.Requireable<TooltipShowTrigger>;
|
|
21
|
+
title: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
22
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
23
|
+
className: PropTypes.Requireable<string>;
|
|
24
|
+
"data-testid": PropTypes.Requireable<string>;
|
|
25
|
+
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
26
|
+
};
|
|
27
|
+
export declare type SpsTooltipProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
28
|
+
export declare function SpsTooltip({ children, className, for: forProp, "data-testid": testId, hideDelay, isShown, kind, offsets, onDeferred, position, altPosition, showOn, style, title, unsafelyReplaceClassName, }: SpsTooltipProps): React.ReactPortal;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
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 SpsTooltipExamples = {
|
|
7
|
+
basic: {
|
|
8
|
+
label: "Basic",
|
|
9
|
+
description: "Info about basic usage of tooltip",
|
|
10
|
+
examples: {
|
|
11
|
+
basic: {
|
|
12
|
+
description: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n <p>There are two ways to tell the tooltip what to attach to. The first is to\n pass in a ref.</p>\n "], ["\n <p>There are two ways to tell the tooltip what to attach to. The first is to\n pass in a ref.</p>\n "]))),
|
|
13
|
+
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "]))),
|
|
14
|
+
},
|
|
15
|
+
withElementId: {
|
|
16
|
+
description: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n <p>You can also pass in the ID of the element you want to attach to.</p>\n "], ["\n <p>You can also pass in the ID of the element you want to attach to.</p>\n "]))),
|
|
17
|
+
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function Component() {\n return (\n <React.Fragment>\n <SpsButton id=\"testbtn\" kind={ButtonKind.ICON} icon={SpsIcon.ELLIPSES} aria-labelledby=\"withEleIdTooltip\" />\n <SpsTooltip for=\"testbtn\" id=\"withEleIdTooltip\" title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n return (\n <React.Fragment>\n <SpsButton id=\"testbtn\" kind={ButtonKind.ICON} icon={SpsIcon.ELLIPSES} aria-labelledby=\"withEleIdTooltip\" />\n <SpsTooltip for=\"testbtn\" id=\"withEleIdTooltip\" title=\"Tooltip Title\">\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
position: {
|
|
22
|
+
label: "Position",
|
|
23
|
+
examples: {
|
|
24
|
+
topLeft: {
|
|
25
|
+
description: "If there is no room for the tooltip on screen at the position you specify, it will appear on the opposite side.",
|
|
26
|
+
react: code(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" aria-labelledby=\"tooltip-target-top-left\" ref={target} id=\"target-top-left\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-left\" position={Position.TOP_LEFT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" aria-labelledby=\"tooltip-target-top-left\" ref={target} id=\"target-top-left\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-left\" position={Position.TOP_LEFT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
27
|
+
},
|
|
28
|
+
topMiddle: {
|
|
29
|
+
react: code(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-top-middle\" >\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-middle\" position={Position.TOP_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-top-middle\" >\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-middle\" position={Position.TOP_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
30
|
+
},
|
|
31
|
+
topRight: {
|
|
32
|
+
react: code(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-top-right\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-right\" position={Position.TOP_RIGHT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-top-right\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-top-right\" position={Position.TOP_RIGHT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
33
|
+
},
|
|
34
|
+
rightTop: {
|
|
35
|
+
react: code(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-top\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-top\" position={Position.RIGHT_TOP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-top\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-top\" position={Position.RIGHT_TOP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
36
|
+
},
|
|
37
|
+
rightMiddle: {
|
|
38
|
+
react: code(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-middle\" position={Position.RIGHT_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-middle\" position={Position.RIGHT_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
39
|
+
},
|
|
40
|
+
rightBottom: {
|
|
41
|
+
react: code(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-bottom\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-bottom\" position={Position.RIGHT_BOTTOM}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-right-bottom\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-right-bottom\" position={Position.RIGHT_BOTTOM}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
42
|
+
},
|
|
43
|
+
bottomRight: {
|
|
44
|
+
react: code(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-right\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-right\" position={Position.BOTTOM_RIGHT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-right\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-right\" position={Position.BOTTOM_RIGHT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
45
|
+
},
|
|
46
|
+
bottomMiddle: {
|
|
47
|
+
react: code(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-middle\" position={Position.BOTTOM_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-middle\" position={Position.BOTTOM_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
48
|
+
},
|
|
49
|
+
bottomLeft: {
|
|
50
|
+
react: code(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-left\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-left\" position={Position.BOTTOM_LEFT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-bottom-left\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-bottom-left\" position={Position.BOTTOM_LEFT}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
51
|
+
},
|
|
52
|
+
leftBottom: {
|
|
53
|
+
react: code(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-bottom\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-bottom\" position={Position.LEFT_BOTTOM}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-bottom\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-bottom\" position={Position.LEFT_BOTTOM}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
54
|
+
},
|
|
55
|
+
leftMiddle: {
|
|
56
|
+
react: code(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-middle\" position={Position.LEFT_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-middle\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-middle\" position={Position.LEFT_MIDDLE}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
57
|
+
},
|
|
58
|
+
leftTop: {
|
|
59
|
+
react: code(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-top\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-top\" position={Position.LEFT_TOP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"tooltip-target-left-top\">\n target\n </div>\n <SpsTooltip for={target} id=\"tooltip-target-left-top\" position={Position.LEFT_TOP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
style: {
|
|
64
|
+
label: "Style",
|
|
65
|
+
examples: {
|
|
66
|
+
Help: {
|
|
67
|
+
react: code(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"helpTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"helpTooltip\" kind={TooltipKind.HELP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"helpTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"helpTooltip\" kind={TooltipKind.HELP}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
68
|
+
},
|
|
69
|
+
error: {
|
|
70
|
+
react: code(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"errorTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"errorTooltip\" kind={TooltipKind.ERROR}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"errorTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"errorTooltip\" kind={TooltipKind.ERROR}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
71
|
+
},
|
|
72
|
+
warning: {
|
|
73
|
+
react: code(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"warningTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"warningTooltip\" kind={TooltipKind.WARNING}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"warningTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"warningTooltip\" kind={TooltipKind.WARNING}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
74
|
+
},
|
|
75
|
+
container: {
|
|
76
|
+
react: code(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"containerTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"containerTooltip\" kind={TooltipKind.CONTAINER}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"containerTooltip\">\n target\n </div>\n <SpsTooltip for={target} id=\"containerTooltip\" kind={TooltipKind.CONTAINER}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
showOnClick: {
|
|
81
|
+
label: "Show on click",
|
|
82
|
+
examples: {
|
|
83
|
+
showOnClick: {
|
|
84
|
+
react: code(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} showOn={TooltipShowTrigger.CLICK}>\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip for={target} showOn={TooltipShowTrigger.CLICK}>\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "]))),
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
showHideManually: {
|
|
89
|
+
label: "Programmatically show & hide",
|
|
90
|
+
examples: {
|
|
91
|
+
showHideManually: {
|
|
92
|
+
react: code(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n const [showTip, setShowTip] = React.useState(TooltipVisibility.HIDDEN);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} id=\"target-on-click\">\n target\n </div>\n <SpsTooltip\n for={target}\n showOn={TooltipShowTrigger.MANUAL}\n isShown={showTip}\n id=\"tooltip-target-on-click\"\n onDeferred={() => setShowTip(TooltipVisibility.HIDDEN)}\n >\n Tooltip content\n </SpsTooltip>\n <br />\n <SpsButton\n className=\"mr-1\"\n id=\"tooltip-target-on-click-show\"\n onClick={() => setShowTip(TooltipVisibility.VISIBLE)}\n aria-labelledby=\"tooltip-target-on-click\"\n >\n Show\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n onClick={() => setShowTip(TooltipVisibility.DEFER_VISIBLE)}\n >\n Show, but only if no other tooltip is currently visible\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n id=\"tooltip-target-on-click-hide\"\n onClick={() => setShowTip(TooltipVisibility.HIDDEN)}\n >\n Hide\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n onClick={() => setShowTip(TooltipVisibility.DELAYED_HIDDEN)}\n >\n Hide with delay\n </SpsButton>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n const [showTip, setShowTip] = React.useState(TooltipVisibility.HIDDEN);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} id=\"target-on-click\">\n target\n </div>\n <SpsTooltip\n for={target}\n showOn={TooltipShowTrigger.MANUAL}\n isShown={showTip}\n id=\"tooltip-target-on-click\"\n onDeferred={() => setShowTip(TooltipVisibility.HIDDEN)}\n >\n Tooltip content\n </SpsTooltip>\n <br />\n <SpsButton\n className=\"mr-1\"\n id=\"tooltip-target-on-click-show\"\n onClick={() => setShowTip(TooltipVisibility.VISIBLE)}\n aria-labelledby=\"tooltip-target-on-click\"\n >\n Show\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n onClick={() => setShowTip(TooltipVisibility.DEFER_VISIBLE)}\n >\n Show, but only if no other tooltip is currently visible\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n id=\"tooltip-target-on-click-hide\"\n onClick={() => setShowTip(TooltipVisibility.HIDDEN)}\n >\n Hide\n </SpsButton>\n <SpsButton\n className=\"mr-1\"\n onClick={() => setShowTip(TooltipVisibility.DELAYED_HIDDEN)}\n >\n Hide with delay\n </SpsButton>\n </React.Fragment>\n );\n }\n "]))),
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
withSpsTooltipTitle: {
|
|
97
|
+
label: "With SpsTooltipTitle",
|
|
98
|
+
examples: {
|
|
99
|
+
showHideManually: {
|
|
100
|
+
react: code(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip\n for={target}\n title={<SpsTooltipTitle>Temporary implementation account setup</SpsTooltipTitle>}\n >\n <div className=\"mb-3\">\n Implementing: Temporary implementation product setup in progress.\n </div>\n <SpsTooltipTitle icon={SpsIcon.CALENDAR_BLANK}>Started</SpsTooltipTitle>\n <div className=\"mb-3\">Tuesday, April 15</div>\n <SpsTooltipTitle icon={SpsIcon.CHECKMARK}>Completed</SpsTooltipTitle>\n <div>Thursday, April 24</div>\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target}>\n target\n </div>\n <SpsTooltip\n for={target}\n title={<SpsTooltipTitle>Temporary implementation account setup</SpsTooltipTitle>}\n >\n <div className=\"mb-3\">\n Implementing: Temporary implementation product setup in progress.\n </div>\n <SpsTooltipTitle icon={SpsIcon.CALENDAR_BLANK}>Started</SpsTooltipTitle>\n <div className=\"mb-3\">Tuesday, April 15</div>\n <SpsTooltipTitle icon={SpsIcon.CHECKMARK}>Completed</SpsTooltipTitle>\n <div>Thursday, April 24</div>\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
other: {
|
|
105
|
+
label: "Other Settings",
|
|
106
|
+
examples: {
|
|
107
|
+
hideDelay: {
|
|
108
|
+
description: code(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n <p>You can customize the delay before the tooltip disappears\n when the user moves the mouse away from the element the tooltip\n is attached to.</p>\n "], ["\n <p>You can customize the delay before the tooltip disappears\n when the user moves the mouse away from the element the tooltip\n is attached to.</p>\n "]))),
|
|
109
|
+
react: code(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div id=\"hideDelayTooltip\">\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"hideDelayTooltip\">\n target\n </div>\n <SpsTooltip for={target} hideDelay={0}>\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <div id=\"hideDelayTooltip\">\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"hideDelayTooltip\">\n target\n </div>\n <SpsTooltip for={target} hideDelay={0}>\n Tooltip content\n </SpsTooltip>\n </div>\n );\n }\n "]))),
|
|
110
|
+
},
|
|
111
|
+
customPositioningOffsets: {
|
|
112
|
+
description: "<p>Custom positioning offsets</p>",
|
|
113
|
+
react: code(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"customTooltip\">\n target\n </div>\n <SpsTooltip id=\"customTooltip\" for={target} offsets={[50, 100]}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "], ["\n function Component() {\n const target = React.useRef(null);\n\n return (\n <React.Fragment>\n <div className=\"bg-gray200 text-center p-2\" ref={target} aria-labelledby=\"customTooltip\">\n target\n </div>\n <SpsTooltip id=\"customTooltip\" for={target} offsets={[50, 100]}>\n Tooltip content\n </SpsTooltip>\n </React.Fragment>\n );\n }\n "]))),
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26;
|
|
119
|
+
//# sourceMappingURL=SpsTooltip.examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SpsTooltip.examples.js","sourceRoot":"","sources":["../../../src/tooltip/SpsTooltip.examples.ts"],"names":[],"mappings":"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"}
|