etudes 32.2.0 → 32.4.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/build/components/Burger.d.ts +2 -2
- package/build/components/BurgerButton.d.ts +2 -2
- package/build/components/CoverImage.d.ts +3 -3
- package/build/components/CoverVideo.d.ts +3 -3
- package/build/components/OptionButton.d.ts +1 -1
- package/build/components/PanoramaSlider.d.ts +4 -4
- package/build/components/SelectableButton.d.ts +1 -1
- package/build/etudes.js +39 -46
- package/build/etudes.umd.cjs +2 -2
- package/build/flows/Conditional.d.ts +1 -1
- package/build/flows/Each.d.ts +1 -1
- package/build/flows/Repeat.d.ts +1 -1
- package/build/flows/Switch.d.ts +1 -1
- package/build/hocs/WithTooltip.d.ts +1 -1
- package/build/hooks/useImageLoader.d.ts +9 -19
- package/build/hooks/useImageSize.d.ts +10 -7
- package/build/primitives/Accordion.d.ts +6 -6
- package/build/primitives/Button.d.ts +1 -1
- package/build/primitives/Carousel.d.ts +4 -4
- package/build/primitives/CodeInput.d.ts +2 -2
- package/build/primitives/Collection.d.ts +2 -2
- package/build/primitives/Counter.d.ts +4 -4
- package/build/primitives/Dial.d.ts +3 -3
- package/build/primitives/Dropdown.d.ts +5 -5
- package/build/primitives/Form.d.ts +1 -1
- package/build/primitives/Image.d.ts +1 -1
- package/build/primitives/MasonryGrid.d.ts +1 -1
- package/build/primitives/Panorama.d.ts +1 -1
- package/build/primitives/Picture.d.ts +1 -1
- package/build/primitives/RangeSlider.d.ts +6 -6
- package/build/primitives/ScrollableCarousel.d.ts +1 -1
- package/build/primitives/Select.d.ts +4 -4
- package/build/primitives/Slider.d.ts +5 -5
- package/build/primitives/StepSlider.d.ts +5 -5
- package/build/primitives/SwipeRegion.d.ts +1 -1
- package/build/primitives/TextArea.d.ts +1 -1
- package/build/primitives/TextField.d.ts +1 -1
- package/build/primitives/Toggle.d.ts +3 -3
- package/build/primitives/Video.d.ts +1 -1
- package/build/providers/ScrollPositionProvider.d.ts +6 -1
- package/build/utils/ExtractChildren.d.ts +1 -1
- package/build/utils/NoSSR.d.ts +1 -1
- package/package.json +17 -17
|
@@ -5,7 +5,7 @@ import { HTMLAttributes, Ref } from 'react';
|
|
|
5
5
|
* @exports Toggle.Knob The knob of the toggle switch.
|
|
6
6
|
* @exports Toggle.Track The track of the toggle switch.
|
|
7
7
|
*/
|
|
8
|
-
export declare function Toggle({ className, ref, style, children, orientation, isInverted, isOn, onChange, ...props }: Toggle.Props): import("react
|
|
8
|
+
export declare function Toggle({ className, ref, style, children, orientation, isInverted, isOn, onChange, ...props }: Toggle.Props): import("react").JSX.Element;
|
|
9
9
|
export declare namespace Toggle {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
@@ -41,14 +41,14 @@ export declare namespace Toggle {
|
|
|
41
41
|
* Component for the track of a {@link Toggle}.
|
|
42
42
|
*/
|
|
43
43
|
const Track: {
|
|
44
|
-
({ children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react
|
|
44
|
+
({ children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
45
45
|
displayName: string;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* Component for the knob of a {@link Toggle}.
|
|
49
49
|
*/
|
|
50
50
|
const Knob: {
|
|
51
|
-
({ children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react
|
|
51
|
+
({ children, ...props }: HTMLAttributes<HTMLSpanElement>): import("react").JSX.Element;
|
|
52
52
|
displayName: string;
|
|
53
53
|
};
|
|
54
54
|
}
|
|
@@ -98,7 +98,7 @@ export declare namespace Video {
|
|
|
98
98
|
*
|
|
99
99
|
* @see {@link https://www.npmjs.com/package/hls.js}
|
|
100
100
|
*/
|
|
101
|
-
export declare function Video({ ref, autoLoop, autoPlay, playsInline, poster, source, hasControls, isMuted, onCanPlay, onEnd, onFullscreenChange, onLoadMetadata, onLoadMetadataComplete, onLoadMetadataError, onPause, onPlay, onSizeChange, onTimeUpdate, ...props }: Video.Props): import("react
|
|
101
|
+
export declare function Video({ ref, autoLoop, autoPlay, playsInline, poster, source, hasControls, isMuted, onCanPlay, onEnd, onFullscreenChange, onLoadMetadata, onLoadMetadataComplete, onLoadMetadataError, onPause, onPlay, onSizeChange, onTimeUpdate, ...props }: Video.Props): import("react").JSX.Element;
|
|
102
102
|
export declare namespace Video {
|
|
103
103
|
var displayName: string;
|
|
104
104
|
}
|
|
@@ -8,12 +8,17 @@ type ContextValue = {
|
|
|
8
8
|
start: Point.Point;
|
|
9
9
|
};
|
|
10
10
|
type ProviderProps = PropsWithChildren<{
|
|
11
|
+
scrollBottomOffset?: number;
|
|
12
|
+
scrollTopOffset?: number;
|
|
11
13
|
target?: Target;
|
|
12
14
|
}>;
|
|
13
15
|
/**
|
|
14
16
|
* Provides scroll position information to its descendants.
|
|
15
17
|
*/
|
|
16
|
-
export declare function ScrollPositionProvider({ children, target, }: ProviderProps): import("react
|
|
18
|
+
export declare function ScrollPositionProvider({ children, scrollBottomOffset, scrollTopOffset, target, }: ProviderProps): import("react").JSX.Element;
|
|
19
|
+
export declare namespace ScrollPositionProvider {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
17
22
|
/**
|
|
18
23
|
* Hook to determine if the scroll position is at the top of the scrollable
|
|
19
24
|
* area.
|
|
@@ -6,7 +6,7 @@ export type ExtractChildrenProps = HTMLAttributes<HTMLElement>;
|
|
|
6
6
|
/**
|
|
7
7
|
* Extracts all children of a parent component into its own component.
|
|
8
8
|
*/
|
|
9
|
-
export declare function ExtractChildren({ children, ...props }: Readonly<ExtractChildrenProps>): import("react
|
|
9
|
+
export declare function ExtractChildren({ children, ...props }: Readonly<ExtractChildrenProps>): import("react").JSX.Element;
|
|
10
10
|
export declare namespace ExtractChildren {
|
|
11
11
|
var displayName: string;
|
|
12
12
|
}
|
package/build/utils/NoSSR.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import { PropsWithChildren, ReactNode } from 'react';
|
|
|
2
2
|
type Props = PropsWithChildren<{
|
|
3
3
|
fallback?: ReactNode;
|
|
4
4
|
}>;
|
|
5
|
-
export declare function NoSSR({ children, fallback, }: Props): import("react
|
|
5
|
+
export declare function NoSSR({ children, fallback, }: Props): import("react").JSX.Element | undefined;
|
|
6
6
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "etudes",
|
|
3
|
-
"version": "32.
|
|
3
|
+
"version": "32.4.0",
|
|
4
4
|
"description": "A study of headless React components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,34 +43,34 @@
|
|
|
43
43
|
"author": "Andrew Wei <andrewscwei@gmail.com>",
|
|
44
44
|
"license": "MIT",
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@commitlint/config-conventional": "^
|
|
46
|
+
"@commitlint/config-conventional": "^21.0.2",
|
|
47
47
|
"@eslint/js": "^10.0.1",
|
|
48
48
|
"@semantic-release/git": "^10.0.1",
|
|
49
49
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
50
|
-
"@tailwindcss/vite": "^4.
|
|
50
|
+
"@tailwindcss/vite": "^4.3.0",
|
|
51
51
|
"@testing-library/react": "^16.3.2",
|
|
52
52
|
"@testing-library/user-event": "^14.6.1",
|
|
53
|
-
"@types/node": "^25.
|
|
54
|
-
"@types/react": "^19.2.
|
|
53
|
+
"@types/node": "^25.9.1",
|
|
54
|
+
"@types/react": "^19.2.16",
|
|
55
55
|
"@types/react-dom": "^19.2.3",
|
|
56
|
-
"@vitejs/plugin-react": "^6.0.
|
|
57
|
-
"@vitest/coverage-v8": "^4.1.
|
|
58
|
-
"concurrently": "^
|
|
59
|
-
"eslint": "^10.
|
|
56
|
+
"@vitejs/plugin-react": "^6.0.2",
|
|
57
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
58
|
+
"concurrently": "^10.0.3",
|
|
59
|
+
"eslint": "^10.4.1",
|
|
60
60
|
"eslint-plugin-perfectionist": "^5.9.0",
|
|
61
61
|
"happy-dom": "^20.9.0",
|
|
62
|
-
"react": "^19.2.
|
|
63
|
-
"react-dom": "^19.2.
|
|
62
|
+
"react": "^19.2.7",
|
|
63
|
+
"react-dom": "^19.2.7",
|
|
64
64
|
"rimraf": "^6.1.3",
|
|
65
65
|
"semantic-release": "^25.0.3",
|
|
66
|
-
"tailwindcss": "^4.
|
|
66
|
+
"tailwindcss": "^4.3.0",
|
|
67
67
|
"typescript": "^6.0.3",
|
|
68
|
-
"typescript-eslint": "^8.
|
|
69
|
-
"vite": "^8.0.
|
|
70
|
-
"vite-plugin-dts": "^5.0.
|
|
68
|
+
"typescript-eslint": "^8.60.1",
|
|
69
|
+
"vite": "^8.0.16",
|
|
70
|
+
"vite-plugin-dts": "^5.0.2",
|
|
71
71
|
"vite-plugin-svgr": "^5.2.0",
|
|
72
|
-
"vitest": "^4.1.
|
|
73
|
-
"wait-on": "^9.0.
|
|
72
|
+
"vitest": "^4.1.8",
|
|
73
|
+
"wait-on": "^9.0.10"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"clsx": "^2.1.1",
|