@carbon/ibm-products 2.15.2 → 2.17.0-alpha.8

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.
Files changed (149) hide show
  1. package/css/config-dev.css +3 -0
  2. package/css/config-dev.css.map +1 -0
  3. package/css/index-full-carbon.css +195 -1
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css +1 -1
  6. package/css/index-full-carbon.min.css.map +1 -1
  7. package/css/index-without-carbon-released-only.css +1852 -38
  8. package/css/index-without-carbon-released-only.css.map +1 -1
  9. package/css/index-without-carbon-released-only.min.css +1 -1
  10. package/css/index-without-carbon-released-only.min.css.map +1 -1
  11. package/css/index-without-carbon.css +195 -1
  12. package/css/index-without-carbon.css.map +1 -1
  13. package/css/index-without-carbon.min.css +1 -1
  14. package/css/index-without-carbon.min.css.map +1 -1
  15. package/css/index.css +5 -1
  16. package/css/index.css.map +1 -1
  17. package/css/index.min.css +1 -1
  18. package/css/index.min.css.map +1 -1
  19. package/es/components/Datagrid/Datagrid/DatagridContent.js +12 -9
  20. package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  21. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +36 -22
  22. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +12 -11
  23. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  24. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +24 -13
  25. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -2
  26. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +50 -14
  27. package/es/components/Datagrid/Datagrid.docs-page.js +4 -4
  28. package/es/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  29. package/es/components/Datagrid/useActionsColumn.js +1 -4
  30. package/es/components/Datagrid/useDatagrid.js +5 -1
  31. package/es/components/Datagrid/useFlexResize.js +19 -9
  32. package/es/components/Datagrid/useInfiniteScroll.js +1 -5
  33. package/es/components/Datagrid/useOnRowClick.js +6 -7
  34. package/es/components/Datagrid/useSelectRows.js +8 -5
  35. package/es/components/Datagrid/useSortableColumns.js +5 -7
  36. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -1
  37. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -1
  38. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -1
  39. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -1
  40. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -1
  41. package/es/components/EmptyStates/assets/ErrorIllustration.js +5 -3
  42. package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -3
  43. package/es/components/EmptyStates/assets/NoTagsIllustration.js +5 -3
  44. package/es/components/EmptyStates/assets/NotFoundIllustration.js +5 -3
  45. package/es/components/EmptyStates/assets/NotificationsIllustration.js +5 -3
  46. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -3
  47. package/es/components/InlineTip/InlineTip.docs-page.js +13 -0
  48. package/es/components/InlineTip/InlineTip.js +217 -0
  49. package/es/components/InlineTip/InlineTipButton.js +53 -0
  50. package/es/components/InlineTip/InlineTipLink.js +57 -0
  51. package/es/components/InlineTip/index.js +10 -0
  52. package/es/components/InlineTip/utils.js +36 -0
  53. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.docs-page.js +11 -0
  54. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +140 -0
  55. package/es/components/SteppedAnimatedMedia/assets/index.js +4 -0
  56. package/es/components/SteppedAnimatedMedia/index.js +8 -0
  57. package/es/global/js/package-settings.js +3 -4
  58. package/lib/components/Datagrid/Datagrid/DatagridContent.js +12 -9
  59. package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +3 -3
  60. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +41 -29
  61. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +11 -11
  62. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  63. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +23 -12
  64. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -2
  65. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +51 -15
  66. package/lib/components/Datagrid/Datagrid.docs-page.js +4 -4
  67. package/lib/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  68. package/lib/components/Datagrid/useActionsColumn.js +1 -7
  69. package/lib/components/Datagrid/useDatagrid.js +5 -1
  70. package/lib/components/Datagrid/useFlexResize.js +19 -9
  71. package/lib/components/Datagrid/useInfiniteScroll.js +0 -4
  72. package/lib/components/Datagrid/useOnRowClick.js +6 -7
  73. package/lib/components/Datagrid/useSelectRows.js +8 -5
  74. package/lib/components/Datagrid/useSortableColumns.js +5 -7
  75. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +2 -1
  76. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +2 -1
  77. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +2 -1
  78. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +2 -1
  79. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +2 -1
  80. package/lib/components/EmptyStates/assets/ErrorIllustration.js +5 -3
  81. package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -3
  82. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +5 -3
  83. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +5 -3
  84. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +5 -3
  85. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -3
  86. package/lib/components/InlineTip/InlineTip.docs-page.js +23 -0
  87. package/lib/components/InlineTip/InlineTip.js +224 -0
  88. package/lib/components/InlineTip/InlineTipButton.js +57 -0
  89. package/lib/components/InlineTip/InlineTipLink.js +61 -0
  90. package/lib/components/InlineTip/index.js +26 -0
  91. package/lib/components/InlineTip/utils.js +43 -0
  92. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.docs-page.js +21 -0
  93. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +148 -0
  94. package/lib/components/SteppedAnimatedMedia/assets/index.js +9 -0
  95. package/lib/components/SteppedAnimatedMedia/index.js +12 -0
  96. package/lib/global/js/package-settings.js +3 -4
  97. package/package.json +6 -7
  98. package/scss/components/Datagrid/styles/_datagrid.scss +5 -0
  99. package/scss/components/{TooltipTrigger/_storybook-styles.scss → InlineTip/_index.scss} +2 -0
  100. package/scss/components/InlineTip/_inline-tip.scss +229 -0
  101. package/scss/components/SidePanel/_side-panel.scss +1 -4
  102. package/scss/components/_index-released-only-with-carbon.scss +1 -0
  103. package/scss/components/_index-released-only.scss +1 -0
  104. package/scss/components/_index.scss +1 -0
  105. package/scss/config-dev.scss +3 -0
  106. package/scss/components/APIKeyModal/_storybook-styles.scss +0 -35
  107. package/scss/components/AboutModal/_storybook-styles.scss +0 -29
  108. package/scss/components/ActionBar/_storybook-styles.scss +0 -8
  109. package/scss/components/ActionSet/_storybook-styles.scss +0 -36
  110. package/scss/components/AddSelect/_storybook-styles.scss +0 -6
  111. package/scss/components/BreadcrumbWithOverflow/_storybook-styles.scss +0 -8
  112. package/scss/components/ButtonMenu/_storybook-styles.scss +0 -6
  113. package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +0 -8
  114. package/scss/components/Card/_storybook-styles.scss +0 -12
  115. package/scss/components/Cascade/_storybook-styles.scss +0 -34
  116. package/scss/components/Checklist/_storybook-styles.scss +0 -13
  117. package/scss/components/CreateFullPage/_storybook-styles.scss +0 -67
  118. package/scss/components/CreateModal/_storybook-styles.scss +0 -54
  119. package/scss/components/CreateSidePanel/_storybook-styles.scss +0 -32
  120. package/scss/components/CreateTearsheet/_storybook-styles.scss +0 -56
  121. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -27
  122. package/scss/components/DataSpreadsheet/_storybook-styles.scss +0 -17
  123. package/scss/components/Datagrid/_storybook-styles.scss +0 -157
  124. package/scss/components/EditFullPage/_storybook-styles.scss +0 -10
  125. package/scss/components/EditInPlace/_storybook-styles.scss +0 -15
  126. package/scss/components/EditSidePanel/_storybook-styles.scss +0 -32
  127. package/scss/components/EditTearsheet/_storybook-styles.scss +0 -59
  128. package/scss/components/EditTearsheetNarrow/_storybook-styles.scss +0 -10
  129. package/scss/components/EditUpdateCards/_storybook-styles.scss +0 -55
  130. package/scss/components/EmptyStates/_storybook-styles.scss +0 -6
  131. package/scss/components/ExampleComponent/_storybook-styles.scss +0 -6
  132. package/scss/components/ExportModal/_storybook-styles.scss +0 -6
  133. package/scss/components/ExpressiveCard/_storybook-styles.scss +0 -26
  134. package/scss/components/FilterSummary/_storybook-styles.scss +0 -16
  135. package/scss/components/ImportModal/_storybook-styles.scss +0 -6
  136. package/scss/components/MultiAddSelect/_storybook-styles.scss +0 -6
  137. package/scss/components/NotificationsPanel/_storybook-styles.scss +0 -23
  138. package/scss/components/OptionsTile/_storybook-styles.scss +0 -29
  139. package/scss/components/PageHeader/_storybook-styles.scss +0 -90
  140. package/scss/components/ProductiveCard/_storybook-styles.scss +0 -23
  141. package/scss/components/RemoveModal/_storybook-styles.scss +0 -6
  142. package/scss/components/Saving/_storybook-styles.scss +0 -12
  143. package/scss/components/SidePanel/_storybook-styles.scss +0 -52
  144. package/scss/components/SingleAddSelect/_storybook-styles.scss +0 -6
  145. package/scss/components/StatusIcon/_storybook-styles.scss +0 -6
  146. package/scss/components/TagSet/_storybook-styles.scss +0 -8
  147. package/scss/components/Tearsheet/_storybook-styles.scss +0 -25
  148. package/scss/components/UserProfileImage/_storybook.scss +0 -6
  149. package/scss/components/WebTerminal/_storybook-styles.scss +0 -46
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": "2.15.2",
4
+ "version": "2.17.0-alpha.8+db5d0bf1",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -37,12 +37,10 @@
37
37
  "access": "public"
