@nightshadeui/components 3.1.0 → 3.2.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 (139) hide show
  1. package/README.md +21 -0
  2. package/css.d.ts +2 -0
  3. package/dist/_virtual/_plugin-vue_export-helper.js +7 -0
  4. package/dist/_virtual/_rolldown/runtime.js +10 -0
  5. package/dist/components/BaseMenu.css +1 -0
  6. package/dist/components/BaseMenu.js +108 -0
  7. package/dist/components/BaseMenu.vue.d.ts +21 -8
  8. package/dist/components/BaseMenu.vue.d.ts.map +1 -1
  9. package/dist/components/Btn.css +1 -0
  10. package/dist/components/Btn.js +186 -0
  11. package/dist/components/Btn.vue.d.ts +38 -2
  12. package/dist/components/Btn.vue.d.ts.map +1 -1
  13. package/dist/components/Bubble.css +1 -0
  14. package/dist/components/Bubble.js +37 -0
  15. package/dist/components/Bubble.vue.d.ts +12 -2
  16. package/dist/components/Bubble.vue.d.ts.map +1 -1
  17. package/dist/components/Checkbox.css +1 -0
  18. package/dist/components/Checkbox.js +116 -0
  19. package/dist/components/Checkbox.vue.d.ts +15 -3
  20. package/dist/components/Checkbox.vue.d.ts.map +1 -1
  21. package/dist/components/Chip.css +1 -0
  22. package/dist/components/Chip.js +91 -0
  23. package/dist/components/Chip.vue.d.ts +16 -2
  24. package/dist/components/Chip.vue.d.ts.map +1 -1
  25. package/dist/components/ContextMenu.js +56 -0
  26. package/dist/components/ContextMenu.vue.d.ts +28 -8
  27. package/dist/components/ContextMenu.vue.d.ts.map +1 -1
  28. package/dist/components/ContextPopup.js +166 -0
  29. package/dist/components/ContextPopup.vue.d.ts +23 -2
  30. package/dist/components/ContextPopup.vue.d.ts.map +1 -1
  31. package/dist/components/Filler.css +1 -0
  32. package/dist/components/Filler.js +18 -0
  33. package/dist/components/Filler.vue.d.ts +6 -2
  34. package/dist/components/Filler.vue.d.ts.map +1 -1
  35. package/dist/components/HGroup.css +1 -0
  36. package/dist/components/HGroup.js +44 -0
  37. package/dist/components/HGroup.vue.d.ts +21 -8
  38. package/dist/components/HGroup.vue.d.ts.map +1 -1
  39. package/dist/components/InputBase.css +1 -0
  40. package/dist/components/InputBase.js +115 -0
  41. package/dist/components/InputBase.vue.d.ts +16 -2
  42. package/dist/components/InputBase.vue.d.ts.map +1 -1
  43. package/dist/components/InputGroup.css +1 -0
  44. package/dist/components/InputGroup.js +21 -0
  45. package/dist/components/InputGroup.vue.d.ts +12 -2
  46. package/dist/components/InputGroup.vue.d.ts.map +1 -1
  47. package/dist/components/InputSelect.css +1 -0
  48. package/dist/components/InputSelect.js +110 -0
  49. package/dist/components/InputSelect.vue.d.ts +18 -2
  50. package/dist/components/InputSelect.vue.d.ts.map +1 -1
  51. package/dist/components/InputText.css +1 -0
  52. package/dist/components/InputText.js +77 -0
  53. package/dist/components/InputText.vue.d.ts +18 -2
  54. package/dist/components/InputText.vue.d.ts.map +1 -1
  55. package/dist/components/InputTextarea.css +1 -0
  56. package/dist/components/InputTextarea.js +80 -0
  57. package/dist/components/InputTextarea.vue.d.ts +18 -2
  58. package/dist/components/InputTextarea.vue.d.ts.map +1 -1
  59. package/dist/components/ModalOverlay.css +1 -0
  60. package/dist/components/ModalOverlay.js +45 -0
  61. package/dist/components/ModalOverlay.vue.d.ts +12 -2
  62. package/dist/components/ModalOverlay.vue.d.ts.map +1 -1
  63. package/dist/components/RouterBtn.js +39 -0
  64. package/dist/components/RouterBtn.vue.d.ts +10 -2
  65. package/dist/components/RouterBtn.vue.d.ts.map +1 -1
  66. package/dist/components/Slider.css +1 -0
  67. package/dist/components/Slider.js +326 -0
  68. package/dist/components/Slider.vue.d.ts +10 -2
  69. package/dist/components/Slider.vue.d.ts.map +1 -1
  70. package/dist/components/Tab.css +1 -0
  71. package/dist/components/Tab.js +56 -0
  72. package/dist/components/Tab.vue.d.ts +12 -2
  73. package/dist/components/Tab.vue.d.ts.map +1 -1
  74. package/dist/components/TabCap.css +1 -0
  75. package/dist/components/TabCap.js +28 -0
  76. package/dist/components/TabCap.vue.d.ts +6 -2
  77. package/dist/components/TabCap.vue.d.ts.map +1 -1
  78. package/dist/components/Toggle.css +1 -0
  79. package/dist/components/Toggle.js +102 -0
  80. package/dist/components/Toggle.vue.d.ts +6 -2
  81. package/dist/components/Toggle.vue.d.ts.map +1 -1
  82. package/dist/components/ToolPanel.css +1 -0
  83. package/dist/components/ToolPanel.js +33 -0
  84. package/dist/components/ToolPanel.vue.d.ts +12 -2
  85. package/dist/components/ToolPanel.vue.d.ts.map +1 -1
  86. package/dist/components/Tooltip.css +1 -0
  87. package/dist/components/Tooltip.js +97 -0
  88. package/dist/components/Tooltip.vue.d.ts +225 -0
  89. package/dist/components/Tooltip.vue.d.ts.map +1 -0
  90. package/dist/components/VGroup.css +1 -0
  91. package/dist/components/VGroup.js +36 -0
  92. package/dist/components/VGroup.vue.d.ts +21 -8
  93. package/dist/components/VGroup.vue.d.ts.map +1 -1
  94. package/dist/components/index.d.ts +2 -1
  95. package/dist/components/index.d.ts.map +1 -1
  96. package/dist/components/index.js +51 -0
  97. package/dist/components.css +39 -1
  98. package/dist/directives/index.d.ts +2 -0
  99. package/dist/directives/index.d.ts.map +1 -0
  100. package/dist/directives/tooltip.d.ts +14 -0
  101. package/dist/directives/tooltip.d.ts.map +1 -0
  102. package/dist/directives/tooltip.js +23 -0
  103. package/dist/glyphs/GlyphCheck.js +17 -0
  104. package/dist/glyphs/GlyphCheck.vue.d.ts +2 -1
  105. package/dist/glyphs/GlyphCheck.vue.d.ts.map +1 -1
  106. package/dist/glyphs/GlyphXmark.js +17 -0
  107. package/dist/glyphs/GlyphXmark.vue.d.ts +2 -1
  108. package/dist/glyphs/GlyphXmark.vue.d.ts.map +1 -1
  109. package/dist/helpers/props.js +28 -0
  110. package/dist/index.d.ts +1 -0
  111. package/dist/index.d.ts.map +1 -1
  112. package/dist/index.js +28 -0
  113. package/package.json +14 -8
  114. package/src/components/BaseMenu.vue +36 -29
  115. package/src/components/Btn.vue +197 -191
  116. package/src/components/Bubble.vue +110 -103
  117. package/src/components/Checkbox.vue +93 -86
  118. package/src/components/Chip.vue +109 -102
  119. package/src/components/ContextPopup.vue +9 -1
  120. package/src/components/Filler.vue +21 -14
  121. package/src/components/HGroup.vue +47 -41
  122. package/src/components/InputBase.vue +137 -130
  123. package/src/components/InputGroup.vue +26 -16
  124. package/src/components/InputSelect.vue +28 -21
  125. package/src/components/InputText.vue +24 -17
  126. package/src/components/InputTextarea.vue +31 -24
  127. package/src/components/ModalOverlay.vue +21 -14
  128. package/src/components/Slider.vue +258 -249
  129. package/src/components/Tab.vue +73 -66
  130. package/src/components/TabCap.vue +20 -13
  131. package/src/components/Toggle.vue +102 -95
  132. package/src/components/ToolPanel.vue +36 -35
  133. package/src/components/Tooltip.vue +184 -0
  134. package/src/components/VGroup.vue +43 -37
  135. package/src/components/index.ts +2 -0
  136. package/src/directives/index.ts +1 -0
  137. package/src/directives/tooltip.ts +50 -0
  138. package/src/index.ts +1 -0
  139. package/dist/components.mjs +0 -1719
