@jars-labs/jars-components 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ type MultiSelectProps = {
13
13
  onBlur?: () => void;
14
14
  data: MultiSelectOptionsType[];
15
15
  onApply: (options: MultiSelectOptionsType[]) => void;
16
+ maxPills?: number;
16
17
  };
17
18
  /**
18
19
  * MultiSelect component, use it to select multiple options from a list of options
@@ -24,10 +25,12 @@ type MultiSelectProps = {
24
25
  * @param {string} placeholder - The placeholder of the select
25
26
  * @param {string} error - The error message to display
26
27
  * @param {string} description - The description to display
28
+ * @param {boolean} disabled - Whether the select is disabled
29
+ * @param {number} maxPills - The maximum number of pills to display, the rest will be displayed as a single pill with the number of remaining items
27
30
  *
28
31
  * @returns {React.ReactElement} The MultiSelect component
29
32
  *
30
33
  */
31
- export declare const Multiselect: ({ data, onApply, error, description, label, placeholder, onBlur, disabled, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
34
+ export declare const Multiselect: ({ data, onApply, error, description, label, placeholder, onBlur, disabled, maxPills, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
32
35
  export {};
33
36
  //# sourceMappingURL=Multiselect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Multiselect.d.ts","sourceRoot":"","sources":["../../../src/Multiselect/Multiselect.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,IAAI,EAAE,sBAAsB,EAAE,CAAA;IAC9B,OAAO,EAAE,CAAC,OAAO,EAAE,sBAAsB,EAAE,KAAK,IAAI,CAAA;CACrD,CAAA;AAED;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,WAAW,iFASrB,gBAAgB,4CAgBlB,CAAA"}
1
+ {"version":3,"file":"Multiselect.d.ts","sourceRoot":"","sources":["../../../src/Multiselect/Multiselect.tsx"],"names":[],"mappings":"AAeA,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,IAAI,EAAE,sBAAsB,EAAE,CAAA;IAC9B,OAAO,EAAE,CAAC,OAAO,EAAE,sBAAsB,EAAE,KAAK,IAAI,CAAA;IACpD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,2FAUrB,gBAAgB,4CAiBlB,CAAA"}
@@ -1,3 +1,8 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const NavBar: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
1
+ import { FlexProps } from '@mantine/core';
2
+ import { PropsWithChildren, ReactElement } from 'react';
3
+ export interface NavBarProps extends FlexProps {
4
+ logo?: ReactElement;
5
+ homePath?: string;
6
+ }
7
+ export declare const NavBar: ({ children, logo, homePath, ...rest }: PropsWithChildren<NavBarProps>) => import("react/jsx-runtime").JSX.Element;
3
8
  //# sourceMappingURL=NavBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../src/NavBar/NavBar.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIhD,eAAO,MAAM,MAAM,iBAAkB,iBAAiB,4CAmBrD,CAAA"}
1
+ {"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../../src/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAI9D,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,MAAM,0CAKhB,iBAAiB,CAAC,WAAW,CAAC,4CAuBhC,CAAA"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.0.10",
6
+ "version": "1.0.11",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",
9
9
  "types": "dist/types/index.d.ts",