@shiflo/ui 0.1.0 → 0.1.1
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/dist/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/dist/components/BottomSheet/BottomSheet.mjs +1 -1
- package/dist/components/BottomSheet/BottomSheet.typing.d.ts +1 -1
- package/dist/components/Box/Box.mjs +1 -1
- package/dist/components/Box/Box.typing.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.mjs +1 -1
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Dialog/Dialog.mjs +1 -1
- package/dist/components/FPSMonitor/FPSMonitor.d.ts +2 -2
- package/dist/components/FPSMonitor/FPSMonitor.mjs +2 -2
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.mjs +1 -1
- package/dist/components/Icon/Icon.typing.d.ts +1 -1
- package/dist/components/Overlay/Overlay.mjs +1 -1
- package/dist/components/Snackbar/Snackbar.mjs +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.mjs +1 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/components/Tag/Tag.mjs +1 -1
- package/dist/components/Tag/Tag.typing.d.ts +2 -1
- package/dist/components/TextField/TextField.d.ts +1 -1
- package/dist/components/TextField/TextField.mjs +1 -1
- package/dist/components/Typography/Typography.mjs +1 -1
- package/dist/components/Typography/Typography.typing.d.ts +1 -1
- package/dist/theme/GlobalStyle.d.ts +1 -1
- package/dist/theme/GlobalStyle.mjs +1 -1
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.mjs +1 -1
- package/dist/typings/utility.d.ts +1 -1
- package/package.json +2 -1
- /package/dist/components/FPSMonitor/{FPSTMonitor.utils.d.ts → FPSMonitor.utils.d.ts} +0 -0
- /package/dist/components/FPSMonitor/{FPSTMonitor.utils.mjs → FPSMonitor.utils.mjs} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { BottomSheetProps } from './BottomSheet.typing';
|
|
2
|
-
declare function BottomSheet({ open, onClose, children, transitionDuration, maxWidth, onClick, ref, hideDragHandleBar, hideOverlay, style, dragThreshold, ...props }: BottomSheetProps): import("react").JSX.Element;
|
|
2
|
+
declare function BottomSheet({ open, onClose, children, transitionDuration, maxWidth, onClick, ref, hideDragHandleBar, hideOverlay, style, dragThreshold, ...props }: BottomSheetProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default BottomSheet;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as H } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as o, jsxs as H } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as R, useRef as a, useImperativeHandle as S, useEffect as j } from "react";
|
|
3
3
|
import n from "@emotion/styled";
|
|
4
4
|
import { motion as D } from "motion/react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { HTMLMotionProps } from 'motion/react';
|
|
3
2
|
import { UtilityProps } from '../../typings/utility';
|
|
3
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
4
4
|
export interface BottomSheetProps extends PropsWithChildren<HTMLMotionProps<"div"> & Pick<UtilityProps, "css">> {
|
|
5
5
|
open?: boolean;
|
|
6
6
|
onClose?: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { ShifloTheme } from '../../theme/typing';
|
|
2
3
|
import { PolymorphicComponentProps } from '../../typings/component';
|
|
3
4
|
import { RecursionPath, UtilityProps } from '../../typings/utility';
|
|
4
|
-
import { ShifloTheme } from '../../theme/typing';
|
|
5
5
|
export interface BaseBoxProps extends UtilityProps {
|
|
6
6
|
backgroundColor?: RecursionPath<ShifloTheme["palette"]>;
|
|
7
7
|
color?: RecursionPath<ShifloTheme["palette"]> | "inherit";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ButtonProps } from './Button.typing';
|
|
2
|
-
declare function Button({ ref, children, variant, size, color, startIcon, endIcon, ...props }: ButtonProps): import("react").JSX.Element;
|
|
2
|
+
declare function Button({ ref, children, variant, size, color, startIcon, endIcon, ...props }: ButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Button;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DialogProps } from './Dialog.typing';
|
|
2
|
-
declare function Dialog({ open, onClose, children, transitionDuration, onClick, style, maxWidth, ...props }: DialogProps): import("react").JSX.Element;
|
|
2
|
+
declare function Dialog({ open, onClose, children, transitionDuration, onClick, style, maxWidth, ...props }: DialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Dialog;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FPSMetrics } from './
|
|
1
|
+
import { FPSMetrics } from './FPSMonitor.utils';
|
|
2
2
|
export interface FPSMonitorProps {
|
|
3
3
|
trigger?: boolean;
|
|
4
4
|
duration?: number;
|
|
@@ -7,5 +7,5 @@ export interface FPSMonitorProps {
|
|
|
7
7
|
onComplete?: (metrics: FPSMetrics) => void;
|
|
8
8
|
on60FPSAchieved?: (achieved: boolean) => void;
|
|
9
9
|
}
|
|
10
|
-
declare function FPSMonitor({ trigger, duration, updateInterval, threshold, onComplete, on60FPSAchieved }: FPSMonitorProps): import("react").JSX.Element;
|
|
10
|
+
declare function FPSMonitor({ trigger, duration, updateInterval, threshold, onComplete, on60FPSAchieved }: FPSMonitorProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default FPSMonitor;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as t, jsx as r } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as P, useRef as k, useEffect as A } from "react";
|
|
3
3
|
import { useTheme as E } from "@emotion/react";
|
|
4
4
|
import { motion as u, AnimatePresence as C } from "motion/react";
|
|
5
5
|
import s from "../Box/Box.mjs";
|
|
6
|
-
import { FPSChecker as I } from "./
|
|
6
|
+
import { FPSChecker as I } from "./FPSMonitor.utils.mjs";
|
|
7
7
|
import e from "../Typography/Typography.mjs";
|
|
8
8
|
function J({
|
|
9
9
|
trigger: R = !1,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IconProps } from './Icon.typing';
|
|
2
|
-
declare function Icon({ ref, name, width, height, ...props }: IconProps): import("react").JSX.Element[] | null | undefined;
|
|
2
|
+
declare function Icon({ ref, name, width, height, ...props }: IconProps): import("@emotion/react/jsx-runtime").JSX.Element[] | null | undefined;
|
|
3
3
|
export default Icon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentPropsWithRef } from 'react';
|
|
2
|
-
import { RecursionPath } from '../../typings/utility';
|
|
3
2
|
import { ShifloTheme } from '../../theme/typing';
|
|
3
|
+
import { RecursionPath } from '../../typings/utility';
|
|
4
4
|
import type * as Svgs from "../../assets/icons";
|
|
5
5
|
export interface BaseIconProps {
|
|
6
6
|
name: keyof typeof Svgs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as x, jsx as f } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as x, jsx as f } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as m, useRef as E, useImperativeHandle as I, useLayoutEffect as C, useEffect as w } from "react";
|
|
3
3
|
import { createPortal as L } from "react-dom";
|
|
4
4
|
import { useTheme as A } from "@emotion/react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as E, jsx as c } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs as E, jsx as c } from "@emotion/react/jsx-runtime";
|
|
2
2
|
import { useState as y, useRef as b, useImperativeHandle as z, useLayoutEffect as A, useEffect as g } from "react";
|
|
3
3
|
import { createPortal as I } from "react-dom";
|
|
4
4
|
import i from "@emotion/styled";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SwitchProps } from './Switch.typing';
|
|
2
|
-
declare function Switch({ checked, disabled, size, onChange, onClick, ...props }: SwitchProps): import("react").JSX.Element;
|
|
2
|
+
declare function Switch({ checked, disabled, size, onChange, onClick, ...props }: SwitchProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Switch;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { UtilityProps } from '../../typings/utility';
|
|
1
2
|
import { HTMLMotionProps } from 'motion/react';
|
|
2
|
-
export interface TagProps extends HTMLMotionProps<"span"> {
|
|
3
|
+
export interface TagProps extends HTMLMotionProps<"span">, Pick<UtilityProps, "css"> {
|
|
3
4
|
color?: "primary" | "warning" | "error" | "info" | "success";
|
|
4
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TextFieldProps } from './TextField.typing';
|
|
2
|
-
declare function TextField({ variant, size, fullWidth, disabled, startIcon, endIcon, onFocus, onBlur, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
2
|
+
declare function TextField({ variant, size, fullWidth, disabled, startIcon, endIcon, onFocus, onBlur, ...props }: TextFieldProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default TextField;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode, ElementType } from 'react';
|
|
2
|
+
import { ShifloTheme } from '../../theme/typing';
|
|
2
3
|
import { PolymorphicComponentProps } from '../../typings/component';
|
|
3
4
|
import { UtilityProps, RecursionPath } from '../../typings/utility';
|
|
4
|
-
import { ShifloTheme } from '../../theme/typing';
|
|
5
5
|
export interface BaseTypographyProps extends UtilityProps {
|
|
6
6
|
variant?: keyof ShifloTheme["typography"];
|
|
7
7
|
fontWeight?: 400 | 500 | 700;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function GlobalStyle(): import("react").JSX.Element;
|
|
1
|
+
declare function GlobalStyle(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default GlobalStyle;
|
|
@@ -2,5 +2,5 @@ import { PropsWithChildren } from 'react';
|
|
|
2
2
|
interface ThemeProviderProps {
|
|
3
3
|
theme: "light" | "dark";
|
|
4
4
|
}
|
|
5
|
-
declare function ThemeProvider({ children, theme }: PropsWithChildren<ThemeProviderProps>): import("react").JSX.Element;
|
|
5
|
+
declare function ThemeProvider({ children, theme }: PropsWithChildren<ThemeProviderProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default ThemeProvider;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Interpolation } from '@emotion/serialize';
|
|
1
2
|
import { default as radius } from '../theme/radius';
|
|
2
3
|
import { default as spacing } from '../theme/spacing';
|
|
3
|
-
import { Interpolation } from '@emotion/serialize';
|
|
4
4
|
import { ShifloTheme } from '../theme/typing';
|
|
5
5
|
import { Properties } from 'csstype';
|
|
6
6
|
export type UtilityProps = Partial<Pick<Properties, "display" | "alignItems" | "justifyContent" | "flex" | "flexWrap" | "flexDirection" | "flexGrow" | "flexFlow" | "flexBasis" | "flexShrink" | "border" | "borderTop" | "borderBottom" | "borderRight" | "borderLeft"> & Record<"m" | "mt" | "mb" | "mr" | "ml" | "p" | "pt" | "pb" | "pl" | "pr" | "gap", keyof typeof spacing> & Record<"br" | "brtl" | "brtr" | "brml" | "brmr", keyof typeof radius>> & {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shiflo/ui",
|
|
3
3
|
"description": "Shiflo React UI Components",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"@storybook/addon-docs": "^9.1.7",
|
|
60
60
|
"@storybook/addon-onboarding": "^9.1.7",
|
|
61
61
|
"@storybook/react-vite": "^9.1.7",
|
|
62
|
+
"@types/node": "^24.5.2",
|
|
62
63
|
"@types/react": "^19.1.13",
|
|
63
64
|
"@types/react-dom": "^19.1.9",
|
|
64
65
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
File without changes
|
|
File without changes
|