@pnkx-lib/ui 1.9.178 → 1.9.180

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 (207) hide show
  1. package/dist/style.css +1 -1
  2. package/es/chunks/AntdIcon-B_SLhOJa.js +1211 -0
  3. package/es/chunks/_commonjsHelpers-BFTU3MAI.js +7 -0
  4. package/es/chunks/bundle-mjs-BME7zF0Z.js +2956 -0
  5. package/es/chunks/common-CocKiHtC.js +3 -0
  6. package/es/chunks/defineProperty-D53odpB3.js +50 -0
  7. package/es/chunks/get-C880miVG.js +1726 -0
  8. package/es/chunks/index-mzHK7Za8.js +90 -0
  9. package/es/chunks/index.esm-DPdCEbIy.js +2276 -0
  10. package/es/chunks/jsx-runtime-DFKOoQSG.js +430 -0
  11. package/es/chunks/layout-B04d5Lfr.js +6094 -0
  12. package/es/constants/index.js +38 -0
  13. package/es/fields/CascaderField.js +59 -0
  14. package/es/fields/Checkbox.js +56 -0
  15. package/es/fields/DatePicker.js +13030 -0
  16. package/es/fields/DateRangePicker.js +58 -0
  17. package/es/fields/Input.js +1379 -0
  18. package/es/fields/PnkxField.js +19 -0
  19. package/es/fields/Radio.js +56 -0
  20. package/es/fields/Select.js +61 -0
  21. package/es/fields/SliderRanger.js +58 -0
  22. package/es/fields/SliderSingle.js +58 -0
  23. package/es/fields/Switch.js +58 -0
  24. package/es/fields/Textarea.js +66 -0
  25. package/es/fields/TinyMCE.js +1969 -0
  26. package/es/fields/Upload.js +113 -0
  27. package/es/fields/index.js +13 -2
  28. package/es/hooks/index.js +2 -1
  29. package/es/hooks/useMessage.js +15 -0
  30. package/es/{chunks/useMessage-CUPcOtIS.js → hooks/useToast.js} +2 -14
  31. package/es/index.js +74 -4
  32. package/es/ui/Alert.js +8 -0
  33. package/es/ui/Anchor.js +9 -0
  34. package/es/ui/Appfix.js +8 -0
  35. package/es/ui/AutoComplete.js +8 -0
  36. package/es/ui/Badge.js +15 -0
  37. package/es/ui/BottomPagination.js +57 -0
  38. package/es/ui/Breadcrumb.js +9 -0
  39. package/es/ui/BreadcrumbHeading.js +54 -0
  40. package/es/ui/Button.js +8 -0
  41. package/es/ui/Card.js +8 -0
  42. package/es/ui/Cascader.js +21 -0
  43. package/es/ui/CategoryStatus.js +50 -0
  44. package/es/ui/Col.js +9 -0
  45. package/es/ui/Collapse.js +8 -0
  46. package/es/ui/ColorPicker.js +8 -0
  47. package/es/ui/ConfigProvider.js +11 -0
  48. package/es/ui/ConfirmModal.js +119 -0
  49. package/es/ui/Container.js +12 -0
  50. package/es/ui/Divider.js +8 -0
  51. package/es/ui/Drawer.js +19 -0
  52. package/es/ui/Dropdown.js +9 -0
  53. package/es/ui/Empty.js +8 -0
  54. package/es/ui/ErrorBoundary.js +81 -0
  55. package/es/ui/ErrorMessage.js +14 -0
  56. package/es/ui/Flex.js +9 -0
  57. package/es/ui/Footer.js +13 -0
  58. package/es/ui/Heading.js +67 -0
  59. package/es/ui/Image.js +8 -0
  60. package/es/ui/Label.js +14 -0
  61. package/es/ui/Layout.js +25 -0
  62. package/es/ui/Menu.js +24 -0
  63. package/es/ui/Modal.js +8 -0
  64. package/es/{chunks/PageNotFound-D6b4M484.js → ui/PageNotFound.js} +7 -1865
  65. package/es/ui/Pagination.js +10 -0
  66. package/es/ui/Popconfirm.js +8 -0
  67. package/es/ui/Popover.js +9 -0
  68. package/es/ui/QRCode.js +8 -0
  69. package/es/ui/Rate.js +8 -0
  70. package/es/ui/Result.js +8 -0
  71. package/es/ui/Row.js +9 -0
  72. package/es/ui/SearchFilterForm.js +87 -0
  73. package/es/ui/Segmented.js +8 -0
  74. package/es/ui/Sidebar.js +342 -0
  75. package/es/ui/Skeleton.js +34 -0
  76. package/es/ui/Space.js +11 -0
  77. package/es/ui/Spin.js +8 -0
  78. package/es/ui/Splitter.js +11 -0
  79. package/es/ui/Statistic.js +8 -0
  80. package/es/ui/Steps.js +11 -0
  81. package/es/ui/Tabs.js +78 -0
  82. package/es/ui/Tag.js +12 -0
  83. package/es/ui/Timeline.js +8 -0
  84. package/es/ui/Tooltip.js +8 -0
  85. package/es/ui/Tour.js +8 -0
  86. package/es/ui/Tree.js +8 -0
  87. package/es/ui/Typography.js +11 -0
  88. package/es/ui/UploadImage.js +116 -0
  89. package/es/ui/Watermark.js +28 -0
  90. package/es/ui/index.js +5235 -2
  91. package/package.json +31 -1
  92. package/types/components/ui/BulkActions/BulkAction.d.ts +1 -1
  93. package/types/components/ui/BulkActions/index.d.ts +1 -1
  94. package/types/components/ui/Table/ActionRowTable/index.d.ts +1 -1
  95. package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +1 -1
  96. package/types/components/ui/Table/index.d.ts +1 -1
  97. package/types/fields/CascaderField.d.ts +2 -0
  98. package/types/fields/Checkbox.d.ts +2 -0
  99. package/types/fields/DatePicker.d.ts +2 -0
  100. package/types/fields/DateRangePicker.d.ts +2 -0
  101. package/types/fields/Input.d.ts +2 -0
  102. package/types/fields/PnkxField.d.ts +2 -0
  103. package/types/fields/Radio.d.ts +2 -0
  104. package/types/fields/Select.d.ts +2 -0
  105. package/types/fields/SliderRanger.d.ts +2 -0
  106. package/types/fields/SliderSingle.d.ts +2 -0
  107. package/types/fields/Switch.d.ts +2 -0
  108. package/types/fields/Textarea.d.ts +2 -0
  109. package/types/fields/TinyMCE.d.ts +2 -0
  110. package/types/fields/Upload.d.ts +2 -0
  111. package/types/fields/index.d.ts +2 -0
  112. package/types/hooks/index.d.ts +2 -0
  113. package/types/hooks/useMessage.d.ts +2 -0
  114. package/types/hooks/useToast.d.ts +2 -0
  115. package/types/ui/Alert.d.ts +2 -0
  116. package/types/ui/Anchor.d.ts +2 -0
  117. package/types/ui/Appfix.d.ts +2 -0
  118. package/types/ui/AutoComplete.d.ts +2 -0
  119. package/types/ui/Badge.d.ts +2 -0
  120. package/types/ui/BottomPagination.d.ts +2 -0
  121. package/types/ui/Breadcrumb.d.ts +2 -0
  122. package/types/ui/BreadcrumbHeading.d.ts +2 -0
  123. package/types/ui/Button.d.ts +2 -0
  124. package/types/ui/Card.d.ts +2 -0
  125. package/types/ui/Cascader.d.ts +2 -0
  126. package/types/ui/CategoryStatus.d.ts +2 -0
  127. package/types/ui/Col.d.ts +2 -0
  128. package/types/ui/Collapse.d.ts +2 -0
  129. package/types/ui/ColorPicker.d.ts +2 -0
  130. package/types/ui/ConfigProvider.d.ts +2 -0
  131. package/types/ui/ConfirmModal.d.ts +2 -0
  132. package/types/ui/Container.d.ts +2 -0
  133. package/types/ui/Divider.d.ts +2 -0
  134. package/types/ui/Drawer.d.ts +2 -0
  135. package/types/ui/Dropdown.d.ts +2 -0
  136. package/types/ui/Empty.d.ts +2 -0
  137. package/types/ui/ErrorBoundary.d.ts +2 -0
  138. package/types/ui/ErrorMessage.d.ts +2 -0
  139. package/types/ui/Flex.d.ts +2 -0
  140. package/types/ui/Footer.d.ts +4 -0
  141. package/types/ui/Heading.d.ts +2 -0
  142. package/types/ui/Image.d.ts +2 -0
  143. package/types/ui/Label.d.ts +2 -0
  144. package/types/ui/Layout.d.ts +2 -0
  145. package/types/ui/Menu.d.ts +2 -0
  146. package/types/ui/Modal.d.ts +2 -0
  147. package/types/ui/PageNotFound.d.ts +2 -0
  148. package/types/ui/Pagination.d.ts +2 -0
  149. package/types/ui/Popconfirm.d.ts +2 -0
  150. package/types/ui/Popover.d.ts +2 -0
  151. package/types/ui/QRCode.d.ts +2 -0
  152. package/types/ui/Rate.d.ts +2 -0
  153. package/types/ui/Result.d.ts +2 -0
  154. package/types/ui/Row.d.ts +2 -0
  155. package/types/ui/SearchFilterForm.d.ts +2 -0
  156. package/types/ui/Segmented.d.ts +2 -0
  157. package/types/ui/Sidebar.d.ts +2 -0
  158. package/types/ui/Skeleton.d.ts +2 -0
  159. package/types/ui/Space.d.ts +2 -0
  160. package/types/ui/Spin.d.ts +2 -0
  161. package/types/ui/Splitter.d.ts +2 -0
  162. package/types/ui/Statistic.d.ts +2 -0
  163. package/types/ui/Steps.d.ts +2 -0
  164. package/types/ui/Tabs.d.ts +2 -0
  165. package/types/ui/Tag.d.ts +2 -0
  166. package/types/ui/Timeline.d.ts +2 -0
  167. package/types/ui/Tooltip.d.ts +2 -0
  168. package/types/ui/Tour.d.ts +2 -0
  169. package/types/ui/Tree.d.ts +2 -0
  170. package/types/ui/Typography.d.ts +2 -0
  171. package/types/ui/UploadImage.d.ts +2 -0
  172. package/types/ui/Watermark.d.ts +2 -0
  173. package/types/ui/index.d.ts +2 -0
  174. package/es/chunks/SliderRanger-BXe2Nxdo.js +0 -361
  175. package/es/chunks/UploadImage-x6lE6WbO.js +0 -61133
  176. package/types/App.d.ts +0 -6
  177. package/types/DemoInput/DemoInput.d.ts +0 -1
  178. package/types/DemoTable/FiltersCategoryDemo/components/RenderFilterFields.d.ts +0 -12
  179. package/types/DemoTable/FiltersCategoryDemo/components/TagsFilter.d.ts +0 -12
  180. package/types/DemoTable/FiltersCategoryDemo/index.d.ts +0 -8
  181. package/types/DemoTable/apiUser.d.ts +0 -30
  182. package/types/DemoTable/hooks/useConvertGroupButton.d.ts +0 -13
  183. package/types/DemoTable/index.d.ts +0 -2
  184. package/types/DemoTable/tabDemo.d.ts +0 -2
  185. package/types/assets/svg/404.d.ts +0 -2
  186. package/types/assets/svg/Flag.d.ts +0 -2
  187. package/types/assets/svg/Logout.d.ts +0 -2
  188. package/types/assets/svg/PageNotFoundIcon.d.ts +0 -3
  189. package/types/assets/svg/Search.d.ts +0 -2
  190. package/types/assets/svg/Setting.d.ts +0 -2
  191. package/types/component-test/category-city.d.ts +0 -2
  192. package/types/component-test/category-manager.d.ts +0 -2
  193. package/types/component-test/default-layout.d.ts +0 -6
  194. package/types/component-test/detail-user.d.ts +0 -2
  195. package/types/component-test/permistion-user.d.ts +0 -2
  196. package/types/component-test/user-list.d.ts +0 -2
  197. package/types/fields.d.ts +0 -2
  198. package/types/hooks.d.ts +0 -2
  199. package/types/interface/common.d.ts +0 -14
  200. package/types/interface/tab.d.ts +0 -5
  201. package/types/main.d.ts +0 -0
  202. package/types/stores/tabStore.d.ts +0 -6
  203. package/types/stories/Input.stories.d.ts +0 -6
  204. package/types/ui.d.ts +0 -2
  205. package/types/utils/router.d.ts +0 -35
  206. package/types/utils/timer.d.ts +0 -7
  207. package/types/vite-env.d.ts +0 -1
