@privyid/persona 0.24.0 → 0.25.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 (171) hide show
  1. package/dist/components/accordion/Accordion.vue +1 -1
  2. package/dist/components/aspect-ratio/index.d.ts +1 -1
  3. package/dist/components/avatar/Avatar.vue.d.ts +2 -2
  4. package/dist/components/badge/Badge.vue.d.ts +3 -3
  5. package/dist/components/banner/Banner.vue.d.ts +2 -2
  6. package/dist/components/breadcrumbs/Breadcrumb.vue.d.ts +1 -1
  7. package/dist/components/breadcrumbs/BreadcrumbItem.vue.d.ts +1 -1
  8. package/dist/components/button/Button.vue +15 -3
  9. package/dist/components/button-group/ButtonGroup.vue.d.ts +1 -1
  10. package/dist/components/button-group/index.d.ts +2 -2
  11. package/dist/components/calendar/Calendar.vue.d.ts +2 -2
  12. package/dist/components/calendar/adapter/adapter.d.ts +1 -1
  13. package/dist/components/camera/Camera.vue.d.ts +2 -2
  14. package/dist/components/camera/adapter/adapter.d.ts +1 -1
  15. package/dist/components/camera/utils/motion.mjs +2 -2
  16. package/dist/components/caption/Caption.vue.d.ts +3 -3
  17. package/dist/components/card/Card.vue.d.ts +2 -2
  18. package/dist/components/carousel/Carousel.vue.d.ts +5 -5
  19. package/dist/components/carousel/index.d.ts +1 -1
  20. package/dist/components/chart/Chart.vue +20 -17
  21. package/dist/components/chart/Chart.vue.d.ts +3 -3
  22. package/dist/components/chart/adapter/adapter.d.ts +1 -1
  23. package/dist/components/chart/adapter/index.d.ts +1 -1
  24. package/dist/components/chart/index.d.ts +1 -1
  25. package/dist/components/checkbox/Checkbox.vue +3 -2
  26. package/dist/components/checkbox/index.d.ts +1 -1
  27. package/dist/components/contextual-bar/ContextualBar.vue.d.ts +5 -5
  28. package/dist/components/cropper/Cropper.vue.d.ts +2 -2
  29. package/dist/components/cropper/index.d.ts +2 -2
  30. package/dist/components/cropper/utils/use-pinch.d.ts +1 -1
  31. package/dist/components/cropper/utils/use-ratio.d.ts +1 -1
  32. package/dist/components/datepicker/Datepicker.vue +1 -0
  33. package/dist/components/datepicker/Datepicker.vue.d.ts +3 -3
  34. package/dist/components/dialog/Dialog.vue +8 -3
  35. package/dist/components/dialog/Dialog.vue.d.ts +1 -1
  36. package/dist/components/dialog/DialogFooter.vue.d.ts +1 -1
  37. package/dist/components/dialog/index.d.ts +19 -2
  38. package/dist/components/dialog/index.mjs +42 -0
  39. package/dist/components/dot/Dot.vue.d.ts +3 -3
  40. package/dist/components/dropdown/Dropdown.vue +25 -23
  41. package/dist/components/dropdown/DropdownItem.vue +2 -1
  42. package/dist/components/dropdown/DropdownItem.vue.d.ts +1 -1
  43. package/dist/components/dropdown/index.d.ts +1 -1
  44. package/dist/components/dropdown-subitem/index.d.ts +1 -1
  45. package/dist/components/dropzone/Dropzone.vue.d.ts +3 -3
  46. package/dist/components/filterbar/Filterbar.vue.d.ts +2 -2
  47. package/dist/components/filterbar/index.d.ts +4 -4
  48. package/dist/components/filterbar/pinned/PinnedDate.vue.d.ts +2 -2
  49. package/dist/components/filterbar/pinned/PinnedMultiselect.vue.d.ts +3 -3
  50. package/dist/components/filterbar/pinned/PinnedSelect.vue.d.ts +3 -3
  51. package/dist/components/filterbar/pinned/PinnedToggle.vue.d.ts +2 -2
  52. package/dist/components/form-group/FormGroup.vue +23 -10
  53. package/dist/components/global/store.d.ts +2 -2
  54. package/dist/components/global/use-singleton.d.ts +1 -1
  55. package/dist/components/heading/Heading.vue.d.ts +3 -3
  56. package/dist/components/input/Input.vue.d.ts +5 -4
  57. package/dist/components/input/index.d.ts +1 -1
  58. package/dist/components/input/utils/accept.d.ts +1 -1
  59. package/dist/components/input-file/InputFile.vue.d.ts +6 -6
  60. package/dist/components/input-group/InputGroup.vue.d.ts +2 -2
  61. package/dist/components/input-group/index.d.ts +2 -2
  62. package/dist/components/input-password/InputPassword.vue.d.ts +1 -1
  63. package/dist/components/input-password/index.d.ts +1 -1
  64. package/dist/components/input-pin/InputPin.vue +1 -1
  65. package/dist/components/input-pin/InputPin.vue.d.ts +3 -3
  66. package/dist/components/input-range/InputRange.vue.d.ts +1 -1
  67. package/dist/components/input-range/utils/use-drag.d.ts +1 -1
  68. package/dist/components/label/Label.vue.d.ts +4 -4
  69. package/dist/components/list-group/ListGroup.vue.d.ts +1 -1
  70. package/dist/components/list-group/ListGroupItem.vue.d.ts +2 -2
  71. package/dist/components/markdown/index.d.ts +1 -1
  72. package/dist/components/meta.json +21 -21
  73. package/dist/components/modal/Modal.vue +6 -6
  74. package/dist/components/modal/Modal.vue.d.ts +3 -3
  75. package/dist/components/nav/Nav.vue.d.ts +3 -3
  76. package/dist/components/nav/NavItem.vue.d.ts +1 -1
  77. package/dist/components/nav/NavItemDropdown.vue.d.ts +4 -4
  78. package/dist/components/navbar/Navbar.vue.d.ts +3 -3
  79. package/dist/components/navbar/NavbarNav.vue.d.ts +2 -2
  80. package/dist/components/navbar/index.d.ts +2 -2
  81. package/dist/components/navbar-menu/NavbarNavMenu.vue.d.ts +2 -2
  82. package/dist/components/page/Page.vue.d.ts +3 -3
  83. package/dist/components/pagination/Pagination.vue +3 -2
  84. package/dist/components/pagination/Pagination.vue.d.ts +3 -3
  85. package/dist/components/pdf-helipad/utils/use-drag.d.ts +2 -2
  86. package/dist/components/pdf-object/PdfObject.vue.d.ts +1 -1
  87. package/dist/components/pdf-object/PdfObjectAddon.vue.d.ts +2 -2
  88. package/dist/components/pdf-object/index.d.ts +3 -3
  89. package/dist/components/pdf-object/utils/use-drag.d.ts +1 -1
  90. package/dist/components/pdf-object/utils/use-drop.d.ts +1 -1
  91. package/dist/components/pdf-object/utils/use-resize.d.ts +2 -2
  92. package/dist/components/pdf-object/utils/use-selector.d.ts +2 -2
  93. package/dist/components/pdf-text/PdfText.vue.d.ts +4 -4
  94. package/dist/components/pdf-viewer/PdfError.vue.d.ts +1 -1
  95. package/dist/components/pdf-viewer/PdfNavigation.vue +2 -0
  96. package/dist/components/pdf-viewer/PdfNavigation.vue.d.ts +1 -1
  97. package/dist/components/pdf-viewer/PdfViewer.vue.d.ts +2 -2
  98. package/dist/components/pdf-viewer/index.d.ts +1 -1
  99. package/dist/components/pdf-viewer/utils/use-idle.d.ts +1 -1
  100. package/dist/components/pdf-viewer/utils/use-sticky.d.ts +2 -2
  101. package/dist/components/pdf-viewer/utils/use-viewer.d.ts +21 -0
  102. package/dist/components/pdf-viewer/utils/use-viewer.mjs +3 -2
  103. package/dist/components/progress/Progress.vue.d.ts +1 -1
  104. package/dist/components/progress-indicator/ProgressIndicator.vue.d.ts +2 -2
  105. package/dist/components/radio/Radio.vue.d.ts +1 -1
  106. package/dist/components/ringbar/Ringbar.vue.d.ts +1 -1
  107. package/dist/components/select/Select.vue +22 -12
  108. package/dist/components/select/SelectInput.vue +14 -3
  109. package/dist/components/select/SelectTags.vue +3 -2
  110. package/dist/components/select/adapter/adapter.d.ts +2 -2
  111. package/dist/components/select/adapter/async-adapter.d.ts +2 -2
  112. package/dist/components/select/adapter/async-adapter.mjs +2 -2
  113. package/dist/components/select/utils/use-on-scroll.d.ts +1 -1
  114. package/dist/components/select/utils/use-on-typing.d.ts +1 -1
  115. package/dist/components/sheet/Sheet.vue +3 -3
  116. package/dist/components/sidebar/Sidebar.vue +5 -4
  117. package/dist/components/sidebar/SidebarContent.vue +19 -25
  118. package/dist/components/sidebar/SidebarContent.vue.d.ts +16 -0
  119. package/dist/components/sidebar/SidebarNav.vue +1 -1
  120. package/dist/components/sidebar/index.d.ts +2 -2
  121. package/dist/components/sidebar-menu/SidebarMenu.vue +5 -5
  122. package/dist/components/sidebar-menu/SidebarMenuItem.vue +2 -2
  123. package/dist/components/sidebar-menu/index.d.ts +4 -4
  124. package/dist/components/signature-draw/SignatureDraw.vue.d.ts +3 -3
  125. package/dist/components/signature-draw/SignatureDrawDesktop.vue.d.ts +3 -3
  126. package/dist/components/signature-draw/SignatureDrawMobile.vue.d.ts +3 -3
  127. package/dist/components/signature-draw/utils/smooth-line.d.ts +1 -1
  128. package/dist/components/signature-draw/utils/straight-line.d.ts +1 -1
  129. package/dist/components/signature-draw/utils/use-draw.d.ts +1 -1
  130. package/dist/components/signature-text/SignatureText.vue.d.ts +3 -3
  131. package/dist/components/steps/Step.vue.d.ts +2 -2
  132. package/dist/components/steps/Steps.vue.d.ts +4 -4
  133. package/dist/components/steps/index.d.ts +1 -1
  134. package/dist/components/subheading/Subheading.vue.d.ts +3 -3
  135. package/dist/components/table/Table.vue.d.ts +2 -2
  136. package/dist/components/table/index.d.ts +2 -2
  137. package/dist/components/table-flex/TableFlex.vue +7 -3
  138. package/dist/components/table-static/TableStatic.vue +34 -6
  139. package/dist/components/table-static/TableStaticRoot.vue +1 -1
  140. package/dist/components/tabs/TabContent.vue +1 -1
  141. package/dist/components/tabs/Tabs.vue +5 -3
  142. package/dist/components/text/Text.vue.d.ts +4 -4
  143. package/dist/components/textarea/Textarea.vue.d.ts +4 -3
  144. package/dist/components/toast/Toast.vue +75 -5
  145. package/dist/components/toast/Toast.vue.d.ts +16 -2
  146. package/dist/components/toast/ToastContainer.vue +6 -12
  147. package/dist/components/toast/ToastContainer.vue.d.ts +6 -134
  148. package/dist/components/toast/ToastRoot.vue +1 -3
  149. package/dist/components/toast/ToastRoot.vue.d.ts +2 -2
  150. package/dist/components/toast/index.d.ts +3 -1
  151. package/dist/components/toggle/Toggle.vue.d.ts +1 -1
  152. package/dist/components/tooltip/Tooltip.vue.d.ts +3 -3
  153. package/dist/components/tooltip/TooltipContainer.vue.d.ts +1 -1
  154. package/dist/components/tooltip/index.d.ts +1 -1
  155. package/dist/components/tooltip/utils/parse-bindings.d.ts +2 -2
  156. package/dist/components/tour/TourDialog.vue.d.ts +1 -1
  157. package/dist/components/tour/TourHighlight.vue.d.ts +1 -1
  158. package/dist/components/tour/core/step/conditional.d.ts +2 -2
  159. package/dist/components/tour/core/tour.d.ts +2 -1
  160. package/dist/components/tour/index.d.ts +1 -1
  161. package/dist/components/truncate/Truncate.vue +1 -8
  162. package/dist/components/utils/date.d.ts +2 -1
  163. package/dist/components/utils/vnode.d.ts +1 -1
  164. package/dist/components/wizard/Wizard.vue.d.ts +2 -2
  165. package/dist/components/wizard/WizardBody.vue.d.ts +1 -1
  166. package/dist/components/wizard/WizardStep.vue.d.ts +2 -2
  167. package/dist/core/index.d.ts +2 -1
  168. package/dist/core/index.mjs +3 -0
  169. package/dist/module.json +1 -1
  170. package/dist/module.mjs +1 -1
  171. package/package.json +7 -7
