@hipay/hipay-material-ui 1.0.0-beta.6 → 1.0.0-beta.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/HiAlertModal/HiAlertModal.js +247 -0
  2. package/HiAlertModal/index.js +16 -0
  3. package/HiBreadcrumb/HiBreadcrumb.js +143 -0
  4. package/HiBreadcrumb/HiStep.js +123 -0
  5. package/HiBreadcrumb/HiStepConnector.js +142 -0
  6. package/HiBreadcrumb/HiStepIcon.js +134 -0
  7. package/HiBreadcrumb/HiStepLabel.js +182 -0
  8. package/HiBreadcrumb/HiStepper.js +125 -0
  9. package/HiBreadcrumb/index.js +16 -0
  10. package/HiDatePicker/HiDateRangeSelector.js +1 -1
  11. package/HiExpansionPanel/HiExpansionPanel.js +231 -0
  12. package/HiExpansionPanel/index.js +16 -0
  13. package/HiForm/HiFormControl.js +19 -24
  14. package/HiForm/HiSearchField.js +1 -1
  15. package/HiPins/HiPins.js +0 -1
  16. package/HiSelect/HiSelect.js +50 -31
  17. package/HiSelectableList/HiSelectableListItem.js +54 -16
  18. package/HiTable/BodyCells/CellCountry.js +1 -1
  19. package/HiTable/BodyCells/CellLayout.js +5 -1
  20. package/HiTable/BodyCells/CellStatus.js +5 -1
  21. package/HiTable/BodyCells/CellText.js +2 -1
  22. package/HiTable/ColumnFilter.js +5 -1
  23. package/HiTable/HiTable.js +15 -8
  24. package/HiTable/HiTableBody.js +13 -3
  25. package/HiTable/OrderColumns.js +6 -2
  26. package/es/HiAlertModal/HiAlertModal.js +189 -0
  27. package/es/HiAlertModal/index.js +1 -0
  28. package/es/HiBreadcrumb/HiBreadcrumb.js +73 -0
  29. package/es/HiBreadcrumb/HiStep.js +93 -0
  30. package/es/HiBreadcrumb/HiStepConnector.js +83 -0
  31. package/es/HiBreadcrumb/HiStepIcon.js +81 -0
  32. package/es/HiBreadcrumb/HiStepLabel.js +154 -0
  33. package/es/HiBreadcrumb/HiStepper.js +62 -0
  34. package/es/HiBreadcrumb/index.js +1 -0
  35. package/es/HiDatePicker/HiDateRangeSelector.js +1 -1
  36. package/es/HiExpansionPanel/HiExpansionPanel.js +170 -0
  37. package/es/HiExpansionPanel/index.js +1 -0
  38. package/es/HiForm/HiFormControl.js +15 -12
  39. package/es/HiForm/HiSearchField.js +1 -1
  40. package/es/HiPins/HiPins.js +0 -1
  41. package/es/HiSelect/HiSelect.js +49 -31
  42. package/es/HiSelectableList/HiSelectableListItem.js +49 -16
  43. package/es/HiTable/BodyCells/CellCountry.js +1 -1
  44. package/es/HiTable/BodyCells/CellLayout.js +5 -1
  45. package/es/HiTable/BodyCells/CellStatus.js +5 -1
  46. package/es/HiTable/BodyCells/CellText.js +2 -1
  47. package/es/HiTable/ColumnFilter.js +5 -1
  48. package/es/HiTable/HiTable.js +15 -8
  49. package/es/HiTable/HiTableBody.js +13 -3
  50. package/es/HiTable/OrderColumns.js +6 -2
  51. package/es/styles/createHiMuiTheme.js +4 -0
  52. package/index.es.js +1 -1
  53. package/index.js +1 -1
  54. package/package.json +1 -1
  55. package/styles/createHiMuiTheme.js +4 -0
  56. package/umd/hipay-material-ui.development.js +923 -834
  57. package/umd/hipay-material-ui.production.min.js +4 -4
@@ -581,7 +581,8 @@ class HiTable extends React.Component {
581
581
  translations,
582
582
  view,
583
583
  groupBy,
584
- lookupColumns
584
+ lookupColumns,
585
+ loading
585
586
  } = this.props;
586
587
 
587
588
  const { dateUpdate, isScrollToBottom, groupByIds } = this.state;
@@ -652,7 +653,8 @@ class HiTable extends React.Component {
652
653
  groupBy: groupBy,
653
654
  onClickNext: this.handleNextStickyRow,
654
655
  groupByIds: groupByIds,
655
- lookupColumns: lookupColumns
656
+ lookupColumns: lookupColumns,
657
+ loading: loading
656
658
  }),
657
659
  infiniteScroll && React.createElement(HiTableFooterScroll, {
658
660
  tabId: tabId,
@@ -717,7 +719,8 @@ HiTable.defaultProps = {
717
719
  }
718
720
  },
719
721
  view: 'l',
720
- lookupColumns: []
722
+ lookupColumns: [],
723
+ loading: false
721
724
  };
722
725
  HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
