@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarTooltip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAKrD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C4B,CAAA;AAEtC,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAA"}
@@ -0,0 +1,66 @@
1
+ declare function __VLS_template(): {
2
+ trigger?(_: {}): any;
3
+ content?(_: {}): any;
4
+ };
5
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ click?: () => void;
7
+ delay?: number;
8
+ skipDelay?: number;
9
+ align?: "start" | "center" | "end";
10
+ side?: "top" | "right" | "bottom" | "left";
11
+ sideOffset?: number;
12
+ class?: string;
13
+ triggerClass?: string;
14
+ resize?: boolean;
15
+ }>, {
16
+ skipDelay: number;
17
+ side: string;
18
+ align: string;
19
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ click: () => void;
21
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
22
+ click?: () => void;
23
+ delay?: number;
24
+ skipDelay?: number;
25
+ align?: "start" | "center" | "end";
26
+ side?: "top" | "right" | "bottom" | "left";
27
+ sideOffset?: number;
28
+ class?: string;
29
+ triggerClass?: string;
30
+ resize?: boolean;
31
+ }>, {
32
+ skipDelay: number;
33
+ side: string;
34
+ align: string;
35
+ }>>> & {
36
+ onClick?: (() => any) | undefined;
37
+ }, {
38
+ skipDelay: number;
39
+ align: "start" | "center" | "end";
40
+ side: "top" | "right" | "bottom" | "left";
41
+ }, {}>;
42
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ export default _default;
44
+ type __VLS_WithDefaults<P, D> = {
45
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
46
+ default: D[K];
47
+ }> : P[K];
48
+ };
49
+ type __VLS_Prettify<T> = {
50
+ [K in keyof T]: T[K];
51
+ } & {};
52
+ type __VLS_WithTemplateSlots<T, S> = T & {
53
+ new (): {
54
+ $slots: S;
55
+ };
56
+ };
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToOption<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
66
+ //# sourceMappingURL=ScalarTooltip.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScalarTooltip.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/ScalarTooltip.vue"],"names":[],"mappings":"AAuGA,iBAAS,cAAc;qBA6GO,GAAG;qBACH,GAAG;EAoBhC;AACD,QAAA,MAAM,eAAe;YApKT,MAAM,IAAI;YACV,MAAM;gBACF,MAAM;YACV,OAAO,GAAG,QAAQ,GAAG,KAAK;WAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;iBAC7B,MAAM;YACX,MAAM;mBACC,MAAM;aACZ,OAAO;;;;;;;;YARR,MAAM,IAAI;YACV,MAAM;gBACF,MAAM;YACV,OAAO,GAAG,QAAQ,GAAG,KAAK;WAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;iBAC7B,MAAM;YACX,MAAM;mBACC,MAAM;aACZ,OAAO;;;;;;;;eANJ,MAAM;WACV,OAAO,GAAG,QAAQ,GAAG,KAAK;UAC3B,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM;MAuK5C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,46 +1,50 @@
1
- import { defineComponent as r, openBlock as n, createBlock as c, unref as l, withCtx as t, createVNode as o, renderSlot as a, normalizeClass as d } from "vue";
2
- import { TooltipProvider as p, TooltipRoot as f, TooltipTrigger as u, TooltipPortal as k, TooltipContent as m } from "radix-vue";
3
- const T = /* @__PURE__ */ r({
1
+ import { defineComponent as n, openBlock as c, createBlock as d, unref as l, withCtx as t, createVNode as s, normalizeClass as i, renderSlot as o } from "vue";
2
+ import { TooltipProvider as f, TooltipRoot as p, TooltipTrigger as u, TooltipPortal as g, TooltipContent as k } from "radix-vue";
3
+ const C = /* @__PURE__ */ n({
4
4
  __name: "ScalarTooltip",
5
5
  props: {
6
6
  click: {},
7
7
  delay: {},
8
8
  skipDelay: { default: 1e3 },
9
+ align: { default: "center" },
9
10
  side: { default: "top" },
10
11
  sideOffset: {},
11
- class: {}
12
+ class: {},
13
+ triggerClass: {},
14
+ resize: { type: Boolean }
12
15
  },
13
16
  emits: ["click"],
14
- setup(i) {
15
- const e = i;
16
- return (s, _) => (n(), c(l(p), {
17
+ setup(r) {
18
+ const e = r;
19
+ return (a, m) => (c(), d(l(f), {
17
20
  delayDuration: e.delay,
18
21
  skipDelayDuration: e.skipDelay
19
22
  }, {
20
23
  default: t(() => [
21
- o(l(f), null, {
24
+ s(l(p), null, {
22
25
  default: t(() => [
23
- o(l(u), {
24
- class: "w-full",
26
+ s(l(u), {
27
+ class: i(["flex items-center justify-center", [e.resize ? "w-full" : "", e.triggerClass]]),
25
28
  onClick: e.click
26
29
  }, {
27
30
  default: t(() => [
28
- a(s.$slots, "trigger")
31
+ o(a.$slots, "trigger")
29
32
  ]),
30
33
  _: 3
31
- }, 8, ["onClick"]),
32
- o(l(k), null, {
34
+ }, 8, ["class", "onClick"]),
35
+ s(l(g), { to: ".scalar-client" }, {
33
36
  default: t(() => [
34
- o(l(m), {
35
- class: d(["scalar-app", e.class]),
37
+ s(l(k), {
38
+ align: e.align,
39
+ class: i(["scalar-app", e.class]),
36
40
  side: e.side,
37
41
  sideOffset: e.sideOffset
38
42
  }, {
39
43
  default: t(() => [
40
- a(s.$slots, "content")
44
+ o(a.$slots, "content")
41
45
  ]),
42
46
  _: 3
43
- }, 8, ["class", "side", "sideOffset"])
47
+ }, 8, ["align", "class", "side", "sideOffset"])
44
48
  ]),
45
49
  _: 3
46
50
  })
@@ -53,5 +57,5 @@ const T = /* @__PURE__ */ r({
53
57
  }
54
58
  });
55
59
  export {
56
- T as default
60
+ C as default
57
61
  };
@@ -0,0 +1,2 @@
1
+ export { default as ScalarTooltip } from './ScalarTooltip.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ScalarTooltip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
package/dist/cva.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Tailwind Merge Config
3
+ *
4
+ * By default tailwind merge only knows about the default tailwind classes
5
+ * this is because it does not load in the tailwind config at runtime (perf reasons)
6
+ * we must specify any custom classes if they are getting overwritten
7
+ *
8
+ * https://github.com/dcastil/tailwind-merge/blob/v2.0.0/docs/configuration.md#class-groups
9
+ */
10
+ declare const tw: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
11
+ /**
12
+ * CVA Config
13
+ *
14
+ * https://beta.cva.style/api-reference/#defineconfig
15
+ */
16
+ declare const cva: import("cva").CVA, cx: import("cva").CX, compose: import("cva").Compose;
17
+ export { cva, cx, compose, tw };
18
+ //# sourceMappingURL=cva.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cva.d.ts","sourceRoot":"","sources":["../src/cva.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,QAAA,MAAM,EAAE,sEAMN,CAAA;AAEF;;;;GAIG;AACH,QAAA,MAAQ,GAAG,qBAAE,EAAE,oBAAE,OAAO,uBAItB,CAAA;AAEF,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAA"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Helper method for adding the scalar classes to HeadlessUI portal root
3
+ */
4
+ export declare const addScalarClassesToHeadless: () => void;
5
+ //# sourceMappingURL=add-scalar-classes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-scalar-classes.d.ts","sourceRoot":"","sources":["../../src/helpers/add-scalar-classes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,0BAA0B,YA0BtC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './add-scalar-classes.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * These are temporarily copied over from oas-utils to remove components dependence on that package
3
+ * this should greatly speed up our build times as components won't be rebuilt every time we make a change in oas-utils
4
+ *
5
+ * This is however a temporary solution, the real fix would be to separate oas-utils into a package that rarely changes
6
+ * which houses these helpers, and one which changes much more frequently (entities)
7
+ */
8
+ /**
9
+ * Takes JSON and formats it.
10
+ */
11
+ export declare const prettyPrintJson: (value: string | number | any[] | Record<any, any>) => string;
12
+ /**
13
+ * Little helper for sleeping for x milliseconds
14
+ * an async await friendly setTimeout
15
+ *
16
+ * @param ms - time to sleep in ms
17
+ */
18
+ export declare const sleep: (ms: number) => Promise<unknown>;
19
+ //# sourceMappingURL=oas-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oas-utils.d.ts","sourceRoot":"","sources":["../../src/helpers/oas-utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAoCH;;GAEG;AACH,eAAO,MAAM,eAAe,UACnB,MAAM,GAAG,MAAM,GAAG,GAAG,EAAE,GAAG,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,WAsBlD,CAAA;AAwBD;;;;;GAKG;AACH,eAAO,MAAM,KAAK,OAAQ,MAAM,qBAA0C,CAAA"}