@stacksjs/components 0.2.4 → 0.2.6

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.
Files changed (79) hide show
  1. package/dist/components/index.d.ts +1 -1
  2. package/dist/composables/index.d.ts +1 -1
  3. package/dist/composables/useCopyCode.d.ts +1 -1
  4. package/dist/composables/useDarkMode.d.ts +1 -1
  5. package/dist/composables/useSEO.d.ts +2 -2
  6. package/dist/composables/utilities/index.d.ts +2 -1
  7. package/dist/composables/utilities/useClickOutside.d.ts +1 -1
  8. package/dist/composables/utilities/useFocusTrap.d.ts +1 -1
  9. package/dist/composables/utilities/useKeyboard.d.ts +1 -1
  10. package/dist/composables/utilities/useLocalStorage.d.ts +2 -2
  11. package/dist/composables/utilities/useMediaQuery.d.ts +1 -1
  12. package/dist/index.d.ts +6 -1
  13. package/dist/ui/accordion/index.d.ts +1 -1
  14. package/dist/ui/audio/index.d.ts +1 -1
  15. package/dist/ui/auth/index.d.ts +1 -1
  16. package/dist/ui/avatar/index.d.ts +1 -1
  17. package/dist/ui/badge/index.d.ts +1 -1
  18. package/dist/ui/breadcrumb/index.d.ts +1 -1
  19. package/dist/ui/button/index.d.ts +3 -3
  20. package/dist/ui/calendar/index.d.ts +1 -1
  21. package/dist/ui/card/index.d.ts +1 -1
  22. package/dist/ui/checkbox/index.d.ts +1 -1
  23. package/dist/ui/combobox/index.d.ts +1 -1
  24. package/dist/ui/command-palette/index.d.ts +1 -1
  25. package/dist/ui/dialog/index.d.ts +1 -1
  26. package/dist/ui/drawer/index.d.ts +1 -1
  27. package/dist/ui/dropdown/index.d.ts +1 -1
  28. package/dist/ui/form/index.d.ts +4 -4
  29. package/dist/ui/image/index.d.ts +1 -1
  30. package/dist/ui/input/index.d.ts +7 -7
  31. package/dist/ui/listbox/index.d.ts +1 -1
  32. package/dist/ui/navigator/index.d.ts +1 -1
  33. package/dist/ui/notification/index.d.ts +1 -1
  34. package/dist/ui/pagination/index.d.ts +1 -1
  35. package/dist/ui/payment/index.d.ts +1 -1
  36. package/dist/ui/popover/index.d.ts +1 -1
  37. package/dist/ui/portal/index.d.ts +1 -1
  38. package/dist/ui/progress/index.d.ts +1 -1
  39. package/dist/ui/radio/index.d.ts +1 -1
  40. package/dist/ui/radio-group/index.d.ts +1 -1
  41. package/dist/ui/select/index.d.ts +1 -1
  42. package/dist/ui/sidebar/index.d.ts +2 -2
  43. package/dist/ui/skeleton/index.d.ts +1 -1
  44. package/dist/ui/spinner/index.d.ts +1 -1
  45. package/dist/ui/stepper/index.d.ts +1 -1
  46. package/dist/ui/storage/index.d.ts +3 -14
  47. package/dist/ui/switch/index.d.ts +1 -1
  48. package/dist/ui/table/index.d.ts +1 -1
  49. package/dist/ui/tabs/index.d.ts +1 -1
  50. package/dist/ui/teleport/index.d.ts +1 -1
  51. package/dist/ui/textarea/index.d.ts +1 -1
  52. package/dist/ui/tooltip/index.d.ts +1 -1
  53. package/dist/ui/transition/index.d.ts +1 -1
  54. package/dist/ui/video/index.d.ts +1 -1
  55. package/dist/ui/virtual-list/index.d.ts +1 -1
  56. package/dist/ui/virtual-table/index.d.ts +1 -1
  57. package/dist/utils/accessibility.d.ts +30 -15
  58. package/dist/utils/animation/easing.d.ts +1 -76
  59. package/dist/utils/animation/helpers.d.ts +2 -9
  60. package/dist/utils/animation/index.d.ts +2 -1
  61. package/dist/utils/animation/keyframes.d.ts +2 -1
  62. package/dist/utils/error-handling.d.ts +22 -26
  63. package/dist/utils/highlighter.d.ts +2 -1
  64. package/dist/utils/i18n.d.ts +3 -30
  65. package/dist/utils/keep-alive.d.ts +1 -1
  66. package/dist/utils/lazy-loading.d.ts +2 -2
  67. package/dist/utils/prop-validation.d.ts +8 -27
  68. package/dist/utils/theme.d.ts +1 -1
  69. package/package.json +5 -5
  70. package/src/composables/utilities/useLocalStorage.ts +4 -4
  71. package/src/ui/storage/index.ts +1 -1
  72. package/src/utils/accessibility.ts +1 -1
  73. package/src/utils/animation/easing.ts +1 -1
  74. package/src/utils/animation/helpers.ts +1 -1
  75. package/src/utils/animation/keyframes.ts +1 -1
  76. package/src/utils/error-handling.ts +1 -1
  77. package/src/utils/i18n.ts +1 -1
  78. package/src/utils/lazy-loading.ts +1 -1
  79. package/src/utils/prop-validation.ts +5 -5
