@db-ux/react-core-components 1.1.1 → 1.2.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.
Files changed (35) hide show
  1. package/README.md +2 -2
  2. package/dist/components/accordion/accordion.js +0 -1
  3. package/dist/components/accordion-item/accordion-item.js +0 -1
  4. package/dist/components/badge/badge.js +0 -1
  5. package/dist/components/brand/brand.js +0 -1
  6. package/dist/components/button/button.js +0 -1
  7. package/dist/components/card/card.js +0 -1
  8. package/dist/components/checkbox/checkbox.js +0 -1
  9. package/dist/components/divider/divider.js +0 -1
  10. package/dist/components/drawer/drawer.js +0 -1
  11. package/dist/components/header/header.js +0 -1
  12. package/dist/components/icon/icon.js +0 -1
  13. package/dist/components/infotext/infotext.js +0 -1
  14. package/dist/components/input/input.js +0 -1
  15. package/dist/components/link/link.js +0 -1
  16. package/dist/components/navigation/navigation.js +0 -1
  17. package/dist/components/navigation-item/navigation-item.js +0 -1
  18. package/dist/components/notification/notification.js +0 -1
  19. package/dist/components/page/model.d.ts +4 -0
  20. package/dist/components/page/page.js +1 -2
  21. package/dist/components/popover/popover.js +0 -1
  22. package/dist/components/radio/radio.js +0 -1
  23. package/dist/components/section/section.js +0 -1
  24. package/dist/components/select/select.js +0 -1
  25. package/dist/components/stack/stack.js +0 -1
  26. package/dist/components/switch/switch.js +0 -1
  27. package/dist/components/tab-item/tab-item.js +0 -1
  28. package/dist/components/tab-list/tab-list.js +0 -1
  29. package/dist/components/tab-panel/tab-panel.js +0 -1
  30. package/dist/components/tabs/tabs.js +0 -1
  31. package/dist/components/tag/tag.js +0 -1
  32. package/dist/components/textarea/textarea.js +0 -1
  33. package/dist/components/tooltip/tooltip.js +0 -1
  34. package/dist/shared/model.d.ts +5 -5
  35. package/package.json +4 -4
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  A React library containing all styles & components of [DB UX Design System (technical components)](https://github.com/db-ux-design-system/core-web).
9
9
 
10
- > **Note:** Find more information about specific components [here](https://db-ux-design-system.github.io/core-web/review/main)
10
+ > **Note:** Find more information about specific components [here](https://design-system.deutschebahn.com/core-web/review/main)
11
11
 
12
12
  ## Install
13
13
 
@@ -61,7 +61,7 @@ import { DBButton } from '@db-ux/react-core-components';
61
61
 
62
62
  ## Deutsche Bahn brand
63
63
 
64
- As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even when being used with the code that we're provide with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
64
+ As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound of clear guidelines and restrictions even if being used with the code that we're providing with this product; Deutsche Bahn fully reserves all rights regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
65
65
  Please have a look at our brand portal at <https://marketingportal.extranet.deutschebahn.com/> for any further questions and whom to contact on any brand issues.
66
66
 
67
67
  For any usage outside of Deutsche Bahn websites and applications you aren't allowed to use any Deutsche Bahn brand and
@@ -89,5 +89,4 @@ function DBAccordionFn(props, component) {
89
89
  props.items ? (React.createElement(React.Fragment, null, (_a = convertItems(props.items)) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(DBAccordionItem, { key: `accordion-item-${index}`, headlinePlain: item.headlinePlain, disabled: item.disabled, text: item.text }))))) : null));
90
90
  }
91
91
  const DBAccordion = forwardRef(DBAccordionFn);
92
- DBAccordion.defaultProps = {};
93
92
  export default DBAccordion;
@@ -31,5 +31,4 @@ function DBAccordionItemFn(props, component) {
31
31
  React.createElement("div", null, props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)))));
32
32
  }
33
33
  const DBAccordionItem = forwardRef(DBAccordionItemFn);
34
- DBAccordionItem.defaultProps = {};
35
34
  export default DBAccordionItem;