@@ -0,0 +1,102 @@
1
+ import './Toggle.css';
2
+ import { nightshadeMixin as e } from "../helpers/props.js";
3
+ /* empty css */
4
+ import t from "../_virtual/_plugin-vue_export-helper.js";
5
+ import { createElementBlock as n, createElementVNode as r, normalizeClass as i, openBlock as a } from "vue";
6
+ // src/components/Toggle.vue
7
+ var o = {
8
+ mixins: [e],
9
+ props: {
10
+ modelValue: { type: Boolean },
11
+ disabled: { type: Boolean },
12
+ tone: { type: String },
13
+ activeTone: { type: String },
14
+ size: { type: String },
15
+ round: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ flat: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ outline: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ translucent: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ forceFocus: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ forceHover: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ focusOverrides: { type: Object },
40
+ hoverOverrides: { type: Object }
41
+ },
42
+ emits: ["update:modelValue"],
43
+ data() {
44
+ return {
45
+ hover: !1,
46
+ focus: !1
47
+ };
48
+ },
49
+ computed: {
50
+ isActive() {
51
+ return !!this.resolvedProps.modelValue;
52
+ },
53
+ baseStyle() {
54
+ let { resolvedProps: e } = this;
55
+ return {
56
+ tone: (this.isActive ? e.activeTone : e.tone) ?? e.tone,
57
+ size: e.size,
58
+ round: e.round,
59
+ outline: e.outline,
60
+ flat: e.flat,
61
+ translucent: e.translucent
62
+ };
63
+ },
64
+ effectiveStyle() {
65
+ let { baseStyle: e, hoverOverrides: t = {}, focusOverrides: n = {}, hover: r, focus: i, resolvedProps: a } = this, { forceHover: o, forceFocus: s } = a, c = Object.assign({}, e);
66
+ return (r || o) && Object.assign(c, t), (i || s) && Object.assign(c, n), c;
67
+ }
68
+ },
69
+ methods: { onChange(e) {
70
+ this.$emit("update:modelValue", e.target.checked);
71
+ } }
72
+ }, s = ["tabindex"], c = ["checked", "disabled"];
73
+ function l(e, t, o, l, u, d) {
74
+ return a(), n("label", {
75
+ class: i(["Toggle InputElement", [
76
+ d.effectiveStyle.tone && `tone-${d.effectiveStyle.tone}`,
77
+ d.effectiveStyle.size && `input-size-${d.effectiveStyle.size}`,
78
+ {
79
+ "Toggle-active": !!o.modelValue,
80
+ "Toggle-outline": d.effectiveStyle.outline,
81
+ "Toggle-round": d.effectiveStyle.round,
82
+ "Toggle-flat": d.effectiveStyle.flat,
83
+ "Toggle-translucent": d.effectiveStyle.translucent,
84
+ "Toggle-disabled": e.resolvedProps.disabled,
85
+ "Toggle-forceFocus": e.resolvedProps.forceFocus,
86
+ "Toggle-forceHover": e.resolvedProps.forceHover
87
+ }
88
+ ]]),
89
+ tabindex: e.resolvedProps.disabled ? -1 : 0,
90
+ onMouseenter: t[1] ||= (e) => u.hover = !0,
91
+ onMouseleave: t[2] ||= (e) => u.hover = !1,
92
+ onFocusin: t[3] ||= (e) => u.focus = !0,
93
+ onFocusout: t[4] ||= (e) => u.focus = !1
94
+ }, [r("input", {
95
+ type: "checkbox",
96
+ checked: e.resolvedProps.modelValue,
97
+ disabled: e.resolvedProps.disabled,
98
+ onChange: t[0] ||= (...e) => d.onChange && d.onChange(...e)
99
+ }, null, 40, c)], 42, s);
100
+ }
101
+ var u = /*#__PURE__*/ t(o, [["render", l], ["__scopeId", "data-v-cddc7472"]]);
102
+ export { u as default };
@@ -1,4 +1,9 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ export type __VLS_LocalComponents = {};
4
+ export type __VLS_GlobalComponents = import('vue').GlobalComponents;
5
+ export type __VLS_LocalDirectives = {};
6
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
7
  modelValue: {
3
8
  type: BooleanConstructor;
4
9
  };