@@ -1,4 +1,4 @@
1
1
  export { default as CodeBlock } from './CodeBlock.stx';
2
2
  export { default as Footer } from './Footer.stx';
3
3
  export { default as Hero } from './Hero.stx';
4
- export { default as Installation } from './Installation.stx';
4
+ export { default as Installation } from './Installation.stx';
@@ -1,4 +1,4 @@
1
1
  export * from './useCopyCode';
2
2
  export * from './useDarkMode';
3
3
  export * from './useSEO';
4
- export * from './utilities';
4
+ export * from './utilities';
@@ -16,4 +16,4 @@ export declare interface CopyCodeResult {
16
16
  copied: boolean
17
17
  copy: () => Promise<void>
18
18
  reset: () => void
19
- }
19
+ }
@@ -22,4 +22,4 @@ export declare interface DarkModeResult {
22
22
  theme: 'light' | 'dark' | 'system'
23
23
  toggle: () => void
24
24
  setTheme: (theme: 'light' | 'dark' | 'system') => void
25
- }
25
+ }
@@ -5,7 +5,7 @@ export declare function setTitle(title: string, template?: string): void;
5
5
  /**
6
6
  * Set meta tag
7
7
  */
8
- export declare function setMeta(name: string, content: string, isProperty?: any): void;
8
+ export declare function setMeta(name: string, content: string, isProperty?: boolean): void;
9
9
  /**
10
10
  * Set link tag
11
11
  */
@@ -33,4 +33,4 @@ export declare interface SEOMetaOptions {
33
33
  twitterSite?: string
34
34
  twitterCreator?: string
35
35
  canonical?: string
36
- }
36
+ }
@@ -1,5 +1,6 @@
1
+ // Composable utilities exports
1
2
  export * from './useClickOutside';
2
3
  export * from './useFocusTrap';
3
4
  export * from './useKeyboard';
4
5
  export * from './useLocalStorage';
5
- export * from './useMediaQuery';
6
+ export * from './useMediaQuery';
@@ -25,4 +25,4 @@ export declare function useClickOutside(elementRef: HTMLElement | null, callback
25
25
  export declare interface UseClickOutsideOptions {
26
26
  enabled?: boolean
27
27
  ignore?: string[]
28
- }
28
+ }
@@ -31,4 +31,4 @@ export declare interface UseFocusTrapOptions {
31
31
  initialFocus?: HTMLElement | null
32
32
  returnFocus?: boolean
33
33
  fallbackFocus?: HTMLElement | null
34
- }
34
+ }
@@ -52,4 +52,4 @@ export declare interface KeyboardHandler {
52
52
  shift?: boolean
53
53
  alt?: boolean
54
54
  meta?: boolean
55
- }
55
+ }
@@ -8,7 +8,7 @@
8
8
  */
9
9
  export declare function useLocalStorage<T>(key: string, initialValue: T, options?: UseLocalStorageOptions<T>): {
10
10
  value: T
11
- setValue: (newValue: T | ((prev: T) => T)) => void
11
+ setValue: (newValue: T | ((_prev: T) => T)) => void
12
12
  removeValue: () => void
13
13
  };
