@paperless/core 1.42.2 → 1.42.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 (109) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/cjs/index.cjs.js +106 -105
  5. package/dist/cjs/index.cjs.js.map +1 -1
  6. package/dist/collection/index.js +1 -2
  7. package/dist/collection/index.js.map +1 -1
  8. package/dist/collection/tailwind/index.js +2 -0
  9. package/dist/collection/tailwind/index.js.map +1 -0
  10. package/dist/collection/tailwind/paperless.js +40 -0
  11. package/dist/collection/tailwind/paperless.js.map +1 -0
  12. package/dist/collection/tailwind/plugins/hover.js +2 -3
  13. package/dist/collection/tailwind/plugins/hover.js.map +1 -1
  14. package/dist/collection/tailwind/plugins/safe-area.js +2 -4
  15. package/dist/collection/tailwind/plugins/safe-area.js.map +1 -1
  16. package/dist/collection/tailwind/theme/animation.js.map +1 -0
  17. package/dist/collection/tailwind/theme/backdrop-blur.js.map +1 -0
  18. package/dist/collection/tailwind/{border-radius.js → theme/border-radius.js} +1 -1
  19. package/dist/collection/tailwind/theme/border-radius.js.map +1 -0
  20. package/dist/collection/tailwind/theme/colors.js.map +1 -0
  21. package/dist/collection/tailwind/theme/height.js.map +1 -0
  22. package/dist/collection/tailwind/theme/rotate.js.map +1 -0
  23. package/dist/collection/tailwind/theme/scale.js.map +1 -0
  24. package/dist/collection/tailwind/theme/screens.js.map +1 -0
  25. package/dist/collection/tailwind/{shadows.js → theme/shadows.js} +5 -5
  26. package/dist/collection/tailwind/theme/shadows.js.map +1 -0
  27. package/dist/collection/tailwind/theme/spacing.js.map +1 -0
  28. package/dist/collection/tailwind/theme/typography.js.map +1 -0
  29. package/dist/collection/tailwind/theme/width.js.map +1 -0
  30. package/dist/collection/tailwind/theme/z-index.js +14 -0
  31. package/dist/collection/tailwind/theme/z-index.js.map +1 -0
  32. package/dist/collection/tailwind.config.js +2 -27
  33. package/dist/collection/tailwind.config.js.map +1 -1
  34. package/dist/collection/utils/screens.js +1 -1
  35. package/dist/collection/utils/screens.js.map +1 -1
  36. package/dist/components/index.js +106 -105
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/esm/index.js +106 -105
  39. package/dist/esm/index.js.map +1 -1
  40. package/dist/index.html +1 -1
  41. package/dist/paperless/index.esm.js +1 -1
  42. package/dist/paperless/index.esm.js.map +1 -1
  43. package/dist/sw.js +1 -1
  44. package/dist/sw.js.map +1 -1
  45. package/dist/tailwind/index.ts +1 -0
  46. package/dist/tailwind/paperless.ts +54 -0
  47. package/dist/tailwind/plugins/hover.ts +2 -4
  48. package/dist/tailwind/plugins/safe-area.ts +2 -5
  49. package/dist/tailwind/{border-radius.ts → theme/border-radius.ts} +1 -1
  50. package/dist/tailwind/{shadows.ts → theme/shadows.ts} +5 -5
  51. package/dist/tailwind/theme/z-index.ts +19 -0
  52. package/dist/tailwind.config.ts +2 -37
  53. package/dist/types/index.d.ts +1 -312
  54. package/dist/types/tailwind/index.d.ts +1 -0
  55. package/dist/types/tailwind/paperless.d.ts +4 -0
  56. package/dist/types/tailwind/plugins/hover.d.ts +3 -4
  57. package/dist/types/tailwind/plugins/safe-area.d.ts +3 -4
  58. package/dist/types/tailwind/{border-radius.d.ts → theme/border-radius.d.ts} +1 -1
  59. package/dist/types/tailwind/{shadows.d.ts → theme/shadows.d.ts} +5 -5
  60. package/dist/types/tailwind/theme/z-index.d.ts +14 -0
  61. package/dist/types/tailwind.config.d.ts +0 -308
  62. package/dist/types/utils/screens.d.ts +1 -1
  63. package/package.json +1 -1
  64. package/dist/collection/tailwind/animation.js.map +0 -1
  65. package/dist/collection/tailwind/backdrop-blur.js.map +0 -1
  66. package/dist/collection/tailwind/border-radius.js.map +0 -1
  67. package/dist/collection/tailwind/colors.js.map +0 -1
  68. package/dist/collection/tailwind/height.js.map +0 -1
  69. package/dist/collection/tailwind/rotate.js.map +0 -1
  70. package/dist/collection/tailwind/scale.js.map +0 -1
  71. package/dist/collection/tailwind/screens.js.map +0 -1
  72. package/dist/collection/tailwind/shadows.js.map +0 -1
  73. package/dist/collection/tailwind/spacing.js.map +0 -1
  74. package/dist/collection/tailwind/typography.js.map +0 -1
  75. package/dist/collection/tailwind/width.js.map +0 -1
  76. package/dist/collection/tailwind/z-index.js +0 -14
  77. package/dist/collection/tailwind/z-index.js.map +0 -1
  78. package/dist/tailwind/z-index.ts +0 -19
  79. package/dist/types/tailwind/z-index.d.ts +0 -14
  80. /package/dist/collection/tailwind/{animation.js → theme/animation.js} +0 -0
  81. /package/dist/collection/tailwind/{backdrop-blur.js → theme/backdrop-blur.js} +0 -0
  82. /package/dist/collection/tailwind/{colors.js → theme/colors.js} +0 -0
  83. /package/dist/collection/tailwind/{height.js → theme/height.js} +0 -0
  84. /package/dist/collection/tailwind/{rotate.js → theme/rotate.js} +0 -0
  85. /package/dist/collection/tailwind/{scale.js → theme/scale.js} +0 -0
  86. /package/dist/collection/tailwind/{screens.js → theme/screens.js} +0 -0
  87. /package/dist/collection/tailwind/{spacing.js → theme/spacing.js} +0 -0
  88. /package/dist/collection/tailwind/{typography.js → theme/typography.js} +0 -0
  89. /package/dist/collection/tailwind/{width.js → theme/width.js} +0 -0
  90. /package/dist/tailwind/{animation.ts → theme/animation.ts} +0 -0
  91. /package/dist/tailwind/{backdrop-blur.ts → theme/backdrop-blur.ts} +0 -0
  92. /package/dist/tailwind/{colors.ts → theme/colors.ts} +0 -0
  93. /package/dist/tailwind/{height.ts → theme/height.ts} +0 -0
  94. /package/dist/tailwind/{rotate.ts → theme/rotate.ts} +0 -0
  95. /package/dist/tailwind/{scale.ts → theme/scale.ts} +0 -0
  96. /package/dist/tailwind/{screens.ts → theme/screens.ts} +0 -0
  97. /package/dist/tailwind/{spacing.ts → theme/spacing.ts} +0 -0
  98. /package/dist/tailwind/{typography.ts → theme/typography.ts} +0 -0
  99. /package/dist/tailwind/{width.ts → theme/width.ts} +0 -0
  100. /package/dist/types/tailwind/{animation.d.ts → theme/animation.d.ts} +0 -0
  101. /package/dist/types/tailwind/{backdrop-blur.d.ts → theme/backdrop-blur.d.ts} +0 -0
  102. /package/dist/types/tailwind/{colors.d.ts → theme/colors.d.ts} +0 -0
  103. /package/dist/types/tailwind/{height.d.ts → theme/height.d.ts} +0 -0
  104. /package/dist/types/tailwind/{rotate.d.ts → theme/rotate.d.ts} +0 -0
  105. /package/dist/types/tailwind/{scale.d.ts → theme/scale.d.ts} +0 -0
  106. /package/dist/types/tailwind/{screens.d.ts → theme/screens.d.ts} +0 -0
  107. /package/dist/types/tailwind/{spacing.d.ts → theme/spacing.d.ts} +0 -0
  108. /package/dist/types/tailwind/{typography.d.ts → theme/typography.d.ts} +0 -0
  109. /package/dist/types/tailwind/{width.d.ts → theme/width.d.ts} +0 -0
