elseware-ui 2.31.1 → 2.31.4

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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 elseware Technology
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,109 +1,98 @@
1
- # elseware UI
2
-
3
- ## Component Imports Structure
4
-
5
- ```javascript
6
- // External
7
- import { ReactNode } from "react";
8
-
9
- // Internal
10
- import { cn } from "@/utils";
11
-
12
- // Types
13
- import { BaseComponentProps } from "@/interfaces";
14
- import { Variant, Shape, Size } from "@/types";
15
-
16
- // Data
17
- import {
18
- shapes,
19
- variants,
20
- borderVariants,
21
- avatarSizes,
22
- } from "@/data/styles";
23
- ```
24
-
25
- Copy the following and define the component imports accordingly
26
-
27
- ```javascript
28
- // External
29
-
30
- // Internal
31
-
32
- // Types
33
-
34
- // Data
35
- ```
36
-
37
-
38
- ## Folder Hierarchy
39
- - components: Base UI primitives (buttons, inputs, modals, etc.)
40
- - compositions: Composite reusable structures built from primitives
41
- - data: Metadata used on the components/compositions
42
- - layouts: Page layouts that can be used to quickly structure the page formats
43
- - styles: Tailwind/CSS stylings
44
- - types: Custom react types
45
- - utils: Reusable utility functions and hooks
46
-
47
- ## Setup
48
-
49
- Install the dependendecies via `npm i`.
50
-
51
- ## Run Storybook
52
-
53
- To test the components and its features start storybook using `npm run dev`.
54
-
55
- ## Build
56
-
57
- Run `npm run build` to build the UI framework.
58
-
59
- ## Publishing to npm
60
-
61
- ### Publishing a New Version
62
-
63
- 1. **Update the version number**:
64
- - Before publishing a new version, update the version in `package.json` following [semantic versioning](https://semver.org/).
65
- - Example:
66
- ```json
67
- {
68
- "name": "elseware-ui",
69
- "version": "1.0.1",
70
- ...
71
- }
72
- ```
73
-
74
- 2. **Build the UI Framework**:
75
- - Run the following command to ensure your changes are built and ready to be published:
76
- ```bash
77
- npm run build
78
- ```
79
-
80
- 3. **Login to npm**:
81
- - If you're not already logged in to npm, log in using:
82
- ```bash
83
- npm login
84
- ```
85
-
86
- 4. **Publish the package**:
87
- - To publish the package, run the following command:
88
- ```bash
89
- npm publish --access public
90
- ```
91
- - Make sure the package name in `package.json` is unique and does not conflict with other packages on npm.
92
-
93
- ### Unpublishing an Older Version
94
-
95
- If you need to unpublish a specific version of the package:
96
-
97
- 1. **Unpublish a specific version**:
98
- - To unpublish a specific version of your package (e.g., `1.0.0`), run:
99
- ```bash
100
- npm unpublish elseware-ui@1.0.0
101
- ```
102
-
103
- 2. **Unpublish the entire package**:
104
- - If you need to unpublish the entire package, you can run the following command (not recommended for public packages):
105
- ```bash
106
- npm unpublish elseware-ui --force
107
- ```
108
-
109
- **Note:** Be cautious when using `--force` as npm restricts package unpublishing for packages that are older than 72 hours to avoid breaking dependencies.
1
+ # elseware-ui
2
+
3
+ A modern React component library for building web and desktop user interfaces.
4
+
5
+ `elseware-ui` provides a collection of reusable, customizable, and production-ready UI components designed to accelerate application development while maintaining consistency, accessibility, and scalability.
6
+
7
+ ## Features
8
+
9
+ - TypeScript-first development
10
+ - React-based component architecture
11
+ - Tailwind CSS integration
12
+ - Customizable themes and styling
13
+ - Consistent design system
14
+ - Web and desktop application support
15
+ - Storybook-powered component documentation
16
+ - Modular and tree-shakable components
17
+ - Developer-friendly APIs
18
+
19
+ ## Component Import Structure
20
+
21
+ Use the following import ordering convention when creating components:
22
+
23
+ ```ts
24
+ // External
25
+
26
+ // Internal
27
+
28
+ // Types
29
+
30
+ // Data
31
+ ```
32
+
33
+ Example:
34
+
35
+ ```ts
36
+ // External
37
+ import { ReactNode } from "react";
38
+
39
+ // Internal
40
+ import { cn } from "@/utils";
41
+
42
+ // Types
43
+ import { BaseComponentProps } from "@/interfaces";
44
+ import { Variant, Shape, Size } from "@/types";
45
+
46
+ // Data
47
+ import { shapes, variants, borderVariants, avatarSizes } from "@/data/styles";
48
+ ```
49
+
50
+ ## Installation
51
+
52
+ Install dependencies:
53
+
54
+ ```bash
55
+ npm install
56
+ ```
57
+
58
+ ## Development
59
+
60
+ Start Storybook for component development and testing:
61
+
62
+ ```bash
63
+ npm run dev
64
+ ```
65
+
66
+ ## Build
67
+
68
+ Build the component library:
69
+
70
+ ```bash
71
+ npm run build
72
+ ```
73
+
74
+ ## Publishing
75
+
76
+ Publish a new package version to npm:
77
+
78
+ ```bash
79
+ npm run release
80
+ ```
81
+
82
+ ## Documentation
83
+
84
+ Interactive component documentation and examples are available through Storybook.
85
+
86
+ ## About elseware Technology
87
+
88
+ elseware Technology builds tools, frameworks, and solutions for software engineering, cloud computing, game development, and developer productivity.
89
+
90
+ ## Contributing
91
+
92
+ Contributions, issues, and feature requests are welcome.
93
+
94
+ ## License
95
+
96
+ This project is licensed under the MIT License.
97
+
98
+ Copyright © 2026 elseware Technology.
package/dist/index.css CHANGED
@@ -689,12 +689,12 @@ video {
689
689
  .min-h-\[3rem\] {
690
690
  min-height: 3rem;
691
691
  }
692
- .min-h-\[48px\] {
693
- min-height: 48px;
694
- }
695
692
  .min-h-\[50px\] {
696
693
  min-height: 50px;
697
694
  }
695
+ .min-h-\[56px\] {
696
+ min-height: 56px;
697
+ }
698
698
  .min-h-screen {
699
699
  min-height: 100vh;
700
700
  }
@@ -853,9 +853,6 @@ video {
853
853
  .min-w-\[120px\] {
854
854
  min-width: 120px;
855
855
  }
856
- .min-w-\[160px\] {
857
- min-width: 160px;
858
- }
859
856
  .min-w-\[180px\] {
860
857
  min-width: 180px;
861
858
  }
@@ -1195,6 +1192,9 @@ video {
1195
1192
  .whitespace-pre-wrap {
1196
1193
  white-space: pre-wrap;
1197
1194
  }
1195
+ .break-words {
1196
+ overflow-wrap: break-word;
1197
+ }
1198
1198
  .rounded {
1199
1199
  border-radius: .25rem;
1200
1200
  }
@@ -4695,12 +4695,12 @@ video {
4695
4695
  .min-h-\[3rem\] {
4696
4696
  min-height: 3rem;
4697
4697
  }
4698
- .min-h-\[48px\] {
4699
- min-height: 48px;
4700
- }
4701
4698
  .min-h-\[50px\] {
4702
4699
  min-height: 50px;
4703
4700
  }
4701
+ .min-h-\[56px\] {
4702
+ min-height: 56px;
4703
+ }
4704
4704
  .min-h-screen {
4705
4705
  min-height: 100vh;
4706
4706
  }
@@ -4859,9 +4859,6 @@ video {
4859
4859
  .min-w-\[120px\] {
4860
4860
  min-width: 120px;
4861
4861
  }
4862
- .min-w-\[160px\] {
4863
- min-width: 160px;
4864
- }
4865
4862
  .min-w-\[180px\] {
4866
4863
  min-width: 180px;
4867
4864
  }
@@ -5201,6 +5198,9 @@ video {
5201
5198
  .whitespace-pre-wrap {
5202
5199
  white-space: pre-wrap;
5203
5200
  }
5201
+ .break-words {
5202
+ overflow-wrap: break-word;
5203
+ }
5204
5204
  .rounded {
5205
5205
  border-radius: .25rem;
5206
5206
  }
@@ -8697,12 +8697,12 @@ video {
8697
8697
  .min-h-\[3rem\] {
8698
8698
  min-height: 3rem;
8699
8699
  }
8700
- .min-h-\[48px\] {
8701
- min-height: 48px;
8702
- }
8703
8700
  .min-h-\[50px\] {
8704
8701
  min-height: 50px;
8705
8702
  }
8703
+ .min-h-\[56px\] {
8704
+ min-height: 56px;
8705
+ }
8706
8706
  .min-h-screen {
8707
8707
  min-height: 100vh;
8708
8708
  }
@@ -8861,9 +8861,6 @@ video {
8861
8861
  .min-w-\[120px\] {
8862
8862
  min-width: 120px;
8863
8863
  }
8864
- .min-w-\[160px\] {
8865
- min-width: 160px;
8866
- }
8867
8864
  .min-w-\[180px\] {
8868
8865
  min-width: 180px;
8869
8866
  }
@@ -9203,6 +9200,9 @@ video {
9203
9200
  .whitespace-pre-wrap {
9204
9201
  white-space: pre-wrap;
9205
9202
  }
9203
+ .break-words {
9204
+ overflow-wrap: break-word;
9205
+ }
9206
9206
  .rounded {
9207
9207
  border-radius: .25rem;
9208
9208
  }