@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.
- package/dist/components/index.d.ts +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/useCopyCode.d.ts +1 -1
- package/dist/composables/useDarkMode.d.ts +1 -1
- package/dist/composables/useSEO.d.ts +2 -2
- package/dist/composables/utilities/index.d.ts +2 -1
- package/dist/composables/utilities/useClickOutside.d.ts +1 -1
- package/dist/composables/utilities/useFocusTrap.d.ts +1 -1
- package/dist/composables/utilities/useKeyboard.d.ts +1 -1
- package/dist/composables/utilities/useLocalStorage.d.ts +2 -2
- package/dist/composables/utilities/useMediaQuery.d.ts +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/ui/accordion/index.d.ts +1 -1
- package/dist/ui/audio/index.d.ts +1 -1
- package/dist/ui/auth/index.d.ts +1 -1
- package/dist/ui/avatar/index.d.ts +1 -1
- package/dist/ui/badge/index.d.ts +1 -1
- package/dist/ui/breadcrumb/index.d.ts +1 -1
- package/dist/ui/button/index.d.ts +3 -3
- package/dist/ui/calendar/index.d.ts +1 -1
- package/dist/ui/card/index.d.ts +1 -1
- package/dist/ui/checkbox/index.d.ts +1 -1
- package/dist/ui/combobox/index.d.ts +1 -1
- package/dist/ui/command-palette/index.d.ts +1 -1
- package/dist/ui/dialog/index.d.ts +1 -1
- package/dist/ui/drawer/index.d.ts +1 -1
- package/dist/ui/dropdown/index.d.ts +1 -1
- package/dist/ui/form/index.d.ts +4 -4
- package/dist/ui/image/index.d.ts +1 -1
- package/dist/ui/input/index.d.ts +7 -7
- package/dist/ui/listbox/index.d.ts +1 -1
- package/dist/ui/navigator/index.d.ts +1 -1
- package/dist/ui/notification/index.d.ts +1 -1
- package/dist/ui/pagination/index.d.ts +1 -1
- package/dist/ui/payment/index.d.ts +1 -1
- package/dist/ui/popover/index.d.ts +1 -1
- package/dist/ui/portal/index.d.ts +1 -1
- package/dist/ui/progress/index.d.ts +1 -1
- package/dist/ui/radio/index.d.ts +1 -1
- package/dist/ui/radio-group/index.d.ts +1 -1
- package/dist/ui/select/index.d.ts +1 -1
- package/dist/ui/sidebar/index.d.ts +2 -2
- package/dist/ui/skeleton/index.d.ts +1 -1
- package/dist/ui/spinner/index.d.ts +1 -1
- package/dist/ui/stepper/index.d.ts +1 -1
- package/dist/ui/storage/index.d.ts +3 -14
- package/dist/ui/switch/index.d.ts +1 -1
- package/dist/ui/table/index.d.ts +1 -1
- package/dist/ui/tabs/index.d.ts +1 -1
- package/dist/ui/teleport/index.d.ts +1 -1
- package/dist/ui/textarea/index.d.ts +1 -1
- package/dist/ui/tooltip/index.d.ts +1 -1
- package/dist/ui/transition/index.d.ts +1 -1
- package/dist/ui/video/index.d.ts +1 -1
- package/dist/ui/virtual-list/index.d.ts +1 -1
- package/dist/ui/virtual-table/index.d.ts +1 -1
- package/dist/utils/accessibility.d.ts +30 -15
- package/dist/utils/animation/easing.d.ts +1 -76
- package/dist/utils/animation/helpers.d.ts +2 -9
- package/dist/utils/animation/index.d.ts +2 -1
- package/dist/utils/animation/keyframes.d.ts +2 -1
- package/dist/utils/error-handling.d.ts +22 -26
- package/dist/utils/highlighter.d.ts +2 -1
- package/dist/utils/i18n.d.ts +3 -30
- package/dist/utils/keep-alive.d.ts +1 -1
- package/dist/utils/lazy-loading.d.ts +2 -2
- package/dist/utils/prop-validation.d.ts +8 -27
- package/dist/utils/theme.d.ts +1 -1
- package/package.json +5 -5
- package/src/composables/utilities/useLocalStorage.ts +4 -4
- package/src/ui/storage/index.ts +1 -1
- package/src/utils/accessibility.ts +1 -1
- package/src/utils/animation/easing.ts +1 -1
- package/src/utils/animation/helpers.ts +1 -1
- package/src/utils/animation/keyframes.ts +1 -1
- package/src/utils/error-handling.ts +1 -1
- package/src/utils/i18n.ts +1 -1
- package/src/utils/lazy-loading.ts +1 -1
- 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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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 | ((
|
|
242
|
+
errorMessage: string | ((_value: any, _propName: string, _componentName: string) => string),
|
|
243
243
|
): Validator {
|
|
244
244
|
const messageGenerator = typeof errorMessage === 'string'
|
|
245
245
|
? () => errorMessage
|