package/types/App.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import { MenuType } from './components/ui/Sidebar';
2
- import { JSX } from 'react/jsx-runtime';
3
- export declare const CATEGORY_PATH = "/danh-muc";
4
- export declare const menuRouter: MenuType[];
5
- declare function App(): JSX.Element;
6
- export default App;
@@ -1 +0,0 @@
1
- export declare const DemoInput: () => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { Control, UseFormReset } from 'node_modules/react-hook-form/dist/types';
2
- import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
3
- interface RenderFilterFieldsProps {
4
- control: Control<IValueSearch>;
5
- handleSubmit?: React.FormEventHandler<IValueSearch>;
6
- resetToInitialFilters: () => void;
7
- reset?: UseFormReset<IValueSearch>;
8
- isHiddenRemove: boolean;
9
- isNullFilter: boolean;
10
- }
11
- export declare const RenderFilterFields: (props: RenderFilterFieldsProps) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,12 +0,0 @@
1
- import { UseFormReset } from 'node_modules/react-hook-form/dist/types';
2
- import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
3
- import { InitialFiltersSearch } from '../../../../../../../../../../../src/components';
4
- interface TagsFilterProps {
5
- advanceSearch: any;
6
- resetToInitialFilters: () => void;
7
- reset?: UseFormReset<IValueSearch>;
8
- isHiddenRemove: boolean;
9
- handleSearch: (nextFilters: InitialFiltersSearch<IValueSearch>) => void;
10
- }
11
- export declare const TagsFilter: (props: TagsFilterProps) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,8 +0,0 @@
1
- import { InitialFiltersSearch } from '@pnkx-lib/core';
2
- interface Props {
3
- filters: InitialFiltersSearch<any>;
4
- handleSearch: (nextFilters: InitialFiltersSearch<any>) => void;
5
- resetToInitialFilters: () => void;
6
- }
7
- declare const Filters: (props: Props) => import("react/jsx-runtime").JSX.Element;
8
- export default Filters;
@@ -1,30 +0,0 @@
1
- export interface ReqResUser {
2
- id: number;
3
- title: string;
4
- slug: string;
5
- price: string;
6
- }
7
- export interface ReqResResponse {
8
- data: ReqResUser[];
9
- page: number;
10
- per_page: number;
11
- total: number;
12
- }
13
- export declare const fetchUsers: (page: number, perPage: number) => Promise<{
14
- data: ReqResUser[];
15
- pagination: {
16
- total: number;
17
- page: number;
18
- limit: number;
19
- totalPages: number;
20
- };
21
- }>;
22
- export declare const fetchUsersNew: (page: number, perPage: number) => Promise<{
23
- data: ReqResUser[];
24
- pagination: {
25
- total: number;
26
- page: number;
27
- limit: number;
28
- totalPages: number;
29
- };
30
- }>;
@@ -1,13 +0,0 @@
1
- import { GroupHeadingButtonItem } from '../../../../../../../../../../src/components/ui/Table/HeadingTable/components/GroupHeadingButton';
2
- export interface LabelGroupHeadingButtonItem {
3
- label: string;
4
- is_status: number;
5
- }
6
- export interface QuantityGroupHeadingButtonItem {
7
- quantity: number;
8
- is_status: number;
9
- }
10
- declare const useConvertGroupButton: (labelGroupHeadingButtonItems: LabelGroupHeadingButtonItem[]) => {
11
- data: GroupHeadingButtonItem[];
12
- };
13
- export default useConvertGroupButton;
@@ -1,2 +0,0 @@
1
- declare const DemoTable: () => import("react/jsx-runtime").JSX.Element;
2
- export default DemoTable;
@@ -1,2 +0,0 @@
1
- declare const TabDemo: () => import("react/jsx-runtime").JSX.Element;
2
- export default TabDemo;
@@ -1,2 +0,0 @@
1
- declare const Svg404Notfound: () => import("react/jsx-runtime").JSX.Element;
2
- export default Svg404Notfound;
@@ -1,2 +0,0 @@
1
- declare const SvgFlag: () => import("react/jsx-runtime").JSX.Element;
2
- export default SvgFlag;
@@ -1,2 +0,0 @@
1
- declare const SvgLogout: () => import("react/jsx-runtime").JSX.Element;
2
- export default SvgLogout;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const PageNotFoundIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default PageNotFoundIcon;
@@ -1,2 +0,0 @@
1
- declare const SvgIconSearch: () => import("react/jsx-runtime").JSX.Element;
2
- export default SvgIconSearch;
@@ -1,2 +0,0 @@
1
- declare const SvgSetting: () => import("react/jsx-runtime").JSX.Element;
2
- export default SvgSetting;
@@ -1,2 +0,0 @@
1
- declare function CategoryCity(): import("react/jsx-runtime").JSX.Element;
2
- export default CategoryCity;
@@ -1,2 +0,0 @@
1
- declare function CategoryManager(): import("react/jsx-runtime").JSX.Element;
2
- export default CategoryManager;
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- interface DefaultLayoutProps {
3
- children?: React.ReactNode;
4
- }
5
- declare function DefaultLayout({ children }: DefaultLayoutProps): import("react/jsx-runtime").JSX.Element;
6
- export default DefaultLayout;
@@ -1,2 +0,0 @@
1
- declare function Detailuser(): import("react/jsx-runtime").JSX.Element;
2
- export default Detailuser;
@@ -1,2 +0,0 @@
1
- declare function PermistionUser(): import("react/jsx-runtime").JSX.Element;
2
- export default PermistionUser;
@@ -1,2 +0,0 @@
1
- declare function UserList(): import("react/jsx-runtime").JSX.Element;
2
- export default UserList;
package/types/fields.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './components/fields/index'
2
- export {}
package/types/hooks.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './components/hooks/index'
2
- export {}
@@ -1,14 +0,0 @@
1
- export interface SelectOption {
2
- label: string;
3
- value: any;
4
- }
5
- export interface PaginationFilters {
6
- size: number;
7
- page: number;
8
- }
9
- export type SortOrder = "descend" | "ascend" | null;
10
- export interface SorterResult {
11
- order?: SortOrder;
12
- field?: React.Key | readonly React.Key[];
13
- columnKey?: React.Key;
14
- }
@@ -1,5 +0,0 @@
1
- export interface TabItem {
2
- key: string;
3
- label: string;
4
- children: React.ReactNode;
5
- }
package/types/main.d.ts DELETED
File without changes
@@ -1,6 +0,0 @@
1
- type TabState = {
2
- activeTabKey?: string;
3
- setActiveTabKey: (key: string) => void;
4
- };
5
- export declare const useTabStore: import('zustand').UseBoundStore<import('zustand').StoreApi<TabState>>;
6
- export {};
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Input } from '../components/fields/Input';
3
- declare const meta: Meta<typeof Input>;
4
- export default meta;
5
- type Story = StoryObj<typeof Input>;
6
- export declare const Default: Story;
package/types/ui.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './components/ui/index'
2
- export {}
@@ -1,35 +0,0 @@
1
- export declare const PUBLIC_ROUTER: {
2
- HOME: string;
3
- SIGN_IN: string;
4
- PAGE_404: string;
5
- CATEGORY_LIST: {
6
- LIST: string;
7
- };
8
- CATEGORY_DEMO: {
9
- LIST: string;
10
- DETAIL: string;
11
- };
12
- CATEGORY_MEDICAL_RECORD: {
13
- LIST: string;
14
- };
15
- CATEGORY_CITY: {
16
- LIST: string;
17
- DETAIL: string;
18
- };
19
- CATEGORY_NATION: {
20
- LIST: string;
21
- DETAIL: string;
22
- };
23
- CATEGORY_ETHNIC: {
24
- LIST: string;
25
- };
26
- CATEGORY_RELATIONSHIP: {
27
- LIST: string;
28
- };
29
- CATEGORY_ATTRIBUTE: {
30
- LIST: string;
31
- };
32
- CATEGORY_LOCATION: {
33
- LIST: string;
34
- };
35
- };
@@ -1,7 +0,0 @@
1
- declare class Timer {
2
- timer: ReturnType<typeof setTimeout> | number | null;
3
- constructor();
4
- debounce(func: (arg: any) => void, time: number): void;
5
- }
6
- export declare const delay: (ms: number) => Promise<unknown>;
7
- export default Timer;
@@ -1 +0,0 @@
1
- /// <reference types="vite/client" />