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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) 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 +4 -4
  4. package/css/index-full-carbon.css.map +1 -1
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +1851 -37
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +1 -1
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +4 -4
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css.map +1 -1
  14. package/css/index.min.css.map +1 -1
  15. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  16. package/es/components/Datagrid/Datagrid.docs-page.js +1 -1
  17. package/es/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  18. package/es/components/Datagrid/useActionsColumn.js +1 -4
  19. package/es/components/Datagrid/useFlexResize.js +19 -9
  20. package/es/components/Datagrid/useInfiniteScroll.js +1 -5
  21. package/es/global/js/package-settings.js +1 -3
  22. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  23. package/lib/components/Datagrid/Datagrid.docs-page.js +1 -1
  24. package/lib/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  25. package/lib/components/Datagrid/useActionsColumn.js +1 -7
  26. package/lib/components/Datagrid/useFlexResize.js +19 -9
  27. package/lib/components/Datagrid/useInfiniteScroll.js +0 -4
  28. package/lib/global/js/package-settings.js +1 -3
  29. package/package.json +6 -7
  30. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  31. package/scss/components/_index-released-only-with-carbon.scss +1 -0
  32. package/scss/components/_index-released-only.scss +1 -0
  33. package/scss/config-dev.scss +3 -0
  34. package/scss/components/APIKeyModal/_storybook-styles.scss +0 -35
  35. package/scss/components/AboutModal/_storybook-styles.scss +0 -29
  36. package/scss/components/ActionBar/_storybook-styles.scss +0 -8
  37. package/scss/components/ActionSet/_storybook-styles.scss +0 -36
  38. package/scss/components/AddSelect/_storybook-styles.scss +0 -6
  39. package/scss/components/BreadcrumbWithOverflow/_storybook-styles.scss +0 -8
  40. package/scss/components/ButtonMenu/_storybook-styles.scss +0 -6
  41. package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +0 -8
  42. package/scss/components/Card/_storybook-styles.scss +0 -12
  43. package/scss/components/Cascade/_storybook-styles.scss +0 -34
  44. package/scss/components/Checklist/_storybook-styles.scss +0 -13
  45. package/scss/components/CreateFullPage/_storybook-styles.scss +0 -67
  46. package/scss/components/CreateModal/_storybook-styles.scss +0 -54
  47. package/scss/components/CreateSidePanel/_storybook-styles.scss +0 -32
  48. package/scss/components/CreateTearsheet/_storybook-styles.scss +0 -56
  49. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -27
  50. package/scss/components/DataSpreadsheet/_storybook-styles.scss +0 -17
  51. package/scss/components/Datagrid/_storybook-styles.scss +0 -157
  52. package/scss/components/EditFullPage/_storybook-styles.scss +0 -10
  53. package/scss/components/EditInPlace/_storybook-styles.scss +0 -15
  54. package/scss/components/EditSidePanel/_storybook-styles.scss +0 -32
  55. package/scss/components/EditTearsheet/_storybook-styles.scss +0 -59
  56. package/scss/components/EditTearsheetNarrow/_storybook-styles.scss +0 -10
  57. package/scss/components/EditUpdateCards/_storybook-styles.scss +0 -55
  58. package/scss/components/EmptyStates/_storybook-styles.scss +0 -6
  59. package/scss/components/ExampleComponent/_storybook-styles.scss +0 -6
  60. package/scss/components/ExportModal/_storybook-styles.scss +0 -6
  61. package/scss/components/ExpressiveCard/_storybook-styles.scss +0 -26
  62. package/scss/components/FilterSummary/_storybook-styles.scss +0 -16
  63. package/scss/components/ImportModal/_storybook-styles.scss +0 -6
  64. package/scss/components/InlineTip/_storybook-styles.scss +0 -20
  65. package/scss/components/MultiAddSelect/_storybook-styles.scss +0 -6
  66. package/scss/components/NotificationsPanel/_storybook-styles.scss +0 -23
  67. package/scss/components/OptionsTile/_storybook-styles.scss +0 -29
  68. package/scss/components/PageHeader/_storybook-styles.scss +0 -90
  69. package/scss/components/ProductiveCard/_storybook-styles.scss +0 -23
  70. package/scss/components/RemoveModal/_storybook-styles.scss +0 -6
  71. package/scss/components/Saving/_storybook-styles.scss +0 -12
  72. package/scss/components/SidePanel/_storybook-styles.scss +0 -52
  73. package/scss/components/SingleAddSelect/_storybook-styles.scss +0 -6
  74. package/scss/components/StatusIcon/_storybook-styles.scss +0 -6
  75. package/scss/components/SteppedAnimatedMedia/_index.scss +0 -8
  76. package/scss/components/SteppedAnimatedMedia/_stepped-animated-media.scss +0 -6
  77. package/scss/components/SteppedAnimatedMedia/_storybook-styles.scss +0 -13
  78. package/scss/components/TagSet/_storybook-styles.scss +0 -8
  79. package/scss/components/Tearsheet/_storybook-styles.scss +0 -25
  80. package/scss/components/TooltipTrigger/_storybook-styles.scss +0 -6
  81. package/scss/components/UserProfileImage/_storybook.scss +0 -6
  82. package/scss/components/WebTerminal/_storybook-styles.scss +0 -46
