@lateralus-ai/shipping-ui 1.0.4

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 (87) hide show
  1. package/README.md +108 -0
  2. package/dist/components/HelloWorld.d.ts +1 -0
  3. package/dist/components/InputPrompt.d.ts +20 -0
  4. package/dist/components/ModalPanel.d.ts +8 -0
  5. package/dist/components/PdfViewer/ImageViewer.d.ts +8 -0
  6. package/dist/components/PdfViewer/PdfViewer.d.ts +7 -0
  7. package/dist/components/PdfViewer/index.d.ts +2 -0
  8. package/dist/components/PdfViewer/usePageManagement.d.ts +5 -0
  9. package/dist/components/PdfViewer/usePanning.d.ts +15 -0
  10. package/dist/components/PdfViewer/useRefDimensions.d.ts +4 -0
  11. package/dist/components/PdfViewer/useRotation.d.ts +4 -0
  12. package/dist/components/PdfViewer/useZoom.d.ts +8 -0
  13. package/dist/components/Sidebar/Button.d.ts +7 -0
  14. package/dist/components/Sidebar/Container.d.ts +5 -0
  15. package/dist/components/Sidebar/Item.d.ts +9 -0
  16. package/dist/components/Sidebar/Layout.d.ts +7 -0
  17. package/dist/components/Sidebar/Provider.d.ts +14 -0
  18. package/dist/components/Sidebar/SecondaryItem.d.ts +9 -0
  19. package/dist/components/Sidebar/ToggleCollapseButton.d.ts +1 -0
  20. package/dist/components/Sidebar/index.d.ts +7 -0
  21. package/dist/components/icons/CloseSidebarIcon.d.ts +2 -0
  22. package/dist/components/icons/CloseSidebarMidIcon.d.ts +1 -0
  23. package/dist/components/icons/ExpandIcon.d.ts +3 -0
  24. package/dist/components/icons/SendArrowIcon.d.ts +4 -0
  25. package/dist/components/icons/SendArrowIconGreen.d.ts +4 -0
  26. package/dist/components/icons/XIcon.d.ts +3 -0
  27. package/dist/components/index.d.ts +3 -0
  28. package/dist/index.cjs +30 -0
  29. package/dist/index.d.ts +3 -0
  30. package/dist/index.esm.js +3671 -0
  31. package/dist/material-theme.d.ts +416 -0
  32. package/dist/stories/Buttons.d.ts +1 -0
  33. package/dist/stories/Checkbox.d.ts +1 -0
  34. package/dist/stories/ColorPalette.d.ts +1 -0
  35. package/dist/stories/Dropdowns.d.ts +1 -0
  36. package/dist/stories/InputPrompt.d.ts +1 -0
  37. package/dist/stories/Sidebar.d.ts +1 -0
  38. package/dist/stories/Typography.d.ts +1 -0
  39. package/dist/tailwind-theme.d.ts +197 -0
  40. package/dist/utils/cn.d.ts +7 -0
  41. package/package.json +88 -0
  42. package/src/components/HelloWorld.tsx +3 -0
  43. package/src/components/InputPrompt.tsx +96 -0
  44. package/src/components/ModalPanel.tsx +31 -0
  45. package/src/components/PdfViewer/ImageViewer.tsx +167 -0
  46. package/src/components/PdfViewer/PdfViewer.tsx +53 -0
  47. package/src/components/PdfViewer/index.ts +2 -0
  48. package/src/components/PdfViewer/usePageManagement.ts +14 -0
  49. package/src/components/PdfViewer/usePanning.ts +42 -0
  50. package/src/components/PdfViewer/useRefDimensions.ts +16 -0
  51. package/src/components/PdfViewer/useRotation.ts +13 -0
  52. package/src/components/PdfViewer/useZoom.ts +26 -0
  53. package/src/components/Sidebar/Button.tsx +20 -0
  54. package/src/components/Sidebar/Container.tsx +32 -0
  55. package/src/components/Sidebar/Item.tsx +39 -0
  56. package/src/components/Sidebar/Layout.tsx +23 -0
  57. package/src/components/Sidebar/Provider.tsx +47 -0
  58. package/src/components/Sidebar/SecondaryItem.tsx +39 -0
  59. package/src/components/Sidebar/ToggleCollapseButton.tsx +24 -0
  60. package/src/components/Sidebar/index.ts +7 -0
  61. package/src/components/icons/CloseSidebarIcon.tsx +19 -0
  62. package/src/components/icons/CloseSidebarMidIcon.tsx +19 -0
  63. package/src/components/icons/ExpandIcon.tsx +21 -0
  64. package/src/components/icons/SendArrowIcon.tsx +23 -0
  65. package/src/components/icons/SendArrowIconGreen.tsx +17 -0
  66. package/src/components/icons/XIcon.tsx +21 -0
  67. package/src/components/index.ts +3 -0
  68. package/src/index.ts +4 -0
  69. package/src/material-theme.ts +447 -0
  70. package/src/stories/Buttons.stories.tsx +15 -0
  71. package/src/stories/Buttons.tsx +52 -0
  72. package/src/stories/Checkbox.stories.tsx +15 -0
  73. package/src/stories/Checkbox.tsx +56 -0
  74. package/src/stories/ColorPalette.stories.tsx +15 -0
  75. package/src/stories/ColorPalette.tsx +72 -0
  76. package/src/stories/Dropdowns.stories.tsx +15 -0
  77. package/src/stories/Dropdowns.tsx +52 -0
  78. package/src/stories/InputPrompt.stories.tsx +15 -0
  79. package/src/stories/InputPrompt.tsx +63 -0
  80. package/src/stories/PDFViewer.stories.tsx +37 -0
  81. package/src/stories/Sidebar.stories.tsx +15 -0
  82. package/src/stories/Sidebar.tsx +94 -0
  83. package/src/stories/Typography.stories.tsx +15 -0
  84. package/src/stories/Typography.tsx +110 -0
  85. package/src/style.css +2 -0
  86. package/src/tailwind-theme.ts +219 -0
  87. package/src/utils/cn.ts +11 -0