@@ -0,0 +1,54 @@
1
+ import plugin from 'tailwindcss/plugin';
2
+
3
+ import colors from './theme/colors';
4
+ import shadows from './theme/shadows';
5
+ import borderRadius from './theme/border-radius';
6
+ import scale from './theme/scale';
7
+ import rotate from './theme/rotate';
8
+ import typeograhpy from './theme/typography';
9
+ import backdropBlur from './theme/backdrop-blur';
10
+ import zIndex from './theme/z-index';
11
+ import animation from './theme/animation';
12
+ import screens from './theme/screens';
13
+ import width from './theme/width';
14
+ import height from './theme/height';
15
+ import spacing from './theme/spacing';
16
+
17
+ import safeArea from './plugins/safe-area';
18
+ import hover from './plugins/hover';
19
+
20
+ export const paperless = plugin(
21
+ (pluginAPI) => {
22
+ safeArea(pluginAPI);
23
+ hover(pluginAPI);
24
+ },
25
+ {
26
+ theme: {
27
+ colors,
28
+ // @ts-ignore
29
+ boxShadow: shadows,
30
+ dropShadow: shadows,
31
+ borderRadius,
32
+ // @ts-ignore
33
+ extend: {
34
+ ...animation,
35
+ scale,
36
+ rotate,
37
+ fontSize: typeograhpy.fontSize,
38
+ lineHeight: typeograhpy.lineHeight,
39
+ backdropBlur,
40
+ zIndex,
41
+ screens,
42
+ width: width.width,
43
+ height: height.height,
44
+ spacing,
45
+ },
46
+ },
47
+ plugins: [
48
+ require('@tailwindcss/aspect-ratio'),
49
+ require('tailwind-scrollbar-hide'),
50
+ safeArea,
51
+ hover,
52
+ ],
53
+ }
54
+ );
@@ -1,6 +1,4 @@
1
- import plugin from 'tailwindcss/plugin';
2
-
3
- const hover = plugin(({ addVariant }) => {
1
+ const hover = ({ addVariant }) => {
4
2
  // Hover media queries
5
3
  addVariant('has-hover', '@media (hover: hover)');
6
4
  addVariant('no-hover', '@media (hover: none)');
@@ -27,6 +25,6 @@ const hover = plugin(({ addVariant }) => {
27
25
  '@media (hover: hover) { :merge(.peer):hover & }',
28
26
  '@media (hover: none)',
29
27
  ]);
30
- });
28
+ };
31
29
 
