@scalar/components 0.12.8 → 0.12.10

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 (156) hide show
  1. package/dist/components/ScalarButton/ScalarButton.spec.d.ts +2 -0
  2. package/dist/components/ScalarButton/ScalarButton.spec.d.ts.map +1 -0
  3. package/dist/components/ScalarButton/ScalarButton.stories.d.ts +687 -0
  4. package/dist/components/ScalarButton/ScalarButton.stories.d.ts.map +1 -0
  5. package/dist/components/ScalarButton/ScalarButton.vue.d.ts +63 -0
  6. package/dist/components/ScalarButton/ScalarButton.vue.d.ts.map +1 -0
  7. package/dist/components/ScalarButton/index.d.ts +3 -0
  8. package/dist/components/ScalarButton/index.d.ts.map +1 -0
  9. package/dist/components/ScalarButton/variants.d.ts +64 -0
  10. package/dist/components/ScalarButton/variants.d.ts.map +1 -0
  11. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts +2 -0
  12. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.spec.d.ts.map +1 -0
  13. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.stories.d.ts +164 -0
  14. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.stories.d.ts.map +1 -0
  15. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts +39 -0
  16. package/dist/components/ScalarCodeBlock/ScalarCodeBlock.vue.d.ts.map +1 -0
  17. package/dist/components/ScalarCodeBlock/index.d.ts +2 -0
  18. package/dist/components/ScalarCodeBlock/index.d.ts.map +1 -0
  19. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts +2 -0
  20. package/dist/components/ScalarDropdown/ScalarDropdown.spec.d.ts.map +1 -0
  21. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts +511 -0
  22. package/dist/components/ScalarDropdown/ScalarDropdown.stories.d.ts.map +1 -0
  23. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts +23 -0
  24. package/dist/components/ScalarDropdown/ScalarDropdown.vue.d.ts.map +1 -0
  25. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts +3 -0
  26. package/dist/components/ScalarDropdown/ScalarDropdownDivider.vue.d.ts.map +1 -0
  27. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts +29 -0
  28. package/dist/components/ScalarDropdown/ScalarDropdownItem.vue.d.ts.map +1 -0
  29. package/dist/components/ScalarDropdown/index.d.ts +4 -0
  30. package/dist/components/ScalarDropdown/index.d.ts.map +1 -0
  31. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts +2 -0
  32. package/dist/components/ScalarFloating/ScalarFloating.spec.d.ts.map +1 -0
  33. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts +6 -0
  34. package/dist/components/ScalarFloating/ScalarFloating.stories.d.ts.map +1 -0
  35. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts +45 -0
  36. package/dist/components/ScalarFloating/ScalarFloating.vue.d.ts.map +1 -0
  37. package/dist/components/ScalarFloating/index.d.ts +3 -0
  38. package/dist/components/ScalarFloating/index.d.ts.map +1 -0
  39. package/dist/components/ScalarFloating/types.d.ts +30 -0
  40. package/dist/components/ScalarFloating/types.d.ts.map +1 -0
  41. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts +10 -0
  42. package/dist/components/ScalarFloating/useResizeWithTarget.d.ts.map +1 -0
  43. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts +2 -0
  44. package/dist/components/ScalarFloating/useResizeWithTarget.spec.d.ts.map +1 -0
  45. package/dist/components/ScalarIcon/IconList.vue.d.ts +3 -0
  46. package/dist/components/ScalarIcon/IconList.vue.d.ts.map +1 -0
  47. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts +2 -0
  48. package/dist/components/ScalarIcon/ScalarIcon.spec.d.ts.map +1 -0
  49. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts +101 -0
  50. package/dist/components/ScalarIcon/ScalarIcon.stories.d.ts.map +1 -0
  51. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts +78 -0
  52. package/dist/components/ScalarIcon/ScalarIcon.vue.d.ts.map +1 -0
  53. package/dist/components/ScalarIcon/icons/icons.d.ts +2 -0
  54. package/dist/components/ScalarIcon/icons/icons.d.ts.map +1 -0
  55. package/dist/components/ScalarIcon/icons/index.d.ts +7 -0
  56. package/dist/components/ScalarIcon/icons/index.d.ts.map +1 -0
  57. package/dist/components/ScalarIcon/index.d.ts +3 -0
  58. package/dist/components/ScalarIcon/index.d.ts.map +1 -0
  59. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts +2 -0
  60. package/dist/components/ScalarIconButton/ScalarIconButton.spec.d.ts.map +1 -0
  61. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts +77 -0
  62. package/dist/components/ScalarIconButton/ScalarIconButton.stories.d.ts.map +1 -0
  63. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts +103 -0
  64. package/dist/components/ScalarIconButton/ScalarIconButton.vue.d.ts.map +1 -0
  65. package/dist/components/ScalarIconButton/index.d.ts +2 -0
  66. package/dist/components/ScalarIconButton/index.d.ts.map +1 -0
  67. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts +2 -0
  68. package/dist/components/ScalarListbox/ScalarListbox.spec.d.ts.map +1 -0
  69. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts +173 -0
  70. package/dist/components/ScalarListbox/ScalarListbox.stories.d.ts.map +1 -0
  71. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts +63 -0
  72. package/dist/components/ScalarListbox/ScalarListbox.vue.d.ts.map +1 -0
  73. package/dist/components/ScalarListbox/index.d.ts +3 -0
  74. package/dist/components/ScalarListbox/index.d.ts.map +1 -0
  75. package/dist/components/ScalarListbox/types.d.ts +7 -0
  76. package/dist/components/ScalarListbox/types.d.ts.map +1 -0
  77. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts +2 -0
  78. package/dist/components/ScalarLoading/ScalarLoading.spec.d.ts.map +1 -0
  79. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts +274 -0
  80. package/dist/components/ScalarLoading/ScalarLoading.stories.d.ts.map +1 -0
  81. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts +48 -0
  82. package/dist/components/ScalarLoading/ScalarLoading.vue.d.ts.map +1 -0
  83. package/dist/components/ScalarLoading/index.d.ts +2 -0
  84. package/dist/components/ScalarLoading/index.d.ts.map +1 -0
  85. package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts +93 -0
  86. package/dist/components/ScalarMarkdown/ScalarMarkdown.stories.d.ts.map +1 -0
  87. package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts +32 -0
  88. package/dist/components/ScalarMarkdown/ScalarMarkdown.vue.d.ts.map +1 -0
  89. package/dist/components/ScalarMarkdown/index.d.ts +2 -0
  90. package/dist/components/ScalarMarkdown/index.d.ts.map +1 -0
  91. package/dist/components/ScalarModal/ScalarModal.spec.d.ts +2 -0
  92. package/dist/components/ScalarModal/ScalarModal.spec.d.ts.map +1 -0
  93. package/dist/components/ScalarModal/ScalarModal.stories.d.ts +145 -0
  94. package/dist/components/ScalarModal/ScalarModal.stories.d.ts.map +1 -0
  95. package/dist/components/ScalarModal/ScalarModal.vue.d.ts +53 -0
  96. package/dist/components/ScalarModal/ScalarModal.vue.d.ts.map +1 -0
  97. package/dist/components/ScalarModal/index.d.ts +4 -0
  98. package/dist/components/ScalarModal/index.d.ts.map +1 -0
  99. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts +2 -0
  100. package/dist/components/ScalarPopover/ScalarPopover.spec.d.ts.map +1 -0
  101. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts +465 -0
  102. package/dist/components/ScalarPopover/ScalarPopover.stories.d.ts.map +1 -0
  103. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts +23 -0
  104. package/dist/components/ScalarPopover/ScalarPopover.vue.d.ts.map +1 -0
  105. package/dist/components/ScalarPopover/index.d.ts +2 -0
  106. package/dist/components/ScalarPopover/index.d.ts.map +1 -0
  107. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts +2 -0
  108. package/dist/components/ScalarSearchInput/ScalarSearchInput.spec.d.ts.map +1 -0
  109. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts +389 -0
  110. package/dist/components/ScalarSearchInput/ScalarSearchInput.stories.d.ts.map +1 -0
  111. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts +32 -0
  112. package/dist/components/ScalarSearchInput/ScalarSearchInput.vue.d.ts.map +1 -0
  113. package/dist/components/ScalarSearchInput/index.d.ts +2 -0
  114. package/dist/components/ScalarSearchInput/index.d.ts.map +1 -0
  115. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts +31 -0
  116. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.d.ts.map +1 -0
  117. package/dist/components/ScalarSearchResults/ScalarSearchResultItem.vue.js +21 -20
  118. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts +26 -0
  119. package/dist/components/ScalarSearchResults/ScalarSearchResultList.vue.d.ts.map +1 -0
  120. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts +2 -0
  121. package/dist/components/ScalarSearchResults/ScalarSearchResults.spec.d.ts.map +1 -0
  122. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts +200 -0
  123. package/dist/components/ScalarSearchResults/ScalarSearchResults.stories.d.ts.map +1 -0
  124. package/dist/components/ScalarSearchResults/index.d.ts +3 -0
  125. package/dist/components/ScalarSearchResults/index.d.ts.map +1 -0
  126. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts +2 -0
  127. package/dist/components/ScalarTextField/ScalarTextField.spec.d.ts.map +1 -0
  128. package/dist/components/ScalarTextField/ScalarTextField.stories.d.ts +820 -0
  129. package/dist/components/ScalarTextField/ScalarTextField.stories.d.ts.map +1 -0
  130. package/dist/components/ScalarTextField/ScalarTextField.vue.d.ts +75 -0
  131. package/dist/components/ScalarTextField/ScalarTextField.vue.d.ts.map +1 -0
  132. package/dist/components/ScalarTextField/index.d.ts +2 -0
  133. package/dist/components/ScalarTextField/index.d.ts.map +1 -0
  134. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts +2 -0
  135. package/dist/components/ScalarTooltip/ScalarTooltip.spec.d.ts.map +1 -0
  136. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts +858 -0
  137. package/dist/components/ScalarTooltip/ScalarTooltip.stories.d.ts.map +1 -0
  138. package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts +66 -0
  139. package/dist/components/ScalarTooltip/ScalarTooltip.vue.d.ts.map +1 -0
  140. package/dist/components/ScalarTooltip/ScalarTooltip.vue.js +22 -18
  141. package/dist/components/ScalarTooltip/index.d.ts +2 -0
  142. package/dist/components/ScalarTooltip/index.d.ts.map +1 -0
  143. package/dist/cva.d.ts +18 -0
  144. package/dist/cva.d.ts.map +1 -0
  145. package/dist/helpers/add-scalar-classes.d.ts +5 -0
  146. package/dist/helpers/add-scalar-classes.d.ts.map +1 -0
  147. package/dist/helpers/index.d.ts +2 -0
  148. package/dist/helpers/index.d.ts.map +1 -0
  149. package/dist/helpers/oas-utils.d.ts +19 -0
  150. package/dist/helpers/oas-utils.d.ts.map +1 -0
  151. package/dist/index.d.ts +19 -1002
  152. package/dist/index.d.ts.map +1 -0
  153. package/dist/scripts/typegen.d.ts +2 -0
  154. package/dist/scripts/typegen.d.ts.map +1 -0
  155. package/dist/style.css +1 -1
  156. package/package.json +8 -8
