pixel-react 1.1.2 → 1.1.4
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/AddButton/AddButton.d.ts +5 -0
- package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
- package/lib/components/AddButton/index.d.ts +1 -0
- package/lib/components/AddButton/types.d.ts +4 -0
- package/lib/components/AppHeader/types.d.ts +14 -10
- 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/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.d.ts +129 -11
- package/lib/index.esm.js +6934 -977
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +6943 -976
- 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 -2
- package/package.json +1 -1
- package/src/assets/Themes/BaseTheme.scss +2 -0
- package/src/assets/Themes/DarkTheme.scss +2 -0
- package/src/components/AllProjectsDropdown/AllProjectsDropdown.tsx +1 -1
- package/src/components/AppHeader/AppHeader.stories.tsx +20 -10
- package/src/components/AppHeader/AppHeader.tsx +24 -17
- package/src/components/AppHeader/types.ts +17 -13
- package/src/components/NLPInput/components/NlpDropDown/NlpDropdown.tsx +1 -1
- 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/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 +27 -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 +3 -3
- package/src/utils/getEncryptedData/getEncryptedData.ts +1 -3
- /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/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/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/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/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;
|
@@ -1,2 +1 @@
|
|
1
|
-
declare const getEncryptedData: (data: string, publicKey: string) => string | false;
|
2
|
-
export default getEncryptedData;
|
1
|
+
export declare const getEncryptedData: (data: string, publicKey: string) => string | false;
|
package/package.json
CHANGED
@@ -151,6 +151,8 @@ $base-theme: (
|
|
151
151
|
ff-search-filed-clear-text: #71347b,
|
152
152
|
ff-search-filed-placeholder-text: #a3a3a3,
|
153
153
|
ff-search-filed-close-Icon: #14041c,
|
154
|
+
ff-paper-background-color:#f5f5f5,
|
155
|
+
ff-paper-dark-background-color:#d1c4e9,
|
154
156
|
|
155
157
|
primary-icon-color: #ffffff,
|
156
158
|
secondary-icon-color: #71347b,
|
@@ -160,6 +160,8 @@ $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,
|
@@ -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,5 +1,10 @@
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
2
2
|
import AppHeader from './AppHeader';
|
3
|
+
import {
|
4
|
+
appHeaderMenuItemProps,
|
5
|
+
appHeaderSubMenuItemProps,
|
6
|
+
appHeaderQuickMenuItemProps,
|
7
|
+
} from './types';
|
3
8
|
import Icon from '../Icon';
|
4
9
|
import { useState } from 'react';
|
5
10
|
|
@@ -23,22 +28,23 @@ const defaultArgs = {
|
|
23
28
|
};
|
24
29
|
|
25
30
|
const headerMenuItems = [
|
31
|
+
{ menuLabel: 'Dashboard', menuName: 'Dashboard', subMenuItems: [] },
|
26
32
|
{
|
27
|
-
|
28
|
-
subMenuItems: [],
|
29
|
-
},
|
30
|
-
{
|
33
|
+
menuLabel: 'Repo',
|
31
34
|
menuName: 'Repo',
|
32
35
|
subMenuItems: [
|
33
36
|
{
|
37
|
+
subMenuLabel: 'Elements',
|
34
38
|
subMenuName: 'Elements',
|
35
39
|
quickMenuItems: [],
|
36
40
|
},
|
37
41
|
{
|
42
|
+
subMenuLabel: 'Program Elements',
|
38
43
|
subMenuName: 'Program Elements',
|
39
44
|
quickMenuItems: [],
|
40
45
|
},
|
41
46
|
{
|
47
|
+
subMenuLabel: 'Step Groups',
|
42
48
|
subMenuName: 'Step Groups',
|
43
49
|
quickMenuItems: [
|
44
50
|
{
|
@@ -58,13 +64,16 @@ const headerMenuItems = [
|
|
58
64
|
],
|
59
65
|
},
|
60
66
|
{
|
67
|
+
menuLabel: 'Test Data',
|
61
68
|
menuName: 'Test Data',
|
62
69
|
subMenuItems: [],
|
63
70
|
},
|
64
71
|
{
|
72
|
+
menuLabel: 'Test Dev',
|
65
73
|
menuName: 'Test Dev',
|
66
74
|
subMenuItems: [
|
67
75
|
{
|
76
|
+
subMenuLabel: 'Scripts',
|
68
77
|
subMenuName: 'Scripts',
|
69
78
|
quickMenuItems: [
|
70
79
|
{
|
@@ -90,6 +99,7 @@ const headerMenuItems = [
|
|
90
99
|
],
|
91
100
|
},
|
92
101
|
{
|
102
|
+
subMenuLabel: 'Executions',
|
93
103
|
subMenuName: 'Executions',
|
94
104
|
quickMenuItems: [],
|
95
105
|
},
|
@@ -121,14 +131,14 @@ export const Controlled: Story = {
|
|
121
131
|
const [selectedMenuItem, setSelectedMenuItem] = useState('Test Data');
|
122
132
|
const [selectedSubMenuItem, setSelectedSubMenuItem] = useState('');
|
123
133
|
const [selectedQuickMenuItem, setSelectedQuickMenuItem] = useState('');
|
124
|
-
const handleMenuClick = (item:
|
125
|
-
setSelectedMenuItem(item);
|
134
|
+
const handleMenuClick = (item: appHeaderMenuItemProps) => {
|
135
|
+
setSelectedMenuItem(item.menuLabel);
|
126
136
|
};
|
127
|
-
const handleSubMenuClick = (item:
|
128
|
-
setSelectedSubMenuItem(item);
|
137
|
+
const handleSubMenuClick = (item: appHeaderSubMenuItemProps) => {
|
138
|
+
setSelectedSubMenuItem(item.subMenuLabel);
|
129
139
|
};
|
130
|
-
const handleQuickMenuClick = (item:
|
131
|
-
setSelectedQuickMenuItem(item);
|
140
|
+
const handleQuickMenuClick = (item: appHeaderQuickMenuItemProps) => {
|
141
|
+
setSelectedQuickMenuItem(item.quickMenuIconName);
|
132
142
|
};
|
133
143
|
|
134
144
|
return (
|
@@ -3,10 +3,14 @@ import Icon from '../Icon';
|
|
3
3
|
import './AppHeader.scss';
|
4
4
|
import classNames from 'classnames';
|
5
5
|
import Typography from '../Typography';
|
6
|
+
import { checkEmpty } from '../../utils/checkEmpty/checkEmpty';
|
7
|
+
// import AllProjectsDropdown from '../AllProjectsDropdown';
|
6
8
|
|
7
9
|
const AppHeader: React.FC<AppHeaderProps> = ({
|
8
10
|
logoIconName = 'fireflink_icon',
|
11
|
+
leftContent,
|
9
12
|
rightContent,
|
13
|
+
projectsList,
|
10
14
|
appHeaderMenuItems,
|
11
15
|
selectedMenu,
|
12
16
|
selectedSubMenu,
|
@@ -21,35 +25,38 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
21
25
|
<div className="ff-app-header-logo-icon">
|
22
26
|
<Icon color="" name={logoIconName} height={24} width={21} />
|
23
27
|
</div>
|
28
|
+
{leftContent && (
|
29
|
+
<div className="ff-app-header-left-content">{leftContent}</div>
|
30
|
+
)}
|
24
31
|
<div className="ff-app-header-nav-bar">
|
25
|
-
|
32
|
+
{checkEmpty(projectsList) && (
|
33
|
+
<div>{/* <AllProjectsDropdown /> */}</div>
|
34
|
+
)}
|
26
35
|
<div className="ff-app-header-nav-bar-items fontSm">
|
27
36
|
{appHeaderMenuItems.map((menuItem) => {
|
28
37
|
return (
|
29
38
|
<div
|
30
39
|
className={classNames('ff-app-header-nav-bar-item', {
|
31
40
|
['ff-app-header-nav-bar-item--selected']:
|
32
|
-
menuItem.
|
41
|
+
menuItem.menuLabel === selectedMenu,
|
33
42
|
})}
|
34
|
-
key={menuItem.
|
35
|
-
onClick={() => onMenuClick(menuItem
|
43
|
+
key={menuItem.menuLabel}
|
44
|
+
onClick={() => onMenuClick(menuItem)}
|
36
45
|
>
|
37
46
|
<Typography
|
38
47
|
as="div"
|
39
48
|
className="ff-app-header-nav-bar-item-label"
|
40
49
|
lineHeight="18px"
|
41
50
|
>
|
42
|
-
{menuItem.
|
51
|
+
{menuItem.menuLabel}
|
43
52
|
</Typography>
|
44
|
-
{menuItem.
|
53
|
+
{menuItem.menuLabel === selectedMenu &&
|
45
54
|
menuItem?.subMenuItems &&
|
46
55
|
menuItem.subMenuItems.map((subMenuItem) => {
|
47
56
|
return (
|
48
57
|
<div
|
49
|
-
key={subMenuItem.
|
50
|
-
onClick={() =>
|
51
|
-
onSubMenuClick(subMenuItem.subMenuName)
|
52
|
-
}
|
58
|
+
key={subMenuItem.subMenuLabel}
|
59
|
+
onClick={() => onSubMenuClick(subMenuItem)}
|
53
60
|
className="ff-app-header-submenu-container"
|
54
61
|
>
|
55
62
|
<Typography
|
@@ -58,14 +65,14 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
58
65
|
'ff-app-header-nav-bar-submenu-item',
|
59
66
|
{
|
60
67
|
['ff-app-header-nav-bar-submenu-item--selected']:
|
61
|
-
subMenuItem.
|
68
|
+
subMenuItem.subMenuLabel === selectedSubMenu,
|
62
69
|
}
|
63
70
|
)}
|
64
71
|
lineHeight="18px"
|
65
72
|
>
|
66
|
-
{subMenuItem.
|
73
|
+
{subMenuItem.subMenuLabel}
|
67
74
|
</Typography>
|
68
|
-
{subMenuItem.
|
75
|
+
{subMenuItem.subMenuLabel === selectedSubMenu &&
|
69
76
|
subMenuItem?.quickMenuItems && (
|
70
77
|
<div className="ff-app-header-quickmenu-container">
|
71
78
|
<div>
|
@@ -78,9 +85,7 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
78
85
|
<div
|
79
86
|
key={quickMenuItem.quickMenuIconName}
|
80
87
|
onClick={() =>
|
81
|
-
onQuickMenuClick(
|
82
|
-
quickMenuItem.quickMenuName
|
83
|
-
)
|
88
|
+
onQuickMenuClick(quickMenuItem)
|
84
89
|
}
|
85
90
|
className={classNames(
|
86
91
|
'ff-app-header-nav-bar-quickmenu-item',
|
@@ -116,7 +121,9 @@ const AppHeader: React.FC<AppHeaderProps> = ({
|
|
116
121
|
<Icon name="more" className="ff-app-header-more-icon" />
|
117
122
|
</div>
|
118
123
|
</div>
|
119
|
-
|
124
|
+
{rightContent && (
|
125
|
+
<div className="ff-app-header-right-content">{rightContent}</div>
|
126
|
+
)}
|
120
127
|
</div>
|
121
128
|
</>
|
122
129
|
);
|
@@ -2,26 +2,30 @@ import { ReactNode } from 'react';
|
|
2
2
|
|
3
3
|
export interface AppHeaderProps {
|
4
4
|
logoIconName: string;
|
5
|
-
|
6
|
-
|
5
|
+
leftContent?: ReactNode;
|
6
|
+
rightContent?: ReactNode;
|
7
|
+
projectsList?: string[];
|
7
8
|
appHeaderMenuItems: appHeaderMenuItemProps[];
|
8
|
-
appHeaderHiddenMenuItems
|
9
|
+
appHeaderHiddenMenuItems?: string[];
|
9
10
|
selectedMenu: string;
|
10
|
-
selectedSubMenu
|
11
|
-
selectedQuickMenu
|
12
|
-
onMenuClick
|
13
|
-
onSubMenuClick
|
14
|
-
onQuickMenuClick
|
11
|
+
selectedSubMenu?: string;
|
12
|
+
selectedQuickMenu?: string;
|
13
|
+
onMenuClick?: (text: any) => void;
|
14
|
+
onSubMenuClick?: (text: any) => void;
|
15
|
+
onQuickMenuClick?: (text: any) => void;
|
15
16
|
}
|
16
17
|
export interface appHeaderMenuItemProps {
|
17
|
-
|
18
|
-
|
18
|
+
menuLabel: string;
|
19
|
+
menuName?: string;
|
20
|
+
subMenuItems?: appHeaderSubMenuItemProps[];
|
19
21
|
}
|
20
22
|
export interface appHeaderSubMenuItemProps {
|
21
|
-
|
22
|
-
|
23
|
+
subMenuLabel: string;
|
24
|
+
subMenuName?: string;
|
25
|
+
quickMenuItems?: appHeaderQuickMenuItemProps[];
|
23
26
|
}
|
24
27
|
export interface appHeaderQuickMenuItemProps {
|
25
|
-
|
28
|
+
quickMenuLabel?: string;
|
29
|
+
quickMenuName?: string;
|
26
30
|
quickMenuIconName: string;
|
27
31
|
}
|
@@ -7,7 +7,7 @@ import useClickOutside from '../../../../hooks/useClickOutside';
|
|
7
7
|
import { checkEmpty } from '../../../../utils/checkEmpty/checkEmpty';
|
8
8
|
import './NlpDropdown.scss';
|
9
9
|
import Typography from '../../../Typography';
|
10
|
-
import ffid from '../../../../utils/ffID/ffid';
|
10
|
+
import { ffid } from '../../../../utils/ffID/ffid';
|
11
11
|
import { ThemeContext } from '../../../ThemeProvider/ThemeProvider';
|
12
12
|
import classNames from 'classnames';
|
13
13
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Rounded corners
|
2
|
+
.ff_rounded_lg {
|
3
|
+
border-radius: 8px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.ff_paper_basic_style {
|
7
|
+
padding: 20px;
|
8
|
+
background-color: var(--ff-paper-dark-background-color);
|
9
|
+
}
|
10
|
+
.ff_paper_default_style {
|
11
|
+
padding: 20px;
|
12
|
+
background-color: var(--ff-paper-background-color);
|
13
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Paper from './Paper';
|
3
|
+
import { Children } from 'react';
|
4
|
+
import Typography from '../Typography';
|
5
|
+
import './Paper.scss';
|
6
|
+
|
7
|
+
const meta: Meta<typeof Paper> = {
|
8
|
+
title: 'Components/Paper',
|
9
|
+
component: Paper,
|
10
|
+
parameters: {
|
11
|
+
layout: 'centered',
|
12
|
+
},
|
13
|
+
tags: ['autodocs'],
|
14
|
+
};
|
15
|
+
|
16
|
+
type Story = StoryObj<typeof Paper>;
|
17
|
+
|
18
|
+
const defaultArgs = {
|
19
|
+
Children,
|
20
|
+
className: '',
|
21
|
+
rounded: false,
|
22
|
+
};
|
23
|
+
|
24
|
+
export const Default: Story = {
|
25
|
+
args: {
|
26
|
+
...defaultArgs,
|
27
|
+
children: <p>This is a simple Paper component with default styles.</p>,
|
28
|
+
className: 'ff_paper_default_style',
|
29
|
+
},
|
30
|
+
};
|
31
|
+
|
32
|
+
export const PrimaryPaper: Story = {
|
33
|
+
render: () => {
|
34
|
+
return (
|
35
|
+
<Paper className="ff_paper_default_style">
|
36
|
+
<Typography>
|
37
|
+
This Paper component has custom background color and padding.
|
38
|
+
</Typography>
|
39
|
+
</Paper>
|
40
|
+
);
|
41
|
+
},
|
42
|
+
};
|
43
|
+
|
44
|
+
export const PaperWithLowShadow: Story = {
|
45
|
+
render: () => {
|
46
|
+
return (
|
47
|
+
<Paper className="ff_paper_default_style">
|
48
|
+
<Typography>This Paper component has a shadow depth of 6.</Typography>
|
49
|
+
</Paper>
|
50
|
+
);
|
51
|
+
},
|
52
|
+
};
|
53
|
+
|
54
|
+
export const PaperWithHighShadow: Story = {
|
55
|
+
render: () => {
|
56
|
+
return (
|
57
|
+
<Paper className="ff_paper_basic_style" rounded>
|
58
|
+
<Typography>
|
59
|
+
This Paper component combines custom styles, shadow depth of 10, and
|
60
|
+
rounded corners.
|
61
|
+
</Typography>
|
62
|
+
</Paper>
|
63
|
+
);
|
64
|
+
},
|
65
|
+
};
|
66
|
+
|
67
|
+
export const PaperWithRounded: Story = {
|
68
|
+
render: () => {
|
69
|
+
return (
|
70
|
+
<Paper rounded className="ff_paper_default_style">
|
71
|
+
<Typography>This Paper component has Rounded Corners.</Typography>
|
72
|
+
</Paper>
|
73
|
+
);
|
74
|
+
},
|
75
|
+
};
|
76
|
+
|
77
|
+
export default meta;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import classNames from 'classnames';
|
2
|
+
import './Paper.scss';
|
3
|
+
import { PaperProps } from './types';
|
4
|
+
|
5
|
+
const Paper = ({ children, className = '', rounded = false }: PaperProps) => {
|
6
|
+
const dynamicClassName = classNames(
|
7
|
+
{ ['ff_rounded_lg']: rounded },
|
8
|
+
className
|
9
|
+
);
|
10
|
+
|
11
|
+
return <div className={dynamicClassName}>{children}</div>;
|
12
|
+
};
|
13
|
+
|
14
|
+
export default Paper;
|
@@ -0,0 +1 @@
|
|
1
|
+
export {default} from './Paper'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export interface PaperProps {
|
2
|
+
/**
|
3
|
+
* The content of the component.
|
4
|
+
*/
|
5
|
+
children?: React.ReactNode;
|
6
|
+
/**
|
7
|
+
* Override or extend the styles applied to the component.
|
8
|
+
*/
|
9
|
+
className?: string;
|
10
|
+
/**
|
11
|
+
* If `true`, rounded corners are Enabled.
|
12
|
+
* @default false
|
13
|
+
*/
|
14
|
+
rounded?: boolean;
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
@@ -4,7 +4,7 @@ import useClickOutside from '../../../../hooks/useClickOutside';
|
|
4
4
|
import { checkEmpty } from '../../../../utils/checkEmpty/checkEmpty';
|
5
5
|
import './Dropdown.scss';
|
6
6
|
import Typography from '../../../Typography';
|
7
|
-
import ffid from '../../../../utils/ffID/ffid';
|
7
|
+
import { ffid } from '../../../../utils/ffID/ffid';
|
8
8
|
import { ThemeContext } from '../../../ThemeProvider/ThemeProvider';
|
9
9
|
import classNames from 'classnames';
|
10
10
|
|