@@ -116,7 +116,7 @@ var DocsPage = exports.DocsPage = function DocsPage() {
116
116
  title: 'Selecting rows',
117
117
  description: "When building a Datagrid that requires selectable rows, use the `useSelectRows` hook.\n- Include `useSelectRows` hook\n- Add `onRowSelect` to the `useDatagrid` hook, this is a callback function called when on a row's selection checkbox onChange, and sends back the row object and the event\n ",
118
118
  source: {
119
- code: "\nconst [data] = useState(makeData(10));\nconst columns = React.useMemo(() => getColumns(data), []);\nconst datagridState = useDatagrid(\n {\n columns,\n data,\n onRowSelect: (row, event) => console.log(row, event),\n },\n useSelectRows\n);\n\nreturn <Datagrid datagridState={datagridState} />;\n "
119
+ code: "\nconst [data] = useState(makeData(10));\nconst columns = React.useMemo(() => getColumns(data), []);\nconst datagridState = useDatagrid(\n {\n columns,\n data,\n onRowSelect: (row, event) => console.log(row, event),\n batchActionMenuButtonLabel: 'More',\n },\n useSelectRows\n);\n\nreturn <Datagrid datagridState={datagridState} />;\n "
120
120
  }
121
121
  }, {
122
122
  description: "The select all checkbox can be optionally hidden by settings the `hideSelectAll` property to `true` in the `useDatagrid` hook.",
@@ -45,7 +45,7 @@
45
45
 
46
46
  // ## Sample usage:
47
47
  // 1. include \`useActionsColumn\` hook
48
- // 2. add \`isAction = true\` to the column object in which you which to add the overflow menu actions
48
+ // 2. add \`isAction = true\` to the column object in which you wish to add the overflow menu actions
49
49
  // 3. add \`rowActions = []\` array to the props
50
50
  // - \`rowActions[].id\` for callback to identify the action is called
51
51
  // - \`rowActions[].onClick(actionId: string, row: Row, event: ClickEvent)\` callback on menuitem clicked. [Row properties](https://react-table.tanstack.com/docs/api/useTable#row-properties)
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -9,7 +8,7 @@ exports.default = void 0;
9
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
- var _react = _interopRequireWildcard(require("react"));
11
+ var _react = _interopRequireDefault(require("react"));
13
12
  var _classnames = _interopRequireDefault(require("classnames"));
14
13
  var _react2 = require("@carbon/react");
15
14
  var _settings = require("../../settings");
@@ -21,15 +20,10 @@ var _excluded = ["align", "id", "itemText", "onClick", "icon", "shouldHideMenuIt
21
20
  * This source code is licensed under the Apache-2.0 license found in the
22
21
  * LICENSE file in the root directory of this source tree.
23
22
  */
24
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
25
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
26
23
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
27
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28
25
  var blockClass = "".concat(_settings.pkg.prefix, "--datagrid");
29
26
  var useActionsColumn = function useActionsColumn(hooks) {
30
- (0, _react.useEffect)(function () {
31
- _settings.pkg.checkReportFeatureEnabled('Datagrid.useActionsColumn');
32
- }, []);
33
27
  var useAttachActionsOnInstance = function useAttachActionsOnInstance(instance) {
34
28
  var rowActions = instance.rowActions,
35
29
  isFetching = instance.isFetching,
@@ -6,29 +6,39 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
- /*
10
- * Licensed Materials - Property of IBM
11
- * 5724-Q36
12
- * (c) Copyright IBM Corp. 2020
13
- * US Government Users Restricted Rights - Use, duplication or disclosure
14
- * restricted by GSA ADP Schedule Contract with IBM Corp.
9
+ /**
10
+ * Copyright IBM Corp. 2020, 2023
11
+ *
12
+ * This source code is licensed under the Apache-2.0 license found in the
13
+ * LICENSE file in the root directory of this source tree.
15
14
  */
15
+
16
16
  var useFlexResize = function useFlexResize(hooks) {
17
- var spacerColumn = {
17
+ var spacer = {
18
18
  id: 'spacer',
19
19
  width: 0,
20
20
  disableSortBy: true,
21
21
  disableResizing: true
22
22
  };
23
23
  hooks.visibleColumns.push(function (columns) {
24
- return [].concat((0, _toConsumableArray2.default)(columns), [spacerColumn]);
24
+ // always move actions and spacer to the end
25
+ var actionsIdx = columns.findIndex(function (col) {
26
+ return col.isAction;
27
+ });
28
+ if (actionsIdx === -1) {
29
+ return [].concat((0, _toConsumableArray2.default)(columns), [spacer]);
30
+ }
31
+ var cols = (0, _toConsumableArray2.default)(columns);
32
+ var actions = cols.splice(actionsIdx, 1)[0];
33
+ cols.splice(columns.length, 0, spacer, actions);
34
+ return cols;
25
35
  });
26
36
  var changeProps = function changeProps(props, data) {
27
37
  var column = data.column;
28
38
  if (!column && data.cell) {
29
39
  column = data.cell.column;
30
40
  }
31
- if (column.id === spacerColumn.id) {
41
+ if (column.id === spacer.id) {
32
42
  return [props, {
33
43
  style: {
34
44
  flex: '1 1 0'
@@ -9,7 +9,6 @@ var _react = require("react");
9
9
  var _debounce = _interopRequireDefault(require("lodash/debounce"));
10
10
  var _useParentDimensions = _interopRequireDefault(require("./useParentDimensions"));
11
11
  var _useResizeTable = _interopRequireDefault(require("./useResizeTable"));
12
- var _settings = require("../../settings");
13
12
  /**
14
13
  * Copyright IBM Corp. 2020, 2023
15
14
  *
@@ -20,9 +19,6 @@ var _settings = require("../../settings");
20
19
  var useInfiniteScroll = function useInfiniteScroll(hooks) {
21
20
  (0, _useParentDimensions.default)(hooks);
22
21
  (0, _useResizeTable.default)(hooks);
23
- (0, _react.useEffect)(function () {
24
- _settings.pkg.checkReportFeatureEnabled('Datagrid.useInfiniteScroll');
25
- }, []);
26
22
  var useInstance = function useInstance(instance) {
27
23
  var isFetching = instance.isFetching,
28
24
  tableHeight = instance.tableHeight,
@@ -30,6 +30,7 @@ var defaults = {
30
30
  CreateTearsheet: true,
31
31
  CreateTearsheetStep: true,
32
32
  CreateTearsheetDivider: true,
33
+ Datagrid: true,
33
34
  EditInPlace: true,
34
35
  EmptyState: true,
35
36
  ErrorEmptyState: true,
@@ -68,7 +69,6 @@ var defaults = {
68
69
  EditSidePanel: false,
69
70
  CancelableTextEdit: false,
70
71
  DataSpreadsheet: false,
71
- Datagrid: false,
72
72
  EditTearsheet: false,
73
73
  EditTearsheetForm: false,
74
74
  EditTearsheetNarrow: false,
@@ -83,12 +83,10 @@ var defaults = {
83
83
  // feature level flags
84
84
  feature: {
85
85
  'default-portal-target-body': true,
86
- 'Datagrid.useInfiniteScroll': false,
87
86
  'Datagrid.useInlineEdit': false,
88
87
  'Datagrid.useEditableCell': false,
89
88
  'Datagrid.useExpandedRow': false,
90
89
  'Datagrid.useNestedRows': false,
91
- 'Datagrid.useActionsColumn': false,
92
90
  'Datagrid.useFiltering': false,
93
91
  'Datagrid.useCustomizeColumns': false,
94
92
  'ExampleComponent.secondaryIcon': false,
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.16.0",
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": "ed97e8fd254f759b49c99165ded03c0105389b99"
98
+ "gitHead": "db5d0bf119aba0a96d0ded89ac54647adfba2686"
100
99
  }
@@ -6,12 +6,12 @@
6
6
  //
7
7
 
8
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
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
11
  * that will change depending on the selected theme.
12
- *
12
+ *
13
13
  * We are triggering a *large* amount of linting errors.
14
- * So, we're using the following "disable" rules for the entire file
14
+ * So, we're using the following "disable" rules for the entire file
15
15
  * instead of many individual rules.
16
16
  */
17
17
 
@@ -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';
@@ -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
- }
@@ -1,32 +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';
11
- @use '../../global/decorators/side-panel-decorator' as *;
12
-
13
- $block-class: #{c4p-settings.$pkg-prefix}--create-side-panel;
14
- $story-prefix: create-side-panel-stories__;
15
-
16
- .#{$story-prefix}example-container {
17
- display: grid;
18
- align-items: flex-end;
19
- grid-gap: spacing.$spacing-04;
20
- grid-template-columns: 1fr 1fr;
21
- }
22
-
23
- .#{$story-prefix}example-form-group .#{c4p-settings.$carbon-prefix}--label {
24
- margin-bottom: 0;
25
- }
26
-
27
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::before,
28
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
29
- background-color: $field-02;
30
- }
31
-
32
- @include side-panel-decorator($story-prefix);
@@ -1,56 +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/type';
10
- @use '@carbon/type/scss/font-family';
11
- @use '@carbon/styles/scss/spacing' as *;
12
-
13
- $preview-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step;
14
-
15
- .#{$preview-block-class}__description {
16
- @include type.type-style('body-compact-01');
17
-
18
- padding-bottom: $spacing-04;
19
- }
20
-
21
- p.#{$preview-block-class}__description:last-of-type {
22
- padding-bottom: $spacing-07;
23
- }
24
-
25
- .#{$preview-block-class}__heading {
26
- @include font-family.font-weight('semibold');
27
- }
28
-
29
- .#{$preview-block-class}
30
- .#{c4p-settings.$pkg-prefix}--tearsheet__content
31
- .#{c4p-settings.$carbon-prefix}--form-item {
32
- margin-bottom: $spacing-05;
33
- }
34
-
35
- .#{c4p-settings.$carbon-prefix}--tile-group div {
36
- display: flex;
37
- flex-wrap: wrap;
38
- }
39
-
40
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile {
41
- width: 280px;
42
- height: 240px;
43
- margin-right: $spacing-05;
44
- }
45
-
46
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile
47
- .#{c4p-settings.$pkg-prefix}--empty-state__illustration.#{c4p-settings.$pkg-prefix}--empty-state__illustration--lg {
48
- min-width: 120px;
49
- height: 120px;
50
- }
51
-
52
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile-label {
53
- position: absolute;
54
- bottom: $spacing-05;
55
- left: $spacing-05;
56
- }