beca-ui 2.1.2 → 3.0.0-beta.1

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 (31) hide show
  1. package/dist/beca-ui.js +98545 -87106
  2. package/dist/components/Button/Button.d.ts +2 -1
  3. package/dist/components/Carousel/Carousel.d.ts +6 -1
  4. package/dist/components/ConfigProvider/ConfigProvider.types.d.ts +1 -1
  5. package/dist/components/Dropdown/Dropdown.d.ts +4 -1
  6. package/dist/components/Dropdown/Dropdown.types.d.ts +3 -1
  7. package/dist/components/Dropdown/index.d.ts +2 -2
  8. package/dist/components/Empty/Empty.d.ts +8 -1
  9. package/dist/components/Empty/Empty.types.d.ts +3 -0
  10. package/dist/components/Empty/EmptyIllustrationDark.d.ts +8 -0
  11. package/dist/components/Empty/index.d.ts +1 -0
  12. package/dist/components/Form/Form.d.ts +1 -1
  13. package/dist/components/Icons/Icons.d.ts +118 -3
  14. package/dist/components/Image/Image.types.d.ts +2 -2
  15. package/dist/components/MainLayout/Header/Header.types.d.ts +24 -0
  16. package/dist/components/MainLayout/SideBarMenu/SideBarMenu.types.d.ts +1 -0
  17. package/dist/components/Pagination/Pagination.d.ts +1 -1
  18. package/dist/components/Progress/Progress.d.ts +6 -1
  19. package/dist/components/Select/Select.types.d.ts +5 -7
  20. package/dist/components/Space/Space.d.ts +9 -1
  21. package/dist/components/Steps/Steps.d.ts +5 -1
  22. package/dist/components/Steps/Steps.types.d.ts +1 -2
  23. package/dist/components/Table/Table.d.ts +13 -1
  24. package/dist/components/TextEditor/extensions/table.d.ts +1 -1
  25. package/dist/components/Timeline/Timeline.d.ts +3 -1
  26. package/dist/components/Timeline/Timeline.types.d.ts +2 -4
  27. package/dist/components/Upload/Upload.d.ts +3 -3
  28. package/dist/components/index.d.ts +1 -0
  29. package/dist/main.css +1 -1
  30. package/dist/theme/styles.d.ts +26 -11
  31. package/package.json +46 -35
@@ -2,7 +2,6 @@ import type { ThemeConfig } from "antd";
2
2
  export declare const APPLE_FONT = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"";
3
3
  export declare const INTER_FONT = "\"Inter\", sans-serif";
4
4
  export declare const BVP_FONT = "\"BeVietnamPro\", sans-serif";
5
- export declare const LEXEND_FONT = "\"Lexend\", sans-serif";
6
5
  export declare const mobileWidth = 992;
