@jars-labs/jars-components 1.0.10 → 1.0.12
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.
- package/README.md +23 -1
- package/dist/{index-SJDXCSJk.js → index-8sE755zt.js} +137 -79
- package/dist/index-8sE755zt.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{lottie-CMIUDj7j.js → lottie-CIpbn_2e.js} +2 -2
- package/dist/{lottie-CMIUDj7j.js.map → lottie-CIpbn_2e.js.map} +1 -1
- package/dist/types/Multiselect/Multiselect.d.ts +4 -1
- package/dist/types/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/types/NavBar/NavBar.d.ts +7 -2
- package/dist/types/NavBar/NavBar.d.ts.map +1 -1
- package/package.json +5 -4
- package/dist/index-SJDXCSJk.js.map +0 -1
|
@@ -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;
|
|
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 {
|
|
2
|
-
|
|
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":"
|
|
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.
|
|
6
|
+
"version": "1.0.12",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"types": "dist/types/index.d.ts",
|
|
@@ -56,7 +56,8 @@
|
|
|
56
56
|
"storybook": "^8.3.5",
|
|
57
57
|
"typescript": "^5.7.2",
|
|
58
58
|
"typescript-eslint": "^8.19.1",
|
|
59
|
-
"vite": "^6.0.6"
|
|
59
|
+
"vite": "^6.0.6",
|
|
60
|
+
"react-toastify": "^9.1.3"
|
|
60
61
|
},
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"classnames": "^2.5.1",
|
|
@@ -64,7 +65,6 @@
|
|
|
64
65
|
"dayjs": "^1.11.13",
|
|
65
66
|
"lottie-web": "^5.12.1",
|
|
66
67
|
"postcss": "^8.4.49",
|
|
67
|
-
"react-toastify": "^9.1.3",
|
|
68
68
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
69
69
|
"tslib": "^2.8.1"
|
|
70
70
|
},
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@mantine/dates": "*",
|
|
74
74
|
"@mantine/hooks": "*",
|
|
75
75
|
"react": "*",
|
|
76
|
-
"react-dom": "*"
|
|
76
|
+
"react-dom": "*",
|
|
77
|
+
"react-toastify": "*"
|
|
77
78
|
}
|
|
78
79
|
}
|