frosty 0.0.157 → 0.0.158

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 (43) hide show
  1. package/dist/_native.d.mts +3 -3
  2. package/dist/_native.d.ts +3 -3
  3. package/dist/dom.d.mts +3 -3
  4. package/dist/dom.d.ts +3 -3
  5. package/dist/i18n.d.mts +3 -3
  6. package/dist/i18n.d.mts.map +1 -1
  7. package/dist/i18n.d.ts +3 -3
  8. package/dist/i18n.d.ts.map +1 -1
  9. package/dist/i18n.js.map +1 -1
  10. package/dist/i18n.mjs.map +1 -1
  11. package/dist/index.d.mts +4 -4
  12. package/dist/index.d.ts +4 -4
  13. package/dist/internals/{common-uQrs1G5-.d.mts → common-BMp06ZN_.d.mts} +2 -2
  14. package/dist/internals/{common-uQrs1G5-.d.mts.map → common-BMp06ZN_.d.mts.map} +1 -1
  15. package/dist/internals/{common-uQrs1G5-.d.ts → common-BMp06ZN_.d.ts} +2 -2
  16. package/dist/internals/{common-uQrs1G5-.d.ts.map → common-BMp06ZN_.d.ts.map} +1 -1
  17. package/dist/internals/{fragment-HkiF2xeJ.d.ts → fragment-C8nMwgq0.d.ts} +2 -2
  18. package/dist/internals/{fragment-HkiF2xeJ.d.ts.map → fragment-C8nMwgq0.d.ts.map} +1 -1
  19. package/dist/internals/{fragment-DuyNMgL3.d.mts → fragment-Dhp_GJso.d.mts} +2 -2
  20. package/dist/internals/{fragment-DuyNMgL3.d.mts.map → fragment-Dhp_GJso.d.mts.map} +1 -1
  21. package/dist/internals/{index-CdMvWgIS.d.ts → index-CUCYNdr9.d.ts} +3 -3
  22. package/dist/internals/{index-CdMvWgIS.d.ts.map → index-CUCYNdr9.d.ts.map} +1 -1
  23. package/dist/internals/{index-D_01nFU0.d.mts → index-CgIOFVc1.d.mts} +3 -3
  24. package/dist/internals/{index-D_01nFU0.d.mts.map → index-CgIOFVc1.d.mts.map} +1 -1
  25. package/dist/internals/{renderer-Qq2yni7e.d.mts → renderer-5Al4VWW1.d.mts} +3 -3
  26. package/dist/internals/{renderer-Qq2yni7e.d.mts.map → renderer-5Al4VWW1.d.mts.map} +1 -1
  27. package/dist/internals/{renderer-DWRFEffh.d.ts → renderer-BFv842Qz.d.ts} +3 -3
  28. package/dist/internals/{renderer-DWRFEffh.d.ts.map → renderer-BFv842Qz.d.ts.map} +1 -1
  29. package/dist/internals/{utils-DeZcxzm0.d.ts → utils-BGg0L3IY.d.ts} +2 -2
  30. package/dist/internals/{utils-DeZcxzm0.d.ts.map → utils-BGg0L3IY.d.ts.map} +1 -1
  31. package/dist/internals/{utils-LlN8w8CJ.d.mts → utils-qS8tRYZD.d.mts} +2 -2
  32. package/dist/internals/{utils-LlN8w8CJ.d.mts.map → utils-qS8tRYZD.d.mts.map} +1 -1
  33. package/dist/jsx-dev-runtime.d.mts +2 -2
  34. package/dist/jsx-dev-runtime.d.ts +2 -2
  35. package/dist/jsx-runtime.d.mts +2 -2
  36. package/dist/jsx-runtime.d.ts +2 -2
  37. package/dist/server-dom.d.mts +3 -3
  38. package/dist/server-dom.d.ts +3 -3
  39. package/dist/web.d.mts +3 -3
  40. package/dist/web.d.ts +3 -3
  41. package/package.json +1 -1
  42. package/packages/frosty-cli/package.json +1 -1
  43. package/packages/frosty-cli/yarn.lock +168 -17
