abrplus-ui-kit 1.0.7 → 1.0.8
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/antOverrides.cjs.js +1 -127
- package/dist/antOverrides.es.js +70 -98
- package/dist/atoms.cjs.js +1 -391
- package/dist/atoms.es.js +252 -306
- package/dist/colors-BDQwGpaB.cjs +5 -0
- package/dist/{colors-CztsZ6e_.js → colors-BW-NR0oP.js} +30 -34
- package/dist/deepMerge-2zqLIrFM.cjs +1 -0
- package/dist/deepMerge-Dm_AZi0Z.js +14 -0
- package/dist/index-B1HRk2-g.cjs +1 -0
- package/dist/index-BCH1vT85.js +8 -0
- package/dist/index-BJmt8SSx.cjs +1 -0
- package/dist/index-BPqX2Hsu.js +75 -0
- package/dist/{index-B02Mlfa4.js → index-BRLLsEKX.js} +19905 -19821
- package/dist/index-BeP9-mrf.js +200 -0
- package/dist/index-Bpx-uyOR.cjs +1 -0
- package/dist/index-CpGdrWps.js +19 -0
- package/dist/index-CwKyw6uN.cjs +1 -0
- package/dist/index-CzPs2mPX.js +478 -0
- package/dist/index-QraJKad8.cjs +1 -0
- package/dist/index-R9oQ5kp6.js +1569 -0
- package/dist/index-bNh4-ggT.cjs +1 -0
- package/dist/index-lDQ4dr86.cjs +1 -0
- package/dist/index.cjs.js +1 -109
- package/dist/index.css +1 -1519
- package/dist/index.es.js +5 -5
- package/dist/index2.css +1 -3
- package/dist/molecules.cjs.js +8 -7826
- package/dist/molecules.es.js +4270 -6306
- package/dist/organisms.cjs.js +1 -940
- package/dist/organisms.es.js +651 -758
- package/dist/provider.cjs.js +1 -48
- package/dist/provider.es.js +29 -34
- package/dist/sortable.esm-BSCvBWLi.js +2943 -0
- package/dist/sortable.esm-CA8VbUF-.cjs +5 -0
- package/dist/theme.css +1 -102
- package/dist/types/components/atoms/icon/constants/iconNames.d.ts +1 -1
- package/package.json +4 -4
- package/dist/colors-TPZkyKI4.cjs +0 -2212
- package/dist/deepMerge-CG1he8ZD.js +0 -20
- package/dist/deepMerge-Cn27K7-s.cjs +0 -19
- package/dist/index-B1Z0XlNV.cjs +0 -542
- package/dist/index-CCvWoynu.cjs +0 -12
- package/dist/index-CVNEow23.js +0 -543
- package/dist/index-Cbtrrxcv.js +0 -90
- package/dist/index-CiSH4Pqy.js +0 -266
- package/dist/index-Crz4ws0L.js +0 -1630
- package/dist/index-D-q_-bu0.cjs +0 -1629
- package/dist/index-DLUd_0LP.js +0 -13
- package/dist/index-DM-zAoQS.cjs +0 -89
- package/dist/index-DPvG_H_Y.cjs +0 -27
- package/dist/index-DdzyIn4u.js +0 -28
- package/dist/index-DsPAgC23.cjs +0 -37937
- package/dist/index-PyheoujP.cjs +0 -265
- package/dist/sortable.esm-BPjdpL-J.cjs +0 -3872
- package/dist/sortable.esm-C7oRJuPU.js +0 -3873
package/dist/provider.cjs.js
CHANGED
|
@@ -1,48 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const colors = require("./colors-TPZkyKI4.cjs");
|
|
5
|
-
const EN = require("antd/locale/en_US");
|
|
6
|
-
const FA = require("antd/locale/fa_IR");
|
|
7
|
-
const deepMerge = require("./deepMerge-Cn27K7-s.cjs");
|
|
8
|
-
const antd = require("antd");
|
|
9
|
-
const useAntConfig = (language) => {
|
|
10
|
-
const isFA = language === "fa";
|
|
11
|
-
const direction = isFA ? "rtl" : "ltr";
|
|
12
|
-
const locale = isFA ? FA : EN;
|
|
13
|
-
const theme = {
|
|
14
|
-
token: {
|
|
15
|
-
fontFamily: isFA ? "YekanBakhFaRegular" : "RobotoRegular",
|
|
16
|
-
colorPrimary: colors.colors.primary,
|
|
17
|
-
colorSuccess: colors.colors.positive,
|
|
18
|
-
colorError: colors.colors.negative,
|
|
19
|
-
borderRadius: 4
|
|
20
|
-
},
|
|
21
|
-
components: {
|
|
22
|
-
Input: {
|
|
23
|
-
colorBorder: colors.colors.primary_light_3,
|
|
24
|
-
hoverBorderColor: colors.colors.primary_dark_1,
|
|
25
|
-
colorBgContainerDisabled: colors.colors.light_6
|
|
26
|
-
},
|
|
27
|
-
Collapse: {
|
|
28
|
-
headerBg: colors.colors.light_2
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return { theme, direction, locale };
|
|
33
|
-
};
|
|
34
|
-
const AbrplusUIKitProvider = ({
|
|
35
|
-
children,
|
|
36
|
-
locales,
|
|
37
|
-
appName,
|
|
38
|
-
antdConfigs = {}
|
|
39
|
-
}) => {
|
|
40
|
-
colors.AbrplusUIKit.config({
|
|
41
|
-
locales,
|
|
42
|
-
appName
|
|
43
|
-
});
|
|
44
|
-
const defaultAntDConfigs = useAntConfig(locales?.lang ?? "fa");
|
|
45
|
-
const mergedConfigs = deepMerge.deepMerge(defaultAntDConfigs, antdConfigs);
|
|
46
|
-
return /* @__PURE__ */ jsxRuntime.jsx(antd.ConfigProvider, { ...mergedConfigs, children });
|
|
47
|
-
};
|
|
48
|
-
exports.AbrplusUIKitProvider = AbrplusUIKitProvider;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),r=require("./colors-BDQwGpaB.cjs"),l=require("antd/locale/en_US"),a=require("antd/locale/fa_IR"),u=require("./deepMerge-2zqLIrFM.cjs"),g=require("antd"),d=e=>{const o=e==="fa",t=o?"rtl":"ltr",s=o?a:l;return{theme:{token:{fontFamily:o?"YekanBakhFaRegular":"RobotoRegular",colorPrimary:r.colors.primary,colorSuccess:r.colors.positive,colorError:r.colors.negative,borderRadius:4},components:{Input:{colorBorder:r.colors.primary_light_3,hoverBorderColor:r.colors.primary_dark_1,colorBgContainerDisabled:r.colors.light_6},Collapse:{headerBg:r.colors.light_2}}},direction:t,locale:s}},p=({children:e,locales:o,appName:t,antdConfigs:s={}})=>{r.AbrplusUIKit.config({locales:o,appName:t});const i=d(o?.lang??"fa"),n=u.deepMerge(i,s);return c.jsx(g.ConfigProvider,{...n,children:e})};exports.AbrplusUIKitProvider=p;
|
package/dist/provider.es.js
CHANGED
|
@@ -1,48 +1,43 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { d as
|
|
6
|
-
import { ConfigProvider } from "antd";
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
const locale = isFA ? FA : EN;
|
|
11
|
-
const theme = {
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { c as o, A as l } from "./colors-BW-NR0oP.js";
|
|
3
|
+
import m from "antd/locale/en_US";
|
|
4
|
+
import c from "antd/locale/fa_IR";
|
|
5
|
+
import { d as p } from "./deepMerge-Dm_AZi0Z.js";
|
|
6
|
+
import { ConfigProvider as g } from "antd";
|
|
7
|
+
const f = (t) => {
|
|
8
|
+
const r = t === "fa", e = r ? "rtl" : "ltr", i = r ? c : m;
|
|
9
|
+
return { theme: {
|
|
12
10
|
token: {
|
|
13
|
-
fontFamily:
|
|
14
|
-
colorPrimary:
|
|
15
|
-
colorSuccess:
|
|
16
|
-
colorError:
|
|
11
|
+
fontFamily: r ? "YekanBakhFaRegular" : "RobotoRegular",
|
|
12
|
+
colorPrimary: o.primary,
|
|
13
|
+
colorSuccess: o.positive,
|
|
14
|
+
colorError: o.negative,
|
|
17
15
|
borderRadius: 4
|
|
18
16
|
},
|
|
19
17
|
components: {
|
|
20
18
|
Input: {
|
|
21
|
-
colorBorder:
|
|
22
|
-
hoverBorderColor:
|
|
23
|
-
colorBgContainerDisabled:
|
|
19
|
+
colorBorder: o.primary_light_3,
|
|
20
|
+
hoverBorderColor: o.primary_dark_1,
|
|
21
|
+
colorBgContainerDisabled: o.light_6
|
|
24
22
|
},
|
|
25
23
|
Collapse: {
|
|
26
|
-
headerBg:
|
|
24
|
+
headerBg: o.light_2
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
appName,
|
|
36
|
-
antdConfigs = {}
|
|
27
|
+
}, direction: e, locale: i };
|
|
28
|
+
}, b = ({
|
|
29
|
+
children: t,
|
|
30
|
+
locales: r,
|
|
31
|
+
appName: e,
|
|
32
|
+
antdConfigs: i = {}
|
|
37
33
|
}) => {
|
|
38
|
-
|
|
39
|
-
locales,
|
|
40
|
-
appName
|
|
34
|
+
l.config({
|
|
35
|
+
locales: r,
|
|
36
|
+
appName: e
|
|
41
37
|
});
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
return /* @__PURE__ */ jsx(ConfigProvider, { ...mergedConfigs, children });
|
|
38
|
+
const n = f(r?.lang ?? "fa"), s = p(n, i);
|
|
39
|
+
return /* @__PURE__ */ a(g, { ...s, children: t });
|
|
45
40
|
};
|
|
46
41
|
export {
|
|
47
|
-
AbrplusUIKitProvider
|
|
42
|
+
b as AbrplusUIKitProvider
|
|
48
43
|
};
|