38
38
  },
39
39
  "scripts": {
40
- "build": "run-s clean build-first build-all build-css-update-maps",
40
+ "build": "run-s clean build-all",
41
41
  "build-all": "run-p 'build:*'",
42
- "build-first": "copyfiles -e 'src/config-dev.scss' 'src/**/*.scss' scss -u 1",
43
- "build:css-dev": "sass --style=expanded --load-path node_modules --load-path ../../node_modules scss:css",
44
- "build:css-min": "sass --style=compressed --load-path node_modules --load-path ../../node_modules scss/index.scss:css/index.min.css scss/index-full-carbon.scss:css/index-full-carbon.min.css scss/index-without-carbon.scss:css/index-without-carbon.min.css scss/index-without-carbon-released-only.scss:css/index-without-carbon-released-only.min.css",
45
- "build-css-update-maps": "node ../../scripts/updateSourceMaps.js",
42
+ "build:css": "copyfiles '../ibm-products-styles/css/**/*.*' ./ -u 2",
43
+ "build:scss": "copyfiles '../ibm-products-styles/scss/**/*.*' ./ -u 2",
46
44
  "build:js-esm": "cross-env BABEL_ENV=esm yarn build:js:modules -d es",
47
45
  "build:js-cjs": "cross-env BABEL_ENV=cjs yarn build:js:modules -d lib",
48
46
  "build:js:modules": "babel src --ignore '**/__tests__','**/*.test.js','**/*.stories.js','src/utils/**/*'",
@@ -76,6 +74,7 @@
76
74
  },