@@ -0,0 +1,416 @@
1
+ export declare const materialTheme: {
2
+ button: {
3
+ defaultProps: {
4
+ className: string;
5
+ ripple: boolean;
6
+ color: string;
7
+ };
8
+ styles: {
9
+ sizes: {
10
+ md: {
11
+ fontSize: string;
12
+ className: string;
13
+ };
14
+ };
15
+ variants: {
16
+ filled: {
17
+ blue: {
18
+ color: string;
19
+ background: string;
20
+ hover: string;
21
+ disabled: string;
22
+ };
23
+ green: {
24
+ color: string;
25
+ background: string;
26
+ hover: string;
27
+ disabled: string;
28
+ };
29
+ red: {
30
+ color: string;
31
+ background: string;
32
+ hover: string;
33
+ disabled: string;
34
+ };
35
+ gray: {
36
+ color: string;
37
+ background: string;
38
+ hover: string;
39
+ disabled: string;
40
+ };
41
+ orange: {
42
+ color: string;
43
+ background: string;
44
+ hover: string;
45
+ disabled: string;
46
+ };
47
+ };
48
+ outlined: {
49
+ gray: {
50
+ background: string;
51
+ color: string;
52
+ hover: string;
53
+ disabled: string;
54
+ };
55
+ };
56
+ text: {
57
+ green: {
58
+ color: string;
59
+ hover: string;
60
+ disabled: string;
61
+ };
62
+ gray: {
63
+ color: string;
64
+ hover: string;
65
+ disabled: string;
66
+ };
67
+ };
68
+ };
69
+ };
70
+ };
71
+ iconButton: {
72
+ defaultProps: {
73
+ className: string;
74
+ ripple: boolean;
75
+ color: string;
76
+ };
77
+ styles: {
78
+ sizes: {
79
+ md: {
80
+ fontSize: string;
81
+ className: string;
82
+ };
83
+ };
84
+ variants: {
85
+ filled: {
86
+ blue: {
87
+ color: string;
88
+ background: string;
89
+ hover: string;
90
+ disabled: string;
91
+ };
92
+ green: {
93
+ color: string;
94
+ background: string;
95
+ hover: string;
96
+ disabled: string;
97
+ };
98
+ red: {
99
+ color: string;
100
+ background: string;
101
+ hover: string;
102
+ disabled: string;
103
+ };
104
+ gray: {
105
+ color: string;
106
+ background: string;
107
+ hover: string;
108
+ disabled: string;
109
+ };
110
+ orange: {
111
+ color: string;
112
+ background: string;
113
+ hover: string;
114
+ disabled: string;
115
+ };
116
+ };
117
+ outlined: {
118
+ gray: {
119
+ background: string;
120
+ color: string;
121
+ hover: string;
122
+ disabled: string;
123
+ };
124
+ };
125
+ text: {
126
+ green: {
127
+ color: string;
128
+ hover: string;
129
+ disabled: string;
130
+ };
131
+ gray: {
132
+ color: string;
133
+ hover: string;
134
+ disabled: string;
135
+ };
136
+ };
137
+ };
138
+ };
139
+ };
140
+ progress: {
141
+ defaultProps: {
142
+ className: string;
143
+ barProps: {
144
+ className: string;
145
+ };
146
+ };
147
+ styles: {
148
+ sizes: {
149
+ sm: {
150
+ container: {
151
+ initial: {
152
+ height: string;
153
+ };
154
+ };
155
+ };
156
+ };
157
+ };
158
+ };
159
+ menu: {
160
+ styles: {
161
+ base: {
162
+ menu: {
163
+ border: string;
164
+ borderRadius: string;
165
+ boxShadow: string;
166
+ p: string;
167
+ };
168
+ item: {
169
+ initial: {
170
+ display: string;
171
+ bg: string;
172
+ p: string;
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
178
+ dialog: {
179
+ defaultProps: {
180
+ size: string;
181
+ dismiss: {};
182
+ animate: {
183
+ mount: {};
184
+ unmount: {};
185
+ };
186
+ className: string;
187
+ };
188
+ valid: {
189
+ sizes: string[];
190
+ };
191
+ styles: {
192
+ base: {
193
+ backdrop: {
194
+ width: string;
195
+ display: string;
196
+ placeItems: string;
197
+ position: string;
198
+ top: number;
199
+ left: number;
200
+ height: string;
201
+ backgroundColor: string;
202
+ backgroundOpacity: string;
203
+ backdropFilter: string;
204
+ };
205
+ container: {
206
+ height: string;
207
+ position: string;
208
+ bg: string;
209
+ m: string;
210
+ borderRadius: string;
211
+ boxShadow: string;
212
+ fontSmoothing: string;
213
+ };
214
+ };
215
+ sizes: {
216
+ sm: {
217
+ maxWidth: string;
218
+ };
219
+ lg: {
220
+ maxWidth: string;
221
+ };
222
+ };
223
+ };
224
+ };
225
+ dialogHeader: {
226
+ styles: {
227
+ base: {
228
+ display: string;
229
+ };
230
+ };
231
+ };
232
+ checkbox: {
233
+ defaultProps: {
234
+ color: string;
235
+ ripple: boolean;
236
+ };
237
+ valid: {
238
+ colors: string[];
239
+ };
240
+ styles: {
241
+ base: {
242
+ root: {
243
+ display: string;
244
+ alignItems: string;
245
+ };
246
+ container: {
247
+ position: string;
248
+ display: string;
249
+ alignItems: string;
250
+ cursor: string;
251
+ p: string;
252
+ borderRadius: string;
253
+ };
254
+ input: {
255
+ peer: string;
256
+ position: string;
257
+ appearance: string;
258
+ width: string;
259
+ height: string;
260
+ borderWidth: string;
261
+ borderRadius: string;
262
+ borderColor: string;
263
+ cursor: string;
264
+ transition: string;
265
+ before: {
266
+ content: string;
267
+ display: string;
268
+ bg: string;
269
+ width: string;
270
+ height: string;
271
+ borderRadius: string;
272
+ position: string;
273
+ opacity: string;
274
+ };
275
+ };
276
+ label: {
277
+ color: string;
278
+ fontWeight: string;
279
+ userSelect: string;
280
+ cursor: string;
281
+ mt: string;
282
+ px: string;
283
+ };
284
+ icon: {
285
+ display: string;
286
+ alignItems: string;
287
+ justifyContent: string;
288
+ width: string;
289
+ height: string;
290
+ color: string;
291
+ position: string;
292
+ pointerEvents: string;
293
+ opacity: string;
294
+ transition: string;
295
+ };
296
+ disabled: {
297
+ opacity: string;
298
+ pointerEvents: string;
299
+ };
300
+ };
301
+ colors: {
302
+ custom: {
303
+ border: string;
304
+ };
305
+ };
306
+ };
307
+ };
308
+ popover: {
309
+ defaultProps: {
310
+ placement: string;
311
+ offset: number;
312
+ dismiss: {};
313
+ animate: {
314
+ unmount: {};
315
+ mount: {};
316
+ };
317
+ className: string;
318
+ };
319
+ styles: {
320
+ base: {
321
+ bg: string;
322
+ p: string;
323
+ borderWidth: string;
324
+ borderColor: string;
325
+ borderRadius: string;
326
+ boxShadow: string;
327
+ fontSize: string;
328
+ fontWeight: string;
329
+ color: string;
330
+ outline: string;
331
+ overflowWrap: string;
332
+ whiteSpace: string;
333
+ };
334
+ };
335
+ };
336
+ switch: {
337
+ defaultProps: {
338
+ color: string;
339
+ label: string;
340
+ ripple: boolean;
341
+ className: string;
342
+ disabled: boolean;
343
+ containerProps: undefined;
344
+ labelProps: undefined;
345
+ circleProps: undefined;
346
+ };
347
+ valid: {
348
+ colors: string[];
349
+ };
350
+ styles: {
351
+ base: {
352
+ input: {
353
+ background: string;
354
+ };
355
+ circle: {
356
+ borderColor: string;
357
+ borderRadius: string;
358
+ boxShadow: string;
359
+ position: string;
360
+ top: string;
361
+ left: string;
362
+ transform: string;
363
+ transition: string;
364
+ cursor: string;
365
+ before: {
366
+ content: string;
367
+ display: string;
368
+ bg: string;
369
+ width: string;
370
+ height: string;
371
+ borderRadius: string;
372
+ position: string;
373
+ top: string;
374
+ left: string;
375
+ transform: string;
376
+ transition: string;
377
+ opacity: string;
378
+ };
379
+ };
380
+ ripple: {
381
+ display: string;
382
+ top: string;
383
+ left: string;
384
+ transform: string;
385
+ p: string;
386
+ borderRadius: string;
387
+ };
388
+ label: {
389
+ color: string;
390
+ fontWeight: string;
391
+ userSelect: string;
392
+ cursor: string;
393
+ mt: string;
394
+ ml: string;
395
+ mb: string;
396
+ };
397
+ disabled: {
398
+ opacity: string;
399
+ pointerEvents: string;
400
+ };
401
+ };
402
+ colors: {
403
+ gray: {
404
+ input: string;
405
+ circle: string;
406
+ before: string;
407
+ };
408
+ green: {
409
+ input: string;
410
+ circle: string;
411
+ before: string;
412
+ };
413
+ };
414
+ };
415
+ };
416
+ };
@@ -0,0 +1 @@
1
+ export declare const Buttons: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const CheckboxItem: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const ColorPalette: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const Dropdowns: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const InputPrompts: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const SidebarScreen: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const Typography: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,197 @@
1
+ export declare const theme: {
2
+ fontFamily: {
3
+ sans: string[];
4
+ mono: string[];
5
+ signature: string[];
6
+ };
7
+ fontSize: {
8
+ subheader: (string | {
9
+ lineHeight: string;
10
+ letterSpacing: string;
11
+ })[];
12
+ "subheader-em": (string | {
13
+ lineHeight: string;
14
+ letterSpacing: string;
15
+ fontWeight: string;
16
+ })[];
17
+ body: (string | {
18
+ lineHeight: string;
19
+ letterSpacing: string;
20
+ })[];
21
+ "body-em": (string | {
22
+ lineHeight: string;
23
+ letterSpacing: string;
24
+ fontWeight: string;
25
+ })[];
26
+ "caption-1": (string | {
27
+ lineHeight: string;
28
+ })[];
29
+ "caption-1-em": (string | {
30
+ lineHeight: string;
31
+ fontWeight: string;
32
+ })[];
33
+ "caption-2": (string | {
34
+ lineHeight: string;
35
+ })[];
36
+ "caption-2-em": (string | {
37
+ lineHeight: string;
38
+ fontWeight: string;
39
+ })[];
40
+ footnote: (string | {
41
+ lineHeight: string;
42
+ })[];
43
+ "footnote-em": (string | {
44
+ lineHeight: string;
45
+ fontWeight: string;
46
+ })[];
47
+ };
48
+ width: {
49
+ authPageWidth: string;
50
+ };
51
+ keyframes: {
52
+ "accordion-down": {
53
+ from: {
54
+ height: number;
55
+ };
56
+ to: {
57
+ height: string;
58
+ };
59
+ };
60
+ "accordion-up": {
61
+ from: {
62
+ height: string;
63
+ };
64
+ to: {
65
+ height: number;
66
+ };
67
+ };
68
+ };
69
+ animation: {
70
+ "accordion-down": string;
71
+ "accordion-up": string;
72
+ };
73
+ colors: {
74
+ gray: {
75
+ 50: string;
76
+ 100: string;
77
+ 200: string;
78
+ 300: string;
79
+ 400: string;
80
+ 500: string;
81
+ 600: string;
82
+ 700: string;
83
+ 800: string;
84
+ 900: string;
85
+ };
86
+ green: {
87
+ 50: string;
88
+ 100: string;
89
+ 200: string;
90
+ 300: string;
91
+ 400: string;
92
+ 500: string;
93
+ 600: string;
94
+ 700: string;
95
+ 800: string;
96
+ 900: string;
97
+ };
98
+ blue: {
99
+ 50: string;
100
+ 100: string;
101
+ 200: string;
102
+ 300: string;
103
+ 400: string;
104
+ 500: string;
105
+ 600: string;
106
+ 700: string;
107
+ 800: string;
108
+ 900: string;
109
+ };
110
+ red: {
111
+ 50: string;
112
+ 100: string;
113
+ 200: string;
114
+ 300: string;
115
+ 400: string;
116
+ 500: string;
117
+ 600: string;
118
+ 700: string;
119
+ 800: string;
120
+ 900: string;
121
+ };
122
+ orange: {
123
+ 50: string;
124
+ 100: string;
125
+ 200: string;
126
+ 300: string;
127
+ 400: string;
128
+ 500: string;
129
+ 600: string;
130
+ 700: string;
131
+ 800: string;
132
+ 900: string;
133
+ };
134
+ "brand-purple": string;
135
+ presentation: string;
136
+ "text-primary": string;
137
+ "text-secondary": string;
138
+ "text-secondary-alt": string;
139
+ "text-tertiary": string;
140
+ "ring-primary": string;
141
+ "header-primary": string;
142
+ "header-hover": string;
143
+ "header-button-hover": string;
144
+ "surface-active": string;
145
+ "surface-active-alt": string;
146
+ "surface-hover": string;
147
+ "surface-primary": string;
148
+ "surface-primary-alt": string;
149
+ "surface-primary-contrast": string;
150
+ "surface-secondary": string;
151
+ "surface-secondary-alt": string;
152
+ "surface-tertiary": string;
153
+ "surface-tertiary-alt": string;
154
+ "surface-dialog": string;
155
+ "surface-submit": string;
156
+ "border-light": string;
157
+ "border-medium": string;
158
+ "border-medium-alt": string;
159
+ "border-heavy": string;
160
+ "border-xheavy": string;
161
+ border: string;
162
+ input: string;
163
+ "switch-unchecked": string;
164
+ ring: string;
165
+ background: string;
166
+ foreground: string;
167
+ primary: {
168
+ DEFAULT: string;
169
+ foreground: string;
170
+ };
171
+ secondary: {
172
+ DEFAULT: string;
173
+ foreground: string;
174
+ };
175
+ destructive: {
176
+ DEFAULT: string;
177
+ foreground: string;
178
+ };
179
+ muted: {
180
+ DEFAULT: string;
181
+ foreground: string;
182
+ };
183
+ accent: {
184
+ DEFAULT: string;
185
+ foreground: string;
186
+ };
187
+ card: {
188
+ DEFAULT: string;
189
+ foreground: string;
190
+ };
191
+ };
192
+ borderRadius: {
193
+ lg: string;
194
+ md: string;
195
+ sm: string;
196
+ };
197
+ };
@@ -0,0 +1,7 @@
1
+ import { ClassValue } from 'clsx';
2
+ /**
3
+ * Merges the tailwind clases (using twMerge). Conditionally removes false values
4
+ * @param inputs The tailwind classes to merge
5
+ * @returns className string to apply to an element or HOC
6
+ */
7
+ export declare function cn(...inputs: ClassValue[]): string;