pixel-react 1.1.1 → 1.1.3
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/Charts/DashboardDonutChart/DashboardDonutChart.d.ts +5 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
- package/lib/components/Charts/DashboardDonutChart/index.d.ts +1 -0
- package/lib/components/Charts/DashboardDonutChart/types.d.ts +21 -0
- package/lib/components/Charts/PieChart/PieChart.d.ts +5 -0
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
- package/lib/components/Charts/PieChart/index.d.ts +1 -0
- package/lib/components/Charts/PieChart/types.d.ts +27 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +1 -1
- package/lib/components/NLPInput/NlpInput.d.ts +4 -0
- package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropDownType.d.ts +19 -0
- package/lib/components/NLPInput/components/NlpDropDown/NlpDropdown.d.ts +4 -0
- package/lib/components/NLPInput/index.d.ts +1 -0
- package/lib/components/NLPInput/type.d.ts +70 -0
- package/lib/components/Paper/Paper.d.ts +4 -0
- package/lib/components/Paper/Paper.stories.d.ts +11 -0
- package/lib/components/Paper/index.d.ts +1 -0
- package/lib/components/Paper/types.d.ts +15 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/VariableInput/VariableInput.d.ts +4 -0
- package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
- package/lib/components/VariableInput/index.d.ts +1 -0
- package/lib/components/VariableInput/types.d.ts +53 -0
- package/lib/index.css +404 -0
- package/lib/index.d.ts +187 -18
- package/lib/index.esm.css +404 -0
- package/lib/index.esm.js +7040 -762
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +7052 -761
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/ffID/ffID.stories.d.ts +1 -1
- package/lib/utils/ffID/ffid.d.ts +1 -2
- package/lib/utils/findAndInsert/findAndInsert.d.ts +7 -0
- package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/getEncryptedData/getEncryptedData.d.ts +1 -0
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
- package/package.json +2 -1
- package/rollup.config.mjs +8 -2
- package/src/StyleGuide/ColorPalette/ColorPalette.tsx +2 -4
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +95 -20
- package/src/assets/Themes/BaseTheme.scss +4 -3
- package/src/assets/Themes/DarkTheme.scss +11 -8
- package/src/assets/icons/wswb_delete_icon.svg +4 -0
- package/src/assets/icons/wswb_plus_icon.svg +5 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +1 -1
- package/src/components/Button/index.ts +1 -1
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.scss +145 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.tsx +52 -0
- package/src/components/Charts/DashboardDonutChart/DashboardDonutChart.tsx +335 -0
- package/src/components/Charts/DashboardDonutChart/index.ts +1 -0
- package/src/components/Charts/DashboardDonutChart/types.ts +33 -0
- package/src/components/Charts/PieChart/PieChart.scss +39 -0
- package/src/components/Charts/PieChart/PieChart.stories.tsx +46 -0
- package/src/components/Charts/PieChart/PieChart.tsx +193 -0
- package/src/components/Charts/PieChart/index.ts +1 -0
- package/src/components/Charts/PieChart/types.ts +28 -0
- package/src/components/Icon/iconList.ts +6 -0
- package/src/components/Modal/modal.scss +1 -1
- package/src/components/MultiSelect/MultiSelect.stories.tsx +2 -3
- package/src/components/MultiSelect/MultiSelect.tsx +35 -23
- package/src/components/MultiSelect/MultiSelectTypes.ts +1 -1
- package/src/components/NLPInput/NLPInput.scss +246 -0
- package/src/components/NLPInput/NlpInput.stories.tsx +136 -0
- package/src/components/NLPInput/NlpInput.tsx +374 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropDownType.ts +60 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.scss +83 -0
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +180 -0
- package/src/components/NLPInput/index.ts +1 -0
- package/src/components/NLPInput/type.tsx +124 -0
- package/src/components/Paper/Paper.scss +13 -0
- package/src/components/Paper/Paper.stories.tsx +77 -0
- package/src/components/Paper/Paper.tsx +14 -0
- package/src/components/Paper/index.ts +1 -0
- package/src/components/Paper/types.ts +19 -0
- package/src/components/Select/components/Dropdown/Dropdown.tsx +1 -1
- package/src/components/Table/Table.scss +5 -0
- package/src/components/Table/Table.stories.tsx +12 -0
- package/src/components/Table/Table.tsx +25 -14
- package/src/components/TextArea/Textarea.scss +1 -1
- package/src/components/VariableInput/VariableInput.scss +128 -0
- package/src/components/VariableInput/VariableInput.stories.tsx +32 -0
- package/src/components/VariableInput/VariableInput.tsx +352 -0
- package/src/components/VariableInput/index.ts +1 -0
- package/src/components/VariableInput/types.ts +56 -0
- package/src/index.ts +32 -2
- package/src/utils/ffID/ffID.stories.tsx +1 -1
- package/src/utils/ffID/ffid.ts +1 -3
- package/src/utils/getEncryptedData/getEncryptedData.stories.tsx +55 -0
- package/src/utils/getEncryptedData/getEncryptedData.ts +8 -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/src/utils/{find → findAndInsert}/findAndInsert.stories.tsx +0 -0
- /package/src/utils/{find → findAndInsert}/findAndInsert.ts +0 -0
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/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/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/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/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/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/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/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/find/findandinsert.stories.tsx","../src/utils/find/findandinsert.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/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/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/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/lib/utils/ffID/ffid.d.ts
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
declare const ffid: () => string;
|
2
|
-
export default ffid;
|
1
|
+
export declare const ffid: () => string;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export type AnyObject = {
|
2
|
+
id: number;
|
3
|
+
[key: string]: any;
|
4
|
+
};
|
5
|
+
export declare function findAndInsert<T extends AnyObject>(data: T[], key: keyof T, targetId: number, newEntry: T, insertPosition: 'above' | 'below' | 'replace', childrenKey?: string): {
|
6
|
+
updatedArray: T[];
|
7
|
+
} | null;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const getEncryptedData: (data: string, publicKey: string) => string | false;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "pixel-react",
|
3
3
|
"description": "Great for pixel-perfect, design-focused components in React",
|
4
|
-
"version": "1.1.
|
4
|
+
"version": "1.1.3",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"module": "lib/index.esm.js",
|
7
7
|
"types": "lib/index.d.ts",
|
@@ -61,6 +61,7 @@
|
|
61
61
|
"@vitejs/plugin-react": "^4.3.3",
|
62
62
|
"classnames": "^2.5.1",
|
63
63
|
"date-fns-tz": "^3.2.0",
|
64
|
+
"jsencrypt": "^3.3.2",
|
64
65
|
"react-day-picker": "^9.2.1",
|
65
66
|
"react-google-recaptcha": "^3.1.0",
|
66
67
|
"react-hook-form": "^7.53.0",
|
package/rollup.config.mjs
CHANGED
@@ -14,6 +14,7 @@ const packageJson = requireFile('./package.json');
|
|
14
14
|
export default [
|
15
15
|
{
|
16
16
|
input: 'src/index.ts',
|
17
|
+
context: 'window',
|
17
18
|
output: [
|
18
19
|
{
|
19
20
|
file: packageJson.main, // CJS output
|
@@ -31,7 +32,8 @@ export default [
|
|
31
32
|
plugins: [
|
32
33
|
peerDepsExternal(),
|
33
34
|
resolve(),
|
34
|
-
|
35
|
+
|
36
|
+
commonjs({ transformMixedEsModules: true }),
|
35
37
|
typescript(),
|
36
38
|
postcss({
|
37
39
|
extensions: ['.scss'],
|
@@ -51,7 +53,11 @@ export default [
|
|
51
53
|
{
|
52
54
|
input: 'lib/index.d.ts',
|
53
55
|
output: [
|
54
|
-
{
|
56
|
+
{
|
57
|
+
file: 'lib/index.d.ts',
|
58
|
+
format: 'es',
|
59
|
+
inlineDynamicImports: true,
|
60
|
+
},
|
55
61
|
],
|
56
62
|
plugins: [dts()],
|
57
63
|
external: [/\.scss$/],
|
@@ -26,15 +26,13 @@ const ColorBox = ({
|
|
26
26
|
<div className="color-card">
|
27
27
|
<span className="color-name">{name}</span>
|
28
28
|
<div className="color-box" style={boxStyle}>
|
29
|
-
<p style={{ '--colorCode': colorCode } as React.CSSProperties}>
|
30
|
-
{' '}
|
31
|
-
{variable}
|
32
|
-
</p>
|
29
|
+
<p style={{ '--colorCode': colorCode } as React.CSSProperties}> </p>
|
33
30
|
</div>
|
34
31
|
<span className="color-code">
|
35
32
|
{colorCode} {opacityPercentage && `opacity ${opacityPercentage}`} <br />
|
36
33
|
{border && `Border -${border}`}
|
37
34
|
</span>
|
35
|
+
<span className="color-code">{variable}</span>
|
38
36
|
</div>
|
39
37
|
);
|
40
38
|
};
|
@@ -3,95 +3,170 @@ import { ColorPaletteType } from './types';
|
|
3
3
|
const ColorPalette: ColorPaletteType = [
|
4
4
|
{ name: 'Brand Color', colorCode: '#71347b', variable: '--brand-color' },
|
5
5
|
{ name: 'Text Color', colorCode: '#1e161f', variable: '--text-color' },
|
6
|
-
{
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
{
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
6
|
+
{
|
7
|
+
name: 'Description Text',
|
8
|
+
colorCode: '#7a7a7a',
|
9
|
+
variable: '--description-text',
|
10
|
+
},
|
11
|
+
{
|
12
|
+
name: 'Clickable Text Color',
|
13
|
+
colorCode: '#71347b',
|
14
|
+
variable: '--click-able-text-color',
|
15
|
+
},
|
16
|
+
{
|
17
|
+
name: 'Icons Default Color',
|
18
|
+
colorCode: '#71347b',
|
19
|
+
variable: '--icons-default-color',
|
20
|
+
},
|
21
|
+
{ name: 'Border Color', colorCode: '#f0e7f4', variable: '--border-color' },
|
22
|
+
{
|
23
|
+
name: 'Disable Color',
|
24
|
+
colorCode: '#71347b',
|
25
|
+
opacity: 0.5,
|
26
|
+
variable: '--disable-color',
|
27
|
+
},
|
28
|
+
{ name: 'Hover Color', colorCode: '#f7ebff', variable: '--hover-color' },
|
29
|
+
{
|
30
|
+
name: 'Pop-up Background Blur',
|
31
|
+
colorCode: '#14041c',
|
32
|
+
opacity: 0.1,
|
33
|
+
variable: '--pop-up-background-blur',
|
34
|
+
},
|
35
|
+
{
|
36
|
+
name: 'Drawer Footer Background',
|
37
|
+
colorCode: '#ffffff',
|
38
|
+
border: '#f0e7f4',
|
39
|
+
variable: '--drawer-footer-bg',
|
40
|
+
},
|
41
|
+
{
|
42
|
+
name: 'Slider Table Color',
|
43
|
+
colorCode: '#efe1f9',
|
44
|
+
opacity: 1,
|
45
|
+
variable: '--slider-table-color',
|
46
|
+
},
|
47
|
+
{
|
48
|
+
name: 'Text bg Highlight',
|
49
|
+
colorCode: '#f5fb00',
|
50
|
+
variable: '--text-bg-highlight',
|
51
|
+
},
|
16
52
|
|
17
|
-
{
|
18
|
-
|
53
|
+
{
|
54
|
+
name: 'Tooltip Bg Color',
|
55
|
+
colorCode: '#1e161f',
|
56
|
+
variable: '--tooltip-bg-color',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
name: 'Tooltip Text Color(default)',
|
60
|
+
colorCode: '#ffffff',
|
61
|
+
variable: '--tooltip-text-color',
|
62
|
+
},
|
19
63
|
{
|
20
64
|
name: 'Toggle Strip Color(default)',
|
21
65
|
colorCode: '#cfd1e2',
|
22
66
|
dropShadow: 'drop-shadow(0 0 2px #00000025)',
|
67
|
+
variable: '--toggle-strip-color',
|
68
|
+
},
|
69
|
+
{
|
70
|
+
name: 'Tooltip Text Color(Active)',
|
71
|
+
colorCode: '#ffffff',
|
72
|
+
variable: '--tooltip-text-color',
|
23
73
|
},
|
24
|
-
{ name: 'Tooltip Text Color(Active)', colorCode: '#ffffff' },
|
25
74
|
{
|
26
75
|
name: 'Toggle Strip Color(Active)',
|
27
76
|
colorCode: '#71347b',
|
28
77
|
dropShadow: 'drop-shadow(0 0 2px #00000025)',
|
78
|
+
variable: '--toggle-strip-active',
|
29
79
|
}, // todo drop shadow
|
30
80
|
{
|
31
81
|
name: 'Primary Button Color',
|
32
82
|
colorCode:
|
33
83
|
'linear-gradient(90deg, rgba(113, 52, 123, 1) 100%, rgba(70, 22, 77, 1) 100%)',
|
84
|
+
variable: '--primary-button-color',
|
34
85
|
},
|
35
86
|
{
|
36
87
|
name: 'Primary Button Hover',
|
37
88
|
colorCode:
|
38
89
|
'linear-gradient(90deg, rgba(141, 59, 154, 1) 100%, rgba(120, 31, 134, 1) 100%)',
|
90
|
+
variable: '--primary-button-hover',
|
39
91
|
},
|
40
92
|
{
|
41
93
|
name: 'Primary Button Disable',
|
42
94
|
colorCode:
|
43
95
|
'linear-gradient(90deg, rgba(113, 52, 123, 1) 100%, rgba(113, 52, 123, 1) 100%)',
|
44
96
|
opacity: 0.5,
|
97
|
+
variable: '--primary-button-disable',
|
45
98
|
},
|
46
|
-
{ name: 'Primary Button Text Color', colorCode: '#ffffff' },
|
47
99
|
{
|
48
|
-
name: '
|
100
|
+
name: 'Primary Button Text Color',
|
101
|
+
colorCode: '#ffffff',
|
102
|
+
variable: '--primary-button-text-color',
|
103
|
+
},
|
104
|
+
{
|
105
|
+
name: 'Secondary Button Icon Color (default)',
|
49
106
|
colorCode: 'rgba(113, 52, 123, 1)',
|
107
|
+
variable: '--secondary-icon-color',
|
50
108
|
},
|
51
109
|
{
|
52
110
|
name: 'Secondary Button (Hover)',
|
53
111
|
colorCode:
|
54
112
|
'linear-gradient(90deg, rgba(113, 52, 123, 0.05) 100%, rgba(70, 22, 77, 0.05) 100%)',
|
113
|
+
variable: '--secondary-button-hover',
|
55
114
|
},
|
56
115
|
{
|
57
116
|
name: 'Secondary Button (Disabled)',
|
58
117
|
colorCode: 'rgba(113, 52, 123, 1)',
|
59
118
|
opacity: 0.5,
|
119
|
+
variable: '--disable-color',
|
60
120
|
},
|
61
121
|
{
|
62
122
|
name: 'Tertiary Button (default)',
|
63
123
|
colorCode:
|
64
124
|
'linear-gradient(90deg, rgba(70, 22, 77, 0.05) 100%, rgba(113, 52, 123, 0.05) 100%)',
|
125
|
+
variable: '--tertiary-button-color',
|
65
126
|
},
|
66
127
|
{
|
67
128
|
name: 'Tertiary Button (Hover)',
|
68
129
|
colorCode:
|
69
130
|
'linear-gradient(90deg, rgba(70, 22, 77, 0.1) 100%, rgba(113, 52, 123, 0.1) 100%)',
|
131
|
+
variable: '--tertiary-button-hover',
|
70
132
|
},
|
71
133
|
{
|
72
134
|
name: 'Tertiary Button (Disabled)',
|
73
135
|
colorCode:
|
74
136
|
'linear-gradient(90deg, rgba(70, 22, 77, 0.05) 100%, rgba(113, 52, 123, 0.05) 100%)',
|
75
137
|
opacity: 0.5,
|
138
|
+
variable: '--tertiary-button-color',
|
76
139
|
},
|
77
140
|
{
|
78
|
-
name: '
|
141
|
+
name: 'Delete Button Color',
|
79
142
|
colorCode:
|
80
143
|
'linear-gradient(90deg, rgba(228, 37, 37, 1) 100%, rgba(201, 0, 0, 1) 100%)',
|
144
|
+
variable: '--delete-button-color',
|
81
145
|
},
|
82
146
|
{
|
83
|
-
name: '
|
147
|
+
name: 'Delete Button Hover',
|
84
148
|
colorCode:
|
85
149
|
'linear-gradient(90deg, rgba(233, 81, 81, 1) 100%, rgba(212, 52, 52, 1) 100%)',
|
150
|
+
variable: '--delete-button-hover',
|
86
151
|
},
|
87
152
|
{
|
88
|
-
name: '
|
153
|
+
name: 'Delete Button Disabled',
|
89
154
|
colorCode:
|
90
155
|
'linear-gradient(90deg, rgba(233, 81, 81, 1) 100%, rgba(212, 52, 52, 1) 100%)',
|
91
156
|
opacity: 0.5,
|
157
|
+
variable: '--delete-button-disable',
|
158
|
+
},
|
159
|
+
{
|
160
|
+
name: 'Primary Button Text Color',
|
161
|
+
colorCode: '#ffffff',
|
162
|
+
variable: '--primary-button-text-color',
|
163
|
+
},
|
164
|
+
{
|
165
|
+
name: 'Overlay Background',
|
166
|
+
colorCode: '#1e161f',
|
167
|
+
opacity: 0.1,
|
168
|
+
variable: '--overlay-bg',
|
92
169
|
},
|
93
|
-
{ name: 'Primary Button Text Color', colorCode: '#ffffff' },
|
94
|
-
{ name: 'Overlay Background', colorCode: '#1e161f', opacity: 0.1 },
|
95
170
|
];
|
96
171
|
|
97
172
|
export default ColorPalette;
|
@@ -61,11 +61,10 @@ $base-theme: (
|
|
61
61
|
error_light: #e42525,
|
62
62
|
ff-success: #079455,
|
63
63
|
ff-warning: #f79009,
|
64
|
-
ff-header-text-color
|
64
|
+
ff-header-text-color: #fdfaff,
|
65
65
|
ff-header-submenu-text-color: #666468,
|
66
66
|
ff-header-submenu-highlight-text-color: #170328,
|
67
67
|
|
68
|
-
|
69
68
|
expandable-menu-default-bg: #fdfaff,
|
70
69
|
expandable-menu-option-bg: #610b861a,
|
71
70
|
file-dropzone-default-color: #71347b1a,
|
@@ -152,6 +151,8 @@ $base-theme: (
|
|
152
151
|
ff-search-filed-clear-text: #71347b,
|
153
152
|
ff-search-filed-placeholder-text: #a3a3a3,
|
154
153
|
ff-search-filed-close-Icon: #14041c,
|
154
|
+
ff-paper-background-color:#f5f5f5,
|
155
|
+
ff-paper-dark-background-color:#d1c4e9,
|
155
156
|
|
156
157
|
primary-icon-color: #ffffff,
|
157
158
|
secondary-icon-color: #71347b,
|
@@ -163,7 +164,7 @@ $base-theme: (
|
|
163
164
|
license_header_text_color: #592f7c,
|
164
165
|
license_active_status_color: #518e18,
|
165
166
|
license_expired_status_color: #ab3425,
|
166
|
-
|
167
|
+
pie-chart-border-color: #b6b6b6,
|
167
168
|
);
|
168
169
|
:root {
|
169
170
|
@each $key, $value in $base-theme {
|
@@ -160,17 +160,20 @@ $dark-theme: (
|
|
160
160
|
ff-search-filed-clear-text: #71347b,
|
161
161
|
ff-search-filed-placeholder-text: #a3a3a3,
|
162
162
|
ff-search-filed-close-Icon: #14041c,
|
163
|
+
ff-paper-background-color:#f5f5f5,
|
164
|
+
ff-paper-dark-background-color:#d1c4e9,
|
163
165
|
|
164
166
|
primary-icon-color: #ffffff,
|
165
167
|
secondary-icon-color: #71347b,
|
166
|
-
disabled-primary-color: #
|
167
|
-
license_expireSoon_color
|
168
|
-
license_active_color
|
169
|
-
license_expired_color
|
170
|
-
license_header_text_color
|
171
|
-
license_active_status_color
|
172
|
-
license_expired_status_color
|
173
|
-
background-modal-color
|
168
|
+
disabled-primary-color: #f9f9f9,
|
169
|
+
license_expireSoon_color: #ba7422,
|
170
|
+
license_active_color: #268735,
|
171
|
+
license_expired_color: #e34242,
|
172
|
+
license_header_text_color: #592f7c,
|
173
|
+
license_active_status_color: #518e18,
|
174
|
+
license_expired_status_color: #ab3425,
|
175
|
+
background-modal-color: #1111,
|
176
|
+
pie-chart-border-color: #b6b6b6,
|
174
177
|
);
|
175
178
|
:root {
|
176
179
|
@each $key, $value in $dark-theme {
|
@@ -0,0 +1,4 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<path d="M7.77783 17.4447C7.77783 17.8571 7.94168 18.2527 8.23333 18.5443C8.52498 18.836 8.92054 18.9998 9.333 18.9998H15.556C15.9685 18.9998 16.364 18.836 16.6557 18.5443C16.9473 18.2527 17.1112 17.8571 17.1112 17.4447V8.11133H7.77783V17.4447Z" fill="currentColor"/>
|
3
|
+
<path d="M15.1667 5.77817L14.3897 5H10.5L9.723 5.77817H7V7.33333H17.8885V5.77817H15.1667Z" fill="currentColor"/>
|
4
|
+
</svg>
|
@@ -0,0 +1,5 @@
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
2
|
+
<g opacity="0.4">
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.25 5.25C12.6796 5.25 13.0278 5.59822 13.0278 6.02778V11.4722H18.4722C18.9018 11.4722 19.25 11.8204 19.25 12.25C19.25 12.6796 18.9018 13.0278 18.4722 13.0278H13.0278V18.4722C13.0278 18.9018 12.6796 19.25 12.25 19.25C11.8204 19.25 11.4722 18.9018 11.4722 18.4722V13.0278H6.02778C5.59822 13.0278 5.25 12.6796 5.25 12.25C5.25 11.8204 5.59822 11.4722 6.02778 11.4722H11.4722V6.02778C11.4722 5.59822 11.8204 5.25 12.25 5.25Z" fill="currentColor"/>
|
4
|
+
</g>
|
5
|
+
</svg>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { useState } from 'react';
|
2
2
|
import Icon from '../Icon';
|
3
3
|
import Typography from '../Typography';
|
4
|
-
import ffid from '../../utils/ffID/ffid';
|
4
|
+
import { ffid } from '../../utils/ffID/ffid';
|
5
5
|
import { truncateText } from '../../utils/truncateText/truncateText';
|
6
6
|
import './AllProjectsDropdown.scss';
|
7
7
|
import classNames from 'classnames';
|
@@ -1 +1 @@
|
|
1
|
-
export { default } from './Button';
|
1
|
+
export { default } from './Button';
|
@@ -0,0 +1,145 @@
|
|
1
|
+
@use '../../../assets/styles/fonts';
|
2
|
+
|
3
|
+
.ff-dashboard-donut-chart-section {
|
4
|
+
display: flex;
|
5
|
+
flex-direction: column;
|
6
|
+
align-items: center;
|
7
|
+
|
8
|
+
&-table-legend {
|
9
|
+
flex-direction: row;
|
10
|
+
}
|
11
|
+
|
12
|
+
.ff-dashboard-donut-chart-svg-container {
|
13
|
+
text-align: center;
|
14
|
+
svg {
|
15
|
+
text:nth-of-type(1) {
|
16
|
+
@extend .font2Xl;
|
17
|
+
font-weight: 600;
|
18
|
+
}
|
19
|
+
text:nth-of-type(2) {
|
20
|
+
@extend .fontMd;
|
21
|
+
font-weight: 500;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
.ff-donut-chart-tooltip {
|
26
|
+
position: fixed;
|
27
|
+
padding: 5px;
|
28
|
+
border-radius: 4px;
|
29
|
+
pointer-events: none;
|
30
|
+
background-color: var(--tooltip-bg-color);
|
31
|
+
color: var(--tooltip-text-color);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.ff-legend-container {
|
36
|
+
display: grid;
|
37
|
+
gap: 10px;
|
38
|
+
|
39
|
+
&.numberLegend {
|
40
|
+
grid-template-columns: repeat(3, 1fr);
|
41
|
+
.ff-legend-item {
|
42
|
+
display: flex;
|
43
|
+
flex-direction: column;
|
44
|
+
align-items: center;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
&.pillLegend {
|
49
|
+
grid-template-columns: repeat(2, 1fr);
|
50
|
+
.ff-legend-item {
|
51
|
+
display: flex;
|
52
|
+
align-items: center;
|
53
|
+
|
54
|
+
.ff-legend-capsule {
|
55
|
+
background-color: var(--status-success-text-color);
|
56
|
+
color: var(--tooltip-text-color);
|
57
|
+
border-radius: 15px;
|
58
|
+
min-width: 25px;
|
59
|
+
height: 18px;
|
60
|
+
display: flex;
|
61
|
+
justify-content: center;
|
62
|
+
align-items: center;
|
63
|
+
}
|
64
|
+
|
65
|
+
.ff-legend-key {
|
66
|
+
margin-left: 8px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
&.memoryLegend {
|
72
|
+
grid-template-columns: repeat(2, 1fr);
|
73
|
+
.ff-legend-item {
|
74
|
+
display: flex;
|
75
|
+
flex-direction: column;
|
76
|
+
align-items: center;
|
77
|
+
width: 100%;
|
78
|
+
padding-right: 10px;
|
79
|
+
border-right: 1px solid var(--border-color);
|
80
|
+
|
81
|
+
// Remove the right border for the last item in each row
|
82
|
+
&:nth-child(2n) {
|
83
|
+
border-right: none;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.ff-legend-table-wrapper {
|
90
|
+
overflow: hidden;
|
91
|
+
border: 1px solid var(--border-color);
|
92
|
+
border-radius: 4px;
|
93
|
+
margin-left: 1rem;
|
94
|
+
}
|
95
|
+
|
96
|
+
.ff-legend-table {
|
97
|
+
width: 100%;
|
98
|
+
min-width: 300px;
|
99
|
+
border-collapse: collapse;
|
100
|
+
text-align: left;
|
101
|
+
|
102
|
+
.ff-table-header {
|
103
|
+
@extend .fontXs;
|
104
|
+
font-weight: bold;
|
105
|
+
background-color: var(--tabs-bg-color);
|
106
|
+
color: var(--input-hover-border-color);
|
107
|
+
padding: 0.5rem;
|
108
|
+
|
109
|
+
&:last-child {
|
110
|
+
text-align: right;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
|
114
|
+
.ff-legend-capsule {
|
115
|
+
background-color: var(--status-success-text-color);
|
116
|
+
color: var(--tooltip-text-color);
|
117
|
+
border-radius: 1rem;
|
118
|
+
min-width: 22px;
|
119
|
+
height: 16px;
|
120
|
+
display: flex;
|
121
|
+
justify-content: center;
|
122
|
+
align-items: center;
|
123
|
+
}
|
124
|
+
|
125
|
+
.ff-legend-item {
|
126
|
+
.ff-legend-name,
|
127
|
+
.ff-legend-percentage,
|
128
|
+
.ff-legend-count {
|
129
|
+
padding: 0.5rem;
|
130
|
+
@extend .fontXs;
|
131
|
+
color: var(--input-hover-border-color);
|
132
|
+
}
|
133
|
+
|
134
|
+
.ff-legend-name {
|
135
|
+
display: flex;
|
136
|
+
align-items: baseline;
|
137
|
+
gap: 5px;
|
138
|
+
color: var(--input-hover-border-color);
|
139
|
+
}
|
140
|
+
.ff-legend-count {
|
141
|
+
text-align: right;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react/*';
|
2
|
+
import DashboardDonutChart from './DashboardDonutChart';
|
3
|
+
|
4
|
+
const meta: Meta<typeof DashboardDonutChart> = {
|
5
|
+
title: 'Components/DashboardDonutChart',
|
6
|
+
component: DashboardDonutChart,
|
7
|
+
parameters: {
|
8
|
+
layout: 'centered',
|
9
|
+
},
|
10
|
+
tags: ['autodocs'],
|
11
|
+
};
|
12
|
+
export default meta;
|
13
|
+
|
14
|
+
type Story = StoryObj<typeof DashboardDonutChart>;
|
15
|
+
|
16
|
+
export const Default: Story = {
|
17
|
+
args: {
|
18
|
+
radius: 70,
|
19
|
+
lineWidth: 15,
|
20
|
+
legendDetailsType: 'Scripts',
|
21
|
+
isLegendDetails: true,
|
22
|
+
statusValues: [
|
23
|
+
{ key: 'Passed', value: 60, color: 'var(--status-success-text-color)' },
|
24
|
+
{ key: 'failed', value: 20, color: 'var(--status-rejected-text-color)' },
|
25
|
+
{ key: 'Warning', value: 10, color: 'var(--status-warning-text-color)' },
|
26
|
+
{ key: 'skipped', value: 10, color: 'var(--status-skipped-text-color)' },
|
27
|
+
],
|
28
|
+
gapAngle: 0,
|
29
|
+
legendType: 'numberLegend',
|
30
|
+
showOnlyLabel: false,
|
31
|
+
},
|
32
|
+
};
|
33
|
+
|
34
|
+
export const MemoryLegend: Story = {
|
35
|
+
args: {
|
36
|
+
radius: 65,
|
37
|
+
lineWidth: 15,
|
38
|
+
legendDetailsType: 'Memory',
|
39
|
+
isLegendDetails: true,
|
40
|
+
statusValues: [
|
41
|
+
{
|
42
|
+
key: 'Available Memory',
|
43
|
+
value: 37.5,
|
44
|
+
color: 'var(--status-warning-text-color)',
|
45
|
+
},
|
46
|
+
{ key: 'Used Memory', value: 72.5, color: 'var(--brand-color)' },
|
47
|
+
],
|
48
|
+
gapAngle: 0,
|
49
|
+
legendType: 'memoryLegend',
|
50
|
+
showOnlyLabel: true,
|
51
|
+
},
|
52
|
+
};
|