@privyid/persona 0.9.0 → 0.10.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 (53) hide show
  1. package/dist/components/breadcrumbs/Breadcrumb.vue +60 -0
  2. package/dist/components/breadcrumbs/Breadcrumb.vue.d.ts +41 -0
  3. package/dist/components/breadcrumbs/BreadcrumbItem.vue +86 -0
  4. package/dist/components/breadcrumbs/BreadcrumbItem.vue.d.ts +28 -0
  5. package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue +65 -0
  6. package/dist/components/breadcrumbs/BreadcrumbItemDropdown.vue.d.ts +25 -0
  7. package/dist/components/breadcrumbs/index.d.ts +11 -0
  8. package/dist/components/breadcrumbs/index.mjs +3 -0
  9. package/dist/components/button/Button.vue +15 -3
  10. package/dist/components/button/Button.vue.d.ts +11 -1
  11. package/dist/components/button/index.d.ts +1 -0
  12. package/dist/components/camera/Camera.vue +1 -1
  13. package/dist/components/divider/Divider.vue +5 -1
  14. package/dist/components/dropdown/Dropdown.vue +3 -3
  15. package/dist/components/dropdown/Dropdown.vue.d.ts +1 -1
  16. package/dist/components/dropdown/DropdownItem.vue +45 -6
  17. package/dist/components/dropdown/DropdownItem.vue.d.ts +21 -0
  18. package/dist/components/input/Input.vue +3 -3
  19. package/dist/components/input/Input.vue.d.ts +1 -1
  20. package/dist/components/input-file/InputFile.vue +29 -4
  21. package/dist/components/input-file/InputFile.vue.d.ts +17 -2
  22. package/dist/components/modal/Modal.vue +1 -1
  23. package/dist/components/modal/Modal.vue.d.ts +1 -1
  24. package/dist/components/nav/NavItem.vue.d.ts +2 -2
  25. package/dist/components/navbar/Navbar.vue +1 -1
  26. package/dist/components/navbar/NavbarNav.vue +7 -1
  27. package/dist/components/pdf-helipad/PdfHelipad.vue +134 -0
  28. package/dist/components/pdf-helipad/PdfHelipad.vue.d.ts +45 -0
  29. package/dist/components/pdf-helipad/assets/helicopter.svg +1 -0
  30. package/dist/components/pdf-helipad/index.d.ts +7 -0
  31. package/dist/components/pdf-helipad/index.mjs +0 -0
  32. package/dist/components/pdf-helipad/utils/use-drag.d.ts +8 -0
  33. package/dist/components/pdf-helipad/utils/use-drag.mjs +38 -0
  34. package/dist/components/pdf-object/PdfObjects.vue +1 -0
  35. package/dist/components/pdf-object/utils/use-drop.mjs +1 -1
  36. package/dist/components/pdf-text/PdfText.vue +129 -0
  37. package/dist/components/pdf-text/PdfText.vue.d.ts +168 -0
  38. package/dist/components/pdf-text/utils/text-to-image.d.ts +68 -0
  39. package/dist/components/pdf-text/utils/text-to-image.mjs +118 -0
  40. package/dist/components/pdf-viewer/PdfViewer.vue +4 -2
  41. package/dist/components/pdf-viewer/assets/pdf-loading.svg +1 -100
  42. package/dist/components/progress/ProgressItem.vue.d.ts +1 -1
  43. package/dist/components/sidebar/Sidebar.vue +1 -1
  44. package/dist/components/signature-text/SignatureText.vue.d.ts +1 -1
  45. package/dist/components/table/Table.vue +14 -6
  46. package/dist/components/table/Table.vue.d.ts +1 -1
  47. package/dist/components/toggle/Toggle.vue +10 -2
  48. package/dist/components/tour/TourDialog.vue.d.ts +1 -1
  49. package/dist/core/index.d.ts +3 -1
  50. package/dist/core/index.mjs +4 -1
  51. package/dist/module.json +1 -1
  52. package/dist/module.mjs +1 -0
  53. package/package.json +7 -7
