@db-ux/react-core-components 2.4.4 → 3.0.1
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/brand/brand.js +2 -2
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +12 -2
- package/dist/components/button/model.d.ts +6 -22
- package/dist/components/button/model.js +0 -1
- package/dist/components/card/card.js +1 -1
- package/dist/components/checkbox/checkbox.js +3 -2
- package/dist/components/custom-select/custom-select.js +15 -7
- package/dist/components/custom-select/model.d.ts +1 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.js +3 -3
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/header/header.js +12 -17
- package/dist/components/infotext/infotext.js +2 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +11 -10
- package/dist/components/input/model.d.ts +6 -2
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +2 -2
- package/dist/components/link/model.d.ts +3 -3
- package/dist/components/link/model.js +1 -1
- package/dist/components/navigation/model.d.ts +2 -2
- package/dist/components/navigation/navigation.d.ts +1 -1
- package/dist/components/navigation/navigation.js +1 -1
- package/dist/components/navigation-item/model.d.ts +2 -6
- package/dist/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.js +2 -2
- package/dist/components/notification/notification.js +2 -2
- package/dist/components/radio/radio.js +1 -2
- package/dist/components/select/select.js +4 -3
- package/dist/components/switch/model.d.ts +2 -2
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/tab-item/model.d.ts +2 -2
- package/dist/components/tab-item/tab-item.d.ts +1 -1
- package/dist/components/tab-item/tab-item.js +4 -3
- package/dist/components/tab-panel/model.d.ts +2 -2
- package/dist/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.js +1 -1
- package/dist/components/tabs/tabs.js +1 -1
- package/dist/components/tag/model.d.ts +2 -6
- package/dist/components/tag/tag.js +3 -21
- package/dist/components/textarea/textarea.js +3 -2
- package/dist/index.d.ts +39 -0
- package/dist/index.js +39 -0
- package/dist/shared/model.d.ts +28 -27
- package/dist/shared/model.js +0 -1
- package/package.json +14 -14
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBNavigationItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "text" | "icon" | "onClick" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("./model").DBNavigationItemDefaultProps | keyof import("../../shared/model").NavigationBackButtonProps> & import("./model").DBNavigationItemDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").ClickEventProps<HTMLButtonElement> & import("../../shared/model").IconProps & import("../../shared/model").WidthProps & import("../../shared/model").NavigationBackButtonProps & import("../../shared/model").ShowIconProps & import("../../shared/model").TextProps & React.RefAttributes<any>>;
|
|
2
|
+
declare const DBNavigationItem: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "width" | "text" | "wrap" | "icon" | "onClick" | keyof import("../../shared/model").GlobalProps | "showIcon" | keyof import("./model").DBNavigationItemDefaultProps | keyof import("../../shared/model").NavigationBackButtonProps> & import("./model").DBNavigationItemDefaultProps & import("../../shared/model").GlobalProps & import("../../shared/model").ClickEventProps<HTMLButtonElement> & import("../../shared/model").IconProps & import("../../shared/model").WidthProps & import("../../shared/model").WrapProps & import("../../shared/model").NavigationBackButtonProps & import("../../shared/model").ShowIconProps & import("../../shared/model").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBNavigationItem;
|
|
@@ -3,7 +3,7 @@ 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_BACK } from "../../shared/constants";
|
|
6
|
-
import { cls, delay, getBoolean, getBooleanAsString,
|
|
6
|
+
import { cls, delay, getBoolean, getBooleanAsString, uuid } from "../../utils";
|
|
7
7
|
import { NavigationItemSafeTriangle } from "../../utils/navigation";
|
|
8
8
|
import DBButton from "../button/button";
|
|
9
9
|
function DBNavigationItemFn(props, component) {
|
|
@@ -63,7 +63,7 @@ function DBNavigationItemFn(props, component) {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}, [initialized, _ref.current]);
|
|
66
|
-
return (React.createElement("li", 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, onMouseOver: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.enableFollow(), onMouseLeave: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.disableFollow(), onMouseMove: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.followByMouseEvent(event) }, 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-navigation-item", props.className), "data-width": props.width, "data-icon": props.icon, "data-
|
|
66
|
+
return (React.createElement("li", 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, onMouseOver: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.enableFollow(), onMouseLeave: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.disableFollow(), onMouseMove: (event) => navigationItemSafeTriangle === null || navigationItemSafeTriangle === void 0 ? void 0 : navigationItemSafeTriangle.followByMouseEvent(event) }, 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-navigation-item", props.className), "data-width": props.width, "data-icon": props.icon, "data-show-icon": getBooleanAsString(props.showIcon), "data-active": props.active, "data-wrap": getBooleanAsString(props.wrap), "aria-disabled": getBooleanAsString(props.disabled) }),
|
|
67
67
|
!hasSubNavigation ? (React.createElement(React.Fragment, null, props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children))) : null,
|
|
68
68
|
hasSubNavigation ? (React.createElement(React.Fragment, null,
|
|
69
69
|
React.createElement("button", { className: "db-navigation-item-expand-button", "aria-haspopup": hasAreaPopup, "aria-expanded": isSubNavigationExpanded, disabled: getBoolean(props.disabled, "disabled"), onClick: (event) => handleClick(event) }, props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)),
|
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
4
|
import { useRef, forwardRef } from "react";
|
|
5
5
|
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants";
|
|
6
|
-
import { cls, getBoolean,
|
|
6
|
+
import { cls, getBoolean, getBooleanAsString, stringPropVisible, } from "../../utils";
|
|
7
7
|
import DBButton from "../button/button";
|
|
8
8
|
function DBNotificationFn(props, component) {
|
|
9
9
|
var _a;
|
|
@@ -16,7 +16,7 @@ function DBNotificationFn(props, component) {
|
|
|
16
16
|
props.onClose(event);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
return (React.createElement("article", 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", "onClose"]), { 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-notification", props.className), "aria-live": props.ariaLive, "data-semantic": props.semantic, "data-variant": props.variant, "data-icon": props.icon, "data-
|
|
19
|
+
return (React.createElement("article", 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", "onClose"]), { 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-notification", props.className), "aria-live": props.ariaLive, "data-semantic": props.semantic, "data-variant": props.variant, "data-icon": props.icon, "data-show-icon": getBooleanAsString(props.showIcon), "data-link-variant": props.linkVariant }),
|
|
20
20
|
React.createElement(React.Fragment, null, props.image),
|
|
21
21
|
stringPropVisible(props.headline, props.showHeadline) ? (React.createElement("header", null, props.headline)) : null,
|
|
22
22
|
React.createElement("p", null, props.text ? React.createElement(React.Fragment, null, props.text) : React.createElement(React.Fragment, null, props.children)),
|
|
@@ -4,7 +4,6 @@ import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
|
4
4
|
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
5
|
import { cls, getBoolean, getHideProp, uuid } from "../../utils";
|
|
6
6
|
function DBRadioFn(props, component) {
|
|
7
|
-
var _a;
|
|
8
7
|
const _ref = component || useRef(component);
|
|
9
8
|
const [initialized, setInitialized] = useState(() => false);
|
|
10
9
|
const [_id, set_id] = useState(() => undefined);
|
|
@@ -34,7 +33,7 @@ function DBRadioFn(props, component) {
|
|
|
34
33
|
}
|
|
35
34
|
}, [initialized, _ref.current, props.checked]);
|
|
36
35
|
return (React.createElement("label", Object.assign({ "data-size": props.size, "data-hide-label": getHideProp(props.showLabel), "data-hide-asterisk": getHideProp(props.showRequiredAsterisk) }, 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"),
|
|
36
|
+
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"), value: props.value, required: getBoolean(props.required, "required"), onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
38
37
|
props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
|
|
39
38
|
}
|
|
40
39
|
const DBRadio = forwardRef(DBRadioFn);
|
|
@@ -3,7 +3,7 @@ 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_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";
|
|
6
|
+
import { cls, delay, getBoolean, getBooleanAsString, 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;
|
|
@@ -14,7 +14,7 @@ function DBSelectFn(props, component) {
|
|
|
14
14
|
const [_invalidMessageId, set_invalidMessageId] = useState(() => undefined);
|
|
15
15
|
const [_invalidMessage, set_invalidMessage] = useState(() => undefined);
|
|
16
16
|
const [_placeholderId, set_placeholderId] = useState(() => "");
|
|
17
|
-
const [_descByIds, set_descByIds] = useState(() =>
|
|
17
|
+
const [_descByIds, set_descByIds] = useState(() => undefined);
|
|
18
18
|
const [_value, set_value] = useState(() => "");
|
|
19
19
|
const [initialized, setInitialized] = useState(() => false);
|
|
20
20
|
const [_voiceOverFallback, set_voiceOverFallback] = useState(() => "");
|
|
@@ -113,13 +113,14 @@ function DBSelectFn(props, component) {
|
|
|
113
113
|
else {
|
|
114
114
|
set_descByIds(placeholderId);
|
|
115
115
|
}
|
|
116
|
+
handleValidation();
|
|
116
117
|
setInitialized(false);
|
|
117
118
|
}
|
|
118
119
|
}, [_id, initialized]);
|
|
119
120
|
useEffect(() => {
|
|
120
121
|
set_value(props.value);
|
|
121
122
|
}, [props.value]);
|
|
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-hide-asterisk": getHideProp(props.showRequiredAsterisk), "data-icon": props.icon, "data-
|
|
123
|
+
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-hide-asterisk": getHideProp(props.showRequiredAsterisk), "data-icon": props.icon, "data-show-icon": getBooleanAsString(props.showIcon) }),
|
|
123
124
|
React.createElement("label", { htmlFor: _id }, (_a = props.label) !== null && _a !== void 0 ? _a : DEFAULT_LABEL),
|
|
124
125
|
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 }),
|
|
125
126
|
React.createElement("option", { hidden: true }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState,
|
|
1
|
+
import { ChangeEventProps, ChangeEventState, EmphasisProps, FocusEventProps, FocusEventState, FormCheckProps, FormProps, FormState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, SizeProps } from '../../shared/model';
|
|
2
2
|
export type DBSwitchDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Add additional icons to indicate active/inactive state.
|
|
5
5
|
*/
|
|
6
6
|
visualAid?: boolean | string;
|
|
7
7
|
};
|
|
8
|
-
export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & EmphasisProps & SizeProps & IconProps &
|
|
8
|
+
export type DBSwitchProps = DBSwitchDefaultProps & GlobalProps & ChangeEventProps<HTMLInputElement> & FocusEventProps<HTMLInputElement> & FormProps & FormCheckProps & EmphasisProps & SizeProps & IconProps & IconTrailingProps & IconLeadingProps;
|
|
9
9
|
export type DBSwitchDefaultState = {};
|
|
10
10
|
export type DBSwitchState = DBSwitchDefaultState & GlobalState & ChangeEventState<HTMLInputElement> & FocusEventState<HTMLInputElement> & FormState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
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" | "
|
|
2
|
+
declare const DBSwitch: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "value" | "size" | "icon" | "checked" | keyof import("../../shared/model").GlobalProps | "emphasis" | "iconLeading" | "iconTrailing" | 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" | "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").IconTrailingProps & import("../../shared/model").IconLeadingProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBSwitch;
|
|
@@ -27,7 +27,7 @@ function DBSwitchFn(props, component) {
|
|
|
27
27
|
set_id((_a = props.id) !== null && _a !== void 0 ? _a : `switch-${uuid()}`);
|
|
28
28
|
}, []);
|
|
29
29
|
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, "data-hide-asterisk": getHideProp(props.showRequiredAsterisk) }, 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) }),
|
|
30
|
-
React.createElement("input", Object.assign({ type: "checkbox", role: "switch", id: _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"]), { checked: getBoolean(props.checked, "checked"), value: props.value, disabled: getBoolean(props.disabled, "disabled"), "aria-
|
|
30
|
+
React.createElement("input", Object.assign({ type: "checkbox", role: "switch", id: _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"]), { checked: getBoolean(props.checked, "checked"), value: props.value, disabled: getBoolean(props.disabled, "disabled"), "aria-invalid": props.validation === "invalid", "data-custom-validity": props.validation, name: props.name, required: getBoolean(props.required, "required"), "data-aid-icon": (_a = props.iconLeading) !== null && _a !== void 0 ? _a : props.icon, "data-aid-icon-trailing": props.iconTrailing, onChange: (event) => handleChange(event), onBlur: (event) => handleBlur(event), onFocus: (event) => handleFocus(event) })),
|
|
31
31
|
props.label ? React.createElement(React.Fragment, null, props.label) : React.createElement(React.Fragment, null, props.children)));
|
|
32
32
|
}
|
|
33
33
|
const DBSwitch = forwardRef(DBSwitchFn);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActiveProps,
|
|
1
|
+
import { ActiveProps, ChangeEventProps, ChangeEventState, GlobalProps, GlobalState, IconLeadingProps, IconProps, IconTrailingProps, InitializedState, NameProps, NameState, ShowIconLeadingProps, ShowIconProps, ShowIconTrailingProps } from '../../shared/model';
|
|
2
2
|
export type DBTabItemDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* To control the component
|
|
@@ -17,7 +17,7 @@ export type DBTabItemDefaultProps = {
|
|
|
17
17
|
*/
|
|
18
18
|
noText?: boolean | string;
|
|
19
19
|
};
|
|
20
|
-
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps &
|
|
20
|
+
export type DBTabItemProps = GlobalProps & DBTabItemDefaultProps & IconProps & IconTrailingProps & IconLeadingProps & ShowIconLeadingProps & ShowIconTrailingProps & ActiveProps & ChangeEventProps<HTMLInputElement> & ShowIconProps & NameProps;
|
|
21
21
|
export type DBTabItemDefaultState = {
|
|
22
22
|
_selected: boolean;
|
|
23
23
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTabItem: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "name" | "active" | "icon" |
|
|
2
|
+
declare const DBTabItem: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<any>, "name" | "active" | "icon" | keyof import("../..").GlobalProps | "showIcon" | "showIconLeading" | "showIconTrailing" | "iconLeading" | "iconTrailing" | keyof import("../..").ChangeEventProps<HTMLInputElement> | keyof import("./model").DBTabItemDefaultProps> & import("../..").GlobalProps & import("./model").DBTabItemDefaultProps & import("../..").IconProps & import("../..").IconTrailingProps & import("../..").IconLeadingProps & import("../..").ShowIconLeadingProps & import("../..").ShowIconTrailingProps & import("../..").ActiveProps & import("../..").ChangeEventProps<HTMLInputElement> & import("../..").ShowIconProps & import("../..").NameProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTabItem;
|
|
@@ -2,8 +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, getBoolean, getBooleanAsString
|
|
5
|
+
import { cls, getBoolean, getBooleanAsString } from "../../utils";
|
|
6
6
|
function DBTabItemFn(props, component) {
|
|
7
|
+
var _a, _b;
|
|
7
8
|
const _ref = component || useRef(component);
|
|
8
9
|
const [_selected, set_selected] = useState(() => false);
|
|
9
10
|
const [_name, set_name] = useState(() => undefined);
|
|
@@ -46,8 +47,8 @@ function DBTabItemFn(props, component) {
|
|
|
46
47
|
}
|
|
47
48
|
}, [props.name]);
|
|
48
49
|
return (React.createElement("li", Object.assign({ role: "none" }, 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-tab-item", props.className) }),
|
|
49
|
-
React.createElement("label", { htmlFor: props.id, "data-icon": props.icon, "data-icon-
|
|
50
|
-
React.createElement("input", Object.assign({ type: "radio", role: "tab", disabled: getBoolean(props.disabled, "disabled"), "aria-selected": _selected,
|
|
50
|
+
React.createElement("label", { htmlFor: props.id, "data-icon": (_a = props.iconLeading) !== null && _a !== void 0 ? _a : props.icon, "data-icon-trailing": props.iconTrailing, "data-show-icon": getBooleanAsString((_b = props.showIconLeading) !== null && _b !== void 0 ? _b : props.showIcon), "data-show-icon-trailing": getBooleanAsString(props.showIconTrailing), "data-no-text": getBooleanAsString(props.noText) },
|
|
51
|
+
React.createElement("input", Object.assign({ type: "radio", role: "tab", disabled: getBoolean(props.disabled, "disabled"), "aria-selected": _selected, checked: getBoolean(props.checked, "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"]), { name: _name, id: props.id, onInput: (event) => handleChange(event) })),
|
|
51
52
|
props.label ? React.createElement(React.Fragment, null, props.label) : null,
|
|
52
53
|
props.children)));
|
|
53
54
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GlobalProps, GlobalState } from '../../shared/model';
|
|
2
2
|
export type DBTabPanelDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* The content if you don't want to use children.
|
|
5
5
|
*/
|
|
6
6
|
content?: string;
|
|
7
7
|
};
|
|
8
|
-
export type DBTabPanelProps = DBTabPanelDefaultProps & GlobalProps
|
|
8
|
+
export type DBTabPanelProps = DBTabPanelDefaultProps & GlobalProps;
|
|
9
9
|
export type DBTabPanelDefaultState = {};
|
|
10
10
|
export type DBTabPanelState = DBTabPanelDefaultState & GlobalState;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBTabPanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "content" | keyof import("../..").GlobalProps
|
|
2
|
+
declare const DBTabPanel: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, "content" | keyof import("../..").GlobalProps> & import("./model").DBTabPanelDefaultProps & import("../..").GlobalProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBTabPanel;
|
|
@@ -6,7 +6,7 @@ import { cls } from "../../utils";
|
|
|
6
6
|
function DBTabPanelFn(props, component) {
|
|
7
7
|
const _ref = component || useRef(component);
|
|
8
8
|
useEffect(() => { }, []);
|
|
9
|
-
return (React.createElement("section", Object.assign({ role: "tabpanel", 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-tab-panel", props.className), id: props.id
|
|
9
|
+
return (React.createElement("section", Object.assign({ role: "tabpanel", 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-tab-panel", props.className), id: props.id }),
|
|
10
10
|
props.content ? React.createElement(React.Fragment, null, props.content) : null,
|
|
11
11
|
props.children));
|
|
12
12
|
}
|
|
@@ -151,7 +151,7 @@ function DBTabsFn(props, component) {
|
|
|
151
151
|
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", "onTabSelect", "onIndexChange"]), { 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-tabs", props.className), "data-orientation": props.orientation, "data-scroll-behavior": props.behavior, "data-alignment": (_a = props.alignment) !== null && _a !== void 0 ? _a : "start", "data-width": (_b = props.width) !== null && _b !== void 0 ? _b : "auto", onInput: (event) => handleChange(event) }),
|
|
152
152
|
showScrollLeft ? (React.createElement(DBButton, { className: "tabs-scroll-left", variant: "ghost", icon: "chevron_left", type: "button", noText: true, onClick: (event) => scroll(true) }, "Scroll left")) : null,
|
|
153
153
|
props.tabs ? (React.createElement(React.Fragment, null,
|
|
154
|
-
React.createElement(DBTabList, null, (_c = convertTabs()) === null || _c === void 0 ? void 0 : _c.map((tab, index) => (React.createElement(DBTabItem, { key: props.name + "tab-item" + index, active: tab.active, label: tab.label,
|
|
154
|
+
React.createElement(DBTabList, null, (_c = convertTabs()) === null || _c === void 0 ? void 0 : _c.map((tab, index) => (React.createElement(DBTabItem, { key: props.name + "tab-item" + index, active: tab.active, label: tab.label, iconTrailing: tab.iconTrailing, icon: tab.icon, noText: tab.noText })))), (_d = convertTabs()) === null || _d === void 0 ? void 0 :
|
|
155
155
|
_d.map((tab, index) => (React.createElement(DBTabPanel, { key: props.name + "tab-panel" + index, content: tab.content }, tab.children))))) : null,
|
|
156
156
|
showScrollRight ? (React.createElement(DBButton, { className: "tabs-scroll-right", variant: "ghost", icon: "chevron_right", type: "button", noText: true, onClick: (event) => scroll() }, "Scroll right")) : null,
|
|
157
157
|
props.children));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps,
|
|
1
|
+
import { ClickEvent, ContentSlotProps, EmphasisProps, GlobalProps, GlobalState, IconProps, 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 = {
|
|
@@ -18,10 +18,6 @@ export type DBTagDefaultProps = {
|
|
|
18
18
|
* - removable: add a remove button at the end of the tag
|
|
19
19
|
*/
|
|
20
20
|
behavior?: TagBehaviorType | string;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Disable tag
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean | string;
|
|
25
21
|
/**
|
|
26
22
|
* Define the text next to the icon specified via the icon Property to get hidden.
|
|
27
23
|
*/
|
|
@@ -48,4 +44,4 @@ export type DBTagDefaultState = {
|
|
|
48
44
|
getRemoveButtonText: () => string;
|
|
49
45
|
handleRemove: (event?: ClickEvent<HTMLButtonElement> | void) => void;
|
|
50
46
|
};
|
|
51
|
-
export type DBTagState = DBTagDefaultState & GlobalState
|
|
47
|
+
export type DBTagState = DBTagDefaultState & GlobalState;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { filterPassingProps, getRootProps } from "../../utils/react";
|
|
4
|
-
import {
|
|
4
|
+
import { useRef, forwardRef } from "react";
|
|
5
5
|
import { DEFAULT_REMOVE } from "../../shared/constants";
|
|
6
|
-
import { cls, getBooleanAsString
|
|
6
|
+
import { cls, getBooleanAsString } from "../../utils";
|
|
7
7
|
import DBTooltip from "../tooltip/tooltip";
|
|
8
8
|
function DBTagFn(props, component) {
|
|
9
9
|
var _a;
|
|
10
10
|
const _ref = component || useRef(component);
|
|
11
|
-
const [initialized, setInitialized] = useState(() => false);
|
|
12
11
|
function handleRemove(event) {
|
|
13
12
|
if (!event)
|
|
14
13
|
return;
|
|
@@ -24,24 +23,7 @@ function DBTagFn(props, component) {
|
|
|
24
23
|
// TODO: We should think this through again, if we would really like to have default and especially english, instead of german labels in here
|
|
25
24
|
return DEFAULT_REMOVE;
|
|
26
25
|
}
|
|
27
|
-
|
|
28
|
-
if (!hasInitialized.current) {
|
|
29
|
-
setInitialized(true);
|
|
30
|
-
hasInitialized.current = true;
|
|
31
|
-
}
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
var _a, _b;
|
|
34
|
-
if (initialized && _ref.current && props.disabled !== undefined) {
|
|
35
|
-
const button = (_a = _ref.current) === null || _a === void 0 ? void 0 : _a.querySelector("button:not(.db-tab-remove-button)");
|
|
36
|
-
const input = (_b = _ref.current) === null || _b === void 0 ? void 0 : _b.querySelector("input");
|
|
37
|
-
for (const element of [button, input]) {
|
|
38
|
-
if (element) {
|
|
39
|
-
element.disabled = Boolean(props.disabled);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, [initialized, props.disabled, _ref.current]);
|
|
44
|
-
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", "onRemove"]), { 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-tag", props.className), "data-disabled": getBooleanAsString(props.disabled), "data-semantic": props.semantic, "data-emphasis": props.emphasis, "data-icon": props.icon, "data-show-check-state": getBooleanAsString((_a = props.showCheckState) !== null && _a !== void 0 ? _a : true), "data-hide-icon": getHideProp(props.showIcon), "data-no-text": getBooleanAsString(props.noText), "data-overflow": getBooleanAsString(props.overflow) }),
|
|
26
|
+
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", "onRemove"]), { 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-tag", props.className), "data-semantic": props.semantic, "data-emphasis": props.emphasis, "data-icon": props.icon, "data-show-check-state": getBooleanAsString((_a = props.showCheckState) !== null && _a !== void 0 ? _a : true), "data-show-icon": getBooleanAsString(props.showIcon), "data-no-text": getBooleanAsString(props.noText), "data-overflow": getBooleanAsString(props.overflow) }),
|
|
45
27
|
React.createElement(React.Fragment, null, props.content),
|
|
46
28
|
props.children,
|
|
47
29
|
props.text ? React.createElement(React.Fragment, null, props.text) : null,
|
|
@@ -13,7 +13,7 @@ function DBTextareaFn(props, component) {
|
|
|
13
13
|
const [_validMessageId, set_validMessageId] = useState(() => undefined);
|
|
14
14
|
const [_invalidMessageId, set_invalidMessageId] = useState(() => undefined);
|
|
15
15
|
const [_invalidMessage, set_invalidMessage] = useState(() => undefined);
|
|
16
|
-
const [_descByIds, set_descByIds] = useState(() =>
|
|
16
|
+
const [_descByIds, set_descByIds] = useState(() => undefined);
|
|
17
17
|
const [_value, set_value] = useState(() => "");
|
|
18
18
|
const [_voiceOverFallback, set_voiceOverFallback] = useState(() => "");
|
|
19
19
|
function hasValidState() {
|
|
@@ -46,7 +46,7 @@ function DBTextareaFn(props, component) {
|
|
|
46
46
|
set_descByIds(_messageId);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
set_descByIds(
|
|
49
|
+
set_descByIds(undefined);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
function handleInput(event) {
|
|
@@ -95,6 +95,7 @@ function DBTextareaFn(props, component) {
|
|
|
95
95
|
if (stringPropVisible(props.message, props.showMessage)) {
|
|
96
96
|
set_descByIds(messageId);
|
|
97
97
|
}
|
|
98
|
+
handleValidation();
|
|
98
99
|
}
|
|
99
100
|
}, [_id]);
|
|
100
101
|
useEffect(() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,40 +1,79 @@
|
|
|
1
1
|
export * from './components/accordion';
|
|
2
2
|
export * from './components/accordion-item';
|
|
3
|
+
export * from './components/accordion-item/model';
|
|
4
|
+
export * from './components/accordion/model';
|
|
3
5
|
export * from './components/badge';
|
|
6
|
+
export * from './components/badge/model';
|
|
4
7
|
export * from './components/brand';
|
|
8
|
+
export * from './components/brand/model';
|
|
5
9
|
export * from './components/button';
|
|
10
|
+
export * from './components/button/model';
|
|
6
11
|
export * from './components/card';
|
|
12
|
+
export * from './components/card/model';
|
|
7
13
|
export * from './components/checkbox';
|
|
14
|
+
export * from './components/checkbox/model';
|
|
8
15
|
export * from './components/custom-select';
|
|
9
16
|
export * from './components/custom-select-dropdown';
|
|
17
|
+
export * from './components/custom-select-dropdown/model';
|
|
10
18
|
export * from './components/custom-select-form-field';
|
|
19
|
+
export * from './components/custom-select-form-field/model';
|
|
11
20
|
export * from './components/custom-select-list';
|
|
12
21
|
export * from './components/custom-select-list-item';
|
|
22
|
+
export * from './components/custom-select-list-item/model';
|
|
23
|
+
export * from './components/custom-select-list/model';
|
|
24
|
+
export * from './components/custom-select/model';
|
|
13
25
|
export * from './components/divider';
|
|
26
|
+
export * from './components/divider/model';
|
|
14
27
|
export * from './components/drawer';
|
|
28
|
+
export * from './components/drawer/model';
|
|
15
29
|
export * from './components/header';
|
|
30
|
+
export * from './components/header/model';
|
|
16
31
|
export * from './components/icon';
|
|
32
|
+
export * from './components/icon/model';
|
|
17
33
|
export * from './components/infotext';
|
|
34
|
+
export * from './components/infotext/model';
|
|
18
35
|
export * from './components/input';
|
|
36
|
+
export * from './components/input/model';
|
|
19
37
|
export * from './components/link';
|
|
38
|
+
export * from './components/link/model';
|
|
20
39
|
export * from './components/navigation';
|
|
21
40
|
export * from './components/navigation-item';
|
|
41
|
+
export * from './components/navigation-item/model';
|
|
42
|
+
export * from './components/navigation/model';
|
|
22
43
|
export * from './components/notification';
|
|
44
|
+
export * from './components/notification/model';
|
|
23
45
|
export * from './components/page';
|
|
46
|
+
export * from './components/page/model';
|
|
24
47
|
export * from './components/popover';
|
|
48
|
+
export * from './components/popover/model';
|
|
25
49
|
export * from './components/radio';
|
|
50
|
+
export * from './components/radio/model';
|
|
26
51
|
export * from './components/section';
|
|
52
|
+
export * from './components/section/model';
|
|
27
53
|
export * from './components/select';
|
|
54
|
+
export * from './components/select/model';
|
|
28
55
|
export * from './components/stack';
|
|
56
|
+
export * from './components/stack/model';
|
|
29
57
|
export * from './components/switch';
|
|
58
|
+
export * from './components/switch/model';
|
|
30
59
|
export * from './components/tab-item';
|
|
60
|
+
export * from './components/tab-item/model';
|
|
31
61
|
export * from './components/tab-list';
|
|
62
|
+
export * from './components/tab-list/model';
|
|
32
63
|
export * from './components/tab-panel';
|
|
64
|
+
export * from './components/tab-panel/model';
|
|
33
65
|
export * from './components/tabs';
|
|
66
|
+
export * from './components/tabs/model';
|
|
34
67
|
export * from './components/tag';
|
|
68
|
+
export * from './components/tag/model';
|
|
35
69
|
export * from './components/textarea';
|
|
70
|
+
export * from './components/textarea/model';
|
|
36
71
|
export * from './components/tooltip';
|
|
72
|
+
export * from './components/tooltip/model';
|
|
37
73
|
export * from './shared/constants';
|
|
38
74
|
export * from './shared/model';
|
|
75
|
+
export * from './utils/document-click-listener';
|
|
76
|
+
export * from './utils/document-scroll-listener';
|
|
77
|
+
export * from './utils/floating-components';
|
|
39
78
|
export * from './utils/index';
|
|
40
79
|
export * from './utils/navigation';
|
package/dist/index.js
CHANGED
|
@@ -1,40 +1,79 @@
|
|
|
1
1
|
export * from './components/accordion';
|
|
2
2
|
export * from './components/accordion-item';
|
|
3
|
+
export * from './components/accordion-item/model';
|
|
4
|
+
export * from './components/accordion/model';
|
|
3
5
|
export * from './components/badge';
|
|
6
|
+
export * from './components/badge/model';
|
|
4
7
|
export * from './components/brand';
|
|
8
|
+
export * from './components/brand/model';
|
|
5
9
|
export * from './components/button';
|
|
10
|
+
export * from './components/button/model';
|
|
6
11
|
export * from './components/card';
|
|
12
|
+
export * from './components/card/model';
|
|
7
13
|
export * from './components/checkbox';
|
|
14
|
+
export * from './components/checkbox/model';
|
|
8
15
|
export * from './components/custom-select';
|
|
9
16
|
export * from './components/custom-select-dropdown';
|
|
17
|
+
export * from './components/custom-select-dropdown/model';
|
|
10
18
|
export * from './components/custom-select-form-field';
|
|
19
|
+
export * from './components/custom-select-form-field/model';
|
|
11
20
|
export * from './components/custom-select-list';
|
|
12
21
|
export * from './components/custom-select-list-item';
|
|
22
|
+
export * from './components/custom-select-list-item/model';
|
|
23
|
+
export * from './components/custom-select-list/model';
|
|
24
|
+
export * from './components/custom-select/model';
|
|
13
25
|
export * from './components/divider';
|
|
26
|
+
export * from './components/divider/model';
|
|
14
27
|
export * from './components/drawer';
|
|
28
|
+
export * from './components/drawer/model';
|
|
15
29
|
export * from './components/header';
|
|
30
|
+
export * from './components/header/model';
|
|
16
31
|
export * from './components/icon';
|
|
32
|
+
export * from './components/icon/model';
|
|
17
33
|
export * from './components/infotext';
|
|
34
|
+
export * from './components/infotext/model';
|
|
18
35
|
export * from './components/input';
|
|
36
|
+
export * from './components/input/model';
|
|
19
37
|
export * from './components/link';
|
|
38
|
+
export * from './components/link/model';
|
|
20
39
|
export * from './components/navigation';
|
|
21
40
|
export * from './components/navigation-item';
|
|
41
|
+
export * from './components/navigation-item/model';
|
|
42
|
+
export * from './components/navigation/model';
|
|
22
43
|
export * from './components/notification';
|
|
44
|
+
export * from './components/notification/model';
|
|
23
45
|
export * from './components/page';
|
|
46
|
+
export * from './components/page/model';
|
|
24
47
|
export * from './components/popover';
|
|
48
|
+
export * from './components/popover/model';
|
|
25
49
|
export * from './components/radio';
|
|
50
|
+
export * from './components/radio/model';
|
|
26
51
|
export * from './components/section';
|
|
52
|
+
export * from './components/section/model';
|
|
27
53
|
export * from './components/select';
|
|
54
|
+
export * from './components/select/model';
|
|
28
55
|
export * from './components/stack';
|
|
56
|
+
export * from './components/stack/model';
|
|
29
57
|
export * from './components/switch';
|
|
58
|
+
export * from './components/switch/model';
|
|
30
59
|
export * from './components/tab-item';
|
|
60
|
+
export * from './components/tab-item/model';
|
|
31
61
|
export * from './components/tab-list';
|
|
62
|
+
export * from './components/tab-list/model';
|
|
32
63
|
export * from './components/tab-panel';
|
|
64
|
+
export * from './components/tab-panel/model';
|
|
33
65
|
export * from './components/tabs';
|
|
66
|
+
export * from './components/tabs/model';
|
|
34
67
|
export * from './components/tag';
|
|
68
|
+
export * from './components/tag/model';
|
|
35
69
|
export * from './components/textarea';
|
|
70
|
+
export * from './components/textarea/model';
|
|
36
71
|
export * from './components/tooltip';
|
|
72
|
+
export * from './components/tooltip/model';
|
|
37
73
|
export * from './shared/constants';
|
|
38
74
|
export * from './shared/model';
|
|
75
|
+
export * from './utils/document-click-listener';
|
|
76
|
+
export * from './utils/document-scroll-listener';
|
|
77
|
+
export * from './utils/floating-components';
|
|
39
78
|
export * from './utils/index';
|
|
40
79
|
export * from './utils/navigation';
|