@privyid/persona 0.22.0 → 0.24.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 (93) hide show
  1. package/dist/components/accordion/Accordion.vue +4 -1
  2. package/dist/components/accordion/AccordionItem.vue +3 -1
  3. package/dist/components/banner/Banner.vue +2 -2
  4. package/dist/components/calendar/Calendar.vue +7 -3
  5. package/dist/components/calendar/Calendar.vue.d.ts +2 -2
  6. package/dist/components/camera/Camera.vue +2 -2
  7. package/dist/components/camera/Camera.vue.d.ts +3 -3
  8. package/dist/components/card/Card.vue.d.ts +1 -1
  9. package/dist/components/card/CardSection.vue.d.ts +1 -1
  10. package/dist/components/carousel/Carousel.vue +1 -1
  11. package/dist/components/carousel/Carousel.vue.d.ts +6 -6
  12. package/dist/components/chart/ChartSet.vue.d.ts +2 -2
  13. package/dist/components/chart/ChartVal.vue.d.ts +4 -4
  14. package/dist/components/checkbox/Checkbox.vue +5 -26
  15. package/dist/components/contextual-bar/ContextualBar.vue +4 -4
  16. package/dist/components/contextual-bar/ContextualBar.vue.d.ts +3 -3
  17. package/dist/components/cropper/Cropper.vue +7 -3
  18. package/dist/components/cropper/Cropper.vue.d.ts +8 -8
  19. package/dist/components/datepicker/Datepicker.vue.d.ts +2 -2
  20. package/dist/components/dialog/Dialog.vue +24 -2
  21. package/dist/components/dialog/DialogFooter.vue +1 -7
  22. package/dist/components/dot/Dot.vue +5 -2
  23. package/dist/components/dropdown/Dropdown.vue +1 -1
  24. package/dist/components/dropdown/DropdownItem.vue +8 -8
  25. package/dist/components/dropdown-subitem/DropdownSubitem.vue +3 -3
  26. package/dist/components/dropdown-subitem/DropdownSubitem.vue.d.ts +1 -1
  27. package/dist/components/dropzone/Dropzone.vue.d.ts +4 -4
  28. package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +2 -2
  29. package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +1 -1
  30. package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +3 -3
  31. package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +6 -6
  32. package/dist/components/form-group/FormGroup.vue +1 -1
  33. package/dist/components/heading/Heading.vue.d.ts +1 -1
  34. package/dist/components/input/Input.vue.d.ts +2 -2
  35. package/dist/components/input-file/InputFile.vue.d.ts +5 -5
  36. package/dist/components/input-group/InputGroup.vue +1 -1
  37. package/dist/components/input-pin/InputPin.vue.d.ts +2 -2
  38. package/dist/components/input-range/InputRange.vue +1 -1
  39. package/dist/components/input-range/InputRange.vue.d.ts +7 -7
  40. package/dist/components/label/Label.vue +30 -4
  41. package/dist/components/label/Label.vue.d.ts +1 -1
  42. package/dist/components/list-group/ListGroupItem.vue +2 -2
  43. package/dist/components/meta.json +19 -19
  44. package/dist/components/modal/Modal.vue.d.ts +2 -2
  45. package/dist/components/nav/Nav.vue +7 -7
  46. package/dist/components/nav/NavItem.vue +1 -1
  47. package/dist/components/nav/NavItemDropdown.vue.d.ts +1 -1
  48. package/dist/components/navbar/Navbar.vue +1 -1
  49. package/dist/components/navbar/Navbar.vue.d.ts +1 -1
  50. package/dist/components/pagination/Pagination.vue +11 -0
  51. package/dist/components/pagination/Pagination.vue.d.ts +10 -0
  52. package/dist/components/pdf-object/index.d.ts +7 -0
  53. package/dist/components/pdf-text/PdfText.vue.d.ts +1 -1
  54. package/dist/components/pdf-viewer/PdfNavigation.vue +5 -1
  55. package/dist/components/pdf-viewer/PdfViewer.vue +1 -1
  56. package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +4 -4
  57. package/dist/components/pdf-viewer/utils/use-viewer.d.ts +0 -21
  58. package/dist/components/pdf-viewer/utils/use-viewer.mjs +3 -2
  59. package/dist/components/progress-indicator/ProgressIndicator.vue.d.ts +2 -2
  60. package/dist/components/progressbar/Progressbar.vue.d.ts +7 -7
  61. package/dist/components/radio/Radio.vue +5 -19
  62. package/dist/components/radio/Radio.vue.d.ts +6 -6
  63. package/dist/components/ringbar/Ringbar.vue.d.ts +6 -6
  64. package/dist/components/select/Select.vue +8 -9
  65. package/dist/components/sidebar/Sidebar.vue +2 -2
  66. package/dist/components/sidebar/SidebarNav.vue +34 -3
  67. package/dist/components/signature-text/SignatureText.vue.d.ts +4 -4
  68. package/dist/components/strengthbar/Strengthbar.vue +1 -1
  69. package/dist/components/strengthbar/Strengthbar.vue.d.ts +8 -8
  70. package/dist/components/table/Table.vue +5 -3
  71. package/dist/components/table/Table.vue.d.ts +10 -10
  72. package/dist/components/table/index.d.ts +5 -8
  73. package/dist/components/table-flex/TableFlex.vue +13 -8
  74. package/dist/components/table-static/TableStatic.vue +18 -10
  75. package/dist/components/tabs/Tabs.vue +12 -0
  76. package/dist/components/text/Text.vue.d.ts +1 -1
  77. package/dist/components/textarea/Textarea.vue.d.ts +4 -4
  78. package/dist/components/toast/Toast.vue +21 -18
  79. package/dist/components/toast/Toast.vue.d.ts +1 -3
  80. package/dist/components/toast/ToastContainer.vue +12 -1
  81. package/dist/components/toast/ToastContainer.vue.d.ts +123 -1
  82. package/dist/components/toast/index.d.ts +3 -1
  83. package/dist/components/toggle/Toggle.vue +4 -25
  84. package/dist/components/toggle/Toggle.vue.d.ts +9 -9
  85. package/dist/components/tour/TourDialog.vue +2 -2
  86. package/dist/components/tour/TourDialog.vue.d.ts +1 -1
  87. package/dist/components/truncate/Truncate.vue.d.ts +2 -2
  88. package/dist/components/utils/date.d.ts +2 -2
  89. package/dist/components/wizard/Wizard.vue +2 -2
  90. package/dist/core/index.d.ts +3 -0
  91. package/dist/core/index.mjs +12 -0
  92. package/dist/module.json +1 -1
  93. package/package.json +10 -10
