@elastic/eui 65.0.0 → 66.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eui_theme_dark.css +28 -197
- package/dist/eui_theme_dark.min.css +1 -1
- package/dist/eui_theme_light.css +28 -197
- package/dist/eui_theme_light.min.css +1 -1
- package/es/components/basic_table/basic_table.js +13 -2
- package/es/components/basic_table/in_memory_table.js +13 -2
- package/es/components/card/card.styles.js +2 -2
- package/es/components/combo_box/combo_box.js +2 -15
- package/es/components/datagrid/body/data_grid_body.js +17 -6
- package/es/components/datagrid/body/data_grid_cell.js +29 -12
- package/es/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/es/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/es/components/datagrid/data_grid.js +17 -6
- package/es/components/datagrid/utils/in_memory.js +17 -6
- package/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/es/components/description_list/description_list.js +11 -3
- package/es/components/description_list/description_list_context.js +2 -1
- package/es/components/description_list/description_list_description.js +3 -1
- package/es/components/description_list/description_list_description.styles.js +5 -2
- package/es/components/description_list/description_list_title.js +4 -3
- package/es/components/description_list/description_list_title.styles.js +7 -3
- package/es/components/description_list/description_list_types.js +2 -1
- package/es/components/form/field_search/field_search.js +6 -16
- package/es/components/form/range/range_input.js +1 -1
- package/es/components/header/header_section/header_section_item.js +4 -3
- package/es/components/icon/icon.js +3 -10
- package/es/components/list_group/list_group.js +7 -1
- package/es/components/list_group/list_group_item.js +10 -3
- package/es/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/es/components/modal/modal.js +1 -3
- package/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/es/components/table/table_row_cell.js +4 -6
- package/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/es/global_styling/functions/logicals.json +56 -0
- package/es/global_styling/mixins/_typography.js +1 -1
- package/es/services/theme/hooks.js +11 -16
- package/eui.d.ts +29 -10
- package/i18ntokens.json +18 -18
- package/lib/components/basic_table/basic_table.js +13 -2
- package/lib/components/basic_table/in_memory_table.js +13 -2
- package/lib/components/card/card.styles.js +2 -2
- package/lib/components/combo_box/combo_box.js +2 -15
- package/lib/components/datagrid/body/data_grid_body.js +17 -6
- package/lib/components/datagrid/body/data_grid_cell.js +29 -12
- package/lib/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/lib/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/lib/components/datagrid/data_grid.js +17 -6
- package/lib/components/datagrid/utils/in_memory.js +17 -6
- package/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/lib/components/description_list/description_list.js +11 -3
- package/lib/components/description_list/description_list_context.js +2 -1
- package/lib/components/description_list/description_list_description.js +3 -1
- package/lib/components/description_list/description_list_description.styles.js +5 -2
- package/lib/components/description_list/description_list_title.js +4 -3
- package/lib/components/description_list/description_list_title.styles.js +7 -3
- package/lib/components/description_list/description_list_types.js +4 -2
- package/lib/components/form/field_search/field_search.js +6 -16
- package/lib/components/form/range/range_input.js +1 -1
- package/lib/components/header/header_section/header_section_item.js +4 -3
- package/lib/components/icon/icon.js +3 -10
- package/lib/components/list_group/list_group.js +7 -1
- package/lib/components/list_group/list_group_item.js +10 -3
- package/lib/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/lib/components/modal/modal.js +1 -3
- package/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/lib/components/table/table_row_cell.js +4 -6
- package/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/lib/global_styling/functions/logicals.json +56 -0
- package/lib/global_styling/mixins/_typography.js +1 -1
- package/lib/services/theme/hooks.js +10 -15
- package/optimize/es/components/card/card.styles.js +2 -2
- package/optimize/es/components/combo_box/combo_box.js +2 -15
- package/optimize/es/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/es/components/description_list/description_list.js +5 -2
- package/optimize/es/components/description_list/description_list_context.js +2 -1
- package/optimize/es/components/description_list/description_list_description.js +3 -1
- package/optimize/es/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/es/components/description_list/description_list_title.js +4 -3
- package/optimize/es/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/es/components/description_list/description_list_types.js +2 -1
- package/optimize/es/components/form/field_search/field_search.js +6 -16
- package/optimize/es/components/form/range/range_input.js +1 -1
- package/optimize/es/components/header/header_section/header_section_item.js +4 -3
- package/optimize/es/components/icon/icon.js +3 -10
- package/optimize/es/components/list_group/list_group_item.js +3 -2
- package/optimize/es/components/modal/modal.js +1 -3
- package/optimize/es/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/es/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/es/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/es/global_styling/functions/logicals.json +56 -0
- package/optimize/es/global_styling/mixins/_typography.js +1 -1
- package/optimize/es/services/theme/hooks.js +11 -16
- package/optimize/lib/components/card/card.styles.js +2 -2
- package/optimize/lib/components/combo_box/combo_box.js +2 -15
- package/optimize/lib/components/date_picker/react-datepicker/original.package.json +124 -0
- package/optimize/lib/components/description_list/description_list.js +5 -2
- package/optimize/lib/components/description_list/description_list_context.js +2 -1
- package/optimize/lib/components/description_list/description_list_description.js +3 -1
- package/optimize/lib/components/description_list/description_list_description.styles.js +5 -2
- package/optimize/lib/components/description_list/description_list_title.js +4 -3
- package/optimize/lib/components/description_list/description_list_title.styles.js +7 -3
- package/optimize/lib/components/description_list/description_list_types.js +4 -2
- package/optimize/lib/components/form/field_search/field_search.js +6 -16
- package/optimize/lib/components/form/range/range_input.js +1 -1
- package/optimize/lib/components/header/header_section/header_section_item.js +4 -3
- package/optimize/lib/components/icon/icon.js +3 -10
- package/optimize/lib/components/list_group/list_group_item.js +3 -2
- package/optimize/lib/components/modal/modal.js +1 -3
- package/optimize/lib/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/optimize/lib/components/page/page_sidebar/page_sidebar.js +5 -1
- package/optimize/lib/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/optimize/lib/global_styling/functions/logicals.json +56 -0
- package/optimize/lib/global_styling/mixins/_typography.js +1 -1
- package/optimize/lib/services/theme/hooks.js +10 -15
- package/package.json +1 -1
- package/src/components/badge/_badge.scss +0 -5
- package/src/components/datagrid/_data_grid_data_row.scss +7 -0
- package/src/components/datagrid/body/header/_data_grid_header_row.scss +1 -1
- package/src/components/filter_group/_filter_group.scss +3 -1
- package/src/components/flex/_flex_group.scss +2 -11
- package/src/components/flex/_flex_item.scss +0 -6
- package/src/components/form/field_search/_field_search.scss +0 -5
- package/src/components/form/form_control_layout/_form_control_layout_delimited.scss +0 -3
- package/src/components/form/form_row/_form_row.scss +0 -1
- package/src/components/header/header_section/_header_section_item.scss +1 -1
- package/src/components/list_group/_list_group_item.scss +3 -25
- package/src/components/modal/_modal.scss +5 -20
- package/src/components/page/page_content/_page_content.scss +0 -1
- package/src/components/table/_responsive.scss +0 -1
- package/src/components/table/_table.scss +0 -5
- package/src/global_styling/mixins/_form.scss +0 -4
- package/src/global_styling/mixins/_helpers.scss +0 -8
- package/src/global_styling/mixins/_typography.scss +1 -5
- package/src/global_styling/utility/_index.scss +0 -1
- package/test-env/components/basic_table/basic_table.js +13 -2
- package/test-env/components/basic_table/in_memory_table.js +13 -2
- package/test-env/components/card/card.styles.js +2 -2
- package/test-env/components/combo_box/combo_box.js +2 -15
- package/test-env/components/datagrid/body/data_grid_body.js +17 -6
- package/test-env/components/datagrid/body/data_grid_cell.js +29 -12
- package/test-env/components/datagrid/body/header/data_grid_header_cell.js +17 -6
- package/test-env/components/datagrid/body/header/data_grid_header_row.js +17 -6
- package/test-env/components/datagrid/data_grid.js +17 -6
- package/test-env/components/datagrid/utils/in_memory.js +17 -6
- package/test-env/components/date_picker/react-datepicker/original.package.json +124 -0
- package/test-env/components/description_list/description_list.js +11 -3
- package/test-env/components/description_list/description_list_context.js +2 -1
- package/test-env/components/description_list/description_list_description.js +3 -1
- package/test-env/components/description_list/description_list_description.styles.js +5 -2
- package/test-env/components/description_list/description_list_title.js +4 -3
- package/test-env/components/description_list/description_list_title.styles.js +7 -3
- package/test-env/components/description_list/description_list_types.js +4 -2
- package/test-env/components/form/field_search/field_search.js +6 -16
- package/test-env/components/form/range/range_input.js +1 -1
- package/test-env/components/header/header_section/header_section_item.js +4 -3
- package/test-env/components/list_group/list_group.js +7 -1
- package/test-env/components/list_group/list_group_item.js +10 -3
- package/test-env/components/list_group/pinnable_list_group/pinnable_list_group.js +13 -1
- package/test-env/components/modal/modal.js +1 -3
- package/test-env/components/observer/mutation_observer/mutation_observer.js +1 -1
- package/test-env/components/page/page_sidebar/page_sidebar.js +5 -1
- package/test-env/components/table/table_row_cell.js +4 -6
- package/test-env/components/tabs/tabbed_content/tabbed_content.js +2 -19
- package/test-env/global_styling/functions/logicals.json +56 -0
- package/test-env/global_styling/mixins/_typography.js +1 -1
- package/test-env/services/theme/hooks.js +10 -15
- package/src/global_styling/utility/_utility.scss +0 -15
|
@@ -657,6 +657,11 @@ EuiInMemoryTable.propTypes = {
|
|
|
657
657
|
*/
|
|
658
658
|
sortable: _propTypes.default.oneOfType([_propTypes.default.bool.isRequired, _propTypes.default.func.isRequired]),
|
|
659
659
|
isExpander: _propTypes.default.bool,
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
663
|
+
* long text correctly.
|
|
664
|
+
*/
|
|
660
665
|
textOnly: _propTypes.default.bool,
|
|
661
666
|
|
|
662
667
|
/**
|
|
@@ -930,11 +935,17 @@ EuiInMemoryTable.propTypes = {
|
|
|
930
935
|
tableLayout: _propTypes.default.oneOf(["fixed", "auto"]),
|
|
931
936
|
|
|
932
937
|
/**
|
|
933
|
-
* Applied to table cells
|
|
938
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
939
|
+
*
|
|
940
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
941
|
+
* long text correctly.
|
|
934
942
|
*/
|
|
935
943
|
|
|
936
944
|
/**
|
|
937
|
-
* Applied to table cells
|
|
945
|
+
* Applied to table cells. Any cell using a render function will set this to be false.
|
|
946
|
+
*
|
|
947
|
+
* Creates a text wrapper around cell content that helps word break or truncate
|
|
948
|
+
* long text correctly.
|
|
938
949
|
*/
|
|
939
950
|
textOnly: _propTypes.default.bool,
|
|
940
951
|
message: _propTypes.default.node,
|
|
@@ -87,14 +87,14 @@ var euiCardStyles = function euiCardStyles(euiThemeContext, paddingSize, color)
|
|
|
87
87
|
euiCard__description: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('margin-top', halfSpacing), ";;label:euiCard__description;"),
|
|
88
88
|
euiCard__footer: /*#__PURE__*/(0, _react.css)("flex-grow:0;", (0, _global_styling.logicalCSS)('width', '100%'), ";", (0, _global_styling.logicalCSS)('margin-top', spacing), ";;label:euiCard__footer;"),
|
|
89
89
|
top: {
|
|
90
|
-
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('
|
|
90
|
+
euiCard__top: /*#__PURE__*/(0, _react.css)("flex-grow:0;font-size:0;position:relative;", (0, _global_styling.logicalCSS)('margin-bottom', spacing), ";;label:euiCard__top;"),
|
|
91
91
|
layout: {
|
|
92
92
|
vertical: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', '100%'), ";;label:vertical;"),
|
|
93
93
|
horizontal: /*#__PURE__*/(0, _react.css)((0, _global_styling.logicalCSS)('width', 'auto'), ";;label:horizontal;")
|
|
94
94
|
},
|
|
95
95
|
disabled: _ref2
|
|
96
96
|
},
|
|
97
|
-
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", _global_styling.
|
|
97
|
+
euiCard__image: /*#__PURE__*/(0, _react.css)("position:relative;overflow:hidden;", (0, _global_styling.logicalCSS)('width', "calc(100% + (".concat(paddingAmount, " * 2))")), ";", (0, _global_styling.logicalCSS)('left', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('top', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('margin-bottom', "-".concat(paddingAmount)), ";", (0, _global_styling.logicalCSS)('border-top-left-radius', "calc(".concat(euiTheme.border.radius.medium, " - ").concat(euiTheme.border.width.thin, ")")), " ", _global_styling.logicals['border-top-right-radius'], ":calc(", euiTheme.border.radius.medium, " - ", euiTheme.border.width.thin, ");", color === 'transparent' ? "border-radius: ".concat(euiTheme.border.radius.medium, ";") : undefined, " img{", (0, _global_styling.logicalCSS)('width', '100%'), ";};label:euiCard__image;"),
|
|
98
98
|
icon: {
|
|
99
99
|
euiCard__icon: /*#__PURE__*/(0, _react.css)(";label:euiCard__icon;"),
|
|
100
100
|
withImage: /*#__PURE__*/(0, _react.css)("position:absolute;", (0, _global_styling.logicalCSS)('top', '50%'), ";", (0, _global_styling.logicalCSS)('left', '50%'), ";transform:translate(-50%, calc(-50% + -", paddingAmount, "))!important;;label:withImage;"),
|
|
@@ -95,17 +95,9 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
95
95
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "rootId", (0, _services.htmlIdGenerator)());
|
|
96
96
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefInstance", null);
|
|
97
97
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "comboBoxRefCallback", function (ref) {
|
|
98
|
-
// IE11 doesn't support the `relatedTarget` event property for blur events
|
|
99
|
-
// but does add it for focusout. React doesn't support `onFocusOut` so here we are.
|
|
100
|
-
if (_this.comboBoxRefInstance) {
|
|
101
|
-
_this.comboBoxRefInstance.removeEventListener('focusout', _this.onContainerBlur);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
98
|
_this.comboBoxRefInstance = ref;
|
|
105
99
|
|
|
106
100
|
if (_this.comboBoxRefInstance) {
|
|
107
|
-
_this.comboBoxRefInstance.addEventListener('focusout', _this.onContainerBlur);
|
|
108
|
-
|
|
109
101
|
var comboBoxBounds = _this.comboBoxRefInstance.getBoundingClientRect();
|
|
110
102
|
|
|
111
103
|
_this.setState({
|
|
@@ -390,13 +382,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
390
382
|
});
|
|
391
383
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "onContainerBlur", function (event) {
|
|
392
384
|
// close the options list, unless the user clicked on an option
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* FireFox returns `relatedTarget` as `null` for security reasons, but provides a proprietary `explicitOriginalTarget`.
|
|
396
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Event/explicitOriginalTarget
|
|
397
|
-
*/
|
|
398
|
-
var focusEvent = event;
|
|
399
|
-
var relatedTarget = focusEvent.relatedTarget || focusEvent.explicitOriginalTarget;
|
|
385
|
+
var relatedTarget = event.relatedTarget;
|
|
400
386
|
|
|
401
387
|
var focusedInOptionsList = relatedTarget && _this.listRefInstance && _this.listRefInstance.contains(relatedTarget);
|
|
402
388
|
|
|
@@ -827,6 +813,7 @@ var EuiComboBox = /*#__PURE__*/function (_Component) {
|
|
|
827
813
|
className: classes,
|
|
828
814
|
"data-test-subj": dataTestSubj,
|
|
829
815
|
onKeyDown: this.onKeyDown,
|
|
816
|
+
onBlur: this.onContainerBlur,
|
|
830
817
|
ref: this.comboBoxRefCallback
|
|
831
818
|
}), (0, _react2.jsx)(_combo_box_input.EuiComboBoxInput, {
|
|
832
819
|
autoSizeInputRef: this.autoSizeInputRefCallback,
|
|
@@ -700,7 +700,13 @@ EuiDataGridBody.propTypes = {
|
|
|
700
700
|
* Pass-through ref reference specifically for targeting
|
|
701
701
|
* instances where the item content is rendered as a `button`
|
|
702
702
|
*/
|
|
703
|
-
buttonRef: _propTypes.default.any
|
|
703
|
+
buttonRef: _propTypes.default.any,
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
707
|
+
* By default the text will be same as the label text.
|
|
708
|
+
*/
|
|
709
|
+
toolTipText: _propTypes.default.string
|
|
704
710
|
}).isRequired]),
|
|
705
711
|
|
|
706
712
|
/**
|
|
@@ -744,7 +750,8 @@ EuiDataGridBody.propTypes = {
|
|
|
744
750
|
}),
|
|
745
751
|
onClick: _propTypes.default.func,
|
|
746
752
|
wrapText: _propTypes.default.bool,
|
|
747
|
-
buttonRef: _propTypes.default.any
|
|
753
|
+
buttonRef: _propTypes.default.any,
|
|
754
|
+
toolTipText: _propTypes.default.string
|
|
748
755
|
}).isRequired]),
|
|
749
756
|
|
|
750
757
|
/**
|
|
@@ -788,7 +795,8 @@ EuiDataGridBody.propTypes = {
|
|
|
788
795
|
}),
|
|
789
796
|
onClick: _propTypes.default.func,
|
|
790
797
|
wrapText: _propTypes.default.bool,
|
|
791
|
-
buttonRef: _propTypes.default.any
|
|
798
|
+
buttonRef: _propTypes.default.any,
|
|
799
|
+
toolTipText: _propTypes.default.string
|
|
792
800
|
}).isRequired]),
|
|
793
801
|
|
|
794
802
|
/**
|
|
@@ -832,7 +840,8 @@ EuiDataGridBody.propTypes = {
|
|
|
832
840
|
}),
|
|
833
841
|
onClick: _propTypes.default.func,
|
|
834
842
|
wrapText: _propTypes.default.bool,
|
|
835
|
-
buttonRef: _propTypes.default.any
|
|
843
|
+
buttonRef: _propTypes.default.any,
|
|
844
|
+
toolTipText: _propTypes.default.string
|
|
836
845
|
}).isRequired]),
|
|
837
846
|
|
|
838
847
|
/**
|
|
@@ -876,7 +885,8 @@ EuiDataGridBody.propTypes = {
|
|
|
876
885
|
}),
|
|
877
886
|
onClick: _propTypes.default.func,
|
|
878
887
|
wrapText: _propTypes.default.bool,
|
|
879
|
-
buttonRef: _propTypes.default.any
|
|
888
|
+
buttonRef: _propTypes.default.any,
|
|
889
|
+
toolTipText: _propTypes.default.string
|
|
880
890
|
}).isRequired]),
|
|
881
891
|
|
|
882
892
|
/**
|
|
@@ -920,7 +930,8 @@ EuiDataGridBody.propTypes = {
|
|
|
920
930
|
}),
|
|
921
931
|
onClick: _propTypes.default.func,
|
|
922
932
|
wrapText: _propTypes.default.bool,
|
|
923
|
-
buttonRef: _propTypes.default.any
|
|
933
|
+
buttonRef: _propTypes.default.any,
|
|
934
|
+
toolTipText: _propTypes.default.string
|
|
924
935
|
}).isRequired)
|
|
925
936
|
}).isRequired]),
|
|
926
937
|
|
|
@@ -300,7 +300,13 @@ EuiDataGridCellContent.propTypes = {
|
|
|
300
300
|
* Pass-through ref reference specifically for targeting
|
|
301
301
|
* instances where the item content is rendered as a `button`
|
|
302
302
|
*/
|
|
303
|
-
buttonRef: _propTypes.default.any
|
|
303
|
+
buttonRef: _propTypes.default.any,
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
307
|
+
* By default the text will be same as the label text.
|
|
308
|
+
*/
|
|
309
|
+
toolTipText: _propTypes.default.string
|
|
304
310
|
}).isRequired]),
|
|
305
311
|
|
|
306
312
|
/**
|
|
@@ -344,7 +350,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
344
350
|
}),
|
|
345
351
|
onClick: _propTypes.default.func,
|
|
346
352
|
wrapText: _propTypes.default.bool,
|
|
347
|
-
buttonRef: _propTypes.default.any
|
|
353
|
+
buttonRef: _propTypes.default.any,
|
|
354
|
+
toolTipText: _propTypes.default.string
|
|
348
355
|
}).isRequired]),
|
|
349
356
|
|
|
350
357
|
/**
|
|
@@ -388,7 +395,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
388
395
|
}),
|
|
389
396
|
onClick: _propTypes.default.func,
|
|
390
397
|
wrapText: _propTypes.default.bool,
|
|
391
|
-
buttonRef: _propTypes.default.any
|
|
398
|
+
buttonRef: _propTypes.default.any,
|
|
399
|
+
toolTipText: _propTypes.default.string
|
|
392
400
|
}).isRequired]),
|
|
393
401
|
|
|
394
402
|
/**
|
|
@@ -432,7 +440,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
432
440
|
}),
|
|
433
441
|
onClick: _propTypes.default.func,
|
|
434
442
|
wrapText: _propTypes.default.bool,
|
|
435
|
-
buttonRef: _propTypes.default.any
|
|
443
|
+
buttonRef: _propTypes.default.any,
|
|
444
|
+
toolTipText: _propTypes.default.string
|
|
436
445
|
}).isRequired]),
|
|
437
446
|
|
|
438
447
|
/**
|
|
@@ -476,7 +485,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
476
485
|
}),
|
|
477
486
|
onClick: _propTypes.default.func,
|
|
478
487
|
wrapText: _propTypes.default.bool,
|
|
479
|
-
buttonRef: _propTypes.default.any
|
|
488
|
+
buttonRef: _propTypes.default.any,
|
|
489
|
+
toolTipText: _propTypes.default.string
|
|
480
490
|
}).isRequired]),
|
|
481
491
|
|
|
482
492
|
/**
|
|
@@ -520,7 +530,8 @@ EuiDataGridCellContent.propTypes = {
|
|
|
520
530
|
}),
|
|
521
531
|
onClick: _propTypes.default.func,
|
|
522
532
|
wrapText: _propTypes.default.bool,
|
|
523
|
-
buttonRef: _propTypes.default.any
|
|
533
|
+
buttonRef: _propTypes.default.any,
|
|
534
|
+
toolTipText: _propTypes.default.string
|
|
524
535
|
}).isRequired)
|
|
525
536
|
}).isRequired]),
|
|
526
537
|
|
|
@@ -1315,7 +1326,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1315
1326
|
}),
|
|
1316
1327
|
onClick: _propTypes.default.func,
|
|
1317
1328
|
wrapText: _propTypes.default.bool,
|
|
1318
|
-
buttonRef: _propTypes.default.any
|
|
1329
|
+
buttonRef: _propTypes.default.any,
|
|
1330
|
+
toolTipText: _propTypes.default.string
|
|
1319
1331
|
}).isRequired]),
|
|
1320
1332
|
|
|
1321
1333
|
/**
|
|
@@ -1359,7 +1371,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1359
1371
|
}),
|
|
1360
1372
|
onClick: _propTypes.default.func,
|
|
1361
1373
|
wrapText: _propTypes.default.bool,
|
|
1362
|
-
buttonRef: _propTypes.default.any
|
|
1374
|
+
buttonRef: _propTypes.default.any,
|
|
1375
|
+
toolTipText: _propTypes.default.string
|
|
1363
1376
|
}).isRequired]),
|
|
1364
1377
|
|
|
1365
1378
|
/**
|
|
@@ -1403,7 +1416,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1403
1416
|
}),
|
|
1404
1417
|
onClick: _propTypes.default.func,
|
|
1405
1418
|
wrapText: _propTypes.default.bool,
|
|
1406
|
-
buttonRef: _propTypes.default.any
|
|
1419
|
+
buttonRef: _propTypes.default.any,
|
|
1420
|
+
toolTipText: _propTypes.default.string
|
|
1407
1421
|
}).isRequired]),
|
|
1408
1422
|
|
|
1409
1423
|
/**
|
|
@@ -1447,7 +1461,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1447
1461
|
}),
|
|
1448
1462
|
onClick: _propTypes.default.func,
|
|
1449
1463
|
wrapText: _propTypes.default.bool,
|
|
1450
|
-
buttonRef: _propTypes.default.any
|
|
1464
|
+
buttonRef: _propTypes.default.any,
|
|
1465
|
+
toolTipText: _propTypes.default.string
|
|
1451
1466
|
}).isRequired]),
|
|
1452
1467
|
|
|
1453
1468
|
/**
|
|
@@ -1491,7 +1506,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1491
1506
|
}),
|
|
1492
1507
|
onClick: _propTypes.default.func,
|
|
1493
1508
|
wrapText: _propTypes.default.bool,
|
|
1494
|
-
buttonRef: _propTypes.default.any
|
|
1509
|
+
buttonRef: _propTypes.default.any,
|
|
1510
|
+
toolTipText: _propTypes.default.string
|
|
1495
1511
|
}).isRequired]),
|
|
1496
1512
|
|
|
1497
1513
|
/**
|
|
@@ -1535,7 +1551,8 @@ EuiDataGridCell.propTypes = {
|
|
|
1535
1551
|
}),
|
|
1536
1552
|
onClick: _propTypes.default.func,
|
|
1537
1553
|
wrapText: _propTypes.default.bool,
|
|
1538
|
-
buttonRef: _propTypes.default.any
|
|
1554
|
+
buttonRef: _propTypes.default.any,
|
|
1555
|
+
toolTipText: _propTypes.default.string
|
|
1539
1556
|
}).isRequired)
|
|
1540
1557
|
}).isRequired]),
|
|
1541
1558
|
|
|
@@ -376,7 +376,13 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
376
376
|
* Pass-through ref reference specifically for targeting
|
|
377
377
|
* instances where the item content is rendered as a `button`
|
|
378
378
|
*/
|
|
379
|
-
buttonRef: _propTypes.default.any
|
|
379
|
+
buttonRef: _propTypes.default.any,
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
383
|
+
* By default the text will be same as the label text.
|
|
384
|
+
*/
|
|
385
|
+
toolTipText: _propTypes.default.string
|
|
380
386
|
}).isRequired]),
|
|
381
387
|
|
|
382
388
|
/**
|
|
@@ -420,7 +426,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
420
426
|
}),
|
|
421
427
|
onClick: _propTypes.default.func,
|
|
422
428
|
wrapText: _propTypes.default.bool,
|
|
423
|
-
buttonRef: _propTypes.default.any
|
|
429
|
+
buttonRef: _propTypes.default.any,
|
|
430
|
+
toolTipText: _propTypes.default.string
|
|
424
431
|
}).isRequired]),
|
|
425
432
|
|
|
426
433
|
/**
|
|
@@ -464,7 +471,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
464
471
|
}),
|
|
465
472
|
onClick: _propTypes.default.func,
|
|
466
473
|
wrapText: _propTypes.default.bool,
|
|
467
|
-
buttonRef: _propTypes.default.any
|
|
474
|
+
buttonRef: _propTypes.default.any,
|
|
475
|
+
toolTipText: _propTypes.default.string
|
|
468
476
|
}).isRequired]),
|
|
469
477
|
|
|
470
478
|
/**
|
|
@@ -508,7 +516,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
508
516
|
}),
|
|
509
517
|
onClick: _propTypes.default.func,
|
|
510
518
|
wrapText: _propTypes.default.bool,
|
|
511
|
-
buttonRef: _propTypes.default.any
|
|
519
|
+
buttonRef: _propTypes.default.any,
|
|
520
|
+
toolTipText: _propTypes.default.string
|
|
512
521
|
}).isRequired]),
|
|
513
522
|
|
|
514
523
|
/**
|
|
@@ -552,7 +561,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
552
561
|
}),
|
|
553
562
|
onClick: _propTypes.default.func,
|
|
554
563
|
wrapText: _propTypes.default.bool,
|
|
555
|
-
buttonRef: _propTypes.default.any
|
|
564
|
+
buttonRef: _propTypes.default.any,
|
|
565
|
+
toolTipText: _propTypes.default.string
|
|
556
566
|
}).isRequired]),
|
|
557
567
|
|
|
558
568
|
/**
|
|
@@ -596,7 +606,8 @@ EuiDataGridHeaderCell.propTypes = {
|
|
|
596
606
|
}),
|
|
597
607
|
onClick: _propTypes.default.func,
|
|
598
608
|
wrapText: _propTypes.default.bool,
|
|
599
|
-
buttonRef: _propTypes.default.any
|
|
609
|
+
buttonRef: _propTypes.default.any,
|
|
610
|
+
toolTipText: _propTypes.default.string
|
|
600
611
|
}).isRequired)
|
|
601
612
|
}).isRequired]),
|
|
602
613
|
|
|
@@ -323,7 +323,13 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
323
323
|
* Pass-through ref reference specifically for targeting
|
|
324
324
|
* instances where the item content is rendered as a `button`
|
|
325
325
|
*/
|
|
326
|
-
buttonRef: _propTypes.default.any
|
|
326
|
+
buttonRef: _propTypes.default.any,
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
330
|
+
* By default the text will be same as the label text.
|
|
331
|
+
*/
|
|
332
|
+
toolTipText: _propTypes.default.string
|
|
327
333
|
}).isRequired]),
|
|
328
334
|
|
|
329
335
|
/**
|
|
@@ -367,7 +373,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
367
373
|
}),
|
|
368
374
|
onClick: _propTypes.default.func,
|
|
369
375
|
wrapText: _propTypes.default.bool,
|
|
370
|
-
buttonRef: _propTypes.default.any
|
|
376
|
+
buttonRef: _propTypes.default.any,
|
|
377
|
+
toolTipText: _propTypes.default.string
|
|
371
378
|
}).isRequired]),
|
|
372
379
|
|
|
373
380
|
/**
|
|
@@ -411,7 +418,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
411
418
|
}),
|
|
412
419
|
onClick: _propTypes.default.func,
|
|
413
420
|
wrapText: _propTypes.default.bool,
|
|
414
|
-
buttonRef: _propTypes.default.any
|
|
421
|
+
buttonRef: _propTypes.default.any,
|
|
422
|
+
toolTipText: _propTypes.default.string
|
|
415
423
|
}).isRequired]),
|
|
416
424
|
|
|
417
425
|
/**
|
|
@@ -455,7 +463,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
455
463
|
}),
|
|
456
464
|
onClick: _propTypes.default.func,
|
|
457
465
|
wrapText: _propTypes.default.bool,
|
|
458
|
-
buttonRef: _propTypes.default.any
|
|
466
|
+
buttonRef: _propTypes.default.any,
|
|
467
|
+
toolTipText: _propTypes.default.string
|
|
459
468
|
}).isRequired]),
|
|
460
469
|
|
|
461
470
|
/**
|
|
@@ -499,7 +508,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
499
508
|
}),
|
|
500
509
|
onClick: _propTypes.default.func,
|
|
501
510
|
wrapText: _propTypes.default.bool,
|
|
502
|
-
buttonRef: _propTypes.default.any
|
|
511
|
+
buttonRef: _propTypes.default.any,
|
|
512
|
+
toolTipText: _propTypes.default.string
|
|
503
513
|
}).isRequired]),
|
|
504
514
|
|
|
505
515
|
/**
|
|
@@ -543,7 +553,8 @@ EuiDataGridHeaderRow.propTypes = {
|
|
|
543
553
|
}),
|
|
544
554
|
onClick: _propTypes.default.func,
|
|
545
555
|
wrapText: _propTypes.default.bool,
|
|
546
|
-
buttonRef: _propTypes.default.any
|
|
556
|
+
buttonRef: _propTypes.default.any,
|
|
557
|
+
toolTipText: _propTypes.default.string
|
|
547
558
|
}).isRequired)
|
|
548
559
|
}).isRequired]),
|
|
549
560
|
|
|
@@ -613,7 +613,13 @@ EuiDataGrid.propTypes = {
|
|
|
613
613
|
* Pass-through ref reference specifically for targeting
|
|
614
614
|
* instances where the item content is rendered as a `button`
|
|
615
615
|
*/
|
|
616
|
-
buttonRef: _propTypes.default.any
|
|
616
|
+
buttonRef: _propTypes.default.any,
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
620
|
+
* By default the text will be same as the label text.
|
|
621
|
+
*/
|
|
622
|
+
toolTipText: _propTypes.default.string
|
|
617
623
|
}).isRequired]),
|
|
618
624
|
|
|
619
625
|
/**
|
|
@@ -657,7 +663,8 @@ EuiDataGrid.propTypes = {
|
|
|
657
663
|
}),
|
|
658
664
|
onClick: _propTypes.default.func,
|
|
659
665
|
wrapText: _propTypes.default.bool,
|
|
660
|
-
buttonRef: _propTypes.default.any
|
|
666
|
+
buttonRef: _propTypes.default.any,
|
|
667
|
+
toolTipText: _propTypes.default.string
|
|
661
668
|
}).isRequired]),
|
|
662
669
|
|
|
663
670
|
/**
|
|
@@ -701,7 +708,8 @@ EuiDataGrid.propTypes = {
|
|
|
701
708
|
}),
|
|
702
709
|
onClick: _propTypes.default.func,
|
|
703
710
|
wrapText: _propTypes.default.bool,
|
|
704
|
-
buttonRef: _propTypes.default.any
|
|
711
|
+
buttonRef: _propTypes.default.any,
|
|
712
|
+
toolTipText: _propTypes.default.string
|
|
705
713
|
}).isRequired]),
|
|
706
714
|
|
|
707
715
|
/**
|
|
@@ -745,7 +753,8 @@ EuiDataGrid.propTypes = {
|
|
|
745
753
|
}),
|
|
746
754
|
onClick: _propTypes.default.func,
|
|
747
755
|
wrapText: _propTypes.default.bool,
|
|
748
|
-
buttonRef: _propTypes.default.any
|
|
756
|
+
buttonRef: _propTypes.default.any,
|
|
757
|
+
toolTipText: _propTypes.default.string
|
|
749
758
|
}).isRequired]),
|
|
750
759
|
|
|
751
760
|
/**
|
|
@@ -789,7 +798,8 @@ EuiDataGrid.propTypes = {
|
|
|
789
798
|
}),
|
|
790
799
|
onClick: _propTypes.default.func,
|
|
791
800
|
wrapText: _propTypes.default.bool,
|
|
792
|
-
buttonRef: _propTypes.default.any
|
|
801
|
+
buttonRef: _propTypes.default.any,
|
|
802
|
+
toolTipText: _propTypes.default.string
|
|
793
803
|
}).isRequired]),
|
|
794
804
|
|
|
795
805
|
/**
|
|
@@ -833,7 +843,8 @@ EuiDataGrid.propTypes = {
|
|
|
833
843
|
}),
|
|
834
844
|
onClick: _propTypes.default.func,
|
|
835
845
|
wrapText: _propTypes.default.bool,
|
|
836
|
-
buttonRef: _propTypes.default.any
|
|
846
|
+
buttonRef: _propTypes.default.any,
|
|
847
|
+
toolTipText: _propTypes.default.string
|
|
837
848
|
}).isRequired)
|
|
838
849
|
}).isRequired]),
|
|
839
850
|
|
|
@@ -416,7 +416,13 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
416
416
|
* Pass-through ref reference specifically for targeting
|
|
417
417
|
* instances where the item content is rendered as a `button`
|
|
418
418
|
*/
|
|
419
|
-
buttonRef: _propTypes.default.any
|
|
419
|
+
buttonRef: _propTypes.default.any,
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Text to be displayed in the tooltip when `showToolTip` is true.
|
|
423
|
+
* By default the text will be same as the label text.
|
|
424
|
+
*/
|
|
425
|
+
toolTipText: _propTypes.default.string
|
|
420
426
|
}).isRequired]),
|
|
421
427
|
|
|
422
428
|
/**
|
|
@@ -460,7 +466,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
460
466
|
}),
|
|
461
467
|
onClick: _propTypes.default.func,
|
|
462
468
|
wrapText: _propTypes.default.bool,
|
|
463
|
-
buttonRef: _propTypes.default.any
|
|
469
|
+
buttonRef: _propTypes.default.any,
|
|
470
|
+
toolTipText: _propTypes.default.string
|
|
464
471
|
}).isRequired]),
|
|
465
472
|
|
|
466
473
|
/**
|
|
@@ -504,7 +511,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
504
511
|
}),
|
|
505
512
|
onClick: _propTypes.default.func,
|
|
506
513
|
wrapText: _propTypes.default.bool,
|
|
507
|
-
buttonRef: _propTypes.default.any
|
|
514
|
+
buttonRef: _propTypes.default.any,
|
|
515
|
+
toolTipText: _propTypes.default.string
|
|
508
516
|
}).isRequired]),
|
|
509
517
|
|
|
510
518
|
/**
|
|
@@ -548,7 +556,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
548
556
|
}),
|
|
549
557
|
onClick: _propTypes.default.func,
|
|
550
558
|
wrapText: _propTypes.default.bool,
|
|
551
|
-
buttonRef: _propTypes.default.any
|
|
559
|
+
buttonRef: _propTypes.default.any,
|
|
560
|
+
toolTipText: _propTypes.default.string
|
|
552
561
|
}).isRequired]),
|
|
553
562
|
|
|
554
563
|
/**
|
|
@@ -592,7 +601,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
592
601
|
}),
|
|
593
602
|
onClick: _propTypes.default.func,
|
|
594
603
|
wrapText: _propTypes.default.bool,
|
|
595
|
-
buttonRef: _propTypes.default.any
|
|
604
|
+
buttonRef: _propTypes.default.any,
|
|
605
|
+
toolTipText: _propTypes.default.string
|
|
596
606
|
}).isRequired]),
|
|
597
607
|
|
|
598
608
|
/**
|
|
@@ -636,7 +646,8 @@ EuiDataGridInMemoryRenderer.propTypes = {
|
|
|
636
646
|
}),
|
|
637
647
|
onClick: _propTypes.default.func,
|
|
638
648
|
wrapText: _propTypes.default.bool,
|
|
639
|
-
buttonRef: _propTypes.default.any
|
|
649
|
+
buttonRef: _propTypes.default.any,
|
|
650
|
+
toolTipText: _propTypes.default.string
|
|
640
651
|
}).isRequired)
|
|
641
652
|
}).isRequired]),
|
|
642
653
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "HackerOne",
|
|
3
|
+
"name": "@elastic/react-datepicker",
|
|
4
|
+
"description": "Forked from Hacker0x01/react-datepicker for accessibility - simple and reusable datepicker component for React",
|
|
5
|
+
"private": true,
|
|
6
|
+
"version": "2.0.0",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/Hacker0x01/react-datepicker",
|
|
9
|
+
"main": "lib",
|
|
10
|
+
"files": [
|
|
11
|
+
"*.md",
|
|
12
|
+
"dist",
|
|
13
|
+
"datepicker-lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src/stylesheets"
|
|
16
|
+
],
|
|
17
|
+
"resolutions": {
|
|
18
|
+
"**/diff": "^3.5.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"babel-core": "^6.26.0",
|
|
22
|
+
"babel-eslint": "^8.0.2",
|
|
23
|
+
"babel-loader": "^6.2.10",
|
|
24
|
+
"babel-plugin-add-react-displayname": "^0.0.4",
|
|
25
|
+
"babel-plugin-external-helpers": "^6.22.0",
|
|
26
|
+
"babel-plugin-react-transform": "^3.0.0",
|
|
27
|
+
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
28
|
+
"babel-plugin-transform-react-remove-prop-types": "^0.4.10",
|
|
29
|
+
"babel-polyfill": "^6.26.0",
|
|
30
|
+
"babel-preset-airbnb": "^2.4.0",
|
|
31
|
+
"babel-preset-env": "^1.6.1",
|
|
32
|
+
"babel-preset-react": "^6.24.1",
|
|
33
|
+
"babel-preset-stage-0": "^6.24.1",
|
|
34
|
+
"chai": "^3.5.0",
|
|
35
|
+
"cross-env": "^5.1.1",
|
|
36
|
+
"css-loader": "^1.0.0",
|
|
37
|
+
"enzyme": "^3.10.0",
|
|
38
|
+
"enzyme-adapter-react-16": "^1.14.0",
|
|
39
|
+
"eslint": "^4.18.2",
|
|
40
|
+
"eslint-plugin-import": "^2.8.0",
|
|
41
|
+
"eslint-plugin-node": "^5.2.1",
|
|
42
|
+
"eslint-plugin-promise": "^3.6.0",
|
|
43
|
+
"eslint-plugin-react": "^7.4.0",
|
|
44
|
+
"express": "^4.16.2",
|
|
45
|
+
"extract-text-webpack-plugin": "^1.0.1",
|
|
46
|
+
"flow-bin": "^0.68.0",
|
|
47
|
+
"highlight.js": "^9.12.0",
|
|
48
|
+
"husky": "^0.14.3",
|
|
49
|
+
"isparta-loader": "^2.0.0",
|
|
50
|
+
"karma": "^1.7.1",
|
|
51
|
+
"karma-chai": "^0.1.0",
|
|
52
|
+
"karma-coverage": "^1.1.1",
|
|
53
|
+
"karma-firefox-launcher": "^1.0.1",
|
|
54
|
+
"karma-mocha": "^1.3.0",
|
|
55
|
+
"karma-sinon": "^1.0.5",
|
|
56
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
57
|
+
"karma-webpack": "^2.0.5",
|
|
58
|
+
"lint-staged": "^6.0.0",
|
|
59
|
+
"lodash": "^4.17.13",
|
|
60
|
+
"mocha": "^4.0.1",
|
|
61
|
+
"moment": "^2.20.1",
|
|
62
|
+
"node-sass": "^4.13.1",
|
|
63
|
+
"npm-run-all": "^4.1.2",
|
|
64
|
+
"prettier": "^1.9.2",
|
|
65
|
+
"react": "^16.2.0",
|
|
66
|
+
"react-docgen": "^2.20.0",
|
|
67
|
+
"react-dom": "^16.2.0",
|
|
68
|
+
"react-test-renderer": "^16.8.6",
|
|
69
|
+
"react-transform-hmr": "^1.0.4",
|
|
70
|
+
"rimraf": "^2.6.2",
|
|
71
|
+
"rollup": "^0.62.0",
|
|
72
|
+
"rollup-plugin-babel": "^3.0.2",
|
|
73
|
+
"rollup-plugin-commonjs": "^8.2.6",
|
|
74
|
+
"rollup-plugin-node-resolve": "^3.0.0",
|
|
75
|
+
"rollup-plugin-uglify": "^2.0.1",
|
|
76
|
+
"sass-lint": "^1.12.1",
|
|
77
|
+
"sass-loader": "^4.1.1",
|
|
78
|
+
"sinon": "^4.1.2",
|
|
79
|
+
"style-loader": "^0.19.0",
|
|
80
|
+
"webpack": "^1.13.0",
|
|
81
|
+
"webpack-dev-middleware": "^1.12.0",
|
|
82
|
+
"webpack-dev-server": "^3.1.14",
|
|
83
|
+
"webpack-hot-middleware": "^2.20.0"
|
|
84
|
+
},
|
|
85
|
+
"peerDependencies": {
|
|
86
|
+
"moment": "^2.20.0",
|
|
87
|
+
"react": "^16.0.0",
|
|
88
|
+
"react-dom": "^16.0.0"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"classnames": "^2.2.5",
|
|
92
|
+
"focus-trap-react": "^4.0.0",
|
|
93
|
+
"json-loader": "^0.5.7",
|
|
94
|
+
"prop-types": "^15.6.0",
|
|
95
|
+
"react-onclickoutside": "^6.7.1",
|
|
96
|
+
"react-popper": "^1.0.2"
|
|
97
|
+
},
|
|
98
|
+
"scripts": {
|
|
99
|
+
"eslint": "eslint {src,test,docs-site/src}/**/*.{js,jsx} *.js",
|
|
100
|
+
"flow": "flow",
|
|
101
|
+
"precommit": "lint-staged",
|
|
102
|
+
"sass-lint": "sass-lint --config .sass-lint.yml 'src/stylesheets/*.scss, docs-site/src/*.scss' -i 'docs-site/src/higlight.scss, docs-site/src/reset.scss'",
|
|
103
|
+
"lint": "run-p eslint flow sass-lint",
|
|
104
|
+
"start": "cross-env MODULES=false node server.js",
|
|
105
|
+
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
|
|
106
|
+
"prepublish": "test $(npm -v | tr . '\\n' | head -n 1) -ge '4' || exit 1",
|
|
107
|
+
"prepare": "npm run build",
|
|
108
|
+
"prebuild": "rimraf es lib dist",
|
|
109
|
+
"build": "cross-env NODE_ENV=production run-p build:** && run-p css:**",
|
|
110
|
+
"build-dev": "cross-env NODE_ENV=development run-p build:** && run-p css:**",
|
|
111
|
+
"css:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker.scss > lib/react-datepicker.min.css",
|
|
112
|
+
"css:modules:prod": "mkdir -p lib && node-sass --output-style compressed src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.min.css",
|
|
113
|
+
"css:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker.scss > lib/react-datepicker.css",
|
|
114
|
+
"css:modules:dev": "mkdir -p lib && node-sass --output-style expanded src/stylesheets/datepicker-cssmodules.scss > lib/react-datepicker-cssmodules.css",
|
|
115
|
+
"build:es": "cross-env BABEL_ENV=cjs rollup -c -i src/index.jsx -o ../react-datepicker.js",
|
|
116
|
+
"build:docs": "cross-env MODULES=false webpack --config webpack.docs.config.js"
|
|
117
|
+
},
|
|
118
|
+
"lint-staged": {
|
|
119
|
+
"*.{js,jsx,json,css,scss,md}": [
|
|
120
|
+
"prettier --write",
|
|
121
|
+
"git add"
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|