@sqrzro/admin 2.1.0-bz.1 → 2.1.0-bz.11
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/LICENSE +1 -1
- package/README.md +8 -5
- package/dist/components/AppLayout/index.d.ts +4 -1
- package/dist/components/AppLayout/index.js +7 -4
- package/dist/components/AppNavigation/index.js +4 -3
- package/dist/components/Auth/index.d.ts +5 -0
- package/dist/components/Auth/index.js +12 -0
- package/dist/components/Badge/index.d.ts +8 -0
- package/dist/components/Badge/index.js +11 -0
- package/dist/components/Dashboard/index.js +1 -1
- package/dist/components/DateFilter/index.js +0 -1
- package/dist/components/FilterBar/index.d.ts +4 -3
- package/dist/components/FilterBar/index.js +12 -3
- package/dist/components/FilterBarItem/index.d.ts +2 -1
- package/dist/components/FilterBarItem/index.js +2 -2
- package/dist/components/GridList/index.d.ts +2 -2
- package/dist/components/GridList/index.js +1 -1
- package/dist/components/GridListItem/index.d.ts +1 -1
- package/dist/components/GridListItem/index.js +3 -2
- package/dist/components/InfoPanel/index.d.ts +8 -0
- package/dist/components/InfoPanel/index.js +10 -0
- package/dist/components/List/index.d.ts +12 -10
- package/dist/components/List/index.js +7 -5
- package/dist/components/ListActions/index.js +1 -1
- package/dist/components/ListItem/index.d.ts +9 -6
- package/dist/components/ListItem/index.js +8 -4
- package/dist/components/MeActions/index.js +3 -10
- package/dist/components/MePanel/index.d.ts +6 -1
- package/dist/components/MePanel/index.js +2 -5
- package/dist/components/Page/index.d.ts +1 -1
- package/dist/components/Page/index.js +2 -2
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.js +1 -1
- package/dist/components/RootLayout/index.d.ts +2 -1
- package/dist/components/RootLayout/index.js +12 -5
- package/dist/components/SettingsForm/index.d.ts +2 -0
- package/dist/components/SettingsForm/index.js +9 -0
- package/dist/components/SettingsPage/index.d.ts +2 -0
- package/dist/components/SettingsPage/index.js +7 -0
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/TableClientComponent/index.d.ts +4 -4
- package/dist/components/TableClientComponent/index.js +17 -4
- package/dist/components/Tabs/index.js +20 -2
- package/dist/components/index.d.ts +12 -4
- package/dist/components/index.js +6 -2
- package/dist/services/ConfigService.d.ts +3 -1
- package/dist/services/ConfigService.js +5 -5
- package/dist/styles/config.js +94 -35
- package/dist/styles/postcss.d.ts +6 -0
- package/dist/styles/postcss.js +4 -0
- package/dist/styles/tailwind.d.ts +10 -0
- package/dist/styles/tailwind.js +72 -0
- package/package.json +37 -46
- package/postcss.js +3 -0
- package/tailwind.d.ts +1 -0
- package/tailwind.js +1 -0
- package/.babelrc.json +0 -16
- package/.eslintignore +0 -6
- package/.eslintrc +0 -5
- package/.sqrzrorc +0 -5
- package/.storybook/main.js +0 -11
- package/.storybook/preview-head.html +0 -3
- package/.storybook/preview.js +0 -1
- package/.turbo/turbo-build.log +0 -20
- package/.turbo/turbo-prettier.log +0 -43
- package/COMPONENTS.md +0 -45
- package/dist/components/LoginForm/index.d.ts +0 -6
- package/dist/components/LoginForm/index.js +0 -7
- package/dist/styles.css +0 -1723
- package/dist/utility/formatters.d.ts +0 -1
- package/dist/utility/formatters.js +0 -8
- package/next-env.d.ts +0 -5
- package/postcss.config.js +0 -3
- package/prettier.config.js +0 -1
- package/src/components/AppLayout/index.tsx +0 -32
- package/src/components/AppNavigation/index.tsx +0 -39
- package/src/components/BooleanFilter/index.tsx +0 -28
- package/src/components/Config/index.tsx +0 -17
- package/src/components/Dashboard/index.tsx +0 -15
- package/src/components/DateFilter/index.tsx +0 -49
- package/src/components/DropdownFilter/index.tsx +0 -19
- package/src/components/FilterBar/index.tsx +0 -35
- package/src/components/FilterBarItem/index.tsx +0 -126
- package/src/components/GridList/index.tsx +0 -11
- package/src/components/GridListItem/index.tsx +0 -31
- package/src/components/Icon/index.tsx +0 -33
- package/src/components/List/index.tsx +0 -70
- package/src/components/ListAction/index.tsx +0 -25
- package/src/components/ListActions/index.tsx +0 -43
- package/src/components/ListItem/index.tsx +0 -56
- package/src/components/LoginForm/index.tsx +0 -34
- package/src/components/MeActions/index.tsx +0 -21
- package/src/components/MePanel/index.tsx +0 -21
- package/src/components/Page/index.tsx +0 -60
- package/src/components/PageActions/index.tsx +0 -22
- package/src/components/Panel/Panel.spec.tsx +0 -10
- package/src/components/Panel/Panel.stories.tsx +0 -9
- package/src/components/Panel/index.tsx +0 -15
- package/src/components/RootLayout/index.tsx +0 -39
- package/src/components/Table/index.tsx +0 -34
- package/src/components/TableClientComponent/index.tsx +0 -112
- package/src/components/Tabs/index.tsx +0 -25
- package/src/components/index.ts +0 -68
- package/src/icons/ErrorIcon/index.tsx +0 -19
- package/src/icons/InfoIcon/index.tsx +0 -19
- package/src/icons/SuccessIcon/index.tsx +0 -19
- package/src/icons/WarningIcon/index.tsx +0 -19
- package/src/index.ts +0 -3
- package/src/interfaces.ts +0 -3
- package/src/react.d.ts +0 -12
- package/src/services/ConfigService.ts +0 -24
- package/src/styles/config.ts +0 -95
- package/src/styles/tailwind.css +0 -47
- package/src/utility/formatters.ts +0 -9
- package/tailwind.config.js +0 -16
- package/tsconfig.build.json +0 -4
- package/tsconfig.json +0 -18
package/.turbo/turbo-build.log
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @sqrzro/admin@2.0.0 build /Users/richard/Sites/@sqrzro/sqrzro/packages/admin
|
|
3
|
-
> pnpm clean && pnpm build:css && pnpm build:ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
> @sqrzro/admin@2.0.0 clean /Users/richard/Sites/@sqrzro/sqrzro/packages/admin
|
|
7
|
-
> rimraf ./dist
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
> @sqrzro/admin@2.0.0 build:css /Users/richard/Sites/@sqrzro/sqrzro/packages/admin
|
|
11
|
-
> tailwindcss -i "./src/styles/tailwind.css" -o "./dist/styles.css"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Rebuilding...
|
|
15
|
-
|
|
16
|
-
Done in 140ms.
|
|
17
|
-
|
|
18
|
-
> @sqrzro/admin@2.0.0 build:ts /Users/richard/Sites/@sqrzro/sqrzro/packages/admin
|
|
19
|
-
> tsc -p tsconfig.build.json
|
|
20
|
-
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @sqrzro/admin@2.0.0 prettier /Users/richard/Sites/@sqrzro/sqrzro/packages/admin
|
|
3
|
-
> prettier --write "./src/**/*.tsx" "./src/**/*.ts"
|
|
4
|
-
|
|
5
|
-
src/components/AppLayout/index.tsx 172ms
|
|
6
|
-
src/components/AppNavigation/index.tsx 18ms
|
|
7
|
-
src/components/BooleanFilter/index.tsx 13ms
|
|
8
|
-
src/components/Config/index.tsx 7ms
|
|
9
|
-
src/components/Dashboard/index.tsx 6ms
|
|
10
|
-
src/components/DateFilter/index.tsx 15ms
|
|
11
|
-
src/components/DropdownFilter/index.tsx 9ms
|
|
12
|
-
src/components/FilterBar/index.tsx 10ms
|
|
13
|
-
src/components/FilterBarItem/index.tsx 18ms
|
|
14
|
-
src/components/GridList/index.tsx 6ms
|
|
15
|
-
src/components/GridListItem/index.tsx 11ms
|
|
16
|
-
src/components/Icon/index.tsx 7ms
|
|
17
|
-
src/components/List/index.tsx 11ms
|
|
18
|
-
src/components/ListAction/index.tsx 8ms
|
|
19
|
-
src/components/ListActions/index.tsx 13ms
|
|
20
|
-
src/components/ListItem/index.tsx 9ms
|
|
21
|
-
src/components/LoginForm/index.tsx 8ms
|
|
22
|
-
src/components/MeActions/index.tsx 5ms
|
|
23
|
-
src/components/MePanel/index.tsx 6ms
|
|
24
|
-
src/components/Page/index.tsx 9ms
|
|
25
|
-
src/components/PageActions/index.tsx 8ms
|
|
26
|
-
src/components/Panel/index.tsx 7ms
|
|
27
|
-
src/components/Panel/Panel.spec.tsx 6ms
|
|
28
|
-
src/components/Panel/Panel.stories.tsx 5ms
|
|
29
|
-
src/components/RootLayout/index.tsx 7ms
|
|
30
|
-
src/components/Table/index.tsx 8ms
|
|
31
|
-
src/components/TableClientComponent/index.tsx 14ms
|
|
32
|
-
src/components/Tabs/index.tsx 6ms
|
|
33
|
-
src/icons/ErrorIcon/index.tsx 5ms
|
|
34
|
-
src/icons/InfoIcon/index.tsx 5ms
|
|
35
|
-
src/icons/SuccessIcon/index.tsx 5ms
|
|
36
|
-
src/icons/WarningIcon/index.tsx 7ms
|
|
37
|
-
src/components/index.ts 9ms
|
|
38
|
-
src/index.ts 6ms
|
|
39
|
-
src/interfaces.ts 5ms
|
|
40
|
-
src/react.d.ts 6ms
|
|
41
|
-
src/services/ConfigService.ts 6ms
|
|
42
|
-
src/styles/config.ts 9ms
|
|
43
|
-
src/utility/formatters.ts 5ms
|
package/COMPONENTS.md
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
Button
|
|
2
|
-
- count
|
|
3
|
-
- isBordered
|
|
4
|
-
- iconBefore
|
|
5
|
-
- iconAfter
|
|
6
|
-
|
|
7
|
-
Count (The little number in a circle that can feature on tabs etc)
|
|
8
|
-
|
|
9
|
-
Card
|
|
10
|
-
- action
|
|
11
|
-
- icon
|
|
12
|
-
- badge
|
|
13
|
-
- title
|
|
14
|
-
- description
|
|
15
|
-
- onSelect
|
|
16
|
-
|
|
17
|
-
CardInput (A collection of cards that act as checkboxes/radio buttons)
|
|
18
|
-
|
|
19
|
-
IconButton
|
|
20
|
-
CloseButton
|
|
21
|
-
|
|
22
|
-
ButtonGroup
|
|
23
|
-
|
|
24
|
-
Badge
|
|
25
|
-
- count
|
|
26
|
-
- isBordered
|
|
27
|
-
- isCloseable
|
|
28
|
-
- iconBefore
|
|
29
|
-
- iconAfter
|
|
30
|
-
|
|
31
|
-
Tabs
|
|
32
|
-
- count
|
|
33
|
-
|
|
34
|
-
TextInput
|
|
35
|
-
- iconBefore
|
|
36
|
-
- iconAfter
|
|
37
|
-
|
|
38
|
-
Tooltip
|
|
39
|
-
- title
|
|
40
|
-
- description
|
|
41
|
-
- direction
|
|
42
|
-
|
|
43
|
-
ProgressBar
|
|
44
|
-
|
|
45
|
-
ProgressCircle
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { UseFormReturn } from '@sqrzro/hooks';
|
|
3
|
-
import type { UserObject } from '@sqrzro/server';
|
|
4
|
-
export type LoginFormProps = UseFormReturn<UserObject>;
|
|
5
|
-
declare function LoginForm({ fieldProps, formProps }: Readonly<LoginFormProps>): React.ReactElement;
|
|
6
|
-
export default LoginForm;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { Form, FormField, FormSubmit, PasswordInput, TextInput } from '@sqrzro/components';
|
|
4
|
-
function LoginForm({ fieldProps, formProps }) {
|
|
5
|
-
return (_jsxs("div", { className: "flex h-screen flex-col items-center justify-center bg-slate-800 pb-[10vh]", children: [_jsx("div", { className: "mx-auto mb-8 h-12 w-12 rounded-full border-4 border-primary" }), _jsxs("div", { className: "w-full max-w-sm rounded-lg bg-white p-8 shadow-lg", children: [_jsx("h1", { className: "mb-8 text-center text-xl font-semibold", children: "Sign in to continue" }), _jsxs(Form, { ...formProps, children: [_jsx(FormField, { label: "Email", ...fieldProps('email'), render: TextInput }), _jsx(FormField, { label: "Password", ...fieldProps('password'), render: PasswordInput }), _jsxs("div", { className: "mt-8 text-center", children: [_jsx("a", { className: "mb-6 block text-primary", href: "/#", children: "Forgot Password?" }), _jsx(FormSubmit, { isFullWidth: true, children: "Sign In" })] })] })] })] }));
|
|
6
|
-
}
|
|
7
|
-
export default LoginForm;
|