@db-ux/react-core-components 2.4.0-0-af2a02f → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion-item/accordion-item.d.ts +1 -1
- package/dist/components/accordion-item/accordion-item.js +1 -1
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +2 -2
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/brand/brand.d.ts +1 -1
- package/dist/components/brand/brand.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -6
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +2 -2
- package/dist/components/custom-select/custom-select.d.ts +1 -1
- package/dist/components/custom-select/custom-select.js +9 -9
- package/dist/components/custom-select/model.d.ts +1 -1
- package/dist/components/drawer/drawer.d.ts +1 -1
- package/dist/components/drawer/drawer.js +17 -4
- package/dist/components/drawer/model.d.ts +11 -2
- package/dist/components/drawer/model.js +1 -0
- package/dist/components/header/header.d.ts +1 -1
- package/dist/components/header/header.js +2 -2
- package/dist/components/header/model.d.ts +6 -6
- package/dist/components/infotext/infotext.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +3 -3
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +1 -6
- package/dist/components/navigation/navigation.js +1 -1
- package/dist/components/navigation-item/navigation-item.js +2 -2
- package/dist/components/notification/model.d.ts +3 -3
- package/dist/components/notification/notification.d.ts +1 -1
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +2 -2
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/section/section.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/tab-list/tab-list.js +1 -1
- package/dist/components/tabs/model.d.ts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.js +1 -1
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +3 -3
- package/dist/index.d.ts +15 -16
- package/dist/index.js +15 -16
- package/dist/shared/model.d.ts +12 -3
- package/dist/utils/floating-components.js +1 -1
- package/package.json +4 -4
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_ID } from "../../shared/constants";
|
|
5
6
|
import { cls, uuid } from "../../utils";
|
|
6
7
|
import DBAccordionItem from "../accordion-item/accordion-item";
|
|
7
|
-
import { DEFAULT_ID } from "../../shared/constants";
|
|
8
8
|
function DBAccordionFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBAccordionItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "name" | "text" | "disabled" | keyof import("../../shared/model").GlobalProps |
|
|
2
|
+
declare const DBAccordionItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "name" | "text" | "disabled" | "defaultOpen" | "headline" | "headlinePlain" | keyof import("../../shared/model").GlobalProps | keyof import("../../shared/model").ToggleEventProps> & {
|
|
3
3
|
defaultOpen?: boolean;
|
|
4
4
|
disabled?: boolean | string;
|
|
5
5
|
headline?: any;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, getBooleanAsString, uuid } from "../../utils";
|
|
6
5
|
import { DEFAULT_ID } from "../../shared/constants";
|
|
6
|
+
import { cls, getBooleanAsString, uuid } from "../../utils";
|
|
7
7
|
function DBAccordionItemFn(props, component) {
|
|
8
8
|
const _ref = component || useRef(component);
|
|
9
9
|
const [_id, set_id] = useState(() => DEFAULT_ID);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBBadge: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "size" | keyof import("../..").GlobalProps |
|
|
2
|
+
declare const DBBadge: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "size" | keyof import("../..").GlobalProps | keyof import("./model").DBBadgeDefaultProps | "semantic" | "emphasis"> & import("./model").DBBadgeDefaultProps & import("../..").GlobalProps & import("../..").SemanticProps & import("../..").SizeProps & import("../..").EmphasisProps & import("../..").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBBadge;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls } from "../../utils";
|
|
6
5
|
import { DEFAULT_LABEL } from "../../shared/constants";
|
|
6
|
+
import { cls } from "../../utils";
|
|
7
7
|
function DBBadgeFn(props, component) {
|
|
8
8
|
var _a, _b;
|
|
9
9
|
const _ref = component || useRef(component);
|
|
@@ -21,7 +21,7 @@ function DBBadgeFn(props, component) {
|
|
|
21
21
|
parent = parent.parentElement;
|
|
22
22
|
}
|
|
23
23
|
if (parent) {
|
|
24
|
-
parent.
|
|
24
|
+
parent.dataset["hasBadge"] = "true";
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps,
|
|
1
|
+
import { EmphasisProps, GlobalProps, GlobalState, InitializedState, SemanticProps, SizeProps, TextProps } from '../../shared/model';
|
|
2
2
|
export declare const BadgePlacementList: readonly ["inline", "corner-top-left", "corner-top-right", "corner-center-left", "corner-center-right", "corner-bottom-left", "corner-bottom-right"];
|
|
3
3
|
export type BadgePlacementType = (typeof BadgePlacementList)[number];
|
|
4
4
|
export type DBBadgeDefaultProps = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBBrand: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "icon" | keyof import("../..").GlobalProps | "
|
|
2
|
+
declare const DBBrand: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "icon" | keyof import("../..").GlobalProps | "hideLogo" | "showIcon"> & import("./model").DBBrandDefaultProps & import("../..").GlobalProps & import("../..").IconProps & import("../..").ShowIconProps & import("../..").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBBrand;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useRef, forwardRef } from "react";
|
|
5
|
-
import { cls, getHideProp } from "../../utils";
|
|
6
5
|
import { DEFAULT_ICON } from "../../shared/constants";
|
|
6
|
+
import { cls, getHideProp } from "../../utils";
|
|
7
7
|
function DBBrandFn(props, component) {
|
|
8
8
|
var _a;
|
|
9
9
|
const _ref = component || useRef(component);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<any>, "width" | "text" | "size" | "icon" | "onClick" | keyof import("
|
|
2
|
+
declare const DBButton: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<any>, "width" | "text" | "size" | "icon" | "onClick" | keyof import("../..").GlobalProps | "showIcon" | keyof import("./model").DBButtonDefaultProps> & import("./model").DBButtonDefaultProps & import("../..").GlobalProps & import("../..").ClickEventProps<HTMLButtonElement> & import("../..").IconProps & import("../..").WidthProps & import("../..").SizeProps & import("../..").ShowIconProps & import("../..").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBButton;
|
|
@@ -5,12 +5,7 @@ import { useRef, forwardRef } from "react";
|
|
|
5
5
|
import { cls, getBoolean, getBooleanAsString, getHideProp } from "../../utils";
|
|
6
6
|
function DBButtonFn(props, component) {
|
|
7
7
|
const _ref = component || useRef(component);
|
|
8
|
-
|
|
9
|
-
if (props.onClick) {
|
|
10
|
-
props.onClick(event);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
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: getBoolean(props.disabled, "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, form: props.form, 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)));
|
|
8
|
+
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: getBoolean(props.disabled, "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, form: props.form, value: props.value, "aria-describedby": props.describedbyid, "aria-expanded": props.ariaexpanded, "aria-pressed": props.ariapressed }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
|
|
14
9
|
}
|
|
15
10
|
const DBButton = forwardRef(DBButtonFn);
|
|
16
11
|
export default DBButton;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBCheckbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "
|
|
2
|
+
declare const DBCheckbox: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "value" | "size" | "checked" | keyof import("../../shared/model").GlobalProps | "indeterminate" | keyof import("../../shared/model").ChangeEventProps<HTMLInputElement> | keyof import("../../shared/model").FocusEventProps<HTMLInputElement> | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | keyof import("../../shared/model").FormMessageProps> & import("./model").DBCheckboxDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").ChangeEventProps<HTMLInputElement> & import("../../shared/model").FocusEventProps<HTMLInputElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").FormCheckProps & import("../../shared/model").FormMessageProps & import("../../shared/model").SizeProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBCheckbox;
|
|
@@ -3,8 +3,8 @@ import * as React from "react";
|
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
5
|
import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
6
|
-
import DBInfotext from "../infotext/infotext";
|
|
7
6
|
import { cls, delay, getBoolean, getHideProp, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
7
|
+
import DBInfotext from "../infotext/infotext";
|
|
8
8
|
function DBCheckboxFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
@@ -112,7 +112,7 @@ function DBCheckboxFn(props, component) {
|
|
|
112
112
|
}, [initialized, _ref.current, props.checked]);
|
|
113
113
|
return (React.createElement("div", Object.assign({}, 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-checkbox", props.className), "data-size": props.size, "data-hide-label": getHideProp(props.showLabel) }),
|
|
114
114
|
React.createElement("label", { htmlFor: _id },
|
|
115
|
-
React.createElement("input", Object.assign({ type: "checkbox", "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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, name: props.name, checked: getBoolean(props.checked, "checked"), disabled: getBoolean(props.disabled, "disabled"), value: props.value, required: getBoolean(props.required, "required"), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), "aria-describedby": (_a = props.ariaDescribedBy) !== null && _a !== void 0 ? _a : _descByIds })),
|
|
115
|
+
React.createElement("input", Object.assign({ type: "checkbox", "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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, name: props.name, checked: getBoolean(props.checked, "checked"), disabled: getBoolean(props.disabled, "disabled"), value: props.value, required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), "aria-describedby": (_a = props.ariaDescribedBy) !== null && _a !== void 0 ? _a : _descByIds })),
|
|
116
116
|
props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)),
|
|
117
117
|
stringPropVisible(props.message, props.showMessage) ? (React.createElement(DBInfotext, { size: "small", icon: props.messageIcon, id: _messageId }, props.message)) : null,
|
|
118
118
|
hasValidState() ? (React.createElement(DBInfotext, { size: "small", semantic: "successful", id: _validMessageId }, props.validMessage || DEFAULT_VALID_MESSAGE)) : null,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBCustomSelect: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "
|
|
2
|
+
declare const DBCustomSelect: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "icon" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | keyof import("../../shared/model").FormMessageProps | keyof import("./model").DBCustomSelectDefaultProps | keyof import("./model").DBCustomSelectEvents> & import("../../shared/model").GlobalProps & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").FormMessageProps & import("./model").DBCustomSelectDefaultProps & import("./model").DBCustomSelectEvents & import("../../shared/model").IconProps & import("../../shared/model").ShowIconProps & import("../../shared/model").ShowLabelProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBCustomSelect;
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, delay, getBoolean, getBooleanAsString, getHideProp, getOptionKey, getSearchInput, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
6
5
|
import { DEFAULT_CLOSE_BUTTON, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_LABEL_ID_SUFFIX, DEFAULT_MESSAGE, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_REMOVE, DEFAULT_SELECT_ID_SUFFIX, DEFAULT_SELECTED, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import { cls, delay, getBoolean, getBooleanAsString, getHideProp, getOptionKey, getSearchInput, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
7
|
+
import { DocumentClickListener } from "../../utils/document-click-listener";
|
|
8
|
+
import { DocumentScrollListener } from "../../utils/document-scroll-listener";
|
|
9
|
+
import { handleFixedDropdown } from "../../utils/floating-components";
|
|
10
|
+
import DBButton from "../button/button";
|
|
9
11
|
import DBCustomSelectDropdown from "../custom-select-dropdown/custom-select-dropdown";
|
|
12
|
+
import DBCustomSelectListItem from "../custom-select-list-item/custom-select-list-item";
|
|
13
|
+
import DBCustomSelectList from "../custom-select-list/custom-select-list";
|
|
10
14
|
import DBInfotext from "../infotext/infotext";
|
|
15
|
+
import DBInput from "../input/input";
|
|
11
16
|
import DBTag from "../tag/tag";
|
|
12
|
-
import DBButton from "../button/button";
|
|
13
17
|
import DBTooltip from "../tooltip/tooltip";
|
|
14
|
-
import DBInput from "../input/input";
|
|
15
|
-
import { DocumentClickListener } from "../../utils/document-click-listener";
|
|
16
|
-
import { DocumentScrollListener } from "../../utils/document-scroll-listener";
|
|
17
|
-
import { handleFixedDropdown } from "../../utils/floating-components";
|
|
18
18
|
function DBCustomSelectFn(props, component) {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
20
20
|
props = Object.assign({ clearSelectionText: "Clear selection", showClearSelection: true }, props);
|
|
@@ -597,7 +597,7 @@ function DBCustomSelectFn(props, component) {
|
|
|
597
597
|
props.selectedType === "tag" &&
|
|
598
598
|
props.multiple
|
|
599
599
|
? "above"
|
|
600
|
-
: props.variant, "data-required": getBooleanAsString(props.required), "data-placement": props.placement, "data-selected-type": props.multiple ? props.selectedType : "text", "data-hide-label": getHideProp(props.showLabel), "data-icon": props.icon, "data-hide-icon": getHideProp(props.showIcon) }),
|
|
600
|
+
: props.variant, "data-required": getBooleanAsString(props.required), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), "data-placement": props.placement, "data-selected-type": props.multiple ? props.selectedType : "text", "data-hide-label": getHideProp(props.showLabel), "data-icon": props.icon, "data-hide-icon": getHideProp(props.showIcon) }),
|
|
601
601
|
React.createElement("label", { id: _labelId }, (_a = props.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL,
|
|
602
602
|
React.createElement("select", { role: "none", hidden: true, id: _selectId, tabIndex: -1, ref: selectRef, form: props.form, name: props.name, multiple: getBoolean(props.multiple, "multiple"), disabled: getBoolean(props.disabled, "disabled"), required: getBoolean(props.required, "required"), onChange: (event) => satisfyReact(event) }, ((_b = props.options) === null || _b === void 0 ? void 0 : _b.length) ? (React.createElement(React.Fragment, null, (_c = props.options) === null || _c === void 0 ? void 0 : _c.map((option) => (React.createElement("option", { disabled: option.disabled, value: option.value, key: getOptionKey(option, "native-select-option-") }, getOptionLabel(option)))))) : null)),
|
|
603
603
|
React.createElement("details", { ref: detailsRef, open: props.open, onToggle: (event) => handleDropdownToggle(event), onKeyDown: (event) => handleKeyboardPress(event) },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFormProps, ClickEvent, CloseEventState, CustomFormProps, DocumentScrollState, FormMessageProps, FormState, FromValidState, GeneralEvent, GlobalProps, GlobalState, IconProps, InputEvent, InteractionEvent, PlacementVerticalType, RequiredProps, ShowIconProps, ShowLabelProps, ValidationType, WidthType } from '../../shared/model';
|
|
2
|
-
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
3
2
|
import { CustomSelectDropdownWidthType } from '../custom-select-dropdown/model';
|
|
3
|
+
import { DBCustomSelectFormFieldDefaultProps } from '../custom-select-form-field/model';
|
|
4
4
|
import { DBCustomSelectListItemExtraProps } from '../custom-select-list-item/model';
|
|
5
5
|
export type CustomSelectOptionType = {
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ClickEvent, GeneralKeyboardEvent } from "../../shared/model";
|
|
3
|
-
declare const DBDrawer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "spacing" | keyof import("../../shared/model").GlobalProps | keyof import("
|
|
3
|
+
declare const DBDrawer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "spacing" | keyof import("../../shared/model").GlobalProps | keyof import("./model").DBDrawerDefaultProps | keyof import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> | keyof import("../../shared/model").InnerCloseButtonProps> & import("./model").DBDrawerDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & import("../../shared/model").InnerCloseButtonProps & import("../../shared/model").WidthProps & import("../../shared/model").SpacingProps & React.RefAttributes<any>>;
|
|
4
4
|
export default DBDrawer;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
|
-
import { useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import DBButton from "../button/button";
|
|
4
|
+
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
6
5
|
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
|
|
7
6
|
import { cls, delay, getBooleanAsString, isKeyboardEvent } from "../../utils";
|
|
7
|
+
import DBButton from "../button/button";
|
|
8
8
|
function DBDrawerFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
11
11
|
const dialogContainerRef = useRef(null);
|
|
12
|
+
const [initialized, setInitialized] = useState(() => false);
|
|
12
13
|
function handleClose(event, forceClose) {
|
|
13
14
|
var _a;
|
|
14
15
|
if (!event)
|
|
@@ -44,7 +45,9 @@ function DBDrawerFn(props, component) {
|
|
|
44
45
|
if (dialogContainerRef.current) {
|
|
45
46
|
dialogContainerRef.current.hidden = false;
|
|
46
47
|
}
|
|
47
|
-
if (props.
|
|
48
|
+
if (props.position === "absolute" ||
|
|
49
|
+
props.backdrop === "none" ||
|
|
50
|
+
props.variant === "inside") {
|
|
48
51
|
_ref.current.show();
|
|
49
52
|
}
|
|
50
53
|
else {
|
|
@@ -67,11 +70,21 @@ function DBDrawerFn(props, component) {
|
|
|
67
70
|
}
|
|
68
71
|
useEffect(() => {
|
|
69
72
|
handleDialogOpen();
|
|
73
|
+
setInitialized(true);
|
|
70
74
|
}, []);
|
|
71
75
|
useEffect(() => {
|
|
72
76
|
handleDialogOpen();
|
|
73
77
|
}, [props.open]);
|
|
74
|
-
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
if (_ref.current && initialized && props.position === "absolute") {
|
|
80
|
+
const refElement = _ref.current;
|
|
81
|
+
const parent = refElement.parentElement;
|
|
82
|
+
if (parent) {
|
|
83
|
+
parent.style.position = "relative";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}, [_ref.current, initialized, props.position]);
|
|
87
|
+
return (React.createElement("dialog", Object.assign({ className: "db-drawer", id: props.id, 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", "onClose"]), { onClick: (event) => handleClose(event), onKeyDown: (event) => handleClose(event), "data-position": props.position, "data-backdrop": props.backdrop, "data-direction": props.direction, "data-variant": props.variant }),
|
|
75
88
|
React.createElement("article", Object.assign({ ref: dialogContainerRef }, 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-drawer-container", props.className), "data-spacing": props.spacing, "data-width": props.width, "data-direction": props.direction, "data-rounded": getBooleanAsString(props.rounded) }),
|
|
76
89
|
React.createElement("header", { className: "db-drawer-header" },
|
|
77
90
|
React.createElement("div", { className: "db-drawer-header-text" },
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
2
2
|
export declare const DrawerBackdropList: readonly ["none", "strong", "weak", "invisible"];
|
|
3
3
|
export type DrawerBackdropType = (typeof DrawerBackdropList)[number];
|
|
4
4
|
export declare const DrawerDirectionList: readonly ["left", "right", "up", "down"];
|
|
5
5
|
export type DrawerDirectionType = (typeof DrawerDirectionList)[number];
|
|
6
6
|
export declare const DrawerVariantList: readonly ["modal", "inside"];
|
|
7
7
|
export type DrawerVariantType = (typeof DrawerVariantList)[number];
|
|
8
|
+
export declare const DrawerPositionList: readonly ["fixed", "absolute"];
|
|
9
|
+
export type DrawerPositionType = (typeof DrawerPositionList)[number];
|
|
8
10
|
export type DBDrawerDefaultProps = {
|
|
9
11
|
/**
|
|
10
12
|
* The backdrop attribute changes the opacity of the backdrop.
|
|
@@ -33,9 +35,16 @@ export type DBDrawerDefaultProps = {
|
|
|
33
35
|
* Set the variant modal|inside. Defaults to modal.
|
|
34
36
|
*/
|
|
35
37
|
variant?: DrawerVariantType;
|
|
38
|
+
/**
|
|
39
|
+
* The position attribute changes the css-position (fixed or absolute) of the drawer.
|
|
40
|
+
*
|
|
41
|
+
* - `fixed` (default): Renders with `showModal()`, creating a true modal with a focus trap.
|
|
42
|
+
* - `absolute`: Renders with `show()`, acting as a simple overlay **without** a focus trap.
|
|
43
|
+
*/
|
|
44
|
+
position?: DrawerPositionType;
|
|
36
45
|
};
|
|
37
46
|
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
38
47
|
export type DBDrawerDefaultState = {
|
|
39
48
|
handleDialogOpen: () => void;
|
|
40
49
|
};
|
|
41
|
-
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement
|
|
50
|
+
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | keyof import("../..").GlobalProps | keyof import("
|
|
2
|
+
declare const DBHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | keyof import("../..").GlobalProps | keyof import("../..").ToggleEventProps | keyof import("./model").DBHeaderDefaultProps> & import("./model").DBHeaderDefaultProps & import("../..").GlobalProps & import("../..").ToggleEventProps & import("../..").ContainerWidthProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBHeader;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_BURGER_MENU, DEFAULT_ID } from "../../shared/constants";
|
|
5
6
|
import { addAttributeToChildren, cls, getBoolean, uuid } from "../../utils";
|
|
7
|
+
import { isEventTargetNavigationItem } from "../../utils/navigation";
|
|
6
8
|
import DBButton from "../button/button";
|
|
7
9
|
import DBDrawer from "../drawer/drawer";
|
|
8
|
-
import { DEFAULT_BURGER_MENU, DEFAULT_ID } from "../../shared/constants";
|
|
9
|
-
import { isEventTargetNavigationItem } from "../../utils/navigation";
|
|
10
10
|
function DBHeaderFn(props, component) {
|
|
11
11
|
var _a;
|
|
12
12
|
const _ref = component || useRef(component);
|
|
@@ -6,20 +6,20 @@ export type DBHeaderDefaultProps = {
|
|
|
6
6
|
brand?: any;
|
|
7
7
|
/**
|
|
8
8
|
* Slot to pass in a meta navigation.
|
|
9
|
-
* Desktop: Above the regular header
|
|
10
|
-
* Mobile: Inside the drawer
|
|
9
|
+
* - Desktop: Above the regular header
|
|
10
|
+
* - Mobile: Inside the drawer
|
|
11
11
|
*/
|
|
12
12
|
metaNavigation?: any;
|
|
13
13
|
/**
|
|
14
14
|
* Slot to pass one or more elements like DBButton (e.g. search) as primary action.
|
|
15
|
-
* Desktop: Shown next to the main-navigation
|
|
16
|
-
* Mobile: Shown next to the brand
|
|
15
|
+
* - Desktop: Shown next to the main-navigation
|
|
16
|
+
* - Mobile: Shown next to the brand
|
|
17
17
|
*/
|
|
18
18
|
primaryAction?: any;
|
|
19
19
|
/**
|
|
20
20
|
* Slot to pass one or more elements like DBButton (e.g. profile, language, etc.) as secondary action.
|
|
21
|
-
* Desktop: Shown
|
|
22
|
-
* Mobile: Shown inside the drawer at the bottom.
|
|
21
|
+
* - Desktop: Shown separated by divider at the end of the header
|
|
22
|
+
* - Mobile: Shown inside the drawer at the bottom.
|
|
23
23
|
*/
|
|
24
24
|
secondaryAction?: any;
|
|
25
25
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBInfotext: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "size" | "icon" | keyof import("../..").GlobalProps | "
|
|
2
|
+
declare const DBInfotext: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "size" | "icon" | keyof import("../..").GlobalProps | "semantic" | "showIcon"> & import("../..").GlobalProps & import("../..").SemanticProps & import("../..").IconProps & import("../..").SizeProps & import("../..").ShowIconProps & import("../..").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBInfotext;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "
|
|
2
|
+
declare const DBInput: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "value" | "size" | "icon" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("../../shared/model").ChangeEventProps<HTMLInputElement> | keyof import("../../shared/model").FocusEventProps<HTMLInputElement> | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | keyof import("../../shared/model").FormMessageProps | keyof import("./model").DBInputDefaultProps | keyof import("../../shared/model").FormTextProps | keyof import("../../shared/model").InputEventProps<HTMLInputElement> | "iconAfter"> & import("./model").DBInputDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").FormTextProps & import("../../shared/model").InputEventProps<HTMLInputElement> & import("../../shared/model").ChangeEventProps<HTMLInputElement> & import("../../shared/model").FocusEventProps<HTMLInputElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").IconProps & import("../../shared/model").IconAfterProps & import("../../shared/model").FormMessageProps & import("../../shared/model").ShowIconProps & import("../../shared/model").FormSizeProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBInput;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, delay, getBoolean, getHideProp, getNumber, hasVoiceOver, isArrayOfStrings, stringPropVisible, uuid, getInputValue, } from "../../utils";
|
|
6
5
|
import { DEFAULT_DATALIST_ID_SUFFIX, DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
6
|
+
import { cls, delay, getBoolean, getHideProp, getInputValue, getNumber, hasVoiceOver, isArrayOfStrings, stringPropVisible, uuid, } from "../../utils";
|
|
7
7
|
import DBInfotext from "../infotext/infotext";
|
|
8
8
|
function DBInputFn(props, component) {
|
|
9
9
|
var _a, _b, _c, _d;
|
|
@@ -115,9 +115,9 @@ function DBInputFn(props, component) {
|
|
|
115
115
|
}, [props.value]);
|
|
116
116
|
return (React.createElement("div", Object.assign({}, 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-input", props.className), "data-variant": props.variant, "data-hide-label": getHideProp(props.showLabel), "data-hide-icon": getHideProp(props.showIcon), "data-icon": props.icon, "data-icon-after": props.iconAfter, "data-hide-icon-after": getHideProp(props.showIcon) }),
|
|
117
117
|
React.createElement("label", { htmlFor: _id }, (_a = props.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL),
|
|
118
|
-
React.createElement("input", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, "data-field-sizing": props.fieldSizing, 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, name: props.name, type: props.type || "text", placeholder: (_b = props.placeholder) !== null && _b !== void 0 ? _b : DEFAULT_PLACEHOLDER, disabled: getBoolean(props.disabled, "disabled"), required: getBoolean(props.required, "required"), step: getNumber(props.step), value: props.value, maxLength: getNumber(props.maxLength, props.maxlength), minLength: getNumber(props.minLength, props.minlength), max: getInputValue(props.max, props.type), min: getInputValue(props.min, props.type), readOnly: getBoolean(props.readOnly, "readOnly") ||
|
|
118
|
+
React.createElement("input", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, "data-field-sizing": props.fieldSizing, 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, name: props.name, type: props.type || "text", placeholder: (_b = props.placeholder) !== null && _b !== void 0 ? _b : DEFAULT_PLACEHOLDER, disabled: getBoolean(props.disabled, "disabled"), required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), step: getNumber(props.step), value: props.value, maxLength: getNumber(props.maxLength, props.maxlength), minLength: getNumber(props.minLength, props.minlength), max: getInputValue(props.max, props.type), min: getInputValue(props.min, props.type), readOnly: getBoolean(props.readOnly, "readOnly") ||
|
|
119
119
|
getBoolean(props.readonly, "readonly"), form: props.form, pattern: props.pattern, size: props.size, autoComplete: props.autocomplete, autoFocus: getBoolean(props.autofocus, "autofocus"), onInput: (event) => handleInput(event), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), list: props.dataList && _dataListId, "aria-describedby": (_c = props.ariaDescribedBy) !== null && _c !== void 0 ? _c : _descByIds })),
|
|
120
|
-
props.dataList ? (React.createElement("datalist", { id: _dataListId }, (_d = getDataList()) === null || _d === void 0 ? void 0 : _d.map((option) => (React.createElement("option", { key: _dataListId + "-option-" + option.value, value: option.value
|
|
120
|
+
props.dataList ? (React.createElement("datalist", { id: _dataListId }, (_d = getDataList()) === null || _d === void 0 ? void 0 : _d.map((option) => (React.createElement("option", { key: _dataListId + "-option-" + option.value, value: option.value }, option.label))))) : null,
|
|
121
121
|
props.children,
|
|
122
122
|
stringPropVisible(props.message, props.showMessage) ? (React.createElement(DBInfotext, { size: "small", icon: props.messageIcon, id: _messageId }, props.message)) : null,
|
|
123
123
|
hasValidState() ? (React.createElement(DBInfotext, { size: "small", semantic: "successful", id: _validMessageId }, props.validMessage || DEFAULT_VALID_MESSAGE)) : null,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBLink: React.ForwardRefExoticComponent<Omit<React.AnchorHTMLAttributes<any>, "text" | "onClick" | keyof import("
|
|
2
|
+
declare const DBLink: React.ForwardRefExoticComponent<Omit<React.AnchorHTMLAttributes<any>, "text" | "onClick" | keyof import("../..").GlobalProps | "showIcon" | keyof import("./model").DBLinkDefaultProps | keyof import("../..").LinkProps> & import("./model").DBLinkDefaultProps & import("../..").GlobalProps & import("../..").ClickEventProps<HTMLAnchorElement> & import("../..").LinkProps & import("../..").ShowIconProps & import("../..").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBLink;
|
|
@@ -6,12 +6,7 @@ import { cls, getBooleanAsString, getHideProp } from "../../utils";
|
|
|
6
6
|
function DBLinkFn(props, component) {
|
|
7
7
|
var _a;
|
|
8
8
|
const _ref = component || useRef(component);
|
|
9
|
-
|
|
10
|
-
if (props.onClick) {
|
|
11
|
-
props.onClick(event);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
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": getBooleanAsString(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)));
|
|
9
|
+
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": getBooleanAsString(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" }), props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)));
|
|
15
10
|
}
|
|
16
11
|
const DBLink = forwardRef(DBLinkFn);
|
|
17
12
|
export default DBLink;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, uuid } from "../../utils";
|
|
6
5
|
import { DEFAULT_ID } from "../../shared/constants";
|
|
6
|
+
import { cls, uuid } from "../../utils";
|
|
7
7
|
function DBNavigationFn(props, component) {
|
|
8
8
|
const _ref = component || useRef(component);
|
|
9
9
|
const [_id, set_id] = useState(() => DEFAULT_ID);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import
|
|
5
|
+
import { DEFAULT_BACK } from "../../shared/constants";
|
|
6
6
|
import { cls, delay, getBoolean, getBooleanAsString, getHideProp, uuid, } from "../../utils";
|
|
7
7
|
import { isEventTargetNavigationItem, NavigationItemSafeTriangle, } from "../../utils/navigation";
|
|
8
|
-
import
|
|
8
|
+
import DBButton from "../button/button";
|
|
9
9
|
function DBNavigationItemFn(props, component) {
|
|
10
10
|
var _a;
|
|
11
11
|
const _ref = component || useRef(component);
|
|
@@ -46,9 +46,9 @@ export type DBNotificationDefaultProps = {
|
|
|
46
46
|
showTimestamp?: boolean | string;
|
|
47
47
|
/**
|
|
48
48
|
* The variant attribute changes the styling of the notification.
|
|
49
|
-
* The docked notifications are used e.g. between header and main content to show a global alert.
|
|
50
|
-
* The standalone notifications are used e.g. inside a form to show an alert for a specific field.
|
|
51
|
-
* The overlay notifications are used for absolute and floating notifications like snackbars etc.
|
|
49
|
+
* - The docked notifications are used e.g. between header and main content to show a global alert.
|
|
50
|
+
* - The standalone notifications are used e.g. inside a form to show an alert for a specific field.
|
|
51
|
+
* - The overlay notifications are used for absolute and floating notifications like snackbars etc.
|
|
52
52
|
*/
|
|
53
53
|
variant?: NotificationVariantType;
|
|
54
54
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { ClickEvent } from "../../shared/model";
|
|
3
|
-
declare const DBNotification: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "icon" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("
|
|
3
|
+
declare const DBNotification: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "text" | "icon" | keyof import("../../shared/model").GlobalProps | "semantic" | "showIcon" | keyof import("../../shared/model").PopoverProps | keyof import("../../shared/model").InnerCloseButtonProps | keyof import("./model").DBNotificationDefaultProps | keyof import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement>>> & import("./model").DBNotificationDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").CloseEventProps<ClickEvent<HTMLButtonElement>> & import("../../shared/model").IconProps & import("../../shared/model").SemanticProps & import("../../shared/model").InnerCloseButtonProps & import("../../shared/model").PopoverProps & import("../../shared/model").ShowIconProps & import("../../shared/model").TextProps & React.RefAttributes<any>>;
|
|
4
4
|
export default DBNotification;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useRef, forwardRef } from "react";
|
|
5
|
-
import DBButton from "../button/button";
|
|
6
5
|
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
|
|
7
6
|
import { cls, getBoolean, getHideProp, stringPropVisible } from "../../utils";
|
|
7
|
+
import DBButton from "../button/button";
|
|
8
8
|
function DBNotificationFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBPopover: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "gap" | "spacing" | keyof import("../..").GlobalProps | keyof import("../..").PopoverProps |
|
|
2
|
+
declare const DBPopover: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "gap" | "spacing" | keyof import("../..").GlobalProps | "placement" | keyof import("../..").PopoverProps | keyof import("./model").DBPopoverDefaultProps> & import("./model").DBPopoverDefaultProps & import("../..").GlobalProps & import("../..").SpacingProps & import("../..").PlacementProps & import("../..").GapProps & import("../..").PopoverProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBPopover;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, delay as utilsDelay
|
|
6
|
-
import { handleFixedPopover } from "../../utils/floating-components";
|
|
5
|
+
import { cls, getBooleanAsString, delay as utilsDelay } from "../../utils";
|
|
7
6
|
import { DocumentScrollListener } from "../../utils/document-scroll-listener";
|
|
7
|
+
import { handleFixedPopover } from "../../utils/floating-components";
|
|
8
8
|
function DBPopoverFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBRadio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "
|
|
2
|
+
declare const DBRadio: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "value" | "size" | "checked" | keyof import("../../shared/model").GlobalProps | keyof import("../../shared/model").ChangeEventProps<HTMLInputElement> | keyof import("../../shared/model").FocusEventProps<HTMLInputElement> | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel"> & import("../../shared/model").GlobalProps & import("../../shared/model").ChangeEventProps<HTMLInputElement> & import("../../shared/model").FocusEventProps<HTMLInputElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").FormCheckProps & import("../../shared/model").SizeProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBRadio;
|
|
@@ -34,7 +34,7 @@ function DBRadioFn(props, component) {
|
|
|
34
34
|
}
|
|
35
35
|
}, [initialized, _ref.current, props.checked]);
|
|
36
36
|
return (React.createElement("label", Object.assign({ "data-size": props.size, "data-hide-label": getHideProp(props.showLabel) }, 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-radio", props.className), htmlFor: _id }),
|
|
37
|
-
React.createElement("input", Object.assign({ type: "radio", "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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, name: props.name, checked: getBoolean(props.checked, "checked"), disabled: getBoolean(props.disabled, "disabled"), "aria-describedby": (_a = props.describedbyid) !== null && _a !== void 0 ? _a : props.ariaDescribedBy, value: props.value, required: getBoolean(props.required, "required"), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
37
|
+
React.createElement("input", Object.assign({ type: "radio", "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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, name: props.name, checked: getBoolean(props.checked, "checked"), disabled: getBoolean(props.disabled, "disabled"), "aria-describedby": (_a = props.describedbyid) !== null && _a !== void 0 ? _a : props.ariaDescribedBy, value: props.value, required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
38
38
|
props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
|
|
39
39
|
}
|
|
40
40
|
const DBRadio = forwardRef(DBRadioFn);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, uuid } from "../../utils";
|
|
6
5
|
import { DEFAULT_ID } from "../../shared/constants";
|
|
6
|
+
import { cls, uuid } from "../../utils";
|
|
7
7
|
function DBSectionFn(props, component) {
|
|
8
8
|
const _ref = component || useRef(component);
|
|
9
9
|
const [_id, set_id] = useState(() => DEFAULT_ID);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBSelect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<any>, "
|
|
2
|
+
declare const DBSelect: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<any>, "value" | "size" | "icon" | "onClick" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | keyof import("../../shared/model").FormMessageProps | keyof import("../../shared/model").ChangeEventProps<HTMLSelectElement> | keyof import("../../shared/model").FocusEventProps<HTMLSelectElement> | keyof import("../../shared/model").InputEventProps<HTMLSelectElement> | keyof import("./model").DBSelectDefaultProps> & import("../../shared/model").GlobalProps & import("../../shared/model").ClickEventProps<HTMLSelectElement> & import("../../shared/model").ChangeEventProps<HTMLSelectElement> & import("../../shared/model").FocusEventProps<HTMLSelectElement> & import("../../shared/model").InputEventProps<HTMLSelectElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").IconProps & import("../../shared/model").FormMessageProps & import("./model").DBSelectDefaultProps & import("../../shared/model").ShowIconProps & import("../../shared/model").FormSizeProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBSelect;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, delay, getBoolean, getHideProp, getOptionKey, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
6
5
|
import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER_ID_SUFFIX, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
6
|
+
import { cls, delay, getBoolean, getHideProp, getOptionKey, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
7
7
|
import DBInfotext from "../infotext/infotext";
|
|
8
8
|
function DBSelectFn(props, component) {
|
|
9
9
|
var _a, _b, _c, _d, _e;
|
|
@@ -121,7 +121,7 @@ function DBSelectFn(props, component) {
|
|
|
121
121
|
}, [props.value]);
|
|
122
122
|
return (React.createElement("div", Object.assign({}, 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-select", props.className), "data-variant": props.variant, "data-hide-label": getHideProp(props.showLabel), "data-icon": props.icon, "data-hide-icon": getHideProp(props.showIcon) }),
|
|
123
123
|
React.createElement("label", { htmlFor: _id }, (_a = props.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL),
|
|
124
|
-
React.createElement("select", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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"]), { required: getBoolean(props.required, "required"), disabled: getBoolean(props.disabled, "disabled"), id: _id, name: props.name, size: props.size, value: props.value, autoComplete: props.autocomplete, multiple: props.multiple, onInput: (event) => handleInput(event), onClick: (event) => handleClick(event), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), "aria-describedby": (_b = props.ariaDescribedBy) !== null && _b !== void 0 ? _b : _descByIds }),
|
|
124
|
+
React.createElement("select", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, 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"]), { required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), disabled: getBoolean(props.disabled, "disabled"), id: _id, name: props.name, size: props.size, value: props.value, autoComplete: props.autocomplete, multiple: props.multiple, onInput: (event) => handleInput(event), onClick: (event) => handleClick(event), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), "aria-describedby": (_b = props.ariaDescribedBy) !== null && _b !== void 0 ? _b : _descByIds }),
|
|
125
125
|
React.createElement("option", { hidden: true }),
|
|
126
126
|
((_c = props.options) === null || _c === void 0 ? void 0 : _c.length) ? (React.createElement(React.Fragment, null, (_d = props.options) === null || _d === void 0 ? void 0 : _d.map((option) => {
|
|
127
127
|
var _a;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBSwitch: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "
|
|
2
|
+
declare const DBSwitch: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "value" | "size" | "icon" | "checked" | keyof import("../../shared/model").GlobalProps | "emphasis" | keyof import("../../shared/model").ChangeEventProps<HTMLInputElement> | keyof import("../../shared/model").FocusEventProps<HTMLInputElement> | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | "iconAfter" | "visualAid"> & import("./model").DBSwitchDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").ChangeEventProps<HTMLInputElement> & import("../../shared/model").FocusEventProps<HTMLInputElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").FormCheckProps & import("../../shared/model").EmphasisProps & import("../../shared/model").SizeProps & import("../../shared/model").IconProps & import("../../shared/model").IconAfterProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBSwitch;
|
|
@@ -36,7 +36,7 @@ function DBSwitchFn(props, component) {
|
|
|
36
36
|
}
|
|
37
37
|
}, [props.checked]);
|
|
38
38
|
return (React.createElement("label", Object.assign({ "data-visual-aid": getBooleanAsString(props.visualAid), "data-size": props.size, "data-hide-label": getHideProp(props.showLabel), "data-emphasis": props.emphasis, htmlFor: _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-switch", props.className) }),
|
|
39
|
-
React.createElement("input", Object.assign({ type: "checkbox", role: "switch", id: _id, "aria-checked": getBooleanAsString(_checked), 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"]), { checked: getBoolean(props.checked, "checked"), value: props.value, disabled: getBoolean(props.disabled, "disabled"), "aria-describedby": (_a = props.describedbyid) !== null && _a !== void 0 ? _a : props.ariaDescribedBy, "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, name: props.name, required: getBoolean(props.required, "required"), "data-aid-icon": props.icon, "data-aid-icon-after": props.iconAfter, onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
39
|
+
React.createElement("input", Object.assign({ type: "checkbox", role: "switch", id: _id, "aria-checked": getBooleanAsString(_checked), 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"]), { checked: getBoolean(props.checked, "checked"), value: props.value, disabled: getBoolean(props.disabled, "disabled"), "aria-describedby": (_a = props.describedbyid) !== null && _a !== void 0 ? _a : props.ariaDescribedBy, "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, name: props.name, required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), "data-aid-icon": props.icon, "data-aid-icon-after": props.iconAfter, onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
40
40
|
props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
|
|
41
41
|
}
|
|
42
42
|
const DBSwitch = forwardRef(DBSwitchFn);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, uuid } from "../../utils";
|
|
6
5
|
import { DEFAULT_ID } from "../../shared/constants";
|
|
6
|
+
import { cls, uuid } from "../../utils";
|
|
7
7
|
function DBTabListFn(props, component) {
|
|
8
8
|
const _ref = component || useRef(component);
|
|
9
9
|
const [_id, set_id] = useState(() => DEFAULT_ID);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AlignmentProps,
|
|
1
|
+
import { AlignmentProps, GlobalProps, GlobalState, InitializedState, InputEvent, OrientationProps, WidthProps } from '../../shared/model';
|
|
2
2
|
import { DBTabItemProps } from '../tab-item/model';
|
|
3
3
|
import { DBTabPanelProps } from '../tab-panel/model';
|
|
4
4
|
export declare const TabsBehaviorList: readonly ["scrollbar", "arrows"];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTabs: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "orientation" | keyof import("../../shared/model").GlobalProps | keyof import("./model").DBTabsDefaultProps |
|
|
2
|
+
declare const DBTabs: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "orientation" | keyof import("../../shared/model").GlobalProps | "alignment" | keyof import("./model").DBTabsDefaultProps | keyof import("./model").DBTabsEventProps> & import("./model").DBTabsDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").OrientationProps & import("../../shared/model").WidthProps & import("../../shared/model").AlignmentProps & import("./model").DBTabsEventProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTabs;
|
|
@@ -4,8 +4,8 @@ import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
5
|
import { cls, uuid } from "../../utils";
|
|
6
6
|
import DBButton from "../button/button";
|
|
7
|
-
import DBTabList from "../tab-list/tab-list";
|
|
8
7
|
import DBTabItem from "../tab-item/tab-item";
|
|
8
|
+
import DBTabList from "../tab-list/tab-list";
|
|
9
9
|
import DBTabPanel from "../tab-panel/tab-panel";
|
|
10
10
|
function DBTabsFn(props, component) {
|
|
11
11
|
var _a, _b, _c, _d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ContentSlotProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps
|
|
1
|
+
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, InitializedState, OverflowProps, SemanticProps, ShowIconProps } from '../../shared/model';
|
|
2
2
|
export declare const TagBehaviorList: readonly ["static", "removable"];
|
|
3
3
|
export type TagBehaviorType = (typeof TagBehaviorList)[number];
|
|
4
4
|
export type DBTagEventsProps = {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTag: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "content" | "overflow" | "icon" | keyof import("../../shared/model").GlobalProps | "
|
|
2
|
+
declare const DBTag: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "content" | "overflow" | "icon" | keyof import("../../shared/model").GlobalProps | "semantic" | "emphasis" | "showIcon" | keyof import("./model").DBTagDefaultProps | keyof import("./model").DBTagEventsProps> & import("./model").DBTagDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").IconProps & import("../../shared/model").SemanticProps & import("../../shared/model").OverflowProps & import("../../shared/model").EmphasisProps & import("../../shared/model").ShowIconProps & import("../../shared/model").ContentSlotProps & import("./model").DBTagEventsProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTag;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, getBooleanAsString, getHideProp } from "../../utils";
|
|
6
5
|
import { DEFAULT_REMOVE } from "../../shared/constants";
|
|
6
|
+
import { cls, getBooleanAsString, getHideProp } from "../../utils";
|
|
7
7
|
import DBTooltip from "../tooltip/tooltip";
|
|
8
8
|
function DBTagFn(props, component) {
|
|
9
9
|
var _a;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTextarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<any>, "
|
|
2
|
+
declare const DBTextarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<any>, "value" | keyof import("../../shared/model").GlobalProps | keyof import("../../shared/model").CustomFormProps | keyof import("../../shared/model").BaseFormProps | keyof import("../../shared/model").RequiredProps | "showLabel" | keyof import("../../shared/model").FormMessageProps | keyof import("../../shared/model").FormTextProps | keyof import("./model").DBTextareaDefaultProps | keyof import("../../shared/model").ChangeEventProps<HTMLTextAreaElement> | keyof import("../../shared/model").InputEventProps<HTMLTextAreaElement> | keyof import("../../shared/model").FocusEventProps<HTMLTextAreaElement>> & import("./model").DBTextareaDefaultProps & import("../../shared/model").ChangeEventProps<HTMLTextAreaElement> & import("../../shared/model").InputEventProps<HTMLTextAreaElement> & import("../../shared/model").FocusEventProps<HTMLTextAreaElement> & import("../../shared/model").CustomFormProps & import("../../shared/model").BaseFormProps & import("../../shared/model").RequiredProps & import("../../shared/model").ShowLabelProps & import("../../shared/model").ValueProps & import("../../shared/model").GlobalProps & import("../../shared/model").FormTextProps & import("../../shared/model").FormMessageProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTextarea;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import DBInfotext from "../infotext/infotext";
|
|
6
|
-
import { cls, delay, getBoolean, getHideProp, getNumber, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
7
5
|
import { DEFAULT_INVALID_MESSAGE, DEFAULT_INVALID_MESSAGE_ID_SUFFIX, DEFAULT_LABEL, DEFAULT_MESSAGE_ID_SUFFIX, DEFAULT_PLACEHOLDER, DEFAULT_ROWS, DEFAULT_VALID_MESSAGE, DEFAULT_VALID_MESSAGE_ID_SUFFIX, } from "../../shared/constants";
|
|
6
|
+
import { cls, delay, getBoolean, getHideProp, getNumber, hasVoiceOver, stringPropVisible, uuid, } from "../../utils";
|
|
7
|
+
import DBInfotext from "../infotext/infotext";
|
|
8
8
|
function DBTextareaFn(props, component) {
|
|
9
9
|
var _a, _b, _c, _d;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
@@ -102,7 +102,7 @@ function DBTextareaFn(props, component) {
|
|
|
102
102
|
}, [props.value]);
|
|
103
103
|
return (React.createElement("div", Object.assign({}, 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-textarea", props.className), "data-variant": props.variant, "data-hide-label": getHideProp(props.showLabel) }),
|
|
104
104
|
React.createElement("label", { htmlFor: _id }, (_a = props.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL),
|
|
105
|
-
React.createElement("textarea", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, "data-field-sizing": props.fieldSizing, 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, "data-resize": props.resize, "data-hide-resizer": getHideProp((_b = props.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(props.disabled, "disabled"), required: getBoolean(props.required, "required"), readOnly: getBoolean(props.readOnly, "readOnly") ||
|
|
105
|
+
React.createElement("textarea", Object.assign({ "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, "data-field-sizing": props.fieldSizing, 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, "data-resize": props.resize, "data-hide-resizer": getHideProp((_b = props.showResizer) !== null && _b !== void 0 ? _b : true), disabled: getBoolean(props.disabled, "disabled"), required: getBoolean(props.required, "required"), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk), readOnly: getBoolean(props.readOnly, "readOnly") ||
|
|
106
106
|
getBoolean(props.readonly, "readonly"), form: props.form, maxLength: getNumber(props.maxLength, props.maxlength), minLength: getNumber(props.minLength, props.minlength), name: props.name, wrap: props.wrap, spellCheck: props.spellCheck, autoComplete: props.autocomplete, onInput: (event) => handleInput(event), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event), value: props.value, "aria-describedby": (_c = props.ariaDescribedBy) !== null && _c !== void 0 ? _c : _descByIds, placeholder: (_d = props.placeholder) !== null && _d !== void 0 ? _d : DEFAULT_PLACEHOLDER, rows: getNumber(props.rows, DEFAULT_ROWS), cols: getNumber(props.cols) })),
|
|
107
107
|
stringPropVisible(props.message, props.showMessage) ? (React.createElement(DBInfotext, { size: "small", icon: props.messageIcon, id: _messageId }, props.message)) : null,
|
|
108
108
|
hasValidState() ? (React.createElement(DBInfotext, { size: "small", semantic: "successful", id: _validMessageId }, props.validMessage || DEFAULT_VALID_MESSAGE)) : null,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTooltip: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../shared/model").GlobalProps |
|
|
2
|
+
declare const DBTooltip: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../shared/model").GlobalProps | "placement" | "emphasis" | keyof import("./model").DBTooltipDefaultProps | keyof import("../../shared/model").PopoverProps> & import("./model").DBTooltipDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").EmphasisProps & import("../../shared/model").PlacementProps & import("../../shared/model").PopoverProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTooltip;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
-
import { cls, delay as utilsDelay, getBooleanAsString, uuid, } from "../../utils";
|
|
6
5
|
import { DEFAULT_ID } from "../../shared/constants";
|
|
7
|
-
import {
|
|
6
|
+
import { cls, getBooleanAsString, delay as utilsDelay, uuid, } from "../../utils";
|
|
8
7
|
import { DocumentScrollListener } from "../../utils/document-scroll-listener";
|
|
8
|
+
import { handleFixedPopover } from "../../utils/floating-components";
|
|
9
9
|
function DBTooltipFn(props, component) {
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const _ref = component || useRef(component);
|
|
@@ -74,7 +74,7 @@ function DBTooltipFn(props, component) {
|
|
|
74
74
|
["mouseleave", "focusout"].forEach((event) => {
|
|
75
75
|
parent.addEventListener(event, () => handleLeave());
|
|
76
76
|
});
|
|
77
|
-
parent.
|
|
77
|
+
parent.dataset["hasTooltip"] = "true";
|
|
78
78
|
if (props.variant === "label") {
|
|
79
79
|
parent.setAttribute("aria-labelledby", _id);
|
|
80
80
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
export * from './components/
|
|
1
|
+
export * from './components/accordion';
|
|
2
|
+
export * from './components/accordion-item';
|
|
2
3
|
export * from './components/badge';
|
|
3
4
|
export * from './components/brand';
|
|
4
5
|
export * from './components/button';
|
|
5
6
|
export * from './components/card';
|
|
6
7
|
export * from './components/checkbox';
|
|
8
|
+
export * from './components/custom-select';
|
|
9
|
+
export * from './components/custom-select-dropdown';
|
|
10
|
+
export * from './components/custom-select-form-field';
|
|
11
|
+
export * from './components/custom-select-list';
|
|
12
|
+
export * from './components/custom-select-list-item';
|
|
7
13
|
export * from './components/divider';
|
|
8
14
|
export * from './components/drawer';
|
|
9
15
|
export * from './components/header';
|
|
@@ -11,31 +17,24 @@ export * from './components/icon';
|
|
|
11
17
|
export * from './components/infotext';
|
|
12
18
|
export * from './components/input';
|
|
13
19
|
export * from './components/link';
|
|
20
|
+
export * from './components/navigation';
|
|
21
|
+
export * from './components/navigation-item';
|
|
22
|
+
export * from './components/notification';
|
|
14
23
|
export * from './components/page';
|
|
24
|
+
export * from './components/popover';
|
|
15
25
|
export * from './components/radio';
|
|
16
26
|
export * from './components/section';
|
|
17
27
|
export * from './components/select';
|
|
28
|
+
export * from './components/stack';
|
|
18
29
|
export * from './components/switch';
|
|
19
30
|
export * from './components/tab-item';
|
|
31
|
+
export * from './components/tab-list';
|
|
32
|
+
export * from './components/tab-panel';
|
|
33
|
+
export * from './components/tabs';
|
|
20
34
|
export * from './components/tag';
|
|
21
35
|
export * from './components/textarea';
|
|
22
|
-
export * from './components/navigation-item';
|
|
23
|
-
export * from './components/accordion';
|
|
24
|
-
export * from './components/accordion-item';
|
|
25
|
-
export * from './components/navigation';
|
|
26
|
-
export * from './components/badge';
|
|
27
|
-
export * from './components/popover';
|
|
28
36
|
export * from './components/tooltip';
|
|
29
|
-
export * from './components/tab-list';
|
|
30
|
-
export * from './components/tabs';
|
|
31
|
-
export * from './components/tab-panel';
|
|
32
37
|
export * from './shared/constants';
|
|
33
38
|
export * from './shared/model';
|
|
34
39
|
export * from './utils/index';
|
|
35
40
|
export * from './utils/navigation';
|
|
36
|
-
export * from './components/stack';
|
|
37
|
-
export * from './components/custom-select';
|
|
38
|
-
export * from './components/custom-select-form-field';
|
|
39
|
-
export * from './components/custom-select-dropdown';
|
|
40
|
-
export * from './components/custom-select-list';
|
|
41
|
-
export * from './components/custom-select-list-item';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
export * from './components/
|
|
1
|
+
export * from './components/accordion';
|
|
2
|
+
export * from './components/accordion-item';
|
|
2
3
|
export * from './components/badge';
|
|
3
4
|
export * from './components/brand';
|
|
4
5
|
export * from './components/button';
|
|
5
6
|
export * from './components/card';
|
|
6
7
|
export * from './components/checkbox';
|
|
8
|
+
export * from './components/custom-select';
|
|
9
|
+
export * from './components/custom-select-dropdown';
|
|
10
|
+
export * from './components/custom-select-form-field';
|
|
11
|
+
export * from './components/custom-select-list';
|
|
12
|
+
export * from './components/custom-select-list-item';
|
|
7
13
|
export * from './components/divider';
|
|
8
14
|
export * from './components/drawer';
|
|
9
15
|
export * from './components/header';
|
|
@@ -11,31 +17,24 @@ export * from './components/icon';
|
|
|
11
17
|
export * from './components/infotext';
|
|
12
18
|
export * from './components/input';
|
|
13
19
|
export * from './components/link';
|
|
20
|
+
export * from './components/navigation';
|
|
21
|
+
export * from './components/navigation-item';
|
|
22
|
+
export * from './components/notification';
|
|
14
23
|
export * from './components/page';
|
|
24
|
+
export * from './components/popover';
|
|
15
25
|
export * from './components/radio';
|
|
16
26
|
export * from './components/section';
|
|
17
27
|
export * from './components/select';
|
|
28
|
+
export * from './components/stack';
|
|
18
29
|
export * from './components/switch';
|
|
19
30
|
export * from './components/tab-item';
|
|
31
|
+
export * from './components/tab-list';
|
|
32
|
+
export * from './components/tab-panel';
|
|
33
|
+
export * from './components/tabs';
|
|
20
34
|
export * from './components/tag';
|
|
21
35
|
export * from './components/textarea';
|
|
22
|
-
export * from './components/navigation-item';
|
|
23
|
-
export * from './components/accordion';
|
|
24
|
-
export * from './components/accordion-item';
|
|
25
|
-
export * from './components/navigation';
|
|
26
|
-
export * from './components/badge';
|
|
27
|
-
export * from './components/popover';
|
|
28
36
|
export * from './components/tooltip';
|
|
29
|
-
export * from './components/tab-list';
|
|
30
|
-
export * from './components/tabs';
|
|
31
|
-
export * from './components/tab-panel';
|
|
32
37
|
export * from './shared/constants';
|
|
33
38
|
export * from './shared/model';
|
|
34
39
|
export * from './utils/index';
|
|
35
40
|
export * from './utils/navigation';
|
|
36
|
-
export * from './components/stack';
|
|
37
|
-
export * from './components/custom-select';
|
|
38
|
-
export * from './components/custom-select-form-field';
|
|
39
|
-
export * from './components/custom-select-dropdown';
|
|
40
|
-
export * from './components/custom-select-list';
|
|
41
|
-
export * from './components/custom-select-list-item';
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -184,11 +184,21 @@ export type EmphasisProps = {
|
|
|
184
184
|
};
|
|
185
185
|
export declare const ValidationList: readonly ["invalid", "valid", "no-validation"];
|
|
186
186
|
export type ValidationType = (typeof ValidationList)[number];
|
|
187
|
+
/**
|
|
188
|
+
* Properties to control the required state and its visual annotation for input components.
|
|
189
|
+
*/
|
|
187
190
|
export type RequiredProps = {
|
|
188
191
|
/**
|
|
189
192
|
* When the required attribute specified, the user will be required to fill the form element before submitting the form.
|
|
193
|
+
* The form element will be marked semantically as required and by default also visually with an asterisk '*' next to the label (unless the property `showRequiredAsterisk` is also set with the value `false`).
|
|
190
194
|
*/
|
|
191
195
|
required?: boolean | string;
|
|
196
|
+
/**
|
|
197
|
+
* This attribute allows to specify whether a form field which is marked as required will show a visual indicator (an asterisk '*').
|
|
198
|
+
* It allows to prevent adding the visual indicator but still keep the field semantically required by setting its value to `false`.
|
|
199
|
+
* By default, its value is `true`, so the asterisk is shown when `required` is set.
|
|
200
|
+
*/
|
|
201
|
+
showRequiredAsterisk?: boolean | string;
|
|
192
202
|
};
|
|
193
203
|
export type ShowLabelProps = {
|
|
194
204
|
/**
|
|
@@ -485,20 +495,19 @@ export type NavigationBackButtonProps = {
|
|
|
485
495
|
};
|
|
486
496
|
export type AriaLabelledByProps = {
|
|
487
497
|
/**
|
|
488
|
-
* Pass aria-labelledby to inner element
|
|
498
|
+
* Pass `aria-labelledby` to inner element
|
|
489
499
|
*/
|
|
490
500
|
labelledBy?: string;
|
|
491
501
|
};
|
|
492
502
|
export type AriaControlsProps = {
|
|
493
503
|
/**
|
|
494
|
-
* Pass aria-controls to inner element
|
|
504
|
+
* Pass `aria-controls` to inner element
|
|
495
505
|
*/
|
|
496
506
|
controls?: string;
|
|
497
507
|
};
|
|
498
508
|
export type ValueLabelType = {
|
|
499
509
|
value: string;
|
|
500
510
|
label?: string;
|
|
501
|
-
hiddenValue?: string;
|
|
502
511
|
};
|
|
503
512
|
export type DocumentScrollState = {
|
|
504
513
|
_documentScrollListenerCallbackId?: string;
|
|
@@ -301,5 +301,5 @@ export const handleFixedPopover = (element, parent, placement) => {
|
|
|
301
301
|
element.style.insetBlockEnd = `calc(${end > innerHeight ? innerHeight : end}px + ${distance})`;
|
|
302
302
|
}
|
|
303
303
|
element.style.position = 'fixed';
|
|
304
|
-
element.
|
|
304
|
+
element.dataset['correctedPlacement'] = correctedPlacement;
|
|
305
305
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@db-ux/react-core-components",
|
|
3
|
-
"version": "2.4.0
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "React components for @db-ux/core-components",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"tsc": "tsc -p . --sourceMap false"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@playwright/experimental-ct-react": "1.
|
|
30
|
+
"@playwright/experimental-ct-react": "1.53.2",
|
|
31
31
|
"@types/react": "^18.3.13",
|
|
32
32
|
"react": "^18.3.1",
|
|
33
33
|
"react-dom": "^18.3.1"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"sideEffects": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@db-ux/core-components": "2.4.0
|
|
42
|
-
"@db-ux/core-foundations": "2.4.0
|
|
41
|
+
"@db-ux/core-components": "2.4.0",
|
|
42
|
+
"@db-ux/core-foundations": "2.4.0"
|
|
43
43
|
}
|
|
44
44
|
}
|