abrplus-ui-kit 1.0.7 → 1.0.9

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