@@ -0,0 +1,168 @@
1
+ import { PropType } from 'vue-demi';
2
+ import { ModelModifier } from '../dropzone';
3
+ declare const _default: import("vue-demi").DefineComponent<{
4
+ modelValue: {
5
+ type: (StringConstructor | {
6
+ new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
7
+ prototype: File;
8
+ })[];
9
+ default: string;
10
+ };
11
+ modelModifiers: {
12
+ type: PropType<ModelModifier>;
13
+ default: () => ModelModifier;
14
+ };
15
+ text: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ width: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ height: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ color: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ size: {
32
+ type: NumberConstructor;
33
+ default: number;
34
+ };
35
+ minSize: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ maxSize: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ fixedSize: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ font: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ lineHeight: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ padding: {
56
+ type: NumberConstructor;
57
+ default: number;
58
+ };
59
+ label: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ labelColor: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ labelFont: {
68
+ type: StringConstructor;
69
+ default: any;
70
+ };
71
+ labelSize: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ }, {
76
+ preview: import("vue-demi").Ref<string>;
77
+ }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, {}, string, import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
78
+ modelValue: {
79
+ type: (StringConstructor | {
80
+ new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
81
+ prototype: File;
82
+ })[];
83
+ default: string;
84
+ };
85
+ modelModifiers: {
86
+ type: PropType<ModelModifier>;
87
+ default: () => ModelModifier;
88
+ };
89
+ text: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ width: {
94
+ type: NumberConstructor;
95
+ default: number;
96
+ };
97
+ height: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ color: {
102
+ type: StringConstructor;
103
+ default: string;
104
+ };
105
+ size: {
106
+ type: NumberConstructor;
107
+ default: number;
108
+ };
109
+ minSize: {
110
+ type: NumberConstructor;
111
+ default: number;
112
+ };
113
+ maxSize: {
114
+ type: NumberConstructor;
115
+ default: number;
116
+ };
117
+ fixedSize: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ font: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ lineHeight: {
126
+ type: NumberConstructor;
127
+ default: number;
128
+ };
129
+ padding: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ label: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ labelColor: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ labelFont: {
142
+ type: StringConstructor;
143
+ default: any;
144
+ };
145
+ labelSize: {
146
+ type: NumberConstructor;
147
+ default: number;
148
+ };
149
+ }>>, {
150
+ size: number;
151
+ color: string;
152
+ text: string;
153
+ modelValue: string | File;
154
+ label: string;
155
+ modelModifiers: ModelModifier;
156
+ font: string;
157
+ padding: number;
158
+ lineHeight: number;
159
+ width: number;
160
+ height: number;
161
+ labelColor: string;
162
+ minSize: number;
163
+ maxSize: number;
164
+ fixedSize: boolean;
165
+ labelFont: string;
166
+ labelSize: number;
167
+ }>;
168
+ export default _default;
@@ -0,0 +1,68 @@
1
+ interface GenerateOptions {
2
+ /**
3
+ * Canvas's element
4
+ */
5
+ canvas?: HTMLCanvasElement;
6
+ /**
7
+ * Text to be generated
8
+ */
9
+ text: string;
10
+ /**
11
+ * Image width
12
+ */
13
+ width: number;
14
+ /**
15
+ * Image height
16
+ */
17
+ height: number;
18
+ /**
19
+ * Text color
20
+ */
21
+ color: string;
22
+ /**
23
+ * Text font size
24
+ */
25
+ size: number;
26
+ /**
27
+ * Minimum font size
28
+ */
29
+ minSize: number;
30
+ /**
31
+ * Maximum font size
32
+ */
33
+ maxSize: number;
34
+ /**
35
+ * Autofit mode
36
+ */
37
+ fixedSize: boolean;
38
+ /**
39
+ * Text font family
40
+ */
41
+ font: string;
42
+ /**
43
+ * Text line height
44
+ */
45
+ lineHeight: number;
46
+ /**
47
+ * Text box padding
48
+ */
49
+ padding: number;
50
+ /**
51
+ * Label text
52
+ */
53
+ label?: string;
54
+ /**
55
+ * Label color
56
+ */
57
+ labelColor?: string;
58
+ /**
59
+ * Label font family
60
+ */
61
+ labelFont?: string;
62
+ /**
63
+ * Label font size
64
+ */
65
+ labelSize?: number;
66
+ }
67
+ export default function generate(options: GenerateOptions): Promise<string>;
68
+ export {};
@@ -0,0 +1,118 @@
1
+ import { createCanvas } from "../../signature-draw/utils/canvas.mjs";
2
+ import loadFont from "../../signature-text/utils/load-font.mjs";
3
+ import { clamp } from "lodash-es";
4
+ function wrapText(context, text, fontSize, lineHeight, fontFamily, maxWidth) {
5
+ const lines = [];
6
+ context.font = `${fontSize}px ${JSON.stringify(fontFamily)}`;
7
+ context.textBaseline = "top";
8
+ let line = "";
9
+ let i;
10
+ let test;
11
+ let metrics;
12
+ for (const paragraph of text.split("\n")) {
13
+ const words = paragraph.split(" ");
14
+ for (i = 0; i < words.length; i++) {
15
+ test = words[i];
16
+ metrics = context.measureText(test);
17
+ while (metrics.width > maxWidth) {
18
+ test = test.slice(0, Math.max(0, test.length - 1));
19
+ metrics = context.measureText(test);
20
+ }
21
+ if (words[i] !== test) {
22
+ words.splice(i + 1, 0, words[i].slice(test.length));
23
+ words[i] = test;
24
+ }
25
+ test = `${line + words[i]} `;
26
+ metrics = context.measureText(test);
27
+ if (metrics.width > maxWidth && i > 0) {
28
+ lines.push(line);
29
+ line = `${words[i]} `;
30
+ } else
31
+ line = test;
32
+ }
33
+ lines.push(line);
34
+ line = "";
35
+ }
36
+ return lines;
37
+ }
38
+ export default async function generate(options) {
39
+ const {
40
+ text,
41
+ color,
42
+ padding,
43
+ font,
44
+ height,
45
+ width,
46
+ size,
47
+ minSize,
48
+ maxSize,
49
+ fixedSize,
50
+ label
51
+ } = options;
52
+ await loadFont(font);
53
+ const canvas = options.canvas ?? createCanvas(width, height);
54
+ const context = canvas.getContext("2d");
55
+ let y = padding;
56
+ if (label) {
57
+ const labelSize = options.labelSize ?? size;
58
+ const labelFont = options.labelFont ?? font;
59
+ const labelColor = options.labelColor ?? color;
60
+ context.font = `${labelSize}px ${JSON.stringify(labelFont)}`;
61
+ context.textBaseline = "top";
62
+ context.textAlign = "start";
63
+ context.fillStyle = labelColor;
64
+ context.fillText(label, padding, y);
65
+ y += labelSize * options.lineHeight;
66
+ }
67
+ if (text) {
68
+ const maxWidth = width - padding * 2;
69
+ const maxHeight = height - (y + padding);
70
+ let fontSize = size;
71
+ let lineHeight = fontSize * options.lineHeight;
72
+ let lines = wrapText(
73
+ context,
74
+ text,
75
+ fontSize,
76
+ lineHeight,
77
+ font,
78
+ maxWidth
79
+ );
80
+ if (!fixedSize) {
81
+ let textHeight = lines.length * lineHeight;
82
+ let count = 0;
83
+ do {
84
+ const newFontSize = clamp(
85
+ Math.round((maxHeight / textHeight * fontSize + fontSize) / 2),
86
+ minSize,
87
+ maxSize
88
+ );
89
+ if (newFontSize === fontSize)
90
+ break;
91
+ fontSize = newFontSize;
92
+ lineHeight = fontSize * options.lineHeight;
93
+ lines = wrapText(
94
+ context,
95
+ text,
96
+ fontSize,
97
+ lineHeight,
98
+ font,
99
+ maxWidth
100
+ );
101
+ textHeight = lines.length * lineHeight;
102
+ } while (textHeight > maxHeight && ++count < 5);
103
+ }
104
+ context.font = `${fontSize}px ${JSON.stringify(font)}`;
105
+ context.textBaseline = "top";
106
+ context.textAlign = "start";
107
+ context.fillStyle = color;
108
+ context.font = `${fontSize}px ${JSON.stringify(font)}`;
109
+ context.textBaseline = "top";
110
+ context.textAlign = "start";
111
+ context.fillStyle = color;
112
+ for (const line of lines) {
113
+ context.fillText(line, padding, y);
114
+ y += lineHeight;
115
+ }
116
+ }
117
+ return canvas.toDataURL("image/png");
118
+ }
@@ -1,9 +1,11 @@
1
1
  <template>
