ar-design 0.3.2 → 0.3.4

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 (39) hide show
  1. package/dist/assets/css/components/data-display/dnd/dnd.css +62 -40
  2. package/dist/assets/css/components/data-display/kanban-board/styles.css +68 -0
  3. package/dist/assets/css/components/data-display/table/styles.css +30 -0
  4. package/dist/assets/css/core/variants/borderless.css +10 -10
  5. package/dist/components/data-display/diagram/index.d.ts +2 -1
  6. package/dist/components/data-display/diagram/index.js +11 -3
  7. package/dist/components/data-display/dnd/IProps.d.ts +2 -1
  8. package/dist/components/data-display/dnd/index.d.ts +1 -1
  9. package/dist/components/data-display/dnd/index.js +55 -17
  10. package/dist/components/data-display/kanban-board/IProps.d.ts +5 -0
  11. package/dist/components/data-display/kanban-board/IProps.js +1 -0
  12. package/dist/components/data-display/kanban-board/index.d.ts +5 -0
  13. package/dist/components/data-display/kanban-board/index.js +71 -0
  14. package/dist/components/data-display/table/Editable.d.ts +9 -0
  15. package/dist/components/data-display/table/Editable.js +44 -0
  16. package/dist/components/data-display/table/IProps.d.ts +1 -0
  17. package/dist/components/data-display/table/index.js +8 -3
  18. package/dist/components/feedback/popup/index.js +2 -2
  19. package/dist/components/form/date-picker/Props.d.ts +2 -2
  20. package/dist/components/form/date-picker/index.js +2 -2
  21. package/dist/components/form/input-number/index.js +10 -3
  22. package/dist/components/form/upload/Buttons.js +2 -2
  23. package/dist/components/form/upload/Dropzone.js +1 -1
  24. package/dist/components/form/upload/List.js +1 -1
  25. package/dist/components/form/upload/index.js +2 -2
  26. package/dist/components/icons/Compiler.d.ts +2 -2
  27. package/dist/components/icons/Compiler.js +118 -124
  28. package/dist/components/icons/index.d.ts +1 -2
  29. package/dist/components/icons/index.js +2 -2
  30. package/dist/index.d.ts +2 -1
  31. package/dist/index.js +2 -1
  32. package/dist/libs/core/service/Api.d.ts +0 -3
  33. package/dist/libs/core/service/Api.js +0 -16
  34. package/dist/libs/core/service/index.d.ts +0 -1
  35. package/dist/libs/core/service/index.js +1 -1
  36. package/dist/libs/infrastructure/shared/Utils.d.ts +1 -2
  37. package/dist/libs/infrastructure/shared/Utils.js +2 -4
  38. package/dist/libs/types/index.d.ts +13 -2
  39. package/package.json +1 -1
@@ -32,6 +32,10 @@ export type TableColumnType<T> = {
32
32
  };
33
33
  filters?: Option[];
34
34
  render?: (item: T) => React.ReactNode;
35
+ editable?: {
36
+ type: "string" | "number" | "date-picker" | "single-select" | "multiple-select";
37
+ options?: Option[];
38
+ };
35
39
  config?: {
36
40
  width?: number;
37
41
  alignContent?: "left" | "center" | "right";
@@ -53,6 +57,14 @@ export type TabProps = {
53
57
  canBeClosed: boolean;
54
58
  };
55
59
  };
60
+ export type KanbanBoardColumnType<T> = {
61
+ title: string;
62
+ key: string;
63
+ items: Array<T & {
64
+ updatedAt?: number;
65
+ }>;
66
+ renderItem: (item: T, index: number) => React.JSX.Element;
67
+ };
56
68
  export type ValidationShape = {
57
69
  type: "required" | "minimum" | "maximum" | "email";
58
70
  value?: string | number;
@@ -70,8 +82,7 @@ export type Errors<TData> = Partial<{
70
82
  }>;
71
83
  export type MimeTypes = "image/jpeg" | "image/png" | "image/gif" | "image/webp" | "image/svg+xml" | "image/bmp" | "image/tiff" | "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/zip" | "application/x-rar-compressed" | "application/x-7z-compressed" | "application/gzip" | "application/json" | "application/xml" | "text/plain" | "text/csv" | "text/html" | "video/mp4" | "video/quicktime" | "video/x-msvideo" | "video/x-matroska" | "video/webm" | "video/x-flv" | "audio/mpeg" | "audio/wav" | "audio/ogg" | "audio/aac" | "audio/flac" | "application/octet-stream";
72
84
  export type FileCategory = "image" | "document" | "spreadsheet" | "presentation" | "archive" | "text" | "video" | "audio" | "json" | "xml" | "binary" | "other";
73
- export type IconVariants = "linear" | "fill";
74
- export type Icons = "Add" | "ArrowLeft" | "ArrowRight" | "Bold" | "BulletList" | "CameraReels" | "CheckAll" | "CloseCircle" | "CloseSquare" | "CloudUpload" | "Dash" | "Document" | "Download" | "ExclamationCircle" | "ExclamationDiamond" | "Eye" | "File" | "FileEarmark" | "FileTypeCsv" | "FileTypeDoc" | "FileTypeDocx" | "FileTypeHtml" | "FileTypeJson" | "FileTypePdf" | "FileTypePptx" | "FileTypeTxt" | "FileTypeXls" | "FileTypeXlsx" | "FileTypeXml" | "FileTypeZip" | "Filter" | "Folder" | "GripVertical" | "Import" | "Italic" | "NumberList" | "Strikethrough" | "TextAlingCenter" | "TextAlingLeft" | "TextAlingRight" | "TickCircle" | "Trash" | "Underline" | "Upload" | "Warning" | "XCircle";
85
+ export type Icons = "Add" | "ArrowLeft" | "ArrowRight" | "Bold" | "BulletList" | "CameraReels" | "CheckAll" | "CloseCircle" | "CloseSquare" | "CloudUpload-Fill" | "Dash" | "Document" | "Download" | "ExclamationCircle" | "ExclamationDiamond-Fill" | "Eye-Fill" | "File" | "FileEarmark-Fill" | "FileTypeCsv" | "FileTypeDoc" | "FileTypeDocx" | "FileTypeHtml" | "FileTypeJson" | "FileTypePdf" | "FileTypePptx" | "FileTypeTxt" | "FileTypeXls" | "FileTypeXlsx" | "FileTypeXml" | "FileTypeZip" | "Filter" | "Folder" | "Front" | "GripVertical" | "Import" | "Inbox-Fill" | "Italic" | "NumberList" | "Strikethrough" | "TextAlingCenter" | "TextAlingLeft" | "TextAlingRight" | "TickCircle" | "Trash-Fill" | "Underline" | "Upload" | "Warning" | "XCircle-Fill";
75
86
  export type PieChartDataType = {
76
87
  value: number;
77
88
  text: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",