secptrum-ui
Advanced tools
Comparing version 1.1.33-beta.0 to 1.1.33-beta.1
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ interface DropType { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { BoxType } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { DivProps } from "styled-chroma"; | ||
@@ -3,0 +2,0 @@ export interface BoxProps extends DivProps { |
@@ -1,2 +0,1 @@ | ||
'use client'; | ||
import { ButtonProps } from '../../types/sui'; | ||
@@ -49,6 +48,4 @@ /** | ||
*/ | ||
declare const Button: import('react').ForwardRefExoticComponent< | ||
Omit<ButtonProps, 'ref'> & import('react').RefAttributes<HTMLButtonElement> | ||
>; | ||
declare const Button: import("react").ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>; | ||
export default Button; | ||
//# sourceMappingURL=Button.d.ts.map | ||
//# sourceMappingURL=Button.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { CardProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type CheckBoxType = { | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { FloatProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ declare const Fab: import("react").ForwardRefExoticComponent<Omit<FloatProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ interface ImagePickerProps { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type IconTypes = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type IconBaseType = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { InputType } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type BarLoaderType = { | ||
@@ -3,0 +2,0 @@ width?: string | number; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type LoaderProps = { | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type CircularProgressProps = { |
@@ -1,4 +0,3 @@ | ||
"use client"; | ||
export declare const barload: string; | ||
export declare const spin: string; | ||
//# sourceMappingURL=keyframes.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type PulseLoaderProps = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type ScaleLoaderProps = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type ModalType = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ import { StackType } from "../../types/sui"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ import { BoxType } from "../../types/sui"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ interface BrowserRouterProps { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ interface Route { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { StackType } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type SwitchType = { | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,4 +0,3 @@ | ||
"use client"; | ||
declare const TabPanel: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>; | ||
export default TabPanel; | ||
//# sourceMappingURL=TabPanel.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { TabsListType } from "./TabsList"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type TabsHandleType = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ export type TabsListType = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { ToastType } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ /** |
@@ -1,4 +0,3 @@ | ||
"use client"; | ||
declare const Toaster: () => import("react/jsx-runtime").JSX.Element; | ||
export default Toaster; | ||
//# sourceMappingURL=Toaster.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type ProviderType = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type TabListContextType = { | ||
@@ -3,0 +2,0 @@ onSwitch: (value: string) => void; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ import { Theme, ThemeContextType } from "../types/local"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const RouterContext: import("react").Context<{ | ||
@@ -3,0 +2,0 @@ navigate: (to: string) => void; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
type AuthContextType = { | ||
@@ -3,0 +2,0 @@ isAuthenticated: boolean; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
/** | ||
@@ -3,0 +2,0 @@ * A custom hook for accessing the navigation function from the BrowserRouter context. |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export { toast } from "./components/Toast/Toast"; | ||
@@ -3,0 +2,0 @@ export { generateId } from "./lib/helper"; |
@@ -1,4 +0,3 @@ | ||
"use client"; | ||
export declare const hexToRgbArray: (hex: any) => number[]; | ||
export declare function generateId(): string; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
declare const getModeStyle: (mode: "dark" | "light") => { | ||
@@ -3,0 +2,0 @@ [key: string]: string; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { ButtonProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ import { IStyleFab } from "../../types/istyle"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const spin: string; | ||
@@ -3,0 +2,0 @@ export declare const zoom: string; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const colors: { | ||
@@ -3,0 +2,0 @@ primary: { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { IStyleDrop, IStyleModalFooter, IStyleModalPanel, IStyleToast, IStyleToastCloseIcon } from "../../types/istyle"; | ||
@@ -3,0 +2,0 @@ export declare const DropSui: import("react").ForwardRefExoticComponent<IStyleDrop & { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
//# sourceMappingURL=font.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const FixedBox: import("react").ForwardRefExoticComponent<{ | ||
@@ -3,0 +2,0 @@ theme?: { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { DivProps } from "styled-chroma"; | ||
@@ -3,0 +2,0 @@ import { InputType } from "../../types/sui"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { IStyleBox, IStyleStack, IStyleTabHandle } from "../../types/istyle"; | ||
@@ -3,0 +2,0 @@ import { CardProps } from "../../types/sui"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const FilePicker: import("react").ForwardRefExoticComponent<Omit<import("../../types/sui").BoxType, "ref"> & import("react").RefAttributes<HTMLDivElement> & { | ||
@@ -3,0 +2,0 @@ theme?: { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
@@ -3,0 +2,0 @@ import { DivProps } from "styled-chroma"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
declare type Theme = { | ||
@@ -3,0 +2,0 @@ colors?: { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
@@ -3,0 +2,0 @@ type InputProps = React.DetailedHTMLProps< |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { FloatProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ declare const getFloatVariantStyle: (variant: FloatProps["variant"], colorScheme: FloatProps["colorScheme"]) => { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import React from "react"; | ||
@@ -3,0 +2,0 @@ type AuthenticateSessionProps = { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { ButtonProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ declare const getButtonRadius: (radius: ButtonProps["radius"]) => "4px" | "6px" | "12px" | "9999px"; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { ModalPanelType } from "../../components/modal/ModalPanel"; | ||
@@ -3,0 +2,0 @@ declare const getPanelSize: (size: ModalPanelType["size"]) => "\n width: 300px;\n " | "\n width: 400px;\n " | "\n width: 500px;\n \n @media screen and (max-width:550px){\n width: 90%;\n }\n " | "\n width: 600px;\n \n @media screen and (max-width:550px){\n width: 90%;\n }\n " | "\n width: 60%;\n \n @media screen and (max-width:1024px){\n width: 80%;\n }\n @media screen and (max-width:550px){\n width: 90%;\n }\n " | undefined; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { InputType } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ declare const getInputStyles: ({ mode, variant, focusBorderColor, focusColor, outLineBorderColor, disabled, hasError, Type, }: InputType) => { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { CardProps } from "../../types/sui"; | ||
@@ -3,0 +2,0 @@ export declare const cardStyles: (mode: CardProps["mode"]) => { |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
export declare const getModeStyle: (mode: "light" | "dark") => { | ||
@@ -3,0 +2,0 @@ tabListBg: string; |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { FloatProps, ToastPositionType } from "../types/sui"; | ||
@@ -3,0 +2,0 @@ export declare const getFloatPosition: (position: FloatProps["position"]) => { |
@@ -1,4 +0,3 @@ | ||
"use client"; | ||
export declare const getSpacing: (size: number) => string; | ||
export declare const spacingValues: (spacing: string | any) => string; | ||
//# sourceMappingURL=spacing.d.ts.map |
@@ -1,2 +0,1 @@ | ||
"use client"; | ||
import { ToastOptionsType } from "../types/sui"; | ||
@@ -3,0 +2,0 @@ declare const getToastTransition: (transition: ToastOptionsType["transition"], isVisible: boolean) => string; |
{ | ||
"name": "secptrum-ui", | ||
"version": "1.1.33-beta.0", | ||
"version": "1.1.33-beta.1", | ||
"description": "**SecptrumUI** A React component library with adaptable, responsive designs using `styled-chroma`", | ||
@@ -31,4 +31,4 @@ "homepage": "https://secptrumui.vercel.app", | ||
"build": "rollup -c", | ||
"insert-use-client": "node scripts/insertUseClient.js", | ||
"postbuild": "copyfiles -u 1 src/types/**/* dist/ && npm run insert-use-client", | ||
"insert-client": "node scripts/insertUseClient.js", | ||
"postbuild": "copyfiles -u 1 src/types/**/* dist/", | ||
"prerelease": "npx tsc --noEmit", | ||
@@ -39,2 +39,5 @@ "release": "npm version patch && git push origin master --follow-tags", | ||
}, | ||
"bin": { | ||
"insert-client": "./scripts/insertUseClient.js" | ||
}, | ||
"keywords": [ | ||
@@ -68,3 +71,2 @@ "react", | ||
"@rollup/plugin-node-resolve": "^15.3.0", | ||
"@rollup/plugin-replace": "^6.0.1", | ||
"@rollup/plugin-terser": "^0.4.4", | ||
@@ -79,4 +81,5 @@ "@rollup/plugin-typescript": "^11.1.6", | ||
"tslib": "^2.7.0", | ||
"typescript": "^5.5.4" | ||
"typescript": "^5.5.4", | ||
"insert-client": "./scripts/insertUseClient.js" | ||
} | ||
} |
@@ -0,35 +1,44 @@ | ||
#!/usr/bin/env node | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
// Path to the directory where Rollup outputs your files | ||
// Ensure the path to the dist directory is correct | ||
const distDir = path.join(__dirname, '../dist'); | ||
// Recursively add 'use client' directive to all relevant files in 'dist' | ||
function addUseClientToFiles(dir) { | ||
const files = fs.readdirSync(dir); | ||
// Check if the directory exists | ||
if (fs.existsSync(distDir)) { | ||
// Recursively add 'use client' directive to all relevant files in 'dist' | ||
function addUseClientToFiles(dir) { | ||
const files = fs.readdirSync(dir); | ||
files.forEach((file) => { | ||
const fullPath = path.join(dir, file); | ||
const stat = fs.statSync(fullPath); | ||
files.forEach((file) => { | ||
const fullPath = path.join(dir, file); | ||
const stat = fs.statSync(fullPath); | ||
if (stat.isDirectory()) { | ||
// Recursively check subdirectories | ||
addUseClientToFiles(fullPath); | ||
} else if (file.endsWith('.js') || file.endsWith('.ts')) { | ||
// Read the file | ||
const content = fs.readFileSync(fullPath, 'utf8'); | ||
if (stat.isDirectory()) { | ||
// Recursively check subdirectories | ||
addUseClientToFiles(fullPath); | ||
} else if (file.endsWith('.js') || file.endsWith('.ts')) { | ||
// Read the file | ||
const content = fs.readFileSync(fullPath, 'utf8'); | ||
// Check if 'use client' is already present | ||
if (!content.startsWith('"use client";')) { | ||
// Add 'use client' at the top | ||
const newContent = `"use client";\n${content}`; | ||
// Check if 'use client' is already present | ||
if (!content.startsWith('"use client";')) { | ||
// Add 'use client' at the top | ||
const newContent = `"use client";\n${content}`; | ||
// Write the file back with 'use client' at the top | ||
fs.writeFileSync(fullPath, newContent, 'utf8'); | ||
console.log(`Added 'use client' to: ${fullPath}`); | ||
// Write the file back with 'use client' at the top | ||
fs.writeFileSync(fullPath, newContent, 'utf8'); | ||
console.log(`Added 'use client' to: ${fullPath}`); | ||
} | ||
} | ||
} | ||
}); | ||
}); | ||
} | ||
addUseClientToFiles(distDir); | ||
} else { | ||
console.error( | ||
`Directory ${distDir} does not exist. Make sure Rollup build was successful.` | ||
); | ||
} | ||
addUseClientToFiles(distDir); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19718532
5910