package/dist/index.d.ts CHANGED
@@ -1,1002 +1,19 @@
1
- import { ComponentOptionsMixin } from 'vue';
2
- import { DefineComponent } from 'vue';
3
- import { ExtractPropTypes } from 'vue';
4
- import { Middleware } from '@floating-ui/vue';
5
- import { MiddlewareData } from '@floating-ui/vue';
6
- import { Placement } from '@floating-ui/vue';
7
- import { PropType } from 'vue';
8
- import { PublicProps } from 'vue';
9
- import { VariantProps } from 'cva';
10
-
11
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
- disabled?: boolean;
13
- fullWidth?: boolean;
14
- loading?: LoadingState;
15
- size?: Variants["size"];
16
- variant?: Variants["variant"];
17
- type?: "button" | "submit" | "reset";
18
- }>, {
19
- fullWidth: boolean;
20
- size: string;
21
- variant: string;
22
- type: string;
23
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
24
- disabled?: boolean;
25
- fullWidth?: boolean;
26
- loading?: LoadingState;
27
- size?: Variants["size"];
28
- variant?: Variants["variant"];
29
- type?: "button" | "submit" | "reset";
30
- }>, {
31
- fullWidth: boolean;
32
- size: string;
33
- variant: string;
34
- type: string;
35
- }>>>, {
36
- size: "sm" | "md";
37
- type: "button" | "submit" | "reset";
38
- variant: string;
39
- fullWidth: boolean;
40
- }, {}>;
41
-
42
- declare const __VLS_component_10: DefineComponent<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_16<{
43
- modelValue: string;
44
- placeholder?: string;
45
- label?: string;
46
- /** This color creates a mask over the input outline and should be set to the background color behind the textField */
47
- labelShadowColor?: string;
48
- error?: boolean;
49
- isMultiline?: boolean;
50
- helperText?: string;
51
- emitOnBlur?: boolean;
52
- handleFieldSubmit?: (e: string) => void;
53
- handleFieldChange?: (e: string) => void;
54
- /** Option to disable trimming for input fields */
55
- disableTrim?: boolean;
56
- }>, {
57
- emitOnBlur: boolean;
58
- labelShadowColor: string;
59
- disableTrim: boolean;
60
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
61
- submit: (v: string) => void;
62
- "update:modelValue": (v: string) => void;
63
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_8<__VLS_TypePropsToRuntimeProps_16<{
64
- modelValue: string;
65
- placeholder?: string;
66
- label?: string;
67
- /** This color creates a mask over the input outline and should be set to the background color behind the textField */
68
- labelShadowColor?: string;
69
- error?: boolean;
70
- isMultiline?: boolean;
71
- helperText?: string;
72
- emitOnBlur?: boolean;
73
- handleFieldSubmit?: (e: string) => void;
74
- handleFieldChange?: (e: string) => void;
75
- /** Option to disable trimming for input fields */
76
- disableTrim?: boolean;
77
- }>, {
78
- emitOnBlur: boolean;
79
- labelShadowColor: string;
80
- disableTrim: boolean;
81
- }>>> & {
82
- onSubmit?: ((v: string) => any) | undefined;
83
- "onUpdate:modelValue"?: ((v: string) => any) | undefined;
84
- }, {
85
- labelShadowColor: string;
86
- emitOnBlur: boolean;
87
- disableTrim: boolean;
88
- }, {}>;
89
-
90
- declare const __VLS_component_11: DefineComponent<__VLS_WithDefaults_9<__VLS_TypePropsToRuntimeProps_17<{
91
- click?: () => void;
92
- delay?: number;
93
- skipDelay?: number;
94
- side?: "top" | "right" | "bottom" | "left";
95
- sideOffset?: number;
96
- class?: string;
97
- }>, {
98
- skipDelay: number;
99
- side: string;
100
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
101
- click: () => void;
102
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_9<__VLS_TypePropsToRuntimeProps_17<{
103
- click?: () => void;
104
- delay?: number;
105
- skipDelay?: number;
106
- side?: "top" | "right" | "bottom" | "left";
107
- sideOffset?: number;
108
- class?: string;
109
- }>, {
110
- skipDelay: number;
111
- side: string;
112
- }>>> & {
113
- onClick?: (() => any) | undefined;
114
- }, {
115
- skipDelay: number;
116
- side: "top" | "right" | "bottom" | "left";
117
- }, {}>;
118
-
119
- declare const __VLS_component_2: DefineComponent<__VLS_TypePropsToRuntimeProps_4<Omit<FloatingOptions, "middleware">>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_4<Omit<FloatingOptions, "middleware">>>>, {}, {}>;
120
-
121
- declare const __VLS_component_3: DefineComponent<__VLS_TypePropsToRuntimeProps_5<{
122
- disabled?: boolean;
123
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
124
- click: (event: MouseEvent) => void;
125
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_5<{
126
- disabled?: boolean;
127
- }>>> & {
128
- onClick?: ((event: MouseEvent) => any) | undefined;
129
- }, {}, {}>;
130
-
131
- declare const __VLS_component_4: DefineComponent<__VLS_TypePropsToRuntimeProps_6<FloatingOptions>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_6<FloatingOptions>>>, {}, {}>;
132
-
133
- declare const __VLS_component_5: DefineComponent<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_9<{
134
- /**
135
- * Allow selecting multiple values
136
- *
137
- * @default false
138
- */
139
- multiple?: boolean;
140
- options: ScalarListboxOption[];
141
- modelValue?: ScalarListboxOption;
142
- fullWidth?: boolean;
143
- id?: string;
144
- } & Omit<FloatingOptions, "middleware" | "offset">>, {
145
- multiple: boolean;
146
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
147
- "update:modelValue": (v: ScalarListboxOption) => void;
148
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_5<__VLS_TypePropsToRuntimeProps_9<{
149
- /**
150
- * Allow selecting multiple values
151
- *
152
- * @default false
153
- */
154
- multiple?: boolean;
155
- options: ScalarListboxOption[];
156
- modelValue?: ScalarListboxOption;
157
- fullWidth?: boolean;
158
- id?: string;
159
- } & Omit<FloatingOptions, "middleware" | "offset">>, {
160
- multiple: boolean;
161
- }>>> & {
162
- "onUpdate:modelValue"?: ((v: ScalarListboxOption) => any) | undefined;
163
- }, {
164
- multiple: boolean;
165
- }, {}>;
166
-
167
- declare const __VLS_component_6: DefineComponent<__VLS_TypePropsToRuntimeProps_12<Omit<FloatingOptions, "middleware">>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_12<Omit<FloatingOptions, "middleware">>>>, {}, {}>;
168
-
169
- declare const __VLS_component_7: DefineComponent<__VLS_TypePropsToRuntimeProps_13<{
170
- loading?: LoadingState;
171
- modelValue?: string;
172
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
173
- "update:modelValue": (v: string) => void;
174
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_13<{
175
- loading?: LoadingState;
176
- modelValue?: string;
177
- }>>> & {
178
- "onUpdate:modelValue"?: ((v: string) => any) | undefined;
179
- }, {}, {}>;
180
-
181
- declare const __VLS_component_8: DefineComponent<__VLS_TypePropsToRuntimeProps_14<{
182
- icon?: Icon;
183
- active?: boolean;
184
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_14<{
185
- icon?: Icon;
186
- active?: boolean;
187
- }>>>, {}, {}>;
188
-
189
- declare const __VLS_component_9: DefineComponent<__VLS_TypePropsToRuntimeProps_15<{
190
- noResults?: boolean;
191
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_15<{
192
- noResults?: boolean;
193
- }>>>, {}, {}>;
194
-
195
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
196
-
197
- declare type __VLS_NonUndefinedable_10<T> = T extends undefined ? never : T;
198
-
199
- declare type __VLS_NonUndefinedable_11<T> = T extends undefined ? never : T;
200
-
201
- declare type __VLS_NonUndefinedable_12<T> = T extends undefined ? never : T;
202
-
203
- declare type __VLS_NonUndefinedable_13<T> = T extends undefined ? never : T;
204
-
205
- declare type __VLS_NonUndefinedable_14<T> = T extends undefined ? never : T;
206
-
207
- declare type __VLS_NonUndefinedable_15<T> = T extends undefined ? never : T;
208
-
209
- declare type __VLS_NonUndefinedable_16<T> = T extends undefined ? never : T;
210
-
211
- declare type __VLS_NonUndefinedable_17<T> = T extends undefined ? never : T;
212
-
213
- declare type __VLS_NonUndefinedable_2<T> = T extends undefined ? never : T;
214
-
215
- declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
216
-
217
- declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
218
-
219
- declare type __VLS_NonUndefinedable_5<T> = T extends undefined ? never : T;
220
-
221
- declare type __VLS_NonUndefinedable_6<T> = T extends undefined ? never : T;
222
-
223
- declare type __VLS_NonUndefinedable_7<T> = T extends undefined ? never : T;
224
-
225
- declare type __VLS_NonUndefinedable_8<T> = T extends undefined ? never : T;
226
-
227
- declare type __VLS_NonUndefinedable_9<T> = T extends undefined ? never : T;
228
-
229
- declare type __VLS_Prettify<T> = {
230
- [K in keyof T]: T[K];
231
- } & {};
232
-
233
- declare type __VLS_Prettify_2<T> = {
234
- [K in keyof T]: T[K];
235
- } & {};
236
-
237
- declare type __VLS_Prettify_3<T> = {
238
- [K in keyof T]: T[K];
239
- } & {};
240
-
241
- declare type __VLS_Prettify_4<T> = {
242
- [K in keyof T]: T[K];
243
- } & {};
244
-
245
- declare type __VLS_Prettify_5<T> = {
246
- [K in keyof T]: T[K];
247
- } & {};
248
-
249
- declare type __VLS_Prettify_6<T> = {
250
- [K in keyof T]: T[K];
251
- } & {};
252
-
253
- declare type __VLS_Prettify_7<T> = {
254
- [K in keyof T]: T[K];
255
- } & {};
256
-
257
- declare type __VLS_Prettify_8<T> = {
258
- [K in keyof T]: T[K];
259
- } & {};
260
-
261
- declare type __VLS_Prettify_9<T> = {
262
- [K in keyof T]: T[K];
263
- } & {};
264
-
265
- declare function __VLS_template(): {
266
- icon?(_: {}): any;
267
- default?(_: {}): any;
268
- };
269
-
270
- declare function __VLS_template_10(): {
271
- default?(_: {}): any;
272
- };
273
-
274
- declare function __VLS_template_11(): {
275
- trigger?(_: {}): any;
276
- content?(_: {}): any;
277
- };
278
-
279
- declare function __VLS_template_2(): {
280
- default?(_: {}): any;
281
- items?(_: {}): any;
282
- };
283
-
284
- declare function __VLS_template_3(): {
285
- default?(_: {}): any;
286
- };
287
-
288
- declare function __VLS_template_4(): Readonly<{
289
- /** The reference element for the element in the #floating slot */
290
- default(): any;
291
- /** The floating element */
292
- floating(props: {
293
- /** The width of the reference element if `resize` is true and placement is on the y axis */
294
- width?: string;
295
- /** The height of the reference element if `resize` is true and placement is on the x axis */
296
- height?: string;
297
- /** The middleware data return by Floating UI */
298
- data?: MiddlewareData;
299
- }): any;
300
- }> & {
301
- /** The reference element for the element in the #floating slot */
302
- default(): any;
303
- /** The floating element */
304
- floating(props: {
305
- /** The width of the reference element if `resize` is true and placement is on the y axis */
306
- width?: string;
307
- /** The height of the reference element if `resize` is true and placement is on the x axis */
308
- height?: string;
309
- /** The middleware data return by Floating UI */
310
- data?: MiddlewareData;
311
- }): any;
312
- };
313
-
314
- declare function __VLS_template_5(): {
315
- default?(_: {}): any;
316
- };
317
-
318
- declare function __VLS_template_6(): {
319
- default?(_: {}): any;
320
- popover?(_: {}): any;
321
- };
322
-
323
- declare function __VLS_template_7(): {
324
- label?(_: {}): any;
325
- };
326
-
327
- declare function __VLS_template_8(): {
328
- icon?(_: {}): any;
329
- default?(_: {}): any;
330
- addon?(_: {}): any;
331
- description?(_: {}): any;
332
- };
333
-
334
- declare function __VLS_template_9(): {
335
- noResults?(_: {}): any;
336
- default?(_: {}): any;
337
- };
338
-
339
- declare type __VLS_TypePropsToRuntimeProps<T> = {
340
- [K in keyof T]-?: {} extends Pick<T, K> ? {
341
- type: PropType<__VLS_NonUndefinedable<T[K]>>;
342
- } : {
343
- type: PropType<T[K]>;
344
- required: true;
345
- };
346
- };
347
-
348
- declare type __VLS_TypePropsToRuntimeProps_10<T> = {
349
- [K in keyof T]-?: {} extends Pick<T, K> ? {
350
- type: PropType<__VLS_NonUndefinedable_10<T[K]>>;
351
- } : {
352
- type: PropType<T[K]>;
353
- required: true;
354
- };
355
- };
356
-
357
- declare type __VLS_TypePropsToRuntimeProps_11<T> = {
358
- [K in keyof T]-?: {} extends Pick<T, K> ? {
359
- type: PropType<__VLS_NonUndefinedable_11<T[K]>>;
360
- } : {
361
- type: PropType<T[K]>;
362
- required: true;
363
- };
364
- };
365
-
366
- declare type __VLS_TypePropsToRuntimeProps_12<T> = {
367
- [K in keyof T]-?: {} extends Pick<T, K> ? {
368
- type: PropType<__VLS_NonUndefinedable_12<T[K]>>;
369
- } : {
370
- type: PropType<T[K]>;
371
- required: true;
372
- };
373
- };
374
-
375
- declare type __VLS_TypePropsToRuntimeProps_13<T> = {
376
- [K in keyof T]-?: {} extends Pick<T, K> ? {
377
- type: PropType<__VLS_NonUndefinedable_13<T[K]>>;
378
- } : {
379
- type: PropType<T[K]>;
380
- required: true;
381
- };
382
- };
383
-
384
- declare type __VLS_TypePropsToRuntimeProps_14<T> = {
385
- [K in keyof T]-?: {} extends Pick<T, K> ? {
386
- type: PropType<__VLS_NonUndefinedable_14<T[K]>>;
387
- } : {
388
- type: PropType<T[K]>;
389
- required: true;
390
- };
391
- };
392
-
393
- declare type __VLS_TypePropsToRuntimeProps_15<T> = {
394
- [K in keyof T]-?: {} extends Pick<T, K> ? {
395
- type: PropType<__VLS_NonUndefinedable_15<T[K]>>;
396
- } : {
397
- type: PropType<T[K]>;
398
- required: true;
399
- };
400
- };
401
-
402
- declare type __VLS_TypePropsToRuntimeProps_16<T> = {
403
- [K in keyof T]-?: {} extends Pick<T, K> ? {
404
- type: PropType<__VLS_NonUndefinedable_16<T[K]>>;
405
- } : {
406
- type: PropType<T[K]>;
407
- required: true;
408
- };
409
- };
410
-
411
- declare type __VLS_TypePropsToRuntimeProps_17<T> = {
412
- [K in keyof T]-?: {} extends Pick<T, K> ? {
413
- type: PropType<__VLS_NonUndefinedable_17<T[K]>>;
414
- } : {
415
- type: PropType<T[K]>;
416
- required: true;
417
- };
418
- };
419
-
420
- declare type __VLS_TypePropsToRuntimeProps_2<T> = {
421
- [K in keyof T]-?: {} extends Pick<T, K> ? {
422
- type: PropType<__VLS_NonUndefinedable_2<T[K]>>;
423
- } : {
424
- type: PropType<T[K]>;
425
- required: true;
426
- };
427
- };
428
-
429
- declare type __VLS_TypePropsToRuntimeProps_3<T> = {
430
- [K in keyof T]-?: {} extends Pick<T, K> ? {
431
- type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
432
- } : {
433
- type: PropType<T[K]>;
434
- required: true;
435
- };
436
- };
437
-
438
- declare type __VLS_TypePropsToRuntimeProps_4<T> = {
439
- [K in keyof T]-?: {} extends Pick<T, K> ? {
440
- type: PropType<__VLS_NonUndefinedable_4<T[K]>>;
441
- } : {
442
- type: PropType<T[K]>;
443
- required: true;
444
- };
445
- };
446
-
447
- declare type __VLS_TypePropsToRuntimeProps_5<T> = {
448
- [K in keyof T]-?: {} extends Pick<T, K> ? {
449
- type: PropType<__VLS_NonUndefinedable_5<T[K]>>;
450
- } : {
451
- type: PropType<T[K]>;
452
- required: true;
453
- };
454
- };
455
-
456
- declare type __VLS_TypePropsToRuntimeProps_6<T> = {
457
- [K in keyof T]-?: {} extends Pick<T, K> ? {
458
- type: PropType<__VLS_NonUndefinedable_6<T[K]>>;
459
- } : {
460
- type: PropType<T[K]>;
461
- required: true;
462
- };
463
- };
464
-
465
- declare type __VLS_TypePropsToRuntimeProps_7<T> = {
466
- [K in keyof T]-?: {} extends Pick<T, K> ? {
467
- type: PropType<__VLS_NonUndefinedable_7<T[K]>>;
468
- } : {
469
- type: PropType<T[K]>;
470
- required: true;
471
- };
472
- };
473
-
474
- declare type __VLS_TypePropsToRuntimeProps_8<T> = {
475
- [K in keyof T]-?: {} extends Pick<T, K> ? {
476
- type: PropType<__VLS_NonUndefinedable_8<T[K]>>;
477
- } : {
478
- type: PropType<T[K]>;
479
- required: true;
480
- };
481
- };
482
-
483
- declare type __VLS_TypePropsToRuntimeProps_9<T> = {
484
- [K in keyof T]-?: {} extends Pick<T, K> ? {
485
- type: PropType<__VLS_NonUndefinedable_9<T[K]>>;
486
- } : {
487
- type: PropType<T[K]>;
488
- required: true;
489
- };
490
- };
491
-
492
- declare type __VLS_WithDefaults<P, D> = {
493
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
494
- default: D[K];
495
- }> : P[K];
496
- };
497
-
498
- declare type __VLS_WithDefaults_2<P, D> = {
499
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_2<P[K] & {
500
- default: D[K];
501
- }> : P[K];
502
- };
503
-
504
- declare type __VLS_WithDefaults_3<P, D> = {
505
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_3<P[K] & {
506
- default: D[K];
507
- }> : P[K];
508
- };
509
-
510
- declare type __VLS_WithDefaults_4<P, D> = {
511
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_4<P[K] & {
512
- default: D[K];
513
- }> : P[K];
514
- };
515
-
516
- declare type __VLS_WithDefaults_5<P, D> = {
517
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_5<P[K] & {
518
- default: D[K];
519
- }> : P[K];
520
- };
521
-
522
- declare type __VLS_WithDefaults_6<P, D> = {
523
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_6<P[K] & {
524
- default: D[K];
525
- }> : P[K];
526
- };
527
-
528
- declare type __VLS_WithDefaults_7<P, D> = {
529
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_7<P[K] & {
530
- default: D[K];
531
- }> : P[K];
532
- };
533
-
534
- declare type __VLS_WithDefaults_8<P, D> = {
535
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_8<P[K] & {
536
- default: D[K];
537
- }> : P[K];
538
- };
539
-
540
- declare type __VLS_WithDefaults_9<P, D> = {
541
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify_9<P[K] & {
542
- default: D[K];
543
- }> : P[K];
544
- };
545
-
546
- declare type __VLS_WithTemplateSlots<T, S> = T & {
547
- new (): {
548
- $slots: S;
549
- };
550
- };
551
-
552
- declare type __VLS_WithTemplateSlots_10<T, S> = T & {
553
- new (): {
554
- $slots: S;
555
- };
556
- };
557
-
558
- declare type __VLS_WithTemplateSlots_11<T, S> = T & {
559
- new (): {
560
- $slots: S;
561
- };
562
- };
563
-
564
- declare type __VLS_WithTemplateSlots_12<T, S> = T & {
565
- new (): {
566
- $slots: S;
567
- };
568
- };
569
-
570
- declare type __VLS_WithTemplateSlots_2<T, S> = T & {
571
- new (): {
572
- $slots: S;
573
- };
574
- };
575
-
576
- declare type __VLS_WithTemplateSlots_3<T, S> = T & {
577
- new (): {
578
- $slots: S;
579
- };
580
- };
581
-
582
- declare type __VLS_WithTemplateSlots_4<T, S> = T & {
583
- new (): {
584
- $slots: S;
585
- };
586
- };
587
-
588
- declare type __VLS_WithTemplateSlots_5<T, S> = T & {
589
- new (): {
590
- $slots: S;
591
- };
592
- };
593
-
594
- declare type __VLS_WithTemplateSlots_6<T, S> = T & {
595
- new (): {
596
- $slots: S;
597
- };
598
- };
599
-
600
- declare type __VLS_WithTemplateSlots_7<T, S> = T & {
601
- new (): {
602
- $slots: S;
603
- };
604
- };
605
-
606
- declare type __VLS_WithTemplateSlots_8<T, S> = T & {
607
- new (): {
608
- $slots: S;
609
- };
610
- };
611
-
612
- declare type __VLS_WithTemplateSlots_9<T, S> = T & {
613
- new (): {
614
- $slots: S;
615
- };
616
- };
617
-
618
- /**
619
- * Helper method for adding the scalar classes to HeadlessUI portal root
620
- */
621
- export declare const addScalarClassesToHeadless: () => void;
622
-
623
- declare type FloatingOptions = {
624
- /**
625
- * Where to place the floating element relative to its reference element.
626
- * @default 'bottom'
627
- */
628
- placement?: Placement;
629
- /**
630
- * Whether or not track the reference element's width
631
- * If enabled it will set `width` slot prop of the floating slot
632
- */
633
- resize?: boolean;
634
- /**
635
- * Floating UI Middleware to be passed to Floating UI
636
- * @see https://floating-ui.com/docs/computePosition#middleware
637
- */
638
- middleware?: Middleware[];
639
- /**
640
- * Whether the floating element is open or not.
641
- * @default false
642
- */
643
- isOpen?: boolean;
644
- /**
645
- * Whether to teleport the floating element.
646
- * Can be an `id` to teleport to or `true` to teleport to the `<body>`.
647
- * @default false
648
- */
649
- teleport?: boolean | string;
650
- };
651
-
652
- export declare type Icon = (typeof ICONS)[number];
653
-
654
- declare const iconProps: (props?: ({
655
- size?: "sm" | "md" | "xs" | "lg" | "xl" | "2xl" | "3xl" | "full" | undefined;
656
- } & ({
657
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
658
- [x: string]: any;
659
- } | null | undefined)[] | {
660
- [x: string]: any;
661
- } | null | undefined)[] | {
662
- [x: string]: any;
663
- } | null | undefined)[] | {
664
- [x: string]: any;
665
- } | null | undefined)[] | {
666
- [x: string]: any;
667
- } | null | undefined)[] | {
668
- [x: string]: any;
669
- } | null | undefined)[] | {
670
- [x: string]: any;
671
- } | null | undefined)[] | {
672
- [x: string]: any;
673
- } | null | undefined)[] | {
674
- [x: string]: any;
675
- } | null | undefined)[] | {
676
- [x: string]: any;
677
- } | null | undefined)[] | {
678
- [x: string]: any;
679
- } | null | undefined)[] | {
680
- [x: string]: any;
681
- } | null | undefined;
682
- className?: never;
683
- } | {
684
- class?: never;
685
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
686
- [x: string]: any;
687
- } | null | undefined)[] | {
688
- [x: string]: any;
689
- } | null | undefined)[] | {
690
- [x: string]: any;
691
- } | null | undefined)[] | {
692
- [x: string]: any;
693
- } | null | undefined)[] | {
694
- [x: string]: any;
695
- } | null | undefined)[] | {
696
- [x: string]: any;
697
- } | null | undefined)[] | {
698
- [x: string]: any;
699
- } | null | undefined)[] | {
700
- [x: string]: any;
701
- } | null | undefined)[] | {
702
- [x: string]: any;
703
- } | null | undefined)[] | {
704
- [x: string]: any;
705
- } | null | undefined)[] | {
706
- [x: string]: any;
707
- } | null | undefined)[] | {
708
- [x: string]: any;
709
- } | null | undefined;
710
- })) | undefined) => string;
711
-
712
- declare const ICONS: readonly ["Add", "ArrowLeft", "ArrowRight", "Background", "Brackets", "Branch", "CallToAction", "Checkmark", "ChevronDown", "ChevronLeft", "ChevronRight", "ChevronUp", "Clipboard", "Close", "CodeFolder", "Cookie", "DarkMode", "Delete", "Discord", "DocsPage", "Duplicate", "Edit", "Ellipses", "Error", "ExternalLink", "FilterList", "Folder", "GitHub", "Hide", "History", "Info", "JsonObject", "Key", "Leave", "LightDarkModeToggle", "LightMode", "Link", "Lock", "Logo", "LogoAPI", "LogoClient", "LogoMarket", "LogoSwagger", "Magic", "Menu", "Page", "PaperAirplane", "Payment", "Play", "Refresh", "Response", "Search", "Server", "Show", "SideBarClosed", "SideBarOpen", "Sort", "Terminal", "ThumbsDown", "ThumbsUp", "Trash", "Unlock", "Upload", "UploadSimple", "User", "programming-framework-angular", "programming-framework-astro", "programming-framework-laravel", "programming-framework-nextdotjs", "programming-framework-react", "programming-framework-vuedotjs", "programming-language-c", "programming-language-clojure", "programming-language-csharp", "programming-language-css3", "programming-language-go", "programming-language-html5", "programming-language-http", "programming-language-java", "programming-language-javascript", "programming-language-json", "programming-language-kotlin", "programming-language-node", "programming-language-objc", "programming-language-ocaml", "programming-language-php", "programming-language-powershell", "programming-language-python", "programming-language-r", "programming-language-ruby", "programming-language-scala", "programming-language-shell", "programming-language-swift", "programming-language-typescript", "programming-script-code", "programming-tool-git", "programming-tool-tailwindcss"];
713
-
714
- declare type IconVariants = VariantProps<typeof iconProps>;
715
-
716
- declare type LoadingState = ReturnType<typeof useLoadingState>;
717
-
718
- export declare type ModalState = ReturnType<typeof useModal>;
719
-
720
- export declare const ScalarButton: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
721
-
722
- export declare const ScalarCodeBlock: DefineComponent<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
723
- content: string | object;
724
- lang?: string;
725
- lineNumbers?: boolean;
726
- hideCredentials?: string | string[];
727
- }>, {
728
- lang: string;
729
- lineNumbers: boolean;
730
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_2<__VLS_TypePropsToRuntimeProps_2<{
731
- content: string | object;
732
- lang?: string;
733
- lineNumbers?: boolean;
734
- hideCredentials?: string | string[];
735
- }>, {
736
- lang: string;
737
- lineNumbers: boolean;
738
- }>>>, {
739
- lang: string;
740
- lineNumbers: boolean;
741
- }, {}>;
742
-
743
- export declare const ScalarDropdown: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
744
-
745
- export declare const ScalarDropdownDivider: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {}>>, {}, {}>;
746
-
747
- export declare const ScalarDropdownItem: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, ReturnType<typeof __VLS_template_3>>;
748
-
749
- export declare const ScalarFloating: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, ReturnType<typeof __VLS_template_4>>;
750
-
751
- export declare const ScalarIcon: DefineComponent<__VLS_TypePropsToRuntimeProps_7<{
752
- icon: Icon;
753
- size?: IconVariants["size"];
754
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_7<{
755
- icon: Icon;
756
- size?: IconVariants["size"];
757
- }>>>, {}, {}>;
758
-
759
- export declare const ScalarIconButton: DefineComponent<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_8<{
760
- label: string;
761
- icon: Icon;
762
- disabled?: boolean;
763
- variant?: Variants_2["variant"];
764
- size?: Variants_2["size"];
765
- }>, {
766
- variant: string;
767
- size: string;
768
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_4<__VLS_TypePropsToRuntimeProps_8<{
769
- label: string;
770
- icon: Icon;
771
- disabled?: boolean;
772
- variant?: Variants_2["variant"];
773
- size?: Variants_2["size"];
774
- }>, {
775
- variant: string;
776
- size: string;
777
- }>>>, {
778
- size: "sm" | "md" | "xs" | "full" | "xxs";
779
- variant: string;
780
- }, {}>;
781
-
782
- export declare const ScalarListbox: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, ReturnType<typeof __VLS_template_5>>;
783
-
784
- export declare type ScalarListboxOption = {
785
- id: string;
786
- label: string;
787
- disabled?: boolean;
788
- [x: string]: any;
789
- };
790
-
791
- export declare const ScalarLoading: DefineComponent<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_10<{
792
- loadingState: LoadingState;
793
- size?: string;
794
- }>, {
795
- size: string;
796
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_6<__VLS_TypePropsToRuntimeProps_10<{
797
- loadingState: LoadingState;
798
- size?: string;
799
- }>, {
800
- size: string;
801
- }>>>, {
802
- size: string;
803
- }, {}>;
804
-
805
- export declare const ScalarMarkdown: DefineComponent<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
806
- value?: string;
807
- withImages?: boolean;
808
- }>, {
809
- withImages: boolean;
810
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_3<__VLS_TypePropsToRuntimeProps_3<{
811
- value?: string;
812
- withImages?: boolean;
813
- }>, {
814
- withImages: boolean;
815
- }>>>, {
816
- withImages: boolean;
817
- }, {}>;
818
-
819
- export declare const ScalarModal: __VLS_WithTemplateSlots_6<DefineComponent<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_11<{
820
- state: ReturnType<typeof useModal>;
821
- title?: string;
822
- bodyClass?: string;
823
- maxWidth?: string;
824
- size?: "sm" | "md" | "xs" | "lg" | "full" | undefined;
825
- variant?: "search" | "history" | undefined;
826
- }>, {
827
- size: string;
828
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_7<__VLS_TypePropsToRuntimeProps_11<{
829
- state: ReturnType<typeof useModal>;
830
- title?: string;
831
- bodyClass?: string;
832
- maxWidth?: string;
833
- size?: "sm" | "md" | "xs" | "lg" | "full" | undefined;
834
- variant?: "search" | "history" | undefined;
835
- }>, {
836
- size: string;
837
- }>>>, {
838
- size: "sm" | "md" | "xs" | "lg" | "full";
839
- }, {}>, {
840
- default?(_: {}): any;
841
- }>;
842
-
843
- export declare const ScalarPopover: __VLS_WithTemplateSlots_7<typeof __VLS_component_6, ReturnType<typeof __VLS_template_6>>;
844
-
845
- export declare const ScalarSearchInput: __VLS_WithTemplateSlots_8<typeof __VLS_component_7, ReturnType<typeof __VLS_template_7>>;
846
-
847
- export declare const ScalarSearchResultItem: __VLS_WithTemplateSlots_9<typeof __VLS_component_8, ReturnType<typeof __VLS_template_8>>;
848
-
849
- export declare const ScalarSearchResultList: __VLS_WithTemplateSlots_10<typeof __VLS_component_9, ReturnType<typeof __VLS_template_9>>;
850
-
851
- export declare const ScalarTextField: __VLS_WithTemplateSlots_11<typeof __VLS_component_10, ReturnType<typeof __VLS_template_10>>;
852
-
853
- export declare const ScalarTooltip: __VLS_WithTemplateSlots_12<typeof __VLS_component_11, ReturnType<typeof __VLS_template_11>>;
854
-
855
- /**
856
- * Handles isLoading spinner for the FlowLoader Component
857
- * - stateIsLoading will trigger the spinner
858
- * - isValid or isInvalid will show a check or x and then spin out
859
- */
860
- export declare function useLoadingState(): {
861
- isValid: boolean;
862
- isInvalid: boolean;
863
- isLoading: boolean;
864
- startLoading: () => void;
865
- stopLoading: () => void;
866
- validate: (time?: number) => Promise<unknown>;
867
- invalidate: (time?: number) => Promise<unknown>;
868
- clear: (time?: number) => Promise<unknown>;
869
- };
870
-
871
- export declare const useModal: () => {
872
- open: boolean;
873
- show: () => void;
874
- hide: () => void;
875
- };
876
-
877
- declare type Variants = VariantProps<typeof variants>;
878
-
879
- declare const variants: (props?: ({
880
- disabled?: boolean | undefined;
881
- fullWidth?: boolean | undefined;
882
- size?: "sm" | "md" | undefined;
883
- variant?: string | undefined;
884
- } & ({
885
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
886
- [x: string]: any;
887
- } | null | undefined)[] | {
888
- [x: string]: any;
889
- } | null | undefined)[] | {
890
- [x: string]: any;
891
- } | null | undefined)[] | {
892
- [x: string]: any;
893
- } | null | undefined)[] | {
894
- [x: string]: any;
895
- } | null | undefined)[] | {
896
- [x: string]: any;
897
- } | null | undefined)[] | {
898
- [x: string]: any;
899
- } | null | undefined)[] | {
900
- [x: string]: any;
901
- } | null | undefined)[] | {
902
- [x: string]: any;
903
- } | null | undefined)[] | {
904
- [x: string]: any;
905
- } | null | undefined)[] | {
906
- [x: string]: any;
907
- } | null | undefined)[] | {
908
- [x: string]: any;
909
- } | null | undefined;
910
- className?: never;
911
- } | {
912
- class?: never;
913
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
914
- [x: string]: any;
915
- } | null | undefined)[] | {
916
- [x: string]: any;
917
- } | null | undefined)[] | {
918
- [x: string]: any;
919
- } | null | undefined)[] | {
920
- [x: string]: any;
921
- } | null | undefined)[] | {
922
- [x: string]: any;
923
- } | null | undefined)[] | {
924
- [x: string]: any;
925
- } | null | undefined)[] | {
926
- [x: string]: any;
927
- } | null | undefined)[] | {
928
- [x: string]: any;
929
- } | null | undefined)[] | {
930
- [x: string]: any;
931
- } | null | undefined)[] | {
932
- [x: string]: any;
933
- } | null | undefined)[] | {
934
- [x: string]: any;
935
- } | null | undefined)[] | {
936
- [x: string]: any;
937
- } | null | undefined;
938
- })) | undefined) => string;
939
-
940
- declare type Variants_2 = VariantProps<typeof variants_2>;
941
-
942
- declare const variants_2: (props?: ({
943
- size?: "sm" | "md" | "xs" | "full" | "xxs" | undefined;
944
- disabled?: boolean | undefined;
945
- variant?: string | undefined;
946
- } & ({
947
- class?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
948
- [x: string]: any;
949
- } | null | undefined)[] | {
950
- [x: string]: any;
951
- } | null | undefined)[] | {
952
- [x: string]: any;
953
- } | null | undefined)[] | {
954
- [x: string]: any;
955
- } | null | undefined)[] | {
956
- [x: string]: any;
957
- } | null | undefined)[] | {
958
- [x: string]: any;
959
- } | null | undefined)[] | {
960
- [x: string]: any;
961
- } | null | undefined)[] | {
962
- [x: string]: any;
963
- } | null | undefined)[] | {
964
- [x: string]: any;
965
- } | null | undefined)[] | {
966
- [x: string]: any;
967
- } | null | undefined)[] | {
968
- [x: string]: any;
969
- } | null | undefined)[] | {
970
- [x: string]: any;
971
- } | null | undefined;
972
- className?: never;
973
- } | {
974
- class?: never;
975
- className?: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | any | {
976
- [x: string]: any;
977
- } | null | undefined)[] | {
978
- [x: string]: any;
979
- } | null | undefined)[] | {
980
- [x: string]: any;
981
- } | null | undefined)[] | {
982
- [x: string]: any;
983
- } | null | undefined)[] | {
984
- [x: string]: any;
985
- } | null | undefined)[] | {
986
- [x: string]: any;
987
- } | null | undefined)[] | {
988
- [x: string]: any;
989
- } | null | undefined)[] | {
990
- [x: string]: any;
991
- } | null | undefined)[] | {
992
- [x: string]: any;
993
- } | null | undefined)[] | {
994
- [x: string]: any;
995
- } | null | undefined)[] | {
996
- [x: string]: any;
997
- } | null | undefined)[] | {
998
- [x: string]: any;
999
- } | null | undefined;
1000
- })) | undefined) => string;
1001
-
1002
- export { }
1
+ import { ScalarButton } from './components/ScalarButton';
2
+ import { ScalarCodeBlock } from './components/ScalarCodeBlock';
3
+ import { ScalarDropdown, ScalarDropdownDivider, ScalarDropdownItem } from './components/ScalarDropdown';
4
+ import { ScalarFloating } from './components/ScalarFloating';
5
+ import { type Icon, ScalarIcon } from './components/ScalarIcon';
6
+ import { ScalarIconButton } from './components/ScalarIconButton';
7
+ import { ScalarListbox, type ScalarListboxOption } from './components/ScalarListbox';
8
+ import { ScalarLoading, useLoadingState } from './components/ScalarLoading';
9
+ import { ScalarMarkdown } from './components/ScalarMarkdown';
10
+ import { type ModalState, ScalarModal, useModal } from './components/ScalarModal';
11
+ import { ScalarPopover } from './components/ScalarPopover';
12
+ import { ScalarSearchInput } from './components/ScalarSearchInput';
13
+ import { ScalarSearchResultItem, ScalarSearchResultList } from './components/ScalarSearchResults';
14
+ import { ScalarTextField } from './components/ScalarTextField';
15
+ import { ScalarTooltip } from './components/ScalarTooltip';
16
+ import './tailwind/tailwind.css';
17
+ export * from './helpers';
18
+ export { ScalarButton, ScalarCodeBlock, ScalarMarkdown, ScalarDropdown, ScalarDropdownDivider, ScalarDropdownItem, ScalarFloating, ScalarIcon, ScalarIconButton, ScalarListbox, ScalarLoading, ScalarModal, ScalarPopover, ScalarSearchInput, ScalarSearchResultItem, ScalarSearchResultList, ScalarTextField, ScalarTooltip, type Icon, type ScalarListboxOption, type ModalState, useLoadingState, useModal, };
19
+ //# sourceMappingURL=index.d.ts.map