pixel-react 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
  3. package/lib/components/MultiSelect/MultiSelectTypes.d.ts +2 -0
  4. package/lib/components/MultiSelect/dropdownTypes.d.ts +2 -0
  5. package/lib/index.d.ts +3 -1
  6. package/lib/index.esm.js +512 -2327
  7. package/lib/index.esm.js.map +1 -1
  8. package/lib/index.js +512 -2328
  9. package/lib/index.js.map +1 -1
  10. package/lib/tsconfig.tsbuildinfo +1 -1
  11. package/lib/utils/compareArrays/compareArrays.d.ts +11 -0
  12. package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
  13. package/lib/utils/compareObjects/compareObjects.d.ts +2 -0
  14. package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
  15. package/lib/utils/debounce/debounce.d.ts +6 -0
  16. package/lib/utils/debounce/debounce.stories.d.ts +6 -0
  17. package/lib/utils/find/findAndInsert.d.ts +7 -0
  18. package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
  19. package/lib/utils/throttle/throttle.d.ts +6 -0
  20. package/lib/utils/throttle/throttle.stories.d.ts +6 -0
  21. package/package.json +3 -1
  22. package/rollup.config.mjs +10 -5
  23. package/src/StyleGuide/ColorPalette/ColorPalette.scss +4 -5
  24. package/src/StyleGuide/Typography/Typography.scss +4 -5
  25. package/src/assets/Themes/Theme.scss +7 -191
  26. package/src/assets/icons/filter.svg +5 -0
  27. package/src/components/Accordion/Accordion.scss +1 -2
  28. package/src/components/Button/Button.scss +1 -1
  29. package/src/components/Charts/DonutChart/DonutChart.scss +1 -1
  30. package/src/components/Charts/RadialChart/RadialChart.scss +1 -1
  31. package/src/components/Drawer/Drawer.scss +9 -10
  32. package/src/components/ExpandableMenu/ExpandableMenu.scss +1 -1
  33. package/src/components/Icon/Icons.scss +5 -6
  34. package/src/components/Icon/iconList.ts +2 -0
  35. package/src/components/MenuOption/MenuOption.scss +1 -1
  36. package/src/components/MultiSelect/Dropdown.scss +27 -16
  37. package/src/components/MultiSelect/Dropdown.tsx +51 -28
  38. package/src/components/MultiSelect/MultiSelect.scss +1 -1
  39. package/src/components/MultiSelect/MultiSelect.stories.tsx +9 -5
  40. package/src/components/MultiSelect/MultiSelect.tsx +4 -0
  41. package/src/components/MultiSelect/MultiSelectTypes.ts +2 -0
  42. package/src/components/MultiSelect/dropdownTypes.ts +2 -0
  43. package/src/components/RadioButton/RadioButton.scss +2 -3
  44. package/src/components/Search/Search.scss +1 -1
  45. package/src/components/Table/Table.scss +1 -1
  46. package/src/components/TextArea/Textarea.scss +1 -2
  47. package/src/components/Toggle/Toggle.scss +5 -4
  48. package/src/components/Tooltip/Tooltip.scss +1 -1
  49. package/src/index.ts +1 -4
  50. package/src/utils/checkEmpty/checkEmpty.stories.tsx +1 -1
  51. package/src/utils/checkEmpty/checkEmpty.ts +21 -7
  52. package/src/utils/compareArrays/compareArrays.stories.tsx +62 -0
  53. package/src/utils/compareArrays/compareArrays.ts +31 -0
  54. package/src/utils/compareObjects/compareObjects.stories.tsx +51 -0
  55. package/src/utils/compareObjects/compareObjects.ts +53 -0
  56. package/src/utils/debounce/debounce.stories.tsx +81 -0
  57. package/src/utils/debounce/debounce.ts +28 -0
  58. package/src/utils/find/findAndInsert.stories.tsx +119 -0
  59. package/src/utils/find/findAndInsert.ts +49 -0
  60. package/src/utils/throttle/throttle.stories.tsx +100 -0
  61. package/src/utils/throttle/throttle.ts +33 -0
  62. package/vite.config.js +8 -16
Binary file
@@ -1,4 +1,4 @@
1
1
  import './MultiSelect.scss';
2
2
  import { MultiSelectProps } from './MultiSelectTypes';
3
- declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default MultiSelect;
@@ -14,5 +14,7 @@ interface MultiSelectProps {
14
14
  zIndex?: number;
15
15
  required?: boolean;
16
16
  errorMessage?: string;
17
+ withSelectButton?: boolean;
18
+ onSelect?: () => void;
17
19
  }
18
20
  export { Option, MultiSelectProps };
@@ -12,4 +12,6 @@ export interface DropdownProps {
12
12
  searchedKeyword: undefined | string;
13
13
  dropdownPosition: any;
14
14
  zIndex: number;
15
+ withSelectButton?: boolean;
16
+ onSelect?: () => void;
15
17
  }
package/lib/index.d.ts CHANGED
@@ -216,9 +216,11 @@ interface MultiSelectProps {
216
216
  zIndex?: number;
217
217
  required?: boolean;
218
218
  errorMessage?: string;
219
+ withSelectButton?: boolean;
220
+ onSelect?: () => void;
219
221
  }
220
222
 
221
- declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
223
+ declare const MultiSelect: ({ options, selectedOptions, onChange, zIndex, label, onSearch, required, disabled, errorMessage, withSelectButton, onSelect, }: MultiSelectProps) => react_jsx_runtime.JSX.Element;
222
224
 
223
225
  interface ToasterProps {
224
226
  /**Boolean value to handle state of toaster. */