77
75
  "dependencies": {
78
76
  "@babel/runtime": "^7.22.10",
77
+ "@carbon/ibm-products-styles": "^2.15.1",
79
78
  "@carbon/telemetry": "^0.1.0",
80
79
  "@dnd-kit/core": "^6.0.8",
81
80
  "@dnd-kit/sortable": "^7.0.2",
@@ -96,5 +95,5 @@
96
95
  "react": "^16.8.6 || ^17.0.1 || ^18.2.0",
97
96
  "react-dom": "^16.8.6 || ^17.0.1 || ^18.2.0"
98
97
  },
99
- "gitHead": "61217220d3b66f869e36c29d8263b1b56c756475"
98
+ "gitHead": "db5d0bf119aba0a96d0ded89ac54647adfba2686"
100
99
  }
@@ -321,6 +321,11 @@
321
321
  background-color: $background-selected-hover;
322
322
  }
323
323
 
324
+ .#{$block-class}__grid-container
325
+ table.#{$block-class}__table-simple.#{c4p-settings.$carbon-prefix}--data-table.#{$block-class}__table-is-resizing {
326
+ overflow-y: hidden;
327
+ }
328
+
324
329
  .#{$block-class}__resizableColumn {
325
330
  &.#{$block-class}__isResizing {
326
331
  .#{$block-class}__resizer {
@@ -4,3 +4,5 @@
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.
6
6
  //
