@db-ux/react-core-components 4.11.1 → 4.12.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/CHANGELOG.md +23 -0
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.js +83 -102
- package/dist/components/accordion/index.d.ts +1 -1
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/accordion/model.d.ts +2 -2
- package/dist/components/accordion/model.js +2 -4
- package/dist/components/accordion-item/accordion-item.d.ts +2 -2
- package/dist/components/accordion-item/accordion-item.js +56 -89
- package/dist/components/accordion-item/index.d.ts +1 -1
- package/dist/components/accordion-item/index.js +1 -0
- package/dist/components/accordion-item/model.d.ts +1 -1
- package/dist/components/accordion-item/model.js +1 -0
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +28 -72
- package/dist/components/badge/index.d.ts +1 -1
- package/dist/components/badge/index.js +1 -0
- package/dist/components/badge/model.d.ts +1 -1
- package/dist/components/badge/model.js +1 -12
- package/dist/components/brand/brand.d.ts +1 -1
- package/dist/components/brand/brand.js +10 -60
- package/dist/components/brand/index.d.ts +1 -1
- package/dist/components/brand/index.js +1 -0
- package/dist/components/brand/model.d.ts +1 -1
- package/dist/components/brand/model.js +1 -0
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +19 -75
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +1 -0
- package/dist/components/button/model.d.ts +1 -1
- package/dist/components/button/model.js +2 -13
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.js +14 -65
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/card/index.js +1 -0
- package/dist/components/card/model.d.ts +1 -1
- package/dist/components/card/model.js +2 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +143 -163
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/checkbox/model.d.ts +1 -1
- package/dist/components/checkbox/model.js +1 -0
- package/dist/components/custom-button/custom-button.d.ts +1 -1
- package/dist/components/custom-button/custom-button.js +10 -65
- package/dist/components/custom-button/index.d.ts +1 -1
- package/dist/components/custom-button/index.js +1 -0
- package/dist/components/custom-button/model.d.ts +2 -2
- package/dist/components/custom-button/model.js +1 -0
- package/dist/components/custom-select/custom-select.d.ts +1 -1
- package/dist/components/custom-select/custom-select.js +688 -509
- package/dist/components/custom-select/index.d.ts +1 -1
- package/dist/components/custom-select/index.js +1 -0
- package/dist/components/custom-select/model.d.ts +4 -4
- package/dist/components/custom-select/model.js +1 -8
- package/dist/components/custom-select-dropdown/custom-select-dropdown.d.ts +1 -1
- package/dist/components/custom-select-dropdown/custom-select-dropdown.js +10 -62
- package/dist/components/custom-select-dropdown/index.d.ts +1 -1
- package/dist/components/custom-select-dropdown/index.js +1 -0
- package/dist/components/custom-select-dropdown/model.d.ts +1 -1
- package/dist/components/custom-select-dropdown/model.js +1 -8
- package/dist/components/custom-select-form-field/custom-select-form-field.d.ts +1 -1
- package/dist/components/custom-select-form-field/custom-select-form-field.js +9 -57
- package/dist/components/custom-select-form-field/index.d.ts +1 -1
- package/dist/components/custom-select-form-field/index.js +1 -0
- package/dist/components/custom-select-form-field/model.d.ts +1 -1
- package/dist/components/custom-select-form-field/model.js +1 -0
- package/dist/components/custom-select-list/custom-select-list.d.ts +1 -1
- package/dist/components/custom-select-list/custom-select-list.js +9 -60
- package/dist/components/custom-select-list/index.d.ts +1 -1
- package/dist/components/custom-select-list/index.js +1 -0
- package/dist/components/custom-select-list/model.d.ts +1 -1
- package/dist/components/custom-select-list/model.js +1 -0
- package/dist/components/custom-select-list-item/custom-select-list-item.d.ts +2 -2
- package/dist/components/custom-select-list-item/custom-select-list-item.js +28 -89
- package/dist/components/custom-select-list-item/index.d.ts +1 -1
- package/dist/components/custom-select-list-item/index.js +1 -0
- package/dist/components/custom-select-list-item/model.d.ts +1 -1
- package/dist/components/custom-select-list-item/model.js +1 -4
- package/dist/components/divider/divider.d.ts +1 -1
- package/dist/components/divider/divider.js +9 -60
- package/dist/components/divider/index.d.ts +1 -1
- package/dist/components/divider/index.js +1 -0
- package/dist/components/divider/model.d.ts +1 -1
- package/dist/components/divider/model.js +2 -4
- package/dist/components/drawer/drawer.d.ts +2 -2
- package/dist/components/drawer/drawer.js +109 -118
- package/dist/components/drawer/index.d.ts +1 -1
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/drawer/model.d.ts +4 -1
- package/dist/components/drawer/model.js +4 -14
- package/dist/components/header/header.d.ts +1 -1
- package/dist/components/header/header.js +43 -143
- package/dist/components/header/index.d.ts +1 -1
- package/dist/components/header/index.js +1 -0
- package/dist/components/header/model.d.ts +1 -1
- package/dist/components/header/model.js +1 -0
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon/icon.js +9 -61
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.js +1 -0
- package/dist/components/icon/model.d.ts +1 -1
- package/dist/components/icon/model.js +1 -11
- package/dist/components/infotext/index.d.ts +1 -1
- package/dist/components/infotext/index.js +1 -0
- package/dist/components/infotext/infotext.d.ts +1 -1
- package/dist/components/infotext/infotext.js +9 -62
- package/dist/components/infotext/model.d.ts +1 -1
- package/dist/components/infotext/model.js +1 -0
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +1 -0
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +154 -198
- package/dist/components/input/model.d.ts +1 -1
- package/dist/components/input/model.js +5 -21
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/link.d.ts +1 -1
- package/dist/components/link/link.js +9 -70
- package/dist/components/link/model.d.ts +1 -1
- package/dist/components/link/model.js +3 -8
- package/dist/components/navigation/index.d.ts +1 -1
- package/dist/components/navigation/index.js +1 -0
- package/dist/components/navigation/model.d.ts +1 -1
- package/dist/components/navigation/model.js +1 -0
- package/dist/components/navigation/navigation.d.ts +1 -1
- package/dist/components/navigation/navigation.js +9 -57
- package/dist/components/navigation-item/index.d.ts +1 -1
- package/dist/components/navigation-item/index.js +1 -0
- package/dist/components/navigation-item/model.d.ts +2 -2
- package/dist/components/navigation-item/model.js +1 -0
- package/dist/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/components/navigation-item/navigation-item.js +71 -117
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/index.js +1 -0
- package/dist/components/notification/model.d.ts +1 -1
- package/dist/components/notification/model.js +3 -12
- package/dist/components/notification/notification.d.ts +2 -2
- package/dist/components/notification/notification.js +23 -100
- package/dist/components/page/index.d.ts +1 -1
- package/dist/components/page/index.js +1 -0
- package/dist/components/page/model.d.ts +1 -1
- package/dist/components/page/model.js +2 -4
- package/dist/components/page/page.d.ts +1 -1
- package/dist/components/page/page.js +42 -74
- package/dist/components/popover/index.d.ts +1 -1
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/model.d.ts +1 -1
- package/dist/components/popover/model.js +1 -0
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/popover/popover.js +119 -126
- package/dist/components/radio/index.d.ts +1 -1
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/model.d.ts +1 -1
- package/dist/components/radio/model.js +1 -0
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +86 -124
- package/dist/components/section/index.d.ts +1 -1
- package/dist/components/section/index.js +1 -0
- package/dist/components/section/model.d.ts +1 -1
- package/dist/components/section/model.js +1 -0
- package/dist/components/section/section.d.ts +1 -1
- package/dist/components/section/section.js +9 -59
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +1 -0
- package/dist/components/select/model.d.ts +1 -1
- package/dist/components/select/model.js +1 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +172 -188
- package/dist/components/stack/index.d.ts +1 -1
- package/dist/components/stack/index.js +1 -0
- package/dist/components/stack/model.d.ts +1 -1
- package/dist/components/stack/model.js +4 -14
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +9 -63
- package/dist/components/switch/index.d.ts +1 -1
- package/dist/components/switch/index.js +1 -0
- package/dist/components/switch/model.d.ts +1 -1
- package/dist/components/switch/model.js +1 -0
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +135 -182
- package/dist/components/tab-item/index.d.ts +1 -1
- package/dist/components/tab-item/index.js +1 -0
- package/dist/components/tab-item/model.d.ts +1 -1
- package/dist/components/tab-item/model.js +1 -0
- package/dist/components/tab-item/tab-item.d.ts +1 -1
- package/dist/components/tab-item/tab-item.js +72 -105
- package/dist/components/tab-list/index.d.ts +1 -1
- package/dist/components/tab-list/index.js +1 -0
- package/dist/components/tab-list/model.d.ts +1 -1
- package/dist/components/tab-list/model.js +1 -0
- package/dist/components/tab-list/tab-list.d.ts +1 -1
- package/dist/components/tab-list/tab-list.js +9 -60
- package/dist/components/tab-panel/index.d.ts +1 -1
- package/dist/components/tab-panel/index.js +1 -0
- package/dist/components/tab-panel/model.d.ts +1 -1
- package/dist/components/tab-panel/model.js +1 -0
- package/dist/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/components/tab-panel/tab-panel.js +10 -59
- package/dist/components/table/examples/data.d.ts +1 -1
- package/dist/components/table/examples/data.js +258 -0
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.js +1 -0
- package/dist/components/table/model.d.ts +2 -2
- package/dist/components/table/model.js +6 -28
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +77 -111
- package/dist/components/table-body/index.d.ts +1 -1
- package/dist/components/table-body/index.js +1 -0
- package/dist/components/table-body/model.d.ts +2 -2
- package/dist/components/table-body/model.js +1 -0
- package/dist/components/table-body/table-body.d.ts +1 -1
- package/dist/components/table-body/table-body.js +12 -64
- package/dist/components/table-caption/index.d.ts +1 -1
- package/dist/components/table-caption/index.js +1 -0
- package/dist/components/table-caption/model.d.ts +1 -1
- package/dist/components/table-caption/model.js +1 -0
- package/dist/components/table-caption/table-caption.d.ts +1 -1
- package/dist/components/table-caption/table-caption.js +9 -57
- package/dist/components/table-data-cell/index.d.ts +1 -1
- package/dist/components/table-data-cell/index.js +1 -0
- package/dist/components/table-data-cell/model.d.ts +1 -1
- package/dist/components/table-data-cell/model.js +1 -0
- package/dist/components/table-data-cell/table-data-cell.d.ts +1 -1
- package/dist/components/table-data-cell/table-data-cell.js +9 -62
- package/dist/components/table-footer/index.d.ts +1 -1
- package/dist/components/table-footer/index.js +1 -0
- package/dist/components/table-footer/model.d.ts +2 -2
- package/dist/components/table-footer/model.js +1 -0
- package/dist/components/table-footer/table-footer.d.ts +1 -1
- package/dist/components/table-footer/table-footer.js +12 -64
- package/dist/components/table-head/index.d.ts +1 -1
- package/dist/components/table-head/index.js +1 -0
- package/dist/components/table-head/model.d.ts +2 -2
- package/dist/components/table-head/model.js +1 -0
- package/dist/components/table-head/table-head.d.ts +1 -1
- package/dist/components/table-head/table-head.js +18 -71
- package/dist/components/table-header-cell/index.d.ts +1 -1
- package/dist/components/table-header-cell/index.js +1 -0
- package/dist/components/table-header-cell/model.d.ts +1 -1
- package/dist/components/table-header-cell/model.js +1 -9
- package/dist/components/table-header-cell/table-header-cell.d.ts +1 -1
- package/dist/components/table-header-cell/table-header-cell.js +9 -65
- package/dist/components/table-row/index.d.ts +1 -1
- package/dist/components/table-row/index.js +1 -0
- package/dist/components/table-row/model.d.ts +4 -4
- package/dist/components/table-row/model.js +1 -8
- package/dist/components/table-row/table-row.d.ts +1 -1
- package/dist/components/table-row/table-row.js +20 -127
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/model.d.ts +3 -3
- package/dist/components/tabs/model.js +2 -4
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.js +170 -191
- package/dist/components/tag/index.d.ts +1 -1
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/model.d.ts +1 -1
- package/dist/components/tag/model.js +1 -4
- package/dist/components/tag/tag.d.ts +1 -1
- package/dist/components/tag/tag.js +26 -91
- package/dist/components/textarea/index.d.ts +1 -1
- package/dist/components/textarea/index.js +1 -0
- package/dist/components/textarea/model.d.ts +1 -1
- package/dist/components/textarea/model.js +2 -13
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/textarea/textarea.js +139 -165
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/model.d.ts +1 -1
- package/dist/components/tooltip/model.js +1 -4
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +197 -160
- package/dist/index.d.ts +97 -97
- package/dist/index.js +97 -75
- package/dist/shared/constants.js +100 -32
- package/dist/shared/examples/index.js +4 -0
- package/dist/shared/figma.js +1 -0
- package/dist/shared/model.js +22 -77
- package/dist/shared/showcase/show-code-link.js +51 -0
- package/dist/utils/document-click-listener.js +29 -26
- package/dist/utils/document-scroll-listener.js +38 -30
- package/dist/utils/floating-components.js +404 -107
- package/dist/utils/form-components.js +71 -34
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +170 -49
- package/dist/utils/navigation.js +134 -68
- package/dist/utils/react.js +21 -10
- package/package.json +6 -9
|
@@ -1,120 +1,111 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
children: c.closeButtonText ?? "Close"
|
|
110
|
-
})]
|
|
111
|
-
}), /* @__PURE__ */ p("div", {
|
|
112
|
-
className: "db-drawer-content",
|
|
113
|
-
children: c.children
|
|
114
|
-
})]
|
|
115
|
-
})
|
|
116
|
-
});
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_CLOSE_BUTTON } from "../../shared/constants.js";
|
|
6
|
+
import { cls, delay, getBoolean, getBooleanAsString, isKeyboardEvent, } from "../../utils/index.js";
|
|
7
|
+
import DBButton from "../button/button.js";
|
|
8
|
+
function DBDrawerFn(props, component) {
|
|
9
|
+
const _ref = component || useRef(component);
|
|
10
|
+
const dialogContainerRef = useRef(null);
|
|
11
|
+
const [initialized, setInitialized] = useState(() => false);
|
|
12
|
+
const [backdropPointerDown, setBackdropPointerDown] = useState(() => false);
|
|
13
|
+
function isNotModal() {
|
|
14
|
+
return (props.position === "absolute" ||
|
|
15
|
+
props.backdrop === "none" ||
|
|
16
|
+
props.variant === "inside");
|
|
17
|
+
}
|
|
18
|
+
function handleBackdropPointerDown(event) {
|
|
19
|
+
// Remember whether the pointer interaction started on the backdrop
|
|
20
|
+
// (the DIALOG element itself) so we only close on a real backdrop
|
|
21
|
+
// click and not when a drag started inside the content and ended
|
|
22
|
+
// on the backdrop.
|
|
23
|
+
setBackdropPointerDown(event?.target?.nodeName === "DIALOG");
|
|
24
|
+
}
|
|
25
|
+
function handleClose(event, forceClose) {
|
|
26
|
+
if (!event)
|
|
27
|
+
return;
|
|
28
|
+
if (isKeyboardEvent(event)) {
|
|
29
|
+
if (event.key === "Escape") {
|
|
30
|
+
event.preventDefault();
|
|
31
|
+
if (props.onClose) {
|
|
32
|
+
props.onClose(event);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
if (forceClose) {
|
|
38
|
+
event.stopPropagation();
|
|
39
|
+
if (props.onClose) {
|
|
40
|
+
props.onClose(event);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
if (event.target?.nodeName === "DIALOG" &&
|
|
44
|
+
event.type === "click" &&
|
|
45
|
+
props.backdrop !== "none" &&
|
|
46
|
+
backdropPointerDown) {
|
|
47
|
+
if (props.onClose) {
|
|
48
|
+
props.onClose(event);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Reset after handling the click so the next interaction
|
|
52
|
+
// starts from a clean state.
|
|
53
|
+
setBackdropPointerDown(false);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
function handleDialogOpen() {
|
|
57
|
+
if (_ref.current) {
|
|
58
|
+
const dialogOpen = getBoolean(props.open, "open");
|
|
59
|
+
if (dialogOpen && !_ref.current.open) {
|
|
60
|
+
if (dialogContainerRef.current) {
|
|
61
|
+
dialogContainerRef.current.removeAttribute("data-transition");
|
|
62
|
+
}
|
|
63
|
+
if (isNotModal()) {
|
|
64
|
+
_ref.current.show();
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
// Set the closedby attribute imperatively: the JSX
|
|
68
|
+
// dialog type does not know this attribute yet, and it
|
|
69
|
+
// only applies to modal dialogs. "any" enables native
|
|
70
|
+
// light dismiss (backdrop click / Esc).
|
|
71
|
+
_ref.current.setAttribute("closedby", "any");
|
|
72
|
+
_ref.current.showModal();
|
|
73
|
+
}
|
|
74
|
+
void delay(() => {
|
|
75
|
+
if (dialogContainerRef.current) {
|
|
76
|
+
dialogContainerRef.current.dataset["transition"] = "open";
|
|
77
|
+
}
|
|
78
|
+
}, 1);
|
|
79
|
+
}
|
|
80
|
+
if (!dialogOpen && _ref.current.open) {
|
|
81
|
+
if (dialogContainerRef.current) {
|
|
82
|
+
dialogContainerRef.current.dataset["transition"] =
|
|
83
|
+
"close";
|
|
84
|
+
}
|
|
85
|
+
void delay(() => {
|
|
86
|
+
_ref.current?.close();
|
|
87
|
+
}, 401);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const [state, setState] = useState(() => null);
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
handleDialogOpen();
|
|
94
|
+
setInitialized(true);
|
|
95
|
+
}, []);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
handleDialogOpen();
|
|
98
|
+
}, [props.open]);
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (_ref.current && initialized && props.position === "absolute") {
|
|
101
|
+
const refElement = _ref.current;
|
|
102
|
+
const parent = refElement.parentElement;
|
|
103
|
+
if (parent) {
|
|
104
|
+
parent.style.position = "relative";
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}, [_ref.current, initialized, props.position]);
|
|
108
|
+
return (_jsx("dialog", { className: "db-drawer", id: props.id ?? props.propOverrides?.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", "data-density", "onClose"]), onClick: (event) => handleClose(event), onMouseDown: (event) => handleBackdropPointerDown(event), onKeyDown: (event) => handleClose(event), "data-position": props.position, "data-backdrop": props.backdrop, "data-direction": props.direction, "data-variant": props.variant, children: _jsxs("article", { 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", "data-density"]), className: cls("db-drawer-container", props.className), "data-spacing": props.spacing, "data-width": props.width, "data-direction": props.direction, "data-rounded": getBooleanAsString(props.rounded, "rounded"), children: [_jsxs("header", { className: "db-drawer-header", children: [_jsx("div", { className: "db-drawer-header-text", children: _jsx(_Fragment, { children: props.drawerHeader }) }), _jsx(DBButton, { className: "button-close-drawer", icon: "cross", variant: "ghost", id: props.closeButtonId, noText: true, onClick: (event) => handleClose(event, true), children: props.closeButtonText ?? DEFAULT_CLOSE_BUTTON })] }), _jsx("div", { className: "db-drawer-content", children: props.children })] }) }));
|
|
117
109
|
}
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export { g as default };
|
|
110
|
+
const DBDrawer = forwardRef(DBDrawerFn);
|
|
111
|
+
export default DBDrawer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBDrawer } from './drawer';
|
|
1
|
+
export { default as DBDrawer } from './drawer.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBDrawer } from './drawer.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model';
|
|
1
|
+
import type { ClickEvent, CloseEventProps, CloseEventState, GeneralKeyboardEvent, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, SpacingProps, WidthProps } from '../../shared/model.js';
|
|
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"];
|
|
@@ -46,5 +46,8 @@ export type DBDrawerDefaultProps = {
|
|
|
46
46
|
export type DBDrawerProps = DBDrawerDefaultProps & GlobalProps & CloseEventProps<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InnerCloseButtonProps & WidthProps & SpacingProps;
|
|
47
47
|
export type DBDrawerDefaultState = {
|
|
48
48
|
handleDialogOpen: () => void;
|
|
49
|
+
isNotModal: () => boolean;
|
|
50
|
+
handleBackdropPointerDown: (event: any) => void;
|
|
51
|
+
backdropPointerDown: boolean;
|
|
49
52
|
};
|
|
50
53
|
export type DBDrawerState = DBDrawerDefaultState & GlobalState & CloseEventState<ClickEvent<HTMLButtonElement | HTMLDialogElement> | GeneralKeyboardEvent<HTMLDialogElement>> & InitializedState;
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"weak",
|
|
6
|
-
"invisible"
|
|
7
|
-
], t = [
|
|
8
|
-
"left",
|
|
9
|
-
"right",
|
|
10
|
-
"up",
|
|
11
|
-
"down"
|
|
12
|
-
], n = ["modal", "inside"], r = ["fixed", "absolute"];
|
|
13
|
-
//#endregion
|
|
14
|
-
export { e as DrawerBackdropList, t as DrawerDirectionList, r as DrawerPositionList, n as DrawerVariantList };
|
|
1
|
+
export const DrawerBackdropList = ['none', 'strong', 'weak', 'invisible'];
|
|
2
|
+
export const DrawerDirectionList = ['left', 'right', 'up', 'down'];
|
|
3
|
+
export const DrawerVariantList = ['modal', 'inside'];
|
|
4
|
+
export const DrawerPositionList = ['fixed', 'absolute'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("
|
|
2
|
+
declare const DBHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../index.js").GlobalProps | keyof import("../../index.js").ToggleEventProps | "width" | keyof import("../../index.js").InnerCloseButtonProps | keyof import("./model.js").DBHeaderDefaultProps> & import("./model.js").DBHeaderDefaultProps & import("../../index.js").InnerCloseButtonProps & import("../../index.js").GlobalProps & import("../../index.js").ToggleEventProps & import("../../index.js").ContainerWidthProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBHeader;
|
|
@@ -1,145 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { isEventTargetNavigationItem
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"data-color-scheme",
|
|
44
|
-
"data-font-size",
|
|
45
|
-
"data-headline-size",
|
|
46
|
-
"data-divider",
|
|
47
|
-
"data-focus",
|
|
48
|
-
"data-font",
|
|
49
|
-
"data-density",
|
|
50
|
-
"onToggle"
|
|
51
|
-
]),
|
|
52
|
-
...t(c, [
|
|
53
|
-
"data-icon-variant",
|
|
54
|
-
"data-icon-variant-before",
|
|
55
|
-
"data-icon-variant-after",
|
|
56
|
-
"data-icon-weight",
|
|
57
|
-
"data-icon-weight-before",
|
|
58
|
-
"data-icon-weight-after",
|
|
59
|
-
"data-interactive",
|
|
60
|
-
"data-force-mobile",
|
|
61
|
-
"data-color",
|
|
62
|
-
"data-container-color",
|
|
63
|
-
"data-bg-color",
|
|
64
|
-
"data-on-bg-color",
|
|
65
|
-
"data-color-scheme",
|
|
66
|
-
"data-font-size",
|
|
67
|
-
"data-headline-size",
|
|
68
|
-
"data-divider",
|
|
69
|
-
"data-focus",
|
|
70
|
-
"data-font",
|
|
71
|
-
"data-density"
|
|
72
|
-
]),
|
|
73
|
-
className: r("db-header", c.className),
|
|
74
|
-
id: c.id ?? c.propOverrides?.id,
|
|
75
|
-
"data-width": c.width,
|
|
76
|
-
"data-on-forcing-mobile": c.forceMobile && !y,
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ p("div", {
|
|
79
|
-
className: "db-header-meta-navigation",
|
|
80
|
-
children: /* @__PURE__ */ p(f, { children: c.metaNavigation })
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ m("div", {
|
|
83
|
-
className: "db-header-navigation-bar",
|
|
84
|
-
children: [
|
|
85
|
-
/* @__PURE__ */ p("div", {
|
|
86
|
-
className: "db-header-brand-container",
|
|
87
|
-
children: /* @__PURE__ */ p(f, { children: c.brand })
|
|
88
|
-
}),
|
|
89
|
-
/* @__PURE__ */ m("div", {
|
|
90
|
-
className: "db-header-navigation-container",
|
|
91
|
-
children: [/* @__PURE__ */ p("div", {
|
|
92
|
-
className: "db-header-navigation",
|
|
93
|
-
children: c.children
|
|
94
|
-
}), /* @__PURE__ */ p("div", {
|
|
95
|
-
className: "db-header-primary-action",
|
|
96
|
-
children: /* @__PURE__ */ p(f, { children: c.primaryAction })
|
|
97
|
-
})]
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ m("div", {
|
|
100
|
-
className: "db-header-action-container",
|
|
101
|
-
children: [/* @__PURE__ */ p("div", {
|
|
102
|
-
className: "db-header-burger-menu-container",
|
|
103
|
-
children: /* @__PURE__ */ p(a, {
|
|
104
|
-
icon: "menu",
|
|
105
|
-
variant: "ghost",
|
|
106
|
-
noText: !0,
|
|
107
|
-
onClick: (e) => x(),
|
|
108
|
-
children: c.burgerMenuLabel ?? "BurgerMenu"
|
|
109
|
-
})
|
|
110
|
-
}), /* @__PURE__ */ p("div", {
|
|
111
|
-
className: "db-header-secondary-action",
|
|
112
|
-
children: /* @__PURE__ */ p(f, { children: c.secondaryAction })
|
|
113
|
-
})]
|
|
114
|
-
})
|
|
115
|
-
]
|
|
116
|
-
}),
|
|
117
|
-
/* @__PURE__ */ m(o, {
|
|
118
|
-
className: "db-header-drawer",
|
|
119
|
-
spacing: "small",
|
|
120
|
-
rounded: !0,
|
|
121
|
-
closeButtonId: c.closeButtonId,
|
|
122
|
-
closeButtonText: c.closeButtonText,
|
|
123
|
-
open: i(c.drawerOpen),
|
|
124
|
-
onClose: (e) => x(),
|
|
125
|
-
children: [/* @__PURE__ */ m("div", {
|
|
126
|
-
className: "db-header-drawer-navigation",
|
|
127
|
-
children: [/* @__PURE__ */ p("div", {
|
|
128
|
-
className: "db-header-navigation",
|
|
129
|
-
onClick: (e) => S(e),
|
|
130
|
-
children: c.children
|
|
131
|
-
}), /* @__PURE__ */ p("div", {
|
|
132
|
-
className: "db-header-meta-navigation",
|
|
133
|
-
children: /* @__PURE__ */ p(f, { children: c.metaNavigation })
|
|
134
|
-
})]
|
|
135
|
-
}), /* @__PURE__ */ p("div", {
|
|
136
|
-
className: "db-header-secondary-action",
|
|
137
|
-
children: /* @__PURE__ */ p(f, { children: c.secondaryAction })
|
|
138
|
-
})]
|
|
139
|
-
})
|
|
140
|
-
]
|
|
141
|
-
});
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useState, useRef, useEffect, forwardRef } from "react";
|
|
5
|
+
import { DEFAULT_BURGER_MENU } from "../../shared/constants.js";
|
|
6
|
+
import { addAttributeToChildren, cls, getBoolean } from "../../utils/index.js";
|
|
7
|
+
import { isEventTargetNavigationItem } from "../../utils/navigation.js";
|
|
8
|
+
import DBButton from "../button/button.js";
|
|
9
|
+
import DBDrawer from "../drawer/drawer.js";
|
|
10
|
+
function DBHeaderFn(props, component) {
|
|
11
|
+
const _ref = component || useRef(component);
|
|
12
|
+
const [initialized, setInitialized] = useState(() => false);
|
|
13
|
+
const [forcedToMobile, setForcedToMobile] = useState(() => false);
|
|
14
|
+
function handleToggle(event) {
|
|
15
|
+
if (event && event.stopPropagation) {
|
|
16
|
+
event.stopPropagation();
|
|
17
|
+
}
|
|
18
|
+
const open = !getBoolean(props.drawerOpen, "drawerOpen");
|
|
19
|
+
if (props.onToggle) {
|
|
20
|
+
props.onToggle(open);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
function handleNavigationItemClick(event) {
|
|
24
|
+
if (isEventTargetNavigationItem(event)) {
|
|
25
|
+
handleToggle();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setInitialized(true);
|
|
30
|
+
}, []);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (initialized && _ref.current && props.forceMobile) {
|
|
33
|
+
// Adds this attribute to the header to enable all styling which would have
|
|
34
|
+
// @media screen and (min-width: $db-screens-m) to show mobile navigation on a desktop device
|
|
35
|
+
addAttributeToChildren(_ref.current, {
|
|
36
|
+
key: "data-force-mobile",
|
|
37
|
+
value: "true",
|
|
38
|
+
});
|
|
39
|
+
setForcedToMobile(true);
|
|
40
|
+
}
|
|
41
|
+
}, [initialized, _ref.current]);
|
|
42
|
+
return (_jsxs("header", { ref: _ref, ...filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density", "onToggle"]), ...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", "data-density"]), className: cls("db-header", props.className), id: props.id ?? props.propOverrides?.id, "data-width": props.width, "data-on-forcing-mobile": props.forceMobile && !forcedToMobile, children: [_jsx("div", { className: "db-header-meta-navigation", children: _jsx(_Fragment, { children: props.metaNavigation }) }), _jsxs("div", { className: "db-header-navigation-bar", children: [_jsx("div", { className: "db-header-brand-container", children: _jsx(_Fragment, { children: props.brand }) }), _jsxs("div", { className: "db-header-navigation-container", children: [_jsx("div", { className: "db-header-navigation", children: props.children }), _jsx("div", { className: "db-header-primary-action", children: _jsx(_Fragment, { children: props.primaryAction }) })] }), _jsxs("div", { className: "db-header-action-container", children: [_jsx("div", { className: "db-header-burger-menu-container", children: _jsx(DBButton, { icon: "menu", variant: "ghost", noText: true, onClick: (event) => handleToggle(), children: props.burgerMenuLabel ?? DEFAULT_BURGER_MENU }) }), _jsx("div", { className: "db-header-secondary-action", children: _jsx(_Fragment, { children: props.secondaryAction }) })] })] }), _jsxs(DBDrawer, { className: "db-header-drawer", spacing: "small", rounded: true, closeButtonId: props.closeButtonId, closeButtonText: props.closeButtonText, open: getBoolean(props.drawerOpen), onClose: (event) => handleToggle(), children: [_jsxs("div", { className: "db-header-drawer-navigation", children: [_jsx("div", { className: "db-header-navigation", onClick: (event) => handleNavigationItemClick(event), children: props.children }), _jsx("div", { className: "db-header-meta-navigation", children: _jsx(_Fragment, { children: props.metaNavigation }) })] }), _jsx("div", { className: "db-header-secondary-action", children: _jsx(_Fragment, { children: props.secondaryAction }) })] })] }));
|
|
142
43
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
export { g as default };
|
|
44
|
+
const DBHeader = forwardRef(DBHeaderFn);
|
|
45
|
+
export default DBHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBHeader } from './header';
|
|
1
|
+
export { default as DBHeader } from './header.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBHeader } from './header.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model';
|
|
1
|
+
import type { ContainerWidthProps, GlobalProps, GlobalState, InitializedState, InnerCloseButtonProps, NavigationBehaviorState, ToggleEventProps, ToggleEventState } from '../../shared/model.js';
|
|
2
2
|
export type DBHeaderDefaultProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Slot to pass in the DBBrand component
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBIcon: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("
|
|
2
|
+
declare const DBIcon: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../index.js").GlobalProps | "text" | "icon" | keyof import("./model.js").DBIconDefaultProps> & import("./model.js").DBIconDefaultProps & import("../../index.js").GlobalProps & import("../../index.js").IconProps & import("../../index.js").TextProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBIcon;
|
|
@@ -1,63 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
ref: c || i(c),
|
|
11
|
-
...e(r, [
|
|
12
|
-
"data-icon-variant",
|
|
13
|
-
"data-icon-variant-before",
|
|
14
|
-
"data-icon-variant-after",
|
|
15
|
-
"data-icon-weight",
|
|
16
|
-
"data-icon-weight-before",
|
|
17
|
-
"data-icon-weight-after",
|
|
18
|
-
"data-interactive",
|
|
19
|
-
"data-force-mobile",
|
|
20
|
-
"data-color",
|
|
21
|
-
"data-container-color",
|
|
22
|
-
"data-bg-color",
|
|
23
|
-
"data-on-bg-color",
|
|
24
|
-
"data-color-scheme",
|
|
25
|
-
"data-font-size",
|
|
26
|
-
"data-headline-size",
|
|
27
|
-
"data-divider",
|
|
28
|
-
"data-focus",
|
|
29
|
-
"data-font",
|
|
30
|
-
"data-density"
|
|
31
|
-
]),
|
|
32
|
-
id: r.id ?? r.propOverrides?.id,
|
|
33
|
-
...t(r, [
|
|
34
|
-
"data-icon-variant",
|
|
35
|
-
"data-icon-variant-before",
|
|
36
|
-
"data-icon-variant-after",
|
|
37
|
-
"data-icon-weight",
|
|
38
|
-
"data-icon-weight-before",
|
|
39
|
-
"data-icon-weight-after",
|
|
40
|
-
"data-interactive",
|
|
41
|
-
"data-force-mobile",
|
|
42
|
-
"data-color",
|
|
43
|
-
"data-container-color",
|
|
44
|
-
"data-bg-color",
|
|
45
|
-
"data-on-bg-color",
|
|
46
|
-
"data-color-scheme",
|
|
47
|
-
"data-font-size",
|
|
48
|
-
"data-headline-size",
|
|
49
|
-
"data-divider",
|
|
50
|
-
"data-focus",
|
|
51
|
-
"data-font",
|
|
52
|
-
"data-density"
|
|
53
|
-
]),
|
|
54
|
-
className: n("db-icon", r.className),
|
|
55
|
-
"data-icon": r.icon,
|
|
56
|
-
"data-icon-weight": r.weight,
|
|
57
|
-
"data-icon-variant": r.variant,
|
|
58
|
-
children: [r.text ? /* @__PURE__ */ o(a, { children: r.text }) : null, r.children]
|
|
59
|
-
});
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { filterPassingProps, getRootProps } from "../../utils/react.js";
|
|
4
|
+
import { useRef, forwardRef } from "react";
|
|
5
|
+
import { cls } from "../../utils/index.js";
|
|
6
|
+
function DBIconFn(props, component) {
|
|
7
|
+
const _ref = component || useRef(component);
|
|
8
|
+
return (_jsxs("span", { "aria-hidden": "true", ref: _ref, ...filterPassingProps(props, ["data-icon-variant", "data-icon-variant-before", "data-icon-variant-after", "data-icon-weight", "data-icon-weight-before", "data-icon-weight-after", "data-interactive", "data-force-mobile", "data-color", "data-container-color", "data-bg-color", "data-on-bg-color", "data-color-scheme", "data-font-size", "data-headline-size", "data-divider", "data-focus", "data-font", "data-density"]), id: props.id ?? props.propOverrides?.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", "data-density"]), className: cls("db-icon", props.className), "data-icon": props.icon, "data-icon-weight": props.weight, "data-icon-variant": props.variant, children: [props.text ? _jsx(_Fragment, { children: props.text }) : null, props.children] }));
|
|
60
9
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
export { l as default };
|
|
10
|
+
const DBIcon = forwardRef(DBIconFn);
|
|
11
|
+
export default DBIcon;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBIcon } from './icon';
|
|
1
|
+
export { default as DBIcon } from './icon.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBIcon } from './icon.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model';
|
|
1
|
+
import type { GlobalProps, GlobalState, IconProps, TextProps } from '../../shared/model.js';
|
|
2
2
|
export declare const IconWeightList: readonly ["16", "20", "24", "32", "48", "64"];
|
|
3
3
|
export type IconWeightType = (typeof IconWeightList)[number];
|
|
4
4
|
export type DBIconDefaultProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as DBInfotext } from './infotext';
|
|
1
|
+
export { default as DBInfotext } from './infotext.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DBInfotext } from './infotext.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare const DBInfotext: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("
|
|
2
|
+
declare const DBInfotext: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<any>, keyof import("../../index.js").GlobalProps | "semantic" | "text" | "size" | "wrap" | "icon" | "showIcon"> & import("../../index.js").GlobalProps & import("../../index.js").SemanticProps & import("../../index.js").IconProps & import("../../index.js").SizeProps & import("../../index.js").ShowIconProps & import("../../index.js").TextProps & import("../../index.js").WrapProps & React.RefAttributes<any>>;
|
|
3
3
|
export default DBInfotext;
|