@stevederico/skateboard-ui 0.5.3 → 0.5.5
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/AppSidebar.jsx +10 -1
- package/LandingView.jsx +9 -1
- package/Layout.jsx +2 -2
- package/SettingsView.jsx +9 -1
- package/SignInView.jsx +9 -1
- package/SignUpView.jsx +9 -1
- package/TabBar.jsx +10 -1
- package/package.json +2 -1
- package/shadcn/ui/sheet.jsx +1 -1
- package/shadcn/ui/sidebar.jsx +1 -1
- package/lucide-react/LICENSE +0 -15
- package/lucide-react/README.md +0 -73
- package/lucide-react/dynamic.d.ts +0 -35438
- package/lucide-react/dynamic.mjs +0 -9
- package/lucide-react/dynamicIconImports.d.ts +0 -35409
- package/lucide-react/dynamicIconImports.mjs +0 -1
package/AppSidebar.jsx
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { useNavigate, useLocation } from "react-router-dom";
|
|
2
3
|
import constants from "@/constants.json";
|
|
3
|
-
import
|
|
4
|
+
import * as LucideIcons from "lucide-react";
|
|
5
|
+
|
|
6
|
+
// Dynamic Icon Component
|
|
7
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
8
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
9
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
10
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
11
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
12
|
+
};
|
|
4
13
|
import {
|
|
5
14
|
Sidebar,
|
|
6
15
|
SidebarContent,
|
package/LandingView.jsx
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import constants from "@/constants.json";
|
|
3
|
+
import * as LucideIcons from "lucide-react";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
// Dynamic Icon Component
|
|
6
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
7
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
8
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
9
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
10
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
11
|
+
};
|
|
4
12
|
|
|
5
13
|
export default function LandingView() {
|
|
6
14
|
return (
|
package/Layout.jsx
CHANGED
|
@@ -3,7 +3,7 @@ import TabBar from './TabBar.jsx'
|
|
|
3
3
|
import { SidebarProvider, SidebarTrigger } from "./shadcn/ui/sidebar"
|
|
4
4
|
import AppSidebar from "./AppSidebar"
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
|
|
8
8
|
export default function Layout({ children }) {
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ export default function Layout({ children }) {
|
|
|
22
22
|
<div className="min-h-screen">
|
|
23
23
|
<div className="fixed inset-0 flex overflow-hidden pt-[env(safe-area-inset-top)] pb-[env(safe-area-inset-bottom)] pl-[env(safe-area-inset-left)] pr-[env(safe-area-inset-right)]">
|
|
24
24
|
<SidebarProvider>
|
|
25
|
-
|
|
25
|
+
<AppSidebar />
|
|
26
26
|
<main className="flex-1 relative overflow-y-auto scrollbar-hide">
|
|
27
27
|
<Outlet />
|
|
28
28
|
</main>
|
package/SettingsView.jsx
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { useNavigate } from 'react-router-dom';
|
|
2
2
|
import { getState } from '@/context.jsx';
|
|
3
3
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import * as LucideIcons from "lucide-react";
|
|
5
|
+
|
|
6
|
+
// Dynamic Icon Component
|
|
7
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
8
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
9
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
10
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
11
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
12
|
+
};
|
|
5
13
|
import constants from "@/constants.json";
|
|
6
14
|
import pkg from '@package';
|
|
7
15
|
import { showCheckout } from './Utilities';
|
package/SignInView.jsx
CHANGED
|
@@ -9,7 +9,15 @@ import {
|
|
|
9
9
|
} from "./shadcn/ui/card"
|
|
10
10
|
import { Input } from "./shadcn/ui/input"
|
|
11
11
|
import { Label } from "./shadcn/ui/label"
|
|
12
|
-
import
|
|
12
|
+
import * as LucideIcons from "lucide-react";
|
|
13
|
+
|
|
14
|
+
// Dynamic Icon Component
|
|
15
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
16
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
17
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
18
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
19
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
20
|
+
};
|
|
13
21
|
|
|
14
22
|
import { useState } from 'react';
|
|
15
23
|
import { useNavigate } from 'react-router-dom';
|
package/SignUpView.jsx
CHANGED
|
@@ -7,7 +7,15 @@ import {
|
|
|
7
7
|
} from "./shadcn/ui/card"
|
|
8
8
|
import { Input } from "./shadcn/ui/input"
|
|
9
9
|
import { Label } from "./shadcn/ui/label"
|
|
10
|
-
import
|
|
10
|
+
import * as LucideIcons from "lucide-react";
|
|
11
|
+
|
|
12
|
+
// Dynamic Icon Component
|
|
13
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
14
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
15
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
16
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
17
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
18
|
+
};
|
|
11
19
|
import { useState } from 'react';
|
|
12
20
|
import { useNavigate } from 'react-router-dom';
|
|
13
21
|
import constants from "@/constants.json";
|
package/TabBar.jsx
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import constants from "@/constants.json";
|
|
2
3
|
import { Link, useLocation } from 'react-router-dom';
|
|
3
|
-
import
|
|
4
|
+
import * as LucideIcons from "lucide-react";
|
|
5
|
+
|
|
6
|
+
// Dynamic Icon Component
|
|
7
|
+
const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2, ...props }) => {
|
|
8
|
+
const toPascalCase = (str) => str.split(/[-_\s]/).map(word => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join('');
|
|
9
|
+
const possibleNames = [name, toPascalCase(name), name.charAt(0).toUpperCase() + name.slice(1)];
|
|
10
|
+
const LucideIcon = possibleNames.find(n => LucideIcons[n]) ? LucideIcons[possibleNames.find(n => LucideIcons[n])] : null;
|
|
11
|
+
return LucideIcon ? React.createElement(LucideIcon, { size, color, strokeWidth, ...props }) : null;
|
|
12
|
+
};
|
|
4
13
|
|
|
5
14
|
export default function TabBar() {
|
|
6
15
|
const location = useLocation();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stevederico/skateboard-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./AppSidebar": {
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"@radix-ui/react-slot": "^1.2.3",
|
|
77
77
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
78
78
|
"class-variance-authority": "^0.7.1",
|
|
79
|
+
"lucide-react": "^0.523.0",
|
|
79
80
|
"clsx": "^2.1.1",
|
|
80
81
|
"tailwind-merge": "^3.3.0",
|
|
81
82
|
"tailwindcss-animate": "^1.0.7"
|
package/shadcn/ui/sheet.jsx
CHANGED
package/shadcn/ui/sidebar.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { Slot } from "@radix-ui/react-slot"
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
|
-
import { PanelLeft } from "
|
|
4
|
+
import { PanelLeft } from "lucide-react"
|
|
5
5
|
|
|
6
6
|
import { useIsMobile } from "../hooks/use-mobile"
|
|
7
7
|
import { cn } from "../lib/utils"
|
package/lucide-react/LICENSE
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
-
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/lucide-react/README.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<p align="center">
|
|
2
|
-
<a href="https://github.com/lucide-icons/lucide">
|
|
3
|
-
<img src="https://lucide.dev/package-logos/lucide-react.svg" alt="Lucide icon library for React applications." width="540">
|
|
4
|
-
</a>
|
|
5
|
-
</p>
|
|
6
|
-
|
|
7
|
-
<p align="center">
|
|
8
|
-
Lucide icon library for React applications.
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
<div align="center">
|
|
12
|
-
|
|
13
|
-
[](https://www.npmjs.com/package/lucide-react)
|
|
14
|
-

|
|
15
|
-
[](https://lucide.dev/license)
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<p align="center">
|
|
19
|
-
<a href="https://lucide.dev/guide/">About</a>
|
|
20
|
-
·
|
|
21
|
-
<a href="https://lucide.dev/icons/">Icons</a>
|
|
22
|
-
·
|
|
23
|
-
<a href="https://lucide.dev/guide/packages/lucide-react">Documentation</a>
|
|
24
|
-
·
|
|
25
|
-
<a href="https://lucide.dev/license">License</a>
|
|
26
|
-
</p>
|
|
27
|
-
|
|
28
|
-
# Lucide React
|
|
29
|
-
|
|
30
|
-
Implementation of the lucide icon library for React applications.
|
|
31
|
-
|
|
32
|
-
## Installation
|
|
33
|
-
|
|
34
|
-
```sh
|
|
35
|
-
pnpm add lucide-react
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
```sh
|
|
39
|
-
npm install lucide-react
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
```sh
|
|
43
|
-
yarn add lucide-react
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
```sh
|
|
47
|
-
bun add lucide-react
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Documentation
|
|
51
|
-
|
|
52
|
-
For full documentation, visit [lucide.dev](https://lucide.dev/guide/packages/lucide-react)
|
|
53
|
-
|
|
54
|
-
## Community
|
|
55
|
-
|
|
56
|
-
Join the [Discord server](https://discord.gg/EH6nSts) to chat with the maintainers and other users.
|
|
57
|
-
|
|
58
|
-
## License
|
|
59
|
-
|
|
60
|
-
Lucide is licensed under the ISC license. See [LICENSE](https://lucide.dev/license).
|
|
61
|
-
|
|
62
|
-
## Sponsors
|
|
63
|
-
|
|
64
|
-
<a href="https://vercel.com?utm_source=lucide&utm_campaign=oss">
|
|
65
|
-
<img src="https://lucide.dev/vercel.svg" alt="Powered by Vercel" width="200" />
|
|
66
|
-
</a>
|
|
67
|
-
|
|
68
|
-
<a href="https://www.digitalocean.com/?refcode=b0877a2caebd&utm_campaign=Referral_Invite&utm_medium=Referral_Program&utm_source=badge"><img src="https://lucide.dev/digitalocean.svg" width="200" alt="DigitalOcean Referral Badge" /></a>
|
|
69
|
-
|
|
70
|
-
### Awesome backers 🍺
|
|
71
|
-
|
|
72
|
-
<a href="https://www.scipress.io?utm_source=lucide"><img src="https://lucide.dev/sponsors/scipress.svg" width="180" alt="Scipress sponsor badge" /></a>
|
|
73
|
-
<a href="https://github.com/pdfme/pdfme"><img src="https://lucide.dev/sponsors/pdfme.svg" width="180" alt="pdfme sponsor badge" /></a>
|