@carbon/ibm-products 1.35.0 → 1.35.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. package/css/index-full-carbon.css +257 -237
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +2 -2
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css.map +1 -1
  6. package/css/index-without-carbon-released-only.min.css.map +1 -1
  7. package/css/index-without-carbon.css +257 -237
  8. package/css/index-without-carbon.css.map +1 -1
  9. package/css/index-without-carbon.min.css +2 -2
  10. package/css/index-without-carbon.min.css.map +1 -1
  11. package/css/index.css +257 -237
  12. package/css/index.css.map +1 -1
  13. package/css/index.min.css +2 -2
  14. package/css/index.min.css.map +1 -1
  15. package/es/components/CreateTearsheet/CreateTearsheet.js +7 -1
  16. package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -2
  17. package/es/components/Datagrid/Datagrid/DatagridRow.js +3 -3
  18. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +4 -2
  19. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  20. package/es/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +4 -3
  21. package/es/components/Datagrid/useRowExpander.js +13 -1
  22. package/es/components/InlineEdit/InlineEdit.js +22 -385
  23. package/es/components/InlineEditV1/InlineEditV1.js +406 -0
  24. package/es/components/InlineEditV1/index.js +8 -0
  25. package/es/components/InlineEditV2/InlineEditV2.js +48 -21
  26. package/es/components/InlineEditV2/index.js +7 -0
  27. package/es/components/PageHeader/PageHeader.js +3 -3
  28. package/es/components/index.js +1 -1
  29. package/es/global/js/hooks/useResetCreateComponent.js +6 -2
  30. package/es/global/js/package-settings.js +1 -0
  31. package/es/global/js/utils/getNumberOfHiddenSteps.js +19 -0
  32. package/lib/components/CreateTearsheet/CreateTearsheet.js +7 -1
  33. package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -2
  34. package/lib/components/Datagrid/Datagrid/DatagridRow.js +3 -3
  35. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +4 -2
  36. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeDropdown.js +1 -1
  37. package/lib/components/Datagrid/Datagrid/addons/RowSize/RowSizeRadioGroup.js +4 -3
  38. package/lib/components/Datagrid/useColumnOrder.js +2 -1
  39. package/lib/components/Datagrid/useRowExpander.js +13 -1
  40. package/lib/components/InlineEdit/InlineEdit.js +22 -379
  41. package/lib/components/InlineEditV1/InlineEditV1.js +403 -0
  42. package/lib/components/InlineEditV1/index.js +12 -0
  43. package/lib/components/InlineEditV2/InlineEditV2.js +38 -20
  44. package/lib/components/PageHeader/PageHeader.js +3 -3
  45. package/lib/components/index.js +1 -1
  46. package/lib/global/js/hooks/useResetCreateComponent.js +6 -2
  47. package/lib/global/js/package-settings.js +1 -0
  48. package/lib/global/js/utils/getNumberOfHiddenSteps.js +26 -0
  49. package/package.json +10 -10
  50. package/scss/components/Datagrid/styles/_useExpandedRow.scss +18 -0
  51. package/scss/components/{InlineEdit → InlineEditV1}/_index.scss +1 -1
  52. package/scss/components/{InlineEdit/_inline-edit.scss → InlineEditV1/_inline-edit-v1.scss} +0 -0
  53. package/scss/components/{InlineEdit → InlineEditV1}/_storybook-styles.scss +0 -0
  54. package/scss/components/InlineEditV2/_index.scss +1 -1
  55. package/scss/components/InlineEditV2/_inline-edit-v2.scss +5 -1
  56. package/scss/components/InlineEditV2/_storybook-styles.scss +6 -0
  57. package/scss/components/_index-released-only.scss +1 -1
  58. package/scss/components/_index.scss +2 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "1.35.0",
4
+ "version": "1.35.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -52,26 +52,26 @@
52
52
  },