@@ -29,5 +29,4 @@ function DBBadgeFn(props, component) {
29
29
  return (React.createElement("span", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-badge", props.className), "data-semantic": props.semantic, "data-size": props.size, "data-emphasis": props.emphasis, "data-placement": props.placement, "data-label": ((_a = props.placement) === null || _a === void 0 ? void 0 : _a.startsWith("corner")) && ((_b = props.label) !== null && _b !== void 0 ? _b : DEFAULT_LABEL) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
30
30
  }
31
31
  const DBBadge = forwardRef(DBBadgeFn);
32
- DBBadge.defaultProps = {};
33
32
  export default DBBadge;
@@ -10,5 +10,4 @@ function DBBrandFn(props, component) {
10
10
  return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { "data-icon": props.hideLogo ? "none" : (_a = props.icon) !== null && _a !== void 0 ? _a : DEFAULT_ICON, "data-hide-icon": getHideProp(props.showIcon), id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-brand", props.className) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
11
11
  }
12
12
  const DBBrand = forwardRef(DBBrandFn);
13
- DBBrand.defaultProps = {};
14
13
  export default DBBrand;
@@ -13,5 +13,4 @@ function DBButtonFn(props, component) {
13
13
  return (React.createElement("button", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-button", props.className), type: props.type || "button", disabled: props.disabled, "aria-label": props.label, "data-icon": props.icon, "data-hide-icon": getHideProp(props.showIcon), "data-size": props.size, "data-state": props.state, "data-width": props.width, "data-variant": props.variant, "data-no-text": getBooleanAsString(props.noText), name: props.name, value: props.value, "aria-describedby": props.describedbyid, "aria-expanded": props.ariaexpanded, "aria-pressed": props.ariapressed, onClick: (event) => handleClick(event) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
14
14
  }
15
15
  const DBButton = forwardRef(DBButtonFn);
16
- DBButton.defaultProps = {};
17
16
  export default DBButton;
@@ -13,5 +13,4 @@ function DBCardFn(props, component) {
13
13
  return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-card", props.className), "data-behavior": props.behavior, "data-elevation-level": props.elevationLevel, "data-spacing": props.spacing, role: props.behavior === "interactive" ? "button" : undefined, tabIndex: props.behavior === "interactive" ? 0 : undefined, onClick: (event) => handleClick(event) }), props.children));
14
14
  }
15
15
  const DBCard = forwardRef(DBCardFn);
16
- DBCard.defaultProps = {};
17
16
  export default DBCard;
@@ -110,5 +110,4 @@ function DBCheckboxFn(props, component) {
110
110
  React.createElement("span", { "data-visually-hidden": "true", role: "status" }, _voiceOverFallback)));
111
111
  }
112
112
  const DBCheckbox = forwardRef(DBCheckboxFn);
113
- DBCheckbox.defaultProps = {};
114
113
  export default DBCheckbox;
@@ -8,5 +8,4 @@ function DBDividerFn(props, component) {
8
8
  return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id, "data-margin": props.margin, "data-variant": props.variant, "data-emphasis": props.emphasis, "data-width": props.width }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-divider", props.className) })));
9
9
  }
10
10
  const DBDivider = forwardRef(DBDividerFn);
11
- DBDivider.defaultProps = {};
12
11
  export default DBDivider;
@@ -67,5 +67,4 @@ function DBDrawerFn(props, component) {
67
67
  React.createElement("div", { className: "db-drawer-content" }, props.children))));
68
68
  }
69
69
  const DBDrawer = forwardRef(DBDrawerFn);
70
- DBDrawer.defaultProps = {};
71
70
  export default DBDrawer;
@@ -65,5 +65,4 @@ function DBHeaderFn(props, component) {
65
65
  React.createElement(React.Fragment, null, props.secondaryAction))))));
66
66
  }
67
67
  const DBHeader = forwardRef(DBHeaderFn);
68
- DBHeader.defaultProps = {};
69
68
  export default DBHeader;
