@nation-a/ui 0.17.7 → 0.18.0
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/LanguageContext-BDr_uT_K.js +16 -0
- package/dist/LanguageContext-BDr_uT_K.js.map +1 -0
- package/dist/LanguageContext-DHBRAikw.cjs +2 -0
- package/dist/LanguageContext-DHBRAikw.cjs.map +1 -0
- package/dist/LanguageProvider-BDUTRS8P.cjs +2 -0
- package/dist/LanguageProvider-BDUTRS8P.cjs.map +1 -0
- package/dist/LanguageProvider-D7tQLo_5.js +22 -0
- package/dist/LanguageProvider-D7tQLo_5.js.map +1 -0
- package/dist/{ark-ui-D--_sKY0.js → ark-ui-DxYM9A6f.js} +34 -34
- package/dist/{ark-ui-D--_sKY0.js.map → ark-ui-DxYM9A6f.js.map} +1 -1
- package/dist/index-BnkuQ4Ze.cjs +2 -0
- package/dist/index-BnkuQ4Ze.cjs.map +1 -0
- package/dist/index-CW6PaxOI.cjs +2 -0
- package/dist/index-CW6PaxOI.cjs.map +1 -0
- package/dist/index-Cl2xofA6.js +521 -0
- package/dist/index-Cl2xofA6.js.map +1 -0
- package/dist/index-DEbT8Bqu.js +74 -0
- package/dist/index-DEbT8Bqu.js.map +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3243 -4114
- package/dist/index.js.map +1 -1
- package/dist/lottie.cjs +2 -0
- package/dist/lottie.cjs.map +1 -0
- package/dist/lottie.js +5 -0
- package/dist/lottie.js.map +1 -0
- package/dist/providers.cjs +2 -0
- package/dist/providers.cjs.map +1 -0
- package/dist/providers.js +9 -0
- package/dist/providers.js.map +1 -0
- package/dist/stats.html +1 -1
- package/dist/sva-C2plH_Qh.cjs +2 -0
- package/dist/sva-C2plH_Qh.cjs.map +1 -0
- package/dist/sva-q9boSrjR.js +34 -0
- package/dist/sva-q9boSrjR.js.map +1 -0
- package/dist/toast.cjs +2 -0
- package/dist/toast.cjs.map +1 -0
- package/dist/toast.js +273 -0
- package/dist/toast.js.map +1 -0
- package/dist/types/components/index.d.ts +0 -2
- package/dist/types/lottie/index.d.ts +1 -0
- package/dist/types/lottie.d.ts +2 -0
- package/dist/types/providers/index.d.ts +3 -0
- package/dist/types/providers.d.ts +2 -0
- package/dist/types/toast/index.d.ts +1 -0
- package/dist/types/toast.d.ts +2 -0
- package/package.json +26 -4
- package/dist/index-B5IKaL0m.cjs +0 -2
- package/dist/index-B5IKaL0m.cjs.map +0 -1
- package/dist/index-FC3cETza.js +0 -26
- package/dist/index-FC3cETza.js.map +0 -1
- package/dist/react-hot-toast-BCKriZQY.js +0 -404
- package/dist/react-hot-toast-BCKriZQY.js.map +0 -1
- package/dist/react-hot-toast-CvGdrsnM.cjs +0 -178
- package/dist/react-hot-toast-CvGdrsnM.cjs.map +0 -1
- package/dist/react-lottie-BoWlnUa4.js +0 -9490
- package/dist/react-lottie-BoWlnUa4.js.map +0 -1
- package/dist/react-lottie-D3xAW5ky.cjs +0 -29
- package/dist/react-lottie-D3xAW5ky.cjs.map +0 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { c as o } from "react/compiler-runtime";
|
|
2
|
+
import { createContext as u, useContext as r } from "react";
|
|
3
|
+
const c = u(void 0), l = () => {
|
|
4
|
+
var g;
|
|
5
|
+
const e = o(3), t = r(c), n = (g = t == null ? void 0 : t.language) != null ? g : "en", s = t == null ? void 0 : t.setLanguage;
|
|
6
|
+
let a;
|
|
7
|
+
return e[0] !== n || e[1] !== s ? (a = {
|
|
8
|
+
language: n,
|
|
9
|
+
setLanguage: s
|
|
10
|
+
}, e[0] = n, e[1] = s, e[2] = a) : a = e[2], a;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as L,
|
|
14
|
+
l as u
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=LanguageContext-BDr_uT_K.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageContext-BDr_uT_K.js","sources":["../src/components/LanguageProvider/LanguageContext.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\n\nexport type Language = 'en' | 'ko'\n\nexport interface LanguageContextValue {\n language: Language\n setLanguage: (language: Language) => void\n}\n\nexport const LanguageContext = createContext<LanguageContextValue | undefined>(undefined)\n\nexport const useLanguage = () => {\n const context = useContext(LanguageContext)\n return {\n language: context?.language ?? 'en',\n setLanguage: context?.setLanguage,\n }\n}\n"],"names":["LanguageContext","createContext","undefined","useLanguage","$","_c","context","useContext","t0","language","t1","setLanguage","t2"],"mappings":";;AASO,MAAMA,IAAkBC,EAAgDC,MAAS,GAE3EC,IAAcA,MAAA;;AAAA,QAAAC,IAAAC,EAAA,CAAA,GACzBC,IAAgBC,EAAWP,CAAe,GAE9BQ,KAAAF,IAAAA,KAAAA,gBAAAA,EAAOG,aAAPH,OAAAA,IAAA,MACGI,IAAAJ,KAAAA,gBAAAA,EAAOK;AAAa,MAAAC;AAAA,SAAAR,EAAA,CAAA,MAAAI,KAAAJ,SAAAM,KAF5BE,IAAA;AAAA,IAAAH,UACKD;AAAAA,IAAyBG,aACtBD;AAAAA,EAAAA,GACdN,OAAAI,GAAAJ,OAAAM,GAAAN,OAAAQ,KAAAA,IAAAR,EAAA,CAAA,GAHMQ;AAGN;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const c=require("react/compiler-runtime"),u=require("react"),o=u.createContext(void 0),r=()=>{var s;const e=c.c(3),t=u.useContext(o),a=(s=t==null?void 0:t.language)!=null?s:"en",g=t==null?void 0:t.setLanguage;let n;return e[0]!==a||e[1]!==g?(n={language:a,setLanguage:g},e[0]=a,e[1]=g,e[2]=n):n=e[2],n};exports.LanguageContext=o;exports.useLanguage=r;
|
|
2
|
+
//# sourceMappingURL=LanguageContext-DHBRAikw.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageContext-DHBRAikw.cjs","sources":["../src/components/LanguageProvider/LanguageContext.tsx"],"sourcesContent":["import { createContext, useContext } from 'react'\n\nexport type Language = 'en' | 'ko'\n\nexport interface LanguageContextValue {\n language: Language\n setLanguage: (language: Language) => void\n}\n\nexport const LanguageContext = createContext<LanguageContextValue | undefined>(undefined)\n\nexport const useLanguage = () => {\n const context = useContext(LanguageContext)\n return {\n language: context?.language ?? 'en',\n setLanguage: context?.setLanguage,\n }\n}\n"],"names":["LanguageContext","createContext","undefined","useLanguage","$","_c","context","useContext","t0","language","t1","setLanguage","t2"],"mappings":"0EASaA,EAAkBC,EAAAA,cAAgDC,MAAS,EAE3EC,EAAcA,IAAA,OAAA,MAAAC,EAAAC,EAAAA,EAAA,CAAA,EACzBC,EAAgBC,EAAAA,WAAWP,CAAe,EAE9BQ,GAAAF,EAAAA,GAAAA,YAAAA,EAAOG,WAAPH,KAAAA,EAAA,KACGI,EAAAJ,GAAAA,YAAAA,EAAOK,YAAa,IAAAC,EAAA,OAAAR,EAAA,CAAA,IAAAI,GAAAJ,OAAAM,GAF5BE,EAAA,CAAAH,SACKD,EAAyBG,YACtBD,CAAAA,EACdN,KAAAI,EAAAJ,KAAAM,EAAAN,KAAAQ,GAAAA,EAAAR,EAAA,CAAA,EAHMQ,CAGN"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const l=require("react/jsx-runtime"),L=require("react/compiler-runtime"),d=require("react"),v=require("./LanguageContext-DHBRAikw.cjs"),f=s=>{const e=L.c(5),{children:n,defaultLanguage:g,language:r}=s,o=g===void 0?"en":g,[c,i]=d.useState(r||o),u=r||c;let t;e[0]!==u?(t={language:u,setLanguage:i},e[0]=u,e[1]=t):t=e[1];let a;return e[2]!==n||e[3]!==t?(a=l.jsx(v.LanguageContext.Provider,{value:t,children:n}),e[2]=n,e[3]=t,e[4]=a):a=e[4],a};exports.LanguageProvider=f;
|
|
2
|
+
//# sourceMappingURL=LanguageProvider-BDUTRS8P.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageProvider-BDUTRS8P.cjs","sources":["../src/components/LanguageProvider/LanguageProvider.tsx"],"sourcesContent":["import { ReactNode, useState } from 'react'\nimport { LanguageContext, Language } from './LanguageContext'\n\nexport interface LanguageProviderProps {\n children: ReactNode\n defaultLanguage?: Language\n language?: Language\n}\n\nexport const LanguageProvider = ({ children, defaultLanguage = 'en', language }: LanguageProviderProps) => {\n const [languageState, setLanguageState] = useState<Language>(language || defaultLanguage)\n return (\n <LanguageContext.Provider value={{ language: language || languageState, setLanguage: setLanguageState }}>\n {children}\n </LanguageContext.Provider>\n )\n}\n"],"names":["LanguageProvider","t0","$","_c","children","defaultLanguage","t1","language","undefined","languageState","setLanguageState","useState","t2","t3","setLanguage","t4","LanguageContext"],"mappings":"qJASaA,EAAmBC,GAAA,CAAA,MAAAC,EAAAC,EAAAA,EAAA,CAAA,EAAC,CAAAC,SAAAA,EAAAC,gBAAAC,EAAAC,SAAAA,CAAAA,EAAAN,EAAYI,EAAAC,IAAAE,OAAA,KAAAF,EAC3C,CAAAG,EAAAC,CAAA,EAA0CC,EAAAA,SAAmBJ,GAAAF,CAA2B,EAEzCO,EAAAL,GAAAE,EAAyB,IAAAI,EAAAX,OAAAU,GAArCC,EAAA,CAAAN,SAAYK,EAAyBE,YAAeJ,CAAAA,EAAkBR,KAAAU,EAAAV,KAAAW,GAAAA,EAAAX,EAAA,CAAA,EAAA,IAAAa,EAAA,OAAAb,EAAA,CAAA,IAAAE,GAAAF,OAAAW,GAAvGE,QAAAC,kBAAA,SAAA,CAAiC,MAAAH,EAC9BT,SAAAA,EACH,EAA2BF,KAAAE,EAAAF,KAAAW,EAAAX,KAAAa,GAAAA,EAAAb,EAAA,CAAA,EAF3Ba,CAE2B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { c as f } from "react/compiler-runtime";
|
|
3
|
+
import { useState as m } from "react";
|
|
4
|
+
import { L } from "./LanguageContext-BDr_uT_K.js";
|
|
5
|
+
const S = (s) => {
|
|
6
|
+
const e = f(5), {
|
|
7
|
+
children: n,
|
|
8
|
+
defaultLanguage: g,
|
|
9
|
+
language: r
|
|
10
|
+
} = s, u = g === void 0 ? "en" : g, [l, i] = m(r || u), o = r || l;
|
|
11
|
+
let t;
|
|
12
|
+
e[0] !== o ? (t = {
|
|
13
|
+
language: o,
|
|
14
|
+
setLanguage: i
|
|
15
|
+
}, e[0] = o, e[1] = t) : t = e[1];
|
|
16
|
+
let a;
|
|
17
|
+
return e[2] !== n || e[3] !== t ? (a = /* @__PURE__ */ c(L.Provider, { value: t, children: n }), e[2] = n, e[3] = t, e[4] = a) : a = e[4], a;
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
S as L
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=LanguageProvider-D7tQLo_5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LanguageProvider-D7tQLo_5.js","sources":["../src/components/LanguageProvider/LanguageProvider.tsx"],"sourcesContent":["import { ReactNode, useState } from 'react'\nimport { LanguageContext, Language } from './LanguageContext'\n\nexport interface LanguageProviderProps {\n children: ReactNode\n defaultLanguage?: Language\n language?: Language\n}\n\nexport const LanguageProvider = ({ children, defaultLanguage = 'en', language }: LanguageProviderProps) => {\n const [languageState, setLanguageState] = useState<Language>(language || defaultLanguage)\n return (\n <LanguageContext.Provider value={{ language: language || languageState, setLanguage: setLanguageState }}>\n {children}\n </LanguageContext.Provider>\n )\n}\n"],"names":["LanguageProvider","t0","$","_c","children","defaultLanguage","t1","language","undefined","languageState","setLanguageState","useState","t2","t3","setLanguage","t4","LanguageContext"],"mappings":";;;;AASO,MAAMA,IAAmBC,CAAAA,MAAA;AAAA,QAAAC,IAAAC,EAAA,CAAA,GAAC;AAAA,IAAAC,UAAAA;AAAAA,IAAAC,iBAAAC;AAAAA,IAAAC,UAAAA;AAAAA,EAAAA,IAAAN,GAAYI,IAAAC,MAAAE,SAAA,OAAAF,GAC3C,CAAAG,GAAAC,CAAA,IAA0CC,EAAmBJ,KAAAF,CAA2B,GAEzCO,IAAAL,KAAAE;AAAyB,MAAAI;AAAA,EAAAX,SAAAU,KAArCC,IAAA;AAAA,IAAAN,UAAYK;AAAAA,IAAyBE,aAAeJ;AAAAA,EAAAA,GAAkBR,OAAAU,GAAAV,OAAAW,KAAAA,IAAAX,EAAA,CAAA;AAAA,MAAAa;AAAA,SAAAb,EAAA,CAAA,MAAAE,KAAAF,SAAAW,KAAvGE,sBAAAC,EAAA,UAAA,EAAiC,OAAAH,GAC9BT,UAAAA,GACH,GAA2BF,OAAAE,GAAAF,OAAAW,GAAAX,OAAAa,KAAAA,IAAAb,EAAA,CAAA,GAF3Ba;AAE2B;"}
|
|
@@ -7013,13 +7013,13 @@ const ud = (e) => {
|
|
|
7013
7013
|
});
|
|
7014
7014
|
dd.displayName = "TabsRoot";
|
|
7015
7015
|
export {
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7016
|
+
Xl as A,
|
|
7017
|
+
Yl as B,
|
|
7018
|
+
Jl as C,
|
|
7019
|
+
xl as D,
|
|
7020
7020
|
ul as E,
|
|
7021
|
-
|
|
7022
|
-
|
|
7021
|
+
El as F,
|
|
7022
|
+
Cl as G,
|
|
7023
7023
|
Zc as H,
|
|
7024
7024
|
pl as I,
|
|
7025
7025
|
vl as J,
|
|
@@ -7028,39 +7028,39 @@ export {
|
|
|
7028
7028
|
Mu as M,
|
|
7029
7029
|
Uu as N,
|
|
7030
7030
|
Fu as O,
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7031
|
+
Ed as P,
|
|
7032
|
+
$u as Q,
|
|
7033
|
+
Cd as R,
|
|
7034
|
+
mu as S,
|
|
7035
|
+
zu as T,
|
|
7036
|
+
qu as U,
|
|
7037
|
+
Du as V,
|
|
7038
7038
|
yd as W,
|
|
7039
7039
|
F as a,
|
|
7040
7040
|
Rl as b,
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7041
|
+
Sl as c,
|
|
7042
|
+
kl as d,
|
|
7043
|
+
Hl as e,
|
|
7044
|
+
Nl as f,
|
|
7045
|
+
_l as g,
|
|
7046
|
+
Pl as h,
|
|
7047
|
+
bd as i,
|
|
7048
7048
|
Zu as j,
|
|
7049
7049
|
Ju as k,
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7050
|
+
dd as l,
|
|
7051
|
+
Yu as m,
|
|
7052
|
+
Xu as n,
|
|
7053
7053
|
Iu as o,
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7054
|
+
Cu as p,
|
|
7055
|
+
Vu as q,
|
|
7056
|
+
bu as r,
|
|
7057
|
+
pu as s,
|
|
7058
|
+
Au as t,
|
|
7059
|
+
Eu as u,
|
|
7060
|
+
Id as v,
|
|
7061
7061
|
Ql as w,
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7062
|
+
Zl as x,
|
|
7063
|
+
zl as y,
|
|
7064
|
+
hu as z
|
|
7065
7065
|
};
|
|
7066
|
-
//# sourceMappingURL=ark-ui-
|
|
7066
|
+
//# sourceMappingURL=ark-ui-DxYM9A6f.js.map
|