14
14
  /**
@@ -30,4 +30,4 @@ export declare interface UseLocalStorageOptions<T> {
30
30
  serializer?: (value: T) => string
31
31
  deserializer?: (value: string) => T
32
32
  onError?: (error: Error) => void
33
- }
33
+ }
@@ -61,4 +61,4 @@ export declare const Breakpoints: {
61
61
  */
62
62
  export declare interface UseMediaQueryOptions {
63
63
  defaultValue?: boolean
64
- }
64
+ }
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  // Types
2
2
  export declare interface ComponentProps {
3
3
  className?: string
4
+ [key: string]: any
4
5
  }
5
6
  export declare interface CodeBlockProps extends ComponentProps {
6
7
  code: string
@@ -26,11 +27,14 @@ export declare interface FooterProps extends ComponentProps {
26
27
  export declare interface InstallationProps extends ComponentProps {
27
28
  packageName?: string
28
29
  }
30
+ // Export shared components (these will be imported as .stx files)
29
31
  export { default as CodeBlock } from './components/CodeBlock.stx';
30
32
  export { default as Footer } from './components/Footer.stx';
31
33
  export { default as Hero } from './components/Hero.stx';
32
34
  export { default as Installation } from './components/Installation.stx';
35
+ // Export composables
33
36
  export * from './composables';
37
+ // Export UI components
34
38
  export * from './ui/accordion';
35
39
  export * from './ui/audio';
36
40
  export * from './ui/auth';
@@ -78,9 +82,10 @@ export * from './ui/virtual-table';
78
82
  export * from './utils/accessibility';
79
83
  export * from './utils/animation';
80
84
  export * from './utils/error-handling';
85
+ // Export utilities
81
86
  export * from './utils/highlighter';
82
87
  export * from './utils/i18n';
83
88
  export * from './utils/keep-alive';
84
89
  export * from './utils/lazy-loading';
85
90
  export * from './utils/prop-validation';
86
- export * from './utils/theme';
91
+ export * from './utils/theme';
@@ -9,4 +9,4 @@ export declare interface AccordionProps {
9
9
  onChange?: (openItems: number[]) => void
10
10
  className?: string
11
11
  }
12
- export { default as Accordion } from './Accordion.stx';
12
+ export { default as Accordion } from './Accordion.stx';
@@ -9,4 +9,4 @@ export declare interface AudioProps {
9
9
  showWaveform?: boolean
10
10
  title?: string
11
11
  }
12
- export { default as Audio } from './Audio.stx';
12
+ export { default as Audio } from './Audio.stx';
@@ -26,4 +26,4 @@ export declare interface TwoFactorChallengeProps {
26
26
  }
27
27
  export { default as Login } from './Login.stx';
28
28
  export { default as Signup } from './Signup.stx';
29
- export { default as TwoFactorChallenge } from './TwoFactorChallenge.stx';
29
+ export { default as TwoFactorChallenge } from './TwoFactorChallenge.stx';
@@ -8,4 +8,4 @@ export declare interface AvatarProps {
8
8
  onError?: (event: Event) => void
9
9
  className?: string
10
10
  }
11
- export { default as Avatar } from './Avatar.stx';
11
+ export { default as Avatar } from './Avatar.stx';
@@ -6,4 +6,4 @@ export declare interface BadgeProps {
6
6
  onRemove?: () => void
7
7
  className?: string
8
8
  }
9
- export { default as Badge } from './Badge.stx';
9
+ export { default as Badge } from './Badge.stx';
@@ -10,4 +10,4 @@ export declare interface BreadcrumbProps {
10
10
  maxItems?: number
11
11
  className?: string
12
12
  }
13
- export { default as Breadcrumb } from './Breadcrumb.stx';
13
+ export { default as Breadcrumb } from './Breadcrumb.stx';
@@ -1,4 +1,4 @@
1
- import type { PropSchema, ValidationResult } from '../../utils/prop-validation';
1
+ import type { PropSchema } from '../../utils/prop-validation';
2
2
  /**
3
3
  * Create a safe onClick handler that catches and reports errors
4
4
  *
@@ -29,7 +29,7 @@ export declare const buttonPropSchema: PropSchema;
29
29
  * Validate Button component props
30
30
  * Only runs in development mode
31
31
  */
32
- export declare const validateButtonProps: (props: Record<string, any>) => ValidationResult;
32
+ export declare const validateButtonProps: (props: Record<string, any>);
33
33
  export declare interface ButtonProps {
34
34
  variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'danger'
35
35
  size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'
@@ -42,4 +42,4 @@ export declare interface ButtonProps {
42
42
  className?: string
43
43
  onClick?: (event: Event) => void
44
44
  }
45
- export { default as Button } from './Button.stx';
45
+ export { default as Button } from './Button.stx';
@@ -10,4 +10,4 @@ export declare interface CalendarProps {
10
10
  highlightToday?: boolean
11
11
  className?: string
12
12
  }
13
- export { default as Calendar } from './Calendar.stx';
13
+ export { default as Calendar } from './Calendar.stx';
@@ -9,4 +9,4 @@ export declare interface CardProps {
9
9
  onClick?: (event: Event) => void
10
10
  className?: string
11
11
  }
12
- export { default as Card } from './Card.stx';
12
+ export { default as Card } from './Card.stx';
@@ -12,4 +12,4 @@ export declare interface CheckboxProps {
12
12
  name?: string
13
13
  className?: string
14
14
  }
15
- export { default as Checkbox } from './Checkbox.stx';
15
+ export { default as Checkbox } from './Checkbox.stx';
@@ -32,4 +32,4 @@ export { default as Combobox } from './Combobox.stx';
32
32
  export { default as ComboboxButton } from './ComboboxButton.stx';
33
33
  export { default as ComboboxInput } from './ComboboxInput.stx';
34
34
  export { default as ComboboxOption } from './ComboboxOption.stx';
35
- export { default as ComboboxOptions } from './ComboboxOptions.stx';
35
+ export { default as ComboboxOptions } from './ComboboxOptions.stx';
@@ -10,4 +10,4 @@ export declare interface CommandPaletteItemProps {
10
10
  onClick?: () => void
11
11
  }
12
12
  export { default as CommandPalette } from './CommandPalette.stx';
13
- export { default as CommandPaletteItem } from './CommandPaletteItem.stx';
13
+ export { default as CommandPaletteItem } from './CommandPaletteItem.stx';
@@ -24,4 +24,4 @@ export { default as Dialog } from './Dialog.stx';
24
24
  export { default as DialogBackdrop } from './DialogBackdrop.stx';
25
25
  export { default as DialogDescription } from './DialogDescription.stx';
26
26
  export { default as DialogPanel } from './DialogPanel.stx';
27
- export { default as DialogTitle } from './DialogTitle.stx';
27
+ export { default as DialogTitle } from './DialogTitle.stx';
@@ -5,4 +5,4 @@ export declare interface DrawerProps {
5
5
  title?: string
6
6
  className?: string
7
7
  }
8
- export { default as Drawer } from './Drawer.stx';
8
+ export { default as Drawer } from './Drawer.stx';
@@ -22,4 +22,4 @@ export declare interface DropdownItemProps {
22
22
  export { default as Dropdown } from './Dropdown.stx';
23
23
  export { default as DropdownButton } from './DropdownButton.stx';
24
24
  export { default as DropdownItem } from './DropdownItem.stx';
25
- export { default as DropdownItems } from './DropdownItems.stx';
25
+ export { default as DropdownItems } from './DropdownItems.stx';
@@ -1,4 +1,4 @@
1
- import type { PropSchema, ValidationResult } from '../../utils/prop-validation';
1
+ import type { PropSchema } from '../../utils/prop-validation';
2
2
  /**
3
3
  * Form prop validation schema
4
4
  */
@@ -6,7 +6,7 @@ export declare const formPropSchema: PropSchema;
6
6
  /**
7
7
  * Validate Form component props
8
8
  */
9
- export declare const validateFormProps: (props: Record<string, any>) => ValidationResult;
9
+ export declare const validateFormProps: (props: Record<string, any>);
10
10
  export declare interface FieldSchema {
11
11
  required?: boolean
12
12
  requiredMessage?: string
@@ -19,7 +19,7 @@ export declare interface FieldSchema {
19
19
  validate?: (value: any, values: Record<string, any>) => string | null | undefined
20
20
  }
21
21
  export declare interface ValidationSchema {
22
-
22
+ [fieldName: string]: FieldSchema
23
23
  }
24
24
  export declare interface FormHelpers {
25
25
  setErrors: (errors: Record<string, string>) => void
@@ -45,4 +45,4 @@ export declare interface FieldProps {
45
45
  onChange: (event: Event) => void
46
46
  onBlur: (event: Event) => void
47
47
  }
48
- export { default as Form } from './Form.stx';
48
+ export { default as Form } from './Form.stx';
@@ -18,4 +18,4 @@ export declare interface ImageProps {
18
18
  zoomOnHover?: boolean
19
19
  className?: string
20
20
  }
21
- export { default as Image } from './Image.stx';
21
+ export { default as Image } from './Image.stx';
@@ -1,4 +1,4 @@
1
- import type { PropSchema, ValidationResult } from '../../utils/prop-validation';
1
+ import type { PropSchema } from '../../utils/prop-validation';
2
2
  /**
3
3
  * TextInput prop validation schema
4
4
  */
@@ -10,23 +10,23 @@ export declare const numberInputPropSchema: PropSchema;
10
10
  /**
11
11
  * Validate TextInput component props
12
12
  */
13
- export declare const validateTextInputProps: (props: Record<string, any>) => ValidationResult;
13
+ export declare const validateTextInputProps: (props: Record<string, any>);
14
14
  /**
15
15
  * Validate EmailInput component props
16
16
  */
17
- export declare const validateEmailInputProps: (props: Record<string, any>) => ValidationResult;
17
+ export declare const validateEmailInputProps: (props: Record<string, any>);
18
18
  /**
19
19
  * Validate PasswordInput component props
20
20
  */
21
- export declare const validatePasswordInputProps: (props: Record<string, any>) => ValidationResult;
21
+ export declare const validatePasswordInputProps: (props: Record<string, any>);
22
22
  /**
23
23
  * Validate NumberInput component props
24
24
  */
25
- export declare const validateNumberInputProps: (props: Record<string, any>) => ValidationResult;
25
+ export declare const validateNumberInputProps: (props: Record<string, any>);
26
26
  /**
27
27
  * Validate SearchInput component props
28
28
  */
29
- export declare const validateSearchInputProps: (props: Record<string, any>) => ValidationResult;
29
+ export declare const validateSearchInputProps: (props: Record<string, any>);
30
30
  export declare interface BaseInputProps {
31
31
  value?: string
32
32
  onChange?: (value: string) => void
@@ -70,4 +70,4 @@ export { default as EmailInput } from './EmailInput.stx';
70
70
  export { default as NumberInput } from './NumberInput.stx';
71
71
  export { default as PasswordInput } from './PasswordInput.stx';
72
72
  export { default as SearchInput } from './SearchInput.stx';
73
- export { default as TextInput } from './TextInput.stx';
73
+ export { default as TextInput } from './TextInput.stx';
@@ -31,4 +31,4 @@ export { default as Listbox } from './Listbox.stx';
31
31
  export { default as ListboxButton } from './ListboxButton.stx';
32
32
  export { default as ListboxLabel } from './ListboxLabel.stx';
33
33
  export { default as ListboxOption } from './ListboxOption.stx';
34
- export { default as ListboxOptions } from './ListboxOptions.stx';
34
+ export { default as ListboxOptions } from './ListboxOptions.stx';
@@ -15,4 +15,4 @@ export declare interface NavigatorProps {
15
15
  onNavigate?: (item: NavigatorItem) => void
16
16
  className?: string
17
17
  }
18
- export { default as Navigator } from './Navigator.stx';
18
+ export { default as Navigator } from './Navigator.stx';
@@ -8,4 +8,4 @@ export declare interface NotificationProps {
8
8
  onClose?: () => void
9
9
  className?: string
10
10
  }
11
- export { default as Notification } from './Notification.stx';
11
+ export { default as Notification } from './Notification.stx';
@@ -7,4 +7,4 @@ export declare interface PaginationProps {
7
7
  onChange?: (page: number) => void
8
8
  className?: string
9
9
  }
10
- export { default as Pagination } from './Pagination.stx';
10
+ export { default as Pagination } from './Pagination.stx';
@@ -50,4 +50,4 @@ export declare interface CheckoutProps {
50
50
  export { default as Checkout } from './Checkout.stx';
51
51
  export { default as DefaultPaymentMethod } from './DefaultPaymentMethod.stx';
52
52
  export { default as PaymentMethods } from './PaymentMethods.stx';
53
- export { default as SubscriptionCheckout } from './SubscriptionCheckout.stx';
53
+ export { default as SubscriptionCheckout } from './SubscriptionCheckout.stx';
@@ -16,4 +16,4 @@ export declare interface PopoverPanelProps {
16
16
  }
17
17
  export { default as Popover } from './Popover.stx';
18
18
  export { default as PopoverButton } from './PopoverButton.stx';
19
- export { default as PopoverPanel } from './PopoverPanel.stx';
19
+ export { default as PopoverPanel } from './PopoverPanel.stx';
@@ -2,4 +2,4 @@ export declare interface PortalProps {
2
2
  target?: string | HTMLElement
3
3
  disabled?: boolean
4
4
  }
5
- export { default as Portal } from './Portal.stx';
5
+ export { default as Portal } from './Portal.stx';
@@ -8,4 +8,4 @@ export declare interface ProgressProps {
8
8
  indeterminate?: boolean
9
9
  className?: string
10
10
  }
11
- export { default as Progress } from './Progress.stx';
11
+ export { default as Progress } from './Progress.stx';
@@ -11,4 +11,4 @@ export declare interface RadioProps {
11
11
  name?: string
12
12
  className?: string
13
13
  }
14
- export { default as Radio } from './Radio.stx';
14
+ export { default as Radio } from './Radio.stx';
@@ -23,4 +23,4 @@ export declare interface RadioGroupDescriptionProps {
23
23
  export { default as RadioGroup } from './RadioGroup.stx';
24
24
  export { default as RadioGroupDescription } from './RadioGroupDescription.stx';
25
25
  export { default as RadioGroupLabel } from './RadioGroupLabel.stx';
26
- export { default as RadioGroupOption } from './RadioGroupOption.stx';
26
+ export { default as RadioGroupOption } from './RadioGroupOption.stx';
@@ -16,4 +16,4 @@ export declare interface SelectProps {
16
16
  required?: boolean
17
17
  className?: string
18
18
  }
19
- export { default as Select } from './Select.stx';
19
+ export { default as Select } from './Select.stx';
@@ -87,7 +87,7 @@ export declare interface NativeSidebarConfig {
87
87
  header?: {
88
88
  title?: string
89
89
  subtitle?: string
90
- icon?: string // SF Symbol name (e.g., 'house.fill', 'message.fill')
90
+ icon?: string
91
91
  }
92
92
  searchPlaceholder?: string
93
93
  sections: NativeSidebarSection[]
@@ -126,4 +126,4 @@ export { default as Sidebar } from './Sidebar.stx';
126
126
  export { default as SidebarSection } from './SidebarSection.stx';
127
127
  export { default as SidebarItem } from './SidebarItem.stx';
128
128
  export { default as SidebarHeader } from './SidebarHeader.stx';
129
- export { default as SidebarFooter } from './SidebarFooter.stx';
129
+ export { default as SidebarFooter } from './SidebarFooter.stx';
@@ -7,4 +7,4 @@ export declare interface SkeletonProps {
7
7
  animate?: boolean
8
8
  className?: string
9
9
  }
10
- export { default as Skeleton } from './Skeleton.stx';
10
+ export { default as Skeleton } from './Skeleton.stx';
@@ -5,4 +5,4 @@ export declare interface SpinnerProps {
5
5
  label?: string
6
6
  className?: string
7
7
  }
8
- export { default as Spinner } from './Spinner.stx';
8
+ export { default as Spinner } from './Spinner.stx';
@@ -14,4 +14,4 @@ export declare interface StepperStepProps {
14
14
  onClick?: (step: number) => void
15
15
  }
16
16
  export { default as Stepper } from './Stepper.stx';
17
- export { default as StepperStep } from './StepperStep.stx';
17
+ export { default as StepperStep } from './StepperStep.stx';
@@ -11,23 +11,12 @@ export declare interface StorageOptions {
11
11
  encrypt?: boolean
12
12
  compress?: boolean
13
13
  }
14
- declare type StorageWatchCallback = (newValue: any, oldValue: any, key: string) => void
14
+ declare type StorageWatchCallback = (_newValue: any, _oldValue: any, _key: string) => void;
15
15
  export declare class StorageManager {
16
- private storage: globalThis.Storage;
17
- private namespace: string;
18
- private watchers: Map<string, Set<StorageWatchCallback>>;
19
- private encryptionKey: any;
20
- constructor(type?: 'local' | 'session', namespace?: any);
21
- private handleStorageEvent(event: StorageEvent): void;
22
- private encrypt(data: string): string;
23
- private decrypt(data: string): string;
24
- private compress(data: string): string;
25
- private decompress(data: string): string;
26
- private getKey(key: string): string;
16
+ constructor(type?: 'local' | 'session', namespace?: string);
27
17
  set(key: string, value: any, options?: StorageOptions): void;
28
18
  get<T = any>(key: string): T | null;
29
19
  watch(key: string, callback: StorageWatchCallback): () => void;
30
- private notifyWatchers(key: string, newValue: any, oldValue: any): void;
31
20
  remove(key: string): void;
32
21
  clear(): void;
33
22
  has(key: string): boolean;
@@ -37,4 +26,4 @@ export declare class StorageManager {
37
26
  setMany(items: Record<string, any>, options?: StorageOptions): void;
38
27
  getMany<T = any>(keys: string[]): Record<string, T | null>;
39
28
  removeMany(keys: string[]): void;
40
- }
29
+ }
@@ -6,4 +6,4 @@ export declare interface SwitchProps {
6
6
  onChange?: (checked: boolean) => void
7
7
  label?: string
8
8
  }
9
- export { default as Switch } from './Switch.stx';
9
+ export { default as Switch } from './Switch.stx';
@@ -26,4 +26,4 @@ export { default as TableBody } from './TableBody.stx';
26
26
  export { default as TableCell } from './TableCell.stx';
27
27
  export { default as TableHead } from './TableHead.stx';
28
28
  export { default as TableHeader } from './TableHeader.stx';
29
- export { default as TableRow } from './TableRow.stx';
29
+ export { default as TableRow } from './TableRow.stx';
@@ -11,4 +11,4 @@ export declare interface TabsProps {
11
11
  onChange?: (index: number, tab: Tab) => void
12
12
  className?: string
13
13
  }
14
- export { default as Tabs } from './Tabs.stx';
14
+ export { default as Tabs } from './Tabs.stx';
@@ -3,4 +3,4 @@ export declare interface TeleportProps {
3
3
  disabled?: boolean
4
4
  defer?: boolean
5
5
  }
6
- export { default as Teleport } from './Teleport.stx';
6
+ export { default as Teleport } from './Teleport.stx';
@@ -16,4 +16,4 @@ export declare interface TextareaProps {
16
16
  resize?: 'none' | 'vertical' | 'horizontal' | 'both'
17
17
  className?: string
18
18
  }
19
- export { default as Textarea } from './Textarea.stx';
19
+ export { default as Textarea } from './Textarea.stx';
@@ -6,4 +6,4 @@ export declare interface TooltipProps {
6
6
  disabled?: boolean
7
7
  className?: string
8
8
  }
9
- export { default as Tooltip } from './Tooltip.stx';
9
+ export { default as Tooltip } from './Tooltip.stx';
@@ -21,4 +21,4 @@ export declare interface TransitionProps {
21
21
  onAfterLeave?: () => void
22
22
  className?: string
23
23
  }
24
- export { default as Transition } from './Transition.stx';
24
+ export { default as Transition } from './Transition.stx';
@@ -12,4 +12,4 @@ export declare interface VideoProps {
12
12
  className?: string
13
13
  title?: string
14
14
  }
15
- export { default as Video } from './Video.stx';
15
+ export { default as Video } from './Video.stx';
@@ -6,4 +6,4 @@ export declare interface VirtualListProps<T = any> {
6
6
  renderItem?: (item: T, index: number) => string
7
7
  className?: string
8
8
  }
9
- export { default as VirtualList } from './VirtualList.stx';
9
+ export { default as VirtualList } from './VirtualList.stx';
@@ -16,4 +16,4 @@ export declare interface VirtualTableProps<T = any> {
16
16
  hoverable?: boolean
17
17
  className?: string
18
18
  }
19
- export { default as VirtualTable } from './VirtualTable.stx';
19
+ export { default as VirtualTable } from './VirtualTable.stx';