7
+
8
+ @use './inline-tip';
@@ -0,0 +1,229 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 2023
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
+ //
7
+
8
+ /**
9
+ * The InlineTip specifically is theme-agnostic, and so we have to
10
+ * use color tokens to keep the colors static instead of theme tokens
11
+ * that will change depending on the selected theme.
12
+ *
13
+ * We are triggering a *large* amount of linting errors.
14
+ * So, we're using the following "disable" rules for the entire file
15
+ * instead of many individual rules.
16
+ */
17
+
18
+ /* stylelint-disable carbon/layout-token-use */
19
+ /* stylelint-disable carbon/theme-token-use */
20
+ /* stylelint-disable declaration-no-important */
21
+ /* stylelint-disable function-no-unknown */
22
+ /* stylelint-disable max-nesting-depth */
23
+
24
+ // Standard imports.
25
+ @use '../../global/styles/project-settings' as c4p-settings;
26
+ @use '@carbon/react/scss/colors' as *;
27
+ @use '@carbon/layout/scss/convert' as *;
28
+ @use '@carbon/styles/scss/spacing' as *;
29
+ @use '@carbon/styles/scss/theme' as *;
30
+ @use '@carbon/styles/scss/type' as *;
31
+
32
+ $block-class: #{c4p-settings.$pkg-prefix}--inline-tip;
33
+ // Images and animation are the same fixed size
34
+ $media-height: to-rem(118px);
35
+ $media-width: calc(#{$media-height} * 2);
36
+ $purple: #7f3ae7;
37
+
38
+ .#{$block-class} {
39
+ position: relative;
40
+ display: flex;
41
+ background: linear-gradient(90deg, $blue-90 0%, $purple-70 100%);
42
+ }
43
+ // layout only: wide
44
+ .#{$block-class}__wide {
45
+ padding: $spacing-05 $spacing-10 $spacing-05 $spacing-09;
46
+ }
47
+ // layout: wide, with image
48
+ .#{$block-class}__wide.#{$block-class}__has-media {
49
+ padding-right: $spacing-09;
50
+ }
51
+
52
+ .#{$block-class}__wide.#{$block-class}__has-media .#{$block-class}__media {
53
+ padding-left: $spacing-10;
54
+ }
55
+
56
+ .#{$block-class}__wide.#{$block-class}__has-media .#{$block-class}__media img {
57
+ display: block;
58
+ height: $media-height;
59
+ }
60
+
61
+ .#{$block-class}__wide.#{$block-class}__has-media .#{$block-class}__media svg {
62
+ // Overrides the inline CSS of "100%".
63
+ width: $media-width !important;
64
+ height: $media-height !important;
65
+ }
66
+
67
+ // layout only: narrow
68
+ .#{$block-class}__narrow {
69
+ flex-direction: column-reverse;
70
+ padding: to-rem(52px) $spacing-07 $spacing-05 $spacing-05;
71
+ }
72
+ // layout: narrow, with image
73
+ .#{$block-class}__narrow.#{$block-class}__has-media {
74
+ padding-top: $spacing-07;
75
+ padding-right: $spacing-05;
76
+ }
77
+
78
+ .#{$block-class}__narrow.#{$block-class}__has-media .#{$block-class}__media {
79
+ padding-bottom: $spacing-05;
80
+
81
+ img {
82
+ width: 100%;
83
+ }
84
+ }
85
+
86
+ .#{$block-class}__narrow.#{$block-class}__has-media .#{$block-class}__content {
87
+ padding-right: $spacing-05;
88
+ }
89
+
90
+ .#{$block-class}__narrow.#{$block-class}__has-media .#{$block-class}__footer {
91
+ justify-content: space-between;
92
+ }
93
+ .#{$block-class}__narrow.#{$block-class}__has-media
94
+ .#{$block-class}__footer
95
+ .#{$block-class}__close-btn {
96
+ margin-right: calc(-1 * $spacing-05);
97
+ }
98
+
99
+ // All links in use by this component and provided by the user must reflect the 'dark' theme.
100
+ .#{$block-class} a {
101
+ color: $blue-30;
102
+
103
+ &:visited,
104
+ &:hover,
105
+ &:visited:hover {
106
+ color: $blue-30;
107
+ }
108
+ }
109
+
110
+ .#{$block-class}__title {
111
+ @include type-style('productive-heading-01');
112
+
113
+ color: $white-0;
114
+ }
115
+
116
+ .#{$block-class}__body {
117
+ @include type-style('body-short-01');
118
+
119
+ color: $gray-10;
120
+ }
121
+ .#{$block-class}__body p {
122
+ @include type-style('body-short-01');
123
+
124
+ margin-bottom: $spacing-03;
125
+ font-size: inherit;
126
+ line-height: inherit;
127
+
128
+ &:last-of-type {
129
+ margin-bottom: 0;
130
+ }
131
+ }
132
+
133
+ .#{$block-class}__body .#{$block-class}__secondary-btn {
134
+ margin-top: $spacing-03;
135
+ }
136
+ .#{$block-class}__body
137
+ .#{$block-class}__secondary-btn
138
+ .#{$block-class}__button {
139
+ margin-left: calc(-1 * $spacing-05);
140
+ color: $blue-30;
141
+
142
+ &:active,
143
+ &:hover {
144
+ background-color: $purple;
145
+ color: $gray-10;
146
+ }
147
+ }
148
+
149
+ .#{$block-class}__footer {
150
+ display: flex;
151
+ padding-top: $spacing-05;
152
+
153
+ &:empty {
154
+ display: none;
155
+ }
156
+ }
157
+
158
+ // When 'collapsed', a text-only preview with ellipsis is shown.
159
+ .#{$block-class}__preview-text {
160
+ display: -webkit-box;
161
+ overflow: hidden;
162
+ -webkit-box-orient: vertical;
163
+ -webkit-line-clamp: 1;
164
+ }
165
+
166
+ .#{$block-class}__icon-idea {
167
+ position: absolute;
168
+ width: to-rem(20px);
169
+ color: $white-0;
170
+ inset: $spacing-05 0 0 $spacing-05;
171
+ }
172
+
173
+ .#{$block-class}__close-icon-wrapper {
174
+ position: absolute;
175
+ top: 0;
176
+ right: 0;
177
+ }
178
+
179
+ .#{$block-class} .#{$block-class}__close-icon {
180
+ padding: to-rem(6px) 0 0 0;
181
+ block-size: $spacing-07;
182
+ color: $white-0;
183
+ inline-size: $spacing-07;
184
+ min-block-size: $spacing-07;
185
+
186
+ &:active,
187
+ &:hover {
188
+ background-color: $purple;
189
+ color: $text-primary;
190
+ }
191
+
192
+ path {
193
+ margin: 0;
194
+ fill: $white-0;
195
+ }
196
+ }
197
+
198
+ .#{$block-class} .#{$block-class}__toggle-btn {
199
+ border: none;
200
+ margin: 0 $spacing-05 0 calc(-1 * $spacing-05);
201
+ color: $blue-30;
202
+
203
+ &:hover {
204
+ background-color: $purple-70-hover;
205
+ color: $gray-10;
206
+ }
207
+ }
208
+
209
+ .#{$block-class} .#{$block-class}__close-btn {
210
+ border: to-rem(1px) solid $white-0;
211
+ color: $white-0;
212
+
213
+ &:active,
214
+ &:hover {
215
+ background-color: $gray-10;
216
+ color: $gray-100;
217
+ }
218
+
219
+ // The "render icon" CSS seems to be missing in the latest Carbon button.
220
+ // Specifically, getting the icon to move to right-hand side of the content area.
221
+ // Repeating here.
222
+ svg {
223
+ position: absolute;
224
+ right: 1rem;
225
+ width: 1rem;
226
+ height: 1rem;
227
+ flex-shrink: 0;
228
+ }
229
+ }
@@ -110,10 +110,6 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
110
110
  position: sticky;