@@ -8,5 +8,4 @@ function DBIconFn(props, component) {
8
8
  return (React.createElement("span", Object.assign({ "aria-hidden": "true", ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-icon", props.className), "data-icon": props.icon, "data-icon-weight": props.weight, "data-icon-variant": props.variant }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
9
9
  }
10
10
  const DBIcon = forwardRef(DBIconFn);
11
- DBIcon.defaultProps = {};
12
11
  export default DBIcon;
@@ -9,5 +9,4 @@ function DBInfotextFn(props, component) {
9
9
  return (React.createElement("span", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-infotext", props.className), "data-icon": props.icon, "data-semantic": props.semantic, "data-size": props.size, "data-hide-icon-before": getHideProp((_a = props.showIcon) !== null && _a !== void 0 ? _a : true) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
10
10
  }
11
11
  const DBInfotext = forwardRef(DBInfotextFn);
12
- DBInfotext.defaultProps = {};
13
12
  export default DBInfotext;
@@ -116,5 +116,4 @@ function DBInputFn(props, component) {
116
116
  React.createElement("span", { "data-visually-hidden": "true", role: "status" }, _voiceOverFallback)));
117
117
  }
118
118
  const DBInput = forwardRef(DBInputFn);
119
- DBInput.defaultProps = {};
120
119
  export default DBInput;
@@ -14,5 +14,4 @@ function DBLinkFn(props, component) {
14
14
  return (React.createElement("a", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-link", props.className), href: props.href, target: props.target, rel: props.rel, role: props.role, hrefLang: props.hreflang, "aria-disabled": getBooleanAsString(props.disabled), tabIndex: props.disabled ? -1 : 0, "aria-selected": props.selected, "aria-label": props.label, "aria-current": props.current, "data-size": props.size, "data-hide-icon-after": getHideProp((_a = props.showIcon) !== null && _a !== void 0 ? _a : true), "data-variant": props.variant, "data-content": props.content || "internal", onClick: (event) => handleClick(event) }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
15
15
  }
16
16
  const DBLink = forwardRef(DBLinkFn);
17
- DBLink.defaultProps = {};
18
17
  export default DBLink;
@@ -14,5 +14,4 @@ function DBNavigationFn(props, component) {
14
14
  React.createElement("menu", null, props.children)));
15
15
  }
16
16
  const DBNavigation = forwardRef(DBNavigationFn);
17
- DBNavigation.defaultProps = {};
18
17
  export default DBNavigation;
@@ -74,5 +74,4 @@ function DBNavigationItemFn(props, component) {
74
74
  React.createElement(React.Fragment, null, props.subNavigation)))) : null));
75
75
  }
76
76
  const DBNavigationItem = forwardRef(DBNavigationItemFn);
77
- DBNavigationItem.defaultProps = {};
78
77
  export default DBNavigationItem;
@@ -22,5 +22,4 @@ function DBNotificationFn(props, component) {
22
22
  props.closeable ? (React.createElement(DBButton, { icon: "cross", variant: "ghost", size: "small", id: props.closeButtonId, noText: true, onClick: (event) => handleClose(event) }, (_a = props.closeButtonText) !== null && _a !== void 0 ? _a : DEFAULT_CLOSE_BUTTON)) : null));
23
23
  }
24
24
  const DBNotification = forwardRef(DBNotificationFn);
25
- DBNotification.defaultProps = {};
26
25
  export default DBNotification;
@@ -20,6 +20,10 @@ export type DBPageDefaultProps = {
20
20
  * The slot can be used for React to set a header.
21
21
  */
22
22
  header?: any;
23
+ /**
24
+ * Adds `class` to `<main>` element
25
+ */
26
+ mainClass?: string;
23
27
  /**
24
28
  * The variant=fixed uses flex-box to make header and footer static
25
29
  */
@@ -40,9 +40,8 @@ function DBPageFn(props, component) {
40
40
  }, []);
41
41
  return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-page", props.className), "data-variant": props.variant, "data-fade-in": props.fadeIn, "data-fonts-loaded": getBooleanAsString(fontsLoaded) }),
42
42
  React.createElement(React.Fragment, null, props.header),
43
- React.createElement("main", { className: "db-main" }, props.children),
43
+ React.createElement("main", { className: cls("db-main", props.mainClass) }, props.children),
44
44
  React.createElement(React.Fragment, null, props.footer)));
