@jars-labs/jars-components 1.0.0 → 1.0.2
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/LICENSE.md +26 -0
- package/README.md +65 -3
- package/dist/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/Avatar/Avatar.d.ts.map +1 -1
- package/dist/Icons/Icon.d.ts.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +26 -5
package/LICENSE.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# License for jars-components
|
|
2
|
+
|
|
3
|
+
## Code License
|
|
4
|
+
|
|
5
|
+
This software is licensed under the following terms:
|
|
6
|
+
|
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use the Software within their organization, subject to the following restrictions:
|
|
8
|
+
|
|
9
|
+
1. The Software may not be used commercially outside of Jars-Labs.
|
|
10
|
+
2. Redistribution, sublicensing, and modification are not permitted without prior written permission from Jars-Labs.
|
|
11
|
+
3. The software is provided "as is," without warranty of any kind.
|
|
12
|
+
|
|
13
|
+
## Asset License
|
|
14
|
+
|
|
15
|
+
The assets included in this package (including, but not limited to, icons, color palettes, and typography) are licensed under the **Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)** license.
|
|
16
|
+
|
|
17
|
+
Under this license, you are not allowed to:
|
|
18
|
+
1. Use the assets for any commercial purposes.
|
|
19
|
+
2. Modify, transform, or build upon the assets.
|
|
20
|
+
3. Redistribute the assets.
|
|
21
|
+
|
|
22
|
+
For more information, see the [Creative Commons website](https://creativecommons.org/licenses/by-nc-nd/4.0/).
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
By using this package, you agree to the terms of both licenses.
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# jars-components
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@jars-labs/jars-components)
|
|
4
|
+
|
|
5
|
+
[View on npm](https://www.npmjs.com/package/@jars-labs/jars-components)
|
|
6
|
+
|
|
3
7
|
**jars-components** is a component library designed to standardize and enhance the user interface components used in **Umbrello projects**. This library evolves from the previously used **umbrello-ui** library.
|
|
4
8
|
|
|
5
9
|
## Getting Started
|
|
@@ -19,7 +23,7 @@ Follow these steps to initialize and build the project locally:
|
|
|
19
23
|
```
|
|
20
24
|
2. Install the project dependencies:
|
|
21
25
|
```bash
|
|
22
|
-
|
|
26
|
+
yarn install
|
|
23
27
|
```
|
|
24
28
|
3. Build the project:
|
|
25
29
|
```bash
|
|
@@ -31,11 +35,69 @@ Follow these steps to initialize and build the project locally:
|
|
|
31
35
|
To view the components in a development environment, run the following command:
|
|
32
36
|
|
|
33
37
|
```bash
|
|
34
|
-
|
|
38
|
+
yarn storybook
|
|
35
39
|
```
|
|
36
40
|
|
|
37
41
|
Build the storybook:
|
|
38
42
|
|
|
39
43
|
```bash
|
|
40
|
-
|
|
44
|
+
yarn build-storybook
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Publishing a New Version to npm
|
|
48
|
+
|
|
49
|
+
Follow these steps to publish a new version of the **`@jars-labs/jars-components`** package:
|
|
50
|
+
|
|
51
|
+
### 1. Ensure You Are Logged into npm
|
|
52
|
+
|
|
53
|
+
Log in to npm with your credentials:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
npm login
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Make sure you have the necessary permissions for the jars-labs organization.
|
|
60
|
+
|
|
61
|
+
### 2. Update the Version
|
|
62
|
+
|
|
63
|
+
Use Semantic Versioning:
|
|
64
|
+
|
|
65
|
+
- Patch: For bug fixes or small changes (e.g., 1.0.0 → 1.0.1).
|
|
66
|
+
- Minor: For new features without breaking changes (e.g., 1.0.0 → 1.1.0).
|
|
67
|
+
- Major: For breaking changes (e.g., 1.0.0 → 2.0.0).
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
npm version <patch|minor|major>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### 3. Build the Package
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
yarn build
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 4. Verify the Package Content (optional)
|
|
80
|
+
|
|
81
|
+
Test what will be included in the npm package:
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
npm pack
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Extract the contents of the tarball to verify the package content.
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
tar -tzf jars-components-<version>.tgz
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### 5. Publish the Package
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm publish --access public
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### 6. Push the tag
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
git push --follow-tags
|
|
41
103
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAShD,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAShD,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;CAC5B;AAED;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAmH7D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../src/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,IAAI,kBAAkB,EAClC,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,MAAM,OAAO,CAAA;AAmBzB,MAAM,WAAW,WAAY,SAAQ,kBAAkB;IACrD,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,YAAY,CAAA;CACnD;AAED,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA8BjC,CAAA;AAED,eAAe,MAAM,CAAA"}
|
package/dist/Icons/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/Icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,iBAAiB,EACjB,aAAa,EACd,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,UAAU,kBAAmB,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAmBD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAgFzD,CAAA;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../src/Icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAIZ,iBAAiB,EACjB,aAAa,EACd,MAAM,OAAO,CAAA;AAEd,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,UAAU,kBAAmB,SAAQ,SAAS;IAC5C,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAmBD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAgFzD,CAAA;AAED,eAAe,IAAI,CAAA"}
|
package/dist/index.esm.js
CHANGED
|
@@ -543,8 +543,8 @@ var Autocomplete = function (_a) {
|
|
|
543
543
|
var boldedOptions = options.map(function (option) {
|
|
544
544
|
var index = option.toLowerCase().indexOf(searchValue.toLowerCase());
|
|
545
545
|
if (index === -1)
|
|
546
|
-
return jsx(Dropdown.Option, { value: option, children: option });
|
|
547
|
-
return (jsxs(Dropdown.Option, { value: option, onClick: function () { return handleOptionSubmit(option); }, children: [option.slice(0, index), jsx("strong", { children: option.slice(index, index + searchValue.length) }), option.slice(index + searchValue.length)] }));
|
|
546
|
+
return (jsx(Dropdown.Option, { value: option, children: option }, option));
|
|
547
|
+
return (jsxs(Dropdown.Option, { value: option, onClick: function () { return handleOptionSubmit(option); }, children: [option.slice(0, index), jsx("strong", { children: option.slice(index, index + searchValue.length) }), option.slice(index + searchValue.length)] }, option));
|
|
548
548
|
});
|
|
549
549
|
var emptyOptions = (jsx(Dropdown.Option, { value: "No options found", style: { cursor: 'not-allowed', pointerEvents: 'none' }, children: "No matches found, try something else." }));
|
|
550
550
|
var loadingOptions = (jsx(Dropdown.Option, { value: "Loading...", disabled: true, style: { display: 'flex', justifyContent: 'center' }, children: jsx(Loader, {}) }));
|
|
@@ -1701,7 +1701,7 @@ var Attachment = function (props) {
|
|
|
1701
1701
|
|
|
1702
1702
|
var Bell = function (_a) {
|
|
1703
1703
|
var _b = _a.width, width = _b === void 0 ? '32px' : _b, _c = _a.height, height = _c === void 0 ? '32px' : _c, _d = _a.viewBox, viewBox = _d === void 0 ? '0 0 32 32' : _d, _e = _a.alert, alert = _e === void 0 ? false : _e;
|
|
1704
|
-
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, children: [jsx("path", { d: "M14.1429 27.8572H17.5714", stroke: "black",
|
|
1704
|
+
return (jsxs(Icon, { width: width, height: height, viewBox: viewBox, children: [jsx("path", { d: "M14.1429 27.8572H17.5714", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M22.7143 15C22.7143 13.1813 21.9919 11.4372 20.7059 10.1512C19.4199 8.86527 17.6758 8.14282 15.8572 8.14282C14.0385 8.14282 12.2944 8.86527 11.0084 10.1512C9.72247 11.4372 9.00002 13.1813 9.00002 15V21C9.00002 21.6819 8.72909 22.3361 8.24686 22.8183C7.76463 23.3005 7.11057 23.5714 6.42859 23.5714H25.2857C24.6038 23.5714 23.9496 23.3005 23.4674 22.8183C22.9852 22.3361 22.7143 21.6819 22.7143 21V15Z", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M4.71429 14.777C4.71522 13.1453 5.10435 11.5372 5.84956 10.0855C6.59476 8.63384 7.67464 7.38032 9.00001 6.42847", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M25.8648 10.0855C25.1196 8.63384 24.0396 7.38032 22.7143 6.42847", stroke: "black", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }), alert && (jsx("circle", { cx: "22.2857", cy: "9.14282", r: "5.5", fill: "#7B34D6", stroke: "white" }))] }));
|
|
1705
1705
|
};
|
|
1706
1706
|
|
|
1707
1707
|
var Cat = function (props) {
|