@myelmut/design-system 0.1.22 → 0.1.24
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/assets/illustrations/leaf.webp +0 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +195 -178
- package/dist/index.es.js.map +1 -1
- package/dist/types/index.d.ts +4 -2
- package/package.json +1 -1
- package/styles/globals.css +9 -0
- /package/assets/images/{dog-snaks-packaging.webp → dog-snacks-packaging.webp} +0 -0
package/dist/types/index.d.ts
CHANGED
|
@@ -706,6 +706,8 @@ export declare function useClickOutside<T extends HTMLElement>(ref: React.RefObj
|
|
|
706
706
|
*/
|
|
707
707
|
export declare function useIntersectionObserver({ ref, onAppear, onDisappear, threshold }: UseSingleObserverOptions): void;
|
|
708
708
|
|
|
709
|
+
export declare function useIsDesktop(): boolean;
|
|
710
|
+
|
|
709
711
|
export declare function useIsMobile(): boolean;
|
|
710
712
|
|
|
711
713
|
/**
|
|
@@ -719,10 +721,10 @@ export declare function useIsMobile(): boolean;
|
|
|
719
721
|
* @param threshold - Intersection ratio at which the callback is triggered (e.g., `0.1`).
|
|
720
722
|
* @param rootMargin - Margin around the root bounding box (e.g., `'0px'`, `'10px 0px'`).
|
|
721
723
|
*/
|
|
722
|
-
export declare function useMultiIntersectionObserver({
|
|
724
|
+
export declare function useMultiIntersectionObserver({ targets, callback, root, threshold, rootMargin }: UseMultiObserverOptions): void;
|
|
723
725
|
|
|
724
726
|
declare type UseMultiObserverOptions = {
|
|
725
|
-
|
|
727
|
+
targets: Element[];
|
|
726
728
|
callback: (entry: IntersectionObserverEntry, element: HTMLElement) => void;
|
|
727
729
|
root?: Element | null;
|
|
728
730
|
threshold?: number;
|
package/package.json
CHANGED
package/styles/globals.css
CHANGED
|
@@ -163,6 +163,15 @@
|
|
|
163
163
|
transform: translateX(-50%);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
+
|
|
167
|
+
.scrollbar-hide {
|
|
168
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
169
|
+
scrollbar-width: none; /* Firefox */
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.scrollbar-hide::-webkit-scrollbar {
|
|
173
|
+
display: none; /* Chrome, Safari, Opera */
|
|
174
|
+
}
|
|
166
175
|
}
|
|
167
176
|
|
|
168
177
|
@utility container {
|
|
File without changes
|