@candy.thieves/ui-kit-lumos 0.0.10 β†’ 0.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 CHANGED
@@ -27,9 +27,13 @@ The project is built on _React_ and _TypeScript_, using _Storybook_ for componen
27
27
 
28
28
  ## πŸ”— Related Projects
29
29
 
30
- [UI-kit Lumos npm-package](https://www.npmjs.com/package/@candy.thieves/ui-kit-lumos) β€” a UI component library (UI-kit) for the Lumos application
30
+ [UI-kit Lumos npm-package](https://www.npmjs.com/package/@candy.thieves/ui-kit-lumos) β€” a UI component library (UI-kit) for the **Lumos** application
31
31
 
32
- [Lumos app](https://github.com/candysthieves/lumos-ui-kit) β€” main application using the UI Kit
32
+ [UI-kit Lumos repository](https://github.com/candysthieves/lumos-ui-kit) β€” UI-kit library repository for the **Lumos** application
33
+
34
+ [Lumos app repository](https://github.com/candysthieves/client) β€” main application using the UI-kit
35
+
36
+ [Lumos app deploy link](https://lumosapp.net/) β€” deployment link for the application using the UI-kit
33
37
 
34
38
  [Figma Design](https://www.figma.com/design/UehOuThHVruUR8jcC22FXS/Inctagram?m=auto&t=DixPh2DJFl4iZtwB-6) β€” mockups and design system
35
39
 
@@ -131,4 +135,112 @@ export const MyComponent = () => {
131
135
 
132
136
  ## πŸš€ Getting started locally with the UI-kit library
133
137
 
134
- [Instructions for getting started locally](./instructions.md)
138
+ Follow these steps to run the application locally:
139
+
140
+ 1. **Clone the repository:**
141
+
142
+ ```bash
143
+ git clone https://github.com/candysthieves/lumos-ui-kit.git
144
+ ```
145
+
146
+ 2. **Navigate to the project directory:**
147
+
148
+ ```bash
149
+ cd lumos-ui-kit
150
+ ```
151
+
152
+ 3. **Switch to the `develop` branch:**
153
+
154
+ ```bash
155
+ git checkout develop
156
+ ```
157
+
158
+ 4. **Install dependencies:**
159
+
160
+ ```bash
161
+ pnpm install
162
+ ```
163
+
164
+ _If you have problems with running the script, use the following command in the CLI:_
165
+
166
+ ```bash
167
+ pnpm install --legacy-peer-deps
168
+ ```
169
+
170
+ 5. **Launch the StoryBook local development server to visually test components:**
171
+
172
+ ```bash
173
+ pnpm run storybook
174
+ ```
175
+
176
+ 6. **Access the application:**
177
+
178
+ Open your browser and navigate to the link provided in the CLI.*
179
+
180
+ ## βš™οΈAvailable Scripts
181
+
182
+ - **`dev`:** πŸ’» Starts a local Vite development server for quick debugging of the application.
183
+
184
+ ```bash
185
+ pnpm run dev
186
+ ```
187
+
188
+ - **`build`:** πŸ“¦ Checks the TypeScript, then it builds an optimised production build of the project.
189
+
190
+ ```bash
191
+ pnpm run build
192
+ ```
193
+
194
+ - **`type:check`:** πŸ”· Checks TypeScript types without generating files; for validation purposes only.
195
+
196
+ ```bash
197
+ pnpm run type:check
198
+ ```
199
+
200
+ - **`stylelint:check`:** 🎨 Checks SCSS files for stylelint errors.
201
+
202
+ ```bash
203
+ pnpm run stylelint:check
204
+ ```
205
+
206
+ - **`stylelint:fix`:** πŸ”§ Automatically fixes SCSS stylelint errors.
207
+
208
+ ```bash
209
+ pnpm run stylelint:fix
210
+ ```
211
+
212
+ - **`format`:** βœ… Checks and automatically formats code with Prettier.
213
+
214
+ ```bash
215
+ pnpm run format
216
+ ```
217
+
218
+ - **`lint`:** πŸ” Runs ESLint to check for code quality issues and automatically fixes ESLint errors.
219
+
220
+ ```bash
221
+ pnpm run lint
222
+ ```
223
+
224
+ - **`preview`:** πŸ‘€ Starts a local server to preview the production build.
225
+
226
+ ```bash
227
+ pnpm run preview
228
+ ```
229
+
230
+ - **`storybook`:** ✨ Starts a local server to preview the production build.
231
+
232
+ ```bash
233
+ pnpm run storybook
234
+ ```
235
+
236
+ - **`build-storybook`:** 🌐 Starts a local server to preview the production build.
237
+
238
+ ```bash
239
+ pnpm run build-storybook
240
+ ```
241
+
242
+ - **`prepare`:** βš™οΈA lifecycle script that Husky uses to set up Git hooks. This is automatically run after `npm install`.
243
+
244
+ ```bash
245
+ pnpm run build-storybook
246
+ ```
@@ -0,0 +1,18 @@
1
+ import type { ReactNode } from 'react';
2
+ export type SidebarItem = {
3
+ activeIcon?: ReactNode;
4
+ disabled?: boolean;
5
+ href?: string;
6
+ icon: ReactNode;
7
+ id: string;
8
+ label: string;
9
+ };
10
+ type Props = {
11
+ activeId: string;
12
+ items: SidebarItem[];
13
+ logOutIcon: ReactNode;
14
+ onLogout: () => void;
15
+ onValueChange?: (id: string) => void;
16
+ };
17
+ export declare const Sidebar: ({ items, activeId, onValueChange, onLogout, logOutIcon }: Props) => import("react").JSX.Element;
18
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Sidebar';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@candy.thieves/ui-kit-lumos",
3
3
  "private": false,
4
- "version": "0.0.10",
4
+ "version": "0.0.12",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",