@carbon/ibm-products 2.0.0-rc.20 → 2.0.0-rc.21
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/README.md +17 -0
- package/css/index-full-carbon.css +12 -6
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +4 -2
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +12 -6
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +4 -2
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +12 -6
- package/css/index.css.map +1 -1
- package/css/index.min.css +4 -2
- package/css/index.min.css.map +1 -1
- package/es/components/Datagrid/Datagrid/DatagridContent.js +2 -2
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +19 -247
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +41 -285
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +4 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +1 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +310 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +6 -6
- package/es/components/Datagrid/utils/DatagridActions.js +2 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +2 -2
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +22 -243
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +47 -284
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +4 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +8 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +325 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +5 -5
- package/lib/components/Datagrid/utils/DatagridActions.js +2 -2
- package/package.json +2 -2
- package/scss/components/Datagrid/styles/_datagrid.scss +2 -4
- package/scss/components/OptionsTile/_options-tile.scss +10 -3
package/README.md
CHANGED
@@ -41,6 +41,23 @@ Then you can import the component styles in your `index.js`.
|
|
41
41
|
import '@carbon/ibm-products/css/index.min.css';
|
42
42
|
```
|
43
43
|
|
44
|
+
### Webpack 4
|
45
|
+
|
46
|
+
Our package requires support for ES modules (see
|
47
|
+
[#2378](https://github.com/carbon-design-system/ibm-cloud-cognitive/issues/2378#issuecomment-1319276192)).
|
48
|
+
In Webpack 5, these are supported by default. In Webpack 4, you will need to add
|
49
|
+
the [following rule](https://stackoverflow.com/a/72149467) to your config.
|
50
|
+
|
51
|
+
```js
|
52
|
+
rules: [
|
53
|
+
{
|
54
|
+
test: /\.mjs$/,
|
55
|
+
include: /node_modules/,
|
56
|
+
type: 'javascript/auto',
|
57
|
+
},
|
58
|
+
],
|
59
|
+
```
|
60
|
+
|
44
61
|
### Peer dependencies
|
45
62
|
|
46
63
|
`@carbon/ibm-products` is built on top of Carbon components and has a number of
|
@@ -9503,12 +9503,19 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
9503
9503
|
}
|
9504
9504
|
|
9505
9505
|
.c4p--options-tile {
|
9506
|
-
|
9507
|
-
|
9506
|
+
position: relative;
|
9507
|
+
border-bottom: 1px solid var(--cds-border-subtle);
|
9508
|
+
background-color: var(--cds-layer);
|
9508
9509
|
}
|
9509
9510
|
|
9510
9511
|
.c4p--options-tile__toggle-container {
|
9511
|
-
position:
|
9512
|
+
position: absolute;
|
9513
|
+
top: 0;
|
9514
|
+
right: 0;
|
9515
|
+
bottom: 0;
|
9516
|
+
width: calc(
|
9517
|
+
1rem + 2rem + 1rem
|
9518
|
+
);
|
9512
9519
|
}
|
9513
9520
|
|
9514
9521
|
.c4p--options-tile__toggle {
|
@@ -10658,7 +10665,9 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
10658
10665
|
padding-bottom: 1rem;
|
10659
10666
|
}
|
10660
10667
|
.c4p--datagrid__dense-header .c4p--datagrid__table-toolbar {
|
10668
|
+
display: flex;
|
10661
10669
|
flex: 1 0 auto;
|
10670
|
+
align-items: flex-end;
|
10662
10671
|
}
|
10663
10672
|
.c4p--datagrid__dense-header .cds--table-toolbar {
|
10664
10673
|
background: transparent;
|
@@ -10666,9 +10675,6 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
10666
10675
|
.c4p--datagrid__dense-header .cds__table-container {
|
10667
10676
|
flex: 1 1 100%;
|
10668
10677
|
}
|
10669
|
-
.c4p--datagrid__dense-header .cds--table-toolbar {
|
10670
|
-
padding-top: 2rem;
|
10671
|
-
}
|
10672
10678
|
.c4p--datagrid__dense-header .c4p--datagrid__toolbar-divider {
|
10673
10679
|
position: relative;
|
10674
10680
|
}
|