pixel-react 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/components/AttachmentButton/AttachmentButton.d.ts +5 -0
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
- package/lib/components/AttachmentButton/index.d.ts +1 -0
- package/lib/components/AttachmentButton/types.d.ts +8 -0
- package/lib/components/RadioButton/radioButtonTypes.d.ts +15 -0
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +2 -1
- package/lib/components/RadioGroup/radioGroupTypes.d.ts +15 -0
- package/lib/components/Select/Select.d.ts +1 -1
- package/lib/components/Select/types.d.ts +4 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Types.d.ts +8 -0
- package/lib/components/TableTree/TableTree.d.ts +1 -0
- package/lib/index.d.ts +27 -3
- package/lib/index.esm.js +399 -580
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +399 -579
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +10 -0
- package/src/assets/Themes/DarkTheme.scss +9 -0
- package/src/assets/icons/add_file.svg +14 -0
- package/src/assets/icons/nlp_help_icon.svg +3 -0
- package/src/assets/icons/notification_icon.svg +3 -0
- package/src/assets/icons/update_icon.svg +3 -0
- package/src/components/AppHeader/AppHeader.scss +56 -0
- package/src/components/AttachmentButton/AttachmentButton.scss +9 -0
- package/src/components/AttachmentButton/AttachmentButton.stories.tsx +76 -0
- package/src/components/AttachmentButton/AttachmentButton.tsx +113 -0
- package/src/components/AttachmentButton/index.ts +1 -0
- package/src/components/AttachmentButton/types.ts +8 -0
- package/src/components/Drawer/Drawer.scss +0 -1
- package/src/components/Icon/iconList.ts +9 -0
- package/src/components/Modal/modal.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.scss +2 -2
- package/src/components/RadioButton/RadioButton.scss +74 -68
- package/src/components/RadioButton/RadioButton.tsx +22 -15
- package/src/components/RadioButton/radioButtonTypes.tsx +18 -0
- package/src/components/RadioGroup/RadioGroup.stories.tsx +42 -1
- package/src/components/RadioGroup/RadioGroup.tsx +3 -0
- package/src/components/RadioGroup/radioGroupTypes.tsx +18 -0
- package/src/components/Select/Select.scss +1 -2
- package/src/components/Select/Select.tsx +3 -2
- package/src/components/Select/types.ts +5 -0
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.scss +5 -5
- package/src/components/SequentialConnectingBranch/components/Branches/Branches.tsx +1 -1
- package/src/components/Table/Table.scss +1 -0
- package/src/components/Table/Table.tsx +28 -13
- package/src/components/Table/Types.ts +8 -0
- package/src/components/TableTree/TableTree.scss +18 -2
- package/src/components/TableTree/TableTree.stories.tsx +9 -51
- package/src/components/TableTree/TableTree.tsx +15 -2
- package/src/index.ts +2 -0
- package/lib/components/AddButton/AddButton.d.ts +0 -5
- package/lib/components/AddButton/AddButton.stories.d.ts +0 -6
- package/lib/components/AddButton/index.d.ts +0 -1
- package/lib/components/AddButton/types.d.ts +0 -4
- package/lib/utils/find/findAndInsert.d.ts +0 -7
- package/lib/utils/find/findAndInsert.stories.d.ts +0 -7
package/lib/tsconfig.tsbuildinfo
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/allprojectsdropdown/allprojectsdropdown.stories.tsx","../src/components/allprojectsdropdown/allprojectsdropdown.tsx","../src/components/allprojectsdropdown/index.ts","../src/components/allprojectsdropdown/types.ts","../src/components/appheader/appheader.stories.tsx","../src/components/appheader/appheader.tsx","../src/components/appheader/index.ts","../src/components/appheader/types.ts","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/dashboarddonutchart/dashboarddonutchart.stories.tsx","../src/components/charts/dashboarddonutchart/dashboarddonutchart.tsx","../src/components/charts/dashboarddonutchart/index.ts","../src/components/charts/dashboarddonutchart/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/piechart/piechart.stories.tsx","../src/components/charts/piechart/piechart.tsx","../src/components/charts/piechart/index.ts","../src/components/charts/piechart/types.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/datepicker/datepicker.stories.tsx","../src/components/datepicker/datepicker.tsx","../src/components/datepicker/timepicker.tsx","../src/components/datepicker/index.ts","../src/components/datepicker/types.ts","../src/components/draganddrop/draganddrop.stories.tsx","../src/components/draganddrop/draganddrop.ts","../src/components/draganddrop/draganddroplist.tsx","../src/components/draganddrop/index.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/ff_captcha/recaptcha.tsx","../src/components/ff_captcha/captcha.stories.tsx","../src/components/ff_captcha/index.ts","../src/components/ff_captcha/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/iconbutton/iconbutton.stories.tsx","../src/components/iconbutton/iconbutton.tsx","../src/components/iconbutton/index.ts","../src/components/iconbutton/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/machineinputfield/machineinputfield.stories.tsx","../src/components/machineinputfield/machineinputfield.tsx","../src/components/machineinputfield/index.ts","../src/components/machineinputfield/types.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/modal/modal.stories.tsx","../src/components/modal/modal.tsx","../src/components/modal/index.tsx","../src/components/modal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/nlpinput/nlpinput.stories.tsx","../src/components/nlpinput/nlpinput.tsx","../src/components/nlpinput/index.ts","../src/components/nlpinput/type.tsx","../src/components/nlpinput/components/nlpdropdown/nlpdropdowntype.ts","../src/components/nlpinput/components/nlpdropdown/nlpdropdown.tsx","../src/components/paper/paper.stories.tsx","../src/components/paper/paper.tsx","../src/components/paper/index.ts","../src/components/paper/types.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/sequentialconnectingbranch/sequentialconnectingbranch.stories.tsx","../src/components/sequentialconnectingbranch/sequentialconnectingbranch.tsx","../src/components/sequentialconnectingbranch/index.ts","../src/components/sequentialconnectingbranch/types.ts","../src/components/sequentialconnectingbranch/components/addbrowsermodal/addbrowsermodal.tsx","../src/components/sequentialconnectingbranch/components/addbrowsermodal/types.ts","../src/components/sequentialconnectingbranch/components/branches/branches.tsx","../src/components/sequentialconnectingbranch/components/branches/types.ts","../src/components/sequentialconnectingbranch/components/connectingbranches/connectingbranches.tsx","../src/components/sequentialconnectingbranch/components/connectingbranches/types.ts","../src/components/sequentialconnectingbranch/components/datasetlistmodal/datasetlistmodal.tsx","../src/components/sequentialconnectingbranch/components/datasetlistmodal/types.ts","../src/components/statedropdown/statedropdown.stories.tsx","../src/components/statedropdown/statedropdown.tsx","../src/components/statedropdown/statedropdowntypes.tsx","../src/components/statedropdown/index.ts","../src/components/statusbutton/statusbutton.stories.tsx","../src/components/statusbutton/statusbutton.tsx","../src/components/statusbutton/index.ts","../src/components/statusbutton/types.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/components/variableinput/variableinput.stories.tsx","../src/components/variableinput/variableinput.tsx","../src/components/variableinput/index.ts","../src/components/variableinput/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/comparearrays/comparearrays.stories.tsx","../src/utils/comparearrays/comparearrays.ts","../src/utils/compareobjects/compareobjects.stories.tsx","../src/utils/compareobjects/compareobjects.ts","../src/utils/debounce/debounce.stories.tsx","../src/utils/debounce/debounce.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/findandinsert/findandinsert.stories.tsx","../src/utils/findandinsert/findandinsert.ts","../src/utils/getencrypteddata/getencrypteddata.stories.tsx","../src/utils/getencrypteddata/getencrypteddata.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/throttle/throttle.stories.tsx","../src/utils/throttle/throttle.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.3"}
|
1
|
+
{"root":["../src/index.ts","../src/styleguide/colorpalette/colorpalette.stories.tsx","../src/styleguide/colorpalette/colorpalette.tsx","../src/styleguide/colorpalette/colorpalettelist.ts","../src/styleguide/colorpalette/index.ts","../src/styleguide/colorpalette/types.ts","../src/styleguide/typography/typography.stories.tsx","../src/styleguide/typography/typography.tsx","../src/styleguide/typography/typographylist.ts","../src/styleguide/typography/types.ts","../src/assets/utils/functionutils.ts","../src/components/accordion/accordion.stories.tsx","../src/components/accordion/accordion.tsx","../src/components/accordion/index.ts","../src/components/accordion/types.ts","../src/components/addresourcebutton/addbutton.stories.tsx","../src/components/addresourcebutton/addbutton.tsx","../src/components/addresourcebutton/index.ts","../src/components/addresourcebutton/type.ts","../src/components/addresourcebutton/arrowsbutton/arrowsbutton.tsx","../src/components/allprojectsdropdown/allprojectsdropdown.stories.tsx","../src/components/allprojectsdropdown/allprojectsdropdown.tsx","../src/components/allprojectsdropdown/index.ts","../src/components/allprojectsdropdown/types.ts","../src/components/appheader/appheader.stories.tsx","../src/components/appheader/appheader.tsx","../src/components/appheader/index.ts","../src/components/appheader/types.ts","../src/components/attachmentbutton/attachmentbutton.stories.tsx","../src/components/attachmentbutton/attachmentbutton.tsx","../src/components/attachmentbutton/index.ts","../src/components/attachmentbutton/types.ts","../src/components/button/button.stories.tsx","../src/components/button/button.tsx","../src/components/button/index.ts","../src/components/button/types.ts","../src/components/charts/dashboarddonutchart/dashboarddonutchart.stories.tsx","../src/components/charts/dashboarddonutchart/dashboarddonutchart.tsx","../src/components/charts/dashboarddonutchart/index.ts","../src/components/charts/dashboarddonutchart/types.ts","../src/components/charts/donutchart/donutchart.stories.tsx","../src/components/charts/donutchart/donutchart.tsx","../src/components/charts/donutchart/index.ts","../src/components/charts/donutchart/type.ts","../src/components/charts/piechart/piechart.stories.tsx","../src/components/charts/piechart/piechart.tsx","../src/components/charts/piechart/index.ts","../src/components/charts/piechart/types.ts","../src/components/charts/radialchart/radialchart.stories.tsx","../src/components/charts/radialchart/radialchart.tsx","../src/components/charts/radialchart/index.ts","../src/components/charts/radialchart/types.ts","../src/components/checkbox/checkbox.stories.tsx","../src/components/checkbox/checkbox.tsx","../src/components/checkbox/index.ts","../src/components/checkbox/types.ts","../src/components/chip/chip.stories.tsx","../src/components/chip/chip.tsx","../src/components/chip/index.ts","../src/components/chip/types.ts","../src/components/datepicker/datepicker.stories.tsx","../src/components/datepicker/datepicker.tsx","../src/components/datepicker/timepicker.tsx","../src/components/datepicker/index.ts","../src/components/datepicker/types.ts","../src/components/draganddrop/draganddrop.stories.tsx","../src/components/draganddrop/draganddrop.ts","../src/components/draganddrop/draganddroplist.tsx","../src/components/draganddrop/index.ts","../src/components/drawer/drawer.stories.tsx","../src/components/drawer/drawer.tsx","../src/components/drawer/types.ts","../src/components/drawer/index.ts","../src/components/expandablemenu/expandablemenu.stories.tsx","../src/components/expandablemenu/expandablemenu.tsx","../src/components/expandablemenu/index.ts","../src/components/expandablemenu/types.ts","../src/components/ff_captcha/recaptcha.tsx","../src/components/ff_captcha/captcha.stories.tsx","../src/components/ff_captcha/index.ts","../src/components/ff_captcha/types.ts","../src/components/filedropzone/dropzone.tsx","../src/components/filedropzone/filedropzone.stories.tsx","../src/components/filedropzone/filedropzone.tsx","../src/components/filedropzone/filepreview.tsx","../src/components/filedropzone/index.ts","../src/components/filedropzone/types.ts","../src/components/form/form.stories.tsx","../src/components/form/form.tsx","../src/components/form/index.ts","../src/components/form/types.ts","../src/components/gridlayout/gridlayout.stories.tsx","../src/components/gridlayout/gridlayout.tsx","../src/components/gridlayout/index.ts","../src/components/gridlayout/types.ts","../src/components/highlighttext/highlighttext.stories.tsx","../src/components/highlighttext/highlighttext.tsx","../src/components/highlighttext/index.ts","../src/components/highlighttext/types.ts","../src/components/icon/icon.stories.tsx","../src/components/icon/icon.tsx","../src/components/icon/iconlist.ts","../src/components/icon/index.ts","../src/components/icon/types.ts","../src/components/iconbutton/iconbutton.stories.tsx","../src/components/iconbutton/iconbutton.tsx","../src/components/iconbutton/index.ts","../src/components/iconbutton/types.ts","../src/components/input/input.stories.tsx","../src/components/input/input.tsx","../src/components/input/index.ts","../src/components/input/types.ts","../src/components/inputwithdropdown/inputwithdropdown.stories.tsx","../src/components/inputwithdropdown/inputwithdropdown.tsx","../src/components/inputwithdropdown/index.ts","../src/components/inputwithdropdown/types.ts","../src/components/lazyload/lazyload.stories.tsx","../src/components/lazyload/lazyload.ts","../src/components/lazyload/lazyloading.tsx","../src/components/lazyload/index.ts","../src/components/machineinputfield/machineinputfield.stories.tsx","../src/components/machineinputfield/machineinputfield.tsx","../src/components/machineinputfield/index.ts","../src/components/machineinputfield/types.ts","../src/components/menuoption/menuoption.stories.tsx","../src/components/menuoption/menuoption.tsx","../src/components/menuoption/index.ts","../src/components/menuoption/types.ts","../src/components/minimodal/minimodal.stories.tsx","../src/components/minimodal/minimodal.tsx","../src/components/minimodal/index.ts","../src/components/minimodal/types.ts","../src/components/modal/modal.stories.tsx","../src/components/modal/modal.tsx","../src/components/modal/index.tsx","../src/components/modal/types.ts","../src/components/multiselect/dropdown.tsx","../src/components/multiselect/multiselect.stories.tsx","../src/components/multiselect/multiselect.tsx","../src/components/multiselect/multiselecttypes.ts","../src/components/multiselect/dropdowntypes.ts","../src/components/multiselect/index.ts","../src/components/nlpinput/nlpinput.stories.tsx","../src/components/nlpinput/nlpinput.tsx","../src/components/nlpinput/index.ts","../src/components/nlpinput/type.tsx","../src/components/nlpinput/components/nlpdropdown/nlpdropdowntype.ts","../src/components/nlpinput/components/nlpdropdown/nlpdropdown.tsx","../src/components/paper/paper.stories.tsx","../src/components/paper/paper.tsx","../src/components/paper/index.ts","../src/components/paper/types.ts","../src/components/radiobutton/radiobutton.stories.tsx","../src/components/radiobutton/radiobutton.tsx","../src/components/radiobutton/index.ts","../src/components/radiobutton/radiobuttontypes.tsx","../src/components/radiogroup/radiogroup.stories.tsx","../src/components/radiogroup/radiogroup.tsx","../src/components/radiogroup/index.ts","../src/components/radiogroup/radiogrouptypes.tsx","../src/components/search/search.stories.tsx","../src/components/search/search.tsx","../src/components/search/index.ts","../src/components/search/types.ts","../src/components/select/select.stories.tsx","../src/components/select/select.tsx","../src/components/select/index.ts","../src/components/select/types.ts","../src/components/select/components/dropdown/dropdown.tsx","../src/components/select/components/dropdown/dropdowntypes.ts","../src/components/sequentialconnectingbranch/sequentialconnectingbranch.stories.tsx","../src/components/sequentialconnectingbranch/sequentialconnectingbranch.tsx","../src/components/sequentialconnectingbranch/index.ts","../src/components/sequentialconnectingbranch/types.ts","../src/components/sequentialconnectingbranch/components/addbrowsermodal/addbrowsermodal.tsx","../src/components/sequentialconnectingbranch/components/addbrowsermodal/types.ts","../src/components/sequentialconnectingbranch/components/branches/branches.tsx","../src/components/sequentialconnectingbranch/components/branches/types.ts","../src/components/sequentialconnectingbranch/components/connectingbranches/connectingbranches.tsx","../src/components/sequentialconnectingbranch/components/connectingbranches/types.ts","../src/components/sequentialconnectingbranch/components/datasetlistmodal/datasetlistmodal.tsx","../src/components/sequentialconnectingbranch/components/datasetlistmodal/types.ts","../src/components/statedropdown/statedropdown.stories.tsx","../src/components/statedropdown/statedropdown.tsx","../src/components/statedropdown/statedropdowntypes.tsx","../src/components/statedropdown/index.ts","../src/components/statusbutton/statusbutton.stories.tsx","../src/components/statusbutton/statusbutton.tsx","../src/components/statusbutton/index.ts","../src/components/statusbutton/types.ts","../src/components/table/table.stories.tsx","../src/components/table/table.tsx","../src/components/table/types.ts","../src/components/table/index.ts","../src/components/tabletree/tabletree.stories.tsx","../src/components/tabletree/tabletree.tsx","../src/components/tabletree/data.ts","../src/components/tabletree/index.ts","../src/components/tabs/tabs.stories.tsx","../src/components/tabs/tabs.tsx","../src/components/tabs/index.ts","../src/components/tabs/types.ts","../src/components/textarea/textarea.stories.tsx","../src/components/textarea/textarea.tsx","../src/components/textarea/types.ts","../src/components/textarea/index.tsx","../src/components/themeprovider/themeprovider.tsx","../src/components/themeprovider/index.ts","../src/components/themeprovider/types.ts","../src/components/toast/toast.stories.tsx","../src/components/toast/toast.tsx","../src/components/toast/index.ts","../src/components/toast/types.ts","../src/components/toggle/toggle.stories.tsx","../src/components/toggle/toggle.tsx","../src/components/toggle/index.ts","../src/components/toggle/types.ts","../src/components/tooltip/tooltip.stories.tsx","../src/components/tooltip/tooltip.tsx","../src/components/tooltip/index.ts","../src/components/tooltip/types.ts","../src/components/typography/typography.stories.tsx","../src/components/typography/typography.tsx","../src/components/typography/index.ts","../src/components/typography/types.ts","../src/components/variableinput/variableinput.stories.tsx","../src/components/variableinput/variableinput.tsx","../src/components/variableinput/index.ts","../src/components/variableinput/types.ts","../src/hooks/useclickoutside.tsx","../src/hooks/usefiledropzone.tsx","../src/hooks/useportalposition.tsx","../src/hooks/usetheme.tsx","../src/hooks/keyboardevents/useesckeyevent.tsx","../src/utils/tablecell/tablecell.ts","../src/utils/checkempty/checkempty.stories.tsx","../src/utils/checkempty/checkempty.ts","../src/utils/comparearrays/comparearrays.stories.tsx","../src/utils/comparearrays/comparearrays.ts","../src/utils/compareobjects/compareobjects.stories.tsx","../src/utils/compareobjects/compareobjects.ts","../src/utils/debounce/debounce.stories.tsx","../src/utils/debounce/debounce.ts","../src/utils/ffid/ffid.stories.tsx","../src/utils/ffid/ffid.ts","../src/utils/findandinsert/findandinsert.stories.tsx","../src/utils/findandinsert/findandinsert.ts","../src/utils/getencrypteddata/getencrypteddata.stories.tsx","../src/utils/getencrypteddata/getencrypteddata.ts","../src/utils/getextension/getextension.stories.tsx","../src/utils/getextension/getextension.ts","../src/utils/throttle/throttle.stories.tsx","../src/utils/throttle/throttle.ts","../src/utils/truncatetext/truncatetext.stories.tsx","../src/utils/truncatetext/truncatetext.ts"],"version":"5.6.3"}
|
package/package.json
CHANGED
@@ -180,6 +180,11 @@ $base-theme: (
|
|
180
180
|
modal-header-text-color: #ffc600,
|
181
181
|
switch-license-text-color: #61296a,
|
182
182
|
switch-license-header-text-color: #610b86,
|
183
|
+
dotted-border-color: #000000,
|
184
|
+
select-license-header-text-color: #5f2868,
|
185
|
+
in-active-button-color: #808080,
|
186
|
+
button-background-gradient-color: #9c1ebb,
|
187
|
+
details-page-value-color: #808080,
|
183
188
|
// TODO:: Need to change the color code values of below 7 color (N/A in DS)
|
184
189
|
ff-machine-input-field-border-color: #f1ebf2,
|
185
190
|
ff-machine-input-field-text-color: #1e161f,
|
@@ -188,6 +193,11 @@ $base-theme: (
|
|
188
193
|
ff-connecting-branch-modal-border: #e0e0e0,
|
189
194
|
ff-connecting-branch-scope-color: #079455,
|
190
195
|
ff-connecting-branch-delete-color: #e42525,
|
196
|
+
ff-app-header-menu-border-bottom-color: #ffffff,
|
197
|
+
ff-app-header-submenu-border-bottom-color:
|
198
|
+
linear-gradient(90deg, #592f7c 0%, #741ebb 100%),
|
199
|
+
ff-delete-button-attachment: #a91224,
|
200
|
+
email-table-border-color: #959595,
|
191
201
|
);
|
192
202
|
:root {
|
193
203
|
@each $key, $value in $base-theme {
|
@@ -189,6 +189,15 @@ $dark-theme: (
|
|
189
189
|
modal-header-text-color: #ffc600,
|
190
190
|
switch-license-text-color: #61296a,
|
191
191
|
switch-license-header-text-color: #610b86,
|
192
|
+
dotted-border-color:#000000,
|
193
|
+
select-license-header-text-color:#5F2868,
|
194
|
+
in-active-button-color:#808080,
|
195
|
+
button-background-gradient-color:#9C1EBB,
|
196
|
+
ff-app-header-menu-border-bottom-color:#FFFFFF,
|
197
|
+
ff-app-header-submenu-border-bottom-color: linear-gradient(90deg, #592F7C 0%, #741EBB 100%),
|
198
|
+
details-page-value-color: #808080,
|
199
|
+
ff-delete-button-attachment: #a91224,
|
200
|
+
email-table-border-color: #959595,
|
192
201
|
);
|
193
202
|
:root {
|
194
203
|
@each $key, $value in $dark-theme {
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<g clip-path="url(#clip0_911_11481)">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd"
|
4
|
+
d="M19.1307 13.4822C19.6597 13.4822 20.0885 13.0534 20.0885 12.5243C20.0885 11.9953 19.6597 11.5665 19.1307 11.5665L12.9579 11.5665L12.9579 5.39368C12.9579 4.86467 12.529 4.43582 12 4.43582C11.471 4.43582 11.0421 4.86467 11.0421 5.39368L11.0421 11.5665L4.86934 11.5665C4.34033 11.5665 3.91148 11.9953 3.91148 12.5243C3.91148 13.0534 4.34032 13.4822 4.86934 13.4822L11.0421 13.4822V19.655C11.0421 20.184 11.471 20.6129 12 20.6129C12.529 20.6129 12.9579 20.184 12.9579 19.655V13.4822L19.1307 13.4822Z"
|
5
|
+
fill="currentColor" />
|
6
|
+
</g>
|
7
|
+
<defs>
|
8
|
+
<clipPath id="clip0_911_11481">
|
9
|
+
<path
|
10
|
+
d="M0 4.52441C0 2.31528 1.79086 0.524414 4 0.524414H20C22.2091 0.524414 24 2.31528 24 4.52441V20.5244C24 22.7336 22.2091 24.5244 20 24.5244H4C1.79086 24.5244 0 22.7336 0 20.5244V4.52441Z"
|
11
|
+
fill="currentColor" />
|
12
|
+
</clipPath>
|
13
|
+
</defs>
|
14
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 10.8281C16 8.49597 14.4286 6.45837 12.2126 5.84436C12.0734 2.59814 9.38928 0 6.10938 0C2.7406 0 0 2.7406 0 6.10938C0 7.20728 0.292236 8.27625 0.847168 9.21472L0.0224609 12.1962L3.00403 11.3716C3.8667 11.8817 4.83984 12.1691 5.84424 12.2124C6.45813 14.4285 8.49585 16 10.8281 16C11.759 16 12.6643 15.7521 13.4597 15.281L15.9774 15.9774L15.281 13.4597C15.7521 12.6643 16 11.759 16 10.8281ZM3.15198 10.3579L1.36707 10.8517L1.86084 9.06677L1.74829 8.89075C1.2179 8.06091 0.9375 7.09912 0.9375 6.10938C0.9375 3.25757 3.25757 0.9375 6.10938 0.9375C8.96118 0.9375 11.2812 3.25757 11.2812 6.10938C11.2812 8.96118 8.96118 11.2812 6.10938 11.2812C5.11963 11.2812 4.15796 11.0009 3.328 10.4705L3.15198 10.3579ZM14.6329 14.6329L13.3085 14.2665L13.1316 14.3816C12.4459 14.827 11.6493 15.0625 10.8281 15.0625C8.99512 15.0625 7.3844 13.8773 6.81372 12.1779C9.62061 11.8542 11.8542 9.62061 12.178 6.8136C13.8773 7.3844 15.0625 8.99512 15.0625 10.8281C15.0625 11.6493 14.827 12.4459 14.3816 13.1316L14.2665 13.3085L14.6329 14.6329ZM6.57812 8.46875V9.40625H5.64062V8.46875H6.57812ZM6.7417 5.37952C6.93848 5.19946 7.04687 4.95374 7.04687 4.6875C7.04687 4.17053 6.62634 3.75 6.10937 3.75C5.59241 3.75 5.17187 4.17053 5.17187 4.6875H4.23437C4.23437 3.65356 5.07544 2.8125 6.10937 2.8125C7.14331 2.8125 7.98437 3.65356 7.98437 4.6875C7.98437 5.21228 7.76208 5.71655 7.37463 6.07117L6.57812 6.80017V7.53125H5.64062V6.38733L6.7417 5.37952Z" fill="currentColor"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M12.9691 10.1187V7.07871C12.9691 4.82065 11.5284 2.85163 9.54476 2.11615C9.56791 2.00001 9.58076 1.88132 9.58076 1.76259C9.5808 0.789693 8.79352 0 7.82359 0C6.85365 0 6.06637 0.789693 6.06637 1.76259C6.06637 1.87873 6.07921 1.99483 6.09979 2.10581C5.41803 2.34839 4.78769 2.7329 4.24999 3.25419C3.23632 4.23484 2.67803 5.55354 2.67803 6.96774V10.1187C2.67803 10.2297 2.58798 10.3226 2.47477 10.3226C1.52542 10.3226 0.714972 11.04 0.627496 11.9536C0.578602 12.462 0.745864 12.9678 1.08804 13.3445C1.42763 13.7187 1.91391 13.9355 2.42072 13.9355H5.52351C5.65214 15.0942 6.63496 16 7.82359 16C9.01221 16 9.99503 15.0942 10.1237 13.9355H13.2265C13.7333 13.9355 14.2195 13.7187 14.5591 13.3445C14.8987 12.9678 15.066 12.462 15.0197 11.9536C14.9322 11.04 14.1192 10.3226 13.1724 10.3226C13.0592 10.3226 12.9691 10.2322 12.9691 10.1187ZM7.82359 1.03224C8.22492 1.03224 8.55167 1.35998 8.55167 1.76255C8.55167 1.79607 8.54651 1.82706 8.54136 1.86059C8.3664 1.83477 8.18887 1.81672 8.01134 1.81155C7.70517 1.8012 7.40416 1.82189 7.10573 1.86318C7.10057 1.82965 7.09542 1.79866 7.09542 1.76513C7.0955 1.35998 7.42225 1.03224 7.82359 1.03224ZM7.82359 14.9677C7.20356 14.9677 6.68386 14.5238 6.56291 13.9355H9.08422C8.96336 14.5239 8.44365 14.9677 7.82359 14.9677ZM13.9957 12.0516C14.0163 12.2736 13.9468 12.4877 13.8002 12.6503C13.6484 12.8129 13.4477 12.9032 13.2265 12.9032H2.42076C2.19949 12.9032 1.99885 12.8129 1.84959 12.6503C1.70037 12.4877 1.6309 12.2735 1.65148 12.0516C1.68748 11.6619 2.05028 11.3548 2.47477 11.3548C3.154 11.3548 3.70713 10.8 3.70713 10.1187V6.96774C3.70713 5.83741 4.15478 4.78195 4.96522 3.99742C5.73962 3.24647 6.74818 2.8387 7.82359 2.8387C7.87506 2.8387 7.92391 2.8387 7.97538 2.84128C10.1597 2.91869 11.94 4.82065 11.94 7.07871V10.1187C11.94 10.8 12.4932 11.3548 13.1724 11.3548C13.5969 11.3548 13.9571 11.6619 13.9957 12.0516Z" fill="currentColor"/>
|
3
|
+
</svg>
|
@@ -0,0 +1,3 @@
|
|
1
|
+
<svg width="16" height="10" viewBox="0 0 16 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M7.71572 9.02032C7.87816 9.18275 8.04059 9.26397 8.28425 9.26397C8.5279 9.26397 8.77156 9.18275 8.85277 9.02032L15.7563 2.11676C16.0812 1.79189 16.0812 1.30458 15.7563 0.979708C15.4315 0.654835 14.9441 0.654835 14.6193 0.979708L8.28425 7.31473L5.44161 4.47209C5.11673 4.14722 4.62943 4.14722 4.30455 4.47209C3.97968 4.79697 3.97968 5.28428 4.30455 5.60915L7.71572 9.02032ZM3.65482 9.02033C3.81726 9.18277 3.9797 9.26399 4.22335 9.26399C4.46701 9.26399 4.71066 9.18277 4.79188 9.02033C5.11675 8.69546 5.11675 8.20815 4.79188 7.88328L1.38071 4.47211C1.05584 4.14724 0.568528 4.14724 0.243655 4.47211C-0.0812183 4.79698 -0.0812183 5.28429 0.243655 5.60917L3.65482 9.02033ZM7.95939 4.79698C8.12183 4.95942 8.28426 5.04064 8.52792 5.04064C8.77157 5.04064 8.93401 4.95942 9.09645 4.79698L11.6954 2.11678C12.0203 1.79191 12.0203 1.3046 11.6954 0.979724C11.3706 0.65485 10.8832 0.65485 10.5584 0.979724L7.95939 3.65993C7.63452 3.9848 7.63452 4.47211 7.95939 4.79698Z" fill="currentColor"/>
|
3
|
+
</svg>
|
@@ -25,6 +25,22 @@
|
|
25
25
|
color: var(--ff-header-text-color);
|
26
26
|
cursor: pointer;
|
27
27
|
display: flex;
|
28
|
+
position: relative;
|
29
|
+
&:not(.ff-app-header-nav-bar-item--selected):hover::after {
|
30
|
+
animation: oscillate-border-width 0.5s ease-in-out forwards;
|
31
|
+
}
|
32
|
+
&::after {
|
33
|
+
content: '';
|
34
|
+
position: absolute;
|
35
|
+
bottom: 0;
|
36
|
+
left: 25%;
|
37
|
+
width: 0%;
|
38
|
+
height: 2px;
|
39
|
+
background: var(--ff-app-header-menu-border-bottom-color);
|
40
|
+
border-radius: 4px;
|
41
|
+
transition: width 0.15s ease-in-out;
|
42
|
+
}
|
43
|
+
|
28
44
|
&--selected {
|
29
45
|
padding: 3px 6px 3px 3px;
|
30
46
|
background-color: var(--primary-icon-color);
|
@@ -40,9 +56,35 @@
|
|
40
56
|
.ff-app-header-nav-bar-submenu-item {
|
41
57
|
color: var(--ff-header-submenu-text-color);
|
42
58
|
align-content: center;
|
59
|
+
position: relative;
|
60
|
+
&:not(.ff-app-header-nav-bar-submenu-item--selected):hover::after {
|
61
|
+
animation: oscillate-border-width 0.5s ease-in-out forwards;
|
62
|
+
}
|
63
|
+
&::after {
|
64
|
+
content: '';
|
65
|
+
position: absolute;
|
66
|
+
bottom: 0;
|
67
|
+
left: 25%;
|
68
|
+
width: 0%;
|
69
|
+
height: 2px;
|
70
|
+
background:var(--ff-app-header-submenu-border-bottom-color);
|
71
|
+
border-radius: 4px;
|
72
|
+
transition: width 0.15s ease-in-out;
|
73
|
+
}
|
43
74
|
padding-left: 8px;
|
44
75
|
&--selected{
|
45
76
|
color: var(--ff-header-submenu-highlight-text-color);
|
77
|
+
&::after {
|
78
|
+
content: '';
|
79
|
+
position: absolute;
|
80
|
+
bottom: 0;
|
81
|
+
left: 10%;
|
82
|
+
width: 90%;
|
83
|
+
height: 2px;
|
84
|
+
border-radius: 4px;
|
85
|
+
box-shadow: 0px 1px 0.2px 0px #00000029;
|
86
|
+
background: var(--ff-app-header-submenu-border-bottom-color);
|
87
|
+
}
|
46
88
|
}
|
47
89
|
}
|
48
90
|
.ff-app-header-quickmenu-container {
|
@@ -66,3 +108,17 @@
|
|
66
108
|
padding: 8px;
|
67
109
|
}
|
68
110
|
}
|
111
|
+
@keyframes oscillate-border-width {
|
112
|
+
0% {
|
113
|
+
width: 50%;
|
114
|
+
left: 25%;
|
115
|
+
}
|
116
|
+
50% {
|
117
|
+
width: 70%;
|
118
|
+
left: 15%;
|
119
|
+
}
|
120
|
+
100% {
|
121
|
+
width: 50%;
|
122
|
+
left: 25%;
|
123
|
+
}
|
124
|
+
}
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { useState } from 'react';
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
3
|
+
import AttachmentButton from './AttachmentButton';
|
4
|
+
|
5
|
+
const meta: Meta<typeof AttachmentButton> = {
|
6
|
+
title: 'Components/AttachmentButton',
|
7
|
+
component: AttachmentButton,
|
8
|
+
argTypes: {
|
9
|
+
onFilesChange: { action: 'files changed' },
|
10
|
+
disabled: { control: 'boolean' },
|
11
|
+
maxFileSizeMB: { control: 'number' },
|
12
|
+
maxFiles: { control: 'number' },
|
13
|
+
},
|
14
|
+
};
|
15
|
+
|
16
|
+
type Story = StoryObj<typeof AttachmentButton>;
|
17
|
+
|
18
|
+
const defaultArgs = {
|
19
|
+
disabled: false,
|
20
|
+
maxFileSizeMB: 5,
|
21
|
+
maxFiles: 10,
|
22
|
+
};
|
23
|
+
|
24
|
+
export const Default: Story = {
|
25
|
+
args: {
|
26
|
+
...defaultArgs,
|
27
|
+
label: 'Upload Files',
|
28
|
+
},
|
29
|
+
render: (args) => {
|
30
|
+
const [selectedFiles, setSelectedFiles] = useState<File[]>([]);
|
31
|
+
|
32
|
+
const handleFilesChange = (files: File[]) => {
|
33
|
+
setSelectedFiles(files);
|
34
|
+
args.onFilesChange(files);
|
35
|
+
};
|
36
|
+
|
37
|
+
return (
|
38
|
+
<AttachmentButton
|
39
|
+
{...args}
|
40
|
+
selectedFiles={selectedFiles}
|
41
|
+
onFilesChange={handleFilesChange}
|
42
|
+
/>
|
43
|
+
);
|
44
|
+
},
|
45
|
+
};
|
46
|
+
|
47
|
+
export const SmallFileLimit: Story = {
|
48
|
+
args: {
|
49
|
+
...defaultArgs,
|
50
|
+
label: 'Upload Files (2 MB Max)',
|
51
|
+
maxFileSizeMB: 2,
|
52
|
+
maxFiles: 5,
|
53
|
+
},
|
54
|
+
render: Default.render,
|
55
|
+
};
|
56
|
+
|
57
|
+
export const LargeFileLimit: Story = {
|
58
|
+
args: {
|
59
|
+
...defaultArgs,
|
60
|
+
label: 'Upload Large Files (20 MB Max)',
|
61
|
+
maxFileSizeMB: 20,
|
62
|
+
maxFiles: 5,
|
63
|
+
},
|
64
|
+
render: Default.render,
|
65
|
+
};
|
66
|
+
|
67
|
+
export const DisabledUploader: Story = {
|
68
|
+
args: {
|
69
|
+
...defaultArgs,
|
70
|
+
label: 'Disabled Uploader',
|
71
|
+
disabled: true,
|
72
|
+
},
|
73
|
+
render: Default.render,
|
74
|
+
};
|
75
|
+
|
76
|
+
export default meta;
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import React, { useRef, useState } from 'react';
|
2
|
+
import Typography from '../Typography';
|
3
|
+
import Button from '../Button';
|
4
|
+
import Toaster from '../Toast';
|
5
|
+
import Icon from '../Icon';
|
6
|
+
import { AttachmentUploaderProps } from './types';
|
7
|
+
import './AttachmentButton.scss';
|
8
|
+
|
9
|
+
const AttachmentButton: React.FC<AttachmentUploaderProps> = ({
|
10
|
+
label,
|
11
|
+
selectedFiles,
|
12
|
+
onFilesChange,
|
13
|
+
disabled = false,
|
14
|
+
maxFileSizeMB = 5, // Default to 5 MB if not provided
|
15
|
+
maxFiles = 10, // Default to 10 files if not provided
|
16
|
+
}) => {
|
17
|
+
const fileInputRef = useRef<HTMLInputElement | null>(null);
|
18
|
+
const [fileError, setFileError] = useState<string>('');
|
19
|
+
const maxFileSizeBytes = maxFileSizeMB * 1024 * 1024;
|
20
|
+
|
21
|
+
const handleAttachmentClick = () => {
|
22
|
+
fileInputRef.current?.click();
|
23
|
+
};
|
24
|
+
|
25
|
+
const handleFileChange = () => {
|
26
|
+
setFileError('');
|
27
|
+
if (fileInputRef.current?.files) {
|
28
|
+
const files = Array.from(fileInputRef.current.files);
|
29
|
+
const duplicateFiles = files.filter((file) =>
|
30
|
+
selectedFiles.some((selectedFile) => selectedFile.name === file.name)
|
31
|
+
);
|
32
|
+
if (duplicateFiles.length > 0) {
|
33
|
+
setFileError('This file is already selected.');
|
34
|
+
fileInputRef.current.value = '';
|
35
|
+
return;
|
36
|
+
}
|
37
|
+
if (selectedFiles.length + files.length > maxFiles) {
|
38
|
+
setFileError(`You can only select up to ${maxFiles} files.`);
|
39
|
+
fileInputRef.current.value = '';
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
const oversizedFiles = files.filter(
|
43
|
+
(file) => file.size > maxFileSizeBytes
|
44
|
+
);
|
45
|
+
if (oversizedFiles.length > 0) {
|
46
|
+
setFileError(`Each file must be less than ${maxFileSizeMB} MB.`);
|
47
|
+
fileInputRef.current.value = '';
|
48
|
+
return;
|
49
|
+
}
|
50
|
+
onFilesChange([...selectedFiles, ...files]);
|
51
|
+
fileInputRef.current.value = '';
|
52
|
+
}
|
53
|
+
};
|
54
|
+
|
55
|
+
const handleDeleteFile = (index: number) => {
|
56
|
+
const updatedFiles = [...selectedFiles];
|
57
|
+
updatedFiles.splice(index, 1);
|
58
|
+
onFilesChange(updatedFiles);
|
59
|
+
};
|
60
|
+
|
61
|
+
return (
|
62
|
+
<div>
|
63
|
+
<Typography fontWeight="semi-bold">{label}</Typography>
|
64
|
+
{selectedFiles.length === 0 && (
|
65
|
+
<Button
|
66
|
+
variant="primary"
|
67
|
+
label="Select Files"
|
68
|
+
size="medium"
|
69
|
+
onClick={handleAttachmentClick}
|
70
|
+
disabled={disabled}
|
71
|
+
/>
|
72
|
+
)}
|
73
|
+
<input
|
74
|
+
type="file"
|
75
|
+
ref={fileInputRef}
|
76
|
+
className="ff-input-field"
|
77
|
+
onChange={handleFileChange}
|
78
|
+
multiple
|
79
|
+
accept="*"
|
80
|
+
/>
|
81
|
+
{fileError && (
|
82
|
+
<Toaster
|
83
|
+
isOpen={!!fileError}
|
84
|
+
variant="info"
|
85
|
+
toastTitle="Error"
|
86
|
+
toastMessage={fileError}
|
87
|
+
zIndex={10000000}
|
88
|
+
/>
|
89
|
+
)}
|
90
|
+
{selectedFiles.map((file, index) => (
|
91
|
+
<div key={file.name} className="ff-attachment-files">
|
92
|
+
<Typography color="var(--brand-color)">{file.name}</Typography>
|
93
|
+
<Icon
|
94
|
+
name="delete"
|
95
|
+
color="var(--ff-delete-button-attachment)"
|
96
|
+
onClick={() => handleDeleteFile(index)}
|
97
|
+
/>
|
98
|
+
{index === selectedFiles.length - 1 &&
|
99
|
+
selectedFiles.length < maxFiles && (
|
100
|
+
<Icon
|
101
|
+
name="add_file"
|
102
|
+
height={24}
|
103
|
+
width={24}
|
104
|
+
onClick={handleAttachmentClick}
|
105
|
+
/>
|
106
|
+
)}
|
107
|
+
</div>
|
108
|
+
))}
|
109
|
+
</div>
|
110
|
+
);
|
111
|
+
};
|
112
|
+
|
113
|
+
export default AttachmentButton;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './AttachmentButton';
|
@@ -89,6 +89,11 @@ import AppSwitchIcon from '../../assets/icons/app_switch.svg?react';
|
|
89
89
|
import UserProfile from '../../assets/icons/user_profile.svg?react';
|
90
90
|
import ContinueSignIn from '../../assets/icons/continue_without_sign.svg?react';
|
91
91
|
import CloudServerHost from '../../assets/icons/cloud_server_host_icon.svg?react';
|
92
|
+
import NotificationIcon from '../../assets/icons/notification_icon.svg?react';
|
93
|
+
import NLPHelpIcon from '../../assets/icons/nlp_help_icon.svg?react';
|
94
|
+
import UpdateIcon from '../../assets/icons/update_icon.svg?react';
|
95
|
+
import AddFile from '../../assets/icons/add_file.svg?react';
|
96
|
+
|
92
97
|
|
93
98
|
//icons
|
94
99
|
Components['delete_info'] = DeleteInfoIcon;
|
@@ -178,5 +183,9 @@ Components['app_switch'] = AppSwitchIcon;
|
|
178
183
|
Components['user_profile'] = UserProfile;
|
179
184
|
Components['continue_without_signin'] = ContinueSignIn;
|
180
185
|
Components['cloud_server_host'] = CloudServerHost;
|
186
|
+
Components['notification_icon'] = NotificationIcon;
|
187
|
+
Components['nlp_help_icon'] = NLPHelpIcon;
|
188
|
+
Components['update_icon'] = UpdateIcon;
|
189
|
+
Components['add_file'] = AddFile;
|
181
190
|
|
182
191
|
export default Components;
|