45
45
  }
46
46
  const DBPage = forwardRef(DBPageFn);
47
- DBPage.defaultProps = {};
48
47
  export default DBPage;
@@ -71,5 +71,4 @@ function DBPopoverFn(props, component) {
71
71
  React.createElement("article", { className: "db-popover-content", "data-spacing": props.spacing, "data-gap": getBooleanAsString(props.gap), "data-animation": getBooleanAsString((_a = props.animation) !== null && _a !== void 0 ? _a : true), "data-open": props.open, "data-delay": props.delay, "data-width": props.width, "data-placement": props.placement }, props.children)));
72
72
  }
73
73
  const DBPopover = forwardRef(DBPopoverFn);
74
- DBPopover.defaultProps = {};
75
74
  export default DBPopover;
@@ -46,5 +46,4 @@ function DBRadioFn(props, component) {
46
46
  props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
47
47
  }
48
48
  const DBRadio = forwardRef(DBRadioFn);
49
- DBRadio.defaultProps = {};
50
49
  export default DBRadio;
@@ -13,5 +13,4 @@ function DBSectionFn(props, component) {
13
13
  return (React.createElement("section", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: _id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-section", props.className), "data-spacing": props.spacing || "medium", "data-width": props.width }), props.children));
14
14
  }
15
15
  const DBSection = forwardRef(DBSectionFn);
16
- DBSection.defaultProps = {};
17
16
  export default DBSection;
@@ -129,5 +129,4 @@ function DBSelectFn(props, component) {
129
129
  React.createElement("span", { "data-visually-hidden": "true", role: "status" }, _voiceOverFallback)));
130
130
  }
131
131
  const DBSelect = forwardRef(DBSelectFn);
132
- DBSelect.defaultProps = {};
133
132
  export default DBSelect;
@@ -8,5 +8,4 @@ function DBStackFn(props, component) {
8
8
  return (React.createElement("div", Object.assign({ ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { id: props.id }, getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-stack", props.className), "data-gap": props.gap, "data-variant": props.variant, "data-direction": props.direction, "data-alignment": props.alignment, "data-justify-content": props.justifyContent, "data-wrap": getBooleanAsString(props.wrap) }), props.children));
9
9
  }
10
10
  const DBStack = forwardRef(DBStackFn);
11
- DBStack.defaultProps = {};
12
11
  export default DBStack;
@@ -48,5 +48,4 @@ function DBSwitchFn(props, component) {
48
48
  props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
49
49
  }
50
50
  const DBSwitch = forwardRef(DBSwitchFn);
51
- DBSwitch.defaultProps = {};
52
51
  export default DBSwitch;
@@ -34,5 +34,4 @@ function DBTabItemFn(props, component) {
34
34
  props.children)));
35
35
  }
36
36
  const DBTabItem = forwardRef(DBTabItemFn);
37
- DBTabItem.defaultProps = {};
38
37
  export default DBTabItem;
@@ -14,5 +14,4 @@ function DBTabListFn(props, component) {
14
14
  React.createElement("ul", { role: "tablist" }, props.children)));
15
15
  }
16
16
  const DBTabList = forwardRef(DBTabListFn);
17
- DBTabList.defaultProps = {};
18
17
  export default DBTabList;
@@ -11,5 +11,4 @@ function DBTabPanelFn(props, component) {
11
11
  props.children));
12
12
  }
13
13
  const DBTabPanel = forwardRef(DBTabPanelFn);
14
- DBTabPanel.defaultProps = {};
15
14
  export default DBTabPanel;
@@ -150,5 +150,4 @@ function DBTabsFn(props, component) {
150
150
  props.children));
151
151
  }
152
152
  const DBTabs = forwardRef(DBTabsFn);
153
- DBTabs.defaultProps = {};
154
153
  export default DBTabs;
@@ -43,5 +43,4 @@ function DBTagFn(props, component) {
43
43
  props.behavior === "removable" ? (React.createElement("button", { className: "db-button db-tab-remove-button", "data-icon": "cross", "data-size": "small", "data-no-text": "true", "data-variant": "ghost", onClick: (event) => handleRemove(), title: getRemoveButtonText() }, getRemoveButtonText())) : null));