111
111
  z-index: 4;
112
112
  top: 0;
113
- height: calc(
114
- var(--#{$block-class}--title-container-height) -
115
- var(--#{$block-class}--label-text-height)
116
- );
117
113
  padding: $spacing-05 $spacing-05 $spacing-03 $spacing-05;
118
114
  background-color: $layer-01;
119
115
 
@@ -169,6 +165,7 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
169
165
 
170
166
  position: inherit;
171
167
  z-index: 4;
168
+ margin-bottom: calc(-1 * var(--#{$block-class}--label-text-height));
172
169
  background-color: $layer-01;
173
170
  opacity: var(--#{$block-class}--subtitle-opacity);
174
171
  transform: translateY(var(--#{$block-class}--title-y-position));
@@ -17,6 +17,7 @@
17
17
  @use './CreateSidePanel/index-with-carbon' as *;
18
18
  @use './CreateTearsheetNarrow/index-with-carbon' as *;
19
19
  @use './CreateTearsheet/index-with-carbon' as *;
20
+ @use './Datagrid/index-with-carbon' as *;
20
21
  @use './EditInPlace/index-with-carbon' as *;
21
22
  @use './EmptyStates/index-with-carbon' as *;
22
23
  @use './ExportModal/index-with-carbon' as *;
@@ -17,6 +17,7 @@
17
17
  @use './CreateSidePanel';
18
18
  @use './CreateTearsheetNarrow';
19
19
  @use './CreateTearsheet';
20
+ @use './Datagrid';
20
21
  @use './EditInPlace';
21
22
  @use './EmptyStates';
22
23
  @use './ExportModal';
@@ -51,3 +51,4 @@
51
51
  @use './EditFullPage';
52
52
  @use './EditUpdateCards';
53
53
  @use './Checklist';
54
+ @use './InlineTip';
@@ -0,0 +1,3 @@
1
+ @forward './global/styles/project-settings' with (
2
+ $pkg-prefix: 'dev-prefix--c4p'
3
+ );
@@ -1,35 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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
- //
7
-
8
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '@carbon/styles/scss/theme' as *;
10
- @use '@carbon/styles/scss/spacing' as *;
11
-
12
- $block-class: #{c4p-settings.$pkg-prefix}--apikey-modal;
13
-
14
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--radio-button-wrapper {
15
- margin-bottom: $spacing-02;
16
- }
17
-
18
- .#{$block-class}__permissions.#{c4p-settings.$carbon-prefix}--fieldset {
19
- margin-top: $spacing-05;
20
- margin-bottom: 0;
21
- }
22
-
23
- .#{$block-class}__resource-toggle.#{c4p-settings.$carbon-prefix}--fieldset {
24
- margin-top: 0;
25
- margin-bottom: $spacing-05;
26
- }
27
-
28
- .#{$block-class}__resource-name.#{c4p-settings.$carbon-prefix}--fieldset {
29
- margin-top: 0;
30
- margin-bottom: 0;
31
- }
32
-
33
- .#{$block-class}__button-loading.#{c4p-settings.$carbon-prefix}--btn--primary {
34
- background: $link-secondary;
35
- }
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2020, 2021
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
- //
7
-
8
- @use '@carbon/styles/scss/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
- @use '@carbon/styles/scss/type';
11
- @use '@carbon/styles/scss/components/ui-shell' as *;
12
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
13
-
14
- // The block part of our conventional BEM class names (blockClass__E--M).
15
- $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
16
-
17
- .#{$block-class}__stories--tech-logo {
18
- width: $spacing-06;
19
- height: $spacing-06;
20
- margin-right: $spacing-03;
21
- object-fit: contain;
22
- }
23
-
24
- .#{$block-class}__footer-label {
25
- @include type.type-style('label-01');
26
-
27
- margin-bottom: $spacing-02;
28
- color: $text-secondary;
29
- }
@@ -1,8 +0,0 @@
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
- //
7
-
8
- @use '../../global/styles/display-box' as *;
@@ -1,36 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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
- //
7
-
8
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '../../global/styles/display-box' as *;
10
-
11
- $block-class: #{c4p-settings.$pkg-prefix}--action-set;
12
-
13
- .#{$block-class}__story-container {
14
- width: 96vw;
15
- min-height: 3rem;
16
- }
17
-
18
- .#{$block-class}__story-container--xlg {
19
- width: 75vw;
20
- }
21
-
22
- .#{$block-class}__story-container--lg {
23
- width: 60vw;
24
- }
25
-
26
- .#{$block-class}__story-container--md {
27
- width: 45vw;
28
- }
29
-
30
- .#{$block-class}__story-container--sm {
31
- width: 30vw;
32
- }
33
-
34
- .#{$block-class}__story-container--xs {
35
- width: 25vw;
36
- }
@@ -1,6 +0,0 @@
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,8 +0,0 @@
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
- //
7
-
8
- @use '../../global/styles/display-box' as *;
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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,8 +0,0 @@
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
- //
7
-
8
- @use '../../global/styles/display-box' as *;
@@ -1,12 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2020, 2021
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
- //
7
-
8
- // make the root full width to get a better idea of how the cards
9
- // look in a real grid situation
10
- #root {
11
- width: 100%;
12
- }
@@ -1,34 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 20201, 2021
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
- //
7
-
8
- @use '@carbon/styles/scss/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
-
11
- #storybook-docs .docs-story {
12
- /* stylelint-disable-next-line carbon/layout-token-use */
13
- padding: 30px 0;
14
- }
15
-
16
- .box {
17
- display: inline-block;
18
- width: 400px;
19
- height: 300px;
20
- margin: $spacing-04;
21
- background-color: $layer-selected-inverse;
22
- color: $text-on-color;
23
- }
24
-
25
- .grid-box {
26
- display: flex;
27
- width: 100%;
28
- height: 300px;
29
- align-items: center;
30
- justify-content: center;
31
- margin-bottom: $spacing-03;
32
- background-color: $layer-selected-inverse;
33
- color: $text-on-color;
34
- }
@@ -1,13 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2023, 2023
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
- //
7
-
8
- @use '@carbon/styles/scss/spacing' as *;
9
-
10
- .checklist-stories__viewport {
11
- min-width: calc(2 * $spacing-13); // 320px
12
- max-width: calc(2 * $spacing-13);
13
- }
@@ -1,67 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 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
- //
7
-
8
- @use '@carbon/styles/scss/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
- @use '@carbon/styles/scss/type';
11
- @use '@carbon/styles/scss/components/ui-shell' as *;
12
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
13
-
14
- $story-class: 'create-full-page-stories';
15
- $block-class: #{c4p-settings.$pkg-prefix}--create-full-page;
16
- // cspell:disable-next-line
17
- .sbdocs .#{$story-class}__viewport {
18
- height: 100vh;
19
- background-color: $background;
20
- box-shadow: 0 0 4px 1px $border-subtle-01;
21
- color: $text-primary;
22
- overflow-y: auto;
23
- }
24
-
25
- .#{$story-class}__step-fieldset--no-label
26
- .#{c4p-settings.$carbon-prefix}--fieldset
27
- legend {
28
- position: absolute;
29
- overflow: hidden;
30
- width: 1px;
31
- height: 1px;
32
- clip: rect(0 0 0 0);
33
- clip-path: inset(50%);
34
- white-space: nowrap;
35
- }
36
-
37
- .#{$story-class}__tooltip {
38
- position: relative;
39
- // stylelint-disable-next-line carbon/layout-token-use
40
- top: calc(#{$spacing-05} + #{$spacing-01});
41
- left: $spacing-11;
42
- }
43
-
44
- .#{$block-class}__step-fieldset.#{$story-class}__step-fieldset--label.#{c4p-settings.$carbon-prefix}--label {
45
- position: absolute;
46
- overflow: hidden;
47
- width: 1px;
48
- height: 1px;
49
- clip: rect(0 0 0 0);
50
- clip-path: inset(50%);
51
- white-space: nowrap;
52
- }
53
-
54
- .#{c4p-settings.$carbon-prefix}--form-item {
55
- margin-bottom: $spacing-05;
56
- }
57
-
58
- .#{$story-class}__error--text {
59
- @include type.type-style('label-01');
60
-
61
- margin-bottom: $spacing-05;
62
- }
63
-
64
- .#{$block-class}
65
- .#{$block-class}__step-description.#{$story-class}__step-description {
66
- padding-left: 0;
67
- }
@@ -1,54 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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
- //
7
-
8
- @use '@carbon/react/scss/components/number-input';
9
- @use '@carbon/react/scss/components/text-area';
10
- @use '@carbon/react/scss/components/text-input';
11
- @use '@carbon/react/scss/components/dropdown';
12
- @use '@carbon/react/scss/components/date-picker';
13
- @use '@carbon/react/scss/components/radio-button';
14
- @use '@carbon/react/scss/components/progress-indicator';
15
- @use '@carbon/react/scss/components/tooltip';
16
- @use '@carbon/react/scss/components/modal';
17
- @use '@carbon/styles/scss/spacing';
18
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
19
-
20
- .#{c4p-settings.$carbon-prefix}--number {
21
- min-width: 100%;
22
- }
23
-
24
- .#{c4p-settings.$carbon-prefix}--number__control-btn::before {
25
- background-color: transparent;
26
- }
27
-
28
- .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
29
- background-color: transparent;
30
- }
31
-
32
- .#{c4p-settings.$carbon-prefix}--date-picker {
33
- min-width: 100%;
34
- }
35
-
36
- .#{c4p-settings.$carbon-prefix}--date-picker-container {
37
- min-width: 100%;
38
- }
39
-
40
- .#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
41
- .#{c4p-settings.$carbon-prefix}--date-picker__input {
42
- min-width: 100%;
43
- }
44
-
45
- .#{c4p-settings.$carbon-prefix}--list-box__menu-icon {
46
- /* stylelint-disable-next-line carbon/layout-token-use */
47
- top: spacing.$spacing-03;
48
- }
49
-
50
- .example-wrapper {
51
- display: grid;
52
- grid-gap: spacing.$spacing-05;
53
- grid-template-columns: 1fr 1fr;
54
- }