lazer-slider 1.1.5 → 1.1.7
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/README.md +132 -153
- package/dist/index.cjs +2 -1195
- package/dist/index.d.cts +1 -33
- package/dist/index.d.ts +1 -33
- package/dist/index.js +2 -1159
- package/dist/lazer-slider.css +282 -243
- package/package.json +2 -3
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -18,20 +18,15 @@ type MarqueeDirection = 'left' | 'right';
|
|
|
18
18
|
* Parameters passed to scroll start callback
|
|
19
19
|
*/
|
|
20
20
|
interface ScrollStartParams {
|
|
21
|
-
/** Current scroll position in pixels */
|
|
22
21
|
currentScroll: number;
|
|
23
|
-
/** Target slide element being scrolled to */
|
|
24
22
|
target: HTMLElement;
|
|
25
|
-
/** Direction of the scroll */
|
|
26
23
|
direction: SliderNavDirection;
|
|
27
24
|
}
|
|
28
25
|
/**
|
|
29
26
|
* Parameters passed to scroll and scroll end callbacks
|
|
30
27
|
*/
|
|
31
28
|
interface ScrollParams {
|
|
32
|
-
/** Current scroll position in pixels */
|
|
33
29
|
currentScroll: number;
|
|
34
|
-
/** Index of the current/active slide */
|
|
35
30
|
currentSlideIndex: number;
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
@@ -169,31 +164,4 @@ interface GenerateThumbsParams {
|
|
|
169
164
|
}
|
|
170
165
|
declare const generateThumbs: ({ thumbsContainer, slides, thumbClass, thumbActiveClass, feedId, thumbImageSelector, thumbSize }: GenerateThumbsParams) => HTMLElement[];
|
|
171
166
|
|
|
172
|
-
|
|
173
|
-
* Injects critical CSS styles into the document head.
|
|
174
|
-
* Safe to call multiple times - will only inject once.
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* import { injectStyles } from 'lazer-slider'
|
|
179
|
-
*
|
|
180
|
-
* // Manually inject styles (useful for SSR or early loading)
|
|
181
|
-
* injectStyles()
|
|
182
|
-
* ```
|
|
183
|
-
*/
|
|
184
|
-
declare const injectStyles: () => void;
|
|
185
|
-
/**
|
|
186
|
-
* Removes the injected styles from the document.
|
|
187
|
-
* Useful for cleanup in testing or when completely removing the slider.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```typescript
|
|
191
|
-
* import { removeStyles } from 'lazer-slider'
|
|
192
|
-
*
|
|
193
|
-
* // Remove injected styles
|
|
194
|
-
* removeStyles()
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
declare const removeStyles: () => void;
|
|
198
|
-
|
|
199
|
-
export { type DragState, type EasingFunction, type MarqueeDirection, type ScrollParams, type ScrollStartParams, type Slider, type SliderDirection, type SliderNavDirection, type SliderSettings, type SliderState, createSlider, easeInOutCubic, easeOutCubic, easeOutExpo, easeOutQuad, generateBullets, generateThumbs, injectStyles, linear, removeStyles };
|
|
167
|
+
export { type DragState, type EasingFunction, type MarqueeDirection, type ScrollParams, type ScrollStartParams, type Slider, type SliderDirection, type SliderNavDirection, type SliderSettings, type SliderState, createSlider, easeInOutCubic, easeOutCubic, easeOutExpo, easeOutQuad, generateBullets, generateThumbs, linear };
|
package/dist/index.d.ts
CHANGED
|
@@ -18,20 +18,15 @@ type MarqueeDirection = 'left' | 'right';
|
|
|
18
18
|
* Parameters passed to scroll start callback
|
|
19
19
|
*/
|
|
20
20
|
interface ScrollStartParams {
|
|
21
|
-
/** Current scroll position in pixels */
|
|
22
21
|
currentScroll: number;
|
|
23
|
-
/** Target slide element being scrolled to */
|
|
24
22
|
target: HTMLElement;
|
|
25
|
-
/** Direction of the scroll */
|
|
26
23
|
direction: SliderNavDirection;
|
|
27
24
|
}
|
|
28
25
|
/**
|
|
29
26
|
* Parameters passed to scroll and scroll end callbacks
|
|
30
27
|
*/
|
|
31
28
|
interface ScrollParams {
|
|
32
|
-
/** Current scroll position in pixels */
|
|
33
29
|
currentScroll: number;
|
|
34
|
-
/** Index of the current/active slide */
|
|
35
30
|
currentSlideIndex: number;
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
@@ -169,31 +164,4 @@ interface GenerateThumbsParams {
|
|
|
169
164
|
}
|
|
170
165
|
declare const generateThumbs: ({ thumbsContainer, slides, thumbClass, thumbActiveClass, feedId, thumbImageSelector, thumbSize }: GenerateThumbsParams) => HTMLElement[];
|
|
171
166
|
|
|
172
|
-
|
|
173
|
-
* Injects critical CSS styles into the document head.
|
|
174
|
-
* Safe to call multiple times - will only inject once.
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* import { injectStyles } from 'lazer-slider'
|
|
179
|
-
*
|
|
180
|
-
* // Manually inject styles (useful for SSR or early loading)
|
|
181
|
-
* injectStyles()
|
|
182
|
-
* ```
|
|
183
|
-
*/
|
|
184
|
-
declare const injectStyles: () => void;
|
|
185
|
-
/**
|
|
186
|
-
* Removes the injected styles from the document.
|
|
187
|
-
* Useful for cleanup in testing or when completely removing the slider.
|
|
188
|
-
*
|
|
189
|
-
* @example
|
|
190
|
-
* ```typescript
|
|
191
|
-
* import { removeStyles } from 'lazer-slider'
|
|
192
|
-
*
|
|
193
|
-
* // Remove injected styles
|
|
194
|
-
* removeStyles()
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
declare const removeStyles: () => void;
|
|
198
|
-
|
|
199
|
-
export { type DragState, type EasingFunction, type MarqueeDirection, type ScrollParams, type ScrollStartParams, type Slider, type SliderDirection, type SliderNavDirection, type SliderSettings, type SliderState, createSlider, easeInOutCubic, easeOutCubic, easeOutExpo, easeOutQuad, generateBullets, generateThumbs, injectStyles, linear, removeStyles };
|
|
167
|
+
export { type DragState, type EasingFunction, type MarqueeDirection, type ScrollParams, type ScrollStartParams, type Slider, type SliderDirection, type SliderNavDirection, type SliderSettings, type SliderState, createSlider, easeInOutCubic, easeOutCubic, easeOutExpo, easeOutQuad, generateBullets, generateThumbs, linear };
|