scorer-ui-kit 2.2.0 → 2.2.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.
|
@@ -9,8 +9,10 @@ interface OwnProps {
|
|
|
9
9
|
activePage?: number;
|
|
10
10
|
buttonText?: string;
|
|
11
11
|
itemsText?: string;
|
|
12
|
+
itemsDefaultValue?: number;
|
|
12
13
|
selectWidth?: string;
|
|
13
14
|
selectDisabled?: boolean;
|
|
15
|
+
selectId?: string;
|
|
14
16
|
itemsOptions: IItemsOption[];
|
|
15
17
|
onPageChange: (page: number) => void;
|
|
16
18
|
onItemsChange: (items: number) => void;
|
package/dist/index.js
CHANGED
|
@@ -12596,6 +12596,9 @@ var Pagination = function Pagination(props) {
|
|
|
12596
12596
|
buttonText = _props$buttonText === void 0 ? 'GO' : _props$buttonText,
|
|
12597
12597
|
_props$itemsText = props.itemsText,
|
|
12598
12598
|
itemsText = _props$itemsText === void 0 ? 'Items Per Page' : _props$itemsText,
|
|
12599
|
+
itemsDefaultValue = props.itemsDefaultValue,
|
|
12600
|
+
_props$selectId = props.selectId,
|
|
12601
|
+
selectId = _props$selectId === void 0 ? 'paginationPages' : _props$selectId,
|
|
12599
12602
|
_props$selectWidth = props.selectWidth,
|
|
12600
12603
|
selectWidth = _props$selectWidth === void 0 ? '60px' : _props$selectWidth,
|
|
12601
12604
|
_props$selectDisabled = props.selectDisabled,
|
|
@@ -12743,11 +12746,11 @@ var Pagination = function Pagination(props) {
|
|
|
12743
12746
|
}, React__default.createElement(SelectField, {
|
|
12744
12747
|
disabled: selectDisabled,
|
|
12745
12748
|
label: {
|
|
12746
|
-
htmlFor:
|
|
12749
|
+
htmlFor: selectId,
|
|
12747
12750
|
text: itemsText,
|
|
12748
12751
|
isSameRow: true
|
|
12749
12752
|
},
|
|
12750
|
-
defaultValue: 1,
|
|
12753
|
+
defaultValue: itemsDefaultValue ? itemsDefaultValue : itemsOptions[0].value || 1,
|
|
12751
12754
|
changeCallback: onItemsSelectChange
|
|
12752
12755
|
}, React__default.createElement(React.Fragment, null, itemsOptions.map(function (_ref11, index) {
|
|
12753
12756
|
var value = _ref11.value,
|