@zeturn/watercolor-react 1.2.3 → 1.2.4
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/LocaleReact.d.ts +52 -0
- package/dist/LocaleReact.d.ts.map +1 -0
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Banner/Banner.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/CircularProgress/CircularProgress.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/Feed/Feed.d.ts.map +1 -1
- package/dist/components/ImageGallery/ImageGallery.d.ts.map +1 -1
- package/dist/components/Input/VerificationCodeInput.d.ts.map +1 -1
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Popover/Popover.d.ts.map +1 -1
- package/dist/components/Progress/Progress.d.ts.map +1 -1
- package/dist/components/Rating/Rating.d.ts +2 -1
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/components/SlideOver/SlideOver.d.ts.map +1 -1
- package/dist/components/Snackbar/Snackbar.d.ts.map +1 -1
- package/dist/components/Status/Status.d.ts.map +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/VideoPlayer/VideoPlayer.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/watercolor-react.css +1 -1
- package/dist/watercolor-react.es.js +894 -833
- package/index.d.ts +52 -0
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -262,6 +262,55 @@ export interface ThemeProviderProps {
|
|
|
262
262
|
onThemeError?: (result: Extract<ThemeApplyResult | ThemeLoadResult, { ok: false }>) => void
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
+
export interface WatercolorLocaleMessages {
|
|
266
|
+
breadcrumb: string
|
|
267
|
+
closePopover: string
|
|
268
|
+
close: string
|
|
269
|
+
closeDialog: string
|
|
270
|
+
closeLightbox: string
|
|
271
|
+
downloadImage: (index: number) => string
|
|
272
|
+
colorPicker: string
|
|
273
|
+
circularProgress: string
|
|
274
|
+
enterFullscreen: string
|
|
275
|
+
loading: string
|
|
276
|
+
muteVideo: string
|
|
277
|
+
nextImage: string
|
|
278
|
+
nextMonth: string
|
|
279
|
+
nextPage: string
|
|
280
|
+
openCalendar: string
|
|
281
|
+
openImageInLightbox: (index: number) => string
|
|
282
|
+
page: (page: number) => string
|
|
283
|
+
pagination: string
|
|
284
|
+
pauseVideo: string
|
|
285
|
+
playVideo: string
|
|
286
|
+
previousMonth: string
|
|
287
|
+
previousPage: string
|
|
288
|
+
previousImage: string
|
|
289
|
+
progress: string
|
|
290
|
+
rating: string
|
|
291
|
+
ratingValue: (value: number, max: number) => string
|
|
292
|
+
remove: string
|
|
293
|
+
removeItem: (label?: string) => string
|
|
294
|
+
rowsPerPage: string
|
|
295
|
+
switchControl: string
|
|
296
|
+
tabList: string
|
|
297
|
+
unmuteVideo: string
|
|
298
|
+
jumpToPage: string
|
|
299
|
+
verificationCodeDigit: (index: number) => string
|
|
300
|
+
viewImage: (index: number, description?: string) => string
|
|
301
|
+
volume: string
|
|
302
|
+
videoProgress: string
|
|
303
|
+
}
|
|
304
|
+
export interface LocaleContextValue {
|
|
305
|
+
locale?: string
|
|
306
|
+
messages: WatercolorLocaleMessages
|
|
307
|
+
}
|
|
308
|
+
export interface LocaleProviderProps {
|
|
309
|
+
children?: ReactNode
|
|
310
|
+
locale?: string
|
|
311
|
+
messages?: Partial<WatercolorLocaleMessages>
|
|
312
|
+
}
|
|
313
|
+
|
|
265
314
|
export type PageProps<T extends ElementType = 'div'> = PolymorphicProps<T, CompositionBaseProps & {
|
|
266
315
|
size?: PageSize
|
|
267
316
|
gutter?: PageGutter
|
|
@@ -373,6 +422,9 @@ export const TypingText: WatercolorComponent
|
|
|
373
422
|
export const VerificationCodeInput: WatercolorComponent
|
|
374
423
|
export const VideoPlayer: WatercolorComponent
|
|
375
424
|
export const Watermark: WatercolorComponent
|
|
425
|
+
export const LocaleProvider: ComponentType<LocaleProviderProps>
|
|
426
|
+
export const defaultLocaleMessages: WatercolorLocaleMessages
|
|
427
|
+
export function useLocale(): LocaleContextValue
|
|
376
428
|
|
|
377
429
|
export {
|
|
378
430
|
THEME_CONFIG_VERSION,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeturn/watercolor-react",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/watercolor-react.es.js",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"directory": "packages/react"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@zeturn/watercolor-icons-feather": "1.2.
|
|
45
|
-
"@zeturn/watercolor-icons-heroicons-react": "1.2.
|
|
46
|
-
"@zeturn/watercolor-icons-lucide-react": "1.2.
|
|
47
|
-
"@zeturn/watercolor-icons-phosphor-react": "1.2.
|
|
48
|
-
"@zeturn/watercolor-icons-tabler-react": "1.2.
|
|
44
|
+
"@zeturn/watercolor-icons-feather": "1.2.4",
|
|
45
|
+
"@zeturn/watercolor-icons-heroicons-react": "1.2.4",
|
|
46
|
+
"@zeturn/watercolor-icons-lucide-react": "1.2.4",
|
|
47
|
+
"@zeturn/watercolor-icons-phosphor-react": "1.2.4",
|
|
48
|
+
"@zeturn/watercolor-icons-tabler-react": "1.2.4",
|
|
49
49
|
"react": "^18.0.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
51
51
|
},
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@zeturn/watercolor-core": "1.2.
|
|
70
|
+
"@zeturn/watercolor-core": "1.2.4",
|
|
71
71
|
"prop-types": "^15.8.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|