@carbon/ibm-products 1.45.0 → 1.46.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.
- package/README.md +17 -0
- package/css/index-full-carbon.css +38 -21
- 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 +38 -21
- 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 +38 -21
- 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 +18 -228
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +39 -268
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +4 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +2 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +276 -0
- package/es/components/Datagrid/Datagrid/addons/Filtering/utils.js +6 -6
- package/es/components/Datagrid/useSortableColumns.js +16 -10
- 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 -224
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +44 -265
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterProvider.js +4 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/index.js +8 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/hooks/useFilters.js +280 -0
- package/lib/components/Datagrid/Datagrid/addons/Filtering/utils.js +5 -5
- package/lib/components/Datagrid/useSortableColumns.js +9 -3
- package/lib/components/Datagrid/utils/DatagridActions.js +2 -2
- package/package.json +8 -8
- package/scss/components/Datagrid/styles/_datagrid.scss +2 -4
- package/scss/components/Datagrid/styles/_useSortableColumns.scss +33 -17
- package/scss/components/OptionsTile/_options-tile.scss +8 -1
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
|
@@ -20594,12 +20594,19 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
20594
20594
|
}
|
20595
20595
|
|
20596
20596
|
.c4p--options-tile {
|
20597
|
+
position: relative;
|
20597
20598
|
border-bottom: 1px solid var(--cds-ui-03, #e0e0e0);
|
20598
20599
|
background-color: var(--cds-ui-01, #f4f4f4);
|
20599
20600
|
}
|
20600
20601
|
|
20601
20602
|
.c4p--options-tile__toggle-container {
|
20602
|
-
position:
|
20603
|
+
position: absolute;
|
20604
|
+
top: 0;
|
20605
|
+
right: 0;
|
20606
|
+
bottom: 0;
|
20607
|
+
width: calc(
|
20608
|
+
var(--cds-spacing-05, 1rem) + 2rem + var(--cds-spacing-05, 1rem)
|
20609
|
+
);
|
20603
20610
|
}
|
20604
20611
|
|
20605
20612
|
.c4p--options-tile__toggle {
|
@@ -21374,7 +21381,9 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
21374
21381
|
padding-bottom: var(--cds-spacing-05, 1rem);
|
21375
21382
|
}
|
21376
21383
|
.c4p--datagrid__dense-header .c4p--datagrid__table-toolbar {
|
21384
|
+
display: flex;
|
21377
21385
|
flex: 1 0 auto;
|
21386
|
+
align-items: flex-end;
|
21378
21387
|
}
|
21379
21388
|
.c4p--datagrid__dense-header .bx--table-toolbar {
|
21380
21389
|
background: transparent;
|
@@ -21382,9 +21391,6 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
21382
21391
|
.c4p--datagrid__dense-header .bx__table-container {
|
21383
21392
|
flex: 1 1 100%;
|
21384
21393
|
}
|
21385
|
-
.c4p--datagrid__dense-header .bx--table-toolbar {
|
21386
|
-
padding-top: var(--cds-spacing-07, 2rem);
|
21387
|
-
}
|
21388
21394
|
.c4p--datagrid__dense-header .c4p--datagrid__toolbar-divider {
|
21389
21395
|
position: relative;
|
21390
21396
|
}
|
@@ -21572,13 +21578,12 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
21572
21578
|
background-color: var(--cds-ui-03, #e0e0e0);
|
21573
21579
|
}
|
21574
21580
|
|
21575
|
-
|
21576
|
-
*
|
21577
|
-
*
|
21578
|
-
*
|
21579
|
-
*
|
21580
|
-
|
21581
|
-
*/
|
21581
|
+
/**
|
21582
|
+
* Copyright IBM Corp. 2020, 2023
|
21583
|
+
*
|
21584
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
21585
|
+
* LICENSE file in the root directory of this source tree.
|
21586
|
+
*/
|
21582
21587
|
.c4p--datagrid__sortableColumn .bx--table-header-label .header-title {
|
21583
21588
|
display: inline-block;
|
21584
21589
|
width: auto;
|
@@ -21588,39 +21593,51 @@ button.c4p--add-select__global-filter-toggle--open {
|
|
21588
21593
|
width: 100%;
|
21589
21594
|
height: 100%;
|
21590
21595
|
}
|
21591
|
-
.c4p--datagrid__sortableColumn .bx--table-header-label
|
21592
|
-
.c4p--datagrid__sortableColumn .bx--table-header-label
|
21593
|
-
.c4p--datagrid__sortableColumn .bx--table-header-label
|
21596
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort:focus,
|
21597
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort:active,
|
21598
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort:focus svg {
|
21594
21599
|
/* stylelint-disable-next-line declaration-no-important */
|
21595
21600
|
background: none !important;
|
21596
21601
|
/* stylelint-disable-next-line declaration-no-important */
|
21597
21602
|
color: var(--cds-text-01, #161616) !important;
|
21598
|
-
/* stylelint-disable-next-line declaration-no-important */
|
21599
|
-
outline: none !important;
|
21600
21603
|
}
|
21601
|
-
.c4p--datagrid__sortableColumn .bx--table-header-label
|
21604
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort:focus + .c4p--datagrid__resizer,
|
21605
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort:active + .c4p--datagrid__resizer {
|
21606
|
+
z-index: -1;
|
21607
|
+
}
|
21608
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort {
|
21602
21609
|
width: 100%;
|
21603
21610
|
min-width: 100%;
|
21604
|
-
|
21605
|
-
padding: 0;
|
21611
|
+
padding: 0 var(--cds-spacing-05, 1rem);
|
21606
21612
|
border: none;
|
21607
21613
|
/* stylelint-disable-next-line declaration-no-important */
|
21608
21614
|
background: none !important;
|
21609
|
-
box-shadow: none;
|
21610
21615
|
/* stylelint-disable-next-line declaration-no-important */
|
21611
21616
|
color: var(--cds-text-01, #161616) !important;
|
21612
21617
|
font: inherit;
|
21613
21618
|
}
|
21614
|
-
.c4p--datagrid__sortableColumn .bx--table-header-label
|
21619
|
+
.c4p--datagrid__sortableColumn .bx--table-header-label .bx--table-sort svg {
|
21615
21620
|
fill: var(--cds-text-01, #161616);
|
21621
|
+
opacity: 0;
|
21622
|
+
transition: transform 110ms cubic-bezier(0.2, 0, 0.38, 0.9);
|
21616
21623
|
visibility: hidden;
|
21617
21624
|
}
|
21625
|
+
.c4p--datagrid__sortableColumn .bx--table-sort.c4p--datagrid--table-sort {
|
21626
|
+
width: calc(100% + var(--cds-spacing-07, 2rem));
|
21627
|
+
margin: 0 calc(-1 * var(--cds-spacing-05, 1rem));
|
21628
|
+
}
|
21618
21629
|
|
21619
21630
|
.c4p--datagrid__sortableColumn:hover .bx--table-header-label svg,
|
21631
|
+
.c4p--datagrid__sortableColumn:focus-within .bx--table-header-label svg,
|
21620
21632
|
.c4p--datagrid__sortableColumn.c4p--datagrid__isSorted .bx--table-header-label svg {
|
21633
|
+
opacity: 1;
|
21621
21634
|
visibility: visible;
|
21622
21635
|
}
|
21623
21636
|
|
21637
|
+
.c4p--datagrid__sortableColumn .c4p--datagrid--table-sort--desc svg {
|
21638
|
+
transform: rotate(180deg);
|
21639
|
+
}
|
21640
|
+
|
21624
21641
|
/*
|
21625
21642
|
* Licensed Materials - Property of IBM
|
21626
21643
|
* 5724-Q36
|