@stevederico/skateboard-ui 1.3.1 → 1.3.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/App.jsx +0 -2
- package/AppSidebar.jsx +1 -1
- package/CHANGELOG.md +6 -0
- package/Context.jsx +3 -1
- package/LandingView.jsx +3 -1
- package/Layout.jsx +1 -1
- package/PaymentView.jsx +3 -1
- package/SettingsView.jsx +3 -1
- package/SignInView.jsx +3 -1
- package/SignUpView.jsx +3 -1
- package/TabBar.jsx +3 -1
- package/TextView.jsx +3 -1
- package/UpgradeSheet.jsx +1 -1
- package/package.json +1 -1
- package/shadcn/ui/accordion.jsx +1 -1
- package/shadcn/ui/alert-dialog.jsx +2 -2
- package/shadcn/ui/alert.jsx +1 -1
- package/shadcn/ui/aspect-ratio.jsx +1 -1
- package/shadcn/ui/avatar.jsx +1 -1
- package/shadcn/ui/badge.jsx +1 -1
- package/shadcn/ui/breadcrumb.jsx +1 -1
- package/shadcn/ui/button-group.jsx +2 -2
- package/shadcn/ui/button.jsx +1 -1
- package/shadcn/ui/calendar.jsx +2 -2
- package/shadcn/ui/card.jsx +1 -1
- package/shadcn/ui/carousel.jsx +2 -2
- package/shadcn/ui/chart.jsx +1 -1
- package/shadcn/ui/checkbox.jsx +1 -1
- package/shadcn/ui/command.jsx +3 -3
- package/shadcn/ui/context-menu.jsx +1 -1
- package/shadcn/ui/dialog.jsx +2 -2
- package/shadcn/ui/drawer.jsx +1 -1
- package/shadcn/ui/dropdown-menu.jsx +1 -1
- package/shadcn/ui/empty.jsx +1 -1
- package/shadcn/ui/field.jsx +3 -3
- package/shadcn/ui/hover-card.jsx +1 -1
- package/shadcn/ui/input-group.jsx +4 -4
- package/shadcn/ui/input.jsx +1 -1
- package/shadcn/ui/item.jsx +2 -2
- package/shadcn/ui/kbd.jsx +1 -1
- package/shadcn/ui/label.jsx +1 -1
- package/shadcn/ui/menubar.jsx +2 -2
- package/shadcn/ui/navigation-menu.jsx +1 -1
- package/shadcn/ui/pagination.jsx +2 -2
- package/shadcn/ui/popover.jsx +1 -1
- package/shadcn/ui/progress.jsx +1 -1
- package/shadcn/ui/radio-group.jsx +1 -1
- package/shadcn/ui/resizable.jsx +1 -1
- package/shadcn/ui/scroll-area.jsx +1 -1
- package/shadcn/ui/select.jsx +1 -1
- package/shadcn/ui/separator.jsx +1 -1
- package/shadcn/ui/sheet.jsx +2 -2
- package/shadcn/ui/sidebar.jsx +8 -8
- package/shadcn/ui/skeleton.jsx +1 -1
- package/shadcn/ui/slider.jsx +1 -1
- package/shadcn/ui/spinner.jsx +1 -1
- package/shadcn/ui/switch.jsx +1 -1
- package/shadcn/ui/table.jsx +1 -1
- package/shadcn/ui/tabs.jsx +1 -1
- package/shadcn/ui/textarea.jsx +1 -1
- package/shadcn/ui/toggle-group.jsx +2 -2
- package/shadcn/ui/toggle.jsx +1 -1
- package/shadcn/ui/tooltip.jsx +1 -1
package/App.jsx
CHANGED
|
@@ -8,8 +8,6 @@ import {
|
|
|
8
8
|
} from 'react-router-dom';
|
|
9
9
|
import { useEffect } from 'react';
|
|
10
10
|
import { ThemeProvider } from 'next-themes';
|
|
11
|
-
import 'geist/font/sans/style.css';
|
|
12
|
-
import 'geist/font/mono/style.css';
|
|
13
11
|
import Layout from './Layout.jsx';
|
|
14
12
|
import LandingView from './LandingView.jsx';
|
|
15
13
|
import TextView from './TextView.jsx';
|
package/AppSidebar.jsx
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { useNavigate, useLocation } from "react-router-dom";
|
|
3
|
-
import constants from "@/constants.json";
|
|
4
3
|
import DynamicIcon from "./DynamicIcon.jsx";
|
|
5
4
|
import { getState } from "./Context.jsx";
|
|
6
5
|
import { Avatar, AvatarFallback } from "./shadcn/ui/avatar.jsx";
|
|
@@ -25,6 +24,7 @@ export default function AppSidebar() {
|
|
|
25
24
|
const location = useLocation();
|
|
26
25
|
const currentPage = (location.pathname.split("/")[2] || "").toLowerCase();
|
|
27
26
|
const { state } = getState();
|
|
27
|
+
const constants = state.constants;
|
|
28
28
|
|
|
29
29
|
const handleNavigation = (url) => {
|
|
30
30
|
navigate(url);
|
package/CHANGELOG.md
CHANGED
package/Context.jsx
CHANGED
|
@@ -115,7 +115,8 @@ export function ContextProvider({ children, constants }) {
|
|
|
115
115
|
ui: {
|
|
116
116
|
sidebarVisible: true,
|
|
117
117
|
tabBarVisible: true
|
|
118
|
-
}
|
|
118
|
+
},
|
|
119
|
+
constants
|
|
119
120
|
};
|
|
120
121
|
|
|
121
122
|
function reducer(state, action) {
|
|
@@ -173,6 +174,7 @@ export function ContextProvider({ children, constants }) {
|
|
|
173
174
|
* Returns { state, dispatch } where state contains:
|
|
174
175
|
* - user: Current user object or null
|
|
175
176
|
* - ui: { sidebarVisible, tabBarVisible }
|
|
177
|
+
* - constants: App configuration constants
|
|
176
178
|
*
|
|
177
179
|
* @returns {{ state: Object, dispatch: Function }}
|
|
178
180
|
*
|
package/LandingView.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import { useNavigate } from 'react-router-dom';
|
|
3
3
|
import { useTheme } from 'next-themes';
|
|
4
|
-
import
|
|
4
|
+
import { getState } from "./Context.jsx";
|
|
5
5
|
import * as LucideIcons from "lucide-react";
|
|
6
6
|
import ThemeToggle from './ThemeToggle.jsx';
|
|
7
7
|
|
|
@@ -14,6 +14,8 @@ const DynamicIcon = ({ name, size = 24, color = 'currentColor', strokeWidth = 2,
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
export default function LandingView() {
|
|
17
|
+
const { state } = getState();
|
|
18
|
+
const constants = state.constants;
|
|
17
19
|
const navigate = useNavigate();
|
|
18
20
|
const { theme } = useTheme();
|
|
19
21
|
const isDarkMode = theme === 'dark';
|
package/Layout.jsx
CHANGED
|
@@ -3,12 +3,12 @@ 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
|
-
import constants from "@/constants.json";
|
|
7
6
|
import { getState } from './Context.jsx';
|
|
8
7
|
|
|
9
8
|
export default function Layout({ children }) {
|
|
10
9
|
const { state } = getState();
|
|
11
10
|
const { sidebarVisible, tabBarVisible } = state.ui;
|
|
11
|
+
const constants = state.constants;
|
|
12
12
|
|
|
13
13
|
// Combine constants (static config) with context state (programmatic control)
|
|
14
14
|
const showSidebar = !constants.hideSidebar && sidebarVisible;
|
package/PaymentView.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useCallback } from 'react';
|
|
|
2
2
|
import { useNavigate, useSearchParams } from 'react-router-dom';
|
|
3
3
|
import { getState } from './Context.jsx';
|
|
4
4
|
import { getCurrentUser } from './Utilities.js'
|
|
5
|
-
import
|
|
5
|
+
import { getState } from "./Context.jsx";
|
|
6
6
|
|
|
7
7
|
// Whitelist of allowed redirect paths to prevent open redirect vulnerabilities
|
|
8
8
|
const ALLOWED_REDIRECT_PREFIXES = ['/app/', '/'];
|
|
@@ -15,6 +15,8 @@ function isAllowedRedirect(path) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export default function PaymentView() {
|
|
18
|
+
const { state } = getState();
|
|
19
|
+
const constants = state.constants;
|
|
18
20
|
const navigate = useNavigate();
|
|
19
21
|
const { dispatch } = getState();
|
|
20
22
|
const [searchParams] = useSearchParams();
|
package/SettingsView.jsx
CHANGED
|
@@ -15,11 +15,13 @@ import {
|
|
|
15
15
|
AlertDialogTitle,
|
|
16
16
|
AlertDialogTrigger,
|
|
17
17
|
} from './shadcn/ui/alert-dialog.jsx';
|
|
18
|
-
import
|
|
18
|
+
import { getState } from "./Context.jsx";
|
|
19
19
|
import pkg from '@package';
|
|
20
20
|
import { showCheckout, showManage } from './Utilities';
|
|
21
21
|
|
|
22
22
|
export default function SettingsView() {
|
|
23
|
+
const { state } = getState();
|
|
24
|
+
const constants = state.constants;
|
|
23
25
|
const navigate = useNavigate();
|
|
24
26
|
const { state, dispatch } = getState();
|
|
25
27
|
|
package/SignInView.jsx
CHANGED
|
@@ -14,10 +14,12 @@ import DynamicIcon from './DynamicIcon';
|
|
|
14
14
|
import { useState, useEffect, useRef } from 'react';
|
|
15
15
|
import { useNavigate } from 'react-router-dom';
|
|
16
16
|
import { getState } from './Context.jsx';
|
|
17
|
-
import
|
|
17
|
+
import { getState } from "./Context.jsx";
|
|
18
18
|
import { getBackendURL } from './Utilities'
|
|
19
19
|
|
|
20
20
|
export default function LoginForm({
|
|
21
|
+
const { state } = getState();
|
|
22
|
+
const constants = state.constants;
|
|
21
23
|
className,
|
|
22
24
|
...props
|
|
23
25
|
}) {
|
package/SignUpView.jsx
CHANGED
|
@@ -12,11 +12,13 @@ import { Checkbox } from "./shadcn/ui/checkbox.jsx"
|
|
|
12
12
|
import DynamicIcon from './DynamicIcon';
|
|
13
13
|
import { useState, useEffect, useRef } from 'react';
|
|
14
14
|
import { useNavigate } from 'react-router-dom';
|
|
15
|
-
import
|
|
15
|
+
import { getState } from "./Context.jsx";
|
|
16
16
|
import { getState } from './Context.jsx';
|
|
17
17
|
import { getBackendURL } from './Utilities'
|
|
18
18
|
|
|
19
19
|
export default function LoginForm({
|
|
20
|
+
const { state } = getState();
|
|
21
|
+
const constants = state.constants;
|
|
20
22
|
className,
|
|
21
23
|
...props
|
|
22
24
|
}) {
|
package/TabBar.jsx
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import constants from "@/constants.json";
|
|
3
2
|
import { Link, useLocation } from 'react-router-dom';
|
|
4
3
|
import DynamicIcon from './DynamicIcon';
|
|
4
|
+
import { getState } from './Context.jsx';
|
|
5
5
|
|
|
6
6
|
export default function TabBar() {
|
|
7
7
|
const location = useLocation();
|
|
8
|
+
const { state } = getState();
|
|
9
|
+
const constants = state.constants;
|
|
8
10
|
|
|
9
11
|
return (
|
|
10
12
|
<nav
|
package/TextView.jsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { getState } from "./Context.jsx";
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
export default function TextView({ details }) {
|
|
5
|
+
const { state } = getState();
|
|
6
|
+
const constants = state.constants;
|
|
5
7
|
// Function to replace placeholders with actual values
|
|
6
8
|
const replacePlaceholders = (text) => {
|
|
7
9
|
return text
|
package/UpgradeSheet.jsx
CHANGED
package/package.json
CHANGED
package/shadcn/ui/accordion.jsx
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import { AlertDialog as AlertDialogPrimitive } from "@base-ui/react/alert-dialog"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
7
|
-
import { Button } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
|
+
import { Button } from "./button.jsx"
|
|
8
8
|
|
|
9
9
|
function AlertDialog({
|
|
10
10
|
...props
|
package/shadcn/ui/alert.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
5
|
|
|
6
6
|
const alertVariants = cva(
|
|
7
7
|
"grid gap-0.5 rounded-lg border px-4 py-3 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert",
|
package/shadcn/ui/avatar.jsx
CHANGED
package/shadcn/ui/badge.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import { mergeProps } from "@base-ui/react/merge-props"
|
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render"
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../lib/utils.js"
|
|
6
6
|
|
|
7
7
|
const badgeVariants = cva(
|
|
8
8
|
"h-5 gap-1 rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium transition-all has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&>svg]:size-3! inline-flex items-center justify-center w-fit whitespace-nowrap shrink-0 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive overflow-hidden group/badge",
|
package/shadcn/ui/breadcrumb.jsx
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from "react"
|
|
|
2
2
|
import { mergeProps } from "@base-ui/react/merge-props"
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render"
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "../lib/utils.js"
|
|
6
6
|
import { ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
|
|
7
7
|
|
|
8
8
|
function Breadcrumb({
|
|
@@ -2,8 +2,8 @@ import { mergeProps } from "@base-ui/react/merge-props"
|
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render"
|
|
3
3
|
import { cva } from "class-variance-authority";
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { Separator } from "
|
|
5
|
+
import { cn } from "../lib/utils.js"
|
|
6
|
+
import { Separator } from "./separator.jsx"
|
|
7
7
|
|
|
8
8
|
const buttonGroupVariants = cva(
|
|
9
9
|
"has-[>[data-slot=button-group]]:gap-2 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1",
|
package/shadcn/ui/button.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as ButtonPrimitive } from "@base-ui/react/button"
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
5
|
|
|
6
6
|
const buttonVariants = cva(
|
|
7
7
|
"focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-md border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-[3px] aria-invalid:ring-[3px] [&_svg:not([class*='size-'])]:size-4 inline-flex items-center justify-center whitespace-nowrap transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none group/button select-none",
|
package/shadcn/ui/calendar.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { Button, buttonVariants } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
|
+
import { Button, buttonVariants } from "./button.jsx"
|
|
6
6
|
import { ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon } from "lucide-react"
|
|
7
7
|
|
|
8
8
|
function Calendar({
|
package/shadcn/ui/card.jsx
CHANGED
package/shadcn/ui/carousel.jsx
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import * as React from "react"
|
|
3
3
|
import useEmblaCarousel from "embla-carousel-react";
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { Button } from "
|
|
5
|
+
import { cn } from "../lib/utils.js"
|
|
6
|
+
import { Button } from "./button.jsx"
|
|
7
7
|
import { ChevronLeftIcon, ChevronRightIcon } from "lucide-react"
|
|
8
8
|
|
|
9
9
|
const CarouselContext = React.createContext(null)
|
package/shadcn/ui/chart.jsx
CHANGED
package/shadcn/ui/checkbox.jsx
CHANGED
package/shadcn/ui/command.jsx
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { Command as CommandPrimitive } from "cmdk"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
5
|
import {
|
|
6
6
|
Dialog,
|
|
7
7
|
DialogContent,
|
|
8
8
|
DialogDescription,
|
|
9
9
|
DialogHeader,
|
|
10
10
|
DialogTitle,
|
|
11
|
-
} from "
|
|
11
|
+
} from "./dialog.jsx"
|
|
12
12
|
import {
|
|
13
13
|
InputGroup,
|
|
14
14
|
InputGroupAddon,
|
|
15
|
-
} from "
|
|
15
|
+
} from "./input-group.jsx"
|
|
16
16
|
import { SearchIcon, CheckIcon } from "lucide-react"
|
|
17
17
|
|
|
18
18
|
function Command({
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import { ContextMenu as ContextMenuPrimitive } from "@base-ui/react/context-menu"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
7
|
import { ChevronRightIcon, CheckIcon } from "lucide-react"
|
|
8
8
|
|
|
9
9
|
function ContextMenu({
|
package/shadcn/ui/dialog.jsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { Button } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
|
+
import { Button } from "./button.jsx"
|
|
6
6
|
import { XIcon } from "lucide-react"
|
|
7
7
|
|
|
8
8
|
function Dialog({
|
package/shadcn/ui/drawer.jsx
CHANGED
package/shadcn/ui/empty.jsx
CHANGED
package/shadcn/ui/field.jsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useMemo } from "react"
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
5
|
-
import { Label } from "
|
|
6
|
-
import { Separator } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
|
+
import { Label } from "./label.jsx"
|
|
6
|
+
import { Separator } from "./separator.jsx"
|
|
7
7
|
|
|
8
8
|
function FieldSet({
|
|
9
9
|
className,
|
package/shadcn/ui/hover-card.jsx
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
7
|
-
import { Button } from "
|
|
8
|
-
import { Input } from "
|
|
9
|
-
import { Textarea } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
|
+
import { Button } from "./button.jsx"
|
|
8
|
+
import { Input } from "./input.jsx"
|
|
9
|
+
import { Textarea } from "./textarea.jsx"
|
|
10
10
|
|
|
11
11
|
function InputGroup({
|
|
12
12
|
className,
|
package/shadcn/ui/input.jsx
CHANGED
package/shadcn/ui/item.jsx
CHANGED
|
@@ -3,8 +3,8 @@ import { mergeProps } from "@base-ui/react/merge-props"
|
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render"
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
7
|
-
import { Separator } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
|
+
import { Separator } from "./separator.jsx"
|
|
8
8
|
|
|
9
9
|
function ItemGroup({
|
|
10
10
|
className,
|
package/shadcn/ui/kbd.jsx
CHANGED
package/shadcn/ui/label.jsx
CHANGED
package/shadcn/ui/menubar.jsx
CHANGED
|
@@ -4,7 +4,7 @@ import * as React from "react"
|
|
|
4
4
|
import { Menu as MenuPrimitive } from "@base-ui/react/menu"
|
|
5
5
|
import { Menubar as MenubarPrimitive } from "@base-ui/react/menubar"
|
|
6
6
|
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "../lib/utils.js"
|
|
8
8
|
import {
|
|
9
9
|
DropdownMenu,
|
|
10
10
|
DropdownMenuContent,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
DropdownMenuSubContent,
|
|
20
20
|
DropdownMenuSubTrigger,
|
|
21
21
|
DropdownMenuTrigger,
|
|
22
|
-
} from "
|
|
22
|
+
} from "./dropdown-menu.jsx"
|
|
23
23
|
import { CheckIcon } from "lucide-react"
|
|
24
24
|
|
|
25
25
|
function Menubar({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NavigationMenu as NavigationMenuPrimitive } from "@base-ui/react/navigation-menu"
|
|
2
2
|
import { cva } from "class-variance-authority"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
5
|
import { ChevronDownIcon } from "lucide-react"
|
|
6
6
|
|
|
7
7
|
function NavigationMenu({
|
package/shadcn/ui/pagination.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
|
|
3
|
-
import { cn } from "
|
|
4
|
-
import { Button } from "
|
|
3
|
+
import { cn } from "../lib/utils.js"
|
|
4
|
+
import { Button } from "./button.jsx"
|
|
5
5
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react"
|
|
6
6
|
|
|
7
7
|
function Pagination({
|
package/shadcn/ui/popover.jsx
CHANGED
package/shadcn/ui/progress.jsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Radio as RadioPrimitive } from "@base-ui/react/radio"
|
|
4
4
|
import { RadioGroup as RadioGroupPrimitive } from "@base-ui/react/radio-group"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
7
|
import { CircleIcon } from "lucide-react"
|
|
8
8
|
|
|
9
9
|
function RadioGroup({
|
package/shadcn/ui/resizable.jsx
CHANGED
package/shadcn/ui/select.jsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react"
|
|
2
2
|
import { Select as SelectPrimitive } from "@base-ui/react/select"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "../lib/utils.js"
|
|
5
5
|
import { ChevronDownIcon, CheckIcon, ChevronUpIcon } from "lucide-react"
|
|
6
6
|
|
|
7
7
|
const Select = SelectPrimitive.Root
|
package/shadcn/ui/separator.jsx
CHANGED
package/shadcn/ui/sheet.jsx
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import * as React from "react"
|
|
4
4
|
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
7
|
-
import { Button } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
|
+
import { Button } from "./button.jsx"
|
|
8
8
|
import { XIcon } from "lucide-react"
|
|
9
9
|
|
|
10
10
|
function Sheet({
|
package/shadcn/ui/sidebar.jsx
CHANGED
|
@@ -4,24 +4,24 @@ import { mergeProps } from "@base-ui/react/merge-props"
|
|
|
4
4
|
import { useRender } from "@base-ui/react/use-render"
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
|
|
7
|
-
import { cn } from "
|
|
8
|
-
import { Button } from "
|
|
9
|
-
import { Input } from "
|
|
10
|
-
import { Separator } from "
|
|
7
|
+
import { cn } from "../lib/utils.js"
|
|
8
|
+
import { Button } from "./button.jsx"
|
|
9
|
+
import { Input } from "./input.jsx"
|
|
10
|
+
import { Separator } from "./separator.jsx"
|
|
11
11
|
import {
|
|
12
12
|
Sheet,
|
|
13
13
|
SheetContent,
|
|
14
14
|
SheetDescription,
|
|
15
15
|
SheetHeader,
|
|
16
16
|
SheetTitle,
|
|
17
|
-
} from "
|
|
18
|
-
import { Skeleton } from "
|
|
17
|
+
} from "./sheet.jsx"
|
|
18
|
+
import { Skeleton } from "./skeleton.jsx"
|
|
19
19
|
import {
|
|
20
20
|
Tooltip,
|
|
21
21
|
TooltipContent,
|
|
22
22
|
TooltipTrigger,
|
|
23
|
-
} from "
|
|
24
|
-
import { useIsMobile } from "
|
|
23
|
+
} from "./tooltip.jsx"
|
|
24
|
+
import { useIsMobile } from "../hooks/use-mobile.js"
|
|
25
25
|
import { PanelLeftIcon } from "lucide-react"
|
|
26
26
|
|
|
27
27
|
const SIDEBAR_COOKIE_NAME = "sidebar_state"
|
package/shadcn/ui/skeleton.jsx
CHANGED
package/shadcn/ui/slider.jsx
CHANGED
package/shadcn/ui/spinner.jsx
CHANGED
package/shadcn/ui/switch.jsx
CHANGED
package/shadcn/ui/table.jsx
CHANGED
package/shadcn/ui/tabs.jsx
CHANGED
package/shadcn/ui/textarea.jsx
CHANGED
|
@@ -2,8 +2,8 @@ import * as React from "react"
|
|
|
2
2
|
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle"
|
|
3
3
|
import { ToggleGroup as ToggleGroupPrimitive } from "@base-ui/react/toggle-group"
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
6
|
-
import { toggleVariants } from "
|
|
5
|
+
import { cn } from "../lib/utils.js"
|
|
6
|
+
import { toggleVariants } from "./toggle.jsx"
|
|
7
7
|
|
|
8
8
|
const ToggleGroupContext = React.createContext({
|
|
9
9
|
size: "default",
|
package/shadcn/ui/toggle.jsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle"
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "../lib/utils.js"
|
|
7
7
|
|
|
8
8
|
const toggleVariants = cva(
|
|
9
9
|
"hover:text-foreground aria-pressed:bg-muted focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive gap-1 rounded-md text-sm font-medium transition-[color,box-shadow] [&_svg:not([class*='size-'])]:size-4 group/toggle hover:bg-muted inline-flex items-center justify-center whitespace-nowrap outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|