@@ -1,6 +1,6 @@
1
- import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-uQrs1G5-.mjs';
2
- export { V as VNode, _ as _Renderer } from './internals/index-D_01nFU0.mjs';
3
- export { u as uniqueId } from './internals/utils-LlN8w8CJ.mjs';
1
+ import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-BMp06ZN_.mjs';
2
+ export { V as VNode, _ as _Renderer } from './internals/index-CgIOFVc1.mjs';
3
+ export { u as uniqueId } from './internals/utils-qS8tRYZD.mjs';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
package/dist/_native.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-uQrs1G5-.js';
2
- export { V as VNode, _ as _Renderer } from './internals/index-CdMvWgIS.js';
3
- export { u as uniqueId } from './internals/utils-DeZcxzm0.js';
1
+ import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-BMp06ZN_.js';
2
+ export { V as VNode, _ as _Renderer } from './internals/index-CUCYNdr9.js';
3
+ export { u as uniqueId } from './internals/utils-BGg0L3IY.js';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
package/dist/dom.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as _DOMRenderer } from './internals/renderer-Qq2yni7e.mjs';
2
- import './internals/index-D_01nFU0.mjs';
3
- import './internals/common-uQrs1G5-.mjs';
1
+ import { _ as _DOMRenderer } from './internals/renderer-5Al4VWW1.mjs';
2
+ import './internals/index-CgIOFVc1.mjs';
3
+ import './internals/common-BMp06ZN_.mjs';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
package/dist/dom.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { _ as _DOMRenderer } from './internals/renderer-DWRFEffh.js';
2
- import './internals/index-CdMvWgIS.js';
3
- import './internals/common-uQrs1G5-.js';
1
+ import { _ as _DOMRenderer } from './internals/renderer-BFv842Qz.js';
2
+ import './internals/index-CUCYNdr9.js';
3
+ import './internals/common-BMp06ZN_.js';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
package/dist/i18n.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import { Opts } from '@formatjs/intl-localematcher';
3
3
 