53
53
  "devDependencies": {
54
54
  "@babel/cli": "^7.19.3",
55
- "@babel/core": "^7.19.3",
56
- "babel-preset-ibm-cloud-cognitive": "^0.14.22",
55
+ "@babel/core": "^7.19.6",
56
+ "babel-preset-ibm-cloud-cognitive": "^0.14.23",
57
57
  "chalk": "^4.1.2",
58
58
  "change-case": "^4.1.2",
59
59
  "copyfiles": "^2.4.1",
60
60
  "cross-env": "^7.0.3",
61
61
  "fs-extra": "^10.1.0",
62
62
  "glob": "^8.0.3",
63
- "jest": "^29.2.0",
64
- "jest-config-ibm-cloud-cognitive": "^0.24.8",
65
- "jest-environment-jsdom": "^29.2.0",
63
+ "jest": "^29.2.2",
64
+ "jest-config-ibm-cloud-cognitive": "^0.24.9",
65
+ "jest-environment-jsdom": "^29.2.2",
66
66
  "namor": "^1.1.2",
67
- "npm-check-updates": "^16.3.11",
67
+ "npm-check-updates": "^16.3.16",
68
68
  "npm-run-all": "^4.1.5",
69
69
  "rimraf": "^3.0.2",
70
70
  "sass": "^1.55.0",
71
71
  "yargs": "^17.6.0"
72
72
  },
73
73
  "dependencies": {
74
- "@babel/runtime": "^7.19.4",
74
+ "@babel/runtime": "^7.20.0",
75
75
  "@carbon/telemetry": "^0.1.0",
76
76
  "framer-motion": "^6.5.1",
77
77
  "immutability-helper": "^3.1.1",
@@ -79,7 +79,7 @@
79
79
  "react-dnd-html5-backend": "^15.1.3",
80
80
  "react-resize-detector": "^7.1.2",
81
81
  "react-table": "^7.8.0",
82
- "react-window": "^1.8.7"
82
+ "react-window": "^1.8.8"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@carbon/colors": "^10.37.1",
@@ -95,5 +95,5 @@
95
95
  "react": "^16.8.6 || ^17.0.1",
96
96
  "react-dom": "^16.8.6 || ^17.0.1"
97
97
  },
98
- "gitHead": "bbcd35f7810843ce378dd7f7b9fcadde123cbd4a"
98
+ "gitHead": "36dbe6575fb43b86043dae507ae9f31f680254e4"
99
99
  }
@@ -35,3 +35,21 @@
35
35
  width: 100%;
36
36
  @include shared-pseudo-styles();
37
37
  }
38
+
39
+ .#{$block-class}__carbon-row.#{$block-class}__carbon-row-expandable
40
+ .#{$block-class}__cell.#{$block-class}__expandable-row-cell {
41
+ padding: $spacing-03;
42
+ padding-right: 0;
43
+ }
44
+
45
+ .#{$block-class}__row-expander.#{$carbon-prefix}--btn {
46
+ display: flex;
47
+ width: $spacing-07;
48
+ height: $spacing-07;
49
+ min-height: $spacing-07;
50
+ justify-content: center;
51
+ padding: 0;
52
+ .#{$block-class}__row-expander--icon {
53
+ fill: $ui-05;
54
+ }
55
+ }
@@ -5,4 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './inline-edit';
8
+ @import './inline-edit-v1';
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2020, 2021
2
+ // Copyright IBM Corp. 2022, 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2020, 2021
2
+ // Copyright IBM Corp. 2022, 2022
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -45,6 +45,10 @@
45
45
  flex: 1;
46
46
  }
47
47
 
48
+ &__text-input-label {
49
+ display: none;
50
+ }
51
+
48
52
  &__warning-icon {
49
53
  /* stylelint-disable-next-line carbon/layout-token-use */
50
54
  margin-right: 0.4375rem;
@@ -1,3 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
1
7
  .inline-edit-v2-example {
2
8
  width: 15rem;
3
9
  }
@@ -22,7 +22,7 @@
22
22
  @import './ExpressiveCard/index';
23
23
  @import './HTTPErrors/index';
24
24
  @import './ImportModal/index';
25
- @import './InlineEdit/index';
25
+ @import './InlineEditV1/index';
26
26
  @import './NotificationsPanel/index';
27
27
  @import './PageHeader/index';
28
28
  @import './ProductiveCard/index';
@@ -42,11 +42,12 @@
42
42
  @import './UserProfileImage/index';
43
43
  @import './EditSidePanel/index';
44
44
  @import './OptionsTile/index';
45
- @import './InlineEdit/index';
46
45
  @import './DataSpreadsheet/index';
47
46
  @import './Datagrid/index';
48
47
  @import './EditTearsheet/index';
49
48
  @import './EditTearsheetNarrow/index';
50
49
  @import './EditFullPage/index';
51
50
  @import './EditUpdateCards/index';
51
+
52
+ @import './InlineEditV1/index';
52
53
  @import './InlineEditV2/index';