@lateralus-ai/shipping-ui 1.4.13 → 1.4.15
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 +108 -108
- package/dist/index.cjs +38 -38
- package/dist/index.esm.js +4512 -4491
- package/dist/tailwind-theme.d.ts +21 -0
- package/package.json +99 -99
- package/src/components/DocumentEditor/DocumentEditor.tsx +871 -871
- package/src/components/HelloWorld.tsx +3 -3
- package/src/components/InputPrompt.tsx +96 -96
- package/src/components/ModalPanel.tsx +49 -49
- package/src/components/PdfViewer/ImageViewer.tsx +211 -211
- package/src/components/PdfViewer/PdfViewer.tsx +232 -232
- package/src/components/PdfViewer/index.ts +2 -2
- package/src/components/PdfViewer/usePageManagement.ts +32 -32
- package/src/components/PdfViewer/usePanning.ts +42 -42
- package/src/components/PdfViewer/useRefDimensions.ts +16 -16
- package/src/components/PdfViewer/useRotation.ts +13 -13
- package/src/components/PdfViewer/useZoom.ts +26 -26
- package/src/components/SearchModal.tsx +320 -320
- package/src/components/Sidebar/Button.tsx +20 -20
- package/src/components/Sidebar/Container.tsx +31 -31
- package/src/components/Sidebar/Item.tsx +39 -39
- package/src/components/Sidebar/Layout.tsx +32 -32
- package/src/components/Sidebar/Provider.tsx +47 -47
- package/src/components/Sidebar/SecondaryItem.tsx +39 -39
- package/src/components/Sidebar/SideContainer.tsx +31 -31
- package/src/components/Sidebar/ToggleCollapseButton.tsx +24 -24
- package/src/components/Sidebar/index.ts +8 -8
- package/src/components/Tabs.tsx +43 -43
- package/src/components/icons/CloseSidebarIcon.tsx +19 -19
- package/src/components/icons/CloseSidebarMidIcon.tsx +19 -19
- package/src/components/icons/ExpandIcon.tsx +21 -21
- package/src/components/icons/SendArrowIcon.tsx +23 -23
- package/src/components/icons/SendArrowIconGreen.tsx +17 -17
- package/src/components/icons/SettingsIcon.tsx +33 -33
- package/src/components/icons/XIcon.tsx +21 -21
- package/src/components/index.ts +6 -6
- package/src/index.ts +4 -4
- package/src/material-theme.ts +477 -477
- package/src/stories/Buttons.stories.tsx +15 -15
- package/src/stories/Buttons.tsx +52 -52
- package/src/stories/Checkbox.stories.tsx +15 -15
- package/src/stories/Checkbox.tsx +56 -56
- package/src/stories/ColorPalette.stories.tsx +15 -15
- package/src/stories/ColorPalette.tsx +85 -72
- package/src/stories/DocumentEditor.stories.tsx +287 -287
- package/src/stories/Dropdowns.stories.tsx +15 -15
- package/src/stories/Dropdowns.tsx +52 -52
- package/src/stories/InputPrompt.stories.tsx +15 -15
- package/src/stories/InputPrompt.tsx +63 -63
- package/src/stories/ModalHeader.stories.tsx +35 -35
- package/src/stories/PDFViewer.stories.tsx +39 -39
- package/src/stories/SearchModal.stories.tsx +132 -132
- package/src/stories/SearchModal.tsx +82 -82
- package/src/stories/Sidebar.stories.tsx +15 -15
- package/src/stories/Sidebar.tsx +108 -108
- package/src/stories/Tabs.stories.tsx +51 -51
- package/src/stories/Typography.stories.tsx +15 -15
- package/src/stories/Typography.tsx +110 -110
- package/src/style.css +2 -2
- package/src/styles/tabs.css +55 -55
- package/src/tailwind-theme.ts +258 -231
- package/src/types/documentEditor.ts +55 -55
- package/src/utils/checkboxModule.ts +241 -241
- package/src/utils/cn.ts +11 -11
package/dist/tailwind-theme.d.ts
CHANGED
|
@@ -5,6 +5,15 @@ export declare const theme: {
|
|
|
5
5
|
signature: string[];
|
|
6
6
|
};
|
|
7
7
|
fontSize: {
|
|
8
|
+
title: (string | {
|
|
9
|
+
lineHeight: string;
|
|
10
|
+
letterSpacing: string;
|
|
11
|
+
})[];
|
|
12
|
+
"title-em": (string | {
|
|
13
|
+
lineHeight: string;
|
|
14
|
+
letterSpacing: string;
|
|
15
|
+
fontWeight: string;
|
|
16
|
+
})[];
|
|
8
17
|
subheader: (string | {
|
|
9
18
|
lineHeight: string;
|
|
10
19
|
letterSpacing: string;
|
|
@@ -143,6 +152,18 @@ export declare const theme: {
|
|
|
143
152
|
800: string;
|
|
144
153
|
900: string;
|
|
145
154
|
};
|
|
155
|
+
purple: {
|
|
156
|
+
50: string;
|
|
157
|
+
100: string;
|
|
158
|
+
200: string;
|
|
159
|
+
300: string;
|
|
160
|
+
400: string;
|
|
161
|
+
500: string;
|
|
162
|
+
600: string;
|
|
163
|
+
700: string;
|
|
164
|
+
800: string;
|
|
165
|
+
900: string;
|
|
166
|
+
};
|
|
146
167
|
"brand-purple": string;
|
|
147
168
|
presentation: string;
|
|
148
169
|
"text-primary": string;
|
package/package.json
CHANGED
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lateralus-ai/shipping-ui",
|
|
3
|
-
"version": "1.4.
|
|
4
|
-
"description": "Shared UI theme and components for Lateralus shipping applications",
|
|
5
|
-
"main": "dist/index.cjs",
|
|
6
|
-
"module": "dist/index.esm.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"access": "public"
|
|
10
|
-
},
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./dist/index.esm.js",
|
|
14
|
-
"require": "./dist/index.cjs",
|
|
15
|
-
"types": "./dist/index.d.ts"
|
|
16
|
-
},
|
|
17
|
-
"./style.css": "./dist/style.css",
|
|
18
|
-
"./css": "./dist/style.css",
|
|
19
|
-
"./dist/style.css": "./dist/style.css",
|
|
20
|
-
"./tailwind": "./tailwind.config.js"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist",
|
|
24
|
-
"lib",
|
|
25
|
-
"src",
|
|
26
|
-
"tailwind.config.js"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"dev": "storybook dev -p 6006",
|
|
30
|
-
"build": "npx rimraf ./dist && vite build",
|
|
31
|
-
"storybook": "storybook dev -p 6006",
|
|
32
|
-
"build-storybook": "storybook build",
|
|
33
|
-
"release": "npx release-it"
|
|
34
|
-
},
|
|
35
|
-
"repository": {
|
|
36
|
-
"type": "git",
|
|
37
|
-
"url": "git+https://github.com/lateralus-ai/shipping-ui.git"
|
|
38
|
-
},
|
|
39
|
-
"keywords": [
|
|
40
|
-
"tailwind",
|
|
41
|
-
"material-tailwind",
|
|
42
|
-
"theme",
|
|
43
|
-
"shipping",
|
|
44
|
-
"storybook"
|
|
45
|
-
],
|
|
46
|
-
"author": "Lateralus AI",
|
|
47
|
-
"license": "UNLICENSED",
|
|
48
|
-
"bugs": {
|
|
49
|
-
"url": "https://github.com/lateralus-ai/shipping-ui/issues"
|
|
50
|
-
},
|
|
51
|
-
"homepage": "https://github.com/lateralus-ai/shipping-ui#readme",
|
|
52
|
-
"devDependencies": {
|
|
53
|
-
"@chromatic-com/storybook": "^1.6.1",
|
|
54
|
-
"@material-tailwind/react": "^2.1.10",
|
|
55
|
-
"@storybook/addon-essentials": "^8.2.9",
|
|
56
|
-
"@storybook/addon-interactions": "^8.2.9",
|
|
57
|
-
"@storybook/addon-links": "^8.2.9",
|
|
58
|
-
"@storybook/blocks": "^8.2.9",
|
|
59
|
-
"@storybook/react": "^8.2.9",
|
|
60
|
-
"@storybook/react-vite": "^8.2.9",
|
|
61
|
-
"@types/react": "^18.2.0",
|
|
62
|
-
"@types/react-dom": "^18.2.0",
|
|
63
|
-
"@uidotdev/usehooks": "^2.4.1",
|
|
64
|
-
"@vitejs/plugin-react": "^4.2.1",
|
|
65
|
-
"ai": "^5.0.59",
|
|
66
|
-
"autoprefixer": "^10.4.16",
|
|
67
|
-
"clsx": "^1.2.0",
|
|
68
|
-
"postcss": "^8.4.32",
|
|
69
|
-
"react": "^18.2.0",
|
|
70
|
-
"react-dom": "^18.2.0",
|
|
71
|
-
"release-it": "^19.0.5",
|
|
72
|
-
"storybook": "^8.2.9",
|
|
73
|
-
"tailwind-merge": "^1.9.0",
|
|
74
|
-
"tailwindcss": "^3.4.0",
|
|
75
|
-
"tailwindcss-animate": "^1.0.7",
|
|
76
|
-
"tailwindcss-radix": "^3.0.3",
|
|
77
|
-
"typescript": "^5.3.3",
|
|
78
|
-
"vite": "^5.0.10",
|
|
79
|
-
"vite-plugin-dts": "^4.5.4"
|
|
80
|
-
},
|
|
81
|
-
"peerDependencies": {
|
|
82
|
-
"react": "^18.2.0",
|
|
83
|
-
"react-dom": "^18.2.0",
|
|
84
|
-
"react-textarea-autosize": "^8.5.9"
|
|
85
|
-
},
|
|
86
|
-
"dependencies": {
|
|
87
|
-
"@iconify/react": "^6.0.2",
|
|
88
|
-
"@react-hooks-library/core": "^0.6.2",
|
|
89
|
-
"docx-preview": "^0.3.7",
|
|
90
|
-
"docxtemplater": "^3.66.6",
|
|
91
|
-
"pizzip": "^3.2.0",
|
|
92
|
-
"react-hotkeys-hook": "^5.1.0",
|
|
93
|
-
"react-pdf": "^10.1.0",
|
|
94
|
-
"react-router": "^7.9.3"
|
|
95
|
-
},
|
|
96
|
-
"sideEffects": [
|
|
97
|
-
"dist/style.css"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@lateralus-ai/shipping-ui",
|
|
3
|
+
"version": "1.4.15",
|
|
4
|
+
"description": "Shared UI theme and components for Lateralus shipping applications",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.esm.js",
|
|
14
|
+
"require": "./dist/index.cjs",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./dist/style.css",
|
|
18
|
+
"./css": "./dist/style.css",
|
|
19
|
+
"./dist/style.css": "./dist/style.css",
|
|
20
|
+
"./tailwind": "./tailwind.config.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"lib",
|
|
25
|
+
"src",
|
|
26
|
+
"tailwind.config.js"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "storybook dev -p 6006",
|
|
30
|
+
"build": "npx rimraf ./dist && vite build",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"build-storybook": "storybook build",
|
|
33
|
+
"release": "npx release-it"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/lateralus-ai/shipping-ui.git"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"tailwind",
|
|
41
|
+
"material-tailwind",
|
|
42
|
+
"theme",
|
|
43
|
+
"shipping",
|
|
44
|
+
"storybook"
|
|
45
|
+
],
|
|
46
|
+
"author": "Lateralus AI",
|
|
47
|
+
"license": "UNLICENSED",
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/lateralus-ai/shipping-ui/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/lateralus-ai/shipping-ui#readme",
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@chromatic-com/storybook": "^1.6.1",
|
|
54
|
+
"@material-tailwind/react": "^2.1.10",
|
|
55
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
56
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
57
|
+
"@storybook/addon-links": "^8.2.9",
|
|
58
|
+
"@storybook/blocks": "^8.2.9",
|
|
59
|
+
"@storybook/react": "^8.2.9",
|
|
60
|
+
"@storybook/react-vite": "^8.2.9",
|
|
61
|
+
"@types/react": "^18.2.0",
|
|
62
|
+
"@types/react-dom": "^18.2.0",
|
|
63
|
+
"@uidotdev/usehooks": "^2.4.1",
|
|
64
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
65
|
+
"ai": "^5.0.59",
|
|
66
|
+
"autoprefixer": "^10.4.16",
|
|
67
|
+
"clsx": "^1.2.0",
|
|
68
|
+
"postcss": "^8.4.32",
|
|
69
|
+
"react": "^18.2.0",
|
|
70
|
+
"react-dom": "^18.2.0",
|
|
71
|
+
"release-it": "^19.0.5",
|
|
72
|
+
"storybook": "^8.2.9",
|
|
73
|
+
"tailwind-merge": "^1.9.0",
|
|
74
|
+
"tailwindcss": "^3.4.0",
|
|
75
|
+
"tailwindcss-animate": "^1.0.7",
|
|
76
|
+
"tailwindcss-radix": "^3.0.3",
|
|
77
|
+
"typescript": "^5.3.3",
|
|
78
|
+
"vite": "^5.0.10",
|
|
79
|
+
"vite-plugin-dts": "^4.5.4"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"react": "^18.2.0",
|
|
83
|
+
"react-dom": "^18.2.0",
|
|
84
|
+
"react-textarea-autosize": "^8.5.9"
|
|
85
|
+
},
|
|
86
|
+
"dependencies": {
|
|
87
|
+
"@iconify/react": "^6.0.2",
|
|
88
|
+
"@react-hooks-library/core": "^0.6.2",
|
|
89
|
+
"docx-preview": "^0.3.7",
|
|
90
|
+
"docxtemplater": "^3.66.6",
|
|
91
|
+
"pizzip": "^3.2.0",
|
|
92
|
+
"react-hotkeys-hook": "^5.1.0",
|
|
93
|
+
"react-pdf": "^10.1.0",
|
|
94
|
+
"react-router": "^7.9.3"
|
|
95
|
+
},
|
|
96
|
+
"sideEffects": [
|
|
97
|
+
"dist/style.css"
|
|
98
|
+
]
|
|
99
|
+
}
|