sbwb-ds 3.21.0 → 3.22.0

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 (50) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/dist/sbwb-ds.js +15668 -15194
  3. package/dist/sbwb-ds.umd.cjs +1291 -1146
  4. package/dist/src/main/assets/icons/index.d.ts +1 -0
  5. package/dist/src/main/helpers/functions/dateFormatterPtBr.d.ts +2 -1
  6. package/dist/src/main/helpers/functions/icons.d.ts +30 -0
  7. package/dist/src/presentation/components/molecules/Datepicker/components/inputCalendar/index.d.ts +1 -1
  8. package/dist/src/presentation/components/molecules/Datepicker/hooks/useCalendar.d.ts +11 -7
  9. package/dist/src/presentation/components/molecules/Datepicker/index.d.ts +2 -2
  10. package/dist/src/presentation/components/molecules/UploadArea/UploadArea.styles.d.ts +25 -0
  11. package/dist/src/presentation/components/molecules/UploadArea/UploadArea.types.d.ts +39 -0
  12. package/dist/src/presentation/components/molecules/UploadArea/components/FileList.d.ts +3 -0
  13. package/dist/src/presentation/components/molecules/UploadArea/components/FileListItem.d.ts +3 -0
  14. package/dist/src/presentation/components/molecules/UploadArea/documentation/index.d.ts +1 -0
  15. package/dist/src/presentation/components/molecules/UploadArea/hooks/useUploadArea.d.ts +16 -0
  16. package/dist/src/presentation/components/molecules/UploadArea/index.d.ts +3 -0
  17. package/package.json +1 -1
  18. package/src/main/assets/icons/ant/oil-barrel-fill.svg +3 -0
  19. package/src/main/assets/icons/extraLarge/oil-barrel-fill.svg +3 -0
  20. package/src/main/assets/icons/index.ts +1 -0
  21. package/src/main/assets/icons/large/oil-barrel-fill.svg +3 -0
  22. package/src/main/assets/icons/medium/oil-barrel-fill.svg +3 -0
  23. package/src/main/assets/icons/small/oil-barrel-fill.svg +3 -0
  24. package/src/main/helpers/functions/dateFormatterPtBr.ts +52 -15
  25. package/src/main/helpers/functions/icons.ts +11 -0
  26. package/src/presentation/components/atoms/ActionButton/styles.ts +4 -4
  27. package/src/presentation/components/atoms/Button/styles.ts +2 -1
  28. package/src/presentation/components/atoms/Input/index.tsx +18 -2
  29. package/src/presentation/components/atoms/Input/styles.ts +2 -2
  30. package/src/presentation/components/atoms/Select/index.tsx +11 -2
  31. package/src/presentation/components/atoms/Select/styles.ts +1 -1
  32. package/src/presentation/components/molecules/DataTable/Components/ActionButtonCell/index.tsx +1 -0
  33. package/src/presentation/components/molecules/DataTable/Components/TableCell/TableCell.stories.tsx +2 -113
  34. package/src/presentation/components/molecules/DataTable/Components/TableCell/styles.tsx +15 -1
  35. package/src/presentation/components/molecules/Datepicker/DatePicker.stories.tsx +46 -5
  36. package/src/presentation/components/molecules/Datepicker/components/Header/index.tsx +2 -0
  37. package/src/presentation/components/molecules/Datepicker/components/inputCalendar/index.tsx +4 -2
  38. package/src/presentation/components/molecules/Datepicker/components/inputCalendar/styles.ts +2 -8
  39. package/src/presentation/components/molecules/Datepicker/hooks/useCalendar.tsx +60 -15
  40. package/src/presentation/components/molecules/Datepicker/index.tsx +15 -7
  41. package/src/presentation/components/molecules/MultiSelect/MultiSelect.component.tsx +11 -2
  42. package/src/presentation/components/molecules/MultiSelect/styles.ts +1 -1
  43. package/src/presentation/components/molecules/UploadArea/UploadArea.stories.tsx +195 -0
  44. package/src/presentation/components/molecules/UploadArea/UploadArea.styles.ts +187 -0
  45. package/src/presentation/components/molecules/UploadArea/UploadArea.types.ts +46 -0
  46. package/src/presentation/components/molecules/UploadArea/components/FileList.tsx +33 -0
  47. package/src/presentation/components/molecules/UploadArea/components/FileListItem.tsx +79 -0
  48. package/src/presentation/components/molecules/UploadArea/documentation/index.tsx +290 -0
  49. package/src/presentation/components/molecules/UploadArea/hooks/useUploadArea.ts +163 -0
  50. package/src/presentation/components/molecules/UploadArea/index.tsx +113 -0
package/dist/index.d.ts CHANGED
@@ -19,6 +19,7 @@ import { NotificationItemProps, NotificationProps } from './src/presentation/com
19
19
  import { MenuSelectProps } from './src/presentation/components/molecules/MenuSelect';
20
20
  import { Tab } from './src/presentation/components/molecules/TabBar';
21
21
  import { SegmentedButtonProps, SegmentedButtonType } from './src/presentation/components/molecules/SegmentedButton';
22
+ import { UploadAreaProps, FileListProps, FileListItemProps, FileItem } from './src/presentation/components/molecules/UploadArea/UploadArea.types';
22
23
  export { default as Accordion } from './src/presentation/components/atoms/Accordion';
23
24
  export { default as Avatar } from './src/presentation/components/atoms/Avatar/Avatar.view';
24
25
  export { default as ActionButton } from './src/presentation/components/atoms/ActionButton';
@@ -77,6 +78,9 @@ export { default as Footer } from './src/presentation/components/molecules/Foote
77
78
  export { default as Autocomplete } from './src/presentation/components/molecules/Autocomplete';
78
79
  export { default as BackgroundSection } from './src/presentation/components/molecules/BackgroundSection';
79
80
  export { default as Popover } from './src/presentation/components/molecules/Popover';
81
+ export { default as UploadArea } from './src/presentation/components/molecules/UploadArea';
82
+ export { default as FileListItem } from './src/presentation/components/molecules/UploadArea/components/FileListItem';
83
+ export { default as FileList } from './src/presentation/components/molecules/UploadArea/components/FileList';
80
84
  export { default as Notification } from './src/presentation/components/molecules/Notification';
81
85
  export { NotificationText } from './src/presentation/components/molecules/Notification';
82
86
  export * from './src/presentation/components/molecules/RowsCard';
@@ -105,5 +109,9 @@ export type { CheckboxProps };
105
109
  export type { Tab };
106
110
  export type { SegmentedButtonProps };
107
111
  export type { SegmentedButtonType };
112
+ export type { FileItem };
113
+ export type { FileListItemProps };
114
+ export type { FileListProps };
115
+ export type { UploadAreaProps };
108
116
  export { sg, GlobalStyles, resetStyles };
109
117
  export { LocalStorageAdapter };