@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.
Files changed (93) hide show
  1. package/_virtual/index.cjs10.js +1 -1
  2. package/_virtual/index.cjs11.js +1 -1
  3. package/_virtual/index.cjs12.js +1 -1
  4. package/_virtual/index.cjs13.js +1 -1
  5. package/_virtual/index.cjs5.js +1 -1
  6. package/_virtual/index.cjs6.js +1 -1
  7. package/_virtual/index.cjs7.js +1 -1
  8. package/_virtual/index.cjs8.js +1 -1
  9. package/_virtual/index.cjs9.js +1 -1
  10. package/_virtual/index.es10.js +1 -1
  11. package/_virtual/index.es11.js +1 -1
  12. package/_virtual/index.es12.js +1 -1
  13. package/_virtual/index.es13.js +4 -2
  14. package/_virtual/index.es5.js +2 -4
  15. package/_virtual/index.es6.js +1 -1
  16. package/_virtual/index.es7.js +1 -1
  17. package/_virtual/index.es8.js +1 -1
  18. package/_virtual/index.es9.js +1 -1
  19. package/bundle-stats.html +1 -1
  20. package/community.cjs.js +1 -1
  21. package/community.es.js +213 -215
  22. package/external/@mui/system/colorManipulator.cjs.js +1 -1
  23. package/external/@mui/system/colorManipulator.es.js +2 -2
  24. package/external/@mui/system/createStyled.cjs.js +1 -1
  25. package/external/@mui/system/createStyled.es.js +6 -6
  26. package/external/@mui/system/useThemeWithoutDefault.cjs.js +1 -1
  27. package/external/@mui/system/useThemeWithoutDefault.es.js +1 -1
  28. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.cjs.js +1 -1
  29. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.development.es.js +1 -1
  30. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  31. package/external/hoist-non-react-statics/external/react-is/cjs/react-is.production.min.es.js +1 -1
  32. package/external/hoist-non-react-statics/external/react-is/index.cjs.js +1 -1
  33. package/external/hoist-non-react-statics/external/react-is/index.es.js +1 -1
  34. package/external/prop-types/external/react-is/cjs/react-is.development.cjs.js +1 -1
  35. package/external/prop-types/external/react-is/cjs/react-is.development.es.js +1 -1
  36. package/external/prop-types/external/react-is/cjs/react-is.production.min.cjs.js +1 -1
  37. package/external/prop-types/external/react-is/cjs/react-is.production.min.es.js +1 -1
  38. package/external/prop-types/external/react-is/index.cjs.js +1 -1
  39. package/external/prop-types/external/react-is/index.es.js +1 -1
  40. package/external/toposort/index.cjs.js +1 -1
  41. package/external/toposort/index.es.js +1 -1
  42. package/index.css +1 -1
  43. package/package.json +3 -3
  44. package/src/community/components/button-content/button-content.cjs.js +1 -1
  45. package/src/community/components/button-content/button-content.d.ts +1 -1
  46. package/src/community/components/button-content/button-content.es.js +39 -33
  47. package/src/community/components/form/select/select.cjs.js +1 -1
  48. package/src/community/components/form/select/select.es.js +30 -30
  49. package/src/community/components/form/text-editor/components/style-button.cjs.js +1 -1
  50. package/src/community/components/form/text-editor/components/style-button.es.js +2 -2
  51. package/src/community/components/form/toggle/toggle.cjs.js +1 -1
  52. package/src/community/components/form/toggle/toggle.es.js +4 -4
  53. package/src/community/components/layout/breadcrumbs/crumb/crumb.cjs.js +1 -1
  54. package/src/community/components/layout/breadcrumbs/crumb/crumb.es.js +7 -7
  55. package/src/community/components/layout/footer/footer.cjs.js +1 -1
  56. package/src/community/components/layout/footer/footer.d.ts +1 -1
  57. package/src/community/components/layout/footer/footer.es.js +20 -20
  58. package/src/community/components/layout/header/components/header-notification/header-notification.cjs.js +1 -1
  59. package/src/community/components/layout/header/components/header-notification/header-notification.es.js +4 -4
  60. package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
  61. package/src/community/components/layout/sidenav/sidenav.d.ts +1 -1
  62. package/src/community/components/layout/sidenav/sidenav.es.js +39 -34
  63. package/src/community/components/placeholder/placeholder.cjs.js +1 -1
  64. package/src/community/components/placeholder/placeholder.d.ts +1 -1
  65. package/src/community/components/placeholder/placeholder.es.js +20 -19
  66. package/src/community/components/stepper/stepper-nav.cjs.js +1 -1
  67. package/src/community/components/stepper/stepper-nav.es.js +1 -1
  68. package/src/community/components/table/components/helpers.cjs.js +1 -1
  69. package/src/community/components/table/components/helpers.es.js +1 -1
  70. package/src/community/components/table/components/pagination/PaginationNextButton.cjs.js +1 -1
  71. package/src/community/components/table/components/pagination/PaginationNextButton.es.js +1 -1
  72. package/src/community/components/table-of-contents/table-of-contents-item.cjs.js +1 -1
  73. package/src/community/components/table-of-contents/table-of-contents-item.es.js +10 -10
  74. package/src/community/components/table-of-contents/table-of-contents-modal.cjs.js +1 -1
  75. package/src/community/components/table-of-contents/table-of-contents-modal.es.js +1 -1
  76. package/src/community/components/toggle-open/toggle-open.d.ts +1 -1
  77. package/src/community/components/tooltip/tooltip-trigger.cjs.js +1 -1
  78. package/src/community/components/tooltip/tooltip-trigger.es.js +1 -1
  79. package/src/community/components/vertical-progress/vertical-progress-item.cjs.js +1 -1
  80. package/src/community/components/vertical-progress/vertical-progress-item.es.js +4 -4
  81. package/src/community/index.d.ts +0 -1
  82. package/src/tedi/components/base/icon/icon.d.ts +1 -1
  83. package/src/tedi/components/base/icon/icon.module.scss.cjs.js +1 -1
  84. package/src/tedi/components/base/icon/icon.module.scss.es.js +1 -0
  85. package/src/tedi/components/buttons/collapse/collapse.cjs.js +1 -1
  86. package/src/tedi/components/buttons/collapse/collapse.d.ts +6 -0
  87. package/src/tedi/components/buttons/collapse/collapse.es.js +63 -62
  88. package/src/community/components/icon/icon.cjs.js +0 -1
  89. package/src/community/components/icon/icon.d.ts +0 -49
  90. package/src/community/components/icon/icon.es.js +0 -47
  91. package/src/community/components/icon/icon.module.scss.cjs.js +0 -1
  92. package/src/community/components/icon/icon.module.scss.es.js +0 -9
  93. package/src/tedi/providers/storybook-provider/storybook-provider.d.ts +0 -10
