@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/README.md +464 -16
- package/index.css +1 -1
- package/index.d.ts +3 -2
- package/index.js +18 -19
- package/index.mjs +2467 -1975
- package/lib/Card.d.ts +1 -1
- package/lib/RadioGroup.d.ts +1 -0
- package/lib/RadioIcon.d.ts +3 -0
- package/lib/SkipLink.d.ts +3 -2
- package/lib/Tabs.d.ts +5 -2
- package/package.json +6 -7
package/lib/Card.d.ts
CHANGED
package/lib/RadioGroup.d.ts
CHANGED
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):
|
|
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
|
-
|
|
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.
|
|
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
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"react": "
|
|
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
|
}
|