@itsyouagency/ui 1.46.0 → 1.48.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.
Files changed (71) hide show
  1. package/README.md +93 -0
  2. package/dist/assets/css/design-system.css +4014 -0
  3. package/dist/assets/icons/archive.svg +3 -0
  4. package/dist/assets/icons/bell-01.svg +1 -1
  5. package/dist/components/base/Button.d.ts +6 -2
  6. package/dist/components/base/Icon.d.ts +1 -0
  7. package/dist/components/base/IconButton.d.ts +10 -10
  8. package/dist/components/base/Input.d.ts +2 -3
  9. package/dist/components/base/InputWrapper.d.ts +3 -1
  10. package/dist/components/base/Tabs.d.ts +8 -1
  11. package/dist/components/base/TextArea.d.ts +2 -2
  12. package/dist/components/chat/ChatConversationList.d.ts +11 -0
  13. package/dist/components/chat/ChatCreatePage.d.ts +9 -0
  14. package/dist/components/chat/ChatGroupDialog.d.ts +1 -0
  15. package/dist/components/chat/ChatGroupForm.d.ts +14 -0
  16. package/dist/components/chat/ChatMessageEditor.d.ts +11 -0
  17. package/dist/components/chat/ChatRequestPicker.d.ts +10 -0
  18. package/dist/components/chat/ChatThread.d.ts +21 -0
  19. package/dist/components/chat/ChatWorkspace.d.ts +12 -0
  20. package/dist/components/chat/RequestChat.d.ts +7 -0
  21. package/dist/components/chat/api.d.ts +44 -0
  22. package/dist/components/chat/grouping.d.ts +7 -0
  23. package/dist/components/chat/index.d.ts +6 -0
  24. package/dist/components/chat/labels.d.ts +195 -0
  25. package/dist/components/chat/types.d.ts +81 -0
  26. package/dist/components/chat/utils.d.ts +5 -0
  27. package/dist/components/notifications/Notifications.d.ts +12 -0
  28. package/dist/components/notifications/useNotificationFeed.d.ts +33 -0
  29. package/dist/components/request-files/FileDownloadButton.d.ts +5 -0
  30. package/dist/components/request-files/RequestContracts.d.ts +14 -0
  31. package/dist/components/request-files/RequestFileDialog.d.ts +11 -0
  32. package/dist/components/request-files/RequestResources.d.ts +15 -0
  33. package/dist/components/request-files/api.d.ts +8 -0
  34. package/dist/components/reviews/OrderReviews.d.ts +6 -0
  35. package/dist/components/reviews/StarRating.d.ts +8 -0
  36. package/dist/components/workspace/ActionDialog.d.ts +11 -0
  37. package/dist/components/workspace/ChoiceChips.d.ts +11 -0
  38. package/dist/components/workspace/CommandMenu.d.ts +8 -0
  39. package/dist/components/workspace/ContactDetails.d.ts +25 -0
  40. package/dist/components/workspace/ContractFields.d.ts +23 -0
  41. package/dist/components/workspace/DataRegion.d.ts +19 -0
  42. package/dist/components/workspace/DocumentEditor.d.ts +12 -0
  43. package/dist/components/workspace/DocumentPreview.d.ts +5 -0
  44. package/dist/components/workspace/FaqCenter.d.ts +46 -0
  45. package/dist/components/workspace/Feedback.d.ts +27 -0
  46. package/dist/components/workspace/FilterTabs.d.ts +17 -0
  47. package/dist/components/workspace/FormActions.d.ts +6 -0
  48. package/dist/components/workspace/FormField.d.ts +24 -0
  49. package/dist/components/workspace/MetricCard.d.ts +13 -0
  50. package/dist/components/workspace/NotificationMenu.d.ts +8 -0
  51. package/dist/components/workspace/PageHeader.d.ts +9 -0
  52. package/dist/components/workspace/Pagination.d.ts +14 -0
  53. package/dist/components/workspace/Panel.d.ts +12 -0
  54. package/dist/components/workspace/Progress.d.ts +5 -0
  55. package/dist/components/workspace/SearchMultiSelect.d.ts +14 -0
  56. package/dist/components/workspace/SearchSelect.d.ts +24 -0
  57. package/dist/components/workspace/SettingToggle.d.ts +12 -0
  58. package/dist/components/workspace/WorkspaceNav.d.ts +8 -0
  59. package/dist/components/workspace/index.d.ts +29 -0
  60. package/dist/components/workspace/navigation.d.ts +33 -0
  61. package/dist/components/workspace/search.d.ts +10 -0
  62. package/dist/index.d.ts +4 -0
  63. package/dist/index.js +1 -2
  64. package/dist/layouts/index.d.ts +2 -0
  65. package/dist/layouts/workspace.d.ts +31 -0
  66. package/dist/layouts/workspaceAuth.d.ts +13 -0
  67. package/dist/tailwind.workspace.config.d.ts +3 -0
  68. package/dist/tailwind.workspace.config.js +1 -0
  69. package/package.json +5 -3
  70. package/dist/assets/logos/mark.svg +0 -10
  71. package/dist/index.js.LICENSE.txt +0 -40
@@ -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,31 @@
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
+ /** Navigation pinned below the scrollable menu and above sign out. */
24
+ sidebarBottomNav?: Navigation;
25
+ /** Pin the account's sign-out action below the scrollable navigation. */
26
+ sidebarSignOut?: boolean;
27
+ footer?: ReactNode;
28
+ headerActions?: ReactNode;
29
+ labels?: Partial<WorkspaceLabels>;
30
+ }
31
+ export default function WorkspaceLayout({ children, nav, currentPath, navigationKey, busy, onNavigate, account, workspaceName, workspaceDescription, brand, brandSubtitle, homeHref, contentClassName, sidebarFooter, sidebarBottomNav, 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,3 @@
1
+ import type { Config } from 'tailwindcss';
2
+ declare const preset: Partial<Config>;
3
+ export = preset;
@@ -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.46.0",
3
+ "version": "1.48.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -59,6 +59,7 @@
59
59
  "@tanstack/react-table": "^8.20.6",
60
60
  "@tanstack/table-core": "^8.21.2",
61
61
  "classnames": "^2.5.1",
62
+ "dompurify": "^3.4.16",
62
63
  "moment": "^2.30.1",
63
64
  "next": "15.0.7",
64
65
  "react": "19.0.0-rc-66855b96-20241106",
@@ -72,10 +73,11 @@
72
73
  "access": "public"
73
74
  },
74
75
  "scripts": {
75
- "test": "echo \"Error: no test specified\" && exit 1",
76
+ "test": "pnpm run build && node --test tests/*.test.cjs",
76
77
  "storybook": "storybook dev -p 6006",
77
78
  "build-storybook": "storybook build",
78
79
  "build": "webpack --config webpack.config.js",
79
- "pub": "npm publish --access public"
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