@tedi-design-system/react 15.0.0-rc.4 → 15.0.0-rc.6
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.cjs10.js +1 -1
- package/_virtual/index.cjs11.js +1 -1
- package/_virtual/index.cjs12.js +1 -1
- package/_virtual/index.cjs13.js +1 -1
- package/_virtual/index.cjs5.js +1 -1
- package/_virtual/index.cjs6.js +1 -1
- package/_virtual/index.cjs7.js +1 -1
- package/_virtual/index.cjs8.js +1 -1
- package/_virtual/index.cjs9.js +1 -1
- package/_virtual/index.es10.js +1 -1
- package/_virtual/index.es11.js +1 -1
- package/_virtual/index.es12.js +1 -1
- package/_virtual/index.es13.js +4 -2
- package/_virtual/index.es5.js +2 -4
- package/_virtual/index.es6.js +1 -1
- package/_virtual/index.es7.js +1 -1
- package/_virtual/index.es8.js +1 -1
- package/_virtual/index.es9.js +1 -1
- package/bundle-stats.html +1 -1
- package/community.cjs.js +1 -1
- package/community.es.js +213 -215
- package/external/@mui/system/colorManipulator.cjs.js +1 -1
- package/external/@mui/system/colorManipulator.es.js +2 -2
- package/external/@mui/system/createStyled.cjs.js +1 -1
- package/external/@mui/system/createStyled.es.js +6 -6
- package/external/@mui/system/useThemeWithoutDefault.cjs.js +1 -1
- package/external/@mui/system/useThemeWithoutDefault.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
- package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
- package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
- package/external/prop-types/external/react-is/index.cjs.js +1 -1
- package/external/prop-types/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/index.css +1 -1
- package/package.json +3 -3
- package/src/community/components/button-content/button-content.cjs.js +1 -1
- package/src/community/components/button-content/button-content.d.ts +1 -1
- package/src/community/components/button-content/button-content.es.js +39 -33
- package/src/community/components/form/select/select.cjs.js +1 -1
- package/src/community/components/form/select/select.es.js +30 -30
- package/src/community/components/form/text-editor/components/style-button.cjs.js +1 -1
- package/src/community/components/form/text-editor/components/style-button.es.js +2 -2
- package/src/community/components/form/toggle/toggle.cjs.js +1 -1
- package/src/community/components/form/toggle/toggle.es.js +4 -4
- package/src/community/components/layout/breadcrumbs/crumb/crumb.cjs.js +1 -1
- package/src/community/components/layout/breadcrumbs/crumb/crumb.es.js +7 -7
- package/src/community/components/layout/footer/footer.cjs.js +1 -1
- package/src/community/components/layout/footer/footer.d.ts +1 -1
- package/src/community/components/layout/footer/footer.es.js +20 -20
- package/src/community/components/layout/header/components/header-notification/header-notification.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-notification/header-notification.es.js +4 -4
- package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
- package/src/community/components/layout/sidenav/sidenav.d.ts +1 -1
- package/src/community/components/layout/sidenav/sidenav.es.js +39 -34
- package/src/community/components/placeholder/placeholder.cjs.js +1 -1
- package/src/community/components/placeholder/placeholder.d.ts +1 -1
- package/src/community/components/placeholder/placeholder.es.js +20 -19
- package/src/community/components/stepper/stepper-nav.cjs.js +1 -1
- package/src/community/components/stepper/stepper-nav.es.js +1 -1
- package/src/community/components/table/components/helpers.cjs.js +1 -1
- package/src/community/components/table/components/helpers.es.js +1 -1
- package/src/community/components/table/components/pagination/PaginationNextButton.cjs.js +1 -1
- package/src/community/components/table/components/pagination/PaginationNextButton.es.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-item.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-item.es.js +10 -10
- package/src/community/components/table-of-contents/table-of-contents-modal.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-modal.es.js +1 -1
- package/src/community/components/toggle-open/toggle-open.d.ts +1 -1
- package/src/community/components/tooltip/tooltip-trigger.cjs.js +1 -1
- package/src/community/components/tooltip/tooltip-trigger.es.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress-item.cjs.js +1 -1
- package/src/community/components/vertical-progress/vertical-progress-item.es.js +4 -4
- package/src/community/index.d.ts +0 -1
- package/src/tedi/components/base/icon/icon.d.ts +1 -1
- package/src/tedi/components/base/icon/icon.module.scss.cjs.js +1 -1
- package/src/tedi/components/base/icon/icon.module.scss.es.js +1 -0
- package/src/tedi/components/buttons/collapse/collapse.cjs.js +1 -1
- package/src/tedi/components/buttons/collapse/collapse.d.ts +6 -0
- package/src/tedi/components/buttons/collapse/collapse.es.js +63 -62
- package/src/community/components/icon/icon.cjs.js +0 -1
- package/src/community/components/icon/icon.d.ts +0 -49
- package/src/community/components/icon/icon.es.js +0 -47
- package/src/community/components/icon/icon.module.scss.cjs.js +0 -1
- package/src/community/components/icon/icon.module.scss.es.js +0 -9
- package/src/tedi/providers/storybook-provider/storybook-provider.d.ts +0 -10
|
@@ -1,77 +1,78 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
1
|
+
import { jsx as t, jsxs as h } from "react/jsx-runtime";
|
|
2
2
|
import o from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Text as
|
|
7
|
-
import { Print as
|
|
3
|
+
import f from "react";
|
|
4
|
+
import A from "../../../../../external/react-animate-height/dist/esm/index.es.js";
|
|
5
|
+
import { Icon as H } from "../../base/icon/icon.es.js";
|
|
6
|
+
import { Text as q } from "../../base/typography/text/text.es.js";
|
|
7
|
+
import { Print as F } from "../../misc/print/print.es.js";
|
|
8
8
|
import e from "./collapse.module.scss.es.js";
|
|
9
|
-
import { usePrint as
|
|
10
|
-
import { useBreakpointProps as
|
|
11
|
-
import { useLabels as
|
|
12
|
-
import { Row as
|
|
9
|
+
import { usePrint as G } from "../../../helpers/hooks/use-print.es.js";
|
|
10
|
+
import { useBreakpointProps as J } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
11
|
+
import { useLabels as Q } from "../../../providers/label-provider/use-labels.es.js";
|
|
12
|
+
import { Row as k } from "../../layout/grid/row.es.js";
|
|
13
13
|
import { Col as s } from "../../layout/grid/col.es.js";
|
|
14
|
-
const
|
|
15
|
-
const { getCurrentBreakpointProps:
|
|
14
|
+
const se = (w) => {
|
|
15
|
+
const { getCurrentBreakpointProps: O } = J(w.defaultServerBreakpoint), { getLabel: y } = Q(), {
|
|
16
16
|
id: r,
|
|
17
17
|
children: g,
|
|
18
|
-
className:
|
|
19
|
-
openText:
|
|
20
|
-
closeText:
|
|
21
|
-
hideCollapseText:
|
|
22
|
-
title:
|
|
18
|
+
className: P,
|
|
19
|
+
openText: b = y("open"),
|
|
20
|
+
closeText: x = y("close"),
|
|
21
|
+
hideCollapseText: $ = !1,
|
|
22
|
+
title: c,
|
|
23
23
|
titleRowProps: B,
|
|
24
24
|
defaultOpen: S,
|
|
25
|
-
open:
|
|
26
|
-
onToggle:
|
|
27
|
-
arrowType:
|
|
28
|
-
size:
|
|
25
|
+
open: d,
|
|
26
|
+
onToggle: p,
|
|
27
|
+
arrowType: n = "default",
|
|
28
|
+
size: i = "default",
|
|
29
29
|
underline: T = !0,
|
|
30
|
-
toggleLabel:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
toggleLabel: N,
|
|
31
|
+
iconOnly: j = !1,
|
|
32
|
+
...D
|
|
33
|
+
} = O(w), m = `${r}__trigger`, u = `${r}__content`, L = `${r}__animate`, [C, M] = f.useState(() => S), _ = G(), a = f.useMemo(
|
|
34
|
+
() => _ || (d !== void 0 ? d : C),
|
|
35
|
+
[_, d, C]
|
|
36
|
+
), R = j === !0 && !c, z = o(
|
|
36
37
|
e["tedi-collapse"],
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
e[`tedi-collapse--arrow-${
|
|
41
|
-
|
|
42
|
-
),
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
(
|
|
47
|
-
},
|
|
48
|
-
() => /* @__PURE__ */ t("div", { id:
|
|
49
|
-
[g,
|
|
38
|
+
i === "small" && e["tedi-collapse--small"],
|
|
39
|
+
a && e["tedi-collapse--is-open"],
|
|
40
|
+
R && e["tedi-collapse--icon-only"],
|
|
41
|
+
e[`tedi-collapse--arrow-${n}`],
|
|
42
|
+
P
|
|
43
|
+
), v = () => {
|
|
44
|
+
const l = !a;
|
|
45
|
+
M(l), p == null || p(l);
|
|
46
|
+
}, E = (l) => {
|
|
47
|
+
(l.key === "Enter" || l.key === " ") && !l.repeat && (l.preventDefault(), v());
|
|
48
|
+
}, K = N || (a ? x : b), I = f.useMemo(
|
|
49
|
+
() => /* @__PURE__ */ t("div", { id: u, role: "region", "aria-labelledby": m, className: e["tedi-collapse__content"], children: g }),
|
|
50
|
+
[g, u, m]
|
|
50
51
|
);
|
|
51
|
-
return /* @__PURE__ */
|
|
52
|
+
return /* @__PURE__ */ h("div", { "data-name": "collapse", ...D, className: z, children: [
|
|
52
53
|
/* @__PURE__ */ t(
|
|
53
54
|
"button",
|
|
54
55
|
{
|
|
55
|
-
id:
|
|
56
|
+
id: m,
|
|
56
57
|
type: "button",
|
|
57
58
|
"data-name": "collapse-trigger",
|
|
58
59
|
className: e["tedi-collapse__title"],
|
|
59
|
-
"aria-label":
|
|
60
|
-
"aria-expanded":
|
|
61
|
-
"aria-controls":
|
|
62
|
-
onKeyDown:
|
|
63
|
-
onClick:
|
|
64
|
-
children: /* @__PURE__ */
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */ t(s, { width: "auto", children: /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */ t(
|
|
68
|
-
|
|
60
|
+
"aria-label": K,
|
|
61
|
+
"aria-expanded": a,
|
|
62
|
+
"aria-controls": u,
|
|
63
|
+
onKeyDown: E,
|
|
64
|
+
onClick: v,
|
|
65
|
+
children: /* @__PURE__ */ h(k, { justifyContent: "between", alignItems: "center", wrap: "nowrap", ...B, element: "span", children: [
|
|
66
|
+
c && /* @__PURE__ */ t(s, { "aria-hidden": "true", children: c }),
|
|
67
|
+
/* @__PURE__ */ t(s, { width: "auto", children: /* @__PURE__ */ h(k, { element: "span", alignItems: "center", gutter: 0, wrap: "nowrap", children: [
|
|
68
|
+
/* @__PURE__ */ t(F, { visibility: "hide", children: /* @__PURE__ */ t(s, { width: "auto", className: o({ "visually-hidden": $ }), children: /* @__PURE__ */ t(
|
|
69
|
+
q,
|
|
69
70
|
{
|
|
70
71
|
element: "span",
|
|
71
72
|
className: o(e["tedi-collapse__text"], {
|
|
72
73
|
[e["tedi-collapse__text--underline"]]: T
|
|
73
74
|
}),
|
|
74
|
-
children:
|
|
75
|
+
children: a ? x : b
|
|
75
76
|
}
|
|
76
77
|
) }) }),
|
|
77
78
|
/* @__PURE__ */ t(s, { width: "auto", children: /* @__PURE__ */ t(
|
|
@@ -79,19 +80,19 @@ const ie = (f) => {
|
|
|
79
80
|
{
|
|
80
81
|
className: o(
|
|
81
82
|
e["tedi-collapse__icon-wrapper"],
|
|
82
|
-
e[`tedi-collapse__icon-wrapper--${
|
|
83
|
-
|
|
83
|
+
e[`tedi-collapse__icon-wrapper--${n}`],
|
|
84
|
+
i === "small" && e["tedi-collapse__icon-wrapper--small"]
|
|
84
85
|
),
|
|
85
86
|
children: /* @__PURE__ */ t(
|
|
86
|
-
|
|
87
|
+
H,
|
|
87
88
|
{
|
|
88
89
|
className: o(
|
|
89
90
|
e["tedi-collapse__icon"],
|
|
90
|
-
e[`tedi-collapse__icon--${
|
|
91
|
-
|
|
91
|
+
e[`tedi-collapse__icon--${n}`],
|
|
92
|
+
i === "small" && e["tedi-collapse__icon--small"]
|
|
92
93
|
),
|
|
93
94
|
name: "expand_more",
|
|
94
|
-
size:
|
|
95
|
+
size: i === "small" || n === "secondary" ? 18 : 24
|
|
95
96
|
}
|
|
96
97
|
)
|
|
97
98
|
}
|
|
@@ -100,10 +101,10 @@ const ie = (f) => {
|
|
|
100
101
|
] })
|
|
101
102
|
}
|
|
102
103
|
),
|
|
103
|
-
|
|
104
|
+
_ ? I : /* @__PURE__ */ t(A, { id: L, duration: 300, height: a ? "auto" : 0, "data-testid": "collapse-inner", children: I })
|
|
104
105
|
] });
|
|
105
106
|
};
|
|
106
107
|
export {
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
se as Collapse,
|
|
109
|
+
se as default
|
|
109
110
|
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("react/jsx-runtime"),p=require("../../../../external/classnames/index.cjs.js"),q=require("react"),l=require("./icon.module.scss.cjs.js"),e=q.forwardRef((o,r)=>{const{className:s,name:c,filled:d=!1,label:a,type:i="outlined",size:n=24,display:u="block",color:t,...m}=o,f=p.default("notranslate","material-symbols",l.default.icon,l.default[`icon--${u}`],{[`material-symbols--${i}`]:i,[`text-${t}`]:t},s),b={...n?{"--icon-internal-variation-size":`${n/16}rem`}:{},...d?{"--icon-internal-variation-fill":1}:{}};return y.jsx("span",{"data-name":"icon",role:"img","aria-hidden":!a,...m,className:f,style:b,ref:r,"aria-label":a,children:c})});e.displayName="Icon";exports.Icon=e;exports.default=e;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TextColor } from '../../../tedi/components/base/typography/text/text';
|
|
3
|
-
export type IconSize = 12 | 14 | 16 | 18 | 24 | 36 | 48;
|
|
4
|
-
export interface IconProps {
|
|
5
|
-
/**
|
|
6
|
-
* Name of material symbols icon.
|
|
7
|
-
* https://fonts.google.com/icons?icon.set=Material+Symbols
|
|
8
|
-
*/
|
|
9
|
-
name: string;
|
|
10
|
-
/**
|
|
11
|
-
* Additional classes.
|
|
12
|
-
*/
|
|
13
|
-
className?: string;
|
|
14
|
-
/**
|
|
15
|
-
* Type of icon.
|
|
16
|
-
* It is recommended to only use one type throughout your app.
|
|
17
|
-
* This ensures that only one icon font is downloaded.
|
|
18
|
-
* @default outlined
|
|
19
|
-
*/
|
|
20
|
-
type?: 'outlined' | 'rounded' | 'sharp';
|
|
21
|
-
/**
|
|
22
|
-
* Render a filled variant of the icon.
|
|
23
|
-
* @default false
|
|
24
|
-
*/
|
|
25
|
-
filled?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Size of the icon.
|
|
28
|
-
* @default 24
|
|
29
|
-
*/
|
|
30
|
-
size?: IconSize;
|
|
31
|
-
/**
|
|
32
|
-
* Which color Icon should be.
|
|
33
|
-
* Use 'positive', 'important' or 'warning' with caution, usually they should not be in application UI.
|
|
34
|
-
* @default default
|
|
35
|
-
*/
|
|
36
|
-
color?: TextColor;
|
|
37
|
-
/**
|
|
38
|
-
* Type of display. block by default.
|
|
39
|
-
* @default block
|
|
40
|
-
*/
|
|
41
|
-
display?: 'block' | 'inline';
|
|
42
|
-
/**
|
|
43
|
-
* Icons label for screen-readers.
|
|
44
|
-
* If omitted then the icon is hidden for screen-readers.
|
|
45
|
-
*/
|
|
46
|
-
label?: string;
|
|
47
|
-
}
|
|
48
|
-
export declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
-
export default Icon;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as y } from "react/jsx-runtime";
|
|
2
|
-
import b from "../../../../external/classnames/index.es.js";
|
|
3
|
-
import { forwardRef as N } from "react";
|
|
4
|
-
import l from "./icon.module.scss.es.js";
|
|
5
|
-
const $ = N((n, r) => {
|
|
6
|
-
const {
|
|
7
|
-
className: s,
|
|
8
|
-
name: t,
|
|
9
|
-
filled: m = !1,
|
|
10
|
-
label: a,
|
|
11
|
-
type: o = "outlined",
|
|
12
|
-
size: i = 24,
|
|
13
|
-
display: c = "block",
|
|
14
|
-
color: e,
|
|
15
|
-
...d
|
|
16
|
-
} = n, f = b(
|
|
17
|
-
"notranslate",
|
|
18
|
-
// Added to prevent Google Translate from translating the icon
|
|
19
|
-
"material-symbols",
|
|
20
|
-
l.icon,
|
|
21
|
-
l[`icon--${c}`],
|
|
22
|
-
{ [`material-symbols--${o}`]: o, [`text-${e}`]: e },
|
|
23
|
-
s
|
|
24
|
-
), p = {
|
|
25
|
-
...i ? { "--icon-internal-variation-size": `${i / 16}rem` } : {},
|
|
26
|
-
...m ? { "--icon-internal-variation-fill": 1 } : {}
|
|
27
|
-
};
|
|
28
|
-
return /* @__PURE__ */ y(
|
|
29
|
-
"span",
|
|
30
|
-
{
|
|
31
|
-
"data-name": "icon",
|
|
32
|
-
role: "img",
|
|
33
|
-
"aria-hidden": !a,
|
|
34
|
-
...d,
|
|
35
|
-
className: f,
|
|
36
|
-
style: p,
|
|
37
|
-
ref: r,
|
|
38
|
-
"aria-label": a,
|
|
39
|
-
children: t
|
|
40
|
-
}
|
|
41
|
-
);
|
|
42
|
-
});
|
|
43
|
-
$.displayName = "Icon";
|
|
44
|
-
export {
|
|
45
|
-
$ as Icon,
|
|
46
|
-
$ as default
|
|
47
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="icon-8081be27",o={icon:e,"icon--block":"icon--block-4aa6379d","icon--inline":"icon--inline-5d045b85"};exports.default=o;exports.icon=e;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
interface TextRowProps {
|
|
3
|
-
desktopText: React.ReactNode;
|
|
4
|
-
mobileText: React.ReactNode;
|
|
5
|
-
isLink?: boolean;
|
|
6
|
-
noUnderline?: boolean;
|
|
7
|
-
className?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TextRow: React.FC<TextRowProps>;
|
|
10
|
-
export {};
|