@tedi-design-system/react 19.0.0-rc.12 → 19.0.0-rc.14
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/index.css +1 -1
- package/package.json +1 -1
- package/src/tedi/components/content/list/list-item.cjs.js +1 -1
- package/src/tedi/components/content/list/list-item.d.ts +1 -1
- package/src/tedi/components/content/list/list-item.es.js +8 -8
- package/src/tedi/components/content/list/list.cjs.js +1 -1
- package/src/tedi/components/content/list/list.d.ts +1 -1
- package/src/tedi/components/content/list/list.es.js +29 -23
- package/src/tedi/components/content/list/list.module.scss.cjs.js +1 -1
- package/src/tedi/components/content/list/list.module.scss.es.js +3 -2
- package/src/tedi/components/form/date-field/date-field.cjs.js +1 -1
- package/src/tedi/components/form/date-field/date-field.d.ts +6 -0
- package/src/tedi/components/form/date-field/date-field.es.js +163 -162
- package/src/tedi/components/form/date-time-field/date-time-field.cjs.js +1 -1
- package/src/tedi/components/form/date-time-field/date-time-field.d.ts +6 -0
- package/src/tedi/components/form/date-time-field/date-time-field.es.js +101 -100
- package/src/tedi/components/form/time-field/time-field.cjs.js +1 -1
- package/src/tedi/components/form/time-field/time-field.d.ts +6 -0
- package/src/tedi/components/form/time-field/time-field.es.js +37 -36
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.cjs.js +1 -1
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.d.ts +5 -0
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.es.js +14 -13
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.cjs.js +1 -1
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.d.ts +5 -0
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.es.js +18 -17
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import o from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import
|
|
4
|
-
import { useBreakpointProps as
|
|
5
|
-
const
|
|
6
|
-
const { getCurrentBreakpointProps: r } =
|
|
3
|
+
import p from "./vertical-spacing.module.scss.es.js";
|
|
4
|
+
import { useBreakpointProps as d } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
5
|
+
const B = (e) => {
|
|
6
|
+
const { getCurrentBreakpointProps: r } = d(e.defaultServerBreakpoint), {
|
|
7
7
|
children: a,
|
|
8
8
|
className: i,
|
|
9
9
|
element: s = "div",
|
|
10
10
|
size: t = 1,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
style: n,
|
|
12
|
+
...m
|
|
13
|
+
} = r(e), c = o(p["tedi-vertical-spacing__item"], i);
|
|
14
|
+
return /* @__PURE__ */ l(
|
|
14
15
|
s,
|
|
15
16
|
{
|
|
16
17
|
"data-name": "vertical-spacing-item",
|
|
17
|
-
...
|
|
18
|
-
style: { "--vertical-spacing-internal": `${t}${t !== 0 ? "em" : ""}
|
|
19
|
-
className:
|
|
18
|
+
...m,
|
|
19
|
+
style: { "--vertical-spacing-internal": `${t}${t !== 0 ? "em" : ""}`, ...n },
|
|
20
|
+
className: c,
|
|
20
21
|
children: a
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
B as VerticalSpacingItem,
|
|
27
|
+
B as default
|
|
27
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),p=require("../../../../../external/classnames/index.cjs.js"),g=require("./vertical-spacing.module.scss.cjs.js"),m=require("./vertical-spacing-item.cjs.js"),d=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),r=e=>{const{getCurrentBreakpointProps:i}=d.useBreakpointProps(e.defaultServerBreakpoint),{children:a,className:n,element:c="div",size:t=1,style:s,...l}=i(e),o=p.default(g.default["tedi-vertical-spacing"],n);return u.jsx(c,{"data-name":"vertical-spacing",role:"presentation",...l,className:o,style:{"--vertical-spacing-internal":t!==0?`${t}em`:"0",...s},children:a})};r.Item=m.VerticalSpacingItem;exports.VerticalSpacing=r;
|
|
@@ -22,6 +22,11 @@ export interface VerticalSpacingProps extends BreakpointSupport<VerticalSpacingB
|
|
|
22
22
|
* Additional class name(s) to apply to the element
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional inline styles, merged with the internal spacing custom property
|
|
27
|
+
* (rather than replacing it).
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
25
30
|
}
|
|
26
31
|
export declare const VerticalSpacing: {
|
|
27
32
|
(props: VerticalSpacingProps): JSX.Element;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { VerticalSpacingItem as
|
|
5
|
-
import { useBreakpointProps as
|
|
6
|
-
const
|
|
7
|
-
const { getCurrentBreakpointProps: r } =
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import l from "../../../../../external/classnames/index.es.js";
|
|
3
|
+
import p from "./vertical-spacing.module.scss.es.js";
|
|
4
|
+
import { VerticalSpacingItem as g } from "./vertical-spacing-item.es.js";
|
|
5
|
+
import { useBreakpointProps as f } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
6
|
+
const d = (e) => {
|
|
7
|
+
const { getCurrentBreakpointProps: r } = f(e.defaultServerBreakpoint), {
|
|
8
8
|
children: a,
|
|
9
9
|
className: i,
|
|
10
|
-
element:
|
|
10
|
+
element: s = "div",
|
|
11
11
|
size: t = 1,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
style: n,
|
|
13
|
+
...o
|
|
14
|
+
} = r(e), c = l(p["tedi-vertical-spacing"], i);
|
|
15
|
+
return /* @__PURE__ */ m(
|
|
16
|
+
s,
|
|
16
17
|
{
|
|
17
18
|
"data-name": "vertical-spacing",
|
|
18
19
|
role: "presentation",
|
|
19
|
-
...
|
|
20
|
-
className:
|
|
21
|
-
style: { "--vertical-spacing-internal": t !== 0 ? `${t}em` : "0" },
|
|
20
|
+
...o,
|
|
21
|
+
className: c,
|
|
22
|
+
style: { "--vertical-spacing-internal": t !== 0 ? `${t}em` : "0", ...n },
|
|
22
23
|
children: a
|
|
23
24
|
}
|
|
24
25
|
);
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
d.Item = g;
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
d as VerticalSpacing
|
|
29
30
|
};
|