pixel-react 1.1.2 → 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/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.css +404 -0
- package/lib/index.d.ts +115 -1
- package/lib/index.esm.css +404 -0
- package/lib/index.esm.js +5748 -108
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +5757 -107
- 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/rollup.config.mjs +8 -2
- 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/Button/index.ts +1 -1
- 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
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$/],
|
@@ -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 +1 @@
|
|
1
|
-
export { default } from './Button';
|
1
|
+
export { default } from './Button';
|
@@ -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
|
|
@@ -0,0 +1,128 @@
|
|
1
|
+
.ff_variable_input_container {
|
2
|
+
.ff_label_container {
|
3
|
+
display: flex;
|
4
|
+
align-items: center;
|
5
|
+
margin-bottom: 4px;
|
6
|
+
|
7
|
+
&.ff_danger_label {
|
8
|
+
.ff_input_label {
|
9
|
+
color: var(--error);
|
10
|
+
}
|
11
|
+
|
12
|
+
.ff_required_asterisk {
|
13
|
+
color: var(--error);
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.ff_required_asterisk {
|
19
|
+
color: var(--input-error-text-color);
|
20
|
+
font-size: 1.1em;
|
21
|
+
margin-right: 4px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.ff_input_label {
|
25
|
+
font-size: 14px;
|
26
|
+
font-weight: 500;
|
27
|
+
color: var(--text-color);
|
28
|
+
|
29
|
+
&.ff_no_hover {
|
30
|
+
color: var(--toggle-disable-icon-color);
|
31
|
+
}
|
32
|
+
|
33
|
+
&.ff_disabled_label {
|
34
|
+
color: var(--toggle-disable-icon-color);
|
35
|
+
cursor: not-allowed;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.ff_danger_label {
|
39
|
+
color: var(--error);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
.ff_content_editable {
|
44
|
+
min-width: 8rem;
|
45
|
+
border: 1px solid var(--input-default-border-color);
|
46
|
+
padding: 8px;
|
47
|
+
min-height: 30px;
|
48
|
+
border-radius: 4px;
|
49
|
+
font-family: Arial, sans-serif;
|
50
|
+
font-size: 14px;
|
51
|
+
line-height: 20px;
|
52
|
+
transition: border-color 0.2s ease;
|
53
|
+
position: relative;
|
54
|
+
text-align: left;
|
55
|
+
display: flex;
|
56
|
+
align-items: center;
|
57
|
+
overflow: auto;
|
58
|
+
|
59
|
+
.ff_var_red {
|
60
|
+
color: var(--status-rejected-text-color);
|
61
|
+
}
|
62
|
+
|
63
|
+
.ff_var_def_color {
|
64
|
+
color: var(--text-color);
|
65
|
+
}
|
66
|
+
|
67
|
+
.ff_var_green {
|
68
|
+
color: var(--status-success-text-color);
|
69
|
+
}
|
70
|
+
|
71
|
+
&::after {
|
72
|
+
content: '*';
|
73
|
+
color: var(--input-error-text-color);
|
74
|
+
font-size: 1.2em;
|
75
|
+
position: absolute;
|
76
|
+
top: 2px;
|
77
|
+
right: 2px;
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
|
81
|
+
&.ff_required::after {
|
82
|
+
display: inline;
|
83
|
+
}
|
84
|
+
|
85
|
+
&.ff_required_empty:focus-within,
|
86
|
+
&.ff_required_empty:focus {
|
87
|
+
border-color: var(--input-error-text-color);
|
88
|
+
}
|
89
|
+
|
90
|
+
&:empty::before {
|
91
|
+
content: attr(data-placeholder);
|
92
|
+
color: var(--ff-search-filed-placeholder-text);
|
93
|
+
position: absolute;
|
94
|
+
user-select: none;
|
95
|
+
pointer-events: none;
|
96
|
+
font-size: medium;
|
97
|
+
}
|
98
|
+
|
99
|
+
&.ff_disabled {
|
100
|
+
pointer-events: none;
|
101
|
+
opacity: 0.5;
|
102
|
+
background-color: var(--input-default-border-color);
|
103
|
+
}
|
104
|
+
|
105
|
+
&.ff_invalid_input {
|
106
|
+
border: 1px solid var(--input-error-text-color);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.ff_suggestions {
|
111
|
+
border: 1px solid var(--input-default-border-color);
|
112
|
+
margin-top: 4px;
|
113
|
+
padding: 4px;
|
114
|
+
border-radius: 4px;
|
115
|
+
list-style-type: none;
|
116
|
+
background-color: var(--ff-select-background-color);
|
117
|
+
max-height: 150px;
|
118
|
+
overflow-y: auto;
|
119
|
+
}
|
120
|
+
|
121
|
+
.ff_suggestion_item {
|
122
|
+
padding: 4px;
|
123
|
+
cursor: pointer;
|
124
|
+
&:hover {
|
125
|
+
background-color: var(--ff-select-background-color);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import VariableInput from './VariableInput';
|
3
|
+
|
4
|
+
const meta: Meta<typeof VariableInput> = {
|
5
|
+
title: 'Components/VariableInput',
|
6
|
+
component: VariableInput,
|
7
|
+
parameters: {
|
8
|
+
layout: 'centered',
|
9
|
+
},
|
10
|
+
tags: ['autodocs'],
|
11
|
+
};
|
12
|
+
|
13
|
+
type Story = StoryObj<typeof VariableInput>;
|
14
|
+
|
15
|
+
const defaultArgs = {
|
16
|
+
name: 'input',
|
17
|
+
label: '',
|
18
|
+
disabled: false,
|
19
|
+
placeholder: 'Enter URL',
|
20
|
+
value: '',
|
21
|
+
type: 'url',
|
22
|
+
list:['name','urlName','passwork','emailId','default','errorVar']
|
23
|
+
};
|
24
|
+
|
25
|
+
export const Default: Story = {
|
26
|
+
args: {
|
27
|
+
...defaultArgs,
|
28
|
+
label: 'Enter URL',
|
29
|
+
type: 'url',
|
30
|
+
},
|
31
|
+
};
|
32
|
+
export default meta;
|