32
30
  export default hover;
@@ -1,7 +1,4 @@
1
- // eslint-disable-next-line unicorn/prefer-module
2
- import plugin from 'tailwindcss/plugin';
3
-
4
- const safeArea = plugin(({ addUtilities }) => {
1
+ const safeArea = ({ addUtilities }) => {
5
2
  const utilities = {
6
3
  '.m-safe': {
7
4
  marginTop: 'env(safe-area-inset-top)',
@@ -92,7 +89,7 @@ const safeArea = plugin(({ addUtilities }) => {
92
89
  };
93
90
 
94
91
  addUtilities(utilities);
95
- });
92
+ };
96
93
 
97
94
  // eslint-disable-next-line unicorn/prefer-module
98
95
  export default safeArea;
@@ -6,6 +6,6 @@ export default {
6
6
  DEFAULT: '0.25rem',
7
7
  medium: '0.25rem',
8
8
  small: '0.125rem',
9
- none: 0,
9
+ none: '0',
10
10
  round: '100%',
11
11
  };
@@ -1,12 +1,12 @@
1
1
  export default {
2
- 1: '0px 0.0625rem 0.05rem rgba(0,0,0, 0.5)',
3
- 2: '0px 0.0625rem 0.1125rem rgba(0,0,0, 0.65)',
4
- 3: '0px 0.0625rem 0.125rem rgba(0,0,0, 0.65)',
5
- 4: [
2
+ '1': '0px 0.0625rem 0.05rem rgba(0,0,0, 0.5)',
3
+ '2': '0px 0.0625rem 0.1125rem rgba(0,0,0, 0.65)',
4
+ '3': '0px 0.0625rem 0.125rem rgba(0,0,0, 0.65)',
5
+ '4': [
6
6
  '0px 0.3125rem 1rem rgba(0,24,98, 0.08)',
7
7
  '0px 0.0625rem 0.1875rem rgba(0,24,98, 0.13)',
8
8
  ],
9
- 5: '0px 0.1875rem 1rem rgba(0,24,98, 0.3)',
9
+ '5': '0px 0.1875rem 1rem rgba(0,24,98, 0.3)',
10
10
  transparent: 'transparent',
11
11
  'button-primary-hover': '0px 2px 4px rgba(44,75,169, 0.4)',
12
12
  'button-secondary-hover': '0px 2px 4px rgba(176,178,203, 0.4)',
@@ -0,0 +1,19 @@
1
+ export default {
2
+ 'floating-menu': '190',
3
+ dropdown: '200',
4
+
5
+ 'navbar-topbar': '280',
6
+ 'navbar-backdrop': '290',
7
+ navbar: '300',
8
+
9
+ backdrop: '490',
10
+
11
+ drawer: '500',
12
+ 'drawer-header': '501',
13
+
14
+ modal: '600',
15
+
16
+ tooltip: '601',
17
+
18
+ toast: '700',
19
+ };
@@ -1,45 +1,10 @@
1
- import colors from './tailwind/colors';
2
- import shadows from './tailwind/shadows';
3
- import borderRadius from './tailwind/border-radius';
4
- import scale from './tailwind/scale';
5
- import rotate from './tailwind/rotate';
6
- import typeograhpy from './tailwind/typography';
7
- import backdropBlur from './tailwind/backdrop-blur';
8
- import zIndex from './tailwind/z-index';
9
- import animation from './tailwind/animation';
10
- import screens from './tailwind/screens';
11
- import width from './tailwind/width';
12
- import height from './tailwind/height';
13
- import spacing from './tailwind/spacing';
14
-
15
- import safeArea from './tailwind/plugins/safe-area';
16
- import hover from './tailwind/plugins/hover';
1
+ import { paperless } from './tailwind';
17
2
 
18
3
  export default {
19
4
  important: true,
20
- theme: {
21
- colors,
22
- boxShadow: shadows,
23
- dropShadow: shadows,
24
- borderRadius,
25
- extend: {
26
- ...animation,
27
- scale,
28
- rotate,
29
- fontSize: typeograhpy.fontSize,
30
- lineHeight: typeograhpy.lineHeight,
31
- backdropBlur,
32
- zIndex,
33
- screens,
34
- width: width.width,
35
- height: height.height,
36
- spacing,
37
- },
38
- },
39
5
  plugins: [
40
6
  require('@tailwindcss/aspect-ratio'),
41
7
  require('tailwind-scrollbar-hide'),
42
- safeArea,
43
- hover,
8
+ paperless,
44
9
  ],
45
10
  };
@@ -1,315 +1,4 @@
1
1
  export { Components, JSX } from './components';
2
2
  export * from './types';
3
3
  export * from './utils';
4
- export declare const tailwind: {
5
- important: boolean;
6
- theme: {
7
- colors: {
8
- transparent: string;
9
- current: string;
10
- indigo: {
11
- dark: string;
12
- DEFAULT: string;
13
- light: string;
14
- };
15
- sky: {
16
- dark: string;
17
- DEFAULT: string;
18
- light: string;
19
- vague: string;
20
- };
21
- mystic: {
22
- blank: string;
23
- dark: string;
24
- DEFAULT: string;
25
- light: string;
26
- medium: string;
27
- };
28
- redberry: {
29
- dark: string;
30
- DEFAULT: string;
31
- light: string;
32
- medium: string;
33
- };
34
- storm: {
35
- dark: string;
36
- DEFAULT: string;
37
- light: string;
38
- medium: string;
39
- vague: string;
40
- };
41
- negative: {
42
- dark: string;
43
- DEFAULT: string;
44
- light: string;
45
- };
46
- positive: {
47
- dark: string;
48
- DEFAULT: string;
49
- light: string;
50
- };
51
- unbiased: {
52
- dark: string;
53
- DEFAULT: string;
54
- light: string;
55
- };
56
- white: string;
57
- black: string;
58
- };
59
- boxShadow: {
60
- 1: string;
61
- 2: string;
62
- 3: string;
63
- 4: string[];
64
- 5: string;
65
- transparent: string;
66
- 'button-primary-hover': string;
67
- 'button-secondary-hover': string;
68
- };
69
- dropShadow: {
70
- 1: string;
71
- 2: string;
72
- 3: string;
73
- 4: string[];
74
- 5: string;
75
- transparent: string;
76
- 'button-primary-hover': string;
77
- 'button-secondary-hover': string;
78
- };
79
- borderRadius: {
80
- xxxlarge: string;
81
- xxlarge: string;
82
- xlarge: string;
83
- large: string;
84
- DEFAULT: string;
85
- medium: string;
86
- small: string;
87
- none: number;
88
- round: string;
89
- };
90
- extend: {
91
- scale: {
92
- flip: string;
93
- };
94
- rotate: {};
95
- fontSize: {
96
- h1: string;
97
- h2: string;
98
- h3: string;
99
- h4: string;
100
- h5: string;
101
- body: string;
102
- 'body-2': string;
103
- xxs: string;
104
- };
105
- lineHeight: {
106
- h1: string;
107
- h2: string;
108
- h3: string;
109
- h4: string;
110
- h5: string;
111
- body: string;
112
- 'body-2': string;
113
- };
114
- backdropBlur: {
115
- xs: string;
116
- };
117
- zIndex: {
118
- 'floating-menu': number;
119
- dropdown: number;
120
- 'navbar-topbar': number;
121
- 'navbar-backdrop': number;
122
- navbar: number;
123
- backdrop: number;
124
- drawer: number;
125
- 'drawer-header': number;
126
- modal: number;
127
- tooltip: number;
128
- toast: number;
129
- };
130
- screens: {
131
- tablet: string;
132
- 'desktop-xs': string;
133
- 'desktop-sm': string;
134
- desktop: string;
135
- 'desktop-lg': string;
136
- 'desktop-xl': string;
137
- 'layout-1280': string;
138
- 'layout-1440': string;
139
- 'layout-1536': string;
140
- 'layout-1680': string;
141
- 'layout-1920': string;
142
- 'layout-2560': string;
143
- };
144
- width: {
145
- unset: string;
146
- 'content-mobile': string;
147
- 'content-1280': string;
148
- 'content-1440': string;
149
- 'content-1536': string;
150
- 'content-1680': string;
151
- 'sidebar-desktop-login': string;
152
- 'content-desktop-login': string;
153
- };
154
- height: {
155
- unset: string;
156
- };
157
- spacing: {
158
- 'content-mobile-x': string;
159
- 'content-mobile-y': string;
160
- 'content-desktop-x': string;
161
- 'content-desktop-y': string;
162
- 18: string;
163
- };
164
- animation: {
165
- 'fade-in': string;
166
- 'fade-out': string;
167
- 'slide-in-right': string;
168
- 'slide-in-left': string;
169
- 'slide-in-top': string;
170
- 'slide-in-bottom': string;
171
- 'slide-in-right-small': string;
172
- 'slide-in-left-small': string;
173
- 'slide-in-top-small': string;
174
- 'slide-in-bottom-small': string;
175
- 'slide-out-right': string;
176
- 'slide-out-left': string;
177
- 'slide-out-top': string;
178
- 'slide-out-bottom': string;
179
- 'slide-out-top-small': string;
180
- 'slide-out-bottom-small': string;
181
- };
182
- keyframes: {
183
- fadeIn: {
184
- '0%': {
185
- opacity: number;
186
- };
187
- '100%': {
188
- opacity: number;
189
- };
190
- };
191
- fadeOut: {
192
- '0%': {
193
- opacity: number;
194
- };
195
- '100%': {
196
- opacity: number;
197
- };
198
- };
199
- slideInRight: {
200
- '0%': {
201
- transform: string;
202
- };
203
- '100%': {
204
- transform: string;
205
- };
206
- };
207
- slideInLeft: {
208
- '0%': {
209
- transform: string;
210
- };
211
- '100%': {
212
- transform: string;
213
- };
214
- };
215
- slideInTop: {
216
- '0%': {
217
- transform: string;
218
- };
219
- '100%': {
220
- transform: string;
221
- };
222
- };
223
- slideInBottom: {
224
- '0%': {
225
- transform: string;
226
- };
227
- '100%': {
228
- transform: string;
229
- };
230
- };
231
- slideInRightSmall: {
232
- '0%': {
233
- transform: string;
234
- };
235
- '100%': {
236
- transform: string;
237
- };
238
- };
239
- slideInLeftSmall: {
240
- '0%': {
241
- transform: string;
242
- };
243
- '100%': {
244
- transform: string;
245
- };
246
- };
247
- slideInTopSmall: {
248
- '0%': {
249
- transform: string;
250
- };
251
- '100%': {
252
- transform: string;
253
- };
254
- };
255
- slideInBottomSmall: {
256
- '0%': {
257
- transform: string;
258
- };
259
- '100%': {
260
- transform: string;
261
- };
262
- };
263
- slideOutRight: {
264
- '0%': {
265
- transform: string;
266
- };
267
- '100%': {
268
- transform: string;
269
- };
270
- };
271
- slideOutLeft: {
272
- '0%': {
273
- transform: string;
274
- };
275
- '100%': {
276
- transform: string;
277
- };
278
- };
279
- slideOutTop: {
280
- '0%': {
281
- transform: string;
282
- };
283
- '100%': {
284
- transform: string;
285
- };
286
- };
287
- slideOutBottom: {
288
- '0%': {
289
- transform: string;
290
- };
291
- '100%': {
292
- transform: string;
293
- };
294
- };
295
- slideOutTopSmall: {
296
- '0%': {
297
- transform: string;
298
- };
299
- '100%': {
300
- transform: string;
301
- };
302
- };
303
- slideOutBottomSmall: {
304
- '0%': {
305
- transform: string;
306
- };
307
- '100%': {
308
- transform: string;
309
- };
310
- };
311
- };
312
- };
313
- };
314
- plugins: any[];
315
- };
4
+ export * from './tailwind';
@@ -0,0 +1 @@
1
+ export * from './paperless';
@@ -0,0 +1,4 @@
1
+ export declare const paperless: {
2
+ handler: import("tailwindcss/types/config").PluginCreator;
3
+ config?: Partial<import("tailwindcss/types/config").Config>;
4
+ };
@@ -1,5 +1,4 @@
1
- declare const hover: {
2
- handler: import("tailwindcss/types/config").PluginCreator;
3
- config?: Partial<import("tailwindcss/types/config").Config>;
4
- };
1
+ declare const hover: ({ addVariant }: {
2
+ addVariant: any;
3
+ }) => void;
5
4
  export default hover;
@@ -1,5 +1,4 @@
1
- declare const safeArea: {
2
- handler: import("tailwindcss/types/config").PluginCreator;
3
- config?: Partial<import("tailwindcss/types/config").Config>;
4
- };
1
+ declare const safeArea: ({ addUtilities }: {
2
+ addUtilities: any;
3
+ }) => void;
5
4
  export default safeArea;
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  DEFAULT: string;
7
7
  medium: string;
8
8
  small: string;
9
- none: number;
9
+ none: string;
10
10
  round: string;
11
11
  };
12
12
  export default _default;
@@ -1,9 +1,9 @@
1
1
  declare const _default: {
2
- 1: string;
3
- 2: string;
4
- 3: string;
5
- 4: string[];
6
- 5: string;
2
+ '1': string;
3
+ '2': string;
4
+ '3': string;
5
+ '4': string[];
6
+ '5': string;
7
7
  transparent: string;
8
8
  'button-primary-hover': string;
9
9
  'button-secondary-hover': string;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ 'floating-menu': string;
3
+ dropdown: string;
4
+ 'navbar-topbar': string;
5
+ 'navbar-backdrop': string;
6
+ navbar: string;
7
+ backdrop: string;
8
+ drawer: string;
9
+ 'drawer-header': string;
10
+ modal: string;
11
+ tooltip: string;
12
+ toast: string;
13
+ };
14
+ export default _default;