@@ -1,77 +1,78 @@
1
- import { jsx as t, jsxs as _ } from "react/jsx-runtime";
1
+ import { jsx as t, jsxs as h } from "react/jsx-runtime";
2
2
  import o from "../../../../../external/classnames/index.es.js";
3
- import h from "react";
4
- import E from "../../../../../external/react-animate-height/dist/esm/index.es.js";
5
- import { Icon as K } from "../../base/icon/icon.es.js";
6
- import { Text as A } from "../../base/typography/text/text.es.js";
7
- import { Print as H } from "../../misc/print/print.es.js";
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 q } from "../../../helpers/hooks/use-print.es.js";
10
- import { useBreakpointProps as F } from "../../../helpers/hooks/use-breakpoint-props.es.js";
11
- import { useLabels as G } from "../../../providers/label-provider/use-labels.es.js";
12
- import { Row as P } from "../../layout/grid/row.es.js";
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 ie = (f) => {
15
- const { getCurrentBreakpointProps: $ } = F(f.defaultServerBreakpoint), { getLabel: w } = G(), {
14
+ const se = (w) => {
15
+ const { getCurrentBreakpointProps: O } = J(w.defaultServerBreakpoint), { getLabel: y } = Q(), {
16
16
  id: r,
17
17
  children: g,
18
- className: O,
19
- openText: y = w("open"),
20
- closeText: b = w("close"),
21
- hideCollapseText: x = !1,
22
- title: N,
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: c,
26
- onToggle: d,
27
- arrowType: i = "default",
28
- size: n = "default",
25
+ open: d,
26
+ onToggle: p,
27
+ arrowType: n = "default",
28
+ size: i = "default",
29
29
  underline: T = !0,
30
- toggleLabel: C,
31
- ...j
32
- } = $(f), p = `${r}__trigger`, m = `${r}__content`, D = `${r}__animate`, [v, L] = h.useState(() => S), u = q(), l = h.useMemo(
33
- () => u || (c !== void 0 ? c : v),
34
- [u, c, v]
35
- ), M = o(
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
- n === "small" && e["tedi-collapse--small"],
38
- l && e["tedi-collapse--is-open"],
39
- x && e["tedi-collapse--icon-only"],
40
- e[`tedi-collapse--arrow-${i}`],
41
- O
42
- ), k = () => {
43
- const a = !l;
44
- L(a), d == null || d(a);
45
- }, R = (a) => {
46
- (a.key === "Enter" || a.key === " ") && !a.repeat && (a.preventDefault(), k());
47
- }, z = C || (l ? b : y), I = h.useMemo(
48
- () => /* @__PURE__ */ t("div", { id: m, role: "region", "aria-labelledby": p, className: e["tedi-collapse__content"], children: g }),
49
- [g, m, p]
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__ */ _("div", { "data-name": "collapse", ...j, className: M, children: [
52
+ return /* @__PURE__ */ h("div", { "data-name": "collapse", ...D, className: z, children: [
52
53
  /* @__PURE__ */ t(
53
54
  "button",
54
55
  {
55
- id: p,
56
+ id: m,
56
57
  type: "button",
57
58
  "data-name": "collapse-trigger",
58
59
  className: e["tedi-collapse__title"],
59
- "aria-label": z,
60
- "aria-expanded": l,
61
- "aria-controls": m,
62
- onKeyDown: R,
63
- onClick: k,
64
- children: /* @__PURE__ */ _(P, { justifyContent: "between", alignItems: "center", wrap: "nowrap", ...B, element: "span", children: [
65
- N && /* @__PURE__ */ t(s, { "aria-hidden": "true", children: N }),
66
- /* @__PURE__ */ t(s, { width: "auto", children: /* @__PURE__ */ _(P, { element: "span", alignItems: "center", gutter: 0, wrap: "nowrap", children: [
67
- /* @__PURE__ */ t(H, { visibility: "hide", children: /* @__PURE__ */ t(s, { width: "auto", className: o({ "visually-hidden": x }), children: /* @__PURE__ */ t(
68
- A,
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: l ? b : y
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--${i}`],
83
- n === "small" && e["tedi-collapse__icon-wrapper--small"]
83
+ e[`tedi-collapse__icon-wrapper--${n}`],
84
+ i === "small" && e["tedi-collapse__icon-wrapper--small"]
84
85
  ),
85
86
  children: /* @__PURE__ */ t(
86
- K,
87
+ H,
87
88
  {
88
89
  className: o(
89
90
  e["tedi-collapse__icon"],
90
- e[`tedi-collapse__icon--${i}`],
91
- n === "small" && e["tedi-collapse__icon--small"]
91
+ e[`tedi-collapse__icon--${n}`],
92
+ i === "small" && e["tedi-collapse__icon--small"]
92
93
  ),
93
94
  name: "expand_more",
94
- size: n === "small" || i === "secondary" ? 18 : 24
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
- u ? I : /* @__PURE__ */ t(E, { id: D, duration: 300, height: l ? "auto" : 0, "data-testid": "collapse-inner", children: I })
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
- ie as Collapse,
108
- ie as default
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,9 +0,0 @@
1
- const n = "icon-8081be27", o = {
2
- icon: n,
3
- "icon--block": "icon--block-4aa6379d",
4
- "icon--inline": "icon--inline-5d045b85"
5
- };
6
- export {
7
- o as default,
8
- n as icon
9
- };
@@ -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 {};