@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
@@ -169,7 +169,7 @@ export const PropTypes: {
169
169
  return new Validator(
170
170
  (value, propName, componentName) =>
171
171
  validators.some(v => v.validate(value, propName, componentName)),
172
- (value, propName, componentName) =>
172
+ (_value, propName, componentName) =>
173
173
  `Invalid prop \`${propName}\` supplied to \`${componentName}\`, expected one of the specified types.`,
174
174
  )
175
175
  },
@@ -186,7 +186,7 @@ export const PropTypes: {
186
186
  return false
187
187
  return value.every((item, index) => validator.validate(item, `${propName}[${index}]`, componentName))
188
188
  },
189
- (value, propName, componentName) =>
189
+ (_value, propName, componentName) =>
190
190
  `Invalid prop \`${propName}\` supplied to \`${componentName}\`, expected array of specified type.`,
191
191
  )
192
192
  },
@@ -213,7 +213,7 @@ export const PropTypes: {
213
213
 
214
214
  return true
215
215
  },
216
- (value, propName, componentName) =>
216
+ (_value, propName, componentName) =>
217
217
  `Invalid prop \`${propName}\` supplied to \`${componentName}\`, expected object matching specified shape.`,
218
218
  )
219
219
  },
@@ -226,7 +226,7 @@ export const PropTypes: {
226
226
  instanceOf<T>(expectedClass: new (...args: any[]) => T): Validator<T> {
227
227
  return new Validator(
228
228
  value => value instanceof expectedClass,
229
- (value, propName, componentName) =>
229
+ (_value, propName, componentName) =>
230
230
  `Invalid prop \`${propName}\` supplied to \`${componentName}\`, expected instance of \`${expectedClass.name}\`.`,
231
231
  )
232
232
  },
@@ -239,7 +239,7 @@ export const PropTypes: {
239
239
  */
240
240
  custom(
241
241
  validatorFn: (value: any, propName: string, componentName: string) => boolean,
242
- errorMessage: string | ((value: any, propName: string, componentName: string) => string),
242
+ errorMessage: string | ((_value: any, _propName: string, _componentName: string) => string),
243
243
  ): Validator {
244
244
  const messageGenerator = typeof errorMessage === 'string'
245
245
  ? () => errorMessage