@dhasdk/simple-ui 1.0.7 → 1.0.9

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/Card.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  variant?: string;
4
- variantStyle?: string;
4
+ subVariant?: string;
5
5
  imagePath?: string;
6
6
  classNameImage?: string;
7
7
  imageInset?: boolean;
@@ -2,6 +2,7 @@ import { default as React } from 'react';
2
2
  export type RadioOption = {
3
3
  label: string;
4
4
  value: string;
5
+ id: string;
5
6
  disabled?: boolean;
6
7
  };
7
8
  type RadioGroupProps = {
@@ -0,0 +1,3 @@
1
+ export declare function RadioIcon({ className }: {
2
+ className?: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
package/lib/SkipLink.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { HTMLAttributes, ReactElement } from 'react';
1
2
  /**
2
3
  * The props for the {@link SkipLink} component
3
4
  * @property className - The class name for the SkipLink component, defaults to 'skip-link'
@@ -6,15 +7,15 @@
6
7
  */
7
8
  export interface SkipLinkProps {
8
9
  className?: string;
9
- children: React.ReactElement;
10
10
  skipTo: string;
11
+ children: ReactElement<HTMLAttributes<HTMLElement>>;
11
12
  }
12
13
  /**
13
14
  * A Skiplink component that allows keyboard users to skip to the main content of the page.
14
15
  * See {@link SkipLinkProps} for more information.
15
16
  */
16
17
  export declare const SkipLink: {
17
- ({ className, children, skipTo }: SkipLinkProps): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>>;
18
+ ({ className, children, skipTo }: SkipLinkProps): ReactElement<HTMLAttributes<HTMLElement>, string | import('react').JSXElementConstructor<any>>;
18
19
  defaultProps: {
19
20
  className: string;
20
21
  skipTo: string;
package/lib/Tabs.d.ts CHANGED
@@ -8,7 +8,8 @@ export declare enum IconPosition {
8
8
  interface Tab {
9
9
  id: string;
10
10
  label: string;
11
- content: ReactNode;
11
+ onClick?: () => void;
12
+ content?: ReactNode;
12
13
  activeIcon?: ReactNode | undefined;
13
14
  inactiveIcon?: ReactNode | undefined;
14
15
  iconPosition?: IconPosition;
@@ -17,7 +18,9 @@ export interface TabsProps {
17
18
  variant?: string;
18
19
  className?: string;
19
20
  classNameContainer?: string;
21
+ customActiveClass?: string;
22
+ customInactiveClass?: string;
20
23
  tabs: Tab[];
21
24
  }
22
- export declare const Tabs: ({ variant, tabs, className, classNameContainer }: TabsProps) => import("react/jsx-runtime").JSX.Element;
25
+ export declare const Tabs: ({ variant, tabs, className, classNameContainer, customActiveClass, customInactiveClass }: TabsProps) => import("react/jsx-runtime").JSX.Element;
23
26
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhasdk/simple-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "license": "MIT",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -12,13 +12,12 @@
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
- "dayjs": "^1.11.13"
15
+ "dayjs": "^1.11.13",
16
+ "tailwindcss": "^4.1.11"
16
17
  },
17
18
  "devDependencies": {
18
- "tailwind-merge": "^2.3.0",
19
- "tailwindcss": "3.4.3",
20
- "react": "18.3.1",
21
- "react-dom": "18.3.1",
22
- "react-router-dom": "^6.23.1"
19
+ "react": "^19.1.0",
20
+ "react-dom": "^19.1.0",
21
+ "react-router-dom": "^7.6.3"
23
22
  }
24
23
  }