Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "prerelease",
"comment": "feat: add time element on nativeElementMap",
"packageName": "@fluentui/react-utilities",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
imgProperties,
htmlElementProperties,
getNativeProps,
timeProperties,
} from './properties';

const nativeElementMap: Record<string, Record<string, number>> = {
Expand All @@ -47,6 +48,7 @@ const nativeElementMap: Record<string, Record<string, number>> = {
form: formProperties,
iframe: iframeProperties,
img: imgProperties,
time: timeProperties,
};

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ export const anchorProperties = toObjectMap(htmlElementProperties, [
'type', // a, button, input, link, menu, object, script, source, style
]);

/**
* An array of TIME tag properties and events.
*
* @public
*/
export const timeProperties = toObjectMap(htmlElementProperties, [
'dateTime', // time
]);

/**
* An array of BUTTON tag properties and events.
*
Expand Down