7
6
  export declare const FORM_CONTROL_TOKEN: {
8
7
  paddingInline?: number | undefined;
@@ -42,6 +41,8 @@ export declare const FORM_CONTROL_TOKEN: {
42
41
  controlOutline?: string | undefined;
43
42
  colorWarningOutline?: string | undefined;
44
43
  colorErrorOutline?: string | undefined;
44
+ colorErrorAffix?: string | undefined;
45
+ colorWarningAffix?: string | undefined;
45
46
  fontSizeIcon?: number | undefined;
46
47
  fontWeightStrong?: number | undefined;
47
48
  controlOutlineWidth?: number | undefined;
@@ -98,6 +99,9 @@ export declare const FORM_CONTROL_TOKEN: {
98
99
  screenXLMax?: number | undefined;
99
100
  screenXXL?: number | undefined;
100
101
  screenXXLMin?: number | undefined;
102
+ screenXXLMax?: number | undefined;
103
+ screenXXXL?: number | undefined;
104
+ screenXXXLMin?: number | undefined;
101
105
  controlTmpOutline?: string | undefined;
102
106
  colorPrimary: string;
103
107
  colorSuccess: string;
@@ -131,6 +135,7 @@ export declare const FORM_CONTROL_TOKEN: {
131
135
  motionEaseOutQuint?: string | undefined;
132
136
  motionEaseOut?: string | undefined;
133
137
  wireframe?: boolean | undefined;
138
+ focusOutline?: boolean | undefined;
134
139
  motion?: boolean | undefined;
135
140
  blue?: string | undefined;
136
141
  purple?: string | undefined;
@@ -413,6 +418,7 @@ export declare const FORM_CONTROL_TOKEN: {
413
418
  colorTextQuaternary?: string | undefined;
414
419
  colorBorder?: string | undefined;
415
420
  colorBorderSecondary?: string | undefined;
421
+ colorBorderDisabled?: string | undefined;
416
422
  colorFill?: string | undefined;
417
423
  colorFillSecondary?: string | undefined;
418
424
  colorFillTertiary?: string | undefined;
@@ -494,11 +500,11 @@ export declare const FORM_CONTROL_TOKEN: {
494
500
  fontSizeSM?: number | undefined;
495
501
  fontSizeLG?: number | undefined;
496
502
  fontSizeXL?: number | undefined;
497
- fontSizeHeading1?: number | undefined;
498
- fontSizeHeading2?: number | undefined;
499
- fontSizeHeading3?: number | undefined;
500
- fontSizeHeading4?: number | undefined;
501
- fontSizeHeading5?: number | undefined;
503
+ fontSizeHeading1?: string | number | undefined;
504
+ fontSizeHeading2?: string | number | undefined;
505
+ fontSizeHeading3?: string | number | undefined;
506
+ fontSizeHeading4?: string | number | undefined;
507
+ fontSizeHeading5?: string | number | undefined;
502
508
  lineHeight?: number | undefined;
503
509
  lineHeightLG?: number | undefined;
504
510
  lineHeightSM?: number | undefined;
@@ -549,6 +555,8 @@ export declare const FORM_COLTROL_TOKEN: {
549
555
  controlOutline?: string | undefined;
550
556
  colorWarningOutline?: string | undefined;
551
557
  colorErrorOutline?: string | undefined;
558
+ colorErrorAffix?: string | undefined;
559
+ colorWarningAffix?: string | undefined;
552
560
  fontSizeIcon?: number | undefined;
553
561
  fontWeightStrong?: number | undefined;
554
562
  controlOutlineWidth?: number | undefined;
@@ -605,6 +613,9 @@ export declare const FORM_COLTROL_TOKEN: {
605
613
  screenXLMax?: number | undefined;
606
614
  screenXXL?: number | undefined;
607
615
  screenXXLMin?: number | undefined;
616
+ screenXXLMax?: number | undefined;
617
+ screenXXXL?: number | undefined;
618
+ screenXXXLMin?: number | undefined;
608
619
  controlTmpOutline?: string | undefined;
609
620
  colorPrimary: string;
610
621
  colorSuccess: string;
@@ -638,6 +649,7 @@ export declare const FORM_COLTROL_TOKEN: {
638
649
  motionEaseOutQuint?: string | undefined;
639
650
  motionEaseOut?: string | undefined;
640
651
  wireframe?: boolean | undefined;
652
+ focusOutline?: boolean | undefined;
641
653
  motion?: boolean | undefined;
642
654
  blue?: string | undefined;
643
655
  purple?: string | undefined;
@@ -920,6 +932,7 @@ export declare const FORM_COLTROL_TOKEN: {
920
932
  colorTextQuaternary?: string | undefined;
921
933
  colorBorder?: string | undefined;
922
934
  colorBorderSecondary?: string | undefined;
935
+ colorBorderDisabled?: string | undefined;
923
936
  colorFill?: string | undefined;
924
937
  colorFillSecondary?: string | undefined;
925
938
  colorFillTertiary?: string | undefined;
@@ -1001,11 +1014,11 @@ export declare const FORM_COLTROL_TOKEN: {
1001
1014
  fontSizeSM?: number | undefined;
1002
1015
  fontSizeLG?: number | undefined;
1003
1016
  fontSizeXL?: number | undefined;
1004
- fontSizeHeading1?: number | undefined;
1005
- fontSizeHeading2?: number | undefined;
1006
- fontSizeHeading3?: number | undefined;
1007
- fontSizeHeading4?: number | undefined;
1008
- fontSizeHeading5?: number | undefined;
1017
+ fontSizeHeading1?: string | number | undefined;
1018
+ fontSizeHeading2?: string | number | undefined;
1019
+ fontSizeHeading3?: string | number | undefined;
1020
+ fontSizeHeading4?: string | number | undefined;
1021
+ fontSizeHeading5?: string | number | undefined;
1009
1022
  lineHeight?: number | undefined;
1010
1023
  lineHeightLG?: number | undefined;
1011
1024
  lineHeightSM?: number | undefined;
@@ -1019,6 +1032,8 @@ export declare const FORM_COLTROL_TOKEN: {
1019
1032
  motionDurationSlow?: string | undefined;
1020
1033
  };
1021
1034
  export declare const themeConfig: ThemeConfig;
1035
+ export declare const darkThemeConfig: ThemeConfig;
1036
+ export declare const getThemeConfig: (isDarkMode?: boolean) => ThemeConfig;
1022
1037
  export declare const officeThemeConfig: ThemeConfig;
1023
1038
  export declare enum AppColors {
1024
1039
  transparent = "transparent",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.1.2",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -17,6 +17,7 @@
17
17
  "dev": "REACT_EDITOR=code storybook dev -p 6006",
18
18
  "build": "tsc --p ./tsconfig-build.json && vite build",
19
19
  "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
20
+ "test": "vitest run",
20
21
  "preview": "vite preview",
21
22
  "storybook": "storybook dev -p 6006",
22
23
  "build-storybook": "storybook build",
@@ -25,16 +26,17 @@
25
26
  "release": "yarn chromatic",
26
27
  "publish-main": "sh ./publish.sh",
27
28
  "pb": "sh ./publish-beta.sh",
29
+ "yalc:publish": "yarn build && yalc publish",
30
+ "yalc:push": "yarn build && yalc push",
28
31
  "upgrade-tiptap": "yarn add @tiptap/extension-blockquote @tiptap/extension-bubble-menu @tiptap/extension-color @tiptap/extension-document @tiptap/extension-focus @tiptap/extension-font-family @tiptap/extension-highlight @tiptap/extension-image @tiptap/extension-link @tiptap/extension-mention @tiptap/extension-paragraph @tiptap/extension-placeholder @tiptap/extension-table @tiptap/extension-table-cell @tiptap/extension-table-header @tiptap/extension-table-row @tiptap/extension-text @tiptap/extension-text-align @tiptap/extension-text-style @tiptap/extension-underline @tiptap/pm @tiptap/react @tiptap/starter-kit @tiptap/suggestion"
29
32
  },
30
33
  "dependencies": {
31
34
  "@floating-ui/react": "^0.27.17",
32
35
  "@microsoft/signalr": "7.0.3",
33
- "antd": "5.29.2",
36
+ "antd": "6.6.1",
34
37
  "antd-img-crop": "4.12.2",
35
38
  "array-move": "^4.0.0",
36
39
  "axios": "1.6.7",
37
- "beca-icons": "0.0.22",
38
40
  "classnames": "^2.5.1",
39
41
  "crypto-js": "4.2.0",
40
42
  "dayjs": "1.11.13",
@@ -74,42 +76,44 @@
74
76
  "@faker-js/faker": "8.4.1",
75
77
  "@neoconfetti/react": "1.0.0",
76
78
  "@rollup/plugin-alias": "5.1.1",
79
+ "@storybook/addon-a11y": "10.5.8",
77
80
  "@storybook/addon-docs": "10.5.8",
78
81
  "@storybook/addon-links": "10.5.8",
79
82
  "@storybook/addon-onboarding": "10.5.8",
80
83
  "@storybook/addon-vitest": "10.5.8",
81
84
  "@storybook/react-vite": "10.5.8",
82
- "@tiptap/extension-blockquote": "3.20.0",
83
- "@tiptap/extension-bold": "3.20.0",
84
- "@tiptap/extension-bubble-menu": "3.20.0",
85
- "@tiptap/extension-bullet-list": "3.20.0",
86
- "@tiptap/extension-color": "3.20.0",
87
- "@tiptap/extension-document": "3.20.0",
88
- "@tiptap/extension-focus": "3.20.0",
89
- "@tiptap/extension-font-family": "3.20.0",
90
- "@tiptap/extension-hard-break": "3.20.0",
91
- "@tiptap/extension-heading": "3.20.0",
92
- "@tiptap/extension-highlight": "3.20.0",
93
- "@tiptap/extension-history": "3.20.0",
94
- "@tiptap/extension-image": "3.20.0",
95
- "@tiptap/extension-italic": "3.20.0",
96
- "@tiptap/extension-link": "3.20.0",
97
- "@tiptap/extension-list-item": "3.20.0",
98
- "@tiptap/extension-mention": "3.20.0",
99
- "@tiptap/extension-ordered-list": "3.20.0",
100
- "@tiptap/extension-paragraph": "3.20.0",
101
- "@tiptap/extension-placeholder": "3.20.0",
102
- "@tiptap/extension-strike": "3.20.0",
103
- "@tiptap/extension-table": "3.22.4",
104
- "@tiptap/extension-text": "3.20.0",
105
- "@tiptap/extension-text-align": "3.20.0",
106
- "@tiptap/extension-text-style": "3.20.0",
107
- "@tiptap/extension-underline": "3.20.0",
108
- "@tiptap/html": "3.20.0",
109
- "@tiptap/pm": "^3.19.0",
110
- "@tiptap/react": "^3.19.0",
111
- "@tiptap/starter-kit": "^3.19.0",
112
- "@tiptap/suggestion": "3.20.0",
85
+ "@storybook/test": "^8.6.15",
86
+ "@tiptap/extension-blockquote": "3.30.3",
87
+ "@tiptap/extension-bold": "3.30.3",
88
+ "@tiptap/extension-bubble-menu": "3.30.3",
89
+ "@tiptap/extension-bullet-list": "3.30.3",
90
+ "@tiptap/extension-color": "3.30.3",
91
+ "@tiptap/extension-document": "3.30.3",
92
+ "@tiptap/extension-focus": "3.30.3",
93
+ "@tiptap/extension-font-family": "3.30.3",
94
+ "@tiptap/extension-hard-break": "3.30.3",
95
+ "@tiptap/extension-heading": "3.30.3",
96
+ "@tiptap/extension-highlight": "3.30.3",
97
+ "@tiptap/extension-history": "3.30.3",
98
+ "@tiptap/extension-image": "3.30.3",
99
+ "@tiptap/extension-italic": "3.30.3",
100
+ "@tiptap/extension-link": "3.30.3",
101
+ "@tiptap/extension-list-item": "3.30.3",
102
+ "@tiptap/extension-mention": "3.30.3",
103
+ "@tiptap/extension-ordered-list": "3.30.3",
104
+ "@tiptap/extension-paragraph": "3.30.3",
105
+ "@tiptap/extension-placeholder": "3.30.3",
106
+ "@tiptap/extension-strike": "3.30.3",
107
+ "@tiptap/extension-table": "3.30.3",
108
+ "@tiptap/extension-text": "3.30.3",
109
+ "@tiptap/extension-text-align": "3.30.3",
110
+ "@tiptap/extension-text-style": "3.30.3",
111
+ "@tiptap/extension-underline": "3.30.3",
112
+ "@tiptap/html": "3.30.3",
113
+ "@tiptap/pm": "3.30.3",
114
+ "@tiptap/react": "3.30.3",
115
+ "@tiptap/starter-kit": "3.30.3",
116
+ "@tiptap/suggestion": "3.30.3",
113
117
  "@types/crypto-js": "4.2.2",
114
118
  "@types/dompurify": "3.0.2",
115
119
  "@types/lodash": "4.17.16",
@@ -147,10 +151,17 @@
147
151
  "vite-plugin-dts": "3.6.4",
148
152
  "vite-plugin-lib-inject-css": "1.3.0",
149
153
  "vitest": "latest",
150
- "xlsx": "0.18.5"
154
+ "xlsx": "0.18.5",
155
+ "yalc": "^1.0.0-pre.53"
151
156
  },
152
157
  "sideEffects": [
153
158
  "**/*.css"
154
159
  ],
160
+ "resolutions": {
161
+ "aria-query": "^5.3.2"
162
+ },
163
+ "overrides": {
164
+ "aria-query": "^5.3.2"
165
+ },
155
166
  "packageManager": "yarn@4.18.0"
156
167
  }