@tedi-design-system/react 15.0.0-rc.3 → 15.0.0-rc.5
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/bundle-stats.html +1 -1
- package/community.cjs.js +1 -1
- package/community.es.js +219 -225
- package/index.css +1 -1
- package/package.json +1 -1
- 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 -3
- 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/content/label/label.d.ts +1 -1
- 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
|
@@ -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
|
-
};
|