@@ -134,5 +139,4 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
134
139
  forceHover: boolean;
135
140
  modelValue: boolean;
136
141
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
137
- export default _default;
138
142
  //# sourceMappingURL=Toggle.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/Toggle.vue"],"names":[],"mappings":"AA6BA;"}
1
+ {"version":3,"file":"Toggle.vue.d.ts","sourceRoot":"","sources":["../../src/components/Toggle.vue"],"names":[],"mappings":"AA6BA;wBA4P0B,OAAO,YAAY;;oCAE/B,EAAE;qCACF,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;AAwFhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA+EG"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.ToolPanel[data-v-89d92a54]{--ToolPanel-size:var(--input-major-height);--ToolPanel-padding:var(--input-minor-padding);--ToolPanel-gap:var(--input-gap);--ToolPanel-background:var(--surface-deep);--ToolPanel-border-size:0px;--ToolPanel-border:var(--border-deep);--ToolPanel-radius:var(--radius-m);--ToolPanel-shadow:var(--shadow-light);--ToolPanel-box-shadow:0 1px 1px var(--ToolPanel-shadow) inset, 0 0 5px var(--ToolPanel-shadow) inset;align-items:center;gap:var(--ToolPanel-gap);padding:calc(var(--ToolPanel-padding) - var(--ToolPanel-border-size));min-height:var(--ToolPanel-size);border:var(--ToolPanel-border-size) solid var(--ToolPanel-border);border-radius:var(--ToolPanel-radius);box-shadow:var(--ToolPanel-box-shadow);background:var(--ToolPanel-background);transition:color .3s,background-color .3s,border-radius .3s,filter .3s;display:flex}.ToolPanel-round[data-v-89d92a54]{--ToolPanel-radius:calc(.5 * var(--ToolPanel-size))}.ToolPanel-outline[data-v-89d92a54]{--ToolPanel-border-size:var(--input-border-size)}.ToolPanel-flat[data-v-89d92a54]{--ToolPanel-box-shadow:none}}
@@ -0,0 +1,33 @@
1
+ import './ToolPanel.css';
2
+ import { nightshadeMixin as e } from "../helpers/props.js";
3
+ /* empty css */
4
+ import t from "../_virtual/_plugin-vue_export-helper.js";
5
+ import { createElementBlock as n, normalizeClass as r, openBlock as i, renderSlot as a } from "vue";
6
+ // src/components/ToolPanel.vue
7
+ var o = {
8
+ mixins: [e],
9
+ props: {
10
+ size: { type: String },
11
+ flat: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ outline: {
16
+ type: Boolean,
17
+ default: !1
18
+ },
19
+ round: {
20
+ type: Boolean,
21
+ default: !1
22
+ }
23
+ }
24
+ };
25
+ function s(e, t, o, s, c, l) {
26
+ return i(), n("div", { class: r(["ToolPanel", [e.resolvedProps.size && `input-size-${e.resolvedProps.size}`, {
27
+ "ToolPanel-flat": e.resolvedProps.flat,
28
+ "ToolPanel-outline": e.resolvedProps.outline,
29
+ "ToolPanel-round": e.resolvedProps.round
30
+ }]]) }, [a(e.$slots, "default", {}, void 0, !0)], 2);
31
+ }
32
+ var c = /*#__PURE__*/ t(o, [["render", s], ["__scopeId", "data-v-89d92a54"]]);
33
+ export { c as default };
@@ -1,4 +1,10 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ export type __VLS_LocalComponents = {};
4
+ export type __VLS_GlobalComponents = import('vue').GlobalComponents;
5
+ export type __VLS_LocalDirectives = {};
6
+ export type __VLS_Slots = ReturnType<typeof __VLS_template>["__VLS_Slots"];
7
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
8
  size: {
3
9
  type: StringConstructor;
4
10
  };
