@omniumretail/component-library 1.1.18 → 1.1.20

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/main.css CHANGED
@@ -7,7 +7,7 @@
7
7
  .bisuiYUGnAaj47TMXXcY{display:flex !important}
8
8
  .YPXf1KvhUKPvYzjuCpbK{display:block;color:var(--color-black);text-transform:capitalize;font-size:var(--font-size-body-base);line-height:125%;font-weight:var(--font-weight-semibold)}.YPXf1KvhUKPvYzjuCpbK:not(:first-child){margin-top:8px}.ExPJyFK95xTcgtx9cRbg{text-transform:uppercase}
9
9
  .EBnBgAHgtsQFrDoso9Dw{background-color:var(--color-orange);height:1px;border:none}.FLVlQ5eFtNDkCl4IcIIx{opacity:50%}.L2HU9MLCi6B1ZsJyWfp9{background-color:var(--color-blue)}.MQcBac9Gnb9D2ONENY8Q{margin:8px 0}.tdvYp9O5RnLEsNa3E_wz{margin:16px 0}.hWWGCDnwP_ROWFDlyVxe{margin:24px 0}
10
- .pwZdBKCECvzAH92fQDTI{display:flex;flex-wrap:wrap;flex-direction:column}.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th{background-color:rgba(0,0,0,0);border:0px;color:var(--color-blue)}.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th:before{display:none}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper{margin-bottom:12px}.pwZdBKCECvzAH92fQDTI .ant-table-cell{word-break:break-word}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr{cursor:pointer}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:last-child>td{border-bottom:1px solid var(--color-grey-light) !important}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:first-child>td{border-top:1px solid var(--color-blue) !important}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:hover td{border-radius:0 !important;border-bottom-color:var(--color-grey-light) !important}.pwZdBKCECvzAH92fQDTI .ant-space{align-self:flex-end}.pwZdBKCECvzAH92fQDTI .ant-select-selection-placeholder{color:var(--color-black)}.pwZdBKCECvzAH92fQDTI .ant-select-selector,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search{border:none !important;box-shadow:none !important}.pwZdBKCECvzAH92fQDTI .ant-select-selector:focus,.pwZdBKCECvzAH92fQDTI .ant-select-selector:hover,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:focus,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:hover{border:none !important;box-shadow:none !important}.pwZdBKCECvzAH92fQDTI .ant-pagination{max-width:calc(100% - 200px);margin-left:auto !important}.pwZdBKCECvzAH92fQDTI button[type=button].ant-pagination-item-link{margin-top:0 !important}.pwZdBKCECvzAH92fQDTI button[type=button]{margin-top:-50px}@media screen and (max-width: 1024px){.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th{font-size:12px}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr>td{font-size:12px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-thead>tr>th{padding:8px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-tbody>tr>td{padding:8px}}@media screen and (max-width: 767px){.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th{font-size:10px}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr>td{font-size:10px}.pwZdBKCECvzAH92fQDTI .ant-table-content table{width:100%}.pwZdBKCECvzAH92fQDTI .ant-table-content{width:100%}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table .ant-table-title,.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table .ant-table-header{word-break:break-all}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-thead>tr>th{padding:4px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-tbody>tr>td{padding:4px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-column-sorter{margin-inline-start:0px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-column-sorter-up{font-size:8px}.pwZdBKCECvzAH92fQDTI .ant-table-wrapper .ant-table-column-sorter-down{font-size:8px}.pwZdBKCECvzAH92fQDTI .ant-pagination{max-width:unset}}
10
+ .pwZdBKCECvzAH92fQDTI{display:flex;flex-wrap:wrap;flex-direction:column}.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th{background-color:rgba(0,0,0,0);border:0px;color:var(--color-blue)}.pwZdBKCECvzAH92fQDTI .ant-table-thead>tr>th:before{display:none}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr{cursor:pointer}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:last-child>td{border-bottom:1px solid var(--color-grey-light) !important}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:first-child>td{border-top:1px solid var(--color-blue) !important}.pwZdBKCECvzAH92fQDTI .ant-table-tbody>tr:hover td{border-radius:0 !important;border-bottom-color:var(--color-grey-light) !important}.pwZdBKCECvzAH92fQDTI .ant-space{align-self:flex-end}.pwZdBKCECvzAH92fQDTI .ant-select-selection-placeholder{color:var(--color-black)}.pwZdBKCECvzAH92fQDTI .ant-select-selector,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search{border:none !important;box-shadow:none !important}.pwZdBKCECvzAH92fQDTI .ant-select-selector:focus,.pwZdBKCECvzAH92fQDTI .ant-select-selector:hover,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:focus,.pwZdBKCECvzAH92fQDTI .ant-select-focused .ant-select-selection-search:hover{border:none !important;box-shadow:none !important}.pwZdBKCECvzAH92fQDTI .ant-pagination{max-width:calc(100% - 200px);margin-left:auto !important}.pwZdBKCECvzAH92fQDTI button[type=button].ant-pagination-item-link{margin-top:0 !important}.pwZdBKCECvzAH92fQDTI button[type=button]{margin-top:-50px}
11
11
  .yhGDUJJiYhqjPCJgNdjI{contain:inline-size}.LEywos4xlf3LV6eEFLFv{height:50px;display:flex;align-items:center;gap:12px;padding:16px;margin-inline-end:0}.LEywos4xlf3LV6eEFLFv .ant-input{height:50px;padding-left:40px}.VhQgSZHBi1swQZeQePfL{height:50px}.Hfh5KLg4Y_g44Ajhx9aV .ant-tag{background-color:var(--color-orange);color:var(--color-white);padding:6px 16px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;position:relative;padding-right:24px;min-height:34px}.Hfh5KLg4Y_g44Ajhx9aV .anticon-close{color:var(--color-white);font-size:12px;position:absolute;right:4px;top:10px}.Hfh5KLg4Y_g44Ajhx9aV .anticon-close:hover{color:var(--color-black)}.yhGDUJJiYhqjPCJgNdjI .Gj9zvBh4toFNL6uoWOIk{display:flex;gap:12px}.yhGDUJJiYhqjPCJgNdjI .BvTiplJPlDM4ob_yobaL{display:flex;flex-direction:row;gap:12px;font-family:"SilkaBold";text-decoration:underline}.yhGDUJJiYhqjPCJgNdjI .BvTiplJPlDM4ob_yobaL div{cursor:pointer}
12
12
  .vdTO5pKaLXA2FdyblLq5{border-color:rgba(var(--color-black-rgb), 0.5)}
13
13
  .e3BZiSKkbgvekUOREMi6{font-weight:var(--font-weight-medium);font-size:var(--font-size-body-3);margin-right:44px;margin-top:18px}.e3BZiSKkbgvekUOREMi6 .ant-radio-checked .ant-radio-inner{border-color:var(--color-black)}.e3BZiSKkbgvekUOREMi6 .ant-radio-checked .ant-radio-inner:after{background-color:var(--color-black)}.e3BZiSKkbgvekUOREMi6 .ant-radio-checked:hover .ant-radio-inner:after{background-color:var(--color-orange)}.e3BZiSKkbgvekUOREMi6 .ant-radio:hover .ant-radio-inner{border-color:var(--color-orange)}
@@ -26,3 +26,4 @@
26
26
  .qaO99d3JMWSM8DLS1LvS{display:flex;flex-direction:column;background-color:var(--white-color);padding:24px;color:var(--color-black);width:150px;word-wrap:break-word}.G3bzjyAQXu8uaFGhNMLG{width:150px}.Zv6hI_F5yvuBDnPK8u2C{color:var(--color-blue) !important;font-size:var(--font-size-body-5);font-weight:var(--font-weight-bold)}.JxTKMPM3nEvZB42uuV1e{font-weight:var(--font-weight-semibold);font-size:var(--font-size-label);margin-top:0px}.JKKhO8apIWdMp0JLU0iD{font-weight:var(--font-weight-bold);font-size:var(--font-size-body-base)}.GqgjW40ocDFW4xi4Mszm{font-weight:var(--font-weight-regular);font-size:var(--font-size-label)}
27
27
  .zsvRMmfrmqBj9iRjtQpO{display:grid;grid-template-columns:300px auto;gap:16px;height:100%}.pb4QP8qfuDG2T6wfXkUC{overflow:auto;background:#ebeced}.gP05vt1R1r67eWteznvr{overflow:auto;background:var(--color-white)}.pb4QP8qfuDG2T6wfXkUC,.gP05vt1R1r67eWteznvr{padding:20px}.btRPAI8631Q2XXYP6nZ7{font-size:var(--font-size-body-4);color:var(--color-blue);margin-bottom:36px;font-weight:var(--font-weight-semibold);text-transform:uppercase}.SbA9dHRh1JSG4xp1Aqie{padding-bottom:15px;font-weight:var(--font-weight-bold);font-size:var(--font-size-body-4)}.ZsQJQ__gMgYGYau95r8U{cursor:pointer}.PPF4FGgo1aDsBm13cNj8{padding-left:16px}.PPF4FGgo1aDsBm13cNj8 .SbA9dHRh1JSG4xp1Aqie{font-weight:var(--font-weight-semibold)}.PPF4FGgo1aDsBm13cNj8 .QEsWraNRLBQux4k4KNAE .PPF4FGgo1aDsBm13cNj8 .SbA9dHRh1JSG4xp1Aqie{font-weight:var(--font-weight-light)}.QEsWraNRLBQux4k4KNAE{display:block}.VQ09MnwMcIzpW1iabb4A{color:var(--color-orange)}.cmcMqdZJEUjlu34ag1Md{margin-bottom:32px;display:flex;justify-content:space-between;align-items:center}.i_U4mKg0Sxl4EvVzgv0L{font-size:var(--font-size-body-4);color:var(--color-blue);font-weight:var(--font-weight-semibold);margin-bottom:8px}.Tnut0v2OeSU0e7XwrCXI{font-size:var(--font-size-body-3);font-weight:var(--font-weight-light);color:var(--color-black)}.W2hZQFsItdqKPcBu4UrA{display:flex;flex-direction:row;gap:36px;margin-bottom:36px;border-bottom:1px solid rgba(var(--color-blue-rgb), 0.2);padding-bottom:4px}.tIVLagS5XxibJ4PBCNpp{flex-direction:column;border-bottom:1px solid rgba(var(--color-blue-rgb), 0.2);margin-bottom:24px}.tIVLagS5XxibJ4PBCNpp .RenA6EOwu2sFJGoqYbYz{width:100%;border-bottom:none}.tIVLagS5XxibJ4PBCNpp .N0_FbFF8bLYtEcr8_2B9{width:100%;height:auto}.tIVLagS5XxibJ4PBCNpp .N0_FbFF8bLYtEcr8_2B9 .ant-input{min-height:140px}.tIVLagS5XxibJ4PBCNpp .N0_FbFF8bLYtEcr8_2B9 .ant-form-item{margin-bottom:16px}.RenA6EOwu2sFJGoqYbYz{width:calc(100% - 149px);display:flex;align-items:center}.N0_FbFF8bLYtEcr8_2B9{width:130px;min-width:130px;align-self:flex-end;display:flex;justify-content:space-between;padding-right:15px}.GaBbmrXh2G03hz6ha5vB{display:none}.QYrBVtDmfSFNxJFztXVl{min-width:130px;align-self:flex-end;display:flex;justify-content:space-between;gap:34px}.V_qOYQwuQ9mXa8aniYgl{font-size:var(--font-size-body-3);font-weight:var(--font-weight-medium)}.pvSzNydRHp3dkh3WrOeA{font-weight:var(--font-weight-light);margin-bottom:4px}.Ehgx39o1k8blh7IDJ2mg{padding:6px;font-size:var(--font-size-body-4);font-weight:var(--font-weight-medium);color:var(--color-white);border-radius:5px;display:inline-flex;letter-spacing:3px}.ifR0bkZtK7yVHD6YZ_Zz{background-color:rgba(217,217,217,.5);border-radius:5px;padding:8px 15px;display:flex;flex-direction:row;gap:50px;align-items:center}.NL5HeemkTIg0oPHDXVtO{font-size:var(--font-size-body-3);font-weight:var(--font-weight-medium);color:var(--color-black)}.koYqEMOf6wzxWpwvrFkL{display:flex;justify-content:space-between;margin-bottom:12px;margin-left:16px;gap:40px;width:100%}
28
28
  .vhUOPe6KeB6afW8Pj3M1{font-size:32px}
29
+ .nkyL3EtE9Zsnc5VOW43L{display:flex;flex-wrap:wrap;flex-direction:column}.nkyL3EtE9Zsnc5VOW43L .ant-table-thead>tr>th{background-color:rgba(0,0,0,0);border:0px;color:var(--color-blue)}.nkyL3EtE9Zsnc5VOW43L .ant-table-thead>tr>th:before{display:none}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper{margin-bottom:12px}.nkyL3EtE9Zsnc5VOW43L .ant-table-cell{word-break:break-word}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr{cursor:pointer}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr:last-child>td{border-bottom:1px solid var(--color-grey-light) !important}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr:first-child>td{border-top:1px solid var(--color-blue) !important}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr:hover td{border-radius:0 !important;border-bottom-color:var(--color-grey-light) !important}.nkyL3EtE9Zsnc5VOW43L .ant-space{align-self:flex-end}.nkyL3EtE9Zsnc5VOW43L .ant-select-selection-placeholder{color:var(--color-black)}.nkyL3EtE9Zsnc5VOW43L .ant-select-selector,.nkyL3EtE9Zsnc5VOW43L .ant-select-focused .ant-select-selection-search{border:none !important;box-shadow:none !important}.nkyL3EtE9Zsnc5VOW43L .ant-select-selector:focus,.nkyL3EtE9Zsnc5VOW43L .ant-select-selector:hover,.nkyL3EtE9Zsnc5VOW43L .ant-select-focused .ant-select-selection-search:focus,.nkyL3EtE9Zsnc5VOW43L .ant-select-focused .ant-select-selection-search:hover{border:none !important;box-shadow:none !important}.nkyL3EtE9Zsnc5VOW43L .ant-pagination{max-width:calc(100% - 200px);margin-left:auto !important}.nkyL3EtE9Zsnc5VOW43L button[type=button].ant-pagination-item-link{margin-top:0 !important}.nkyL3EtE9Zsnc5VOW43L button[type=button]{margin-top:-50px}@media screen and (max-width: 1024px){.nkyL3EtE9Zsnc5VOW43L .ant-table-thead>tr>th{font-size:12px}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr>td{font-size:12px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-thead>tr>th{padding:8px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-tbody>tr>td{padding:8px}}@media screen and (max-width: 767px){.nkyL3EtE9Zsnc5VOW43L .ant-table-thead>tr>th{font-size:10px}.nkyL3EtE9Zsnc5VOW43L .ant-table-tbody>tr>td{font-size:10px}.nkyL3EtE9Zsnc5VOW43L .ant-table-content table{width:100%}.nkyL3EtE9Zsnc5VOW43L .ant-table-content{width:100%}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table .ant-table-title,.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table .ant-table-header{word-break:break-all}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-thead>tr>th{padding:4px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-tbody>tr>td{padding:4px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-column-sorter{margin-inline-start:0px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-column-sorter-up{font-size:8px}.nkyL3EtE9Zsnc5VOW43L .ant-table-wrapper .ant-table-column-sorter-down{font-size:8px}.nkyL3EtE9Zsnc5VOW43L .ant-pagination{max-width:unset}}
@@ -0,0 +1,9 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { ResponsiveTableCustomProps } from '.';
3
+ declare const _default: Meta<import("@storybook/react").Args>;
4
+ export default _default;
5
+ export declare const Primary: Story<ResponsiveTableCustomProps>;
6
+ export declare const Secondary: Story<ResponsiveTableCustomProps>;
7
+ export declare const WithCheckbox: Story<ResponsiveTableCustomProps>;
8
+ export declare const withActions: Story<ResponsiveTableCustomProps>;
9
+ export declare const NoData: Story<ResponsiveTableCustomProps>;
@@ -0,0 +1,45 @@
1
+ import { TableProps } from 'antd';
2
+ export interface FilterTableOptions {
3
+ value: string;
4
+ label: string;
5
+ direction: string;
6
+ }
7
+ export interface TableActions {
8
+ key: string;
9
+ label: string;
10
+ }
11
+ export declare enum sortByOption {
12
+ asc = "asc",
13
+ desc = "desc"
14
+ }
15
+ export interface ResponsiveTableCustomProps extends TableProps<any> {
16
+ fieldsToSort?: any[];
17
+ selectPlaceholder?: string;
18
+ onSort?: (field: any, sortByOption: any) => void;
19
+ sortInfo?: any;
20
+ paginationInfo?: any;
21
+ headingTranslationsKey?: string;
22
+ actionsArray?: any;
23
+ rowSelectionInfo?: any;
24
+ rowKeyValue?: string;
25
+ hiddenColumns?: string[];
26
+ rowSelection?: any;
27
+ onSelectAllButtonClick?: () => void;
28
+ AllItemsShowing?: boolean;
29
+ selectAllStatus?: any;
30
+ isTableDataRefreshed?: any;
31
+ tableLoading?: any;
32
+ tableMaxHeight?: any;
33
+ columnsSortChange?: any;
34
+ sortByColumns?: boolean;
35
+ columnsToSort?: string[];
36
+ fixedColumns?: {
37
+ dataIndex: string;
38
+ side: 'left' | 'right';
39
+ }[];
40
+ customColumnWidths?: {
41
+ columnName: string;
42
+ width: string;
43
+ }[];
44
+ }
45
+ export declare const ResponsiveTable: (props: ResponsiveTableCustomProps) => import("react/jsx-runtime").JSX.Element;
@@ -25,3 +25,4 @@ export * from './CategoryReadOnly';
25
25
  export * from './Notification';
26
26
  export * from './ExportTableData';
27
27
  export * from './DropdownButton';
28
+ export * from './ResponsiveTable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omniumretail/component-library",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "private": false,
5
5
  "main": "dist/bundle.js",
6
6
  "typings": "./dist/types/index",
@@ -0,0 +1,337 @@
1
+ import { Meta, Story } from "@storybook/react";
2
+ import { ResponsiveTable, ResponsiveTableCustomProps } from '.';
3
+ import { useState } from "react";
4
+ import { useTranslation } from "react-i18next";
5
+
6
+ export default {
7
+ title: 'ResponsiveTable',
8
+ component: ResponsiveTable,
9
+ } as Meta;
10
+
11
+ const Template: Story<ResponsiveTableCustomProps> = (args) => {
12
+ const { t } = useTranslation();
13
+ const [pageInfo, setPageInfo] = useState<any>({});
14
+ const [rowSelectionInfo, setRowSelectionInfo] = useState<any>({});
15
+ const [sortBy, setSortBy] = useState<string[]>(['id', 'desc']);
16
+
17
+ const handleSortByColumnChange = (sortState: any) => {
18
+ console.log('handleSortChange called with:', sortState);
19
+ // Do something with the new sort state
20
+ // For example, trigger an API call
21
+ };
22
+
23
+ return <ResponsiveTable scroll={{y: 1000, x: 3000}} fixedColumns={[
24
+ { dataIndex: 'name', side: 'left' },
25
+ { dataIndex: 'mecanographicNumber', side: 'left' },
26
+ ]} customColumnWidths={[{columnName: 'name', width: "2%"}]} columnsSortChange={handleSortByColumnChange} paginationInfo={setPageInfo} headingTranslationsKey={'tableHeadings'} rowSelectionInfo={setRowSelectionInfo} actionsArray={
27
+ [
28
+ { key: '1', label: `${t('actions.one')}`, onClick: () => {
29
+ console.log('onClick');
30
+ } },
31
+ { key: '2', label: `${t('actions.two')}` },
32
+ {
33
+ key: '3', label: 'label 3'
34
+ }
35
+ ]
36
+ } {...args}></ResponsiveTable>;
37
+ };
38
+
39
+ export const Primary = Template.bind({});
40
+ Primary.args = {
41
+ selectPlaceholder: 'Order by',
42
+ rowKeyValue: 'mecanographicNumber',
43
+ dataSource: [
44
+ {
45
+ id: `1`,
46
+ name: `João Cachulo`,
47
+ mecanographicNumber: "232",
48
+ store: `Levi's Sta Catarina`,
49
+ role: `Gerente`,
50
+ type: `Efetivo`
51
+ },
52
+ {
53
+ id: `2`,
54
+ name: `Filipe Martins`,
55
+ mecanographicNumber: "32",
56
+ store: `Levi's Sta Catarina`,
57
+ role: `Comercial`,
58
+ type: `Efetivo`
59
+ },
60
+ {
61
+ id: `3`,
62
+ name: `Anna Astori`,
63
+ mecanographicNumber: "3212",
64
+ store: `Levi's Sta Catarina`,
65
+ role: `Funcionário`,
66
+ type: `Efetivo`
67
+ },
68
+ {
69
+ id: `4`,
70
+ name: `Yield Ona`,
71
+ mecanographicNumber: "21232",
72
+ store: `Adidas Restaurantes`,
73
+ role: `Gerente`,
74
+ type: `Efetivo`
75
+ },
76
+ {
77
+ id: `5`,
78
+ name: `João Cachulo`,
79
+ mecanographicNumber: "232",
80
+ store: `Levi's Sta Catarina`,
81
+ role: `Gerente`,
82
+ type: `Efetivo`
83
+ },
84
+ {
85
+ id: `6`,
86
+ name: `Filipe Martins`,
87
+ mecanographicNumber: "32",
88
+ store: `Levi's Sta Catarina`,
89
+ role: `Comercial`,
90
+ type: `Efetivo`
91
+ },
92
+ {
93
+ id: `7`,
94
+ name: `Anna Astori`,
95
+ mecanographicNumber: "3212",
96
+ store: `Levi's Sta Catarina`,
97
+ role: `Funcionário`,
98
+ type: `Efetivo`
99
+ },
100
+ {
101
+ id: `8`,
102
+ name: `Yield Ona`,
103
+ mecanographicNumber: "21232",
104
+ store: `Adidas Restaurantes`,
105
+ role: `Gerente`,
106
+ type: `Efetivo`
107
+ },
108
+ {
109
+ id: `9`,
110
+ name: `João Cachulo`,
111
+ mecanographicNumber: "232",
112
+ store: `Levi's Sta Catarina`,
113
+ role: `Gerente`,
114
+ type: `Efetivo`
115
+ },
116
+ {
117
+ id: `10`,
118
+ name: `Filipe Martins`,
119
+ mecanographicNumber: "32",
120
+ store: `Levi's Sta Catarina`,
121
+ role: `Comercial`,
122
+ type: `Efetivo`
123
+ },
124
+ {
125
+ id: `11`,
126
+ name: `Anna Astori`,
127
+ mecanographicNumber: "3212",
128
+ store: `Levi's Sta Catarina`,
129
+ role: `Funcionário`,
130
+ type: `Efetivo`
131
+ },
132
+ {
133
+ id: `12`,
134
+ name: `Yield Ona`,
135
+ mecanographicNumber: "21232",
136
+ store: `Adidas Restaurantes`,
137
+ role: `Gerente`,
138
+ type: `Efetivo`
139
+ },
140
+ {
141
+ id: `13`,
142
+ name: `João Cachulo`,
143
+ mecanographicNumber: "232",
144
+ store: `Levi's Sta Catarina`,
145
+ role: `Gerente`,
146
+ type: `Efetivo`
147
+ },
148
+ {
149
+ id: `14`,
150
+ name: `João Cachulo`,
151
+ mecanographicNumber: "232",
152
+ store: `Levi's Sta Catarina`,
153
+ role: `Gerente`,
154
+ type: `Efetivo`
155
+ },
156
+ {
157
+ id: `15`,
158
+ name: `João Cachulo`,
159
+ mecanographicNumber: "232",
160
+ store: `Levi's Sta Catarina`,
161
+ role: `Gerente`,
162
+ type: `Efetivo`
163
+ },
164
+ {
165
+ id: `16`,
166
+ name: `João Cachulo`,
167
+ mecanographicNumber: "232",
168
+ store: `Levi's Sta Catarina`,
169
+ role: `Gerente`,
170
+ type: `Efetivo`
171
+ },
172
+ {
173
+ id: `17`,
174
+ name: `João Cachulo`,
175
+ mecanographicNumber: "232",
176
+ store: `Levi's Sta Catarina`,
177
+ role: `Gerente`,
178
+ type: `Efetivo`
179
+ },
180
+ {
181
+ id: `18`,
182
+ name: `João Cachulo`,
183
+ mecanographicNumber: "232",
184
+ store: `Levi's Sta Catarina`,
185
+ role: `Gerente`,
186
+ type: `Efetivo`
187
+ },
188
+ ],
189
+ pagination: {
190
+ total: 24,
191
+ pageSize: 20
192
+ },
193
+ hiddenColumns: ['id'],
194
+ sortByColumns: true,
195
+ columnsToSort: ["name", "mecanographicNumber"]
196
+ };
197
+
198
+ export const Secondary = Template.bind({});
199
+ Secondary.args = {
200
+ dataSource: [
201
+ {
202
+ key: `1`,
203
+ name: `as John Brown`,
204
+ mecanographicNumber: 232,
205
+ store: `Levi's Sta Catarina`,
206
+ role: `Gerente`,
207
+ type: `Efetivo`
208
+ },
209
+ {
210
+ key: `2`,
211
+ name: `bv Mary Brown`,
212
+ mecanographicNumber: 32,
213
+ store: `Levi's Sta Catarina`,
214
+ role: `Comercial`,
215
+ type: `Efetivo`
216
+ },
217
+ {
218
+ key: `3`,
219
+ name: `as Anna Astori`,
220
+ mecanographicNumber: 3212,
221
+ store: `Levi's Sta Catarina`,
222
+ role: `Funcionário`,
223
+ type: `Efetivo`
224
+ },
225
+ {
226
+ key: `4`,
227
+ name: `bv Yield Ona`,
228
+ mecanographicNumber: 21232,
229
+ store: `Adidas Restaurantes`,
230
+ role: `Gerente`,
231
+ type: `Efetivo`
232
+ },
233
+ ],
234
+ pagination: {
235
+ total: 4,
236
+ pageSize: 10
237
+ }
238
+ };
239
+
240
+ export const WithCheckbox = Template.bind({});
241
+ WithCheckbox.args = {
242
+ dataSource: [
243
+ {
244
+ key: `1`,
245
+ name: `John Brown`,
246
+ mecanographicNumber: 232,
247
+ store: `Levi's Sta Catarina`,
248
+ role: `Gerente`,
249
+ type: `Efetivo`
250
+ },
251
+ {
252
+ key: `2`,
253
+ name: `Mary Brown`,
254
+ mecanographicNumber: 32,
255
+ store: `Levi's Sta Catarina`,
256
+ role: `Comercial`,
257
+ type: `Efetivo`
258
+ },
259
+ {
260
+ key: `3`,
261
+ name: `Anna Astori`,
262
+ mecanographicNumber: 3212,
263
+ store: `Levi's Sta Catarina`,
264
+ role: `Funcionário`,
265
+ type: `Efetivo`
266
+ },
267
+ {
268
+ key: `4`,
269
+ name: `Yield Ona`,
270
+ mecanographicNumber: 21232,
271
+ store: `Adidas Restaurantes`,
272
+ role: `Gerente`,
273
+ type: `Efetivo`
274
+ },
275
+ ],
276
+ };
277
+
278
+ export const withActions = Template.bind({});
279
+ withActions.args = {
280
+ fieldsToSort: ['store', 'mecanographicNumber'],
281
+ selectPlaceholder: 'Order by',
282
+ dataSource: [
283
+ {
284
+ key: `1`,
285
+ name: `John Brown`,
286
+ mecanographicNumber: "232",
287
+ store: `Levi's Sta Catarina`,
288
+ role: `Gerente`,
289
+ type: `Efetivo`
290
+ },
291
+ {
292
+ key: `2`,
293
+ name: `Mary Brown`,
294
+ mecanographicNumber: "32",
295
+ store: `Levi's Sta Catarina`,
296
+ role: `Comercial`,
297
+ type: `Efetivo`
298
+ },
299
+ {
300
+ key: `3`,
301
+ name: `Anna Astori`,
302
+ mecanographicNumber: "3212",
303
+ store: `Levi's Sta Catarina`,
304
+ role: `Funcionário`,
305
+ type: `Efetivo`
306
+ },
307
+ {
308
+ key: `4`,
309
+ name: `Yield Ona`,
310
+ mecanographicNumber: "21232",
311
+ store: `Adidas Restaurantes`,
312
+ role: `Gerente`,
313
+ type: `Efetivo`
314
+ },
315
+ ],
316
+ pagination: {
317
+ total: 24,
318
+ pageSize: 4
319
+ },
320
+ rowSelection: {
321
+ type: 'checkbox',
322
+ selectedRowKeys: ['1']
323
+ }
324
+ };
325
+
326
+ export const NoData = Template.bind({});
327
+ NoData.args = {
328
+ fieldsToSort: ['store', 'mecanographicNumber'],
329
+ selectPlaceholder: 'Order by',
330
+ rowKeyValue: 'mecanographicNumber',
331
+ dataSource: undefined,
332
+ pagination: {
333
+ total: 24,
334
+ pageSize: 4
335
+ },
336
+ hiddenColumns: ['id']
337
+ };