@@ -1,5 +1,5 @@
1
- import { InjectionKey } from 'vue-demi';
2
- import { StyleVariant, AlignVariant } from '../nav';
1
+ import type { InjectionKey } from 'vue-demi';
2
+ import type { StyleVariant, AlignVariant } from '../nav';
3
3
  export type TypeVariant = 'wide' | 'narrow';
4
4
  export interface SidebarSettings {
5
5
  variant: StyleVariant;
@@ -64,13 +64,13 @@
64
64
  </template>
65
65
 
66
66
  <script lang="ts" setup>
67
- import { PropType } from 'vue-demi'
67
+ import type { PropType } from 'vue-demi'
68
68
  import Sidebar from '../sidebar/Sidebar.vue'
69
- import { TypeVariant } from '../sidebar'
69
+ import type { TypeVariant } from '../sidebar'
70
70
  import SidebarNav from '../sidebar/SidebarNav.vue'
71
- import { Menu } from '.'
72
- import { AlignVariant } from '../nav'
73
- import { ToggleableVariant } from '../navbar'
71
+ import type { Menu } from '.'
72
+ import type { AlignVariant } from '../nav'
73
+ import type { ToggleableVariant } from '../navbar'
74
74
  import NavCollapse from '../nav/NavCollapse.vue'
75
75
  import SidebarMenuItem from './SidebarMenuItem.vue'
76
76
 
@@ -51,8 +51,8 @@
51
51
  </template>
52
52
 
53
53
  <script lang="ts" setup>
54
- import { PropType } from 'vue-demi'
55
- import { Menu, MenuItem } from '.'
54
+ import type { PropType } from 'vue-demi'
55
+ import type { Menu, MenuItem } from '.'
56
56
  import NavItem from '../nav/NavItem.vue'
57
57
  import NavSubItem from '../nav/NavSubItem.vue'
58
58
  import SidebarNav from '../sidebar/SidebarNav.vue'
@@ -1,7 +1,7 @@
1
- import { HTMLAttributes } from 'vue-demi';
2
- import { Component } from '../global/use-singleton';
3
- import { AlignVariant } from '../nav';
4
- import { LiteralUnion } from 'type-fest';
1
+ import type { HTMLAttributes } from 'vue-demi';
2
+ import type { Component } from '../global/use-singleton';
3
+ import type { AlignVariant } from '../nav';
4
+ import type { LiteralUnion } from 'type-fest';
5
5
  type Access = LiteralUnion<'*', string>;
6
6
  interface AdditionalAttr extends HTMLAttributes {
7
7
  [key: string]: unknown;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { ModelModifier } from '../dropzone';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { ModelModifier } from '../dropzone';
3
3
  import { createSpinner } from '../avatar/utils/create-image';
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  modelValue: {
@@ -90,10 +90,10 @@ declare const _default: import("vue-demi").DefineComponent<{
90
90
  }, {
91
91
  color: string;
92
92
  modelValue: string | File;
93
+ placeholder: string;
93
94
  modelModifiers: ModelModifier;
94
95
  width: number;
95
96
  height: number;
96
- placeholder: string;
97
97
  resetLabel: string;
98
98
  openDrawLabel: string;
99
99
  closeDrawLabel: string;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { ModelModifier } from '../dropzone';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { ModelModifier } from '../dropzone';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  modelValue: {
5
5
  type: (StringConstructor | {
@@ -74,10 +74,10 @@ declare const _default: import("vue-demi").DefineComponent<{
74
74
  }, {
75
75
  color: string;
76
76
  modelValue: string | File;
77
+ placeholder: string;
77
78
  modelModifiers: ModelModifier;
78
79
  width: number;
79
80
  height: number;
80
- placeholder: string;
81
81
  resetLabel: string;
82
82
  }, {}>;
83
83
  export default _default;
@@ -1,5 +1,5 @@
1
- import { PropType, StyleValue } from 'vue-demi';
2
- import { ModelModifier } from '../dropzone';
1
+ import type { PropType, StyleValue } from 'vue-demi';
2
+ import type { ModelModifier } from '../dropzone';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  modelValue: {
5
5
  type: (StringConstructor | {
@@ -95,10 +95,10 @@ declare const _default: import("vue-demi").DefineComponent<{
95
95
  }, {
96
96
  color: string;
97
97
  modelValue: string | File;
98
+ placeholder: string;
98
99
  modelModifiers: ModelModifier;
99
100
  width: number;
100
101
  height: number;
101
- placeholder: string;
102
102
  resetLabel: string;
103
103
  openDrawLabel: string;
104
104
  closeDrawLabel: string;
@@ -1,4 +1,4 @@
1
- import { DrawLineCoordinate } from './canvas';
1
+ import type { DrawLineCoordinate } from './canvas';
2
2
  /**
3
3
  * Smoothing Line for Signature Draw
4
4
  *
@@ -1,4 +1,4 @@
1
- import { DrawLineCoordinate } from './canvas';
1
+ import type { DrawLineCoordinate } from './canvas';
2
2
  export declare class StraightLine {
3
3
  protected lastX: number;
4
4
  protected lastY: number;
@@ -1,5 +1,5 @@
1
1
  import type { InteractEvent } from '@interactjs/types';
2
- import { Ref } from 'vue-demi';
2
+ import type { Ref } from 'vue-demi';
3
3
  export interface DrawHooks {
4
4
  onstart?: (event: InteractEvent) => void;
5
5
  onmove?: (event: InteractEvent) => void;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { ModelModifier } from '../dropzone';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { ModelModifier } from '../dropzone';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  modelValue: {
5
5
  type: (StringConstructor | {
@@ -89,9 +89,9 @@ declare const _default: import("vue-demi").DefineComponent<{
89
89
  text: string;
90
90
  modelValue: string | File;
91
91
  modelModifiers: ModelModifier;
92
+ font: string;
92
93
  width: number;
93
94
  height: number;
94
- font: string;
95
95
  maxlength: string | number;
96
96
  maxwords: string | number;
97
97
  }, {}>;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { TravelHook } from '.';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { TravelHook } from '.';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  onBeforePrev: {
5
5
  type: PropType<TravelHook>;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { TravelHook, FinishedHook, DirectionVariant, AnimationVariant } from '.';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { TravelHook, FinishedHook, DirectionVariant, AnimationVariant } from '.';
3
3
  declare const _default: import("vue-demi").DefineComponent<{
4
4
  modelValue: {
5
5
  type: NumberConstructor;
@@ -73,9 +73,9 @@ declare const _default: import("vue-demi").DefineComponent<{
73
73
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
74
74
  }, {
75
75
  modelValue: number;
76
- direction: DirectionVariant;
77
- loop: boolean;
78
76
  animation: AnimationVariant;
77
+ loop: boolean;
78
+ direction: DirectionVariant;
79
79
  onBeforePrev: TravelHook;
80
80
  onBeforeNext: TravelHook;
81
81
  keepAlive: boolean;
@@ -1,4 +1,4 @@
1
- import { ComputedRef, InjectionKey, Ref } from 'vue-demi';
1
+ import type { ComputedRef, InjectionKey, Ref } from 'vue-demi';
2
2
  export type TravelHook = (to: number, from: number) => boolean | Promise<boolean>;
3
3
  export type FinishedHook = () => void | Promise<void>;
4
4
  export type DirectionVariant = 'horizontal' | 'vertical';
@@ -1,6 +1,6 @@
1
- import { PropType } from 'vue-demi';
2
- import { SizeVariant } from '.';
3
- import { WeightVariant, TransformVariant } from '../heading';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { SizeVariant } from '.';
3
+ import type { WeightVariant, TransformVariant } from '../heading';
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  size: {
6
6
  type: PropType<SizeVariant>;
@@ -1,5 +1,5 @@
1
- import { PropType } from 'vue-demi';
2
- import { TableField } from '.';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { TableField } from '.';
3
3
  type TypeVariant = 'flexible' | 'static';
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  variant: {
@@ -1,5 +1,5 @@
1
- import { HTMLAttributes } from 'vue-demi';
2
- import { LiteralUnion } from 'type-fest';
1
+ import type { HTMLAttributes } from 'vue-demi';
2
+ import type { LiteralUnion } from 'type-fest';
3
3
  export type KeyType<T> = LiteralUnion<keyof T & string, string>;
4
4
  export type LabelType<T> = LiteralUnion<Capitalize<keyof T & string>, string>;
5
5
  export type ApperanceVariant = 'card' | 'table';
@@ -108,19 +108,23 @@
108
108
  </template>
109
109
 
110
110
  <script lang="ts" setup generic="T">
111
- import {
112
- computed,
111
+ import type {
113
112
  HTMLAttributes,
114
113
  PropType,
115
114
  VNode,
116
115
  } from 'vue-demi'
117
116
  import {
117
+ computed,
118
+ } from 'vue-demi'
119
+ import type {
118
120
  ApperanceVariant,
119
121
  TableField,
122
+ KeyType,
123
+ } from '../table'
124
+ import {
120
125
  withKey,
121
126
  withoutKey,
122
127
  withUnit,
123
- KeyType,
124
128
  } from '../table'
125
129
  import Checkbox from '../checkbox/Checkbox.vue'
126
130
  import { useVModel } from '../input'
@@ -107,19 +107,23 @@
107
107
  </template>
108
108
 
109
109
  <script lang="ts" setup generic="T">
110
- import {
111
- computed,
110
+ import type {
112
111
  HTMLAttributes,
113
112
  PropType,
114
113
  VNode,
115
114
  } from 'vue-demi'
116
115
  import {
116
+ computed,
117
+ } from 'vue-demi'
118
+ import type {
117
119
  ApperanceVariant,
118
120
  TableField,
121
+ KeyType,
122
+ } from '../table'
123
+ import {
119
124
  withKey,
120
125
  withoutKey,
121
126
  withUnit,
122
- KeyType,
123
127
  } from '../table'
124
128
  import Checkbox from '../checkbox/Checkbox.vue'
125
129
  import TableStaticRoot from './TableStaticRoot.vue'
@@ -200,7 +204,7 @@ const rows = computed<T[]>({
200
204
  })
201
205
 
202
206
  const classNames = computed(() => {
203
- const result: string[] = []
207
+ const result: string[] = ['table-static']
204
208
 
205
209
  if (props.apperance)
206
210
  result.push(`table-static--${props.apperance}`)
@@ -269,7 +273,27 @@ defineSlots<{
269
273
  @apply w-full;
270
274
 
271
275
  &__table {
272
- @apply min-w-full table;
276
+ @apply table;
277
+ }
278
+
279
+ &:not(&--scrollable) {
280
+ &.table-static__table {
281
+ @apply max-w-full;
282
+ }
283
+
284
+ & .table-static__row > .table-static__cell {
285
+ @apply whitespace-pre-wrap;
286
+ }
287
+ }
288
+
289
+ &:where(&--scrollable) {
290
+ .table-static__table {
291
+ @apply min-w-full;
292
+ }
293
+
294
+ & .table-static__row > .table-static__cell {
295
+ @apply whitespace-pre;
296
+ }
273
297
  }
274
298
 
275
299
  &__headers {
@@ -291,7 +315,7 @@ defineSlots<{
291
315
  }
292
316
 
293
317
  & &__row > &__cell {
294
- @apply ml-2 py-4 px-3 text-sm text-default whitespace-pre;
318
+ @apply ml-2 py-4 px-3 text-sm text-default;
295
319
  @apply dark:text-dark-default;
296
320
 
297
321
  &.table-static__drag {
@@ -320,6 +344,10 @@ defineSlots<{
320
344
  .table-static__headers .table-static__header {
321
345
  @apply border-0;
322
346
  }
347
+
348
+ .table-static__row .table-static__cell {
349
+ @apply align-top;
350
+ }
323
351
  }
324
352
 
325
353
  &--card {
@@ -21,7 +21,7 @@
21
21
  </template>
22
22
 
23
23
  <script lang="ts" setup>
24
- import { HTMLAttributes, PropType } from 'vue-demi'
24
+ import type { HTMLAttributes, PropType } from 'vue-demi'
25
25
 
26
26
  defineOptions({ inheritAttrs: false })
27
27
 
@@ -3,8 +3,8 @@
3
3
  </template>
4
4
 
5
5
  <script lang="ts" setup>
6
+ import type { VNode } from 'vue-demi'
6
7
  import {
7
- VNode,
8
8
  Transition,
9
9
  h,
10
10
  ref,
@@ -53,14 +53,16 @@
53
53
  </template>
54
54
 
55
55
  <script lang="ts" setup>
56
- import {
56
+ import type {
57
57
  VNode,
58
58
  PropType,
59
- computed,
60
59
  Slots,
61
60
  } from 'vue-demi'
62
- import Nav from '../nav/Nav.vue'
63
61
  import {
62
+ computed,
63
+ } from 'vue-demi'
64
+ import Nav from '../nav/Nav.vue'
65
+ import type {
64
66
  StyleVariant as TabsStyleVariant,
65
67
  AlignVariant as TabsAlignVariant,
66
68
  } from '../nav'
@@ -1,6 +1,6 @@
1
- import { PropType } from 'vue-demi';
2
- import { StyleVariant, ElementVariant } from '.';
3
- import { WeightVariant, TransformVariant } from '../heading';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { StyleVariant, ElementVariant } from '.';
3
+ import type { WeightVariant, TransformVariant } from '../heading';
4
4
  declare const _default: import("vue-demi").DefineComponent<{
5
5
  variant: {
6
6
  type: PropType<StyleVariant>;
@@ -49,8 +49,8 @@ declare const _default: import("vue-demi").DefineComponent<{
49
49
  }>>, {
50
50
  variant: StyleVariant;
51
51
  href: string;
52
+ element: ElementVariant;
52
53
  weight: WeightVariant;
53
54
  transform: TransformVariant;
54
- element: ElementVariant;
55
55
  }, {}>;
56
56
  export default _default;
@@ -1,5 +1,6 @@
1
- import { AcceptVariant, checkOnInput } from '../input';
2
- import { PropType } from 'vue-demi';
1
+ import type { AcceptVariant } from '../input';
2
+ import { checkOnInput } from '../input';
3
+ import type { PropType } from 'vue-demi';
3
4
  declare const _default: import("vue-demi").DefineComponent<{
4
5
  modelValue: {
5
6
  type: StringConstructor;
@@ -107,8 +108,8 @@ declare const _default: import("vue-demi").DefineComponent<{
107
108
  disabled: boolean;
108
109
  readonly: boolean;
109
110
  placeholder: string;
110
- maxlength: string | number;
111
111
  accept: AcceptVariant;
112
+ maxlength: string | number;
112
113
  showCounter: boolean;
113
114
  rows: string | number;
114
115
  autoGrow: boolean;
@@ -2,7 +2,10 @@
2
2
  <div
3
3
  data-testid="toast"
4
4
  :class="classNames">
5
- <div class="toast__icon">
5
+ <div
6
+ class="toast__icon"
7
+ data-testid="toast-icon"
8
+ :class="classIcon">
6
9
  <slot name="icon">
7
10
  <component
8
11
  :is="toastIcon"
@@ -56,7 +59,10 @@ export default defineComponent({
56
59
  type: String,
57
60
  required: true
58
61
  },
59
- text: { type: String },
62
+ text: {
63
+ type: String,
64
+ default: ""
65
+ },
60
66
  type: {
61
67
  type: String,
62
68
  default: "info"
@@ -68,6 +74,10 @@ export default defineComponent({
68
74
  duration: {
69
75
  type: Number,
70
76
  default: 3e3
77
+ },
78
+ iconColor: {
79
+ type: String,
80
+ default: void 0
71
81
  }
72
82
  },
73
83
  emits: ["dismissed"],
@@ -81,6 +91,12 @@ export default defineComponent({
81
91
  result.push(`toast--${props.variant}`);
82
92
  return result;
83
93
  });
94
+ const classIcon = computed(() => {
95
+ const result = ["default"];
96
+ if (props.iconColor)
97
+ result.push(`toast__icon--${props.iconColor}`);
98
+ return result;
99
+ });
84
100
  const toastIcon = computed(() => {
85
101
  return ToastIcons[props.type];
86
102
  });
@@ -101,6 +117,7 @@ export default defineComponent({
101
117
  return {
102
118
  classNames,
103
119
  toastIcon,
120
+ classIcon,
104
121
  close
105
122
  };
106
123
  }
@@ -109,6 +126,9 @@ export default defineComponent({
109
126
 
110
127
  <style lang="postcss">
111
128
  .toast {
129
+ --p-toast-icon-color-primary: theme(textColor.brand.accent);
130
+ --p-toast-icon-color-primary-dark: theme(textColor.dark.brand.accent);
131
+
112
132
  /**
113
133
  * global style
114
134
  * of toast
@@ -130,15 +150,15 @@ export default defineComponent({
130
150
  }
131
151
 
132
152
  .toast__body {
133
- @apply py-4 pr-4 grow space-y-2 flex flex-col;
153
+ @apply py-4 pr-4 grow space-y-2 flex flex-col overflow-hidden;
134
154
  }
135
155
 
136
156
  .toast__title {
137
- @apply text-sm font-medium leading-[1.75];
157
+ @apply text-sm font-medium leading-[1.75] truncate;
138
158
  }
139
159
 
140
160
  .toast__text {
141
- @apply text-xs;
161
+ @apply text-xs truncate;
142
162
  }
143
163
 
144
164
  /**
@@ -177,6 +197,31 @@ export default defineComponent({
177
197
  .toast__icon {
178
198
  @apply bg-base text-info;
179
199
  @apply dark:bg-dark-base dark:text-dark-info;
200
+
201
+ &--default {
202
+ @apply text-default;
203
+ @apply dark:text-dark-default;
204
+ }
205
+
206
+ &--warning {
207
+ @apply text-warning;
208
+ @apply dark:text-dark-warning;
209
+ }
210
+
211
+ &--success {
212
+ @apply text-success;
213
+ @apply dark:text-dark-success;
214
+ }
215
+
216
+ &--primary {
217
+ @apply text-[color:var(--p-toast-icon-color-primary)];
218
+ @apply dark:text-[color:var(--p-toast-icon-color-primary-dark)];
219
+ }
220
+
221
+ &--danger {
222
+ @apply text-danger;
223
+ @apply dark:text-danger;
224
+ }
180
225
  }
181
226
  .toast__title {
182
227
  @apply text-default;
@@ -272,6 +317,31 @@ export default defineComponent({
272
317
  &&--filled {
273
318
  .toast__icon {
274
319
  @apply items-start;
320
+
321
+ &--default {
322
+ @apply text-on-emphasis;
323
+ @apply dark:text-dark-on-emphasis;
324
+ }
325
+
326
+ &--warning {
327
+ @apply text-warning;
328
+ @apply dark:text-dark-warning;
329
+ }
330
+
331
+ &--success {
332
+ @apply text-success;
333
+ @apply dark:text-dark-success;
334
+ }
335
+
336
+ &--primary {
337
+ @apply text-[color:var(--p-toast-icon-color-primary)];
338
+ @apply dark:text-[color:var(--p-toast-icon-color-primary-dark)];
339
+ }
340
+
341
+ &--danger {
342
+ @apply text-danger;
343
+ @apply dark:text-danger;
344
+ }
275
345
  }
276
346
 
277
347
  &:not(.toast--info) {
@@ -1,5 +1,6 @@
1
- import { PropType } from 'vue-demi';
2
- import { ToastStyleVariant, ToastTypeVariant } from '.';
1
+ import type { PropType } from 'vue-demi';
2
+ import type { ToastStyleVariant, ToastTypeVariant } from '.';
3
+ import type { ColorVariant } from '../button';
3
4
  declare const _default: import("vue-demi").DefineComponent<{
4
5
  title: {
5
6
  type: StringConstructor;
@@ -7,6 +8,7 @@ declare const _default: import("vue-demi").DefineComponent<{
7
8
  };
8
9
  text: {
9
10
  type: StringConstructor;
11
+ default: string;
10
12
  };
11
13
  type: {
12
14
  type: PropType<ToastTypeVariant>;
@@ -20,9 +22,14 @@ declare const _default: import("vue-demi").DefineComponent<{
20
22
  type: NumberConstructor;
21
23
  default: number;
22
24
  };
25
+ iconColor: {
26
+ type: PropType<ColorVariant>;
27
+ default: undefined;
28
+ };
23
29
  }, {
24
30
  classNames: import("vue-demi").ComputedRef<string[]>;
25
31
  toastIcon: import("vue-demi").ComputedRef<any>;
32
+ classIcon: import("vue-demi").ComputedRef<string[]>;
26
33
  close: () => void;
27
34
  }, 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<{
28
35
  title: {
@@ -31,6 +38,7 @@ declare const _default: import("vue-demi").DefineComponent<{
31
38
  };
32
39
  text: {
33
40
  type: StringConstructor;
41
+ default: string;
34
42
  };
35
43
  type: {
36
44
  type: PropType<ToastTypeVariant>;
@@ -44,11 +52,17 @@ declare const _default: import("vue-demi").DefineComponent<{
44
52
  type: NumberConstructor;
45
53
  default: number;
46
54
  };
55
+ iconColor: {
56
+ type: PropType<ColorVariant>;
57
+ default: undefined;
58
+ };
47
59
  }>> & {
48
60
  onDismissed?: ((...args: any[]) => any) | undefined;
49
61
  }, {
50
62
  variant: ToastStyleVariant;
51
63
  type: ToastTypeVariant;
64
+ text: string;
52
65
  duration: number;
66
+ iconColor: ColorVariant;
53
67
  }, {}>;
54
68
  export default _default;
@@ -14,6 +14,7 @@
14
14
  :type="item.type"
15
15
  :variant="item.variant"
16
16
  :duration="item.duration"
17
+ :icon-color="item.iconColor"
17
18
  :class="item.toastClass"
18
19
  @dismissed="remove(i)">
19
20
  <template #icon>
@@ -38,7 +39,6 @@ import {
38
39
  ref
39
40
  } from "vue-demi";
40
41
  import Toast from "./Toast.vue";
41
- import { startsWith } from "lodash-es";
42
42
  export default defineComponent({
43
43
  components: { Toast },
44
44
  props: {
@@ -56,17 +56,11 @@ export default defineComponent({
56
56
  return result;
57
57
  });
58
58
  function add(option) {
59
- if (startsWith(option.position, "bottom")) {
60
- items.value.push({
61
- ...option,
62
- _id: Symbol("id")
63
- });
64
- } else {
65
- items.value.unshift({
66
- ...option,
67
- _id: Symbol("id")
68
- });
69
- }
59
+ const item = { ...option, _id: Symbol("id") };
60
+ if (props.position.startsWith("bottom"))
61
+ items.value.push(item);
62
+ else
63
+ items.value.unshift(item);
70
64
  }
71
65
  function remove(index) {
72
66
  items.value.splice(index, 1);