@carbon/ibm-products 1.51.0 → 1.53.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/README.md +10 -5
- package/css/index-full-carbon.css +89 -64
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +1 -1
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +89 -64
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +1 -1
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +89 -64
- package/css/index.css.map +1 -1
- package/css/index.min.css +1 -1
- package/css/index.min.css.map +1 -1
- package/es/components/AboutModal/AboutModal.js +3 -4
- package/es/components/ActionBar/ActionBar.js +9 -18
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -13
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +7 -11
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +5 -5
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -4
- package/es/components/Datagrid/index.js +1 -0
- package/es/components/Datagrid/useActionsColumn.js +10 -7
- package/es/components/Datagrid/useCustomizeColumns.js +5 -1
- package/es/components/Datagrid/useEditableCell.js +12 -0
- package/es/components/Datagrid/useExpandedRow.js +11 -7
- package/es/components/Datagrid/useFiltering.js +11 -8
- package/es/components/Datagrid/useInlineEdit.js +17 -8
- package/es/components/Datagrid/useNestedRows.js +10 -6
- package/es/components/ExampleComponent/ExampleComponent.js +32 -4
- package/es/components/ExampleComponent/useExample.js +49 -0
- package/es/components/InlineEditV1/InlineEditV1.js +3 -1
- package/es/components/NonLinearReading/NonLinearReading.js +7 -7
- package/es/components/PageHeader/PageHeader.js +28 -31
- package/es/components/SidePanel/SidePanel.js +25 -26
- package/es/components/TagSet/TagSet.js +5 -7
- package/es/components/Tearsheet/TearsheetShell.js +4 -6
- package/es/components/index.js +1 -1
- package/es/global/js/hooks/useResizeObserver.js +74 -0
- package/es/global/js/package-settings.js +34 -4
- package/es/global/js/utils/test-helper.js +34 -3
- package/es/settings.js +26 -30
- package/lib/components/AboutModal/AboutModal.js +3 -4
- package/lib/components/ActionBar/ActionBar.js +9 -18
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +8 -13
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +7 -11
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +4 -4
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +3 -4
- package/lib/components/Datagrid/index.js +7 -0
- package/lib/components/Datagrid/useActionsColumn.js +7 -1
- package/lib/components/Datagrid/useCustomizeColumns.js +4 -0
- package/lib/components/Datagrid/useEditableCell.js +20 -0
- package/lib/components/Datagrid/useExpandedRow.js +4 -0
- package/lib/components/Datagrid/useFiltering.js +4 -0
- package/lib/components/Datagrid/useInlineEdit.js +19 -8
- package/lib/components/Datagrid/useNestedRows.js +9 -6
- package/lib/components/ExampleComponent/ExampleComponent.js +35 -4
- package/lib/components/ExampleComponent/useExample.js +58 -0
- package/lib/components/InlineEditV1/InlineEditV1.js +3 -1
- package/lib/components/NonLinearReading/NonLinearReading.js +6 -6
- package/lib/components/PageHeader/PageHeader.js +28 -31
- package/lib/components/SidePanel/SidePanel.js +25 -26
- package/lib/components/TagSet/TagSet.js +5 -7
- package/lib/components/Tearsheet/TearsheetShell.js +4 -6
- package/lib/components/index.js +6 -0
- package/lib/global/js/hooks/useResizeObserver.js +83 -0
- package/lib/global/js/package-settings.js +33 -3
- package/lib/global/js/utils/test-helper.js +37 -5
- package/lib/settings.js +26 -30
- package/package.json +2 -3
- package/scss/components/NonLinearReading/_non-linear-reading.scss +76 -67
- package/scss/components/NonLinearReading/_storybook-styles.scss +16 -0
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ const App = () => {
|
|
|
102
102
|
};
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
### Enabling Canary components
|
|
105
|
+
### Enabling Canary components and flagged features
|
|
106
106
|
|
|
107
107
|
Components that have not yet completed the release review process are considered
|
|
108
108
|
to be canary and require the consumer to enable via a feature flag in a
|
|
@@ -121,14 +121,19 @@ pkg.component.SidePanel = true;
|
|
|
121
121
|
// Live dangerously: enable all components!
|
|
122
122
|
pkg.setAllComponents(true);
|
|
123
123
|
|
|
124
|
-
// Enable
|
|
125
|
-
pkg.
|
|
126
|
-
|
|
124
|
+
// Enable a feature flagged example
|
|
125
|
+
pkg.feature.nameOfFeature = true;
|
|
126
|
+
pkg.feature['Component.feature'] = true;
|
|
127
127
|
// Live dangerously: enable all pre-release features!
|
|
128
128
|
pkg.setAllFeatures(true);
|
|
129
129
|
```
|
|
130
130
|
|
|
131
|
-
**Note:** The above settings must happen before a component first renders
|
|
131
|
+
**Note:** The above settings must happen before a component first renders or a
|
|
132
|
+
feature is first used.
|
|
133
|
+
|
|
134
|
+
**Note: 2** In the case of features implemented via hooks the feature may
|
|
135
|
+
function without enabling. In all cases features that disabled by default will
|
|
136
|
+
log in the console a warning if enabled via a feature flag or an error if not.
|
|
132
137
|
|
|
133
138
|
### Building and running locally
|
|
134
139
|
|
|
@@ -23135,45 +23135,70 @@ th.c4p--datagrid__select-all-toggle-on.button {
|
|
|
23135
23135
|
opacity: 1;
|
|
23136
23136
|
}
|
|
23137
23137
|
}
|
|
23138
|
-
.c4p--non-linear-
|
|
23139
|
-
|
|
23140
|
-
|
|
23138
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-closed {
|
|
23139
|
+
height: 1.25rem;
|
|
23140
|
+
padding-top: 0;
|
|
23141
|
+
padding-right: 0.1875rem;
|
|
23142
|
+
border-width: 0.0625rem;
|
|
23143
|
+
border-style: solid;
|
|
23141
23144
|
border-radius: var(--cds-spacing-04, 0.75rem);
|
|
23142
|
-
background-color: var(--cds-interactive-02, #393939);
|
|
23143
23145
|
white-space: nowrap;
|
|
23144
|
-
|
|
23145
|
-
color:
|
|
23146
|
+
border-color: var(--cds-interactive-03, #0f62fe);
|
|
23147
|
+
background-color: transparent;
|
|
23148
|
+
color: var(--cds-interactive-03, #0f62fe);
|
|
23146
23149
|
}
|
|
23147
|
-
.c4p--non-linear-
|
|
23148
|
-
background-color: var(--cds-hover-secondary, #4c4c4c);
|
|
23150
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-closed:hover {
|
|
23149
23151
|
cursor: pointer;
|
|
23150
23152
|
}
|
|
23151
|
-
.c4p--non-linear-
|
|
23152
|
-
|
|
23153
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-closed svg {
|
|
23154
|
+
margin: 0.0625rem 0 0 0;
|
|
23155
|
+
vertical-align: text-top;
|
|
23153
23156
|
}
|
|
23154
|
-
.c4p--non-linear-
|
|
23155
|
-
|
|
23156
|
-
|
|
23157
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-closed:hover {
|
|
23158
|
+
background-color: var(--cds-interactive-03, #0f62fe);
|
|
23159
|
+
color: var(--cds-inverse-01, #ffffff);
|
|
23160
|
+
}
|
|
23161
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-open {
|
|
23162
|
+
height: 1.25rem;
|
|
23163
|
+
padding-top: 0;
|
|
23164
|
+
padding-right: 0.1875rem;
|
|
23165
|
+
border-width: 0.0625rem;
|
|
23166
|
+
border-style: solid;
|
|
23157
23167
|
border-radius: var(--cds-spacing-04, 0.75rem);
|
|
23158
|
-
background-color: var(--cds-interactive-02, #393939);
|
|
23159
23168
|
white-space: nowrap;
|
|
23160
|
-
|
|
23161
|
-
background-color: #
|
|
23162
|
-
color: var(--cds-
|
|
23169
|
+
border-color: var(--cds-interactive-03, #0f62fe);
|
|
23170
|
+
background-color: var(--cds-interactive-03, #0f62fe);
|
|
23171
|
+
color: var(--cds-inverse-01, #ffffff);
|
|
23163
23172
|
}
|
|
23164
|
-
.c4p--non-linear-
|
|
23165
|
-
background-color: var(--cds-hover-secondary, #4c4c4c);
|
|
23173
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-open:hover {
|
|
23166
23174
|
cursor: pointer;
|
|
23167
23175
|
}
|
|
23168
|
-
.c4p--non-linear-
|
|
23169
|
-
|
|
23170
|
-
margin: 0 var(--cds-spacing-02, 0.25rem) 0 var(--cds-spacing-01, 0.125rem);
|
|
23176
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-open svg {
|
|
23177
|
+
margin: 0.0625rem 0 0 0;
|
|
23171
23178
|
vertical-align: text-top;
|
|
23172
23179
|
}
|
|
23173
|
-
.c4p--non-linear-
|
|
23174
|
-
|
|
23180
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-open svg {
|
|
23181
|
+
transform: rotate(180deg);
|
|
23175
23182
|
}
|
|
23176
|
-
.c4p--non-linear-
|
|
23183
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__keyword-open:hover {
|
|
23184
|
+
background-color: transparent;
|
|
23185
|
+
color: var(--cds-interactive-03, #0f62fe);
|
|
23186
|
+
}
|
|
23187
|
+
.c4p--non-linear-reading__light .c4p--non-linear-reading__body {
|
|
23188
|
+
font-size: var(--cds-body-long-01-font-size, 0.875rem);
|
|
23189
|
+
font-weight: var(--cds-body-long-01-font-weight, 400);
|
|
23190
|
+
line-height: var(--cds-body-long-01-line-height, 1.42857);
|
|
23191
|
+
letter-spacing: var(--cds-body-long-01-letter-spacing, 0.16px);
|
|
23192
|
+
display: block;
|
|
23193
|
+
padding: var(--cds-spacing-03, 0.5rem) var(--cds-spacing-04, 0.75rem);
|
|
23194
|
+
border-left-width: 0.078125rem;
|
|
23195
|
+
border-left-style: solid;
|
|
23196
|
+
margin: var(--cds-spacing-02, 0.25rem) 0;
|
|
23197
|
+
animation: fade 600ms;
|
|
23198
|
+
border-left-color: var(--cds-text-01, #161616);
|
|
23199
|
+
}
|
|
23200
|
+
|
|
23201
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-closed {
|
|
23177
23202
|
--cds-interactive-01: #0f62fe;
|
|
23178
23203
|
--cds-interactive-02: #6f6f6f;
|
|
23179
23204
|
--cds-interactive-03: #ffffff;
|
|
@@ -23594,22 +23619,29 @@ th.c4p--datagrid__select-all-toggle-on.button {
|
|
|
23594
23619
|
--cds-size-2XLarge: 5rem;
|
|
23595
23620
|
--cds-icon-size-01: 1rem;
|
|
23596
23621
|
--cds-icon-size-02: 1.25rem;
|
|
23597
|
-
|
|
23598
|
-
|
|
23622
|
+
height: 1.25rem;
|
|
23623
|
+
padding-top: 0;
|
|
23624
|
+
padding-right: 0.1875rem;
|
|
23625
|
+
border-width: 0.0625rem;
|
|
23626
|
+
border-style: solid;
|
|
23599
23627
|
border-radius: var(--cds-spacing-04, 0.75rem);
|
|
23600
|
-
background-color: var(--cds-interactive-02, #393939);
|
|
23601
23628
|
white-space: nowrap;
|
|
23602
|
-
|
|
23603
|
-
color:
|
|
23629
|
+
border-color: var(--cds-icon-03, #ffffff);
|
|
23630
|
+
background-color: transparent;
|
|
23631
|
+
color: var(--cds-text-01, #161616);
|
|
23604
23632
|
}
|
|
23605
|
-
.c4p--non-linear-
|
|
23606
|
-
background-color: var(--cds-hover-secondary, #4c4c4c);
|
|
23633
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-closed:hover {
|
|
23607
23634
|
cursor: pointer;
|
|
23608
23635
|
}
|
|
23609
|
-
.c4p--non-linear-
|
|
23610
|
-
|
|
23636
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-closed svg {
|
|
23637
|
+
margin: 0.0625rem 0 0 0;
|
|
23638
|
+
vertical-align: text-top;
|
|
23611
23639
|
}
|
|
23612
|
-
.c4p--non-linear-
|
|
23640
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-closed:hover {
|
|
23641
|
+
background-color: var(--cds-icon-03, #ffffff);
|
|
23642
|
+
color: var(--cds-inverse-01, #ffffff);
|
|
23643
|
+
}
|
|
23644
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-open {
|
|
23613
23645
|
--cds-interactive-01: #0f62fe;
|
|
23614
23646
|
--cds-interactive-02: #6f6f6f;
|
|
23615
23647
|
--cds-interactive-03: #ffffff;
|
|
@@ -24030,42 +24062,32 @@ th.c4p--datagrid__select-all-toggle-on.button {
|
|
|
24030
24062
|
--cds-size-2XLarge: 5rem;
|
|
24031
24063
|
--cds-icon-size-01: 1rem;
|
|
24032
24064
|
--cds-icon-size-02: 1.25rem;
|
|
24033
|
-
|
|
24034
|
-
|
|
24065
|
+
height: 1.25rem;
|
|
24066
|
+
padding-top: 0;
|
|
24067
|
+
padding-right: 0.1875rem;
|
|
24068
|
+
border-width: 0.0625rem;
|
|
24069
|
+
border-style: solid;
|
|
24035
24070
|
border-radius: var(--cds-spacing-04, 0.75rem);
|
|
24036
|
-
background-color: var(--cds-interactive-02, #393939);
|
|
24037
24071
|
white-space: nowrap;
|
|
24038
|
-
|
|
24039
|
-
background-color: #
|
|
24040
|
-
color: var(--cds-
|
|
24072
|
+
border-color: var(--cds-icon-03, #ffffff);
|
|
24073
|
+
background-color: var(--cds-icon-03, #ffffff);
|
|
24074
|
+
color: var(--cds-inverse-01, #ffffff);
|
|
24041
24075
|
}
|
|
24042
|
-
.c4p--non-linear-
|
|
24043
|
-
background-color: var(--cds-hover-secondary, #4c4c4c);
|
|
24076
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-open:hover {
|
|
24044
24077
|
cursor: pointer;
|
|
24045
24078
|
}
|
|
24046
|
-
.c4p--non-linear-
|
|
24047
|
-
|
|
24048
|
-
margin: 0 var(--cds-spacing-02, 0.25rem) 0 var(--cds-spacing-01, 0.125rem);
|
|
24079
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-open svg {
|
|
24080
|
+
margin: 0.0625rem 0 0 0;
|
|
24049
24081
|
vertical-align: text-top;
|
|
24050
24082
|
}
|
|
24051
|
-
.c4p--non-linear-
|
|
24052
|
-
|
|
24083
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-open svg {
|
|
24084
|
+
transform: rotate(180deg);
|
|
24053
24085
|
}
|
|
24054
|
-
.c4p--non-linear-
|
|
24055
|
-
|
|
24056
|
-
|
|
24057
|
-
line-height: var(--cds-body-long-01-line-height, 1.42857);
|
|
24058
|
-
letter-spacing: var(--cds-body-long-01-letter-spacing, 0.16px);
|
|
24059
|
-
display: block;
|
|
24060
|
-
padding: var(--cds-spacing-03, 0.5rem) var(--cds-spacing-04, 0.75rem);
|
|
24061
|
-
border-left-width: 0.078125rem;
|
|
24062
|
-
border-left-style: solid;
|
|
24063
|
-
margin: var(--cds-spacing-02, 0.25rem) 0;
|
|
24064
|
-
animation: fade 600ms;
|
|
24065
|
-
border-left-color: #6929c4;
|
|
24066
|
-
color: #6929c4;
|
|
24086
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__keyword-open:hover {
|
|
24087
|
+
background-color: transparent;
|
|
24088
|
+
color: var(--cds-text-01, #161616);
|
|
24067
24089
|
}
|
|
24068
|
-
.c4p--non-linear-
|
|
24090
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__body {
|
|
24069
24091
|
--cds-interactive-01: #0f62fe;
|
|
24070
24092
|
--cds-interactive-02: #6f6f6f;
|
|
24071
24093
|
--cds-interactive-03: #ffffff;
|
|
@@ -24496,8 +24518,11 @@ th.c4p--datagrid__select-all-toggle-on.button {
|
|
|
24496
24518
|
border-left-style: solid;
|
|
24497
24519
|
margin: var(--cds-spacing-02, 0.25rem) 0;
|
|
24498
24520
|
animation: fade 600ms;
|
|
24499
|
-
border-left-color: #
|
|
24500
|
-
color: #
|
|
24521
|
+
border-left-color: var(--cds-text-01, #161616);
|
|
24522
|
+
color: var(--cds-text-01, #161616);
|
|
24523
|
+
}
|
|
24524
|
+
.c4p--non-linear-reading__dark .c4p--non-linear-reading__body a {
|
|
24525
|
+
color: var(--cds-link-01, #0f62fe);
|
|
24501
24526
|
}
|
|
24502
24527
|
|
|
24503
24528
|
@font-face {
|