@dhasdk/simple-ui 0.0.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/lib/Badge.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "MedCard" | "Outline" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
+ export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
8
+ image?: string;
9
+ alt?: string;
10
+ heading?: string;
11
+ color?: string;
12
+ headingClassName?: string;
13
+ bodyClassName?: string;
14
+ }
15
+ declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLDivElement>>;
16
+ export { Badge };
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const buttonVariants: (props?: ({
4
+ variant?: "default" | "MedCard" | "Outline" | "nonHover" | null | undefined;
5
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
+ asChild?: boolean;
9
+ handler?: () => void;
10
+ }
11
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
12
+ export { Button, buttonVariants };
package/lib/Card.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare function Card(): import("react/jsx-runtime").JSX.Element;
2
+ export default Card;
package/lib/Input.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const inputVariants: (props?: ({
4
+ variant?: "default" | "Outline" | "nonHover" | null | undefined;
5
+ inputSize?: "default" | "sm" | "lg" | "icon" | null | undefined;
6
+ } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
+ export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof inputVariants> {
8
+ asChild?: boolean;
9
+ label?: string;
10
+ labelClassName?: string;
11
+ labelBaseColor?: string;
12
+ labelInputColor?: string;
13
+ textShadow?: boolean;
14
+ }
15
+ declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
16
+ export { Input };
@@ -0,0 +1,43 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * This is derived from shadcn, with modifications for consistent width between the primary select box (trigger) and the
4
+ * options list (content). The parent component, Select, takes a prop value widthClass which is intended to be used to
5
+ * set a width value for this component. An example value would be widthClass="w-[180px] md:w-[200px]"
6
+ */
7
+ import * as React from 'react';
8
+ import * as SelectPrimitive from '@radix-ui/react-select';
9
+ export interface SelectProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Root> {
10
+ widthClass?: string;
11
+ triggerClassName?: string;
12
+ arrowClassName?: string;
13
+ contentClassName?: string;
14
+ itemClassName?: string;
15
+ labelClassName?: string;
16
+ separatorClassName?: string;
17
+ className?: string;
18
+ }
19
+ declare const Select: React.FC<SelectProps>;
20
+ declare const SelectGroup: React.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React.RefAttributes<HTMLDivElement>>;
21
+ declare const SelectValue: React.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React.RefAttributes<HTMLSpanElement>>;
22
+ declare const SelectTrigger: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLButtonElement>>;
23
+ declare const SelectScrollUpButton: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
24
+ declare const SelectScrollDownButton: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
25
+ interface SelectContentProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Content> {
26
+ contentClassName?: string;
27
+ }
28
+ declare const SelectContent: React.ForwardRefExoticComponent<SelectContentProps & React.RefAttributes<HTMLDivElement>>;
29
+ declare const SelectLabel: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
30
+ interface SelectItemProps extends React.ComponentPropsWithoutRef<typeof SelectPrimitive.Item> {
31
+ itemClassName?: string;
32
+ }
33
+ declare const SelectItem: React.ForwardRefExoticComponent<SelectItemProps & React.RefAttributes<HTMLDivElement>>;
34
+ declare const SelectSeparator: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
35
+ interface ComponentWidthContextType {
36
+ componentWidth: string | undefined;
37
+ setComponentWidth: (width: string) => void;
38
+ }
39
+ declare const ComponentWidthProvider: React.FC<{
40
+ children: ReactNode;
41
+ }>;
42
+ declare const useComponentWidth: () => ComponentWidthContextType;
43
+ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, ComponentWidthProvider, useComponentWidth, };
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ import * as TogglePrimitives from '@radix-ui/react-switch';
3
+ export interface ToggleProps extends React.ComponentPropsWithoutRef<typeof TogglePrimitives.Root> {
4
+ defaultChecked?: boolean;
5
+ onCheckedChange?: (checked: boolean) => void;
6
+ thumbClassName?: string;
7
+ }
8
+ export declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "@dhasdk/simple-ui",
3
+ "version": "0.0.1",
4
+ "main": "./index.js",
5
+ "types": "./index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ }
11
+ }
12
+ }