44
44
  }
45
45
  const DBTag = forwardRef(DBTagFn);
46
- DBTag.defaultProps = {};
47
46
  export default DBTag;
@@ -102,5 +102,4 @@ function DBTextareaFn(props, component) {
102
102
  React.createElement("span", { "data-visually-hidden": "true", role: "status" }, _voiceOverFallback)));
103
103
  }
104
104
  const DBTextarea = forwardRef(DBTextareaFn);
105
- DBTextarea.defaultProps = {};
106
105
  export default DBTextarea;
@@ -40,5 +40,4 @@ function DBTooltipFn(props, component) {
40
40
  return (React.createElement("i", Object.assign({ role: "tooltip", "aria-hidden": "true", "data-gap": "true", ref: _ref }, filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), getRootProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font"]), { className: cls("db-tooltip", props.className), id: _id, "data-emphasis": props.emphasis, "data-animation": getBooleanAsString((_a = props.animation) !== null && _a !== void 0 ? _a : true), "data-delay": props.delay, "data-width": props.width, "data-show-arrow": getBooleanAsString((_b = props.showArrow) !== null && _b !== void 0 ? _b : true), "data-placement": props.placement, onClick: (event) => handleClick(event) }), props.children));
41
41
  }
42
42
  const DBTooltip = forwardRef(DBTooltipFn);
43
- DBTooltip.defaultProps = {};
44
43
  export default DBTooltip;
@@ -39,7 +39,7 @@ export type SemanticProps = {
39
39
  };
40
40
  export type IconProps = {
41
41
  /**
42
- * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
42
+ * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
43
43
  */
44
44
  icon?: IconTypes;
45
45
  };
@@ -52,7 +52,7 @@ export type ShowIconProps = {
52
52
  };
53
53
  export type IconAfterProps = {
54
54
  /**
55
- * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://db-ux-design-system.github.io/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
55
+ * Define an icon by its identifier (like e.g. _user_, compare to [Icons](https://design-system.deutschebahn.com/core-web/review/main/foundations/icons/overview)) to get displayed in front of the elements content.
56
56
  */
57
57
  iconAfter?: IconTypes;
58
58
  };
@@ -62,7 +62,7 @@ export type SpacingProps = {
62
62
  /**
63
63
  * The spacing attribute changes the padding of the component.
64
64
  */
65
- spacing?: SpacingType;
65
+ spacing?: SpacingType | string;
66
66
  };
67
67
  export declare const MarginList: readonly ["medium", "small", "large", "none"];
68
68
  export type MarginType = (typeof MarginList)[number];
@@ -117,7 +117,7 @@ export type WidthProps = {
117
117
  /**
118
118
  * Width of the component. Auto width based on children size, full width based on parent elements width.
119
119
  */
120
- width?: WidthType;
120
+ width?: WidthType | string;
121
121
  };
122
122
  export declare const MaxWidthList: readonly ["full", "medium", "large", "small"];
123
123
  export type MaxWidthType = (typeof MaxWidthList)[number];
@@ -379,7 +379,7 @@ export type AlignmentProps = {
379
379
  /**
380
380
  * Define the content alignment in full width
381
381
  */
382
- alignment?: AlignmentType;
382
+ alignment?: AlignmentType | string;
383
383
  };
384
384
  export type ActiveProps = {
385
385
  /**
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@db-ux/react-core-components",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "React components for @db-ux/core-components",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "https://github.com/db-ux-design-system/core-web.git"
7
+ "url": "git+https://github.com/db-ux-design-system/core-web.git"
8
8
  },
9
9
  "license": "Apache-2.0",
10
10
  "main": "./dist/index.js",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "sideEffects": false,
39
39
  "dependencies": {
40
- "@db-ux/core-components": "1.1.1",
41
- "@db-ux/core-foundations": "1.1.1"
40
+ "@db-ux/core-components": "1.2.0",
41
+ "@db-ux/core-foundations": "1.2.0"
42
42
  }
43
43
  }