@equinor/fusion-react-date 0.5.3 → 1.0.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/dist/DateRange.d.ts +3 -2
- package/dist/DateRange.d.ts.map +1 -1
- package/dist/DateRange.js +1 -1
- package/dist/DateRange.js.map +1 -1
- package/dist/DateTime.d.ts +3 -2
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js.map +1 -1
- package/package.json +10 -7
package/dist/DateRange.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { type ComponentProps } from '@equinor/fusion-react-utils';
|
|
2
3
|
import { DateRangeElement as HTMLDateRangeCustomElement } from '@equinor/fusion-wc-date';
|
|
3
|
-
type ElementProps =
|
|
4
|
+
type ElementProps = PropsWithChildren<Partial<Pick<HTMLDateRangeCustomElement, 'from' | 'to' | 'format' | 'suffix' | 'variant' | 'locale' | 'seconds' | 'weekstart' | 'capitalize'>>>;
|
|
4
5
|
export declare const DateRange: import("@equinor/fusion-react-utils").WebComponent<HTMLDateRangeCustomElement, ElementProps>;
|
|
5
6
|
export type DateRangeProps = ComponentProps<HTMLDateRangeCustomElement, ElementProps>;
|
|
6
7
|
export { HTMLDateRangeCustomElement };
|
package/dist/DateRange.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRange.d.ts","sourceRoot":"","sources":["../src/DateRange.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DateRange.d.ts","sourceRoot":"","sources":["../src/DateRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,gBAAgB,IAAI,0BAA0B,EAE/C,MAAM,yBAAyB,CAAC;AAEjC,KAAK,YAAY,GAAG,iBAAiB,CACnC,OAAO,CACL,IAAI,CACF,0BAA0B,EACxB,MAAM,GACN,IAAI,GACJ,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,SAAS,GACT,WAAW,GACX,YAAY,CACf,CACF,CACF,CAAC;AAEF,eAAO,MAAM,SAAS,8FAGrB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,0BAA0B,EAAE,YAAY,CAAC,CAAC;AAEtF,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAEtC,eAAe,SAAS,CAAC"}
|
package/dist/DateRange.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createComponent } from '@equinor/fusion-react-utils';
|
|
2
|
-
import { DateRangeElement as HTMLDateRangeCustomElement, dateRangeTag } from '@equinor/fusion-wc-date';
|
|
2
|
+
import { DateRangeElement as HTMLDateRangeCustomElement, dateRangeTag, } from '@equinor/fusion-wc-date';
|
|
3
3
|
export const DateRange = createComponent(HTMLDateRangeCustomElement, dateRangeTag);
|
|
4
4
|
export { HTMLDateRangeCustomElement };
|
|
5
5
|
export default DateRange;
|
package/dist/DateRange.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRange.js","sourceRoot":"","sources":["../src/DateRange.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRange.js","sourceRoot":"","sources":["../src/DateRange.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAuB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EACL,gBAAgB,IAAI,0BAA0B,EAC9C,YAAY,GACb,MAAM,yBAAyB,CAAC;AAmBjC,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CACtC,0BAA0B,EAC1B,YAAY,CACb,CAAC;AAIF,OAAO,EAAE,0BAA0B,EAAE,CAAC;AAEtC,eAAe,SAAS,CAAC"}
|
package/dist/DateTime.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PropsWithChildren } from 'react';
|
|
2
|
+
import { type ComponentProps } from '@equinor/fusion-react-utils';
|
|
2
3
|
import { DateTimeElement as HTMLDateTimeCustomElement } from '@equinor/fusion-wc-date';
|
|
3
|
-
type ElementProps =
|
|
4
|
+
type ElementProps = PropsWithChildren<Partial<Pick<HTMLDateTimeCustomElement, 'date' | 'format' | 'locale'>>>;
|
|
4
5
|
export declare const DateTime: import("@equinor/fusion-react-utils").WebComponent<HTMLDateTimeCustomElement, ElementProps>;
|
|
5
6
|
export type DateTimeProps = ComponentProps<HTMLDateTimeCustomElement, ElementProps>;
|
|
6
7
|
export { HTMLDateTimeCustomElement };
|
package/dist/DateTime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../src/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"DateTime.d.ts","sourceRoot":"","sources":["../src/DateTime.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAmB,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,yBAAyB,EAAe,MAAM,yBAAyB,CAAC;AAEpG,KAAK,YAAY,GAAG,iBAAiB,CACnC,OAAO,CAAC,IAAI,CAAC,yBAAyB,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,CACvE,CAAC;AAEF,eAAO,MAAM,QAAQ,6FAGpB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,yBAAyB,EAAE,YAAY,CAAC,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
|
package/dist/DateTime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../src/DateTime.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateTime.js","sourceRoot":"","sources":["../src/DateTime.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,yBAAyB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMpG,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CACrC,yBAAyB,EACzB,WAAW,CACZ,CAAC;AAIF,OAAO,EAAE,yBAAyB,EAAE,CAAC;AAErC,eAAe,QAAQ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-react-date",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "component for formatting and displaying dates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"date",
|
|
@@ -28,17 +28,20 @@
|
|
|
28
28
|
"url": "https://github.com/equinor/fusion-react-components/issues"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@equinor/fusion-
|
|
32
|
-
"@equinor/fusion-
|
|
31
|
+
"@equinor/fusion-wc-date": "^1.1.3",
|
|
32
|
+
"@equinor/fusion-react-utils": "^3.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@types/react": "^
|
|
36
|
-
"react": "^
|
|
35
|
+
"@types/react": "^19.2.2",
|
|
36
|
+
"react": "^19.2.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"react": "^18 || ^19"
|
|
37
40
|
},
|
|
38
41
|
"scripts": {
|
|
39
42
|
"build": "tsc -b",
|
|
40
43
|
"watch": "tsc -w",
|
|
41
|
-
"lint": "
|
|
42
|
-
"
|
|
44
|
+
"lint": "biome lint",
|
|
45
|
+
"format": "biome format"
|
|
43
46
|
}
|
|
44
47
|
}
|