@annatarhe/lake-ui 0.0.13 → 0.0.14

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.
Files changed (2) hide show
  1. package/README.md +111 -1
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -1,4 +1,114 @@
1
1
  # Lake-ui [![Publish](https://github.com/AnnatarHe/lake-ui/actions/workflows/publish.yaml/badge.svg)](https://github.com/AnnatarHe/lake-ui/actions/workflows/publish.yaml) [![codecov](https://codecov.io/gh/AnnatarHe/lake-ui/graph/badge.svg?token=T9HO7II4PJ)](https://codecov.io/gh/AnnatarHe/lake-ui)
2
2
 
3
- l like the lake side.
3
+ I love the lake side.
4
4
 
5
+ A modern, lightweight UI component library for React applications.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ pnpm add @annatarhe/lake-ui
11
+ ```
12
+
13
+ ## Available Components
14
+
15
+ ### Card
16
+ ```tsx
17
+ import { Card } from '@annatarhe/lake-ui/card'
18
+
19
+ <Card>
20
+ {/* Your content */}
21
+ </Card>
22
+ ```
23
+
24
+ ### Form Components
25
+
26
+ #### Input Field
27
+ ```tsx
28
+ import { InputField } from '@annatarhe/lake-ui/form-input-field'
29
+
30
+ <InputField
31
+ label="Username"
32
+ value={value}
33
+ onChange={setValue}
34
+ />
35
+ ```
36
+
37
+ #### Number Field
38
+ ```tsx
39
+ import { NumberField } from '@annatarhe/lake-ui/form-number-field'
40
+
41
+ <NumberField
42
+ label="Amount"
43
+ value={amount}
44
+ onChange={setAmount}
45
+ />
46
+ ```
47
+
48
+ #### Select Field
49
+ ```tsx
50
+ import { SelectField } from '@annatarhe/lake-ui/form-select-field'
51
+
52
+ <SelectField
53
+ label="Category"
54
+ options={options}
55
+ value={selected}
56
+ onChange={setSelected}
57
+ />
58
+ ```
59
+
60
+ #### Multi Select
61
+ ```tsx
62
+ import { MultiSelect } from '@annatarhe/lake-ui/form-multi-select'
63
+
64
+ <MultiSelect
65
+ label="Tags"
66
+ options={options}
67
+ value={selectedTags}
68
+ onChange={setSelectedTags}
69
+ />
70
+ ```
71
+
72
+ ### Modal
73
+ ```tsx
74
+ import { Modal } from '@annatarhe/lake-ui/modal'
75
+
76
+ <Modal
77
+ isOpen={isOpen}
78
+ onClose={handleClose}
79
+ >
80
+ {/* Modal content */}
81
+ </Modal>
82
+ ```
83
+
84
+ ### Navbar
85
+ ```tsx
86
+ import { NavbarContainer } from '@annatarhe/lake-ui/navbar'
87
+
88
+ <NavbarContainer>
89
+ {/* Navigation items */}
90
+ </NavbarContainer>
91
+ ```
92
+
93
+ ### Table
94
+ ```tsx
95
+ import { Table } from '@annatarhe/lake-ui/table'
96
+
97
+ <Table
98
+ data={data}
99
+ columns={columns}
100
+ />
101
+ ```
102
+
103
+ ### Tooltip
104
+ ```tsx
105
+ import { Tooltip } from '@annatarhe/lake-ui/tooltip'
106
+
107
+ <Tooltip content="Helpful information">
108
+ <button>Hover me</button>
109
+ </Tooltip>
110
+ ```
111
+
112
+ ## License
113
+
114
+ MIT © [AnnatarHe](https://github.com/AnnatarHe)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@annatarhe/lake-ui",
3
3
  "private": false,
4
- "version": "0.0.13",
4
+ "version": "0.0.14",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "exports": {
@@ -13,23 +13,23 @@
13
13
  "import": "./dist/card/index.js",
14
14
  "types": "./dist/src/card/index.d.ts"
15
15
  },
16
- "./form/input-field": {
16
+ "./form-input-field": {
17
17
  "import": "./dist/form/input-field/input-field.js",
18
18
  "types": "./dist/src/form/input-field/input-field.d.ts"
19
19
  },
20
- "./form/number-field": {
20
+ "./form-number-field": {
21
21
  "import": "./dist/form/number-field/number-field.js",
22
22
  "types": "./dist/src/form/number-field/number-field.d.ts"
23
23
  },
24
- "./form/multi-select": {
24
+ "./form-multi-select": {
25
25
  "import": "./dist/form/multi-select/multi-select.js",
26
26
  "types": "./dist/src/form/multi-select/multi-select.d.ts"
27
27
  },
28
- "./form/select-field": {
28
+ "./form-select-field": {
29
29
  "import": "./dist/form/select-field/select-field.js",
30
30
  "types": "./dist/src/form/select-field/select-field.d.ts"
31
31
  },
32
- "./form/switch-field": {
32
+ "./form-switch-field": {
33
33
  "import": "./dist/form/switch-field/switch-field.js",
34
34
  "types": "./dist/src/form/switch-field/switch-field.d.ts"
35
35
  },
@@ -37,7 +37,7 @@
37
37
  "import": "./dist/modal/index.js",
38
38
  "types": "./dist/src/modal/index.d.ts"
39
39
  },
40
- "./navbar/container": {
40
+ "./navbar-container": {
41
41
  "import": "./dist/navbar/container.js",
42
42
  "types": "./dist/src/navbar/container.d.ts"
43
43
  },