4
- type I18nStateOPts = Partial<Opts> & {
4
+ type I18nStateOpts = Partial<Opts> & {
5
5
  locales: string[];
6
6
  availableLocales: string[];
7
7
  preferredLocale?: string;
@@ -19,7 +19,7 @@ type I18nStateOPts = Partial<Opts> & {
19
19
  *
20
20
  * @returns The matched locale string based on the provided options.
21
21
  */
22
- declare const useI18nState: (opts: I18nStateOPts) => string;
22
+ declare const useI18nState: (opts: I18nStateOpts) => string;
23
23
  /**
24
24
  * A hook that provides a localization function based on the current i18n state.
25
25
  *
@@ -32,7 +32,7 @@ declare const useI18nState: (opts: I18nStateOPts) => string;
32
32
  *
33
33
  * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.
34
34
  */
35
- declare const useLocalize: (opts: I18nStateOPts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
35
+ declare const useLocalize: (opts: I18nStateOpts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
36
36
 
37
37
  export { useI18nState, useLocalize };
38
38
  //# sourceMappingURL=i18n.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.mts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOPts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOPts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOPts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
1
+ {"version":3,"file":"i18n.d.mts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
package/dist/i18n.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import _ from 'lodash';
2
2
  import { Opts } from '@formatjs/intl-localematcher';
3
3
 
4
- type I18nStateOPts = Partial<Opts> & {
4
+ type I18nStateOpts = Partial<Opts> & {
5
5
  locales: string[];
6
6
  availableLocales: string[];
7
7
  preferredLocale?: string;
@@ -19,7 +19,7 @@ type I18nStateOPts = Partial<Opts> & {
19
19
  *
20
20
  * @returns The matched locale string based on the provided options.
21
21
  */
22
- declare const useI18nState: (opts: I18nStateOPts) => string;
22
+ declare const useI18nState: (opts: I18nStateOpts) => string;
23
23
  /**
24
24
  * A hook that provides a localization function based on the current i18n state.
25
25
  *
@@ -32,7 +32,7 @@ declare const useI18nState: (opts: I18nStateOPts) => string;
32
32
  *
33
33
  * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.
34
34
  */
35
- declare const useLocalize: (opts: I18nStateOPts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
35
+ declare const useLocalize: (opts: I18nStateOpts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
36
36
 
37
37
  export { useI18nState, useLocalize };
38
38
  //# sourceMappingURL=i18n.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOPts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOPts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOPts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
1
+ {"version":3,"file":"i18n.d.ts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
package/dist/i18n.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOPts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOPts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOPts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":["useMemo","_","match","useCallback"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAKA,gBAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAIC,kBAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAOC,uBAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAOC,oBAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAGF,kBAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;;"}
1
+ {"version":3,"file":"i18n.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":["useMemo","_","match","useCallback"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAKA,gBAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAIC,kBAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAOC,uBAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAOC,oBAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAGF,kBAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;;"}
package/dist/i18n.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOPts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOPts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOPts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAK,OAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAI,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAO,WAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;"}
1
+ {"version":3,"file":"i18n.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAK,OAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAI,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAO,WAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;"}
package/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
- import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-uQrs1G5-.mjs';
2
- export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-uQrs1G5-.mjs';
3
- export { F as Fragment } from './internals/fragment-DuyNMgL3.mjs';
1
+ import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-BMp06ZN_.mjs';
2
+ export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-BMp06ZN_.mjs';
3
+ export { F as Fragment } from './internals/fragment-Dhp_GJso.mjs';
4
4
  import { Awaitable } from '@o2ter/utils-js';
5
5
  import _ from 'lodash';
6
- export { m as mergeRefs } from './internals/utils-LlN8w8CJ.mjs';
6
+ export { m as mergeRefs } from './internals/utils-qS8tRYZD.mjs';
7
7
  import 'csstype';
8
8
 
9
9
  type Context<Value> = ReturnType<typeof _createContext<Value>>;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-uQrs1G5-.js';
2
- export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-uQrs1G5-.js';
3
- export { F as Fragment } from './internals/fragment-HkiF2xeJ.js';
1
+ import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-BMp06ZN_.js';
2
+ export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-BMp06ZN_.js';
3
+ export { F as Fragment } from './internals/fragment-C8nMwgq0.js';
4
4
  import { Awaitable } from '@o2ter/utils-js';
5
5
  import _ from 'lodash';
6
- export { m as mergeRefs } from './internals/utils-DeZcxzm0.js';
6
+ export { m as mergeRefs } from './internals/utils-BGg0L3IY.js';
7
7
  import 'csstype';
8
8
 
9
9
  type Context<Value> = ReturnType<typeof _createContext<Value>>;
@@ -2274,7 +2274,7 @@ declare abstract class NativeElementType {
2274
2274
  }
2275
2275
  declare class ComponentNode {
2276
2276
  #private;
2277
- get type(): typeof NativeElementType | _ElementType;
2277
+ get type(): _ElementType | typeof NativeElementType;
2278
2278
  get props(): PropsType;
2279
2279
  get key(): string | number | bigint | null | undefined;
2280
2280
  equalType(other: ComponentNode): boolean;
@@ -2304,4 +2304,4 @@ type ComponentRef<T> = ComponentProps<T> extends RefAttribute<infer R> ? R : nev
2304
2304
 
2305
2305
  export { NativeElementType as N, ComponentNode as a, createElement as m };
2306
2306
  export type { ComponentType as C, ElementNode as E, PropsWithChildren as P, RefObject as R, SetStateAction as S, _ElementType as _, Ref as b, PropsType as c, CSSProperties as d, ClassName as e, ComponentProps as f, ComponentPropsWithoutRef as g, ComponentRef as h, ExtendedCSSProperties as i, RefAttribute as j, RefCallback as k, StyleProp as l, _IntrinsicElements as n, _IntrinsicAttributes as o };
2307
- //# sourceMappingURL=common-uQrs1G5-.d.mts.map
2307
+ //# sourceMappingURL=common-BMp06ZN_.d.mts.map