@tedi-design-system/react 15.0.0-rc.1 → 15.0.0-rc.11
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/community.cjs.js +1 -1
- package/community.es.js +219 -227
- 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/index.css +1 -1
- package/package.json +3 -3
- package/src/community/components/accordion/accordion-item-header/accordion-item-header.cjs.js +1 -1
- package/src/community/components/accordion/accordion-item-header/accordion-item-header.es.js +2 -2
- 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.d.ts +1 -1
- package/src/community/components/form/select/select.es.js +33 -33
- 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 +9 -9
- 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 +22 -22
- package/src/community/components/layout/header/components/header-language/header-language.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-language/header-language.es.js +8 -8
- package/src/community/components/layout/header/components/header-modal/header-modal.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-modal/header-modal.es.js +6 -6
- 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/header/components/header-role/header-role.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-role/header-role.es.js +19 -19
- package/src/community/components/layout/header/components/header-settings/header-settings.cjs.js +1 -1
- package/src/community/components/layout/header/components/header-settings/header-settings.es.js +1 -1
- 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 +21 -20
- 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/components/pagination/pagination.cjs.js +1 -1
- package/src/community/components/table/components/pagination/pagination.es.js +4 -4
- package/src/community/components/table/components/table-filter/components/table-date-filter.cjs.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-date-filter.es.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-select-filter.cjs.js +1 -1
- package/src/community/components/table/components/table-filter/components/table-select-filter.es.js +5 -5
- 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 +18 -18
- package/src/community/components/table-of-contents/table-of-contents-items.cjs.js +1 -1
- package/src/community/components/table-of-contents/table-of-contents-items.es.js +1 -1
- 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 +13 -13
- 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 -4
- 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/tedi/components/content/label/label.d.ts +1 -1
- package/src/tedi/components/form/textfield/textfield.module.scss.cjs.js +1 -1
- package/src/tedi/components/form/textfield/textfield.module.scss.es.js +0 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-mobile/sidenav-mobile.cjs.js +1 -1
- package/src/tedi/components/layout/sidenav/components/sidenav-mobile/sidenav-mobile.es.js +46 -42
- package/src/tedi/components/misc/scroll-visibility/scroll-visibility.cjs.js +2 -1
- package/src/tedi/components/misc/scroll-visibility/scroll-visibility.es.js +44 -32
- package/src/tedi/helpers/hooks/use-scroll.cjs.js +1 -1
- package/src/tedi/helpers/hooks/use-scroll.d.ts +3 -1
- package/src/tedi/helpers/hooks/use-scroll.es.js +19 -19
- package/src/community/components/ellipsis/ellipsis.cjs.js +0 -1
- package/src/community/components/ellipsis/ellipsis.d.ts +0 -19
- package/src/community/components/ellipsis/ellipsis.es.js +0 -34
- package/src/community/components/ellipsis/ellipsis.module.scss.cjs.js +0 -1
- package/src/community/components/ellipsis/ellipsis.module.scss.es.js +0 -9
- 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/community/components/typography/heading/heading.cjs.js +0 -1
- package/src/community/components/typography/heading/heading.d.ts +0 -11
- package/src/community/components/typography/heading/heading.es.js +0 -10
- package/src/community/components/typography/text/text.cjs.js +0 -1
- package/src/community/components/typography/text/text.d.ts +0 -43
- package/src/community/components/typography/text/text.es.js +0 -26
- package/src/tedi/providers/storybook-provider/storybook-provider.d.ts +0 -10
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as d } from "react/jsx-runtime";
|
|
2
|
-
import r from "react";
|
|
3
|
-
import { useElementSize as u } from "../../../tedi/helpers/hooks/use-element-size.es.js";
|
|
4
|
-
import s from "./ellipsis.module.scss.es.js";
|
|
5
|
-
import { TooltipProvider as h } from "../tooltip/tooltip-provider.es.js";
|
|
6
|
-
import { TooltipTrigger as T } from "../tooltip/tooltip-trigger.es.js";
|
|
7
|
-
import { Tooltip as g } from "../tooltip/tooltip.es.js";
|
|
8
|
-
import { Card as C } from "../card/card.es.js";
|
|
9
|
-
import { CardContent as R } from "../card/card-content/card-content.es.js";
|
|
10
|
-
const H = (n) => {
|
|
11
|
-
const { children: i, lineClamp: o = 2, showTooltip: m = !0, ...p } = n, e = r.useRef(null), [c, a] = r.useState(!1), f = u(e);
|
|
12
|
-
r.useEffect(() => {
|
|
13
|
-
e.current && a(e.current.scrollHeight > e.current.clientHeight);
|
|
14
|
-
}, [e, f]);
|
|
15
|
-
const l = /* @__PURE__ */ t(
|
|
16
|
-
"div",
|
|
17
|
-
{
|
|
18
|
-
"data-name": "ellipsis",
|
|
19
|
-
...p,
|
|
20
|
-
ref: e,
|
|
21
|
-
className: s.ellipsis,
|
|
22
|
-
style: { lineClamp: o, WebkitLineClamp: o },
|
|
23
|
-
children: i
|
|
24
|
-
}
|
|
25
|
-
);
|
|
26
|
-
return c && m ? /* @__PURE__ */ d(h, { children: [
|
|
27
|
-
/* @__PURE__ */ t(T, { children: l }),
|
|
28
|
-
/* @__PURE__ */ t(g, { children: /* @__PURE__ */ t(C, { borderless: !0, className: s.ellipsis__tooltip, children: /* @__PURE__ */ t(R, { padding: 0.75, children: i }) }) })
|
|
29
|
-
] }) : l;
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
H as Ellipsis,
|
|
33
|
-
H as default
|
|
34
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l="ellipsis-619434e4",s="ellipsis__tooltip-9735eba5",e={ellipsis:l,ellipsis__tooltip:s};exports.default=e;exports.ellipsis=l;exports.ellipsis__tooltip=s;
|
|
@@ -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 '../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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),i=require("../text/text.cjs.js"),e=t=>{const{children:r,element:n="h1",...s}=t;return u.jsx(i.Text,{element:n,...s,children:r})};exports.Heading=e;exports.default=e;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { HeadingModifiers, TextProps } from '../text/text';
|
|
2
|
-
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3
|
-
export type HeadingProps = Omit<TextProps, 'element'> & {
|
|
4
|
-
/**
|
|
5
|
-
* Semantic heading tag. h1-h6 are allowed values.
|
|
6
|
-
* @default h1
|
|
7
|
-
*/
|
|
8
|
-
element?: Extract<TextProps['element'], HeadingModifiers>;
|
|
9
|
-
};
|
|
10
|
-
export declare const Heading: (props: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export default Heading;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Text as m } from "../text/text.es.js";
|
|
3
|
-
const a = (e) => {
|
|
4
|
-
const { children: t, element: r = "h1", ...o } = e;
|
|
5
|
-
return /* @__PURE__ */ n(m, { element: r, ...o, children: t });
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
a as Heading,
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const m=require("react/jsx-runtime"),p=require("../../../../../external/classnames/index.cjs.js"),f=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),s=e=>{const{getCurrentBreakpointProps:o}=f.useBreakpointProps(e.defaultServerBreakpoint),{children:i,className:u,tabIndex:a,element:c="p",modifiers:t,color:r,...l}=o(e,{tabIndex:e.id?-1:void 0}),n=typeof t=="string"?[t]:t,d=p.default(u,n==null?void 0:n.map(x=>`text-${x}`),{[`text-${r}`]:r});return m.jsx(c,{className:d,...l,tabIndex:a,children:i})};exports.Text=s;exports.default=s;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BreakpointSupport } from '../../../helpers';
|
|
2
|
-
import { HeadingLevel } from '../heading/heading';
|
|
3
|
-
export type HeadingModifiers = `h${HeadingLevel}`;
|
|
4
|
-
export type TextModifiers = HeadingModifiers | 'normal' | 'small' | 'bold' | 'thin' | 'italic' | 'center' | 'left' | 'right' | 'nowrap' | 'break-all' | 'break-word' | 'break-spaces' | 'uppercase' | 'lowercase' | 'capitalize' | 'capitalize-first' | 'inline-block' | 'inline' | 'line-normal' | 'line-condensed';
|
|
5
|
-
export type TextColor = 'default' | 'primary' | 'muted' | 'subtle' | 'disabled' | 'inverted' | 'positive' | 'important' | 'warning';
|
|
6
|
-
export type TextElement = 'div' | 'p' | 'span' | 'li' | HeadingModifiers;
|
|
7
|
-
type TextBreakpointProps = {
|
|
8
|
-
/**
|
|
9
|
-
* Additional class.
|
|
10
|
-
*/
|
|
11
|
-
className?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Base element.
|
|
14
|
-
* @default p
|
|
15
|
-
*/
|
|
16
|
-
element?: TextElement;
|
|
17
|
-
/**
|
|
18
|
-
* Single or multiple modifiers to change the text behavior.
|
|
19
|
-
*/
|
|
20
|
-
modifiers?: TextModifiers[] | TextModifiers;
|
|
21
|
-
/**
|
|
22
|
-
* Which color text should be.
|
|
23
|
-
* Use 'positive', 'important' or 'warning' with caution, usually they should not be in application UI.
|
|
24
|
-
* @default default
|
|
25
|
-
*/
|
|
26
|
-
color?: TextColor;
|
|
27
|
-
};
|
|
28
|
-
export interface TextProps extends BreakpointSupport<TextBreakpointProps> {
|
|
29
|
-
/**
|
|
30
|
-
* Children of the text.
|
|
31
|
-
*/
|
|
32
|
-
children: React.ReactNode;
|
|
33
|
-
/**
|
|
34
|
-
* ID attribute.
|
|
35
|
-
*/
|
|
36
|
-
id?: string;
|
|
37
|
-
/**
|
|
38
|
-
* Allows to focus the element
|
|
39
|
-
*/
|
|
40
|
-
tabIndex?: number;
|
|
41
|
-
}
|
|
42
|
-
export declare const Text: (props: TextProps) => JSX.Element;
|
|
43
|
-
export default Text;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
-
import x from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import { useBreakpointProps as f } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
4
|
-
const N = (t) => {
|
|
5
|
-
const { getCurrentBreakpointProps: s } = f(t.defaultServerBreakpoint), {
|
|
6
|
-
children: n,
|
|
7
|
-
className: a,
|
|
8
|
-
tabIndex: m,
|
|
9
|
-
element: c = "p",
|
|
10
|
-
modifiers: e,
|
|
11
|
-
color: r,
|
|
12
|
-
...i
|
|
13
|
-
} = s(t, {
|
|
14
|
-
tabIndex: t.id ? -1 : void 0
|
|
15
|
-
// when id is set on a text element we most likely want to jump to it with a reference link
|
|
16
|
-
}), o = typeof e == "string" ? [e] : e, l = x(
|
|
17
|
-
a,
|
|
18
|
-
o == null ? void 0 : o.map((p) => `text-${p}`),
|
|
19
|
-
{ [`text-${r}`]: r }
|
|
20
|
-
);
|
|
21
|
-
return /* @__PURE__ */ d(c, { className: l, ...i, tabIndex: m, children: n });
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
N as Text,
|
|
25
|
-
N as default
|
|
26
|
-
};
|
|
@@ -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 {};
|