2
2
  <div
3
3
  ref="root"
4
- v-p-aspect-ratio="layout === 'fixed' ? ratio : 16/9"
4
+ v-p-aspect-ratio="layout === 'fixed' ? ratio : false"
5
5
  data-testid="pdf-viewer"
6
6
  class="pdf"
7
+ :data-page="pdfPage"
8
+ :data-scale="pdfScale"
7
9
  :class="classNames">
8
10
  <div
9
11
  class="pdf__header">
@@ -47,7 +49,7 @@
47
49
 
48
50
  <transition name="slide-up">
49
51
  <PdfNavigation
50
- v-show="!idle" />
52
+ v-show="!idle && !loading" />
51
53
  </transition>
52
54
 
53
55
  <slot
@@ -1,100 +1 @@
1
- <svg
2
- role="img"
3
- width="595"
4
- height="842"
5
- aria-labelledby="loading-aria"
6
- viewBox="0 0 595 842"
7
- preserveAspectRatio="none"
8
- xmlns="http://www.w3.org/2000/svg"
9
- >
10
- <title id="loading-aria">Loading...</title>
11
- <rect
12
- x="0"
13
- y="0"
14
- width="100%"
15
- height="100%"
16
- clip-path="url(#clip-path)"
17
- style='fill: url("#fill");'
18
- ></rect>
19
- <defs>
20
- <clipPath id="clip-path">
21
- <rect x="44" y="64" width="191" height="14" rx="2.06766" />
22
- <rect x="44" y="94" width="140" height="14" rx="2.06766" />
23
- <rect x="44" y="152" width="507" height="14" rx="7" />
24
- <rect x="44" y="182" width="507" height="14" rx="7" />
25
- <rect x="44" y="212" width="507" height="14" rx="7" />
26
- <rect x="44" y="242" width="507" height="14" rx="7" />
27
- <rect x="44" y="272" width="507" height="14" rx="7" />
28
- <rect x="44" y="302" width="507" height="14" rx="7" />
29
- <rect x="44" y="332" width="349" height="14" rx="7" />
30
- <rect x="44" y="390" width="507" height="14" rx="7" />
31
- <rect x="44" y="420" width="507" height="14" rx="7" />
32
- <rect x="44" y="450" width="507" height="14" rx="7" />
33
- <rect x="44" y="480" width="507" height="14" rx="7" />
34
- <rect x="44" y="510" width="507" height="14" rx="7" />
35
- <rect x="44" y="540" width="507" height="14" rx="7" />
36
- <rect x="44" y="570" width="183" height="14" rx="7" />
37
- <rect x="360" y="628" width="191" height="14" rx="2.06766" />
38
- <rect x="411" y="678" width="140" height="14" rx="2.06766" />
39
- <rect x="44" y="64" width="191" height="14" rx="2.06766" />
40
- <rect x="44" y="94" width="140" height="14" rx="2.06766" />
41
- <rect x="44" y="152" width="507" height="14" rx="7" />
42
- <rect x="44" y="182" width="507" height="14" rx="7" />
43
- <rect x="44" y="212" width="507" height="14" rx="7" />
44
- <rect x="44" y="242" width="507" height="14" rx="7" />
45
- <rect x="44" y="272" width="507" height="14" rx="7" />
46
- <rect x="44" y="302" width="507" height="14" rx="7" />
47
- <rect x="44" y="332" width="349" height="14" rx="7" />
48
- <rect x="44" y="390" width="507" height="14" rx="7" />
49
- <rect x="44" y="420" width="507" height="14" rx="7" />
50
- <rect x="44" y="450" width="507" height="14" rx="7" />
51
- <rect x="44" y="480" width="507" height="14" rx="7" />
52
- <rect x="44" y="510" width="507" height="14" rx="7" />
53
- <rect x="44" y="540" width="507" height="14" rx="7" />
54
- <rect x="44" y="570" width="183" height="14" rx="7" />
55
- <rect x="360" y="628" width="191" height="14" rx="2.06766" />
56
- <rect x="411" y="678" width="140" height="14" rx="2.06766" />
57
- </clipPath>
58
- <linearGradient id="fill">
59
- <stop
60
- offset="0.599964"
61
- stop-color="#E7E7E8"
62
- stop-opacity="1"
63
- >
64
- <animate
65
- attributeName="offset"
66
- values="-2; -2; 1"
67
- keyTimes="0; 0.25; 1"
68
- dur="2s"
69
- repeatCount="indefinite"
70
- ></animate>
71
- </stop>
72
- <stop
73
- offset="1.59996"
74
- stop-color="#CFCFD1"
75
- stop-opacity="1"
76
- >
77
- <animate
78
- attributeName="offset"
79
- values="-1; -1; 2"
80
- keyTimes="0; 0.25; 1"
81
- dur="2s"
82
- repeatCount="indefinite"
83
- ></animate>
84
- </stop>
85
- <stop
86
- offset="2.59996"
87
- stop-color="#E7E7E8"
88
- stop-opacity="1"
89
- >
90
- <animate
91
- attributeName="offset"
92
- values="0; 0; 3"
93
- keyTimes="0; 0.25; 1"
94
- dur="2s"
95
- repeatCount="indefinite"
96
- ></animate>
97
- </stop>
98
- </linearGradient>
99
- </defs>
100
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="595" height="842" aria-labelledby="loading-aria" preserveAspectRatio="none" role="img" viewBox="0 0 595 842"><title id="loading-aria">Loading...</title><rect width="100%" height="100%" x="0" y="0" clip-path="url(#clip-path)" style="fill:url(#fill)"/><defs><clipPath id="clip-path"><rect width="191" height="14" x="44" y="64" rx="2.068"/><rect width="140" height="14" x="44" y="94" rx="2.068"/><rect width="507" height="14" x="44" y="152" rx="7"/><rect width="507" height="14" x="44" y="182" rx="7"/><rect width="507" height="14" x="44" y="212" rx="7"/><rect width="507" height="14" x="44" y="242" rx="7"/><rect width="507" height="14" x="44" y="272" rx="7"/><rect width="507" height="14" x="44" y="302" rx="7"/><rect width="349" height="14" x="44" y="332" rx="7"/><rect width="507" height="14" x="44" y="390" rx="7"/><rect width="507" height="14" x="44" y="420" rx="7"/><rect width="507" height="14" x="44" y="450" rx="7"/><rect width="507" height="14" x="44" y="480" rx="7"/><rect width="507" height="14" x="44" y="510" rx="7"/><rect width="507" height="14" x="44" y="540" rx="7"/><rect width="183" height="14" x="44" y="570" rx="7"/><rect width="191" height="14" x="360" y="628" rx="2.068"/><rect width="140" height="14" x="411" y="678" rx="2.068"/><rect width="191" height="14" x="44" y="64" rx="2.068"/><rect width="140" height="14" x="44" y="94" rx="2.068"/><rect width="507" height="14" x="44" y="152" rx="7"/><rect width="507" height="14" x="44" y="182" rx="7"/><rect width="507" height="14" x="44" y="212" rx="7"/><rect width="507" height="14" x="44" y="242" rx="7"/><rect width="507" height="14" x="44" y="272" rx="7"/><rect width="507" height="14" x="44" y="302" rx="7"/><rect width="349" height="14" x="44" y="332" rx="7"/><rect width="507" height="14" x="44" y="390" rx="7"/><rect width="507" height="14" x="44" y="420" rx="7"/><rect width="507" height="14" x="44" y="450" rx="7"/><rect width="507" height="14" x="44" y="480" rx="7"/><rect width="507" height="14" x="44" y="510" rx="7"/><rect width="507" height="14" x="44" y="540" rx="7"/><rect width="183" height="14" x="44" y="570" rx="7"/><rect width="191" height="14" x="360" y="628" rx="2.068"/><rect width="140" height="14" x="411" y="678" rx="2.068"/></clipPath><linearGradient id="fill"><stop offset=".6" stop-color="#E7E7E8" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="-2; -2; 1"/></stop><stop offset="1.6" stop-color="#CFCFD1" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="-1; -1; 2"/></stop><stop offset="2.6" stop-color="#E7E7E8" stop-opacity="1"><animate attributeName="offset" dur="2s" keyTimes="0; 0.25; 1" repeatCount="indefinite" values="0; 0; 3"/></stop></linearGradient></defs></svg>
@@ -19,7 +19,7 @@ declare const _default: import("vue-demi").DefineComponent<{
19
19
  default: boolean;
20
20
  };
