@cutting/svg 4.53.1 → 4.54.1
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +22 -0
- package/dist/esm/components/Group/Group.d.ts +14 -14
- package/dist/esm/components/Line/Line.d.ts +11 -11
- package/dist/esm/components/ParentsizeSVG/ParentsizeSVG.d.ts +12 -12
- package/dist/esm/components/ResponsiveSVG/ResponsiveSVG.d.ts +17 -17
- package/dist/esm/index.d.ts +5 -5
- package/dist/esm/types/types.d.ts +10 -10
- package/package.json +15 -15
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @cutting/svg
|
|
2
2
|
|
|
3
|
+
## 4.54.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b743bae4]
|
|
8
|
+
- @cutting/util@4.58.1
|
|
9
|
+
- @cutting/react-abortable-fetch@0.36.1
|
|
10
|
+
- @cutting/use-get-parent-size@1.27.1
|
|
11
|
+
|
|
12
|
+
## 4.54.0
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- 2cbd4b74: bump all dependencies, pnpm and update renovate
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [2cbd4b74]
|
|
21
|
+
- @cutting/use-get-parent-size@1.27.0
|
|
22
|
+
- @cutting/react-abortable-fetch@0.36.0
|
|
23
|
+
- @cutting/util@4.58.0
|
|
24
|
+
|
|
3
25
|
## 4.53.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
type GroupOnlyProps = {
|
|
2
|
-
/** Top offset applied to `<g/>`. */
|
|
3
|
-
y?: number;
|
|
4
|
-
/** Left offset applied to `<g/>`. */
|
|
5
|
-
x?: number;
|
|
6
|
-
/** Override `x` and `y` to provide the entire `transform` string. */
|
|
7
|
-
transform?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
innerRef?: React.Ref<SVGGElement>;
|
|
11
|
-
};
|
|
12
|
-
type GroupProps = GroupOnlyProps & Omit<React.SVGProps<SVGGElement>, keyof GroupOnlyProps>;
|
|
13
|
-
export declare function Group({ y, x, transform, className, children, innerRef, ...restProps }: GroupProps): JSX.Element;
|
|
14
|
-
export {};
|
|
1
|
+
type GroupOnlyProps = {
|
|
2
|
+
/** Top offset applied to `<g/>`. */
|
|
3
|
+
y?: number;
|
|
4
|
+
/** Left offset applied to `<g/>`. */
|
|
5
|
+
x?: number;
|
|
6
|
+
/** Override `x` and `y` to provide the entire `transform` string. */
|
|
7
|
+
transform?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
innerRef?: React.Ref<SVGGElement>;
|
|
11
|
+
};
|
|
12
|
+
type GroupProps = GroupOnlyProps & Omit<React.SVGProps<SVGGElement>, keyof GroupOnlyProps>;
|
|
13
|
+
export declare function Group({ y, x, transform, className, children, innerRef, ...restProps }: GroupProps): JSX.Element;
|
|
14
|
+
export {};
|
|
15
15
|
//# sourceMappingURL=Group.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { AddSVGProps, Point } from '../../types/types';
|
|
2
|
-
export type LineProps = {
|
|
3
|
-
className?: string;
|
|
4
|
-
innerRef?: React.Ref<SVGLineElement>;
|
|
5
|
-
fill?: string;
|
|
6
|
-
/** Starting x,y point of the line. */
|
|
7
|
-
from?: Point;
|
|
8
|
-
/** Ending x,y point of the line. */
|
|
9
|
-
to?: Point;
|
|
10
|
-
};
|
|
11
|
-
export declare function Line({ from, to, fill, className, innerRef, ...restProps }: AddSVGProps<LineProps, SVGLineElement>): JSX.Element;
|
|
1
|
+
import type { AddSVGProps, Point } from '../../types/types';
|
|
2
|
+
export type LineProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
innerRef?: React.Ref<SVGLineElement>;
|
|
5
|
+
fill?: string;
|
|
6
|
+
/** Starting x,y point of the line. */
|
|
7
|
+
from?: Point;
|
|
8
|
+
/** Ending x,y point of the line. */
|
|
9
|
+
to?: Point;
|
|
10
|
+
};
|
|
11
|
+
export declare function Line({ from, to, fill, className, innerRef, ...restProps }: AddSVGProps<LineProps, SVGLineElement>): JSX.Element;
|
|
12
12
|
//# sourceMappingURL=Line.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { PropsWithChildren, RefObject } from 'react';
|
|
2
|
-
import type { ResponsiveSVGProps } from '../ResponsiveSVG/ResponsiveSVG.js';
|
|
3
|
-
import type { UseParentSizeOptions } from '@cutting/use-get-parent-size';
|
|
4
|
-
type Align = 'none' | 'center';
|
|
5
|
-
export type ParentsizeSVGProps<E extends HTMLElement = HTMLElement> = {
|
|
6
|
-
parentRef: RefObject<E>;
|
|
7
|
-
align?: Align;
|
|
8
|
-
scale?: number;
|
|
9
|
-
options?: Partial<UseParentSizeOptions>;
|
|
10
|
-
} & Partial<Omit<ResponsiveSVGProps, 'innerRef' | 'height' | 'height'>>;
|
|
11
|
-
export declare function ParentsizeSVG<E extends HTMLElement>({ parentRef, children, options, ...rest }: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null;
|
|
12
|
-
export {};
|
|
1
|
+
import type { PropsWithChildren, RefObject } from 'react';
|
|
2
|
+
import type { ResponsiveSVGProps } from '../ResponsiveSVG/ResponsiveSVG.js';
|
|
3
|
+
import type { UseParentSizeOptions } from '@cutting/use-get-parent-size';
|
|
4
|
+
type Align = 'none' | 'center';
|
|
5
|
+
export type ParentsizeSVGProps<E extends HTMLElement = HTMLElement> = {
|
|
6
|
+
parentRef: RefObject<E>;
|
|
7
|
+
align?: Align;
|
|
8
|
+
scale?: number;
|
|
9
|
+
options?: Partial<UseParentSizeOptions>;
|
|
10
|
+
} & Partial<Omit<ResponsiveSVGProps, 'innerRef' | 'height' | 'height'>>;
|
|
11
|
+
export declare function ParentsizeSVG<E extends HTMLElement>({ parentRef, children, options, ...rest }: PropsWithChildren<ParentsizeSVGProps<E>>): JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=ParentsizeSVG.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import type { ReactNode, Ref } from 'react';
|
|
2
|
-
import type { PreserveAspectRatio, SVGAttributes } from '../../types/types';
|
|
3
|
-
export interface Point {
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
}
|
|
7
|
-
export type ResponsiveSVGProps = SVGAttributes<{
|
|
8
|
-
width: number;
|
|
9
|
-
height: number;
|
|
10
|
-
origin?: Point;
|
|
11
|
-
preserveAspectRatio?: PreserveAspectRatio;
|
|
12
|
-
innerRef?: Ref<SVGSVGElement>;
|
|
13
|
-
className?: string;
|
|
14
|
-
hide?: boolean;
|
|
15
|
-
children: ReactNode;
|
|
16
|
-
}>;
|
|
17
|
-
export declare function ResponsiveSVG({ height, width, children, origin, preserveAspectRatio, innerRef, className, ...props }: ResponsiveSVGProps): JSX.Element;
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { PreserveAspectRatio, SVGAttributes } from '../../types/types';
|
|
3
|
+
export interface Point {
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
}
|
|
7
|
+
export type ResponsiveSVGProps = SVGAttributes<{
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
origin?: Point;
|
|
11
|
+
preserveAspectRatio?: PreserveAspectRatio;
|
|
12
|
+
innerRef?: Ref<SVGSVGElement>;
|
|
13
|
+
className?: string;
|
|
14
|
+
hide?: boolean;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function ResponsiveSVG({ height, width, children, origin, preserveAspectRatio, innerRef, className, ...props }: ResponsiveSVGProps): JSX.Element;
|
|
18
18
|
//# sourceMappingURL=ResponsiveSVG.d.ts.map
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export type { Point } from './types/types';
|
|
2
|
-
export { ResponsiveSVG } from './components/ResponsiveSVG/ResponsiveSVG.js';
|
|
3
|
-
export { ParentsizeSVG } from './components/ParentsizeSVG/ParentsizeSVG.js';
|
|
4
|
-
export { Group } from './components/Group/Group.js';
|
|
5
|
-
export { Line } from './components/Line/Line.js';
|
|
1
|
+
export type { Point } from './types/types';
|
|
2
|
+
export { ResponsiveSVG } from './components/ResponsiveSVG/ResponsiveSVG.js';
|
|
3
|
+
export { ParentsizeSVG } from './components/ParentsizeSVG/ParentsizeSVG.js';
|
|
4
|
+
export { Group } from './components/Group/Group.js';
|
|
5
|
+
export { Line } from './components/Line/Line.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { SVGAttributes as SvgAttributes } from 'react';
|
|
2
|
-
export type PreserveAspectRatioAlignment = 'xMinYMin' | 'xMidYMin' | 'xMaxYMin' | 'xMinYMid' | 'xMidYMid' | 'xMaxYMid' | 'xMinYMax' | 'xMidYMax' | 'xMaxYMax';
|
|
3
|
-
export type MeetOrSlice = 'meet' | 'slice';
|
|
4
|
-
export type PreserveAspectRatio = `${PreserveAspectRatioAlignment} ${MeetOrSlice}` | 'none';
|
|
5
|
-
export type AddSVGProps<Props, Element extends SVGElement> = Props & Omit<React.SVGProps<Element>, keyof Props>;
|
|
6
|
-
export interface Point {
|
|
7
|
-
x: number;
|
|
8
|
-
y: number;
|
|
9
|
-
}
|
|
10
|
-
export type SVGAttributes<T> = T & Omit<SvgAttributes<SVGSVGElement>, 'origin' | 'viewBox' | 'preserveAspectRatio' | 'children '>;
|
|
1
|
+
import type { SVGAttributes as SvgAttributes } from 'react';
|
|
2
|
+
export type PreserveAspectRatioAlignment = 'xMinYMin' | 'xMidYMin' | 'xMaxYMin' | 'xMinYMid' | 'xMidYMid' | 'xMaxYMid' | 'xMinYMax' | 'xMidYMax' | 'xMaxYMax';
|
|
3
|
+
export type MeetOrSlice = 'meet' | 'slice';
|
|
4
|
+
export type PreserveAspectRatio = `${PreserveAspectRatioAlignment} ${MeetOrSlice}` | 'none';
|
|
5
|
+
export type AddSVGProps<Props, Element extends SVGElement> = Props & Omit<React.SVGProps<Element>, keyof Props>;
|
|
6
|
+
export interface Point {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
}
|
|
10
|
+
export type SVGAttributes<T> = T & Omit<SvgAttributes<SVGSVGElement>, 'origin' | 'viewBox' | 'preserveAspectRatio' | 'children '>;
|
|
11
11
|
//# sourceMappingURL=types.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cutting/svg",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.54.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dagda1/cuttingedge.git"
|
|
@@ -13,30 +13,30 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"classnames": "^2.3.2",
|
|
15
15
|
"resize-observer-polyfill": "^1.5.1",
|
|
16
|
-
"@cutting/react-abortable-fetch": "0.
|
|
17
|
-
"@cutting/use-get-parent-size": "1.
|
|
18
|
-
"@cutting/util": "4.
|
|
16
|
+
"@cutting/react-abortable-fetch": "0.36.1",
|
|
17
|
+
"@cutting/use-get-parent-size": "1.27.1",
|
|
18
|
+
"@cutting/util": "4.58.1"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@testing-library/dom": "^9.
|
|
21
|
+
"@testing-library/dom": "^9.2.0",
|
|
22
22
|
"@testing-library/react": "^14.0.0",
|
|
23
23
|
"@testing-library/user-event": "14.4.3",
|
|
24
|
-
"@types/react": "18.0.
|
|
24
|
+
"@types/react": "18.0.35",
|
|
25
25
|
"@types/react-dom": "18.0.11",
|
|
26
|
-
"@vanilla-extract/css": "^1.
|
|
27
|
-
"@vanilla-extract/sprinkles": "1.
|
|
26
|
+
"@vanilla-extract/css": "^1.11.0",
|
|
27
|
+
"@vanilla-extract/sprinkles": "1.6.0",
|
|
28
28
|
"@visx/scale": "^3.0.0",
|
|
29
29
|
"d3-scale": "4.0.2",
|
|
30
30
|
"assert-ts": "0.3.4",
|
|
31
|
-
"eslint": "8.
|
|
31
|
+
"eslint": "8.38.0",
|
|
32
32
|
"react": "18.2.0",
|
|
33
33
|
"react-dom": "18.2.0",
|
|
34
|
-
"typescript": "
|
|
35
|
-
"@cutting/component-library": "5.
|
|
36
|
-
"@cutting/devtools": "4.
|
|
37
|
-
"@cutting/eslint-config": "4.
|
|
38
|
-
"@cutting/tsconfig": "4.
|
|
39
|
-
"@cutting/useful-types": "4.
|
|
34
|
+
"typescript": "5.0.4",
|
|
35
|
+
"@cutting/component-library": "5.38.1",
|
|
36
|
+
"@cutting/devtools": "4.63.0",
|
|
37
|
+
"@cutting/eslint-config": "4.44.0",
|
|
38
|
+
"@cutting/tsconfig": "4.40.0",
|
|
39
|
+
"@cutting/useful-types": "4.40.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">= 18.x.x",
|