@@ -44,5 +50,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
44
50
  outline: boolean;
45
51
  round: boolean;
46
52
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
- export default _default;
53
+ declare function __VLS_template(): {
54
+ __VLS_Slots: {
55
+ default?: (props: {}) => any;
56
+ };
57
+ };
48
58
  //# sourceMappingURL=ToolPanel.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToolPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/ToolPanel.vue"],"names":[],"mappings":"AAeA;"}
1
+ {"version":3,"file":"ToolPanel.vue.d.ts","sourceRoot":"","sources":["../../src/components/ToolPanel.vue"],"names":[],"mappings":"AAcA;wBA2F0B,OAAO,YAAY;;oCAE/B,EAAE;qCACF,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;0BAmCF,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAWG;AA7CH;;kBAyBc,CAAC,KAAK,IAAgB,KAAK,GAAG;;EAM3C"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.Tooltip[data-v-3dbe12cc]{--Tooltip-padding:var(--sp1) var(--sp1-5);--Tooltip-gap:var(--sp0-5);--Tooltip-width:var(--sp40);--Tooltip-title:var(--text-base);--Tooltip-text:var(--text-subtle);gap:var(--Tooltip-gap);width:max-content;max-width:var(--Tooltip-width);padding:var(--Tooltip-padding);font-size:var(--font-size-s);flex-flow:column;display:flex}.Title[data-v-3dbe12cc]{font-weight:var(--font-weight-bold);color:var(--Tooltip-title)}.Text[data-v-3dbe12cc]{color:var(--Tooltip-text)}.Text[data-v-3dbe12cc]:first-child{color:var(--Tooltip-title)}}
@@ -0,0 +1,97 @@
1
+ import './Tooltip.css';
2
+ import { nightshadeMixin as e } from "../helpers/props.js";
3
+ import t from "./ContextPopup.js";
4
+ /* empty css */
5
+ import n from "../_virtual/_plugin-vue_export-helper.js";
6
+ import { createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, openBlock as s, renderSlot as c, resolveComponent as l, toDisplayString as u, withCtx as d } from "vue";
7
+ // src/components/Tooltip.vue
8
+ var f = 300, p = {
9
+ components: { ContextPopup: t },
10
+ mixins: [e],
11
+ props: {
12
+ title: { type: String },
13
+ text: { type: String },
14
+ dir: {
15
+ type: String,
16
+ default: "top"
17
+ },
18
+ align: {
19
+ type: String,
20
+ default: "center"
21
+ },
22
+ anchorEl: { default: null }
23
+ },
24
+ data() {
25
+ return {
26
+ shown: !1,
27
+ anchor: null
28
+ };
29
+ },
30
+ computed: {
31
+ tooltipId() {
32
+ return `Tooltip-${this.$.uid}`;
33
+ },
34
+ hasContent() {
35
+ return !!(this.$slots.default || this.resolvedProps.title || this.resolvedProps.text);
36
+ }
37
+ },
38
+ created() {
39
+ this.showTimer = null, this.anchorTitle = null;
40
+ },
41
+ mounted() {
42
+ this.anchor = this.resolvedProps.anchorEl ?? this.$el.parentElement, this.anchor.addEventListener("pointerenter", this.onPointerEnter), this.anchor.addEventListener("pointerleave", this.hide), this.anchor.addEventListener("pointerdown", this.hide), this.anchor.addEventListener("focusin", this.onFocusIn), this.anchor.addEventListener("focusout", this.hide);
43
+ },
44
+ beforeUnmount() {
45
+ this.hide(), this.anchor.removeEventListener("pointerenter", this.onPointerEnter), this.anchor.removeEventListener("pointerleave", this.hide), this.anchor.removeEventListener("pointerdown", this.hide), this.anchor.removeEventListener("focusin", this.onFocusIn), this.anchor.removeEventListener("focusout", this.hide);
46
+ },
47
+ methods: {
48
+ show() {
49
+ clearTimeout(this.showTimer), !this.shown && this.hasContent && (this.anchorTitle = this.anchor.getAttribute("title"), this.anchor.removeAttribute("title"), this.anchor.setAttribute("aria-describedby", this.tooltipId), window.addEventListener("scroll", this.hide, {
50
+ capture: !0,
51
+ passive: !0
52
+ }), this.shown = !0);
53
+ },
54
+ hide() {
55
+ clearTimeout(this.showTimer), this.shown &&= (this.anchorTitle != null && this.anchor.setAttribute("title", this.anchorTitle), this.anchor.removeAttribute("aria-describedby"), window.removeEventListener("scroll", this.hide, { capture: !0 }), !1);
56
+ },
57
+ onPointerEnter(e) {
58
+ e.pointerType === "mouse" && (clearTimeout(this.showTimer), this.showTimer = setTimeout(() => this.show(), f));
59
+ },
60
+ onFocusIn(e) {
61
+ e.target.matches(":focus-visible") && this.show();
62
+ }
63
+ }
64
+ }, m = ["id"], h = {
65
+ key: 0,
66
+ class: "Title"
67
+ }, g = {
68
+ key: 1,
69
+ class: "Text"
70
+ };
71
+ function _(e, t, n, f, p, _) {
72
+ let v = l("ContextPopup");
73
+ return p.shown ? (s(), r(v, {
74
+ key: 0,
75
+ dir: e.resolvedProps.dir,
76
+ align: e.resolvedProps.align,
77
+ anchorEl: p.anchor,
78
+ anchorDir: "auto",
79
+ overlayEnabled: !1,
80
+ overlayShown: !1,
81
+ onHide: _.hide
82
+ }, {
83
+ default: d(() => [o("div", {
84
+ id: _.tooltipId,
85
+ class: "Tooltip",
86
+ role: "tooltip"
87
+ }, [c(e.$slots, "default", {}, () => [e.resolvedProps.title ? (s(), a("div", h, u(e.resolvedProps.title), 1)) : i("", !0), e.resolvedProps.text ? (s(), a("div", g, u(e.resolvedProps.text), 1)) : i("", !0)], !0)], 8, m)]),
88
+ _: 3
89
+ }, 8, [
90
+ "dir",
91
+ "align",
92
+ "anchorEl",
93
+ "onHide"
94
+ ])) : i("", !0);
95
+ }
96
+ var v = /*#__PURE__*/ n(p, [["render", _], ["__scopeId", "data-v-3dbe12cc"]]);
97
+ export { v as default };
@@ -0,0 +1,225 @@
1
+ import { default as ContextPopup } from './ContextPopup.vue';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ export type __VLS_LocalComponents = typeof __VLS_componentsOption;
5
+ export type __VLS_GlobalComponents = import('vue').GlobalComponents;
6
+ export type __VLS_LocalDirectives = {};
7
+ export type __VLS_Slots = ReturnType<typeof __VLS_template>["__VLS_Slots"];
8
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
9
+ title: {
10
+ type: StringConstructor;
11
+ };
12
+ text: {
13
+ type: StringConstructor;
14
+ };
15
+ dir: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ align: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ anchorEl: {
24
+ default: null;
25
+ };
26
+ }>, {}, {
27
+ shown: boolean;
28
+ anchor: null;
29
+ }, {
30
+ tooltipId(): string;
31
+ hasContent(): boolean;
32
+ }, {
33
+ show(): void;
34
+ hide(): void;
35
+ onPointerEnter(ev: any): void;
36
+ onFocusIn(ev: any): void;
37
+ }, {
38
+ inject: {
39
+ $nightshade: {
40
+ default: null;
41
+ };
42
+ };
43
+ computed: {
44
+ resolvedProps(): Record<string, any>;
45
+ };
46
+ }, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
47
+ title: {
48
+ type: StringConstructor;
49
+ };
50
+ text: {
51
+ type: StringConstructor;
52
+ };
53
+ dir: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ align: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ anchorEl: {
62
+ default: null;
63
+ };
64
+ }>> & Readonly<{}>, {
65
+ align: string;
66
+ dir: string;
67
+ anchorEl: null;
68
+ }, {}, {
69
+ ContextPopup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
70
+ dir: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ align: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ anchorRef: {
79
+ type: StringConstructor;
80
+ };
81
+ anchorEl: {
82
+ default: null;
83
+ };
84
+ anchorDir: {
85
+ type: StringConstructor;
86
+ default: string;
87
+ };
88
+ overlayEnabled: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ overlayShown: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ arrowShown: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ }>, {}, {
101
+ pos: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ actualDir: string;
106
+ actualAlign: string;
107
+ ready: boolean;
108
+ }, {
109
+ bubbleStyle(): {
110
+ left: string;
111
+ top: string;
112
+ 'pointer-events': string;
113
+ };
114
+ }, {
115
+ hide(): void;
116
+ calcPos(): void;
117
+ calcDirAlign(): void;
118
+ getAnchorEl(): any;
119
+ findRef(component: any, refKey: any): any;
120
+ getAnchorPoint(el: any, dir: any): {
121
+ x: any;
122
+ y: any;
123
+ };
124
+ onResize(): void;
125
+ }, {
126
+ inject: {
127
+ $nightshade: {
128
+ default: null;
129
+ };
130
+ };
131
+ computed: {
132
+ resolvedProps(): Record<string, any>;
133
+ };
134
+ }, import('vue').ComponentOptionsMixin, ("hide" | "mouseenter" | "mouseleave" | "ready")[], "hide" | "mouseenter" | "mouseleave" | "ready", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
135
+ dir: {
136
+ type: StringConstructor;
137
+ default: string;
138
+ };
139
+ align: {
140
+ type: StringConstructor;
141
+ default: string;
142
+ };
143
+ anchorRef: {
144
+ type: StringConstructor;
145
+ };
146
+ anchorEl: {
147
+ default: null;
148
+ };
149
+ anchorDir: {
150
+ type: StringConstructor;
151
+ default: string;
152
+ };
153
+ overlayEnabled: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ overlayShown: {
158
+ type: BooleanConstructor;
159
+ default: boolean;
160
+ };
161
+ arrowShown: {
162
+ type: BooleanConstructor;
163
+ default: boolean;
164
+ };
165
+ }>> & Readonly<{
166
+ onMouseenter?: ((...args: any[]) => any) | undefined;
167
+ onMouseleave?: ((...args: any[]) => any) | undefined;
168
+ onHide?: ((...args: any[]) => any) | undefined;
169
+ onReady?: ((...args: any[]) => any) | undefined;
170
+ }>, {
171
+ align: string;
172
+ dir: string;
173
+ arrowShown: boolean;
174
+ overlayEnabled: boolean;
175
+ overlayShown: boolean;
176
+ anchorEl: null;
177
+ anchorDir: string;
178
+ }, {}, {
179
+ ModalOverlay: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
180
+ overlayEnabled: {
181
+ type: BooleanConstructor;
182
+ default: boolean;
183
+ };
184
+ overlayShown: {
185
+ type: BooleanConstructor;
186
+ default: boolean;
187
+ };
188
+ }>, {}, {}, {}, {
189
+ hide(): void;
190
+ onKeyDown(ev: any): void;
191
+ }, {
192
+ inject: {
193
+ $nightshade: {
194
+ default: null;
195
+ };
196
+ };
197
+ computed: {
198
+ resolvedProps(): Record<string, any>;
199
+ };
200
+ }, import('vue').ComponentOptionsMixin, "hide"[], "hide", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
201
+ overlayEnabled: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ overlayShown: {
206
+ type: BooleanConstructor;
207
+ default: boolean;
208
+ };
209
+ }>> & Readonly<{
210
+ onHide?: ((...args: any[]) => any) | undefined;
211
+ }>, {
212
+ overlayEnabled: boolean;
213
+ overlayShown: boolean;
214
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
215
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
216
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
217
+ declare namespace __VLS_componentsOption {
218
+ export { ContextPopup };
219
+ }
220
+ declare function __VLS_template(): {
221
+ __VLS_Slots: {
222
+ default?: (props: {}) => any;
223
+ };
224
+ };
225
+ //# sourceMappingURL=Tooltip.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.vue.d.ts","sourceRoot":"","sources":["../../src/components/Tooltip.vue"],"names":[],"mappings":"AA6BA;wBAoM0B,OAAO,YAAY;;oCAK/B,OAAO,sBAAsB;qCAC7B,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;0BAsEF,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAsGG;;;;AA3KH;;kBA4Dc,CAAC,KAAK,IAAgB,KAAK,GAAG;;EAM3C;yBAtFwB,oBAAoB"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.VGroup[data-v-082136ab]{--VGroup-gap:var(--sp2);gap:var(--VGroup-gap);flex-flow:column;display:flex}.VGroup-align-stretch[data-v-082136ab]{align-items:stretch}.VGroup-align-baseline[data-v-082136ab]{align-items:baseline}.VGroup-align-center[data-v-082136ab]{align-items:center}.VGroup-align-start[data-v-082136ab]{align-items:flex-start}.VGroup-align-end[data-v-082136ab]{align-items:flex-end}.VGroup-justify-center[data-v-082136ab]{justify-content:center}.VGroup-justify-start[data-v-082136ab]{justify-content:flex-start}.VGroup-justify-end[data-v-082136ab]{justify-content:flex-end}.VGroup-justify-space-around[data-v-082136ab]{justify-content:space-around}.VGroup-justify-space-between[data-v-082136ab]{justify-content:space-between}.VGroup-justify-space-evenly[data-v-082136ab]{justify-content:space-evenly}}
@@ -0,0 +1,36 @@
1
+ import './VGroup.css';
2
+ import { nightshadeMixin as e } from "../helpers/props.js";
3
+ /* empty css */
4
+ import t from "../_virtual/_plugin-vue_export-helper.js";
5
+ import { createBlock as n, normalizeClass as r, normalizeStyle as i, openBlock as a, renderSlot as o, resolveDynamicComponent as s, withCtx as c } from "vue";
6
+ // src/components/VGroup.vue
7
+ var l = {
8
+ mixins: [e],
9
+ props: {
10
+ tagName: {
11
+ type: String,
12
+ default: "div"
13
+ },
14
+ align: {
15
+ type: String,
16
+ default: "stretch"
17
+ },
18
+ justify: { type: String },
19
+ gap: { type: [String, Number] }
20
+ },
21
+ computed: { gapStyle() {
22
+ let { gap: e } = this.resolvedProps;
23
+ return e == null ? {} : { "--VGroup-gap": String(e) === "0" ? "0px" : `var(--sp${e})` };
24
+ } }
25
+ };
26
+ function u(e, t, l, u, d, f) {
27
+ return a(), n(s(e.resolvedProps.tagName), {
28
+ class: r(["VGroup", [`VGroup-align-${e.resolvedProps.align}`, e.resolvedProps.justify && `VGroup-justify-${e.resolvedProps.justify}`]]),
29
+ style: i(f.gapStyle)
30
+ }, {
31
+ default: c(() => [o(e.$slots, "default", {}, void 0, !0)]),
32
+ _: 3
33
+ }, 8, ["style", "class"]);
34
+ }
35
+ var d = /*#__PURE__*/ t(l, [["render", u], ["__scopeId", "data-v-082136ab"]]);
36
+ export { d as default };
@@ -1,4 +1,10 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ export type __VLS_LocalComponents = {};
4
+ export type __VLS_GlobalComponents = import('vue').GlobalComponents;
5
+ export type __VLS_LocalDirectives = {};
6
+ export type __VLS_Slots = ReturnType<typeof __VLS_template>["__VLS_Slots"];
7
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
8
  tagName: {
3
9
  type: StringConstructor;
4
10
  default: string;
@@ -11,10 +17,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
17
  type: StringConstructor;
12
18
  };
13
19
  gap: {
14
- type: StringConstructor;
15
- default: string;
20
+ type: (StringConstructor | NumberConstructor)[];
21
+ };
22
+ }>, {}, {}, {
23
+ gapStyle(): {
24
+ '--VGroup-gap'?: undefined;
25
+ } | {
26
+ '--VGroup-gap': string;
16
27
  };
17
- }>, {}, {}, {}, {}, {
28
+ }, {}, {
18
29
  inject: {
19
30
  $nightshade: {
20
31
  default: null;
@@ -36,13 +47,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
47
  type: StringConstructor;
37
48
  };
38
49
  gap: {
39
- type: StringConstructor;
40
- default: string;
50
+ type: (StringConstructor | NumberConstructor)[];
41
51
  };
42
52
  }>> & Readonly<{}>, {
43
53
  tagName: string;
44
54
  align: string;
45
- gap: string;
46
55
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
47
- export default _default;
56
+ declare function __VLS_template(): {
57
+ __VLS_Slots: {
58
+ default?: (props: {}) => any;
59
+ };
60
+ };
48
61
  //# sourceMappingURL=VGroup.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VGroup.vue.d.ts","sourceRoot":"","sources":["../../src/components/VGroup.vue"],"names":[],"mappings":"AAYA;"}
1
+ {"version":3,"file":"VGroup.vue.d.ts","sourceRoot":"","sources":["../../src/components/VGroup.vue"],"names":[],"mappings":"AAYA;wBA+E0B,OAAO,YAAY;;oCAE/B,EAAE;qCACF,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;0BA8CF,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EA0BG;AAvEH;;kBAoCc,CAAC,KAAK,IAAgB,KAAK,GAAG;;EAM3C"}
@@ -19,6 +19,7 @@ import { default as Tab } from './Tab.vue';
19
19
  import { default as TabCap } from './TabCap.vue';
20
20
  import { default as Toggle } from './Toggle.vue';
21
21
  import { default as ToolPanel } from './ToolPanel.vue';
22
+ import { default as Tooltip } from './Tooltip.vue';
22
23
  import { default as VGroup } from './VGroup.vue';
23
- export { BaseMenu, Btn, Bubble, Checkbox, Chip, ContextMenu, ContextPopup, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, ModalOverlay, RouterBtn, Slider, Tab, TabCap, Toggle, ToolPanel, VGroup, };
24
+ export { BaseMenu, Btn, Bubble, Checkbox, Chip, ContextMenu, ContextPopup, Filler, HGroup, InputBase, InputGroup, InputSelect, InputText, InputTextarea, ModalOverlay, RouterBtn, Slider, Tab, TabCap, Toggle, ToolPanel, Tooltip, VGroup, };
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EACH,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,EACN,GAAG,EACH,MAAM,EACN,MAAM,EACN,SAAS,EACT,MAAM,GACT,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AACtC,OAAO,IAAI,MAAM,YAAY,CAAC;AAC9B,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,UAAU,MAAM,kBAAkB,CAAC;AAC1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,aAAa,MAAM,qBAAqB,CAAC;AAChD,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,SAAS,MAAM,iBAAiB,CAAC;AACxC,OAAO,OAAO,MAAM,eAAe,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,EACH,QAAQ,EACR,GAAG,EACH,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,MAAM,EACN,MAAM,EACN,SAAS,EACT,UAAU,EACV,WAAW,EACX,SAAS,EACT,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,EACN,GAAG,EACH,MAAM,EACN,MAAM,EACN,SAAS,EACT,OAAO,EACP,MAAM,GACT,CAAC"}