sbwb-ds 3.21.0 → 3.23.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 (76) hide show
  1. package/dist/index.d.ts +8 -0
  2. package/dist/sbwb-ds.js +19091 -18597
  3. package/dist/sbwb-ds.umd.cjs +1299 -1154
  4. package/dist/src/main/assets/icons/index.d.ts +5 -0
  5. package/dist/src/main/helpers/functions/dateFormatterPtBr.d.ts +2 -1
  6. package/dist/src/main/helpers/functions/icons.d.ts +150 -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 +2 -2
  18. package/src/main/assets/icons/ant/link-off.svg +3 -0
  19. package/src/main/assets/icons/ant/lock-fill.svg +3 -0
  20. package/src/main/assets/icons/ant/oil-barrel-fill.svg +3 -0
  21. package/src/main/assets/icons/ant/open-fill.svg +3 -0
  22. package/src/main/assets/icons/ant/plataforma-rds-fill.svg +5 -0
  23. package/src/main/assets/icons/extraLarge/link-off.svg +3 -0
  24. package/src/main/assets/icons/extraLarge/lock-fill.svg +3 -0
  25. package/src/main/assets/icons/extraLarge/oil-barrel-fill.svg +3 -0
  26. package/src/main/assets/icons/extraLarge/open-fill.svg +3 -0
  27. package/src/main/assets/icons/extraLarge/plataforma-rds-fill.svg +5 -0
  28. package/src/main/assets/icons/index.ts +5 -0
  29. package/src/main/assets/icons/large/link-off.svg +3 -0
  30. package/src/main/assets/icons/large/lock-fill.svg +3 -0
  31. package/src/main/assets/icons/large/oil-barrel-fill.svg +3 -0
  32. package/src/main/assets/icons/large/open-fill.svg +3 -0
  33. package/src/main/assets/icons/large/plataforma-rds-fill.svg +5 -0
  34. package/src/main/assets/icons/medium/link-off.svg +3 -0
  35. package/src/main/assets/icons/medium/lock-fill.svg +3 -0
  36. package/src/main/assets/icons/medium/oil-barrel-fill.svg +3 -0
  37. package/src/main/assets/icons/medium/open-fill.svg +3 -0
  38. package/src/main/assets/icons/medium/plataforma-rds-fill.svg +5 -0
  39. package/src/main/assets/icons/small/link-off.svg +3 -0
  40. package/src/main/assets/icons/small/lock-fill.svg +3 -0
  41. package/src/main/assets/icons/small/oil-barrel-fill.svg +3 -0
  42. package/src/main/assets/icons/small/open-fill.svg +3 -0
  43. package/src/main/assets/icons/small/plataforma-rds-fill.svg +5 -0
  44. package/src/main/helpers/functions/dateFormatterPtBr.ts +52 -15
  45. package/src/main/helpers/functions/icons.ts +55 -0
  46. package/src/presentation/components/atoms/ActionButton/index.tsx +1 -1
  47. package/src/presentation/components/atoms/ActionButton/styles.ts +4 -4
  48. package/src/presentation/components/atoms/Button/styles.ts +2 -1
  49. package/src/presentation/components/atoms/Input/index.tsx +18 -2
  50. package/src/presentation/components/atoms/Input/styles.ts +2 -2
  51. package/src/presentation/components/atoms/MenuMultiSelect/index.tsx +3 -3
  52. package/src/presentation/components/atoms/Select/index.tsx +15 -6
  53. package/src/presentation/components/atoms/Select/styles.ts +1 -1
  54. package/src/presentation/components/molecules/Autocomplete/index.tsx +7 -7
  55. package/src/presentation/components/molecules/DataTable/Components/ActionButtonCell/index.tsx +1 -0
  56. package/src/presentation/components/molecules/DataTable/Components/TableCell/TableCell.stories.tsx +2 -113
  57. package/src/presentation/components/molecules/DataTable/Components/TableCell/styles.tsx +15 -1
  58. package/src/presentation/components/molecules/Datepicker/DatePicker.stories.tsx +46 -5
  59. package/src/presentation/components/molecules/Datepicker/components/Header/index.tsx +2 -0
  60. package/src/presentation/components/molecules/Datepicker/components/inputCalendar/index.tsx +4 -2
  61. package/src/presentation/components/molecules/Datepicker/components/inputCalendar/styles.ts +2 -8
  62. package/src/presentation/components/molecules/Datepicker/hooks/useCalendar.tsx +60 -15
  63. package/src/presentation/components/molecules/Datepicker/index.tsx +16 -8
  64. package/src/presentation/components/molecules/MenuSelect/index.tsx +9 -5
  65. package/src/presentation/components/molecules/MultiSelect/MenuMultiSelect/index.tsx +3 -3
  66. package/src/presentation/components/molecules/MultiSelect/MultiSelect.component.tsx +15 -6
  67. package/src/presentation/components/molecules/MultiSelect/styles.ts +1 -1
  68. package/src/presentation/components/molecules/TabBar/index.tsx +3 -3
  69. package/src/presentation/components/molecules/UploadArea/UploadArea.stories.tsx +195 -0
  70. package/src/presentation/components/molecules/UploadArea/UploadArea.styles.ts +187 -0
  71. package/src/presentation/components/molecules/UploadArea/UploadArea.types.ts +46 -0
  72. package/src/presentation/components/molecules/UploadArea/components/FileList.tsx +33 -0
  73. package/src/presentation/components/molecules/UploadArea/components/FileListItem.tsx +79 -0
  74. package/src/presentation/components/molecules/UploadArea/documentation/index.tsx +290 -0
  75. package/src/presentation/components/molecules/UploadArea/hooks/useUploadArea.ts +163 -0
  76. 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 };