ownui-system 0.1.0 → 0.1.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/README.md CHANGED
@@ -109,4 +109,5 @@ export default {
109
109
  - [x] Radio / RadioGroup
110
110
  - [x] InfiniteSlider
111
111
  - [x] Tooltip
112
+ - [x] SnackBar
112
113
  - [ ] Step
@@ -1,3 +1,3 @@
1
- import { ComponentProps } from "react";
1
+ import { type ComponentProps } from "react";
2
2
  declare function BottomSheetHeader({ onPointerDown }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
3
  export default BottomSheetHeader;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ReactNode } from "react";
1
+ import { type ComponentProps, type ReactNode } from "react";
2
2
  export interface ButtonProps extends ComponentProps<"button"> {
3
3
  size?: "xsmall" | "small" | "medium" | "large" | "xlarge";
4
4
  variant?: "normal" | "line" | "text";
@@ -1,4 +1,4 @@
1
- import { CSSProperties, PropsWithChildren } from "react";
1
+ import { type CSSProperties, type PropsWithChildren } from "react";
2
2
  interface DimmedProps extends PropsWithChildren {
3
3
  className?: string;
4
4
  opacity?: CSSProperties["opacity"];
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ComponentPosition } from '../../types';
3
- import { HTMLMotionProps } from "framer-motion";
3
+ import { type HTMLMotionProps } from "framer-motion";
4
4
  export type DrawerProps = {
5
5
  onOpenChange: (isOpen: boolean) => void;
6
6
  isOpen: boolean;
@@ -1,3 +1,3 @@
1
- import { ComponentProps } from "react";
1
+ import { type ComponentProps } from "react";
2
2
  declare function DropdownHeader({ ...rest }: ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
3
3
  export default DropdownHeader;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  interface DropdownProps extends PropsWithChildren {
3
3
  selectedItem: {
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  import "./style.css";
3
3
  type InfiniteSliderProps = {
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ReactNode } from "react";
1
+ import { type ComponentProps, type ReactNode } from "react";
2
2
  interface InputProps extends Omit<ComponentProps<"input">, "size"> {
3
3
  left?: ReactNode;
4
4
  right?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  type ModalBodyProps = {
3
3
  className?: string;
4
4
  } & PropsWithChildren;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  type ModalFooterProps = {
3
3
  className?: string;
4
4
  } & PropsWithChildren;
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  type ModalBodyProps = {
3
3
  className?: string;
4
4
  } & PropsWithChildren;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentPosition } from '../../types';
2
- import { HTMLMotionProps } from "framer-motion";
3
- import { ComponentProps } from "react";
2
+ import { type HTMLMotionProps } from "framer-motion";
3
+ import { type ComponentProps } from "react";
4
4
  import Popover from "./popover";
5
5
  type PopoverProps = ComponentProps<typeof Popover>;
6
6
  type PopoverPropsContextValue = {
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  declare function PopoverTrigger({ children }: PropsWithChildren): import("react").FunctionComponentElement<any>;
3
3
  export default PopoverTrigger;
@@ -1,6 +1,6 @@
1
1
  import type { ComponentPosition } from '../../types';
2
2
  import { HTMLMotionProps } from "framer-motion";
3
- import { ReactNode } from "react";
3
+ import { type ReactNode } from "react";
4
4
  export interface PopoverProps {
5
5
  id?: string;
6
6
  children: ReactNode[];
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren } from "react";
1
+ import { type PropsWithChildren } from "react";
2
2
  interface RadioGroupProps extends PropsWithChildren {
3
3
  className?: string;
4
4
  activeColor?: string;
@@ -1,4 +1,4 @@
1
- import { ComponentProps } from "react";
1
+ import { type ComponentProps } from "react";
2
2
  export type RadioItemProps = {
3
3
  name: string;
4
4
  id: string;
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ReactNode } from "react";
1
+ import { type CSSProperties, type ReactNode } from "react";
2
2
  interface SkeletinProps {
3
3
  width: CSSProperties["width"];
4
4
  height: CSSProperties["height"];
@@ -1,4 +1,4 @@
1
- import { CSSProperties, PropsWithChildren } from "react";
1
+ import { type CSSProperties, type PropsWithChildren } from "react";
2
2
  type TextProps = {
3
3
  fontSize?: CSSProperties["fontSize"];
4
4
  fontWeight?: CSSProperties["fontWeight"];
@@ -1,4 +1,4 @@
1
- import { CSSProperties, ComponentProps } from "react";
1
+ import { type CSSProperties, type ComponentProps } from "react";
2
2
  export interface TextAreaProps extends Omit<ComponentProps<"textarea">, "size"> {
3
3
  label?: React.ReactNode;
4
4
  hasError?: boolean;