@tedi-design-system/react 16.2.0-rc.1 → 17.0.0-rc.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/_virtual/index.es13.js +2 -2
- package/_virtual/index.es14.js +2 -2
- package/bundle-stats.html +1 -1
- package/external/react-is/index.cjs.js +1 -1
- package/external/react-is/index.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/package.json +1 -1
- package/src/community/components/accordion/accordion-item-content/accordion-item-content.cjs.js +1 -1
- package/src/community/components/accordion/accordion-item-content/accordion-item-content.es.js +1 -1
- package/src/community/components/map-components/map-accordion/map-accordion-item-content.cjs.js +1 -1
- package/src/community/components/map-components/map-accordion/map-accordion-item-content.es.js +5 -5
- package/src/community/components/table/table.cjs.js +1 -1
- package/src/community/components/table/table.es.js +10 -10
- package/src/community/components/tabs/tabs/tabs.cjs.js +1 -1
- package/src/community/components/tabs/tabs/tabs.es.js +1 -1
- package/src/tedi/components/buttons/collapse/collapse.cjs.js +1 -1
- package/src/tedi/components/buttons/collapse/collapse.es.js +8 -8
- package/src/tedi/helpers/index.d.ts +0 -1
- package/src/tedi/index.d.ts +1 -0
- package/src/tedi/providers/printing-provider/index.d.ts +1 -0
- package/src/tedi/providers/printing-provider/printing-provider.cjs.js +1 -0
- package/src/tedi/providers/printing-provider/printing-provider.d.ts +7 -0
- package/src/tedi/providers/printing-provider/printing-provider.es.js +21 -0
- package/tedi.cjs.js +1 -1
- package/tedi.es.js +115 -114
- package/src/tedi/helpers/hooks/use-print.cjs.js +0 -1
- package/src/tedi/helpers/hooks/use-print.d.ts +0 -2
- package/src/tedi/helpers/hooks/use-print.es.js +0 -18
package/tedi.es.js
CHANGED
|
@@ -6,12 +6,12 @@ import { Section as a } from "./src/tedi/components/content/section/section.es.j
|
|
|
6
6
|
import { HeadingWithIcon as d } from "./src/tedi/components/content/heading-with-icon/heading-with-icon.es.js";
|
|
7
7
|
import { Truncate as c } from "./src/tedi/components/content/truncate/truncate.es.js";
|
|
8
8
|
import { TextGroup as C } from "./src/tedi/components/content/text-group/text-group.es.js";
|
|
9
|
-
import { Spinner as
|
|
10
|
-
import { Tag as
|
|
9
|
+
import { Spinner as g } from "./src/tedi/components/loaders/spinner/spinner.es.js";
|
|
10
|
+
import { Tag as v } from "./src/tedi/components/tags/tag/tag.es.js";
|
|
11
11
|
import { StatusBadge as h } from "./src/tedi/components/tags/status-badge/status-badge.es.js";
|
|
12
|
-
import { ClosingButton as
|
|
13
|
-
import { Button as
|
|
14
|
-
import { InfoButton as
|
|
12
|
+
import { ClosingButton as B } from "./src/tedi/components/buttons/closing-button/closing-button.es.js";
|
|
13
|
+
import { Button as k } from "./src/tedi/components/buttons/button/button.es.js";
|
|
14
|
+
import { InfoButton as L } from "./src/tedi/components/buttons/info-button/info-button.es.js";
|
|
15
15
|
import { FloatingButton as F } from "./src/tedi/components/buttons/floating-button/floating-button.es.js";
|
|
16
16
|
import { ButtonGroup as A } from "./src/tedi/components/buttons/button-group/button-group.es.js";
|
|
17
17
|
import { Collapse as y } from "./src/tedi/components/buttons/collapse/collapse.es.js";
|
|
@@ -33,81 +33,81 @@ import { Separator as ao } from "./src/tedi/components/misc/separator/separator.
|
|
|
33
33
|
import { Print as so } from "./src/tedi/components/misc/print/print.es.js";
|
|
34
34
|
import { StretchContent as uo } from "./src/tedi/components/misc/stretch-content/stretch-content.es.js";
|
|
35
35
|
import { ScrollVisibility as So } from "./src/tedi/components/misc/scroll-visibility/scroll-visibility.es.js";
|
|
36
|
-
import { ScrollFade as
|
|
37
|
-
import { Affix as
|
|
38
|
-
import { Ellipsis as
|
|
39
|
-
import { StyleProvider as
|
|
40
|
-
import { AccessibilityContext as
|
|
36
|
+
import { ScrollFade as To } from "./src/tedi/components/misc/scroll-fade/scroll-fade.es.js";
|
|
37
|
+
import { Affix as bo } from "./src/tedi/components/misc/affix/affix.es.js";
|
|
38
|
+
import { Ellipsis as Po } from "./src/tedi/components/misc/ellipsis/ellipsis.es.js";
|
|
39
|
+
import { StyleProvider as Io } from "./src/tedi/providers/style-provider/style-provider.es.js";
|
|
40
|
+
import { AccessibilityContext as Do, AccessibilityProvider as Lo } from "./src/tedi/providers/accessibility-provider/accessibility-provider.es.js";
|
|
41
41
|
import { useDeclareLoader as Fo } from "./src/tedi/providers/accessibility-provider/use-declare-loader.es.js";
|
|
42
42
|
import { ThemeProvider as Ao, useTheme as Go } from "./src/tedi/providers/theme-provider/theme-provider.es.js";
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import { useElementSize as
|
|
80
|
-
import { useScroll as
|
|
81
|
-
import { useIsTouchDevice as
|
|
82
|
-
import { useFileUpload as
|
|
83
|
-
import { useWhatInput as
|
|
84
|
-
import { useLabels as
|
|
85
|
-
import { LabelContext as
|
|
86
|
-
import { labelsMap as
|
|
43
|
+
import { PrintingProvider as Ho, usePrint as Vo } from "./src/tedi/providers/printing-provider/printing-provider.es.js";
|
|
44
|
+
import { List as Ro } from "./src/tedi/components/content/list/list.es.js";
|
|
45
|
+
import { ListItem as Eo } from "./src/tedi/components/content/list/list-item.es.js";
|
|
46
|
+
import { Skeleton as Wo } from "./src/tedi/components/loaders/skeleton/skeleton.es.js";
|
|
47
|
+
import { SkeletonBlock as qo } from "./src/tedi/components/loaders/skeleton/skeleton-block/skeleton-block.es.js";
|
|
48
|
+
import { VerticalSpacing as Ko } from "./src/tedi/components/layout/vertical-spacing/vertical-spacing.es.js";
|
|
49
|
+
import { VerticalSpacingItem as Qo } from "./src/tedi/components/layout/vertical-spacing/vertical-spacing-item.es.js";
|
|
50
|
+
import { Row as Yo } from "./src/tedi/components/layout/grid/row.es.js";
|
|
51
|
+
import { Col as _o } from "./src/tedi/components/layout/grid/col.es.js";
|
|
52
|
+
import { ToastContainer as or } from "./external/react-toastify/dist/index.es.js";
|
|
53
|
+
import { Card as er } from "./src/tedi/components/cards/card/card.es.js";
|
|
54
|
+
import { CardHeader as pr } from "./src/tedi/components/cards/card/card-header/card-header.es.js";
|
|
55
|
+
import { CardNotification as mr } from "./src/tedi/components/cards/card/card-notification/card-notification.es.js";
|
|
56
|
+
import { CardContent as ir } from "./src/tedi/components/cards/card/card-content/card-content.es.js";
|
|
57
|
+
import { ChoiceGroup as ar } from "./src/tedi/components/form/choice-group/choice-group.es.js";
|
|
58
|
+
import { ChoiceGroupContext as dr } from "./src/tedi/components/form/choice-group/choice-group-context.es.js";
|
|
59
|
+
import { ChoiceGroupItem as cr } from "./src/tedi/components/form/choice-group/components/choice-group-item/choice-group-item.es.js";
|
|
60
|
+
import { Tooltip as Cr } from "./src/tedi/components/overlays/tooltip/tooltip.es.js";
|
|
61
|
+
import { TooltipContent as gr } from "./src/tedi/components/overlays/tooltip/tooltip-content.es.js";
|
|
62
|
+
import { TooltipTrigger as vr } from "./src/tedi/components/overlays/tooltip/tooltip-trigger.es.js";
|
|
63
|
+
import { Popover as hr } from "./src/tedi/components/overlays/popover/popover.es.js";
|
|
64
|
+
import { PopoverContent as Br } from "./src/tedi/components/overlays/popover/popover-content.es.js";
|
|
65
|
+
import { PopoverTrigger as kr } from "./src/tedi/components/overlays/popover/popover-trigger.es.js";
|
|
66
|
+
import { Dropdown as Lr } from "./src/tedi/components/overlays/dropdown/dropdown.es.js";
|
|
67
|
+
import { DropdownContext as Fr, useDropdownContext as Nr } from "./src/tedi/components/overlays/dropdown/dropdown-context.es.js";
|
|
68
|
+
import { DropdownContent as Gr } from "./src/tedi/components/overlays/dropdown/dropdown-content/dropdown-content.es.js";
|
|
69
|
+
import { DropdownTrigger as Hr } from "./src/tedi/components/overlays/dropdown/dropdown-trigger/dropdown-trigger.es.js";
|
|
70
|
+
import { DropdownItem as Mr } from "./src/tedi/components/overlays/dropdown/dropdown-item/dropdown-item.es.js";
|
|
71
|
+
import { SideNav as zr } from "./src/tedi/components/layout/sidenav/sidenav.es.js";
|
|
72
|
+
import { SideNavDropdown as Ur } from "./src/tedi/components/layout/sidenav/components/sidenav-dropdown/sidenav-dropdown.es.js";
|
|
73
|
+
import { SideNavItem as jr } from "./src/tedi/components/layout/sidenav/components/sidenav-item/sidenav-item.es.js";
|
|
74
|
+
import { SidenavToggle as Jr } from "./src/tedi/components/layout/sidenav/components/sidenav-toggle/sidenav-toggle.es.js";
|
|
75
|
+
import { SideNavMobile as Or } from "./src/tedi/components/layout/sidenav/components/sidenav-mobile/sidenav-mobile.es.js";
|
|
76
|
+
import { useIsMounted as Xr } from "./src/tedi/helpers/hooks/use-is-mounted.es.js";
|
|
77
|
+
import { breakpoints as Zr, isBreakpointBelow as _r, useBreakpoint as $r } from "./src/tedi/helpers/hooks/use-breakpoint.es.js";
|
|
78
|
+
import { useBreakpointProps as re } from "./src/tedi/helpers/hooks/use-breakpoint-props.es.js";
|
|
79
|
+
import { useElementSize as te } from "./src/tedi/helpers/hooks/use-element-size.es.js";
|
|
80
|
+
import { useScroll as xe } from "./src/tedi/helpers/hooks/use-scroll.es.js";
|
|
81
|
+
import { useIsTouchDevice as fe } from "./src/tedi/helpers/hooks/use-is-touch-device.es.js";
|
|
82
|
+
import { useFileUpload as ne } from "./src/tedi/helpers/hooks/use-file-upload.es.js";
|
|
83
|
+
import { useWhatInput as le } from "./src/tedi/helpers/hooks/use-what-input.es.js";
|
|
84
|
+
import { useLabels as se } from "./src/tedi/providers/label-provider/use-labels.es.js";
|
|
85
|
+
import { LabelContext as ue, LabelProvider as Ce } from "./src/tedi/providers/label-provider/label-provider.es.js";
|
|
86
|
+
import { labelsMap as ge, validateLabelRecord as Te, validateLabelValues as ve } from "./src/tedi/providers/label-provider/labels-map.es.js";
|
|
87
87
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
Do as AccessibilityContext,
|
|
89
|
+
Lo as AccessibilityProvider,
|
|
90
|
+
bo as Affix,
|
|
91
91
|
V as Alert,
|
|
92
|
-
|
|
92
|
+
k as Button,
|
|
93
93
|
A as ButtonGroup,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
94
|
+
er as Card,
|
|
95
|
+
ir as CardContent,
|
|
96
|
+
pr as CardHeader,
|
|
97
|
+
mr as CardNotification,
|
|
98
98
|
io as Checkbox,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
ar as ChoiceGroup,
|
|
100
|
+
dr as ChoiceGroupContext,
|
|
101
|
+
cr as ChoiceGroupItem,
|
|
102
|
+
B as ClosingButton,
|
|
103
|
+
_o as Col,
|
|
104
104
|
y as Collapse,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
Lr as Dropdown,
|
|
106
|
+
Gr as DropdownContent,
|
|
107
|
+
Fr as DropdownContext,
|
|
108
|
+
Mr as DropdownItem,
|
|
109
|
+
Hr as DropdownTrigger,
|
|
110
|
+
Po as Ellipsis,
|
|
111
111
|
Y as FeedbackText,
|
|
112
112
|
po as FileDropzone,
|
|
113
113
|
eo as FileUpload,
|
|
@@ -116,67 +116,68 @@ export {
|
|
|
116
116
|
p as Heading,
|
|
117
117
|
d as HeadingWithIcon,
|
|
118
118
|
m as Icon,
|
|
119
|
-
|
|
119
|
+
L as InfoButton,
|
|
120
120
|
i as Label,
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
ue as LabelContext,
|
|
122
|
+
Ce as LabelProvider,
|
|
123
123
|
W as Link,
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
Ro as List,
|
|
125
|
+
Eo as ListItem,
|
|
126
126
|
Q as NumberField,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
hr as Popover,
|
|
128
|
+
Br as PopoverContent,
|
|
129
|
+
kr as PopoverTrigger,
|
|
130
130
|
so as Print,
|
|
131
|
+
Ho as PrintingProvider,
|
|
131
132
|
oo as Radio,
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
Yo as Row,
|
|
134
|
+
To as ScrollFade,
|
|
134
135
|
So as ScrollVisibility,
|
|
135
136
|
_ as Search,
|
|
136
137
|
a as Section,
|
|
137
138
|
mo as Select,
|
|
138
139
|
ao as Separator,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
140
|
+
zr as SideNav,
|
|
141
|
+
Ur as SideNavDropdown,
|
|
142
|
+
jr as SideNavItem,
|
|
143
|
+
Or as SideNavMobile,
|
|
144
|
+
Jr as SidenavToggle,
|
|
145
|
+
Wo as Skeleton,
|
|
146
|
+
qo as SkeletonBlock,
|
|
147
|
+
g as Spinner,
|
|
147
148
|
h as StatusBadge,
|
|
148
149
|
uo as StretchContent,
|
|
149
|
-
|
|
150
|
-
|
|
150
|
+
Io as StyleProvider,
|
|
151
|
+
v as Tag,
|
|
151
152
|
e as Text,
|
|
152
153
|
K as TextArea,
|
|
153
154
|
q as TextField,
|
|
154
155
|
C as TextGroup,
|
|
155
156
|
Ao as ThemeProvider,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
or as ToastContainer,
|
|
158
|
+
Cr as Tooltip,
|
|
159
|
+
gr as TooltipContent,
|
|
160
|
+
vr as TooltipTrigger,
|
|
160
161
|
c as Truncate,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
Ko as VerticalSpacing,
|
|
163
|
+
Qo as VerticalSpacingItem,
|
|
164
|
+
Zr as breakpoints,
|
|
165
|
+
_r as isBreakpointBelow,
|
|
166
|
+
ge as labelsMap,
|
|
166
167
|
R as sendNotification,
|
|
167
|
-
|
|
168
|
-
|
|
168
|
+
$r as useBreakpoint,
|
|
169
|
+
re as useBreakpointProps,
|
|
169
170
|
Fo as useDeclareLoader,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
Nr as useDropdownContext,
|
|
172
|
+
te as useElementSize,
|
|
173
|
+
ne as useFileUpload,
|
|
174
|
+
Xr as useIsMounted,
|
|
175
|
+
fe as useIsTouchDevice,
|
|
176
|
+
se as useLabels,
|
|
177
|
+
Vo as usePrint,
|
|
178
|
+
xe as useScroll,
|
|
178
179
|
Go as useTheme,
|
|
179
|
-
|
|
180
|
+
le as useWhatInput,
|
|
180
181
|
Te as validateLabelRecord,
|
|
181
|
-
|
|
182
|
+
ve as validateLabelValues
|
|
182
183
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),d=require("react-dom"),i=()=>{const s=typeof window>"u",[o,e]=r.useState(s?!1:window.matchMedia("print").matches),t=()=>{d.flushSync(()=>{e(!0)})},n=()=>{e(!1)};return r.useEffect(()=>(window.addEventListener("beforeprint",t),window.addEventListener("afterprint",n),()=>{window.removeEventListener("beforeprint",t),window.removeEventListener("afterprint",n)}),[]),o};exports.default=i;exports.usePrint=i;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import r from "react";
|
|
2
|
-
import s from "react-dom";
|
|
3
|
-
const f = () => {
|
|
4
|
-
const i = typeof window > "u", [o, e] = r.useState(i ? !1 : window.matchMedia("print").matches), t = () => {
|
|
5
|
-
s.flushSync(() => {
|
|
6
|
-
e(!0);
|
|
7
|
-
});
|
|
8
|
-
}, n = () => {
|
|
9
|
-
e(!1);
|
|
10
|
-
};
|
|
11
|
-
return r.useEffect(() => (window.addEventListener("beforeprint", t), window.addEventListener("afterprint", n), () => {
|
|
12
|
-
window.removeEventListener("beforeprint", t), window.removeEventListener("afterprint", n);
|
|
13
|
-
}), []), o;
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
f as default,
|
|
17
|
-
f as usePrint
|
|
18
|
-
};
|