@@ -1,7 +1,7 @@
1
1
  import { HTMLAttributes } from 'vue-demi';
2
2
  import { LiteralUnion } from 'type-fest';
3
- type KeyType<T> = LiteralUnion<keyof T & string, string>;
4
- type LabelType<T> = LiteralUnion<Capitalize<keyof T & string>, string>;
3
+ export type KeyType<T> = LiteralUnion<keyof T & string, string>;
4
+ export type LabelType<T> = LiteralUnion<Capitalize<keyof T & string>, string>;
5
5
  export type ApperanceVariant = 'card' | 'table';
6
6
  export interface TableField<T = Record<string, unknown>> {
7
7
  /**
@@ -24,12 +24,10 @@ export interface TableField<T = Record<string, unknown>> {
24
24
  thClass?: HTMLAttributes['class'];
25
25
  }
26
26
  export declare function baseFormatter(value: unknown): string;
27
- export declare function defineTable<T>(fields: Array<TableField<T>> | string[]): Array<TableField<T>>;
28
- export declare function withKey(item: Record<string, unknown>): Omit<Record<string, unknown>, "_key"> & Omit<{
27
+ export declare function defineTable<T = unknown>(fields: Array<TableField<T>> | string[]): Array<TableField<T>>;
28
+ export declare function withKey(item: object): Omit<object, never> & Omit<{
29
29
  _key: symbol;
30
- }, "_key"> & {
31
- _key: unknown;
32
- };
30
+ }, never> & {};
33
31
  export declare function withoutKey(item: Record<string, unknown>): Pick<Record<string, unknown>, string>;
34
32
  /**
35
33
  * Add unit to unitless value
@@ -37,4 +35,3 @@ export declare function withoutKey(item: Record<string, unknown>): Pick<Record<s
37
35
  * @param unit default unit
38
36
  */
39
37
  export declare function withUnit(value?: number | string | undefined, unit?: string): string | number | undefined;
40
- export {};
@@ -4,7 +4,7 @@
4
4
  class="table-flex"
5
5
  :class="classNames">
6
6
  <Draggable
7
- v-if="items.length > 0"
7
+ v-if="Array.isArray(items) && items.length > 0"
8
8
  v-model="rows"
9
9
  class="table-flex__body"
10
10
  handle=".table-flex__drag"
@@ -107,7 +107,7 @@
107
107
  </div>
108
108
  </template>
109
109
 
110
- <script lang="ts" setup generic="T extends Record<string, unknown>">
110
+ <script lang="ts" setup generic="T">
111
111
  import {
112
112
  computed,
113
113
  HTMLAttributes,
@@ -120,6 +120,7 @@ import {
120
120
  withKey,
121
121
  withoutKey,
122
122
  withUnit,
123
+ KeyType,
123
124
  } from '../table'
124
125
  import Checkbox from '../checkbox/Checkbox.vue'
125
126
  import { useVModel } from '../input'
@@ -186,7 +187,7 @@ const emit = defineEmits<{
186
187
  const rows = computed<T[]>({
187
188
  get () {
188
189
  return props.items.map((item) => {
189
- return withKey(item) as T
190
+ return withKey(item as Record<string, unknown>) as T
190
191
  })
191
192
  },
192
193
  set (items) {
@@ -213,10 +214,14 @@ const classNames = computed(() => {
213
214
  })
214
215
 
215
216
  defineSlots<{
216
- empty:() => VNode,
217
- row:(props: { index: number, item: T, [key: string]: any }) => VNode,
218
- [colKey: `head(${string})`]:(props: { label: string, field: TableField<T>, [key: string]: any }) => VNode,
219
- [colKey: `cell(${string})`]:(props: { index: number, item: T, [key: string]: any }) => VNode,
217
+ empty:() => VNode[],
218
+ row:(props: { index: number, item: T }) => VNode[],
219
+ [K: `cell(${string})`]:(props: { index: number }) => VNode[],
220
+ [K: `head(${string})`]:(props: { field: TableField<T>, label: string }) => VNode[],
221
+ } & {
222
+ [K in KeyType<T> as `cell(${K})`]:(props: { item: T, index: number }) => VNode[]
223
+ } & {
224
+ [K in KeyType<T> as `head(${K})`]:(props: { field: TableField<T>, label: string }) => VNode[]
220
225
  }>()
221
226
  </script>
222
227
 
@@ -261,7 +266,7 @@ defineSlots<{
261
266
  &.table-flex__checkbox,
262
267
  &.table-flex__drag {
263
268
  @apply max-sm:absolute max-sm:left-0 max-sm:top-1/2 max-sm:-translate-y-1/2;
264
- @apply flex-shrink-0 flex-grow-0 self-center w-auto;
269
+ @apply shrink-0 grow-0 self-center w-auto;
265
270
  }
266
271
 
267
272
  &.table-flex__checkbox {
@@ -37,7 +37,7 @@
37
37
  </tr>
38
38
  </thead>
39
39
  <Draggable
40
- v-if="items.length > 0"
40
+ v-if="Array.isArray(items) && items.length > 0"
41
41
  v-model="rows"
42
42
  class="table-static__body"
43
43
  handle=".table-static__drag"
@@ -92,7 +92,7 @@
92
92
  <tr
93
93
  class="table-static__row">
94
94
  <td
95
- :colspan="fields.length"
95
+ :colspan="selectable ? fields.length+1 : fields.length"
96
96
  data-testid="table-static-empty"
97
97
  class="table-static__cell table-static__cell--empty datatable__state-empty">
98
98
  <slot name="empty">
@@ -106,7 +106,7 @@
106
106
  </TableStaticRoot>
107
107
  </template>
108
108
 
109
- <script lang="ts" setup generic="T extends Record<string, unknown>">
109
+ <script lang="ts" setup generic="T">
110
110
  import {
111
111
  computed,
112
112
  HTMLAttributes,
@@ -119,6 +119,7 @@ import {
119
119
  withKey,
120
120
  withoutKey,
121
121
  withUnit,
122
+ KeyType,
122
123
  } from '../table'
123
124
  import Checkbox from '../checkbox/Checkbox.vue'
124
125
  import TableStaticRoot from './TableStaticRoot.vue'
@@ -190,7 +191,7 @@ const emit = defineEmits<{
190
191
  const rows = computed<T[]>({
191
192
  get () {
192
193
  return props.items.map((item) => {
193
- return withKey(item) as T
194
+ return withKey(item as Record<string, unknown>) as T
194
195
  })
195
196
  },
196
197
  set (items) {
@@ -220,17 +221,20 @@ const classNames = computed(() => {
220
221
  })
221
222
 
222
223
  const selectableRows = computed(() => {
223
- return props.items.filter((item) => item._selectable !== false)
224
+ return props.items.filter((item) => (item as Record<string, unknown>)._selectable !== false)
224
225
  })
225
226
 
226
227
  const selectAll = computed({
227
228
  get () {
229
+ if (props.items.length === 0)
230
+ return false
231
+
228
232
  return model.value.length === selectableRows.value.length
229
233
  },
230
234
  set (value) {
231
235
  if (selectAll.value !== value) {
232
236
  model.value = value
233
- ? selectableRows.value.map((item) => withoutKey(item)) as T[]
237
+ ? selectableRows.value.map((item) => withoutKey(item as Record<string, unknown>)) as T[]
234
238
  : []
235
239
  }
236
240
  },
@@ -242,10 +246,14 @@ const indeterminate = computed(() => {
242
246
  })
243
247
 
244
248
  defineSlots<{
245
- empty:() => VNode,
246
- row:(props: { index: number, item: T, [key: string]: any }) => VNode,
247
- [colKey: `head(${string})`]:(props: { label: string, field: TableField<T>, [key: string]: any }) => VNode,
248
- [colKey: `cell(${string})`]:(props: { index: number, item: T, [key: string]: any }) => VNode,
249
+ empty:() => VNode[],
250
+ row:(props: { index: number, item: T }) => VNode[],
251
+ [K: `cell(${string})`]:(props: { index: number }) => VNode[],
252
+ [K: `head(${string})`]:(props: { field: TableField<T>, label: string }) => VNode[],
253
+ } & {
254
+ [K in KeyType<T> as `cell(${K})`]:(props: { item: T, index: number }) => VNode[]
255
+ } & {
256
+ [K in KeyType<T> as `head(${K})`]:(props: { field: TableField<T>, label: string }) => VNode[]
249
257
  }>()
250
258
  </script>
251
259
 
@@ -200,6 +200,18 @@ function selectTab (index: number, tab: TabContext) {
200
200
  }
201
201
  }
202
202
 
203
+ /**
204
+ * left align for
205
+ * vertical navigation
206
+ */
207
+ &--vertical-align-left {
208
+ .nav {
209
+ &__item {
210
+ @apply -mr-[1px];
211
+ }
212
+ }
213
+ }
214
+
203
215
  /**
204
216
  * right align for
205
217
  * vertical navigation
@@ -49,8 +49,8 @@ declare const _default: import("vue-demi").DefineComponent<{
49
49
  }>>, {
50
50
  variant: StyleVariant;
51
51
  href: string;
52
- element: ElementVariant;
53
52
  weight: WeightVariant;
54
53
  transform: TransformVariant;
54
+ element: ElementVariant;
55
55
  }, {}>;
56
56
  export default _default;
@@ -34,11 +34,11 @@ declare const _default: import("vue-demi").DefineComponent<{
34
34
  default: boolean;
35
35
  };
36
36
  rows: {
37
- type: (StringConstructor | NumberConstructor)[];
37
+ type: (NumberConstructor | StringConstructor)[];
38
38
  default: number;
39
39
  };
40
40
  maxlength: {
41
- type: (StringConstructor | NumberConstructor)[];
41
+ type: (NumberConstructor | StringConstructor)[];
42
42
  default: undefined;
43
43
  };
44
44
  accept: {
@@ -86,11 +86,11 @@ declare const _default: import("vue-demi").DefineComponent<{
86
86
  default: boolean;
87
87
  };
88
88
  rows: {
89
- type: (StringConstructor | NumberConstructor)[];
89
+ type: (NumberConstructor | StringConstructor)[];
90
90
  default: number;
91
91
  };
92
92
  maxlength: {
93
- type: (StringConstructor | NumberConstructor)[];
93
+ type: (NumberConstructor | StringConstructor)[];
94
94
  default: undefined;
95
95
  };
96
96
  accept: {
@@ -3,17 +3,21 @@
3
3
  data-testid="toast"
4
4
  :class="classNames">
5
5
  <div class="toast__icon">
6
- <component
7
- :is="icon"
8
- v-if="icon" />
6
+ <slot name="icon">
7
+ <component
8
+ :is="toastIcon"
9
+ v-if="toastIcon" />
10
+ </slot>
9
11
  </div>
10
12
  <div class="toast__body">
11
- <div class="toast__title">
12
- {{ title }}
13
- </div>
14
- <div class="toast__text">
15
- {{ text }}
16
- </div>
13
+ <div
14
+ v-p-md.inline="title"
15
+ class="toast__title" />
16
+ <div
17
+ v-if="text"
18
+ v-p-md.inline="text"
19
+ class="toast__text"
20
+ data-testid="toast-text" />
17
21
  </div>
18
22
  <div
19
23
  data-testid="toast-close"
@@ -37,6 +41,7 @@ import IconSuccess from "@privyid/persona-icon/vue/checkmark/24.vue";
37
41
  import IconWarning from "@privyid/persona-icon/vue/exclamation-circle-solid/24.vue";
38
42
  import IconError from "@privyid/persona-icon/vue/exclamation-triangle-solid/24.vue";
39
43
  import IconClose from "@privyid/persona-icon/vue/close/16.vue";
44
+ import { pMd } from "../markdown";
40
45
  const ToastIcons = {
41
46
  info: IconInfo,
42
47
  success: IconSuccess,
@@ -45,15 +50,13 @@ const ToastIcons = {
45
50
  };
46
51
  export default defineComponent({
47
52
  components: { IconClose },
53
+ directives: { pMd },
48
54
  props: {
49
55
  title: {
50
56
  type: String,
51
57
  required: true
52
58
  },
53
- text: {
54
- type: String,
55
- required: true
56
- },
59
+ text: { type: String },
57
60
  type: {
58
61
  type: String,
59
62
  default: "info"
@@ -78,7 +81,7 @@ export default defineComponent({
78
81
  result.push(`toast--${props.variant}`);
79
82
  return result;
80
83
  });
81
- const icon = computed(() => {
84
+ const toastIcon = computed(() => {
82
85
  return ToastIcons[props.type];
83
86
  });
84
87
  function close() {
@@ -97,7 +100,7 @@ export default defineComponent({
97
100
  });
98
101
  return {
99
102
  classNames,
100
- icon,
103
+ toastIcon,
101
104
  close
102
105
  };
103
106
  }
@@ -114,7 +117,7 @@ export default defineComponent({
114
117
 
115
118
  .toast__icon,
116
119
  .toast__close {
117
- @apply flex-shrink-0 p-4;
120
+ @apply shrink-0 p-4;
118
121
  }
119
122
 
120
123
  .toast__icon {
@@ -127,11 +130,11 @@ export default defineComponent({
127
130
  }
128
131
 
129
132
  .toast__body {
130
- @apply py-4 pr-4 flex-grow space-y-2 flex flex-col;
133
+ @apply py-4 pr-4 grow space-y-2 flex flex-col;
131
134
  }
132
135
 
133
136
  .toast__title {
134
- @apply text-sm font-medium;
137
+ @apply text-sm font-medium leading-[1.75];
135
138
  }
136
139
 
137
140
  .toast__text {
@@ -7,7 +7,6 @@ declare const _default: import("vue-demi").DefineComponent<{
7
7
  };
8
8
  text: {
9
9
  type: StringConstructor;
10
- required: true;
11
10
  };
12
11
  type: {
13
12
  type: PropType<ToastTypeVariant>;
@@ -23,7 +22,7 @@ declare const _default: import("vue-demi").DefineComponent<{
23
22
  };
24
23
  }, {
25
24
  classNames: import("vue-demi").ComputedRef<string[]>;
26
- icon: import("vue-demi").ComputedRef<any>;
25
+ toastIcon: import("vue-demi").ComputedRef<any>;
27
26
  close: () => void;
28
27
  }, unknown, {}, {}, import("vue-demi").ComponentOptionsMixin, import("vue-demi").ComponentOptionsMixin, "dismissed"[], "dismissed", import("vue-demi").VNodeProps & import("vue-demi").AllowedComponentProps & import("vue-demi").ComponentCustomProps, Readonly<import("vue-demi").ExtractPropTypes<{
29
28
  title: {
@@ -32,7 +31,6 @@ declare const _default: import("vue-demi").DefineComponent<{
32
31
  };
33
32
  text: {
34
33
  type: StringConstructor;
35
- required: true;
36
34
  };
37
35
  type: {
38
36
  type: PropType<ToastTypeVariant>;
@@ -15,7 +15,18 @@
15
15
  :variant="item.variant"
16
16
  :duration="item.duration"
17
17
  :class="item.toastClass"
18
- @dismissed="remove(i)" />
18
+ @dismissed="remove(i)">
19
+ <template #icon>
20
+ <template v-if="item.icon && typeof item.icon === 'string'">
21
+ <img
22
+ :src="item.icon"
23
+ alt="toast-icon">
24
+ </template>
25
+ <template v-else-if="item.icon">
26
+ <component :is="item.icon" />
27
+ </template>
28
+ </template>
29
+ </Toast>
19
30
  </TransitionGroup>
20
31
  </div>
21
32
  </template>
@@ -13,7 +13,129 @@ declare const _default: import("vue-demi").DefineComponent<{
13
13
  type?: import(".").ToastTypeVariant | undefined;
14
14
  variant?: import(".").ToastStyleVariant | undefined;
15
15
  title: string;
16
- text: string;
16
+ text?: string | undefined;
17
+ icon?: string | import("vue-demi").FunctionalComponent<any, any, any> | {
18
+ new (...args: any[]): any;
19
+ __isFragment?: undefined;
20
+ __isTeleport?: undefined;
21
+ __isSuspense?: undefined;
22
+ } | {
23
+ [x: string]: any;
24
+ setup?: ((this: void, props: import("@vue/shared").LooseRequired<any>, ctx: {
25
+ attrs: {
26
+ [x: string]: unknown;
27
+ };
28
+ slots: Readonly<{
29
+ [name: string]: import("vue-demi").Slot<any> | undefined;
30
+ }>;
31
+ emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
32
+ expose: (exposed?: Record<string, any> | undefined) => void;
33
+ }) => any) | undefined;
34
+ name?: string | undefined;
35
+ template?: string | object | undefined;
36
+ render?: Function | undefined;
37
+ components?: Record<string, import("vue-demi").Component<any, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions>> | undefined;
38
+ directives?: Record<string, import("vue-demi").Directive<any, any>> | undefined;
39
+ inheritAttrs?: boolean | undefined;
40
+ emits?: any;
41
+ slots?: {} | undefined;
42
+ expose?: string[] | undefined;
43
+ serverPrefetch?: (() => void | Promise<any>) | undefined;
44
+ compilerOptions?: {
45
+ isCustomElement?: ((tag: string) => boolean) | undefined;
46
+ whitespace?: "preserve" | "condense" | undefined;
47
+ comments?: boolean | undefined;
48
+ delimiters?: [string, string] | undefined;
49
+ } | undefined;
50
+ call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
51
+ __isFragment?: undefined;
52
+ __isTeleport?: undefined;
53
+ __isSuspense?: undefined;
54
+ __defaults?: any;
55
+ compatConfig?: {
56
+ GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
57
+ GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
58
+ GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
59
+ GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
60
+ GLOBAL_SET?: boolean | "suppress-warning" | undefined;
61
+ GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
62
+ GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
63
+ GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
64
+ CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
65
+ CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
66
+ CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
67
+ CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
68
+ CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
69
+ CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
70
+ CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
71
+ INSTANCE_SET?: boolean | "suppress-warning" | undefined;
72
+ INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
73
+ INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
74
+ INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
75
+ INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
76
+ INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
77
+ INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
78
+ INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
79
+ INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
80
+ OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
81
+ OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
82
+ OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
83
+ OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
84
+ WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
85
+ PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
86
+ V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
87
+ CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
88
+ ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
89
+ ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
90
+ TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
91
+ TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
92
+ COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
93
+ COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
94
+ COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
95
+ RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
96
+ FILTERS?: boolean | "suppress-warning" | undefined;
97
+ PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
98
+ MODE?: 2 | 3 | ((comp: import("vue-demi").Component<any, any, any, import("vue-demi").ComputedOptions, import("vue-demi").MethodOptions> | null) => 2 | 3) | undefined;
99
+ } | undefined;
100
+ data?: ((this: any, vm: any) => any) | undefined;
101
+ computed?: import("vue-demi").ComputedOptions | undefined;
102
+ methods?: import("vue-demi").MethodOptions | undefined;
103
+ watch?: {
104
+ [x: string]: (string | import("vue-demi").WatchCallback<any, any> | ({
105
+ handler: string | import("vue-demi").WatchCallback<any, any>;
106
+ } & import("vue-demi").WatchOptions<boolean>)) | (string | import("vue-demi").WatchCallback<any, any> | ({
107
+ handler: string | import("vue-demi").WatchCallback<any, any>;
108
+ } & import("vue-demi").WatchOptions<boolean>))[];
109
+ } | undefined;
110
+ provide?: import("vue-demi").ComponentProvideOptions | undefined;
111
+ inject?: {} | string[] | undefined;
112
+ filters?: Record<string, Function> | undefined;
113
+ mixins?: any[] | undefined;
114
+ extends?: any;
115
+ beforeCreate?: (() => void) | undefined;
116
+ created?: (() => void) | undefined;
117
+ beforeMount?: (() => void) | undefined;
118
+ mounted?: (() => void) | undefined;
119
+ beforeUpdate?: (() => void) | undefined;
120
+ updated?: (() => void) | undefined;
121
+ activated?: (() => void) | undefined;
122
+ deactivated?: (() => void) | undefined;
123
+ beforeDestroy?: (() => void) | undefined;
124
+ beforeUnmount?: (() => void) | undefined;
125
+ destroyed?: (() => void) | undefined;
126
+ unmounted?: (() => void) | undefined;
127
+ renderTracked?: ((e: import("vue-demi").DebuggerEvent) => void) | undefined;
128
+ renderTriggered?: ((e: import("vue-demi").DebuggerEvent) => void) | undefined;
129
+ errorCaptured?: ((err: unknown, instance: import("vue-demi").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue-demi").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | undefined;
130
+ delimiters?: [string, string] | undefined;
131
+ __differentiator?: string | number | symbol | undefined;
132
+ __isBuiltIn?: boolean | undefined;
133
+ __file?: string | undefined;
134
+ __name?: string | undefined;
135
+ beforeRouteEnter?: import("vue-router").NavigationGuardWithThis<undefined> | undefined;
136
+ beforeRouteUpdate?: import("vue-router").NavigationGuard | undefined;
137
+ beforeRouteLeave?: import("vue-router").NavigationGuard | undefined;
138
+ } | undefined;
17
139
  duration?: number | undefined;
18
140
  toastClass?: string | string[] | undefined;
19
141
  position?: ToastPositionVariant | undefined;
@@ -1,10 +1,12 @@
1
+ import { Component } from 'vue-demi';
1
2
  export type ToastTypeVariant = 'info' | 'success' | 'warning' | 'error';
2
3
  export type ToastStyleVariant = 'simple' | 'filled';
3
4
  export interface ToastOption {
4
5
  type?: ToastTypeVariant;
5
6
  variant?: ToastStyleVariant;
6
7
  title: string;
7
- text: string;
8
+ text?: string;
9
+ icon?: string | Component;
8
10
  duration?: number;
9
11
  toastClass?: string | string[];
10
12
  position?: ToastPositionVariant;
@@ -46,36 +46,15 @@ export default defineComponent({
46
46
  default: "pill"
47
47
  },
48
48
  modelValue: {
49
- type: [
50
- String,
51
- Number,
52
- Boolean,
53
- Array,
54
- Object,
55
- Date
56
- ],
49
+ type: void 0,
57
50
  default: false
58
51
  },
59
52
  value: {
60
- type: [
61
- String,
62
- Number,
63
- Boolean,
64
- Array,
65
- Object,
66
- Date
67
- ],
53
+ type: void 0,
68
54
  default: true
69
55
  },
70
56
  uncheckedValue: {
71
- type: [
72
- String,
73
- Number,
74
- Boolean,
75
- Array,
76
- Object,
77
- Date
78
- ],
57
+ type: void 0,
79
58
  default: false
80
59
  },
81
60
  checked: {
@@ -151,7 +130,7 @@ export default defineComponent({
151
130
  @apply dark:text-dark-default;
152
131
 
153
132
  &__switch {
154
- @apply flex items-center justify-center relative bg-subtle border-default font-medium;
133
+ @apply flex shrink-0 items-center justify-center relative bg-subtle border-default font-medium;
155
134
  @apply dark:bg-dark-subtle dark:border-dark-default;
156
135
  }
157
136
 
@@ -6,15 +6,15 @@ declare const _default: import("vue-demi").DefineComponent<{
6
6
  default: string;
7
7
  };
8
8
  modelValue: {
9
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
9
+ type: PropType<any>;
10
10
  default: boolean;
11
11
  };
12
12
  value: {
13
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
13
+ type: PropType<any>;
14
14
  default: boolean;
15
15
  };
16
16
  uncheckedValue: {
17
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
17
+ type: PropType<any>;
18
18
  default: boolean;
19
19
  };
20
20
  checked: {
@@ -55,15 +55,15 @@ declare const _default: import("vue-demi").DefineComponent<{
55
55
  default: string;
56
56
  };
57
57
  modelValue: {
58
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
58
+ type: PropType<any>;
59
59
  default: boolean;
60
60
  };
61
61
  value: {
62
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
62
+ type: PropType<any>;
63
63
  default: boolean;
64
64
  };
65
65
  uncheckedValue: {
66
- type: (StringConstructor | BooleanConstructor | ObjectConstructor | DateConstructor | NumberConstructor | ArrayConstructor)[];
66
+ type: PropType<any>;
67
67
  default: boolean;
68
68
  };
69
69
  checked: {
@@ -98,13 +98,13 @@ declare const _default: import("vue-demi").DefineComponent<{
98
98
  onChange?: ((...args: any[]) => any) | undefined;
99
99
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
100
100
  }, {
101
- value: string | number | boolean | Record<string, any> | unknown[] | Date;
101
+ value: any;
102
102
  variant: StyleVariant;
103
- modelValue: string | number | boolean | Record<string, any> | unknown[] | Date;
103
+ modelValue: any;
104
104
  disabled: boolean;
105
105
  readonly: boolean;
106
106
  checked: boolean;
107
- uncheckedValue: string | number | boolean | Record<string, any> | unknown[] | Date;
107
+ uncheckedValue: any;
108
108
  noLabel: boolean;
109
109
  checkedLabel: string;
110
110
  uncheckedLabel: string;
@@ -187,12 +187,12 @@ export default defineComponent({
187
187
  }
188
188
 
189
189
  &__meta {
190
- @apply text-xs text-muted flex-shrink-0;
190
+ @apply text-xs text-muted shrink-0;
191
191
  @apply dark:text-dark-muted;
192
192
  }
193
193
 
194
194
  &__controls {
195
- @apply flex-grow flex space-x-2 justify-end items-center;
195
+ @apply grow flex space-x-2 justify-end items-center;
196
196
 
197
197
  > .btn--variant-link.btn--default {
198
198
  @apply text-on-emphasis hover:text-on-emphasis focus:text-on-emphasis;
@@ -93,8 +93,8 @@ declare const _default: import("vue-demi").DefineComponent<{
93
93
  onDismiss?: ((...args: any[]) => any) | undefined;
94
94
  onPrev?: ((...args: any[]) => any) | undefined;
95
95
  }, {
96
- image: string;
97
96
  dismissable: boolean;
97
+ image: string;
98
98
  text: string;
99
99
  title: string;
100
100
  step: number;