@itsyouagency/ui 1.45.0 → 1.47.0
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 +93 -0
- package/dist/assets/css/design-system.css +3566 -0
- package/dist/assets/icons/bell-01.svg +1 -1
- package/dist/components/base/Button.d.ts +6 -2
- package/dist/components/base/IconButton.d.ts +10 -10
- package/dist/components/base/Input.d.ts +2 -3
- package/dist/components/base/InputWrapper.d.ts +3 -1
- package/dist/components/base/MobileSideBar.d.ts +2 -1
- package/dist/components/base/Tabs.d.ts +8 -1
- package/dist/components/base/TextArea.d.ts +2 -2
- package/dist/components/chat/ChatConversationList.d.ts +11 -0
- package/dist/components/chat/ChatCreatePage.d.ts +9 -0
- package/dist/components/chat/ChatGroupDialog.d.ts +1 -0
- package/dist/components/chat/ChatGroupForm.d.ts +14 -0
- package/dist/components/chat/ChatRequestPicker.d.ts +10 -0
- package/dist/components/chat/ChatThread.d.ts +19 -0
- package/dist/components/chat/ChatWorkspace.d.ts +12 -0
- package/dist/components/chat/RequestChat.d.ts +7 -0
- package/dist/components/chat/api.d.ts +36 -0
- package/dist/components/chat/grouping.d.ts +7 -0
- package/dist/components/chat/index.d.ts +6 -0
- package/dist/components/chat/labels.d.ts +155 -0
- package/dist/components/chat/types.d.ts +73 -0
- package/dist/components/chat/utils.d.ts +5 -0
- package/dist/components/request-files/FileDownloadButton.d.ts +5 -0
- package/dist/components/request-files/RequestContracts.d.ts +14 -0
- package/dist/components/request-files/RequestFileDialog.d.ts +11 -0
- package/dist/components/request-files/RequestResources.d.ts +15 -0
- package/dist/components/request-files/api.d.ts +8 -0
- package/dist/components/workspace/ActionDialog.d.ts +11 -0
- package/dist/components/workspace/ChoiceChips.d.ts +11 -0
- package/dist/components/workspace/CommandMenu.d.ts +8 -0
- package/dist/components/workspace/ContactDetails.d.ts +25 -0
- package/dist/components/workspace/ContractFields.d.ts +23 -0
- package/dist/components/workspace/DataRegion.d.ts +19 -0
- package/dist/components/workspace/DocumentEditor.d.ts +12 -0
- package/dist/components/workspace/DocumentPreview.d.ts +5 -0
- package/dist/components/workspace/Feedback.d.ts +27 -0
- package/dist/components/workspace/FilterTabs.d.ts +17 -0
- package/dist/components/workspace/FormActions.d.ts +6 -0
- package/dist/components/workspace/FormField.d.ts +24 -0
- package/dist/components/workspace/MetricCard.d.ts +13 -0
- package/dist/components/workspace/NotificationMenu.d.ts +8 -0
- package/dist/components/workspace/PageHeader.d.ts +9 -0
- package/dist/components/workspace/Pagination.d.ts +14 -0
- package/dist/components/workspace/Panel.d.ts +12 -0
- package/dist/components/workspace/Progress.d.ts +5 -0
- package/dist/components/workspace/SearchMultiSelect.d.ts +11 -0
- package/dist/components/workspace/SearchSelect.d.ts +24 -0
- package/dist/components/workspace/SettingToggle.d.ts +12 -0
- package/dist/components/workspace/WorkspaceNav.d.ts +7 -0
- package/dist/components/workspace/index.d.ts +27 -0
- package/dist/components/workspace/navigation.d.ts +32 -0
- package/dist/components/workspace/search.d.ts +10 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -2
- package/dist/layouts/dashboard.d.ts +3 -1
- package/dist/layouts/index.d.ts +2 -0
- package/dist/layouts/workspace.d.ts +29 -0
- package/dist/layouts/workspaceAuth.d.ts +13 -0
- package/dist/tailwind.workspace.config.d.ts +3 -0
- package/dist/tailwind.workspace.config.js +1 -0
- package/package.json +12 -10
- package/dist/assets/logos/mark.svg +0 -10
- package/dist/index.js.LICENSE.txt +0 -40
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import { TDashboardNav } from '../components/base/DashboardNav';
|
|
2
3
|
interface Props {
|
|
3
4
|
children: React.ReactNode;
|
|
4
5
|
nav: TDashboardNav;
|
|
5
6
|
contentClassName?: string;
|
|
6
7
|
currentPath: string;
|
|
8
|
+
sidebarFooter?: ReactNode;
|
|
7
9
|
}
|
|
8
|
-
export default function DashboardLayout({ children, nav, contentClassName, currentPath, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default function DashboardLayout({ children, nav, contentClassName, currentPath, sidebarFooter, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export {};
|
package/dist/layouts/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export { default as DashboardLayout } from './dashboard';
|
|
2
2
|
export { default as LogoLayout } from './logoLayout';
|
|
3
|
+
export { default as WorkspaceLayout, type WorkspaceLayoutProps, } from './workspace';
|
|
4
|
+
export { default as WorkspaceAuthLayout, type WorkspaceAuthLayoutProps, } from './workspaceAuth';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { WorkspaceNav as Navigation, WorkspaceLabels } from '../components/workspace/navigation';
|
|
3
|
+
export interface WorkspaceLayoutProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
nav: Navigation;
|
|
6
|
+
currentPath: string;
|
|
7
|
+
navigationKey?: string;
|
|
8
|
+
busy?: boolean;
|
|
9
|
+
onNavigate: (href: string) => void;
|
|
10
|
+
account?: {
|
|
11
|
+
name: string;
|
|
12
|
+
email?: string | null;
|
|
13
|
+
role?: string;
|
|
14
|
+
onSignOut?: () => void;
|
|
15
|
+
};
|
|
16
|
+
workspaceName: string;
|
|
17
|
+
workspaceDescription?: string;
|
|
18
|
+
brand?: ReactNode;
|
|
19
|
+
brandSubtitle?: string;
|
|
20
|
+
homeHref?: string;
|
|
21
|
+
contentClassName?: string;
|
|
22
|
+
sidebarFooter?: ReactNode;
|
|
23
|
+
/** Pin the account's sign-out action below the scrollable navigation. */
|
|
24
|
+
sidebarSignOut?: boolean;
|
|
25
|
+
footer?: ReactNode;
|
|
26
|
+
headerActions?: ReactNode;
|
|
27
|
+
labels?: Partial<WorkspaceLabels>;
|
|
28
|
+
}
|
|
29
|
+
export default function WorkspaceLayout({ children, nav, currentPath, navigationKey, busy, onNavigate, account, workspaceName, workspaceDescription, brand, brandSubtitle, homeHref, contentClassName, sidebarFooter, sidebarSignOut, footer, headerActions, labels: customLabels, }: WorkspaceLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface WorkspaceAuthLayoutProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
workspaceLabel: string;
|
|
5
|
+
eyebrow?: ReactNode;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description?: ReactNode;
|
|
8
|
+
brand?: ReactNode;
|
|
9
|
+
formHeader?: ReactNode;
|
|
10
|
+
storyFooter?: ReactNode;
|
|
11
|
+
footer?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export default function WorkspaceAuthLayout({ children, workspaceLabel, eyebrow, title, description, brand, formHeader, storyFooter, footer, }: WorkspaceAuthLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const gray=Object.fromEntries([50,100,200,300,400,500,600,700,800,900,950].map(a=>[a,`rgb(var(--ui-gray-${a}) / <alpha-value>)`]));module.exports={theme:{extend:{colors:{primary:"rgb(var(--ui-primary) / <alpha-value>)",secondary:"rgb(var(--ui-secondary) / <alpha-value>)",dark:gray[950],light:gray[200],salt:"rgb(var(--ui-canvas) / <alpha-value>)",gray,blue:gray,green:gray,red:gray,orange:gray,purple:gray,yellow:gray,amber:gray,emerald:gray,success:{100:gray[100],500:gray[800]},warning:{400:gray[500]}},fontFamily:{sans:"var(--ui-font-sans)",poppins:"Poppins",tommy:"Tommy",tommyOutline:"Tommy Outline"},fontSize:{"5xl":"2.8rem"},maxWidth:{"8xl":"96rem"},borderWidth:{3:"3px"},lineHeight:{11:"3.4rem"}}},safelist:[{pattern:/grid-cols-[0-9]/}]};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itsyouagency/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,14 +13,6 @@
|
|
|
13
13
|
"dist",
|
|
14
14
|
"dist/assets"
|
|
15
15
|
],
|
|
16
|
-
"scripts": {
|
|
17
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
|
-
"storybook": "storybook dev -p 6006",
|
|
19
|
-
"build-storybook": "storybook build",
|
|
20
|
-
"build": "webpack --config webpack.config.js",
|
|
21
|
-
"prepublishOnly": "pnpm run build",
|
|
22
|
-
"pub": "npm publish --access public"
|
|
23
|
-
},
|
|
24
16
|
"keywords": [],
|
|
25
17
|
"author": "Husein Fakhir",
|
|
26
18
|
"license": "ISC",
|
|
@@ -54,6 +46,7 @@
|
|
|
54
46
|
"tailwindcss": "^3.4.17",
|
|
55
47
|
"ts-loader": "^9.5.2",
|
|
56
48
|
"url-loader": "^4.1.1",
|
|
49
|
+
"webpack": "5.103.0",
|
|
57
50
|
"webpack-cli": "^6.0.1"
|
|
58
51
|
},
|
|
59
52
|
"peerDependencies": {
|
|
@@ -66,6 +59,7 @@
|
|
|
66
59
|
"@tanstack/react-table": "^8.20.6",
|
|
67
60
|
"@tanstack/table-core": "^8.21.2",
|
|
68
61
|
"classnames": "^2.5.1",
|
|
62
|
+
"dompurify": "^3.4.16",
|
|
69
63
|
"moment": "^2.30.1",
|
|
70
64
|
"next": "15.0.7",
|
|
71
65
|
"react": "19.0.0-rc-66855b96-20241106",
|
|
@@ -77,5 +71,13 @@
|
|
|
77
71
|
},
|
|
78
72
|
"publishConfig": {
|
|
79
73
|
"access": "public"
|
|
74
|
+
},
|
|
75
|
+
"scripts": {
|
|
76
|
+
"test": "pnpm run build && node --test tests/*.test.cjs",
|
|
77
|
+
"storybook": "storybook dev -p 6006",
|
|
78
|
+
"build-storybook": "storybook build",
|
|
79
|
+
"build": "webpack --config webpack.config.js",
|
|
80
|
+
"pub": "npm publish --access public",
|
|
81
|
+
"dev": "webpack --config webpack.config.js --watch"
|
|
80
82
|
}
|
|
81
|
-
}
|
|
83
|
+
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 47 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill="#6366f1" d="M23.5 6.5C17.5 6.5 13.75 9.5 12.25 15.5C14.5 12.5 17.125 11.375 20.125 12.125C21.8367 12.5529 23.0601 13.7947 24.4142 15.1692C26.6202 17.4084 29.1734 20 34.75 20C40.75 20 44.5 17 46 11C43.75 14 41.125 15.125 38.125 14.375C36.4133 13.9471 35.1899 12.7053 33.8357 11.3308C31.6297 9.09158 29.0766 6.5 23.5 6.5ZM12.25 20C6.25 20 2.5 23 1 29C3.25 26 5.875 24.875 8.875 25.625C10.5867 26.0529 11.8101 27.2947 13.1642 28.6693C15.3702 30.9084 17.9234 33.5 23.5 33.5C29.5 33.5 33.25 30.5 34.75 24.5C32.5 27.5 29.875 28.625 26.875 27.875C25.1633 27.4471 23.9399 26.2053 22.5858 24.8307C20.3798 22.5916 17.8266 20 12.25 20Z"/>
|
|
3
|
-
<defs>
|
|
4
|
-
<linearGradient id="%%GRADIENT_ID%%" x1="33.999" x2="1" y1="16.181" y2="16.181"
|
|
5
|
-
gradientUnits="userSpaceOnUse">
|
|
6
|
-
<stop stop-color="%%GRADIENT_TO%%" />
|
|
7
|
-
<stop offset="1" stop-color="%%GRADIENT_FROM%%" />
|
|
8
|
-
</linearGradient>
|
|
9
|
-
</defs>
|
|
10
|
-
</svg>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) 2018 Jed Watson.
|
|
3
|
-
Licensed under the MIT License (MIT), see
|
|
4
|
-
http://jedwatson.github.io/classnames
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* react-table
|
|
9
|
-
*
|
|
10
|
-
* Copyright (c) TanStack
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the MIT license found in the
|
|
13
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
14
|
-
*
|
|
15
|
-
* @license MIT
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* @license React
|
|
20
|
-
* react-jsx-runtime.production.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @license React
|
|
30
|
-
* use-sync-external-store-with-selector.production.js
|
|
31
|
-
*
|
|
32
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
33
|
-
*
|
|
34
|
-
* This source code is licensed under the MIT license found in the
|
|
35
|
-
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
//! moment.js
|
|
39
|
-
|
|
40
|
-
//! moment.js locale configuration
|