@spscommerce/ds-react 5.10.5-ie.2 → 5.11.1
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/lib/card-v2/SpsCardV2.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Footer.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Header.d.ts +2 -0
- package/lib/card-v2/SpsCardV2Title.d.ts +2 -0
- package/lib/card-v2/index.d.ts +5 -0
- package/lib/datepicker-v2/SpsDatepickerV2.d.ts +1 -1
- package/lib/form/hooks/useSpsForm.d.ts +2 -0
- package/lib/index.cjs.js +8563 -34657
- package/lib/index.d.ts +3 -1
- package/lib/index.es.js +31872 -27997
- package/lib/list-toolbar/SpsListToolbar.d.ts +1 -0
- package/lib/search-results-bar/SpsSearchResultsBarV2.d.ts +14 -0
- package/lib/search-results-bar/index.d.ts +1 -0
- package/lib/tabs-v2/SpsTab.d.ts +6 -0
- package/lib/tabs-v2/SpsTabPanel.d.ts +5 -0
- package/lib/tabs-v2/SpsTabsV2.d.ts +2 -0
- package/lib/tabs-v2/index.d.ts +4 -0
- package/package.json +19 -13
- package/vite.config.js +1 -1
- package/dist/out-tsc/_template/SpsComponent.d.ts +0 -15
- package/dist/out-tsc/_template/SpsComponent.examples.d.ts +0 -2
- package/dist/out-tsc/_template/SpsComponent.examples.js +0 -17
- package/dist/out-tsc/_template/SpsComponent.examples.js.map +0 -1
- package/dist/out-tsc/_template/SpsComponent.js +0 -44
- package/dist/out-tsc/_template/SpsComponent.js.map +0 -1
- package/dist/out-tsc/_template/index.d.ts +0 -2
- package/dist/out-tsc/_template/index.js +0 -3
- package/dist/out-tsc/_template/index.js.map +0 -1
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.d.ts +0 -22
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.d.ts +0 -2
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.js +0 -43
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.examples.js.map +0 -1
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.js +0 -58
- package/dist/out-tsc/advanced-search/SpsAdvancedSearch.js.map +0 -1
- package/dist/out-tsc/advanced-search/index.d.ts +0 -2
- package/dist/out-tsc/advanced-search/index.js +0 -3
- package/dist/out-tsc/advanced-search/index.js.map +0 -1
- package/dist/out-tsc/autocomplete/SpsAutocomplete.d.ts +0 -27
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.d.ts +0 -2
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.js +0 -37
- package/dist/out-tsc/autocomplete/SpsAutocomplete.examples.js.map +0 -1
- package/dist/out-tsc/autocomplete/SpsAutocomplete.js +0 -139
- package/dist/out-tsc/autocomplete/SpsAutocomplete.js.map +0 -1
- package/dist/out-tsc/autocomplete/index.d.ts +0 -2
- package/dist/out-tsc/autocomplete/index.js +0 -3
- package/dist/out-tsc/autocomplete/index.js.map +0 -1
- package/dist/out-tsc/button/SpsButton.d.ts +0 -18
- package/dist/out-tsc/button/SpsButton.examples.d.ts +0 -2
- package/dist/out-tsc/button/SpsButton.examples.js +0 -201
- package/dist/out-tsc/button/SpsButton.examples.js.map +0 -1
- package/dist/out-tsc/button/SpsButton.js +0 -67
- package/dist/out-tsc/button/SpsButton.js.map +0 -1
- package/dist/out-tsc/button/SpsButtonGroup.d.ts +0 -10
- package/dist/out-tsc/button/SpsButtonGroup.js +0 -68
- package/dist/out-tsc/button/SpsButtonGroup.js.map +0 -1
- package/dist/out-tsc/button/SpsIconButtonPanel.d.ts +0 -10
- package/dist/out-tsc/button/SpsIconButtonPanel.js +0 -61
- package/dist/out-tsc/button/SpsIconButtonPanel.js.map +0 -1
- package/dist/out-tsc/button/index.d.ts +0 -4
- package/dist/out-tsc/button/index.js +0 -5
- package/dist/out-tsc/button/index.js.map +0 -1
- package/dist/out-tsc/card/SpsCard.d.ts +0 -16
- package/dist/out-tsc/card/SpsCard.examples.d.ts +0 -2
- package/dist/out-tsc/card/SpsCard.examples.js +0 -98
- package/dist/out-tsc/card/SpsCard.examples.js.map +0 -1
- package/dist/out-tsc/card/SpsCard.js +0 -90
- package/dist/out-tsc/card/SpsCard.js.map +0 -1
- package/dist/out-tsc/card/SpsCardHeader.d.ts +0 -14
- package/dist/out-tsc/card/SpsCardHeader.js +0 -49
- package/dist/out-tsc/card/SpsCardHeader.js.map +0 -1
- package/dist/out-tsc/card/SpsCardTabbedPane.d.ts +0 -19
- package/dist/out-tsc/card/SpsCardTabbedPane.js +0 -63
- package/dist/out-tsc/card/SpsCardTabbedPane.js.map +0 -1
- package/dist/out-tsc/card/index.d.ts +0 -3
- package/dist/out-tsc/card/index.js +0 -4
- package/dist/out-tsc/card/index.js.map +0 -1
- package/dist/out-tsc/card/useTab.d.ts +0 -18
- package/dist/out-tsc/card/useTab.js +0 -110
- package/dist/out-tsc/card/useTab.js.map +0 -1
- package/dist/out-tsc/checkbox/SpsCheckbox.d.ts +0 -21
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.d.ts +0 -2
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.js +0 -35
- package/dist/out-tsc/checkbox/SpsCheckbox.examples.js.map +0 -1
- package/dist/out-tsc/checkbox/SpsCheckbox.js +0 -88
- package/dist/out-tsc/checkbox/SpsCheckbox.js.map +0 -1
- package/dist/out-tsc/checkbox/index.d.ts +0 -2
- package/dist/out-tsc/checkbox/index.js +0 -3
- package/dist/out-tsc/checkbox/index.js.map +0 -1
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.d.ts +0 -17
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.js +0 -54
- package/dist/out-tsc/checkbox-dropdown/SpsCheckboxDropdown.js.map +0 -1
- package/dist/out-tsc/checkbox-dropdown/index.d.ts +0 -1
- package/dist/out-tsc/checkbox-dropdown/index.js +0 -2
- package/dist/out-tsc/checkbox-dropdown/index.js.map +0 -1
- package/dist/out-tsc/clickable-tag/SpsClickableTag.d.ts +0 -16
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.d.ts +0 -2
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.js +0 -42
- package/dist/out-tsc/clickable-tag/SpsClickableTag.examples.js.map +0 -1
- package/dist/out-tsc/clickable-tag/SpsClickableTag.js +0 -74
- package/dist/out-tsc/clickable-tag/SpsClickableTag.js.map +0 -1
- package/dist/out-tsc/clickable-tag/index.d.ts +0 -2
- package/dist/out-tsc/clickable-tag/index.js +0 -3
- package/dist/out-tsc/clickable-tag/index.js.map +0 -1
- package/dist/out-tsc/column-chooser/SpsColumnChooser.d.ts +0 -19
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.d.ts +0 -2
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.js +0 -18
- package/dist/out-tsc/column-chooser/SpsColumnChooser.examples.js.map +0 -1
- package/dist/out-tsc/column-chooser/SpsColumnChooser.js +0 -158
- package/dist/out-tsc/column-chooser/SpsColumnChooser.js.map +0 -1
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.d.ts +0 -17
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.js +0 -61
- package/dist/out-tsc/column-chooser/SpsColumnChooserColumn.js.map +0 -1
- package/dist/out-tsc/column-chooser/index.d.ts +0 -3
- package/dist/out-tsc/column-chooser/index.js +0 -4
- package/dist/out-tsc/column-chooser/index.js.map +0 -1
- package/dist/out-tsc/conditional-field/SpsConditionalField.d.ts +0 -11
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.d.ts +0 -2
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.js +0 -20
- package/dist/out-tsc/conditional-field/SpsConditionalField.examples.js.map +0 -1
- package/dist/out-tsc/conditional-field/SpsConditionalField.js +0 -39
- package/dist/out-tsc/conditional-field/SpsConditionalField.js.map +0 -1
- package/dist/out-tsc/conditional-field/index.d.ts +0 -2
- package/dist/out-tsc/conditional-field/index.js +0 -3
- package/dist/out-tsc/conditional-field/index.js.map +0 -1
- package/dist/out-tsc/content-row/SpsContentRow.d.ts +0 -22
- package/dist/out-tsc/content-row/SpsContentRow.examples.d.ts +0 -2
- package/dist/out-tsc/content-row/SpsContentRow.examples.js +0 -51
- package/dist/out-tsc/content-row/SpsContentRow.examples.js.map +0 -1
- package/dist/out-tsc/content-row/SpsContentRow.js +0 -105
- package/dist/out-tsc/content-row/SpsContentRow.js.map +0 -1
- package/dist/out-tsc/content-row/SpsContentRowCol.d.ts +0 -15
- package/dist/out-tsc/content-row/SpsContentRowCol.js +0 -57
- package/dist/out-tsc/content-row/SpsContentRowCol.js.map +0 -1
- package/dist/out-tsc/content-row/SpsContentRowExpansion.d.ts +0 -10
- package/dist/out-tsc/content-row/SpsContentRowExpansion.js +0 -38
- package/dist/out-tsc/content-row/SpsContentRowExpansion.js.map +0 -1
- package/dist/out-tsc/content-row/index.d.ts +0 -4
- package/dist/out-tsc/content-row/index.js +0 -5
- package/dist/out-tsc/content-row/index.js.map +0 -1
- package/dist/out-tsc/currency-input/SpsCurrencyInput.d.ts +0 -18
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.d.ts +0 -2
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.js +0 -20
- package/dist/out-tsc/currency-input/SpsCurrencyInput.examples.js.map +0 -1
- package/dist/out-tsc/currency-input/SpsCurrencyInput.js +0 -82
- package/dist/out-tsc/currency-input/SpsCurrencyInput.js.map +0 -1
- package/dist/out-tsc/currency-input/index.d.ts +0 -2
- package/dist/out-tsc/currency-input/index.js +0 -3
- package/dist/out-tsc/currency-input/index.js.map +0 -1
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.d.ts +0 -23
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.d.ts +0 -2
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.js +0 -42
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.examples.js.map +0 -1
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.js +0 -635
- package/dist/out-tsc/dateRangePicker/SpsDateRangePicker.js.map +0 -1
- package/dist/out-tsc/dateRangePicker/index.d.ts +0 -2
- package/dist/out-tsc/dateRangePicker/index.js +0 -3
- package/dist/out-tsc/dateRangePicker/index.js.map +0 -1
- package/dist/out-tsc/datepicker/SpsDatepicker.d.ts +0 -19
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.d.ts +0 -2
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.js +0 -33
- package/dist/out-tsc/datepicker/SpsDatepicker.examples.js.map +0 -1
- package/dist/out-tsc/datepicker/SpsDatepicker.js +0 -427
- package/dist/out-tsc/datepicker/SpsDatepicker.js.map +0 -1
- package/dist/out-tsc/datepicker/index.d.ts +0 -2
- package/dist/out-tsc/datepicker/index.js +0 -3
- package/dist/out-tsc/datepicker/index.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.d.ts +0 -21
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.js +0 -213
- package/dist/out-tsc/datepicker-v2/SpsDateRangePickerV2.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.d.ts +0 -18
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.js +0 -140
- package/dist/out-tsc/datepicker-v2/SpsDatepickerCalendar.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.d.ts +0 -13
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.js +0 -65
- package/dist/out-tsc/datepicker-v2/SpsDatepickerPopup.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.d.ts +0 -18
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.js +0 -111
- package/dist/out-tsc/datepicker-v2/SpsDatepickerV2.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/index.d.ts +0 -4
- package/dist/out-tsc/datepicker-v2/index.js +0 -5
- package/dist/out-tsc/datepicker-v2/index.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/useCalendar.d.ts +0 -2
- package/dist/out-tsc/datepicker-v2/useCalendar.js +0 -58
- package/dist/out-tsc/datepicker-v2/useCalendar.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/useMoment.d.ts +0 -3
- package/dist/out-tsc/datepicker-v2/useMoment.js +0 -24
- package/dist/out-tsc/datepicker-v2/useMoment.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/utils.d.ts +0 -23
- package/dist/out-tsc/datepicker-v2/utils.js +0 -169
- package/dist/out-tsc/datepicker-v2/utils.js.map +0 -1
- package/dist/out-tsc/datepicker-v2/validation.d.ts +0 -10
- package/dist/out-tsc/datepicker-v2/validation.js +0 -67
- package/dist/out-tsc/datepicker-v2/validation.js.map +0 -1
- package/dist/out-tsc/datetime/SpsDateTime.d.ts +0 -26
- package/dist/out-tsc/datetime/SpsDateTime.examples.d.ts +0 -2
- package/dist/out-tsc/datetime/SpsDateTime.examples.js +0 -21
- package/dist/out-tsc/datetime/SpsDateTime.examples.js.map +0 -1
- package/dist/out-tsc/datetime/SpsDateTime.js +0 -194
- package/dist/out-tsc/datetime/SpsDateTime.js.map +0 -1
- package/dist/out-tsc/datetime/index.d.ts +0 -2
- package/dist/out-tsc/datetime/index.js +0 -3
- package/dist/out-tsc/datetime/index.js.map +0 -1
- package/dist/out-tsc/description-list/SpsDescriptionList.d.ts +0 -14
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.d.ts +0 -2
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.js +0 -47
- package/dist/out-tsc/description-list/SpsDescriptionList.examples.js.map +0 -1
- package/dist/out-tsc/description-list/SpsDescriptionList.js +0 -65
- package/dist/out-tsc/description-list/SpsDescriptionList.js.map +0 -1
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.d.ts +0 -11
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.js +0 -46
- package/dist/out-tsc/description-list/SpsDescriptionListDefinition.js.map +0 -1
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.d.ts +0 -18
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.js +0 -92
- package/dist/out-tsc/description-list/SpsDescriptionListTerm.js.map +0 -1
- package/dist/out-tsc/description-list/index.d.ts +0 -4
- package/dist/out-tsc/description-list/index.js +0 -5
- package/dist/out-tsc/description-list/index.js.map +0 -1
- package/dist/out-tsc/dropdown/SpsDropdown.d.ts +0 -24
- package/dist/out-tsc/dropdown/SpsDropdown.examples.d.ts +0 -2
- package/dist/out-tsc/dropdown/SpsDropdown.examples.js +0 -95
- package/dist/out-tsc/dropdown/SpsDropdown.examples.js.map +0 -1
- package/dist/out-tsc/dropdown/SpsDropdown.js +0 -162
- package/dist/out-tsc/dropdown/SpsDropdown.js.map +0 -1
- package/dist/out-tsc/dropdown/index.d.ts +0 -2
- package/dist/out-tsc/dropdown/index.js +0 -3
- package/dist/out-tsc/dropdown/index.js.map +0 -1
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.d.ts +0 -12
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.d.ts +0 -2
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.js +0 -63
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.examples.js.map +0 -1
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.js +0 -43
- package/dist/out-tsc/feedback-block/SpsFeedbackBlock.js.map +0 -1
- package/dist/out-tsc/feedback-block/index.d.ts +0 -2
- package/dist/out-tsc/feedback-block/index.js +0 -3
- package/dist/out-tsc/feedback-block/index.js.map +0 -1
- package/dist/out-tsc/fieldset/SpsFieldset.d.ts +0 -22
- package/dist/out-tsc/fieldset/SpsFieldset.examples.d.ts +0 -2
- package/dist/out-tsc/fieldset/SpsFieldset.examples.js +0 -54
- package/dist/out-tsc/fieldset/SpsFieldset.examples.js.map +0 -1
- package/dist/out-tsc/fieldset/SpsFieldset.js +0 -99
- package/dist/out-tsc/fieldset/SpsFieldset.js.map +0 -1
- package/dist/out-tsc/fieldset/index.d.ts +0 -2
- package/dist/out-tsc/fieldset/index.js +0 -3
- package/dist/out-tsc/fieldset/index.js.map +0 -1
- package/dist/out-tsc/filter-panel/SpsFilterPanel.d.ts +0 -10
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.d.ts +0 -2
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.js +0 -31
- package/dist/out-tsc/filter-panel/SpsFilterPanel.examples.js.map +0 -1
- package/dist/out-tsc/filter-panel/SpsFilterPanel.js +0 -37
- package/dist/out-tsc/filter-panel/SpsFilterPanel.js.map +0 -1
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.d.ts +0 -11
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.js +0 -48
- package/dist/out-tsc/filter-panel/SpsFilterPanelCap.js.map +0 -1
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.d.ts +0 -16
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.js +0 -49
- package/dist/out-tsc/filter-panel/SpsFilterPanelFilterBox.js.map +0 -1
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.d.ts +0 -16
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.js +0 -84
- package/dist/out-tsc/filter-panel/SpsFilterPanelSection.js.map +0 -1
- package/dist/out-tsc/filter-panel/index.d.ts +0 -5
- package/dist/out-tsc/filter-panel/index.js +0 -6
- package/dist/out-tsc/filter-panel/index.js.map +0 -1
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.d.ts +0 -15
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.js +0 -66
- package/dist/out-tsc/filter-tile-list/SpsFilterTile.js.map +0 -1
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.d.ts +0 -10
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.d.ts +0 -2
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.js +0 -17
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.examples.js.map +0 -1
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.js +0 -38
- package/dist/out-tsc/filter-tile-list/SpsFilterTileList.js.map +0 -1
- package/dist/out-tsc/filter-tile-list/index.d.ts +0 -3
- package/dist/out-tsc/filter-tile-list/index.js +0 -4
- package/dist/out-tsc/filter-tile-list/index.js.map +0 -1
- package/dist/out-tsc/focused-task/SpsFocusedTask.d.ts +0 -13
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.d.ts +0 -2
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.js +0 -19
- package/dist/out-tsc/focused-task/SpsFocusedTask.examples.js.map +0 -1
- package/dist/out-tsc/focused-task/SpsFocusedTask.js +0 -80
- package/dist/out-tsc/focused-task/SpsFocusedTask.js.map +0 -1
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.d.ts +0 -10
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.js +0 -40
- package/dist/out-tsc/focused-task/SpsFocusedTaskActions.js.map +0 -1
- package/dist/out-tsc/focused-task/index.d.ts +0 -3
- package/dist/out-tsc/focused-task/index.js +0 -4
- package/dist/out-tsc/focused-task/index.js.map +0 -1
- package/dist/out-tsc/form/AddRemoveFormRows.examples.d.ts +0 -18
- package/dist/out-tsc/form/AddRemoveFormRows.examples.js +0 -25
- package/dist/out-tsc/form/AddRemoveFormRows.examples.js.map +0 -1
- package/dist/out-tsc/form/SpsForm.d.ts +0 -24
- package/dist/out-tsc/form/SpsForm.examples.d.ts +0 -41
- package/dist/out-tsc/form/SpsForm.examples.js +0 -49
- package/dist/out-tsc/form/SpsForm.examples.js.map +0 -1
- package/dist/out-tsc/form/SpsForm.js +0 -51
- package/dist/out-tsc/form/SpsForm.js.map +0 -1
- package/dist/out-tsc/form/SpsFormComponentWrapper.d.ts +0 -19
- package/dist/out-tsc/form/SpsFormComponentWrapper.js +0 -69
- package/dist/out-tsc/form/SpsFormComponentWrapper.js.map +0 -1
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.d.ts +0 -24
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.js +0 -2
- package/dist/out-tsc/form/hooks/SpsAbstractControl.interface.js.map +0 -1
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.d.ts +0 -7
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.js +0 -24
- package/dist/out-tsc/form/hooks/SpsControlSet.interface.js.map +0 -1
- package/dist/out-tsc/form/hooks/formArray.d.ts +0 -12
- package/dist/out-tsc/form/hooks/formArray.js +0 -211
- package/dist/out-tsc/form/hooks/formArray.js.map +0 -1
- package/dist/out-tsc/form/hooks/formControl.d.ts +0 -9
- package/dist/out-tsc/form/hooks/formControl.js +0 -68
- package/dist/out-tsc/form/hooks/formControl.js.map +0 -1
- package/dist/out-tsc/form/hooks/formGroup.d.ts +0 -10
- package/dist/out-tsc/form/hooks/formGroup.js +0 -182
- package/dist/out-tsc/form/hooks/formGroup.js.map +0 -1
- package/dist/out-tsc/form/hooks/useForm.d.ts +0 -2
- package/dist/out-tsc/form/hooks/useForm.js +0 -98
- package/dist/out-tsc/form/hooks/useForm.js.map +0 -1
- package/dist/out-tsc/form/hooks/useFormControlId.d.ts +0 -4
- package/dist/out-tsc/form/hooks/useFormControlId.js +0 -18
- package/dist/out-tsc/form/hooks/useFormControlId.js.map +0 -1
- package/dist/out-tsc/form/hooks/useServerSideValidation.d.ts +0 -3
- package/dist/out-tsc/form/hooks/useServerSideValidation.js +0 -37
- package/dist/out-tsc/form/hooks/useServerSideValidation.js.map +0 -1
- package/dist/out-tsc/form/hooks/useSpsForm.d.ts +0 -77
- package/dist/out-tsc/form/hooks/useSpsForm.js +0 -652
- package/dist/out-tsc/form/hooks/useSpsForm.js.map +0 -1
- package/dist/out-tsc/form/index.d.ts +0 -15
- package/dist/out-tsc/form/index.js +0 -16
- package/dist/out-tsc/form/index.js.map +0 -1
- package/dist/out-tsc/form/validation/SpsValidators.d.ts +0 -16
- package/dist/out-tsc/form/validation/SpsValidators.js +0 -84
- package/dist/out-tsc/form/validation/SpsValidators.js.map +0 -1
- package/dist/out-tsc/form/validation/types.d.ts +0 -7
- package/dist/out-tsc/form/validation/types.js +0 -4
- package/dist/out-tsc/form/validation/types.js.map +0 -1
- package/dist/out-tsc/form/validation/validate.d.ts +0 -2
- package/dist/out-tsc/form/validation/validate.js +0 -6
- package/dist/out-tsc/form/validation/validate.js.map +0 -1
- package/dist/out-tsc/growler/SpsGrowler.d.ts +0 -17
- package/dist/out-tsc/growler/SpsGrowler.examples.d.ts +0 -2
- package/dist/out-tsc/growler/SpsGrowler.examples.js +0 -122
- package/dist/out-tsc/growler/SpsGrowler.examples.js.map +0 -1
- package/dist/out-tsc/growler/SpsGrowler.js +0 -147
- package/dist/out-tsc/growler/SpsGrowler.js.map +0 -1
- package/dist/out-tsc/growler/index.d.ts +0 -3
- package/dist/out-tsc/growler/index.js +0 -4
- package/dist/out-tsc/growler/index.js.map +0 -1
- package/dist/out-tsc/growler/useGrowlers.d.ts +0 -12
- package/dist/out-tsc/growler/useGrowlers.js +0 -59
- package/dist/out-tsc/growler/useGrowlers.js.map +0 -1
- package/dist/out-tsc/i18n.d.ts +0 -3
- package/dist/out-tsc/i18n.js +0 -4
- package/dist/out-tsc/i18n.js.map +0 -1
- package/dist/out-tsc/icon/SpsIcon.d.ts +0 -13
- package/dist/out-tsc/icon/SpsIcon.js +0 -47
- package/dist/out-tsc/icon/SpsIcon.js.map +0 -1
- package/dist/out-tsc/icon/index.d.ts +0 -1
- package/dist/out-tsc/icon/index.js +0 -2
- package/dist/out-tsc/icon/index.js.map +0 -1
- package/dist/out-tsc/incrementor/SpsIncrementor.d.ts +0 -15
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.d.ts +0 -2
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.js +0 -18
- package/dist/out-tsc/incrementor/SpsIncrementor.examples.js.map +0 -1
- package/dist/out-tsc/incrementor/SpsIncrementor.js +0 -113
- package/dist/out-tsc/incrementor/SpsIncrementor.js.map +0 -1
- package/dist/out-tsc/incrementor/index.d.ts +0 -2
- package/dist/out-tsc/incrementor/index.js +0 -3
- package/dist/out-tsc/incrementor/index.js.map +0 -1
- package/dist/out-tsc/index.d.ts +0 -69
- package/dist/out-tsc/index.js +0 -70
- package/dist/out-tsc/index.js.map +0 -1
- package/dist/out-tsc/input-group/SpsInputGroup.d.ts +0 -17
- package/dist/out-tsc/input-group/SpsInputGroup.js +0 -74
- package/dist/out-tsc/input-group/SpsInputGroup.js.map +0 -1
- package/dist/out-tsc/input-group/index.d.ts +0 -1
- package/dist/out-tsc/input-group/index.js +0 -2
- package/dist/out-tsc/input-group/index.js.map +0 -1
- package/dist/out-tsc/insight-tile/SpsInsightTile.d.ts +0 -18
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.d.ts +0 -2
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.js +0 -59
- package/dist/out-tsc/insight-tile/SpsInsightTile.examples.js.map +0 -1
- package/dist/out-tsc/insight-tile/SpsInsightTile.js +0 -91
- package/dist/out-tsc/insight-tile/SpsInsightTile.js.map +0 -1
- package/dist/out-tsc/insight-tile/SpsInsights.d.ts +0 -10
- package/dist/out-tsc/insight-tile/SpsInsights.js +0 -19
- package/dist/out-tsc/insight-tile/SpsInsights.js.map +0 -1
- package/dist/out-tsc/insight-tile/index.d.ts +0 -2
- package/dist/out-tsc/insight-tile/index.js +0 -3
- package/dist/out-tsc/insight-tile/index.js.map +0 -1
- package/dist/out-tsc/key-value-list/SpsKeyValueList.d.ts +0 -11
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.d.ts +0 -2
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.js +0 -25
- package/dist/out-tsc/key-value-list/SpsKeyValueList.examples.js.map +0 -1
- package/dist/out-tsc/key-value-list/SpsKeyValueList.js +0 -40
- package/dist/out-tsc/key-value-list/SpsKeyValueList.js.map +0 -1
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.d.ts +0 -13
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.js +0 -44
- package/dist/out-tsc/key-value-list/SpsKeyValueListItem.js.map +0 -1
- package/dist/out-tsc/key-value-list/index.d.ts +0 -3
- package/dist/out-tsc/key-value-list/index.js +0 -4
- package/dist/out-tsc/key-value-list/index.js.map +0 -1
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.d.ts +0 -16
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.d.ts +0 -2
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.js +0 -33
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.examples.js.map +0 -1
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.js +0 -56
- package/dist/out-tsc/key-value-tag/SpsKeyValueTag.js.map +0 -1
- package/dist/out-tsc/key-value-tag/index.d.ts +0 -2
- package/dist/out-tsc/key-value-tag/index.js +0 -3
- package/dist/out-tsc/key-value-tag/index.js.map +0 -1
- package/dist/out-tsc/label/SpsLabel.d.ts +0 -20
- package/dist/out-tsc/label/SpsLabel.examples.d.ts +0 -2
- package/dist/out-tsc/label/SpsLabel.examples.js +0 -65
- package/dist/out-tsc/label/SpsLabel.examples.js.map +0 -1
- package/dist/out-tsc/label/SpsLabel.js +0 -223
- package/dist/out-tsc/label/SpsLabel.js.map +0 -1
- package/dist/out-tsc/label/index.d.ts +0 -2
- package/dist/out-tsc/label/index.js +0 -3
- package/dist/out-tsc/label/index.js.map +0 -1
- package/dist/out-tsc/list-action-bar/SpsListActionBar.d.ts +0 -12
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.d.ts +0 -2
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.js +0 -61
- package/dist/out-tsc/list-action-bar/SpsListActionBar.examples.js.map +0 -1
- package/dist/out-tsc/list-action-bar/SpsListActionBar.js +0 -59
- package/dist/out-tsc/list-action-bar/SpsListActionBar.js.map +0 -1
- package/dist/out-tsc/list-action-bar/index.d.ts +0 -2
- package/dist/out-tsc/list-action-bar/index.js +0 -3
- package/dist/out-tsc/list-action-bar/index.js.map +0 -1
- package/dist/out-tsc/list-toolbar/SpsListToolbar.d.ts +0 -25
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.d.ts +0 -3
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js +0 -404
- package/dist/out-tsc/list-toolbar/SpsListToolbar.examples.js.map +0 -1
- package/dist/out-tsc/list-toolbar/SpsListToolbar.js +0 -168
- package/dist/out-tsc/list-toolbar/SpsListToolbar.js.map +0 -1
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.d.ts +0 -12
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.js +0 -35
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearch.js.map +0 -1
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.d.ts +0 -10
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.js +0 -25
- package/dist/out-tsc/list-toolbar/SpsListToolbarSearchInfo.js.map +0 -1
- package/dist/out-tsc/list-toolbar/index.d.ts +0 -4
- package/dist/out-tsc/list-toolbar/index.js +0 -5
- package/dist/out-tsc/list-toolbar/index.js.map +0 -1
- package/dist/out-tsc/manifest.d.ts +0 -2
- package/dist/out-tsc/manifest.js +0 -462
- package/dist/out-tsc/manifest.js.map +0 -1
- package/dist/out-tsc/micro-block/SpsMicroBlock.d.ts +0 -13
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.d.ts +0 -2
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.js +0 -49
- package/dist/out-tsc/micro-block/SpsMicroBlock.examples.js.map +0 -1
- package/dist/out-tsc/micro-block/SpsMicroBlock.js +0 -44
- package/dist/out-tsc/micro-block/SpsMicroBlock.js.map +0 -1
- package/dist/out-tsc/micro-block/index.d.ts +0 -2
- package/dist/out-tsc/micro-block/index.js +0 -3
- package/dist/out-tsc/micro-block/index.js.map +0 -1
- package/dist/out-tsc/modal/SpsModal.d.ts +0 -25
- package/dist/out-tsc/modal/SpsModal.examples.d.ts +0 -2
- package/dist/out-tsc/modal/SpsModal.examples.js +0 -138
- package/dist/out-tsc/modal/SpsModal.examples.js.map +0 -1
- package/dist/out-tsc/modal/SpsModal.js +0 -193
- package/dist/out-tsc/modal/SpsModal.js.map +0 -1
- package/dist/out-tsc/modal/SpsModalAction.d.ts +0 -18
- package/dist/out-tsc/modal/SpsModalAction.js +0 -73
- package/dist/out-tsc/modal/SpsModalAction.js.map +0 -1
- package/dist/out-tsc/modal/SpsModalBody.d.ts +0 -10
- package/dist/out-tsc/modal/SpsModalBody.js +0 -41
- package/dist/out-tsc/modal/SpsModalBody.js.map +0 -1
- package/dist/out-tsc/modal/SpsModalFooter.d.ts +0 -16
- package/dist/out-tsc/modal/SpsModalFooter.js +0 -48
- package/dist/out-tsc/modal/SpsModalFooter.js.map +0 -1
- package/dist/out-tsc/modal/SpsModalHeader.d.ts +0 -11
- package/dist/out-tsc/modal/SpsModalHeader.js +0 -45
- package/dist/out-tsc/modal/SpsModalHeader.js.map +0 -1
- package/dist/out-tsc/modal/SpsModalOverlay.d.ts +0 -12
- package/dist/out-tsc/modal/SpsModalOverlay.js +0 -53
- package/dist/out-tsc/modal/SpsModalOverlay.js.map +0 -1
- package/dist/out-tsc/modal/index.d.ts +0 -2
- package/dist/out-tsc/modal/index.js +0 -5
- package/dist/out-tsc/modal/index.js.map +0 -1
- package/dist/out-tsc/modal-v2/SpsModalV2.d.ts +0 -18
- package/dist/out-tsc/modal-v2/SpsModalV2.js +0 -146
- package/dist/out-tsc/modal-v2/SpsModalV2.js.map +0 -1
- package/dist/out-tsc/modal-v2/index.d.ts +0 -1
- package/dist/out-tsc/modal-v2/index.js +0 -2
- package/dist/out-tsc/modal-v2/index.js.map +0 -1
- package/dist/out-tsc/multi-select/SpsMultiSelect.d.ts +0 -34
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.d.ts +0 -2
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js +0 -33
- package/dist/out-tsc/multi-select/SpsMultiSelect.examples.js.map +0 -1
- package/dist/out-tsc/multi-select/SpsMultiSelect.js +0 -229
- package/dist/out-tsc/multi-select/SpsMultiSelect.js.map +0 -1
- package/dist/out-tsc/multi-select/index.d.ts +0 -2
- package/dist/out-tsc/multi-select/index.js +0 -3
- package/dist/out-tsc/multi-select/index.js.map +0 -1
- package/dist/out-tsc/option-list/SpsOptionList.d.ts +0 -3
- package/dist/out-tsc/option-list/SpsOptionList.js +0 -412
- package/dist/out-tsc/option-list/SpsOptionList.js.map +0 -1
- package/dist/out-tsc/option-list/SpsOptionListProps.d.ts +0 -75
- package/dist/out-tsc/option-list/SpsOptionListProps.js +0 -49
- package/dist/out-tsc/option-list/SpsOptionListProps.js.map +0 -1
- package/dist/out-tsc/option-list/index.d.ts +0 -1
- package/dist/out-tsc/option-list/index.js +0 -2
- package/dist/out-tsc/option-list/index.js.map +0 -1
- package/dist/out-tsc/option-list/useOptionListOptions.d.ts +0 -8
- package/dist/out-tsc/option-list/useOptionListOptions.js +0 -163
- package/dist/out-tsc/option-list/useOptionListOptions.js.map +0 -1
- package/dist/out-tsc/option-list/useOptionListSearch.d.ts +0 -13
- package/dist/out-tsc/option-list/useOptionListSearch.js +0 -74
- package/dist/out-tsc/option-list/useOptionListSearch.js.map +0 -1
- package/dist/out-tsc/option-list/useSpsAction.d.ts +0 -2
- package/dist/out-tsc/option-list/useSpsAction.js +0 -40
- package/dist/out-tsc/option-list/useSpsAction.js.map +0 -1
- package/dist/out-tsc/page-title/SpsPageSubtitle.d.ts +0 -10
- package/dist/out-tsc/page-title/SpsPageSubtitle.js +0 -38
- package/dist/out-tsc/page-title/SpsPageSubtitle.js.map +0 -1
- package/dist/out-tsc/page-title/SpsPageTitle.d.ts +0 -10
- package/dist/out-tsc/page-title/SpsPageTitle.examples.d.ts +0 -2
- package/dist/out-tsc/page-title/SpsPageTitle.examples.js +0 -41
- package/dist/out-tsc/page-title/SpsPageTitle.examples.js.map +0 -1
- package/dist/out-tsc/page-title/SpsPageTitle.js +0 -50
- package/dist/out-tsc/page-title/SpsPageTitle.js.map +0 -1
- package/dist/out-tsc/page-title/index.d.ts +0 -3
- package/dist/out-tsc/page-title/index.js +0 -4
- package/dist/out-tsc/page-title/index.js.map +0 -1
- package/dist/out-tsc/pagination/SpsPageSelector.d.ts +0 -14
- package/dist/out-tsc/pagination/SpsPageSelector.js +0 -99
- package/dist/out-tsc/pagination/SpsPageSelector.js.map +0 -1
- package/dist/out-tsc/pagination/SpsPagination.d.ts +0 -16
- package/dist/out-tsc/pagination/SpsPagination.examples.d.ts +0 -2
- package/dist/out-tsc/pagination/SpsPagination.examples.js +0 -78
- package/dist/out-tsc/pagination/SpsPagination.examples.js.map +0 -1
- package/dist/out-tsc/pagination/SpsPagination.js +0 -138
- package/dist/out-tsc/pagination/SpsPagination.js.map +0 -1
- package/dist/out-tsc/pagination/index.d.ts +0 -3
- package/dist/out-tsc/pagination/index.js +0 -4
- package/dist/out-tsc/pagination/index.js.map +0 -1
- package/dist/out-tsc/product-bar/SpsProductBar.d.ts +0 -19
- package/dist/out-tsc/product-bar/SpsProductBar.examples.d.ts +0 -2
- package/dist/out-tsc/product-bar/SpsProductBar.examples.js +0 -42
- package/dist/out-tsc/product-bar/SpsProductBar.examples.js.map +0 -1
- package/dist/out-tsc/product-bar/SpsProductBar.js +0 -90
- package/dist/out-tsc/product-bar/SpsProductBar.js.map +0 -1
- package/dist/out-tsc/product-bar/SpsProductBarTab.d.ts +0 -6
- package/dist/out-tsc/product-bar/SpsProductBarTab.js +0 -38
- package/dist/out-tsc/product-bar/SpsProductBarTab.js.map +0 -1
- package/dist/out-tsc/product-bar/index.d.ts +0 -3
- package/dist/out-tsc/product-bar/index.js +0 -4
- package/dist/out-tsc/product-bar/index.js.map +0 -1
- package/dist/out-tsc/progress-bar/SpsProgressBar.d.ts +0 -15
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.d.ts +0 -27
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.js +0 -79
- package/dist/out-tsc/progress-bar/SpsProgressBar.examples.js.map +0 -1
- package/dist/out-tsc/progress-bar/SpsProgressBar.js +0 -59
- package/dist/out-tsc/progress-bar/SpsProgressBar.js.map +0 -1
- package/dist/out-tsc/progress-bar/index.d.ts +0 -2
- package/dist/out-tsc/progress-bar/index.js +0 -3
- package/dist/out-tsc/progress-bar/index.js.map +0 -1
- package/dist/out-tsc/progress-ring/SpsProgressRing.d.ts +0 -13
- package/dist/out-tsc/progress-ring/SpsProgressRing.js +0 -37
- package/dist/out-tsc/progress-ring/SpsProgressRing.js.map +0 -1
- package/dist/out-tsc/progress-ring/index.d.ts +0 -1
- package/dist/out-tsc/progress-ring/index.js +0 -2
- package/dist/out-tsc/progress-ring/index.js.map +0 -1
- package/dist/out-tsc/prop-types.d.ts +0 -23
- package/dist/out-tsc/prop-types.js +0 -26
- package/dist/out-tsc/prop-types.js.map +0 -1
- package/dist/out-tsc/radio-button/SpsRadioButton.d.ts +0 -23
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.d.ts +0 -2
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.js +0 -36
- package/dist/out-tsc/radio-button/SpsRadioButton.examples.js.map +0 -1
- package/dist/out-tsc/radio-button/SpsRadioButton.js +0 -64
- package/dist/out-tsc/radio-button/SpsRadioButton.js.map +0 -1
- package/dist/out-tsc/radio-button/index.d.ts +0 -2
- package/dist/out-tsc/radio-button/index.js +0 -3
- package/dist/out-tsc/radio-button/index.js.map +0 -1
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.d.ts +0 -11
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.d.ts +0 -14
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.js +0 -21
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.examples.js.map +0 -1
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.js +0 -27
- package/dist/out-tsc/scrollable-container/SpsScrollableContainer.js.map +0 -1
- package/dist/out-tsc/scrollable-container/index.d.ts +0 -2
- package/dist/out-tsc/scrollable-container/index.js +0 -3
- package/dist/out-tsc/scrollable-container/index.js.map +0 -1
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.d.ts +0 -13
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.d.ts +0 -2
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.js +0 -36
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.examples.js.map +0 -1
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.js +0 -74
- package/dist/out-tsc/search-results-bar/SpsSearchResultsBar.js.map +0 -1
- package/dist/out-tsc/search-results-bar/index.d.ts +0 -2
- package/dist/out-tsc/search-results-bar/index.js +0 -3
- package/dist/out-tsc/search-results-bar/index.js.map +0 -1
- package/dist/out-tsc/select/SpsSelect.d.ts +0 -37
- package/dist/out-tsc/select/SpsSelect.examples.d.ts +0 -2
- package/dist/out-tsc/select/SpsSelect.examples.js +0 -77
- package/dist/out-tsc/select/SpsSelect.examples.js.map +0 -1
- package/dist/out-tsc/select/SpsSelect.js +0 -205
- package/dist/out-tsc/select/SpsSelect.js.map +0 -1
- package/dist/out-tsc/select/index.d.ts +0 -2
- package/dist/out-tsc/select/index.js +0 -3
- package/dist/out-tsc/select/index.js.map +0 -1
- package/dist/out-tsc/side-nav/SpsSideNav.d.ts +0 -38
- package/dist/out-tsc/side-nav/SpsSideNav.examples.d.ts +0 -2
- package/dist/out-tsc/side-nav/SpsSideNav.examples.js +0 -76
- package/dist/out-tsc/side-nav/SpsSideNav.examples.js.map +0 -1
- package/dist/out-tsc/side-nav/SpsSideNav.js +0 -128
- package/dist/out-tsc/side-nav/SpsSideNav.js.map +0 -1
- package/dist/out-tsc/side-nav/SpsSideNavBranch.d.ts +0 -9
- package/dist/out-tsc/side-nav/SpsSideNavBranch.js +0 -68
- package/dist/out-tsc/side-nav/SpsSideNavBranch.js.map +0 -1
- package/dist/out-tsc/side-nav/index.d.ts +0 -2
- package/dist/out-tsc/side-nav/index.js +0 -3
- package/dist/out-tsc/side-nav/index.js.map +0 -1
- package/dist/out-tsc/slack-link/SpsSlackLink.d.ts +0 -11
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.d.ts +0 -2
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.js +0 -16
- package/dist/out-tsc/slack-link/SpsSlackLink.examples.js.map +0 -1
- package/dist/out-tsc/slack-link/SpsSlackLink.js +0 -45
- package/dist/out-tsc/slack-link/SpsSlackLink.js.map +0 -1
- package/dist/out-tsc/slack-link/index.d.ts +0 -2
- package/dist/out-tsc/slack-link/index.js +0 -3
- package/dist/out-tsc/slack-link/index.js.map +0 -1
- package/dist/out-tsc/sorting-header/SpsSortingHeader.d.ts +0 -13
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.d.ts +0 -2
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.js +0 -17
- package/dist/out-tsc/sorting-header/SpsSortingHeader.examples.js.map +0 -1
- package/dist/out-tsc/sorting-header/SpsSortingHeader.js +0 -51
- package/dist/out-tsc/sorting-header/SpsSortingHeader.js.map +0 -1
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.d.ts +0 -17
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.js +0 -71
- package/dist/out-tsc/sorting-header/SpsSortingHeaderCell.js.map +0 -1
- package/dist/out-tsc/sorting-header/index.d.ts +0 -3
- package/dist/out-tsc/sorting-header/index.js +0 -4
- package/dist/out-tsc/sorting-header/index.js.map +0 -1
- package/dist/out-tsc/spinner/SpsSpinner.d.ts +0 -14
- package/dist/out-tsc/spinner/SpsSpinner.examples.d.ts +0 -2
- package/dist/out-tsc/spinner/SpsSpinner.examples.js +0 -22
- package/dist/out-tsc/spinner/SpsSpinner.examples.js.map +0 -1
- package/dist/out-tsc/spinner/SpsSpinner.js +0 -46
- package/dist/out-tsc/spinner/SpsSpinner.js.map +0 -1
- package/dist/out-tsc/spinner/index.d.ts +0 -2
- package/dist/out-tsc/spinner/index.js +0 -3
- package/dist/out-tsc/spinner/index.js.map +0 -1
- package/dist/out-tsc/split-button/SpsSplitButton.d.ts +0 -18
- package/dist/out-tsc/split-button/SpsSplitButton.examples.d.ts +0 -2
- package/dist/out-tsc/split-button/SpsSplitButton.examples.js +0 -39
- package/dist/out-tsc/split-button/SpsSplitButton.examples.js.map +0 -1
- package/dist/out-tsc/split-button/SpsSplitButton.js +0 -76
- package/dist/out-tsc/split-button/SpsSplitButton.js.map +0 -1
- package/dist/out-tsc/split-button/index.d.ts +0 -2
- package/dist/out-tsc/split-button/index.js +0 -3
- package/dist/out-tsc/split-button/index.js.map +0 -1
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.d.ts +0 -25
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.d.ts +0 -24
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js +0 -78
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.examples.js.map +0 -1
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.js +0 -54
- package/dist/out-tsc/stepped-progress-bar/SpsSteppedProgressBar.js.map +0 -1
- package/dist/out-tsc/stepped-progress-bar/index.d.ts +0 -2
- package/dist/out-tsc/stepped-progress-bar/index.js +0 -3
- package/dist/out-tsc/stepped-progress-bar/index.js.map +0 -1
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.d.ts +0 -2
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.js +0 -44
- package/dist/out-tsc/summary-list/SpsSummaryList.examples.js.map +0 -1
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.d.ts +0 -14
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.js +0 -43
- package/dist/out-tsc/summary-list/SpsSummaryListColumn.js.map +0 -1
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.d.ts +0 -10
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.js +0 -38
- package/dist/out-tsc/summary-list/SpsSummaryListExpansion.js.map +0 -1
- package/dist/out-tsc/summary-list/SpsSummaryListRow.d.ts +0 -13
- package/dist/out-tsc/summary-list/SpsSummaryListRow.js +0 -98
- package/dist/out-tsc/summary-list/SpsSummaryListRow.js.map +0 -1
- package/dist/out-tsc/summary-list/index.d.ts +0 -4
- package/dist/out-tsc/summary-list/index.js +0 -5
- package/dist/out-tsc/summary-list/index.js.map +0 -1
- package/dist/out-tsc/table/SpsTable.d.ts +0 -14
- package/dist/out-tsc/table/SpsTable.examples.d.ts +0 -2
- package/dist/out-tsc/table/SpsTable.examples.js +0 -138
- package/dist/out-tsc/table/SpsTable.examples.js.map +0 -1
- package/dist/out-tsc/table/SpsTable.js +0 -88
- package/dist/out-tsc/table/SpsTable.js.map +0 -1
- package/dist/out-tsc/table/SpsTableBody.d.ts +0 -11
- package/dist/out-tsc/table/SpsTableBody.js +0 -46
- package/dist/out-tsc/table/SpsTableBody.js.map +0 -1
- package/dist/out-tsc/table/SpsTableCell.d.ts +0 -15
- package/dist/out-tsc/table/SpsTableCell.js +0 -57
- package/dist/out-tsc/table/SpsTableCell.js.map +0 -1
- package/dist/out-tsc/table/SpsTableHead.d.ts +0 -15
- package/dist/out-tsc/table/SpsTableHead.js +0 -59
- package/dist/out-tsc/table/SpsTableHead.js.map +0 -1
- package/dist/out-tsc/table/SpsTableHeader.d.ts +0 -17
- package/dist/out-tsc/table/SpsTableHeader.js +0 -91
- package/dist/out-tsc/table/SpsTableHeader.js.map +0 -1
- package/dist/out-tsc/table/SpsTableRow.d.ts +0 -14
- package/dist/out-tsc/table/SpsTableRow.js +0 -59
- package/dist/out-tsc/table/SpsTableRow.js.map +0 -1
- package/dist/out-tsc/table/index.d.ts +0 -7
- package/dist/out-tsc/table/index.js +0 -8
- package/dist/out-tsc/table/index.js.map +0 -1
- package/dist/out-tsc/table/usePinnedStyles.d.ts +0 -4
- package/dist/out-tsc/table/usePinnedStyles.js +0 -192
- package/dist/out-tsc/table/usePinnedStyles.js.map +0 -1
- package/dist/out-tsc/tabs/SpsTabs.d.ts +0 -14
- package/dist/out-tsc/tabs/SpsTabs.js +0 -77
- package/dist/out-tsc/tabs/SpsTabs.js.map +0 -1
- package/dist/out-tsc/tag/SpsTag.d.ts +0 -13
- package/dist/out-tsc/tag/SpsTag.examples.d.ts +0 -2
- package/dist/out-tsc/tag/SpsTag.examples.js +0 -25
- package/dist/out-tsc/tag/SpsTag.examples.js.map +0 -1
- package/dist/out-tsc/tag/SpsTag.js +0 -47
- package/dist/out-tsc/tag/SpsTag.js.map +0 -1
- package/dist/out-tsc/tag/index.d.ts +0 -2
- package/dist/out-tsc/tag/index.js +0 -3
- package/dist/out-tsc/tag/index.js.map +0 -1
- package/dist/out-tsc/task-queue/SpsTaskQueue.d.ts +0 -36
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.d.ts +0 -2
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.js +0 -45
- package/dist/out-tsc/task-queue/SpsTaskQueue.examples.js.map +0 -1
- package/dist/out-tsc/task-queue/SpsTaskQueue.js +0 -217
- package/dist/out-tsc/task-queue/SpsTaskQueue.js.map +0 -1
- package/dist/out-tsc/task-queue/index.d.ts +0 -2
- package/dist/out-tsc/task-queue/index.js +0 -3
- package/dist/out-tsc/task-queue/index.js.map +0 -1
- package/dist/out-tsc/test-util.d.ts +0 -2
- package/dist/out-tsc/test-util.js +0 -54
- package/dist/out-tsc/test-util.js.map +0 -1
- package/dist/out-tsc/text-input/SpsTextInput.d.ts +0 -22
- package/dist/out-tsc/text-input/SpsTextInput.examples.d.ts +0 -2
- package/dist/out-tsc/text-input/SpsTextInput.examples.js +0 -45
- package/dist/out-tsc/text-input/SpsTextInput.examples.js.map +0 -1
- package/dist/out-tsc/text-input/SpsTextInput.js +0 -73
- package/dist/out-tsc/text-input/SpsTextInput.js.map +0 -1
- package/dist/out-tsc/text-input/index.d.ts +0 -2
- package/dist/out-tsc/text-input/index.js +0 -3
- package/dist/out-tsc/text-input/index.js.map +0 -1
- package/dist/out-tsc/textarea/SpsTextarea.d.ts +0 -22
- package/dist/out-tsc/textarea/SpsTextarea.examples.d.ts +0 -2
- package/dist/out-tsc/textarea/SpsTextarea.examples.js +0 -36
- package/dist/out-tsc/textarea/SpsTextarea.examples.js.map +0 -1
- package/dist/out-tsc/textarea/SpsTextarea.js +0 -71
- package/dist/out-tsc/textarea/SpsTextarea.js.map +0 -1
- package/dist/out-tsc/textarea/index.d.ts +0 -2
- package/dist/out-tsc/textarea/index.js +0 -3
- package/dist/out-tsc/textarea/index.js.map +0 -1
- package/dist/out-tsc/tile-list/SpsTile.d.ts +0 -16
- package/dist/out-tsc/tile-list/SpsTile.js +0 -60
- package/dist/out-tsc/tile-list/SpsTile.js.map +0 -1
- package/dist/out-tsc/tile-list/SpsTileList.d.ts +0 -10
- package/dist/out-tsc/tile-list/SpsTileList.examples.d.ts +0 -2
- package/dist/out-tsc/tile-list/SpsTileList.examples.js +0 -36
- package/dist/out-tsc/tile-list/SpsTileList.examples.js.map +0 -1
- package/dist/out-tsc/tile-list/SpsTileList.js +0 -38
- package/dist/out-tsc/tile-list/SpsTileList.js.map +0 -1
- package/dist/out-tsc/tile-list/index.d.ts +0 -3
- package/dist/out-tsc/tile-list/index.js +0 -4
- package/dist/out-tsc/tile-list/index.js.map +0 -1
- package/dist/out-tsc/toggle/SpsToggle.d.ts +0 -27
- package/dist/out-tsc/toggle/SpsToggle.examples.d.ts +0 -2
- package/dist/out-tsc/toggle/SpsToggle.examples.js +0 -37
- package/dist/out-tsc/toggle/SpsToggle.examples.js.map +0 -1
- package/dist/out-tsc/toggle/SpsToggle.js +0 -95
- package/dist/out-tsc/toggle/SpsToggle.js.map +0 -1
- package/dist/out-tsc/toggle/index.d.ts +0 -2
- package/dist/out-tsc/toggle/index.js +0 -3
- package/dist/out-tsc/toggle/index.js.map +0 -1
- package/dist/out-tsc/tooltip/SpsTooltip.d.ts +0 -29
- package/dist/out-tsc/tooltip/SpsTooltip.examples.d.ts +0 -2
- package/dist/out-tsc/tooltip/SpsTooltip.examples.js +0 -119
- package/dist/out-tsc/tooltip/SpsTooltip.examples.js.map +0 -1
- package/dist/out-tsc/tooltip/SpsTooltip.js +0 -285
- package/dist/out-tsc/tooltip/SpsTooltip.js.map +0 -1
- package/dist/out-tsc/tooltip/SpsTooltipTitle.d.ts +0 -13
- package/dist/out-tsc/tooltip/SpsTooltipTitle.js +0 -32
- package/dist/out-tsc/tooltip/SpsTooltipTitle.js.map +0 -1
- package/dist/out-tsc/tooltip/index.d.ts +0 -3
- package/dist/out-tsc/tooltip/index.js +0 -4
- package/dist/out-tsc/tooltip/index.js.map +0 -1
- package/dist/out-tsc/utils/FauxChangeEvent.d.ts +0 -20
- package/dist/out-tsc/utils/FauxChangeEvent.js +0 -83
- package/dist/out-tsc/utils/FauxChangeEvent.js.map +0 -1
- package/dist/out-tsc/utils/contentOf.d.ts +0 -2
- package/dist/out-tsc/utils/contentOf.js +0 -6
- package/dist/out-tsc/utils/contentOf.js.map +0 -1
- package/dist/out-tsc/utils/getPosition.d.ts +0 -11
- package/dist/out-tsc/utils/getPosition.js +0 -181
- package/dist/out-tsc/utils/getPosition.js.map +0 -1
- package/dist/out-tsc/utils/getScrollParent.d.ts +0 -1
- package/dist/out-tsc/utils/getScrollParent.js +0 -28
- package/dist/out-tsc/utils/getScrollParent.js.map +0 -1
- package/dist/out-tsc/utils/index.d.ts +0 -11
- package/dist/out-tsc/utils/index.js +0 -12
- package/dist/out-tsc/utils/index.js.map +0 -1
- package/dist/out-tsc/utils/selectChildren.d.ts +0 -5
- package/dist/out-tsc/utils/selectChildren.js +0 -72
- package/dist/out-tsc/utils/selectChildren.js.map +0 -1
- package/dist/out-tsc/utils/useCheckDeprecatedProps.d.ts +0 -2
- package/dist/out-tsc/utils/useCheckDeprecatedProps.js +0 -35
- package/dist/out-tsc/utils/useCheckDeprecatedProps.js.map +0 -1
- package/dist/out-tsc/utils/useDidUpdateEffect.d.ts +0 -2
- package/dist/out-tsc/utils/useDidUpdateEffect.js +0 -11
- package/dist/out-tsc/utils/useDidUpdateEffect.js.map +0 -1
- package/dist/out-tsc/utils/useDocumentEventListener.d.ts +0 -1
- package/dist/out-tsc/utils/useDocumentEventListener.js +0 -39
- package/dist/out-tsc/utils/useDocumentEventListener.js.map +0 -1
- package/dist/out-tsc/utils/useElementId.d.ts +0 -2
- package/dist/out-tsc/utils/useElementId.js +0 -6
- package/dist/out-tsc/utils/useElementId.js.map +0 -1
- package/dist/out-tsc/utils/useInputPopup.d.ts +0 -6
- package/dist/out-tsc/utils/useInputPopup.js +0 -52
- package/dist/out-tsc/utils/useInputPopup.js.map +0 -1
- package/dist/out-tsc/utils/usePatchReducer.d.ts +0 -2
- package/dist/out-tsc/utils/usePatchReducer.js +0 -19
- package/dist/out-tsc/utils/usePatchReducer.js.map +0 -1
- package/dist/out-tsc/utils/usePortal.d.ts +0 -6
- package/dist/out-tsc/utils/usePortal.js +0 -57
- package/dist/out-tsc/utils/usePortal.js.map +0 -1
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.d.ts +0 -11
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.js +0 -46
- package/dist/out-tsc/vertical-rule/SpsVerticalRule.js.map +0 -1
- package/dist/out-tsc/vertical-rule/index.d.ts +0 -1
- package/dist/out-tsc/vertical-rule/index.js +0 -2
- package/dist/out-tsc/vertical-rule/index.js.map +0 -1
- package/dist/out-tsc/wizard/SpsWizard.examples.d.ts +0 -2
- package/dist/out-tsc/wizard/SpsWizard.examples.js +0 -31
- package/dist/out-tsc/wizard/SpsWizard.examples.js.map +0 -1
- package/dist/out-tsc/wizard/SpsWizardSidebar.d.ts +0 -23
- package/dist/out-tsc/wizard/SpsWizardSidebar.js +0 -44
- package/dist/out-tsc/wizard/SpsWizardSidebar.js.map +0 -1
- package/dist/out-tsc/wizard/SpsWizardSubstep.d.ts +0 -14
- package/dist/out-tsc/wizard/SpsWizardSubstep.js +0 -37
- package/dist/out-tsc/wizard/SpsWizardSubstep.js.map +0 -1
- package/dist/out-tsc/wizard/index.d.ts +0 -3
- package/dist/out-tsc/wizard/index.js +0 -4
- package/dist/out-tsc/wizard/index.js.map +0 -1
- package/dist/out-tsc/workflow/SpsWorkflow.d.ts +0 -14
- package/dist/out-tsc/workflow/SpsWorkflow.examples.d.ts +0 -2
- package/dist/out-tsc/workflow/SpsWorkflow.examples.js +0 -25
- package/dist/out-tsc/workflow/SpsWorkflow.examples.js.map +0 -1
- package/dist/out-tsc/workflow/SpsWorkflow.js +0 -56
- package/dist/out-tsc/workflow/SpsWorkflow.js.map +0 -1
- package/dist/out-tsc/workflow/SpsWorkflowDocument.d.ts +0 -11
- package/dist/out-tsc/workflow/SpsWorkflowDocument.js +0 -46
- package/dist/out-tsc/workflow/SpsWorkflowDocument.js.map +0 -1
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.d.ts +0 -13
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.js +0 -52
- package/dist/out-tsc/workflow/SpsWorkflowDocumentStatus.js.map +0 -1
- package/dist/out-tsc/workflow/SpsWorkflowStep.d.ts +0 -14
- package/dist/out-tsc/workflow/SpsWorkflowStep.js +0 -53
- package/dist/out-tsc/workflow/SpsWorkflowStep.js.map +0 -1
- package/dist/out-tsc/workflow/index.d.ts +0 -5
- package/dist/out-tsc/workflow/index.js +0 -6
- package/dist/out-tsc/workflow/index.js.map +0 -1
- package/dist/out-tsc/zero-state/SpsMicroZeroState.d.ts +0 -14
- package/dist/out-tsc/zero-state/SpsMicroZeroState.js +0 -46
- package/dist/out-tsc/zero-state/SpsMicroZeroState.js.map +0 -1
- package/dist/out-tsc/zero-state/SpsZeroState.d.ts +0 -13
- package/dist/out-tsc/zero-state/SpsZeroState.examples.d.ts +0 -2
- package/dist/out-tsc/zero-state/SpsZeroState.examples.js +0 -79
- package/dist/out-tsc/zero-state/SpsZeroState.examples.js.map +0 -1
- package/dist/out-tsc/zero-state/SpsZeroState.js +0 -47
- package/dist/out-tsc/zero-state/SpsZeroState.js.map +0 -1
- package/dist/out-tsc/zero-state/index.d.ts +0 -3
- package/dist/out-tsc/zero-state/index.js +0 -4
- package/dist/out-tsc/zero-state/index.js.map +0 -1
- package/rollup.config.js +0 -22
|
@@ -1,76 +0,0 @@
|
|
|
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 * as React from "react";
|
|
6
|
-
import { code } from "@spscommerce/utils";
|
|
7
|
-
export var SpsSideNavExamples = {
|
|
8
|
-
usage: {
|
|
9
|
-
label: "Usage",
|
|
10
|
-
customSection: function () { return (React.createElement(React.Fragment, null,
|
|
11
|
-
React.createElement("div", null,
|
|
12
|
-
React.createElement("span", { className: "sps-body-14 mb-2" }, "Use the Side Navigation if:"),
|
|
13
|
-
React.createElement("ul", { className: "mt-2" },
|
|
14
|
-
React.createElement("li", { className: "mb-1" }, "The navigation benefits from subsections or nested structures"),
|
|
15
|
-
React.createElement("li", { className: "mb-1" }, "There are too many items for Tabbed Navigation"),
|
|
16
|
-
React.createElement("li", null, "The navigation items have long names"))),
|
|
17
|
-
React.createElement("div", null,
|
|
18
|
-
React.createElement("span", { className: "sps-body-14 mb-2" }, "Avoid using the Side Navigation if:"),
|
|
19
|
-
React.createElement("ul", { className: "mt-2" },
|
|
20
|
-
React.createElement("li", { className: "mb-1" }, "Tabbed Navigation is sufficient"),
|
|
21
|
-
React.createElement("li", { className: "mb-1" }, "The full width of the page is required to sufficiently display content"))))); },
|
|
22
|
-
},
|
|
23
|
-
filter: {
|
|
24
|
-
label: "Filter",
|
|
25
|
-
description: "Use Filters when the Side Navigation benefits from filtering, usually when it contains a long list of navigation items.",
|
|
26
|
-
examples: {
|
|
27
|
-
simple: {
|
|
28
|
-
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"A Multiple Line Navigation Item That Has to Wrap Because it\u2019s so Long\",\n },\n {\n name: \"Navigation Item 2\",\n },\n {\n name: \"Navigation Item 3\",\n },\n {\n name: \"Navigation Item 4\",\n },\n {\n name: \"Navigation Item 5\",\n },\n {\n name: \"Navigation Item 6\",\n },\n {\n name: \"Navigation Item 7\",\n },\n {\n name: \"Navigation Item 8\",\n },\n {\n name: \"Navigation Item 9\",\n },\n {\n name: \"Navigation Item 10\",\n },\n {\n name: \"Navigation Item 11\",\n },\n {\n name: \"Navigation Item 12\",\n },\n {\n name: \"Navigation Item 13\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n activeNavItem=\"Navigation Item 2\"\n onNavChange={onChange}\n filterable={true}\n filterInputPlaceholder=\"Filter\"\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"A Multiple Line Navigation Item That Has to Wrap Because it\u2019s so Long\",\n },\n {\n name: \"Navigation Item 2\",\n },\n {\n name: \"Navigation Item 3\",\n },\n {\n name: \"Navigation Item 4\",\n },\n {\n name: \"Navigation Item 5\",\n },\n {\n name: \"Navigation Item 6\",\n },\n {\n name: \"Navigation Item 7\",\n },\n {\n name: \"Navigation Item 8\",\n },\n {\n name: \"Navigation Item 9\",\n },\n {\n name: \"Navigation Item 10\",\n },\n {\n name: \"Navigation Item 11\",\n },\n {\n name: \"Navigation Item 12\",\n },\n {\n name: \"Navigation Item 13\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n activeNavItem=\"Navigation Item 2\"\n onNavChange={onChange}\n filterable={true}\n filterInputPlaceholder=\"Filter\"\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
icons: {
|
|
33
|
-
label: "Icons",
|
|
34
|
-
description: function (_a) {
|
|
35
|
-
var Link = _a.Link;
|
|
36
|
-
return (React.createElement("div", null,
|
|
37
|
-
React.createElement("span", { className: "sps-body-14" }, "Use Icons to further illustrate what the navigation item contains. If one navigation item has an Icon, all of the need to have an Icon. Do not use an Icon more than once in a single Side Navigation. Example: A bell icon to represent a Notifications navigation item."),
|
|
38
|
-
React.createElement("div", { className: "mt-2" },
|
|
39
|
-
React.createElement(Link, { to: "/style-and-layout/icons" }, "View All Icons"))));
|
|
40
|
-
},
|
|
41
|
-
examples: {
|
|
42
|
-
simple: {
|
|
43
|
-
react: code(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Navigation Item 1\",\n icon: SpsIcon.CHART_LINE\n },\n {\n name: \"Navigation Item 2\",\n icon: SpsIcon.ARCHIVE\n },\n {\n name: \"Navigation Item 3\",\n icon: SpsIcon.FOLDER_OPEN\n },\n {\n name: \"Navigation Item 4\",\n icon: SpsIcon.BELL\n },\n {\n name: \"Navigation Item 5\",\n icon: SpsIcon.BOOK\n },\n {\n name: \"Navigation Item 6\",\n icon: SpsIcon.BARCODE\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Navigation Item 1\",\n icon: SpsIcon.CHART_LINE\n },\n {\n name: \"Navigation Item 2\",\n icon: SpsIcon.ARCHIVE\n },\n {\n name: \"Navigation Item 3\",\n icon: SpsIcon.FOLDER_OPEN\n },\n {\n name: \"Navigation Item 4\",\n icon: SpsIcon.BELL\n },\n {\n name: \"Navigation Item 5\",\n icon: SpsIcon.BOOK\n },\n {\n name: \"Navigation Item 6\",\n icon: SpsIcon.BARCODE\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
nesting: {
|
|
48
|
-
label: "Nesting",
|
|
49
|
-
description: "Use Nesting to organize related navigation items. Avoid nesting beyond grandchildren.",
|
|
50
|
-
examples: {
|
|
51
|
-
simple: {
|
|
52
|
-
react: code(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Parent 1\",\n subNavItems: [\n {\n name: \"Child 1\",\n subNavItems: [\n {\n name: \"Grandchild 1\",\n },\n {\n name: \"Grandchild 2\",\n }\n ]\n },\n {\n name: \"Child 2\",\n subNavItems: [\n {\n name: \"Grandchild 3\",\n },\n {\n name: \"Grandchild 4\",\n }\n ]\n }\n ]\n },\n {\n name: \"Parent 2\",\n subNavItems: [\n {\n name: \"Child 3\"\n },\n {\n name: \"Child 4\"\n }\n ]\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Grandchild 1\"\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Parent 1\",\n subNavItems: [\n {\n name: \"Child 1\",\n subNavItems: [\n {\n name: \"Grandchild 1\",\n },\n {\n name: \"Grandchild 2\",\n }\n ]\n },\n {\n name: \"Child 2\",\n subNavItems: [\n {\n name: \"Grandchild 3\",\n },\n {\n name: \"Grandchild 4\",\n }\n ]\n }\n ]\n },\n {\n name: \"Parent 2\",\n subNavItems: [\n {\n name: \"Child 3\"\n },\n {\n name: \"Child 4\"\n }\n ]\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Grandchild 1\"\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
sections: {
|
|
57
|
-
label: "Sections",
|
|
58
|
-
description: "Use Sections to break up content into different categories. Sections utilize Subtitles.",
|
|
59
|
-
examples: {
|
|
60
|
-
simple: {
|
|
61
|
-
react: code(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"Good Section\",\n navItems: [\n {\n name: \"Parent 1\",\n subNavItems: [\n {\n name: \"Child\",\n }\n ]\n },\n {\n name: \"Parent 2\",\n },\n {\n name: \"Parent 3\",\n subNavItems: [\n {\n name: \"Child 1\",\n subNavItems: [\n {\n name: \"Grandchild 1\",\n }\n ]\n }\n ]\n },\n ],\n },\n {\n sectionTitle: \"Great Section\",\n navItems: [\n {\n name: \"Parent 4\",\n },\n {\n name: \"Parent 5\",\n },\n {\n name: \"Parent 6\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Test Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Grandchild 1\"\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"Good Section\",\n navItems: [\n {\n name: \"Parent 1\",\n subNavItems: [\n {\n name: \"Child\",\n }\n ]\n },\n {\n name: \"Parent 2\",\n },\n {\n name: \"Parent 3\",\n subNavItems: [\n {\n name: \"Child 1\",\n subNavItems: [\n {\n name: \"Grandchild 1\",\n }\n ]\n }\n ]\n },\n ],\n },\n {\n sectionTitle: \"Great Section\",\n navItems: [\n {\n name: \"Parent 4\",\n },\n {\n name: \"Parent 5\",\n },\n {\n name: \"Parent 6\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Test Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Grandchild 1\"\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
tags: {
|
|
66
|
-
label: "Tags",
|
|
67
|
-
description: "Use Tags to indicate a number of additional detail related to the navigation item.",
|
|
68
|
-
examples: {
|
|
69
|
-
simple: {
|
|
70
|
-
react: code(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Navigation Item 1\",\n tag: TagKind.DEFAULT,\n tagContent: \"Cool\",\n },\n {\n name: \"Navigation Item 2\",\n tag: TagKind.DEFAULT,\n tagContent: \"Good\",\n },\n {\n name: \"Navigation Item 3\",\n tag: TagKind.DEFAULT,\n tagContent: \"Fun\",\n },\n {\n name: \"Navigation Item 4\",\n tag: TagKind.DEFAULT,\n tagContent: \"Nice\",\n },\n {\n name: \"Navigation Item 5\",\n tag: TagKind.DEFAULT,\n tagContent: \"Grand\",\n },\n {\n name: \"Navigation Item 6\",\n tag: TagKind.DEFAULT,\n tagContent: \"Great\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Navigation Item 1\"\n />\n </div>\n </div>\n );\n }\n "], ["\n function DemoComponent() {\n function onChange(selection) {\n console.log(selection);\n }\n\n const items = [\n {\n sectionTitle: \"\",\n navItems: [\n {\n name: \"Navigation Item 1\",\n tag: TagKind.DEFAULT,\n tagContent: \"Cool\",\n },\n {\n name: \"Navigation Item 2\",\n tag: TagKind.DEFAULT,\n tagContent: \"Good\",\n },\n {\n name: \"Navigation Item 3\",\n tag: TagKind.DEFAULT,\n tagContent: \"Fun\",\n },\n {\n name: \"Navigation Item 4\",\n tag: TagKind.DEFAULT,\n tagContent: \"Nice\",\n },\n {\n name: \"Navigation Item 5\",\n tag: TagKind.DEFAULT,\n tagContent: \"Grand\",\n },\n {\n name: \"Navigation Item 6\",\n tag: TagKind.DEFAULT,\n tagContent: \"Great\",\n },\n ],\n }\n ];\n\n return (\n <div className=\"sfg-row\">\n <div className=\"sfg-col-4\">\n <SpsSideNav\n title=\"Title\"\n titleIcon={SpsIcon.STATUS_OK}\n navOptions={items}\n onNavChange={onChange}\n activeNavItem=\"Navigation Item 1\"\n />\n </div>\n </div>\n );\n }\n "]))),
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
76
|
-
//# sourceMappingURL=SpsSideNav.examples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSideNav.examples.js","sourceRoot":"","sources":["../../../src/side-nav/SpsSideNav.examples.tsx"],"names":[],"mappings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AE;gBACN,KAAK,EAAE,IAAI,soFAAA,mkFAkEJ,IAAA;aACR;SACF;KACF;IAED,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,WAAW,EACH,yFAAyF;QACjG,QAAQ,EAAE;YACR,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI,6hFAAA,09EAkEJ,IAAA;aACR;SACF;KACF;IAED,IAAI,EAAE;QACJ,KAAK,EAAE,MAAM;QACb,WAAW,EACH,oFAAoF;QAC5F,QAAQ,EAAE;YACR,MAAM,EAAE;gBACN,KAAK,EAAE,IAAI,40EAAA,ywEA0DJ,IAAA;aACR;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
-
if (!m) return o;
|
|
15
|
-
var i = m.call(o), r, ar = [], e;
|
|
16
|
-
try {
|
|
17
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
-
}
|
|
19
|
-
catch (error) { e = { error: error }; }
|
|
20
|
-
finally {
|
|
21
|
-
try {
|
|
22
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
-
}
|
|
24
|
-
finally { if (e) throw e.error; }
|
|
25
|
-
}
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
29
|
-
/* eslint-disable import/no-cycle */
|
|
30
|
-
import * as React from "react";
|
|
31
|
-
import { useRef, useState } from "react";
|
|
32
|
-
import clsx from "clsx";
|
|
33
|
-
import { SpsSideNavBranch } from "./SpsSideNavBranch";
|
|
34
|
-
/**
|
|
35
|
-
* Helper to find if parent navigation contains the active child branch
|
|
36
|
-
* @param nav SideNavItems[] array of navigation branches to be checked
|
|
37
|
-
* @param activeTab string currently active tab
|
|
38
|
-
*/
|
|
39
|
-
export var findParentBranches = function (nav, activeTab) {
|
|
40
|
-
if (nav) {
|
|
41
|
-
return (nav.some(function (navItem) { return navItem.name === activeTab; })
|
|
42
|
-
|| nav.some(function (navItem) { return findParentBranches(navItem.subNavItems, activeTab); }));
|
|
43
|
-
}
|
|
44
|
-
return false;
|
|
45
|
-
};
|
|
46
|
-
export var SpsSideNav = function (_a) {
|
|
47
|
-
var title = _a.title, titleIcon = _a.titleIcon, navOptions = _a.navOptions, onNavChange = _a.onNavChange, activeNavItem = _a.activeNavItem, tabs = _a.tabs, onTabChange = _a.onTabChange, initialActiveTab = _a.initialActiveTab, filterable = _a.filterable, filterInputPlaceholder = _a.filterInputPlaceholder;
|
|
48
|
-
var previousActiveNavItem = useRef(activeNavItem);
|
|
49
|
-
var _b = __read(useState(activeNavItem), 2), activeBranch = _b[0], setActiveBranch = _b[1];
|
|
50
|
-
var _c = __read(useState(initialActiveTab || (tabs && tabs[0])), 2), activeTab = _c[0], setActiveTab = _c[1];
|
|
51
|
-
var _d = __read(useState(""), 2), filterValue = _d[0], setFilterValue = _d[1];
|
|
52
|
-
/**
|
|
53
|
-
* Handler that sets selected branch as active
|
|
54
|
-
* @param branch string navigation branch to be marked as active
|
|
55
|
-
* @param key string | number unique id of navigation item to be marked as active
|
|
56
|
-
*/
|
|
57
|
-
var handleNavAction = function (branch, key) {
|
|
58
|
-
setActiveBranch(branch);
|
|
59
|
-
if (onNavChange) {
|
|
60
|
-
onNavChange(branch, key);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Handler that sets selected tab as active
|
|
65
|
-
* @param tab string navigation branch to be marked as active
|
|
66
|
-
*/
|
|
67
|
-
var handleTabAction = function (tab) {
|
|
68
|
-
setActiveTab(tab);
|
|
69
|
-
if (onTabChange) {
|
|
70
|
-
onTabChange(tab);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Helper to filter top level navigation based on nested child branches
|
|
75
|
-
* @param nav SideNavItems[] array of navigation branches to be checked
|
|
76
|
-
*/
|
|
77
|
-
var filterChildBranches = function (nav) {
|
|
78
|
-
if (nav) {
|
|
79
|
-
return (nav.some(function (navItem) { return navItem.name.toLowerCase().includes(filterValue); })
|
|
80
|
-
|| nav.some(function (navItem) { return filterChildBranches(navItem.subNavItems); }));
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
};
|
|
84
|
-
/**
|
|
85
|
-
* Filtered list of navigation options. If child of top level matches filter value,
|
|
86
|
-
* the top level is kept.
|
|
87
|
-
*/
|
|
88
|
-
var filteredNavOptions = navOptions.map(function (option) { return (__assign(__assign({}, option), { navItems: option.navItems.filter(function (navItem) { return (navItem.name.toLowerCase().includes(filterValue)
|
|
89
|
-
|| filterChildBranches(navItem.subNavItems)); }) })); });
|
|
90
|
-
if (activeNavItem !== previousActiveNavItem.current) {
|
|
91
|
-
setActiveBranch(activeNavItem);
|
|
92
|
-
previousActiveNavItem.current = activeNavItem;
|
|
93
|
-
}
|
|
94
|
-
return (React.createElement("div", { className: "sps-side-nav sps-card" },
|
|
95
|
-
title && (React.createElement("div", { className: "sps-card__header", title: title },
|
|
96
|
-
React.createElement("div", { className: "sps-card__title" },
|
|
97
|
-
titleIcon && (React.createElement("i", { className: "sps-icon sps-icon-" + titleIcon })),
|
|
98
|
-
title))),
|
|
99
|
-
tabs && (React.createElement("nav", { className: "sps-nav sps-nav--tabs" }, tabs.map(function (tab) { return (React.createElement("span", { className: clsx("sps-nav__item", "sps-nav__link", tab === activeTab && "active"), "data-toggle": "tab", role: "tab", tabIndex: 0, key: tab, onClick: function () { return handleTabAction(tab); }, onKeyDown: function (event) {
|
|
100
|
-
if (event.key === "Enter"
|
|
101
|
-
|| event.key === " ") {
|
|
102
|
-
event.stopPropagation();
|
|
103
|
-
event.preventDefault();
|
|
104
|
-
handleTabAction(tab);
|
|
105
|
-
}
|
|
106
|
-
} },
|
|
107
|
-
React.createElement("span", null, tab))); }))),
|
|
108
|
-
React.createElement("div", { className: "sps-card__body" },
|
|
109
|
-
filterable && (React.createElement("section", { className: "sps-side-nav__section" },
|
|
110
|
-
React.createElement("div", { className: "sps-text-input" },
|
|
111
|
-
React.createElement("div", { className: "sps-form-control" },
|
|
112
|
-
React.createElement("i", { className: "sps-text-input__icon sps-icon sps-icon-filter" }),
|
|
113
|
-
React.createElement("input", { type: "text", className: "sps-text-input__input", placeholder: filterInputPlaceholder, onChange: function (event) {
|
|
114
|
-
setFilterValue(event.target.value);
|
|
115
|
-
} }))))),
|
|
116
|
-
filteredNavOptions.map(function (section) {
|
|
117
|
-
var _a;
|
|
118
|
-
return (React.createElement("section", { className: "sps-side-nav__section", key: (_a = section.key) !== null && _a !== void 0 ? _a : section.sectionTitle },
|
|
119
|
-
section.sectionTitle && (React.createElement("div", { className: "sps-side-nav__section-title", style: { fontWeight: 400 } }, section.sectionTitle)),
|
|
120
|
-
section.navItems.map(function (item) {
|
|
121
|
-
var _a;
|
|
122
|
-
return (React.createElement(SpsSideNavBranch, { branch: __assign(__assign({}, item), { expanded: findParentBranches(item.subNavItems, activeNavItem) }), activeBranch: activeBranch, setActiveBranch: function (branchName, key) {
|
|
123
|
-
handleNavAction(branchName, key);
|
|
124
|
-
}, key: (_a = item.key) !== null && _a !== void 0 ? _a : item.name }));
|
|
125
|
-
})));
|
|
126
|
-
}))));
|
|
127
|
-
};
|
|
128
|
-
//# sourceMappingURL=SpsSideNav.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSideNav.js","source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,2BAAG,SAAS,EAAC,+CAA+C,GAAG;wBAC/D,+BACE,IAAI,EAAC,MAAM,EACX,SAAS,EAAC,uBAAuB,EACjC,WAAW,EAAE,sBAAsB,EACnC,QAAQ,EAAE,UAAC,KAAK;gCACd,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;4BACrC,CAAC,GACD,CACE,CACF,CACE,CACX;YACA,kBAAkB,CAAC,GAAG,CAAC,UAAC,OAAuB;;gBAAK,OAAA,CACnD,iCACE,SAAS,EAAC,uBAAuB,EACjC,GAAG,EAAE,MAAA,OAAO,CAAC,GAAG,mCAAI,OAAO,CAAC,YAAY;oBAEvC,OAAO,CAAC,YAAY,IAAI,CACvB,6BACE,SAAS,EAAC,6BAA6B,EACvC,KAAK,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,IAEzB,OAAO,CAAC,YAAY,CACjB,CACP;oBACA,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAC,IAAI;;wBAAK,OAAA,CAC9B,oBAAC,gBAAgB,IACf,MAAM,wBACD,IAAI,KACP,QAAQ,EAAE,kBAAkB,CAC1B,IAAI,CAAC,WAAW,EAChB,aAAa,CACd,KAEH,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,UACf,UAAkB,EAClB,GAAqB;gCAErB,eAAe,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;4BACnC,CAAC,EACD,GAAG,EAAE,MAAA,IAAI,CAAC,GAAG,mCAAI,IAAI,CAAC,IAAI,GAC1B,CACH,CAAA;qBAAA,CAAC,CACM,CACX,CAAA;aAAA,CAAC,CACE,CACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import type { SideNavBranch } from "./SpsSideNav";
|
|
4
|
-
export interface SpsSideNavBranchProps {
|
|
5
|
-
branch: SideNavBranch;
|
|
6
|
-
activeBranch: string;
|
|
7
|
-
setActiveBranch: (activeChildBranchName: string, activeChildBranchKey?: string | number) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const SpsSideNavBranch: React.FC<SpsSideNavBranchProps>;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
-
if (!m) return o;
|
|
15
|
-
var i = m.call(o), r, ar = [], e;
|
|
16
|
-
try {
|
|
17
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
-
}
|
|
19
|
-
catch (error) { e = { error: error }; }
|
|
20
|
-
finally {
|
|
21
|
-
try {
|
|
22
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
-
}
|
|
24
|
-
finally { if (e) throw e.error; }
|
|
25
|
-
}
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
/** TODO: Fix circular deps, update to follow our patterns, then remove eslint override */
|
|
29
|
-
/* eslint-disable import/no-cycle */
|
|
30
|
-
import * as React from "react";
|
|
31
|
-
import clsx from "clsx";
|
|
32
|
-
import { useState } from "react";
|
|
33
|
-
import { findParentBranches } from "./SpsSideNav";
|
|
34
|
-
export var SpsSideNavBranch = function (_a) {
|
|
35
|
-
var branch = _a.branch, setActiveBranch = _a.setActiveBranch, activeBranch = _a.activeBranch;
|
|
36
|
-
var _b = __read(useState(branch.expanded || false), 2), isBranchExpanded = _b[0], setIsBranchExpanded = _b[1];
|
|
37
|
-
return (React.createElement("ul", { className: clsx("sps-side-nav__branch", branch.name === activeBranch && "sps-side-nav__branch--active") },
|
|
38
|
-
React.createElement("li", { className: clsx("sps-side-nav__leaf", branch.name === activeBranch && "sps-side-nav__leaf--active") },
|
|
39
|
-
React.createElement("span", { className: "sps-side-nav__link", onClick: function () {
|
|
40
|
-
setIsBranchExpanded(!isBranchExpanded);
|
|
41
|
-
if (!branch.subNavItems) {
|
|
42
|
-
setActiveBranch(branch.name, branch.key);
|
|
43
|
-
}
|
|
44
|
-
}, onKeyDown: function (event) {
|
|
45
|
-
if (event.key === "Enter" || event.key === " ") {
|
|
46
|
-
event.stopPropagation();
|
|
47
|
-
event.preventDefault();
|
|
48
|
-
setIsBranchExpanded(!isBranchExpanded);
|
|
49
|
-
if (!branch.subNavItems) {
|
|
50
|
-
setActiveBranch(branch.name, branch.key);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, role: "tab", tabIndex: 0, "aria-selected": branch.name === activeBranch },
|
|
54
|
-
branch.subNavItems && (React.createElement("i", { className: clsx("sps-icon sps-side-nav__toggle", isBranchExpanded
|
|
55
|
-
? "sps-icon-chevron-down"
|
|
56
|
-
: "sps-icon-chevron-right") })),
|
|
57
|
-
React.createElement("span", { className: "sps-side-nav__link-title" },
|
|
58
|
-
branch.icon && React.createElement("i", { className: "sps-icon sps-icon-" + branch.icon + " mr-2" }),
|
|
59
|
-
branch.name),
|
|
60
|
-
React.createElement("div", { className: "sps-side-nav__link-tag", style: { marginTop: "-2px" } }, branch.tag && (React.createElement("span", { className: "sps-tag sps-tag--" + branch.tag }, branch.tagContent)))),
|
|
61
|
-
branch.subNavItems
|
|
62
|
-
&& isBranchExpanded
|
|
63
|
-
&& branch.subNavItems.map(function (subNav) {
|
|
64
|
-
var _a;
|
|
65
|
-
return (React.createElement(SpsSideNavBranch, { branch: __assign(__assign({}, subNav), { expanded: findParentBranches(subNav.subNavItems, activeBranch) }), setActiveBranch: setActiveBranch, activeBranch: activeBranch, key: (_a = subNav.key) !== null && _a !== void 0 ? _a : subNav.name }));
|
|
66
|
-
}))));
|
|
67
|
-
};
|
|
68
|
-
//# sourceMappingURL=SpsSideNavBranch.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSideNavBranch.js","sourceRoot":"","sources":["../../../src/side-nav/SpsSideNavBranch.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0FAA0F;AAC1F,oCAAoC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAQlD,MAAM,CAAC,IAAM,gBAAgB,GAAoC,UAAC,EAIjE;QAHC,MAAM,YAAA,EACN,eAAe,qBAAA,EACf,YAAY,kBAAA;IAEN,IAAA,KAAA,OAA0C,QAAQ,CACtD,MAAM,CAAC,QAAQ,IAAI,KAAK,CACzB,IAAA,EAFM,gBAAgB,QAAA,EAAE,mBAAmB,QAE3C,CAAC;IAEF,OAAO,CACL,4BACE,SAAS,EAAE,IAAI,CACb,sBAAsB,EACtB,MAAM,CAAC,IAAI,KAAK,YAAY,IAAI,8BAA8B,CAC/D;QAED,4BACE,SAAS,EAAE,IAAI,CACb,oBAAoB,EACpB,MAAM,CAAC,IAAI,KAAK,YAAY,IAAI,4BAA4B,CAC7D;YAED,8BACE,SAAS,EAAC,oBAAoB,EAC9B,OAAO,EAAE;oBACP,mBAAmB,CAAC,CAAC,gBAAgB,CAAC,CAAC;oBACvC,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE;wBACvB,eAAe,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;qBAC1C;gBACH,CAAC,EACD,SAAS,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EAAE,YAAY,EAC1B,GAAG,EAAE,MAAA,MAAM,CAAC,GAAG,mCAAI,MAAM,CAAC,IAAI,GAC9B,CACH,CAAA;iBAAA,CAAC,CACX,CACF,CACN,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/side-nav/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as PropTypes from "../prop-types";
|
|
2
|
-
declare const propTypes: {
|
|
3
|
-
channelId: PropTypes.Validator<string>;
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
};
|
|
9
|
-
export declare type SpsSlackLinkProps = PropTypes.InferTS<typeof propTypes, HTMLAnchorElement>;
|
|
10
|
-
export declare function SpsSlackLink(props: SpsSlackLinkProps): JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
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 SpsSlackLinkExamples = {
|
|
7
|
-
basic: {
|
|
8
|
-
examples: {
|
|
9
|
-
basic: {
|
|
10
|
-
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={[\"Foo\", \"Bar\", \"Baz\"]}\n activeTab=\"Bar\"\n fullWidth\n style={{ position: \"relative\" }} // display this example in its place instead of at the top\n ><SpsSlackLink channelId=\"CELEGDK4Y\" /></SpsProductBar>\n );\n }\n "], ["\n function DemoComponent() {\n return (\n <SpsProductBar productName=\"My Product\"\n productLogoSrc=\"https://cdn.prod.spsc.io/web/framework/assets/17.08.01/icons/cube/cube.svg\"\n tabs={[\"Foo\", \"Bar\", \"Baz\"]}\n activeTab=\"Bar\"\n fullWidth\n style={{ position: \"relative\" }} // display this example in its place instead of at the top\n ><SpsSlackLink channelId=\"CELEGDK4Y\" /></SpsProductBar>\n );\n }\n "]))),
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
var templateObject_1;
|
|
16
|
-
//# sourceMappingURL=SpsSlackLink.examples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSlackLink.examples.js","sourceRoot":"","sources":["../../../src/slack-link/SpsSlackLink.examples.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,CAAC,IAAM,oBAAoB,GAAoB;IACnD,KAAK,EAAE;QACL,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,0xBAAA,utBAYF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import clsx from "clsx";
|
|
24
|
-
import * as React from "react";
|
|
25
|
-
import { SpsIcon } from "@spscommerce/ds-shared";
|
|
26
|
-
import * as PropTypes from "../prop-types";
|
|
27
|
-
import { I18nContext } from "../i18n";
|
|
28
|
-
var propsDoc = {
|
|
29
|
-
channelId: { type: "string", required: true },
|
|
30
|
-
};
|
|
31
|
-
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { channelId: PropTypes.string.isRequired });
|
|
32
|
-
export function SpsSlackLink(props) {
|
|
33
|
-
var channelId = props.channelId, className = props.className, unsafelyReplaceClassName = props.unsafelyReplaceClassName, rest = __rest(props, ["channelId", "className", "unsafelyReplaceClassName"]);
|
|
34
|
-
var t = React.useContext(I18nContext).t;
|
|
35
|
-
var classes = clsx(unsafelyReplaceClassName || "sps-slack-link", className);
|
|
36
|
-
return (React.createElement("a", __assign({ className: classes, target: "_blank", rel: "noreferrer", href: "https://spscommerce.slack.com/archives/" + channelId }, rest),
|
|
37
|
-
React.createElement("i", { className: "sps-icon sps-icon-" + SpsIcon.CONVERSATION, "aria-hidden": "true" }),
|
|
38
|
-
React.createElement("span", null, t("design-system:slackLink.label"))));
|
|
39
|
-
}
|
|
40
|
-
Object.assign(SpsSlackLink, {
|
|
41
|
-
props: propsDoc,
|
|
42
|
-
propTypes: propTypes,
|
|
43
|
-
displayName: "SpsSlackLink",
|
|
44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/C,CACL,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE;IAC1B,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,cAAc;CAC5B,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/slack-link/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { SortChangeHandler, SortedColumn } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
sort: PropTypes.Requireable<SortedColumn[]>;
|
|
5
|
-
onSortChange: PropTypes.Requireable<SortChangeHandler>;
|
|
6
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
7
|
-
className: PropTypes.Requireable<string>;
|
|
8
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
9
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
10
|
-
};
|
|
11
|
-
export declare type SpsSortingHeaderProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
12
|
-
export declare function SpsSortingHeader({ className, "data-testid": testId, unsafelyReplaceClassName, sort, onSortChange, children, ...rest }: SpsSortingHeaderProps): JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
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 SpsSortingHeaderExamples = {
|
|
7
|
-
basic: {
|
|
8
|
-
label: "Basic Sorting Header",
|
|
9
|
-
examples: {
|
|
10
|
-
basic: {
|
|
11
|
-
react: code(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n function DemoComponent() {\n const [sort, setSort] = React.useState([{ key: 'id', direction: SortDirection.DESCENDING }]);\n \n const items = React.useMemo(() => [\n {\n id: '9712323',\n type: '850',\n timestamp: 'July 21, 2021 @ 4:40 PM'\n },\n {\n id: '8712378',\n type: '810',\n timestamp: 'May 24, 2021 @ 4:39 PM'\n },\n {\n id: '8912389',\n type: '850',\n timestamp: 'May 23, 2021 @ 4:38 PM'\n }\n ].sort((a, b) => {\n if (!sort.length) {\n return 0;\n }\n\n const [{ key, direction }] = sort;\n if (a[key] < b[key]) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a[key] > b[key]) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n } else {\n return 0;\n }\n }), [sort]);\n\n return (\n <>\n <SpsSortingHeader sort={sort} onSortChange={setSort} className=\"mb-2\">\n <SpsSortingHeaderCell sortKey='id'>ID</SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey='type'>Type</SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey='timestamp' widthPx={150}>Timestamp</SpsSortingHeaderCell>\n </SpsSortingHeader>\n\n <pre>{JSON.stringify(items, undefined, 2)}</pre>\n </>\n )\n }\n "], ["\n function DemoComponent() {\n const [sort, setSort] = React.useState([{ key: 'id', direction: SortDirection.DESCENDING }]);\n \n const items = React.useMemo(() => [\n {\n id: '9712323',\n type: '850',\n timestamp: 'July 21, 2021 @ 4:40 PM'\n },\n {\n id: '8712378',\n type: '810',\n timestamp: 'May 24, 2021 @ 4:39 PM'\n },\n {\n id: '8912389',\n type: '850',\n timestamp: 'May 23, 2021 @ 4:38 PM'\n }\n ].sort((a, b) => {\n if (!sort.length) {\n return 0;\n }\n\n const [{ key, direction }] = sort;\n if (a[key] < b[key]) {\n return direction === SortDirection.ASCENDING ? -1 : 1;\n } else if (a[key] > b[key]) {\n return direction === SortDirection.ASCENDING ? 1 : -1;\n } else {\n return 0;\n }\n }), [sort]);\n\n return (\n <>\n <SpsSortingHeader sort={sort} onSortChange={setSort} className=\"mb-2\">\n <SpsSortingHeaderCell sortKey='id'>ID</SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey='type'>Type</SpsSortingHeaderCell>\n <SpsSortingHeaderCell sortKey='timestamp' widthPx={150}>Timestamp</SpsSortingHeaderCell>\n </SpsSortingHeader>\n\n <pre>{JSON.stringify(items, undefined, 2)}</pre>\n </>\n )\n }\n "]))),
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
var templateObject_1;
|
|
17
|
-
//# sourceMappingURL=SpsSortingHeader.examples.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSortingHeader.examples.js","sourceRoot":"","sources":["../../../src/sorting-header/SpsSortingHeader.examples.ts"],"names":[],"mappings":";;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG1C,MAAM,CAAC,IAAM,wBAAwB,GAAoB;IACvD,KAAK,EAAE;QACL,KAAK,EAAE,sBAAsB;QAC7B,QAAQ,EAAE;YACR,KAAK,EAAE;gBACL,KAAK,EAAE,IAAI,2pEAAA,wlEA+CF,IAAA;aACV;SACF;KACF;CACF,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
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
|
-
import { SpsSortingHeaderCell } from "./SpsSortingHeaderCell";
|
|
27
|
-
var propsDoc = {
|
|
28
|
-
sort: "SortedColumn[]",
|
|
29
|
-
onSortChange: "SortChangeHandler",
|
|
30
|
-
};
|
|
31
|
-
var propTypes = __assign(__assign({}, PropTypes.spsGlobalPropTypes), { sort: PropTypes.arrayOf(PropTypes.impl()), onSortChange: PropTypes.fun() });
|
|
32
|
-
export function SpsSortingHeader(_a) {
|
|
33
|
-
var className = _a.className, testId = _a["data-testid"], unsafelyReplaceClassName = _a.unsafelyReplaceClassName, sort = _a.sort, onSortChange = _a.onSortChange, children = _a.children, rest = __rest(_a, ["className", "data-testid", "unsafelyReplaceClassName", "sort", "onSortChange", "children"]);
|
|
34
|
-
var classes = clsx(unsafelyReplaceClassName || "sps-sorting-header", className);
|
|
35
|
-
var newProps = {
|
|
36
|
-
sort: sort,
|
|
37
|
-
onSortChange: onSortChange,
|
|
38
|
-
};
|
|
39
|
-
return (React.createElement("div", __assign({ className: classes }, rest), React.Children.map(children, function (child) {
|
|
40
|
-
if (child && React.isValidElement(child) && child.type === SpsSortingHeaderCell) {
|
|
41
|
-
return React.cloneElement(child, newProps);
|
|
42
|
-
}
|
|
43
|
-
return child;
|
|
44
|
-
})));
|
|
45
|
-
}
|
|
46
|
-
Object.assign(SpsSortingHeader, {
|
|
47
|
-
props: propsDoc,
|
|
48
|
-
propTypes: propTypes,
|
|
49
|
-
displayName: "SpsSortingHeader",
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=SpsSortingHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SpsSortingHeader.js","sourceRoot":"","sources":["../../../src/sorting-header/SpsSortingHeader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,SAAS,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,IAAM,QAAQ,GAAG;IACf,IAAI,EAAE,gBAAgB;IACtB,YAAY,EAAE,mBAAmB;CAClC,CAAC;AAEF,IAAM,SAAS,yBACV,SAAS,CAAC,kBAAkB,KAC/B,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAgB,CAAC,EACvD,YAAY,EAAE,SAAS,CAAC,GAAG,EAAqB,GACjD,CAAC;AAIF,MAAM,UAAU,gBAAgB,CAAC,EAQT;IAPtB,IAAA,SAAS,eAAA,EACM,MAAM,oBAAA,EACrB,wBAAwB,8BAAA,EACxB,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,QAAQ,cAAA,EACL,IAAI,cAPwB,4FAQhC,CADQ;IAEP,IAAM,OAAO,GAAG,IAAI,CAAC,wBAAwB,IAAI,oBAAoB,EAAE,SAAS,CAAC,CAAC;IAElF,IAAM,QAAQ,GAAG;QACf,IAAI,MAAA;QACJ,YAAY,cAAA;KACb,CAAC;IAEF,OAAO,CACL,sCAAK,SAAS,EAAE,OAAO,IAAM,IAAI,GAC9B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAC,KAAK;QAClC,IAAI,KAAK,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,oBAAoB,EAAE;YAC/E,OAAO,KAAK,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;SAC5C;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE;IAC9B,KAAK,EAAE,QAAQ;IACf,SAAS,WAAA;IACT,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { SortChangeHandler, SortedColumn } from "@spscommerce/ds-shared";
|
|
2
|
-
import * as PropTypes from "../prop-types";
|
|
3
|
-
declare const propTypes: {
|
|
4
|
-
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
5
|
-
className: PropTypes.Requireable<string>;
|
|
6
|
-
"data-testid": PropTypes.Requireable<string>;
|
|
7
|
-
unsafelyReplaceClassName: PropTypes.Requireable<string>;
|
|
8
|
-
sortKey: PropTypes.Requireable<string>;
|
|
9
|
-
sortDisabled: PropTypes.Requireable<boolean>;
|
|
10
|
-
sort: PropTypes.Requireable<SortedColumn[]>;
|
|
11
|
-
onSortChange: PropTypes.Requireable<SortChangeHandler>;
|
|
12
|
-
widthPx: PropTypes.Requireable<number>;
|
|
13
|
-
widthRem: PropTypes.Requireable<number>;
|
|
14
|
-
};
|
|
15
|
-
export declare type SpsSortingHeaderCellProps = PropTypes.InferTS<typeof propTypes, HTMLDivElement>;
|
|
16
|
-
export declare function SpsSortingHeaderCell({ className, "data-testid": testId, unsafelyReplaceClassName, sortKey, sort, sortDisabled, onSortChange, onClick, children, widthPx, widthRem, style, ...rest }: SpsSortingHeaderCellProps): JSX.Element;
|
|
17
|
-
export {};
|