21
21
  }>>, {
22
- title: string;
23
22
  active: boolean;
23
+ title: string;
24
24
  }>;
25
25
  export default _default;
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  * Fixed sidebar
100
100
  */
101
101
  &&--fixed {
102
- @apply fixed top-0 h-full;
102
+ @apply fixed top-0 h-full shadow-lg;
103
103
 
104
104
  &:not(.sidebar--right) {
105
105
  @apply left-0;
@@ -77,8 +77,8 @@ declare const _default: import("vue-demi").DefineComponent<{
77
77
  };
78
78
  }>>, {
79
79
  color: string;
80
- modelValue: string | File;
81
80
  text: string;
81
+ modelValue: string | File;
82
82
  modelModifiers: ModelModifier;
83
83
  font: string;
84
84
  width: number;
@@ -204,6 +204,10 @@ export default defineComponent({
204
204
  > .datatable__header {
205
205
  @apply px-3;
206
206
  }
207
+
208
+ + .datatable__body {
209
+ @apply pt-2;
210
+ }
207
211
  }
208
212
 
209
213
  .datatable__header {
@@ -215,16 +219,16 @@ export default defineComponent({
215
219
  }
216
220
 
217
221
  &.datatable__drag {
218
- @apply invisible;
222
+ @apply invisible mx-3;
219
223
  }
220
224
  }
221
225
 
222
226
  &__row {
223
- @apply flex space-x-2 w-full items-center bg-default;
227
+ @apply flex space-x-2 w-full items-start;
224
228
  }
225
229
 
226
230
  &__cell {
227
- @apply py-4 px-3 text-sm text-default;
231
+ @apply py-4 px-3 text-sm text-default break-all;
228
232
 
229
233
  & > .datatable__header {
230
234
  @apply text-xs;
@@ -232,7 +236,7 @@ export default defineComponent({
232
236
 
233
237
  &.datatable__checkbox,
234
238
  &.datatable__drag {
235
- @apply flex-shrink-0 flex-grow-0;
239
+ @apply flex-shrink-0 flex-grow-0 self-center;
236
240
  }
237
241
 
238
242
  &.datatable__checkbox {
@@ -256,13 +260,17 @@ export default defineComponent({
256
260
  }
257
261
 
258
262
  .datatable__row {
259
- @apply rounded border border-default;
263
+ @apply rounded border border-default bg-default;
260
264
  }
261
265
  }
262
266
 
263
267
  &--static {
268
+ .datatable__headers {
269
+ @apply border-b border-b-default;
270
+ }
271
+
264
272
  .datatable__body {
265
- @apply border-b border-b-default divide-y divide-default;
273
+ @apply border-b border-b-default divide-y divide-default bg-default;
266
274
  }
267
275
  }
268
276
  }
@@ -62,8 +62,8 @@ declare const _default: import("vue-demi").DefineComponent<{
62
62
  "onUpdate:items"?: (...args: any[]) => any;
63
63
  }, {
64
64
  variant: TypeVariant;
65
- modelValue: Record<string, unknown>[];
66
65
  items: Record<string, unknown>[];
66
+ modelValue: Record<string, unknown>[];
67
67
  draggable: boolean;
68
68
  fields: TableField[];
69
69
  selectable: boolean;
@@ -105,7 +105,7 @@ export default defineComponent({
105
105
  event: "update:modelValue"
106
106
  },
107
107
  emits: ["update:modelValue", "change"],
108
- setup(props) {
108
+ setup(props, { slots }) {
109
109
  const model = useVModel(props);
110
110
  const classNames = computed(() => {
111
111
  const result = [];
@@ -117,6 +117,8 @@ export default defineComponent({
117
117
  result.push("toggle--disabled");
118
118
  if (props.readonly)
119
119
  result.push("toggle--readonly");
120
+ if (slots.default)
121
+ result.push("toggle--labeled");
120
122
  return result;
121
123
  });
122
124
  function toggle() {
@@ -137,7 +139,7 @@ export default defineComponent({
137
139
  @apply inline-flex cursor-pointer relative items-center select-none;
138
140
 
139
141
  &__switch {
140
- @apply flex items-center justify-center relative bg-inactive border-subtle mr-4;
142
+ @apply flex items-center justify-center relative bg-inactive border-subtle;
141
143
  }
142
144
 
143
145
  &__pointer {
@@ -212,5 +214,11 @@ export default defineComponent({
212
214
  @apply bg-inactive;
213
215
  }
214
216
  }
217
+
218
+ &&--labeled {
219
+ .toggle__switch {
220
+ @apply mr-4;
221
+ }
222
+ }
215
223
  }
216
224
  </style>
@@ -95,8 +95,8 @@ declare const _default: import("vue-demi").DefineComponent<{
95
95
  }, {
96
96
  image: string;
97
97
  dismissable: boolean;
98
- title: string;
99
98
  text: string;
99
+ title: string;
100
100
  step: number;
101
101
  highlight: boolean;
102
102
  totalStep: number;
@@ -18,5 +18,7 @@ export { initAppContext, useAppContext, } from '../components/global/context';
18
18
  export { useRouter, installRouter, } from '../components/global/router';
19
19
  export { createTour, } from '../components/tour';
20
20
  export { usePasswordStrength, } from '../components/input-password';
21
- export { usePreview, } from '../components/cropper/';
21
+ export { usePreview, } from '../components/cropper';
22
22
  export { usePdfContext, } from '../components/pdf-viewer';
23
+ export { defineNavigation, } from '../components/breadcrumbs';
24
+ export type { PdfHelipadResult, } from '../components/pdf-helipad';
@@ -64,7 +64,10 @@ export {
64
64
  } from "../components/input-password";
65
65
  export {
66
66
  usePreview
67
- } from "../components/cropper/";
67
+ } from "../components/cropper";
68
68
  export {
69
69
  usePdfContext
70
70
  } from "../components/pdf-viewer";
71
+ export {
72
+ defineNavigation
73
+ } from "../components/breadcrumbs";
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.9.0"
7
+ "version": "0.10.0"
8
8
  }
package/dist/module.mjs CHANGED
@@ -23,6 +23,7 @@ const module = defineNuxtModule({
23
23
  }
24
24
  await addComponentsDir({
25
25
  path: resolve("./components"),
26
+ pathPrefix: false,
26
27
  prefix: options.prefix,
27
28
  extensions: ["vue"]
28
29
  });