723
726
  /**
@@ -748,6 +751,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
748
751
  * Active le filtre sur les colonnes filtrables
749
752
  */
750
753
  filterable: PropTypes.bool,
754
+ /**
755
+ * Id de la colonne par laquelle sont regroupé les éléments
756
+ */
757
+ groupBy: PropTypes.string,
751
758
  /**
752
759
  * Ajoute le loader et le requestNextDatas en fin de tableau (si infiniteScroll activé)
753
760
  */
@@ -760,6 +767,10 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
760
767
  * Ajoute l'infinite scroll
761
768
  */
762
769
  infiniteScroll: PropTypes.bool,
770
+ /**
771
+ * État du tableau en cours de chargement des données
772
+ */
773
+ loading: PropTypes.bool,
763
774
  /**
764
775
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
765
776
  */
@@ -867,10 +878,6 @@ HiTable.propTypes = process.env.NODE_ENV !== "production" ? {
867
878
  * Taille du tableau (L/M/S),
868
879
  * définit l'espace entre les cellules et leurs tailles par default
869
880
  */
870
- view: PropTypes.oneOf(['l', 'm', 's']),
871
- /**
872
- * Id de la colonne par laquelle sont regroupé les éléments
873
- */
874
- groupBy: PropTypes.string
881
+ view: PropTypes.oneOf(['l', 'm', 's'])
875
882
  } : {};
876
883
  export default withStyles(styles, { withTheme: true, name: 'HmuiHiTable' })(HiTable);
@@ -191,7 +191,8 @@ class HiTableBody extends React.Component {
191
191
  numberLocale,
192
192
  groupByIds,
193
193
  sortedColumnId,
194
- lookupColumns
194
+ lookupColumns,
195
+ loading
195
196
  } = this.props;
196
197
 
197
198
  const { openedParentRowId, openedDetailsRowIdList } = this.state;
@@ -330,7 +331,11 @@ class HiTableBody extends React.Component {
330
331
  {
331
332
  id: `${tabId}-body`,
332
333
  className: classes.tbody,
333
- style: { height },
334
+ style: _extends({
335
+ height
336
+ }, loading && {
337
+ opacity: 0.6
338
+ }),
334
339
  onScroll: onScroll
335
340
  },
336
341
  tableRows.map(tableRow => {
@@ -349,7 +354,8 @@ HiTableBody.defaultProps = {
349
354
  dense: false,
350
355
  height: 450,
351
356
  sticky: true,
352
- view: 'l'
357
+ view: 'l',
358
+ loading: false
353
359
  };
354
360
  HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
355
361
  /**
@@ -381,6 +387,10 @@ HiTableBody.propTypes = process.env.NODE_ENV !== "production" ? {
381
387
  * Hauteur du tableau (px)
382
388
  */
383
389
  height: PropTypes.number,
390
+ /**
391
+ * État du tableau en cours de chargement des données
392
+ */
393
+ loading: PropTypes.bool,
384
394
  /**
385
395
  * Identifiant de la ou des colonnes sur la/lesquelles il y a une 'lookup' search
386
396
  */
@@ -63,7 +63,8 @@ export const styles = theme => ({
63
63
  controlLabelRoot: {
64
64
  marginLeft: 6,
65
65
  marginBottom: 8,
66
- fontSize: 15
66
+ fontSize: 15,
67
+ width: 160
67
68
  },
68
69
  switchLabelRoot: {
69
70
  marginLeft: 15,
@@ -72,7 +73,10 @@ export const styles = theme => ({
72
73
  columnLabel: {
73
74
  position: 'relative',
74
75
  top: 5,
75
- left: 5
76
+ left: 5,
77
+ overflow: 'hidden',
78
+ textOverflow: 'ellipsis',
79
+ whiteSpace: 'nowrap'
76
80
  },
77
81
  label: {
78
82
  fontWeight: 'inherit'
@@ -238,6 +238,10 @@ const typography = {
238
238
  body4: {
239
239
  fontSize: 12,
240
240
  fontFamily
241
+ },
242
+ body5: {
243
+ fontSize: 11,
244
+ fontFamily
241
245
  }
242
246
  };
243
247
 
package/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Material-UI v1.0.0-beta.5
1
+ /** @license Material-UI v1.0.0-beta.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Material-UI v1.0.0-beta.5
1
+ /** @license Material-UI v1.0.0-beta.7
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hipay/hipay-material-ui",
3
3
  "private": false,
4
4
  "author": "HiPay PSYCHE Team",
5
- "version": "1.0.0-beta.6",
5
+ "version": "1.0.0-beta.8",
6
6
  "description": "HiPay Material-UI Style Guide - React components that implement Google's Material Design from Material-UI.",
7
7
  "main": "./index.js",
8
8
  "repository": {
@@ -266,6 +266,10 @@ var typography = {
266
266
  body4: {
267
267
  fontSize: 12,
268
268
  fontFamily: fontFamily
269
+ },
270
+ body5: {
271
+ fontSize: 11,
272
+ fontFamily: fontFamily
269
273
  }
270
274
  };
271
275