@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.
Files changed (77) hide show
  1. package/bundle-stats.html +1 -1
  2. package/community.cjs.js +1 -1
  3. package/community.es.js +219 -225
  4. package/index.css +1 -1
  5. package/package.json +1 -1
  6. package/src/community/components/accordion/accordion-item-header/accordion-item-header.cjs.js +1 -1
  7. package/src/community/components/accordion/accordion-item-header/accordion-item-header.es.js +2 -2
  8. package/src/community/components/button-content/button-content.cjs.js +1 -1
  9. package/src/community/components/button-content/button-content.d.ts +1 -1
  10. package/src/community/components/button-content/button-content.es.js +39 -33
  11. package/src/community/components/form/select/select.cjs.js +1 -1
  12. package/src/community/components/form/select/select.d.ts +1 -1
  13. package/src/community/components/form/select/select.es.js +33 -33
  14. package/src/community/components/form/text-editor/components/style-button.cjs.js +1 -1
  15. package/src/community/components/form/text-editor/components/style-button.es.js +2 -2
  16. package/src/community/components/form/toggle/toggle.cjs.js +1 -1
  17. package/src/community/components/form/toggle/toggle.es.js +4 -4
  18. package/src/community/components/layout/breadcrumbs/crumb/crumb.cjs.js +1 -1
  19. package/src/community/components/layout/breadcrumbs/crumb/crumb.es.js +9 -9
  20. package/src/community/components/layout/footer/footer.cjs.js +1 -1
  21. package/src/community/components/layout/footer/footer.d.ts +1 -1
  22. package/src/community/components/layout/footer/footer.es.js +22 -22
  23. package/src/community/components/layout/header/components/header-language/header-language.cjs.js +1 -1
  24. package/src/community/components/layout/header/components/header-language/header-language.es.js +8 -8
  25. package/src/community/components/layout/header/components/header-modal/header-modal.cjs.js +1 -1
  26. package/src/community/components/layout/header/components/header-modal/header-modal.es.js +6 -6
  27. package/src/community/components/layout/header/components/header-notification/header-notification.cjs.js +1 -1
  28. package/src/community/components/layout/header/components/header-notification/header-notification.es.js +4 -4
  29. package/src/community/components/layout/header/components/header-role/header-role.cjs.js +1 -1
  30. package/src/community/components/layout/header/components/header-role/header-role.es.js +19 -19
  31. package/src/community/components/layout/header/components/header-settings/header-settings.cjs.js +1 -1
  32. package/src/community/components/layout/header/components/header-settings/header-settings.es.js +1 -1
  33. package/src/community/components/layout/sidenav/sidenav.cjs.js +1 -1
  34. package/src/community/components/layout/sidenav/sidenav.d.ts +1 -1
  35. package/src/community/components/layout/sidenav/sidenav.es.js +39 -34
  36. package/src/community/components/placeholder/placeholder.cjs.js +1 -1
  37. package/src/community/components/placeholder/placeholder.d.ts +1 -1
  38. package/src/community/components/placeholder/placeholder.es.js +21 -20
  39. package/src/community/components/stepper/stepper-nav.cjs.js +1 -1
  40. package/src/community/components/stepper/stepper-nav.es.js +1 -1
  41. package/src/community/components/table/components/helpers.cjs.js +1 -1
  42. package/src/community/components/table/components/helpers.es.js +1 -1
  43. package/src/community/components/table/components/pagination/PaginationNextButton.cjs.js +1 -1
  44. package/src/community/components/table/components/pagination/PaginationNextButton.es.js +1 -1
  45. package/src/community/components/table/components/pagination/pagination.cjs.js +1 -1
  46. package/src/community/components/table/components/pagination/pagination.es.js +4 -4
  47. package/src/community/components/table/components/table-filter/components/table-date-filter.cjs.js +1 -1
  48. package/src/community/components/table/components/table-filter/components/table-date-filter.es.js +1 -1
  49. package/src/community/components/table/components/table-filter/components/table-select-filter.cjs.js +1 -1
  50. package/src/community/components/table/components/table-filter/components/table-select-filter.es.js +5 -5
  51. package/src/community/components/table-of-contents/table-of-contents-item.cjs.js +1 -1
  52. package/src/community/components/table-of-contents/table-of-contents-item.es.js +18 -18
  53. package/src/community/components/table-of-contents/table-of-contents-items.cjs.js +1 -1
  54. package/src/community/components/table-of-contents/table-of-contents-items.es.js +1 -1
  55. package/src/community/components/table-of-contents/table-of-contents-modal.cjs.js +1 -1
  56. package/src/community/components/table-of-contents/table-of-contents-modal.es.js +13 -13
  57. package/src/community/components/toggle-open/toggle-open.d.ts +1 -1
  58. package/src/community/components/tooltip/tooltip-trigger.cjs.js +1 -1
  59. package/src/community/components/tooltip/tooltip-trigger.es.js +1 -1
  60. package/src/community/components/vertical-progress/vertical-progress-item.cjs.js +1 -1
  61. package/src/community/components/vertical-progress/vertical-progress-item.es.js +4 -4
  62. package/src/community/index.d.ts +0 -3
  63. package/src/tedi/components/base/icon/icon.d.ts +1 -1
  64. package/src/tedi/components/base/icon/icon.module.scss.cjs.js +1 -1
  65. package/src/tedi/components/base/icon/icon.module.scss.es.js +1 -0
  66. package/src/tedi/components/content/label/label.d.ts +1 -1
  67. package/src/community/components/icon/icon.cjs.js +0 -1
  68. package/src/community/components/icon/icon.d.ts +0 -49
  69. package/src/community/components/icon/icon.es.js +0 -47
  70. package/src/community/components/icon/icon.module.scss.cjs.js +0 -1
  71. package/src/community/components/icon/icon.module.scss.es.js +0 -9
  72. package/src/community/components/typography/heading/heading.cjs.js +0 -1
  73. package/src/community/components/typography/heading/heading.d.ts +0 -11
  74. package/src/community/components/typography/heading/heading.es.js +0 -10
  75. package/src/community/components/typography/text/text.cjs.js +0 -1
  76. package/src/community/components/typography/text/text.d.ts +0 -43
  77. 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
- };