Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@melt-ui/svelte

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@melt-ui/svelte - npm Package Compare versions

Comparing version 0.7.1 to 0.8.0

dist/builders/pagination/index.d.ts

2

dist/builders/accordion/index.d.ts

@@ -12,3 +12,3 @@ type BaseAccordionArgs = {

};
type CreateAccordionArgs = BaseAccordionArgs & (SingleAccordionArgs | MultipleAccordionArgs);
export type CreateAccordionArgs = BaseAccordionArgs & (SingleAccordionArgs | MultipleAccordionArgs);
export declare const createAccordion: (args?: CreateAccordionArgs) => {

@@ -15,0 +15,0 @@ root: {

type CheckedState = boolean | 'indeterminate';
type CreateCheckboxArgs = {
export type CreateCheckboxArgs = {
checked?: CheckedState;

@@ -4,0 +4,0 @@ disabled?: boolean;

@@ -1,2 +0,2 @@

type CreateCollapsibleArgs = {
export type CreateCollapsibleArgs = {
open?: boolean;

@@ -25,2 +25,1 @@ onChange?: (open: boolean) => void;

};
export {};

@@ -1,2 +0,2 @@

type CreateDialogArgs = {
export type CreateDialogArgs = {
preventScroll?: boolean;

@@ -53,2 +53,1 @@ closeOnEscape?: boolean;

};
export {};

@@ -100,4 +100,5 @@ import { createFocusTrap, usePortal } from '../../internal/actions';

}));
}
if ($options.preventScroll && $open)
unsubs.push(removeScroll());
}
return () => {

@@ -104,0 +105,0 @@ unsubs.forEach((unsub) => unsub());

@@ -1,2 +0,2 @@

type CreateProgressArgs = {
export type CreateProgressArgs = {
value?: number;

@@ -31,2 +31,1 @@ max?: number;

};
export {};
type Orientation = 'horizontal' | 'vertical';
type CreateRadioGroupArgs = {
export type CreateRadioGroupArgs = {
disabled?: boolean;

@@ -4,0 +4,0 @@ loop?: boolean;

@@ -12,3 +12,3 @@ import type { FloatingConfig } from '../../internal/actions';

**/
type CreateSelectArgs = {
export type CreateSelectArgs = {
positioning?: FloatingConfig;

@@ -63,2 +63,1 @@ arrowSize?: number;

};
export {};

@@ -1,2 +0,2 @@

type CreateSwitchArgs = {
export type CreateSwitchArgs = {
/** The controlled checked state of the switch. */

@@ -45,2 +45,1 @@ checked?: boolean;

};
export {};

@@ -1,2 +0,2 @@

type CreateTabsArgs = {
export type CreateTabsArgs = {
value?: string;

@@ -42,2 +42,1 @@ onChange?: (value: string) => void;

};
export {};

@@ -10,3 +10,3 @@ type Orientation = 'horizontal' | 'vertical';

};
type CreateToggleGroupArgs = (SingleToggleGroupRootArgs | MultipleToggleGroupRootProps) & {
export type CreateToggleGroupArgs = (SingleToggleGroupRootArgs | MultipleToggleGroupRootProps) & {
disabled?: boolean;

@@ -13,0 +13,0 @@ rovingFocus?: boolean;

@@ -1,6 +0,6 @@

type ToggleArgs = {
export type CreateToggleArgs = {
disabled?: boolean;
pressed?: boolean;
};
export declare function createToggle(args?: ToggleArgs): {
export declare function createToggle(args?: CreateToggleArgs): {
toggle: import("svelte/store").Readable<{

@@ -16,2 +16,1 @@ readonly 'data-disabled': "" | undefined;

};
export {};

@@ -1,1 +0,1 @@

export declare function removeScroll(_document?: Document): (() => void) | undefined;
export declare function removeScroll(_document?: Document): () => void;
// Modified from @zag-js/remove-scroll v0.10.2 (2023-06-10)
// Source: https://github.com/chakra-ui/zag
// https://github.com/chakra-ui/zag/blob/main/packages/utilities/remove-scroll/src/index.ts
import { noop } from './callbacks';
import { isIos } from './platform';

@@ -41,3 +42,3 @@ const LOCK_CLASSNAME = 'data-melt-scroll-lock';

if (locked)
return;
return noop;
body.setAttribute(LOCK_CLASSNAME, '');

@@ -44,0 +45,0 @@ const scrollbarWidth = win.innerWidth - documentElement.clientWidth;

@@ -8,1 +8,12 @@ export type IfEquals<T, U, Y = unknown, N = never> = (<G>() => G extends T ? 1 : 2) extends <G>() => G extends U ? 1 : 2 ? Y : N;

export type Arrayable<T> = T | T[];
export type CreatePaginationArgs = {
count: number;
perPage?: number;
};
type NullableKeys<T> = {
[K in keyof T]: undefined extends T[K] ? K : never;
}[keyof T];
export type Defaults<T> = {
[K in NullableKeys<T>]?: T[K];
};
export {};
{
"name": "@melt-ui/svelte",
"version": "0.7.1",
"version": "0.8.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "exports": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc