@webstudio-is/sdk-components-react 0.219.0 → 0.221.0
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/lib/__generated__/checkbox.props.js +1 -1
- package/lib/__generated__/markdown-embed.props.js +2 -8
- package/lib/__generated__/radio-button.props.js +1 -1
- package/lib/__generated__/time.props.js +0 -7
- package/lib/blockquote.ws.js +7 -14
- package/lib/body.ws.js +6 -24
- package/lib/bold.ws.js +7 -15
- package/lib/box.ws.js +16 -25
- package/lib/button.ws.js +7 -19
- package/lib/checkbox.ws.js +8 -21
- package/lib/code-text.ws.js +10 -17
- package/lib/form.ws.js +7 -16
- package/lib/fragment.ws.js +2 -7
- package/lib/head-link.ws.js +6 -9
- package/lib/head-meta.ws.js +5 -8
- package/lib/head-slot.template.js +1 -1
- package/lib/head-slot.ws.js +3 -7
- package/lib/head-title.ws.js +2 -4
- package/lib/heading.ws.js +14 -21
- package/lib/html-embed.ws.js +6 -8
- package/lib/image.ws.js +20 -26
- package/lib/input.js +18 -14
- package/lib/input.ws.js +10 -31
- package/lib/italic.ws.js +7 -21
- package/lib/label.ws.js +6 -12
- package/lib/link.ws.js +11 -28
- package/lib/list-item.ws.js +6 -15
- package/lib/list.ws.js +9 -15
- package/lib/markdown-embed.ws.js +6 -8
- package/lib/option.js +3 -1
- package/lib/option.ws.js +6 -10
- package/lib/paragraph.ws.js +7 -16
- package/lib/radio-button.ws.js +9 -23
- package/lib/rich-text-link.ws.js +3 -4
- package/lib/select.js +27 -14
- package/lib/select.ws.js +10 -23
- package/lib/separator.ws.js +9 -18
- package/lib/slot.ws.js +5 -8
- package/lib/span.ws.js +7 -13
- package/lib/subscript.ws.js +7 -15
- package/lib/superscript.ws.js +7 -15
- package/lib/templates.js +12 -36
- package/lib/text.ws.js +8 -12
- package/lib/textarea.js +16 -5
- package/lib/textarea.ws.js +11 -32
- package/lib/time.js +2 -1
- package/lib/time.ws.js +12 -14
- package/lib/types/blockquote.ws.d.ts +1 -2
- package/lib/types/body.ws.d.ts +1 -2
- package/lib/types/bold.ws.d.ts +1 -2
- package/lib/types/box.ws.d.ts +1 -2
- package/lib/types/button.ws.d.ts +1 -2
- package/lib/types/checkbox.d.ts +1 -1
- package/lib/types/checkbox.ws.d.ts +1 -2
- package/lib/types/code-text.ws.d.ts +1 -2
- package/lib/types/form.ws.d.ts +1 -2
- package/lib/types/fragment.ws.d.ts +1 -2
- package/lib/types/head-link.ws.d.ts +1 -2
- package/lib/types/head-meta.ws.d.ts +1 -2
- package/lib/types/head-slot.ws.d.ts +1 -2
- package/lib/types/head-title.ws.d.ts +1 -2
- package/lib/types/heading.ws.d.ts +1 -2
- package/lib/types/html-embed.ws.d.ts +1 -2
- package/lib/types/image.ws.d.ts +1 -2
- package/lib/types/input.d.ts +1 -4
- package/lib/types/input.ws.d.ts +1 -2
- package/lib/types/italic.ws.d.ts +1 -2
- package/lib/types/label.ws.d.ts +1 -2
- package/lib/types/link.ws.d.ts +1 -2
- package/lib/types/list-item.ws.d.ts +1 -2
- package/lib/types/list.ws.d.ts +1 -2
- package/lib/types/markdown-embed.d.ts +3 -3
- package/lib/types/markdown-embed.ws.d.ts +1 -2
- package/lib/types/option.d.ts +0 -1
- package/lib/types/option.ws.d.ts +1 -2
- package/lib/types/paragraph.ws.d.ts +1 -2
- package/lib/types/radio-button.d.ts +1 -1
- package/lib/types/radio-button.ws.d.ts +1 -2
- package/lib/types/rich-text-link.ws.d.ts +1 -2
- package/lib/types/select.d.ts +0 -1
- package/lib/types/select.ws.d.ts +1 -2
- package/lib/types/separator.ws.d.ts +1 -2
- package/lib/types/slot.ws.d.ts +1 -2
- package/lib/types/span.ws.d.ts +1 -2
- package/lib/types/subscript.ws.d.ts +1 -2
- package/lib/types/superscript.ws.d.ts +1 -2
- package/lib/types/templates.d.ts +0 -12
- package/lib/types/text.ws.d.ts +1 -2
- package/lib/types/textarea.d.ts +0 -1
- package/lib/types/textarea.ws.d.ts +1 -2
- package/lib/types/time.d.ts +2 -4
- package/lib/types/time.ws.d.ts +1 -2
- package/lib/types/video.ws.d.ts +1 -2
- package/lib/types/vimeo-play-button.ws.d.ts +1 -2
- package/lib/types/vimeo-preview-image.d.ts +21 -21
- package/lib/types/vimeo-preview-image.ws.d.ts +1 -2
- package/lib/types/vimeo-spinner.ws.d.ts +1 -2
- package/lib/types/vimeo.ws.d.ts +1 -2
- package/lib/types/webhook-form.ws.d.ts +1 -2
- package/lib/types/xml-node.ws.d.ts +1 -2
- package/lib/types/xml-time.ws.d.ts +1 -2
- package/lib/types/youtube.ws.d.ts +1 -2
- package/lib/video.ws.js +14 -17
- package/lib/vimeo-play-button.ws.js +9 -15
- package/lib/vimeo-preview-image.ws.js +6 -8
- package/lib/vimeo-spinner.ws.js +7 -13
- package/lib/vimeo.template.js +22 -21
- package/lib/vimeo.ws.js +13 -19
- package/lib/webhook-form.template.js +61 -22
- package/lib/webhook-form.ws.js +4 -6
- package/lib/xml-node.ws.js +5 -7
- package/lib/xml-time.ws.js +5 -7
- package/lib/youtube.template.js +16 -15
- package/lib/youtube.ws.js +13 -19
- package/package.json +8 -13
- package/lib/blockquote.template.js +0 -11
- package/lib/button.template.js +0 -11
- package/lib/checkbox.template.js +0 -14
- package/lib/heading.template.js +0 -11
- package/lib/label.template.js +0 -10
- package/lib/link.template.js +0 -11
- package/lib/list-item.template.js +0 -11
- package/lib/list.template.js +0 -15
- package/lib/paragraph.template.js +0 -11
- package/lib/props.js +0 -92
- package/lib/radio-button.template.js +0 -14
- package/lib/select.template.js +0 -16
- package/lib/text.template.js +0 -11
- package/lib/types/blockquote.template.d.ts +0 -2
- package/lib/types/button.template.d.ts +0 -2
- package/lib/types/checkbox.template.d.ts +0 -2
- package/lib/types/heading.template.d.ts +0 -2
- package/lib/types/label.template.d.ts +0 -2
- package/lib/types/link.template.d.ts +0 -2
- package/lib/types/list-item.template.d.ts +0 -2
- package/lib/types/list.template.d.ts +0 -2
- package/lib/types/paragraph.template.d.ts +0 -2
- package/lib/types/props.d.ts +0 -45
- package/lib/types/radio-button.template.d.ts +0 -2
- package/lib/types/select.template.d.ts +0 -2
- package/lib/types/text.template.d.ts +0 -2
package/lib/templates.js
CHANGED
|
@@ -1,38 +1,14 @@
|
|
|
1
|
-
import { meta as
|
|
2
|
-
import { meta as
|
|
3
|
-
import { meta as
|
|
4
|
-
import { meta as
|
|
5
|
-
import { meta as
|
|
6
|
-
import { meta as
|
|
7
|
-
import { meta as u } from "./button.template.js";
|
|
8
|
-
import { meta as l } from "./webhook-form.template.js";
|
|
9
|
-
import { meta as c } from "./blockquote.template.js";
|
|
10
|
-
import { meta as g } from "./list.template.js";
|
|
11
|
-
import { meta as C } from "./list-item.template.js";
|
|
12
|
-
import { meta as H } from "./label.template.js";
|
|
13
|
-
import { meta as T } from "./radio-button.template.js";
|
|
14
|
-
import { meta as w } from "./checkbox.template.js";
|
|
15
|
-
import { meta as I } from "./vimeo.template.js";
|
|
16
|
-
import { meta as P } from "./youtube.template.js";
|
|
17
|
-
import { meta as V } from "./select.template.js";
|
|
18
|
-
import { meta as j } from "./head-slot.template.js";
|
|
1
|
+
import { meta as m } from "./content-embed.template.js";
|
|
2
|
+
import { meta as a } from "./markdown-embed.template.js";
|
|
3
|
+
import { meta as f } from "./webhook-form.template.js";
|
|
4
|
+
import { meta as s } from "./vimeo.template.js";
|
|
5
|
+
import { meta as d } from "./youtube.template.js";
|
|
6
|
+
import { meta as n } from "./head-slot.template.js";
|
|
19
7
|
export {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
p as Heading,
|
|
27
|
-
H as Label,
|
|
28
|
-
i as Link,
|
|
29
|
-
g as List,
|
|
30
|
-
C as ListItem,
|
|
31
|
-
m as MarkdownEmbed,
|
|
32
|
-
n as Paragraph,
|
|
33
|
-
T as RadioButton,
|
|
34
|
-
V as Select,
|
|
35
|
-
s as Text,
|
|
36
|
-
I as Vimeo,
|
|
37
|
-
P as YouTube
|
|
8
|
+
m as ContentEmbed,
|
|
9
|
+
f as Form,
|
|
10
|
+
n as HeadSlot,
|
|
11
|
+
a as MarkdownEmbed,
|
|
12
|
+
s as Vimeo,
|
|
13
|
+
d as YouTube
|
|
38
14
|
};
|
package/lib/text.ws.js
CHANGED
|
@@ -1,32 +1,28 @@
|
|
|
1
1
|
import { TextIcon as t } from "@webstudio-is/icons/svg";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { props as i } from "./__generated__/text.props.js";
|
|
2
|
+
import { div as i } from "@webstudio-is/sdk/normalize.css";
|
|
3
|
+
import { props as o } from "./__generated__/text.props.js";
|
|
5
4
|
const n = {
|
|
6
5
|
icon: t,
|
|
7
|
-
states: o,
|
|
8
6
|
presetStyle: {
|
|
9
7
|
div: [
|
|
10
|
-
...
|
|
8
|
+
...i,
|
|
11
9
|
{
|
|
12
10
|
property: "min-height",
|
|
13
11
|
value: { type: "unit", unit: "em", value: 1 }
|
|
14
12
|
}
|
|
15
13
|
]
|
|
16
|
-
}
|
|
17
|
-
|
|
14
|
+
},
|
|
15
|
+
initialProps: ["tag", "id", "class"],
|
|
18
16
|
props: {
|
|
19
|
-
...
|
|
17
|
+
...o,
|
|
20
18
|
tag: {
|
|
21
19
|
required: !0,
|
|
22
20
|
control: "tag",
|
|
23
21
|
type: "string",
|
|
24
22
|
options: ["div", "cite", "figcaption", "span"]
|
|
25
23
|
}
|
|
26
|
-
}
|
|
27
|
-
initialProps: ["tag", "id", "className"]
|
|
24
|
+
}
|
|
28
25
|
};
|
|
29
26
|
export {
|
|
30
|
-
n as meta
|
|
31
|
-
m as propsMeta
|
|
27
|
+
n as meta
|
|
32
28
|
};
|
package/lib/textarea.js
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
4
|
-
|
|
1
|
+
import { forwardRef as c, useContext as m, createElement as s } from "react";
|
|
2
|
+
import { ReactSdkContext as x } from "@webstudio-is/react-sdk/runtime";
|
|
3
|
+
const d = c(({ value: e, defaultValue: t, ...r }, a) => {
|
|
4
|
+
const { renderer: o } = m(x), n = o === "canvas" ? String(e ?? t) : void 0;
|
|
5
|
+
return /* @__PURE__ */ s(
|
|
6
|
+
"textarea",
|
|
7
|
+
{
|
|
8
|
+
...r,
|
|
9
|
+
key: n,
|
|
10
|
+
defaultValue: e ?? t,
|
|
11
|
+
ref: a
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
});
|
|
15
|
+
d.displayName = "Textarea";
|
|
5
16
|
export {
|
|
6
|
-
|
|
17
|
+
d as Textarea
|
|
7
18
|
};
|
package/lib/textarea.ws.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { props as t } from "./__generated__/textarea.props.js";
|
|
5
|
-
const l = {
|
|
1
|
+
import { textarea as e } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as r } from "./__generated__/textarea.props.js";
|
|
3
|
+
const t = {
|
|
6
4
|
textarea: [
|
|
7
|
-
...
|
|
5
|
+
...e,
|
|
8
6
|
// resize doesn't work well while on canvas
|
|
9
7
|
{ property: "resize", value: { type: "keyword", value: "none" } },
|
|
10
8
|
{
|
|
@@ -12,43 +10,24 @@ const l = {
|
|
|
12
10
|
value: { type: "keyword", value: "block" }
|
|
13
11
|
}
|
|
14
12
|
]
|
|
15
|
-
},
|
|
16
|
-
category: "forms",
|
|
13
|
+
}, l = {
|
|
17
14
|
label: "Text Area",
|
|
18
|
-
|
|
19
|
-
icon: e,
|
|
20
|
-
presetStyle: l,
|
|
21
|
-
order: 4,
|
|
15
|
+
presetStyle: t,
|
|
22
16
|
contentModel: {
|
|
23
17
|
category: "instance",
|
|
24
18
|
children: []
|
|
25
19
|
},
|
|
26
|
-
states: [
|
|
27
|
-
...r,
|
|
28
|
-
{ selector: "::placeholder", label: "Placeholder" },
|
|
29
|
-
{ selector: ":valid", label: "Valid" },
|
|
30
|
-
{ selector: ":invalid", label: "Invalid" },
|
|
31
|
-
{ selector: ":required", label: "Required" },
|
|
32
|
-
{ selector: ":optional", label: "Optional" }
|
|
33
|
-
// Additional states will go into submenu
|
|
34
|
-
//{ selector: ":disabled", label: "Disabled" },
|
|
35
|
-
//{ selector: ":enabled", label: "Enabled" },
|
|
36
|
-
//{ selector: ":read-only", label: "Read Only" },
|
|
37
|
-
//{ selector: ":read-write", label: "Read Write" },
|
|
38
|
-
]
|
|
39
|
-
}, p = {
|
|
40
|
-
props: t,
|
|
41
20
|
initialProps: [
|
|
42
21
|
"id",
|
|
43
|
-
"
|
|
22
|
+
"class",
|
|
44
23
|
"name",
|
|
45
24
|
"value",
|
|
46
25
|
"placeholder",
|
|
47
26
|
"required",
|
|
48
|
-
"
|
|
49
|
-
]
|
|
27
|
+
"autofocus"
|
|
28
|
+
],
|
|
29
|
+
props: r
|
|
50
30
|
};
|
|
51
31
|
export {
|
|
52
|
-
|
|
53
|
-
p as propsMeta
|
|
32
|
+
l as meta
|
|
54
33
|
};
|
package/lib/time.js
CHANGED
package/lib/time.ws.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { time as a } from "@webstudio-is/sdk/normalize.css";
|
|
4
|
-
import { props as o } from "./__generated__/time.props.js";
|
|
1
|
+
import { time as e } from "@webstudio-is/sdk/normalize.css";
|
|
2
|
+
import { props as t } from "./__generated__/time.props.js";
|
|
5
3
|
const r = {
|
|
6
|
-
time: a
|
|
7
|
-
}, s = {
|
|
8
4
|
category: "localization",
|
|
9
5
|
description: "Converts machine-readable date and time to a human-readable format.",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
contentModel: {
|
|
7
|
+
category: "instance",
|
|
8
|
+
children: []
|
|
9
|
+
},
|
|
10
|
+
presetStyle: {
|
|
11
|
+
time: e
|
|
12
|
+
},
|
|
13
|
+
initialProps: ["datetime", "language", "country", "dateStyle", "timeStyle"],
|
|
14
|
+
props: t
|
|
16
15
|
};
|
|
17
16
|
export {
|
|
18
|
-
|
|
19
|
-
l as propsMeta
|
|
17
|
+
r as meta
|
|
20
18
|
};
|
package/lib/types/body.ws.d.ts
CHANGED
package/lib/types/bold.ws.d.ts
CHANGED
package/lib/types/box.ws.d.ts
CHANGED
package/lib/types/button.ws.d.ts
CHANGED
package/lib/types/checkbox.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const defaultTag = "input";
|
|
2
|
-
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
2
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/form.ws.d.ts
CHANGED
package/lib/types/image.ws.d.ts
CHANGED
package/lib/types/input.d.ts
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").ClassAttributes<HTMLInputElement> & import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
3
|
-
type?: "color" | "date" | "datetime-local" | "email" | "hidden" | "month" | "number" | "password" | "range" | "search" | "tel" | "text" | "time" | "url" | "week";
|
|
4
|
-
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
1
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/input.ws.d.ts
CHANGED
package/lib/types/italic.ws.d.ts
CHANGED
package/lib/types/label.ws.d.ts
CHANGED
package/lib/types/link.ws.d.ts
CHANGED
package/lib/types/list.ws.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
type
|
|
1
|
+
import { type ComponentProps } from "react";
|
|
2
|
+
type MarkdownEmbedProps = ComponentProps<"div"> & {
|
|
2
3
|
code: string;
|
|
3
|
-
className?: string;
|
|
4
4
|
children?: never;
|
|
5
5
|
};
|
|
6
|
-
export declare const MarkdownEmbed: import("react").ForwardRefExoticComponent<MarkdownEmbedProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const MarkdownEmbed: import("react").ForwardRefExoticComponent<Omit<MarkdownEmbedProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export {};
|
package/lib/types/option.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const defaultTag = "option";
|
|
2
1
|
export declare const Option: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement>, "ref"> & import("react").RefAttributes<HTMLOptionElement>>;
|
package/lib/types/option.ws.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const defaultTag = "input";
|
|
2
|
-
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "
|
|
2
|
+
export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "type" | "value"> & {
|
|
3
3
|
value?: string;
|
|
4
4
|
}, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
package/lib/types/select.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { type Hook } from "@webstudio-is/react-sdk/runtime";
|
|
2
|
-
export declare const defaultTag = "select";
|
|
3
2
|
export declare const Select: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
4
3
|
export declare const hooksSelect: Hook;
|
package/lib/types/select.ws.d.ts
CHANGED
package/lib/types/slot.ws.d.ts
CHANGED
package/lib/types/span.ws.d.ts
CHANGED
package/lib/types/templates.d.ts
CHANGED
|
@@ -1,18 +1,6 @@
|
|
|
1
1
|
export { meta as ContentEmbed } from "./content-embed.template";
|
|
2
2
|
export { meta as MarkdownEmbed } from "./markdown-embed.template";
|
|
3
|
-
export { meta as Text } from "./text.template";
|
|
4
|
-
export { meta as Heading } from "./heading.template";
|
|
5
|
-
export { meta as Paragraph } from "./paragraph.template";
|
|
6
|
-
export { meta as Link } from "./link.template";
|
|
7
|
-
export { meta as Button } from "./button.template";
|
|
8
3
|
export { meta as Form } from "./webhook-form.template";
|
|
9
|
-
export { meta as Blockquote } from "./blockquote.template";
|
|
10
|
-
export { meta as List } from "./list.template";
|
|
11
|
-
export { meta as ListItem } from "./list-item.template";
|
|
12
|
-
export { meta as Label } from "./label.template";
|
|
13
|
-
export { meta as RadioButton } from "./radio-button.template";
|
|
14
|
-
export { meta as Checkbox } from "./checkbox.template";
|
|
15
4
|
export { meta as Vimeo } from "./vimeo.template";
|
|
16
5
|
export { meta as YouTube } from "./youtube.template";
|
|
17
|
-
export { meta as Select } from "./select.template";
|
|
18
6
|
export { meta as HeadSlot } from "./head-slot.template";
|
package/lib/types/text.ws.d.ts
CHANGED
package/lib/types/textarea.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export declare const defaultTag = "textarea";
|
|
2
1
|
export declare const Textarea: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & import("react").RefAttributes<HTMLTextAreaElement>>;
|
package/lib/types/time.d.ts
CHANGED
|
@@ -4,14 +4,12 @@ type Language = (typeof languages)[number];
|
|
|
4
4
|
type Country = (typeof countries)[number];
|
|
5
5
|
type DateStyle = Intl.DateTimeFormatOptions["dateStyle"] | "none";
|
|
6
6
|
type TimeStyle = Intl.DateTimeFormatOptions["timeStyle"] | "none";
|
|
7
|
-
|
|
8
|
-
datetime?: string;
|
|
7
|
+
export declare const Time: import("react").ForwardRefExoticComponent<Pick<import("react").DetailedHTMLProps<import("react").TimeHTMLAttributes<HTMLTimeElement>, HTMLTimeElement>, "dateTime"> & {
|
|
9
8
|
language?: Language;
|
|
10
9
|
country?: Country;
|
|
11
10
|
dateStyle?: DateStyle;
|
|
12
11
|
timeStyle?: TimeStyle;
|
|
13
|
-
}
|
|
14
|
-
export declare const Time: import("react").ForwardRefExoticComponent<TimeProps & import("react").RefAttributes<HTMLTimeElement>>;
|
|
12
|
+
} & import("react").RefAttributes<HTMLTimeElement>>;
|
|
15
13
|
export declare const __testing__: {
|
|
16
14
|
parseDate: (datetimeString: string) => Date | undefined;
|
|
17
15
|
};
|
package/lib/types/time.ws.d.ts
CHANGED
package/lib/types/video.ws.d.ts
CHANGED