@tmlmobilidade/ui 0.0.4 → 20250124.1545.56
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/cjs/index.js +400 -310
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/common/index.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +0 -1
- package/dist/cjs/types/src/hooks/toast.d.ts +64 -0
- package/dist/cjs/types/src/index.d.ts +1 -0
- package/dist/esm/index.js +398 -313
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/common/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +0 -1
- package/dist/esm/types/src/hooks/toast.d.ts +64 -0
- package/dist/esm/types/src/index.d.ts +1 -0
- package/dist/index.d.ts +57 -32
- package/dist/styles.css +400 -460
- package/package.json +87 -86
- package/dist/cjs/types/src/components/authentication/LoginForm/index.d.ts +0 -45
- package/dist/cjs/types/src/components/authentication/LoginForm/use-login.d.ts +0 -8
- package/dist/cjs/types/src/components/authentication/index.d.ts +0 -1
- package/dist/esm/types/src/components/authentication/LoginForm/index.d.ts +0 -45
- package/dist/esm/types/src/components/authentication/LoginForm/use-login.d.ts +0 -8
- package/dist/esm/types/src/components/authentication/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,87 +1,88 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
2
|
+
"name": "@tmlmobilidade/ui",
|
|
3
|
+
"version": "20250124.1545.56",
|
|
4
|
+
"main": "dist/cjs/index.js",
|
|
5
|
+
"module": "dist/esm/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev": "npm run clean && tsx scripts/watch.ts",
|
|
12
|
+
"build": "npm run clean && tsx scripts/build.ts",
|
|
13
|
+
"clean": "rm -rf dist"
|
|
14
|
+
},
|
|
15
|
+
"babel": {
|
|
16
|
+
"sourceType": "unambiguous",
|
|
17
|
+
"presets": [
|
|
18
|
+
[
|
|
19
|
+
"@babel/preset-env",
|
|
20
|
+
{
|
|
21
|
+
"targets": {
|
|
22
|
+
"chrome": 100,
|
|
23
|
+
"safari": 15,
|
|
24
|
+
"firefox": 91
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"@babel/preset-react",
|
|
30
|
+
{
|
|
31
|
+
"runtime": "automatic"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"@babel/preset-typescript"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"directory": "dist",
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"author": "",
|
|
42
|
+
"license": "ISC",
|
|
43
|
+
"description": "",
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"react": "^18.x || ^19.x",
|
|
46
|
+
"react-dom": "^18.x || ^19.x"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@babel/core": "^7.24.6",
|
|
50
|
+
"@babel/preset-env": "^7.24.6",
|
|
51
|
+
"@babel/preset-react": "^7.24.6",
|
|
52
|
+
"@babel/preset-typescript": "^7.24.6",
|
|
53
|
+
"@rollup/plugin-commonjs": "^25.0.8",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
55
|
+
"@rollup/plugin-typescript": "^11.1.6",
|
|
56
|
+
"@types/js-cookie": "^3.0.6",
|
|
57
|
+
"@types/luxon": "^3.4.2",
|
|
58
|
+
"@types/node": "22.10.3",
|
|
59
|
+
"@types/react": "^19.0.0",
|
|
60
|
+
"@types/react-dom": "19.0.0",
|
|
61
|
+
"nodemon": "^3.1.9",
|
|
62
|
+
"postcss": "^8.4.38",
|
|
63
|
+
"react": "19.0.0",
|
|
64
|
+
"react-dom": "19.0.0",
|
|
65
|
+
"rollup": "^4.18.0",
|
|
66
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
67
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
68
|
+
"ts-node-dev": "^2.0.0",
|
|
69
|
+
"tslib": "^2.6.2",
|
|
70
|
+
"tsx": "^4.19.2",
|
|
71
|
+
"typescript": "^5.4.5"
|
|
72
|
+
},
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@mantine/core": "^7.16.0",
|
|
75
|
+
"@mantine/dates": "^7.16.0",
|
|
76
|
+
"@mantine/form": "^7.16.0",
|
|
77
|
+
"@mantine/hooks": "^7.16.0",
|
|
78
|
+
"@mantine/modals": "^7.16.0",
|
|
79
|
+
"@mantine/notifications": "^7.16.1",
|
|
80
|
+
"@tabler/icons-react": "3.26.0",
|
|
81
|
+
"@tmlmobilidade/core-types": "^20250122.1750.21",
|
|
82
|
+
"clsx": "^2.1.1",
|
|
83
|
+
"js-cookie": "^3.0.5",
|
|
84
|
+
"luxon": "^3.5.0",
|
|
85
|
+
"react-viewport-list": "^7.1.2",
|
|
86
|
+
"rollup-preserve-directives": "^1.1.3"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
interface LoginFormProps {
|
|
2
|
-
/**
|
|
3
|
-
* Optional title for the login form.
|
|
4
|
-
*/
|
|
5
|
-
title: string;
|
|
6
|
-
/**
|
|
7
|
-
* Optional description for the login form.
|
|
8
|
-
*/
|
|
9
|
-
description: string;
|
|
10
|
-
/**
|
|
11
|
-
* Optional label for the login button.
|
|
12
|
-
* @default "Login"
|
|
13
|
-
*/
|
|
14
|
-
buttonLabel?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional icon to be rendered next to the button label.
|
|
17
|
-
* @default <IconArrowRight size={20} />
|
|
18
|
-
*/
|
|
19
|
-
buttonIcon?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Optional React node to be rendered as footer links in the form.
|
|
22
|
-
*/
|
|
23
|
-
footerLinks?: React.ReactNode[];
|
|
24
|
-
/**
|
|
25
|
-
* The URL to be used for the login request.
|
|
26
|
-
*/
|
|
27
|
-
authUrl: string;
|
|
28
|
-
/**
|
|
29
|
-
* Optional class names for various elements within the LoginForm component.
|
|
30
|
-
*/
|
|
31
|
-
classNames?: {
|
|
32
|
-
root?: string;
|
|
33
|
-
header?: string;
|
|
34
|
-
headerContent?: string;
|
|
35
|
-
headerTitle?: string;
|
|
36
|
-
headerDescription?: string;
|
|
37
|
-
headerImage?: string;
|
|
38
|
-
form?: string;
|
|
39
|
-
formFooter?: string;
|
|
40
|
-
formFooterLinks?: string;
|
|
41
|
-
formButton?: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export default function LoginForm({ authUrl, classNames, footerLinks, title, description, buttonLabel, buttonIcon, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LoginForm } from './LoginForm';
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
interface LoginFormProps {
|
|
2
|
-
/**
|
|
3
|
-
* Optional title for the login form.
|
|
4
|
-
*/
|
|
5
|
-
title: string;
|
|
6
|
-
/**
|
|
7
|
-
* Optional description for the login form.
|
|
8
|
-
*/
|
|
9
|
-
description: string;
|
|
10
|
-
/**
|
|
11
|
-
* Optional label for the login button.
|
|
12
|
-
* @default "Login"
|
|
13
|
-
*/
|
|
14
|
-
buttonLabel?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Optional icon to be rendered next to the button label.
|
|
17
|
-
* @default <IconArrowRight size={20} />
|
|
18
|
-
*/
|
|
19
|
-
buttonIcon?: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Optional React node to be rendered as footer links in the form.
|
|
22
|
-
*/
|
|
23
|
-
footerLinks?: React.ReactNode[];
|
|
24
|
-
/**
|
|
25
|
-
* The URL to be used for the login request.
|
|
26
|
-
*/
|
|
27
|
-
authUrl: string;
|
|
28
|
-
/**
|
|
29
|
-
* Optional class names for various elements within the LoginForm component.
|
|
30
|
-
*/
|
|
31
|
-
classNames?: {
|
|
32
|
-
root?: string;
|
|
33
|
-
header?: string;
|
|
34
|
-
headerContent?: string;
|
|
35
|
-
headerTitle?: string;
|
|
36
|
-
headerDescription?: string;
|
|
37
|
-
headerImage?: string;
|
|
38
|
-
form?: string;
|
|
39
|
-
formFooter?: string;
|
|
40
|
-
formFooterLinks?: string;
|
|
41
|
-
formButton?: string;
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
export default function LoginForm({ authUrl, classNames, footerLinks, title, description, buttonLabel, buttonIcon, }: LoginFormProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as LoginForm } from './LoginForm';
|