@nightshadeui/components 3.1.1 → 3.3.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
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @nightshadeui/components
2
+
3
+ Standard Nightshade controls for Vue 3: buttons, chips, text inputs, toggles, sliders, layout groups and overlays. They read the styles' roles and context, and share one grammar of props: `tone`, `size`, `flat`, `outline`, `round`, `translucent`, `disabled`.
4
+
5
+ ```bash
6
+ npm i @nightshadeui/stylesheets @nightshadeui/components
7
+ ```
8
+
9
+ Import the ones you use. Each brings its own CSS, in the `nightshade-components` layer:
10
+
11
+ ```ts
12
+ import '@nightshadeui/stylesheets';
13
+ import { Btn, HGroup } from '@nightshadeui/components';
14
+
15
+ app.component('Btn', Btn);
16
+ app.component('HGroup', HGroup);
17
+ ```
18
+
19
+ `standardComponents` maps every name to its component, to register them all. Set app-wide defaults with `app.provide('$nightshade', reactive({ defaults: { round: true } }))`, and restyle any component through its `--<Component>-*` variables.
20
+
21
+ `RouterBtn` needs `vue-router`. Overlays teleport into an element with `id="overlays"`.
package/css.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ // A stylesheet: importing it is a side effect, with nothing to type.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ // \0plugin-vue:export-helper
2
+ var e = (e, t) => {
3
+ let n = e.__vccOpts || e;
4
+ for (let [e, r] of t) n[e] = r;
5
+ return n;
6
+ };
7
+ export { e as default };
@@ -0,0 +1,10 @@
1
+ // \0rolldown/runtime.js
2
+ var e = Object.defineProperty, t = (t, n) => {
3
+ let r = {};
4
+ for (var i in t) e(r, i, {
5
+ get: t[i],
6
+ enumerable: !0
7
+ });
8
+ return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
9
+ };
10
+ export { t as __exportAll };
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.BaseMenu[data-v-97f926e5]{--BaseMenu-padding:var(--sp);--BaseMenu-gap:var(--sp0-5);--BaseMenu-min-width:var(--sp24);padding:var(--BaseMenu-padding);gap:var(--BaseMenu-gap);min-width:var(--BaseMenu-min-width)}.Header[data-v-97f926e5]{padding:var(--sp) var(--input-major-padding) 0;font-size:var(--font-size-s);font-weight:var(--font-weight-bold);text-transform:uppercase;opacity:.5;-webkit-user-select:none;user-select:none}.Separator[data-v-97f926e5]{height:var(--input-border-size);background:var(--border-base)}.Title[data-v-97f926e5]{text-align:left;flex:1}.Item[data-v-97f926e5]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}}
@@ -0,0 +1,108 @@
1
+ import './BaseMenu.css';
2
+ import { nightshadeMixin as e } from "../helpers/props.js";
3
+ import t from "./Btn.js";
4
+ import n from "./VGroup.js";
5
+ /* empty css */
6
+ import r from "../_virtual/_plugin-vue_export-helper.js";
7
+ import { Fragment as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, normalizeClass as l, openBlock as u, renderList as d, resolveComponent as f, toDisplayString as p, withCtx as m } from "vue";
8
+ // src/components/BaseMenu.vue
9
+ var h = {
10
+ components: {
11
+ Btn: t,
12
+ VGroup: n
13
+ },
14
+ mixins: [e],
15
+ props: {
16
+ items: {
17
+ type: Array,
18
+ default: () => []
19
+ },
20
+ size: { type: String },
21
+ round: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ autoFocus: {
26
+ type: Boolean,
27
+ default: !1
28
+ }
29
+ },
30
+ emits: ["activate"],
31
+ mounted() {
32
+ this.resolvedProps.autoFocus && this.$nextTick(() => {
33
+ let e = this.getFocusableEls()[0];
34
+ e && e.focus();
35
+ });
36
+ },
37
+ methods: {
38
+ getItemType(e) {
39
+ return e.type || "normal";
40
+ },
41
+ getFocusableEls() {
42
+ return Array.from(this.$el.querySelectorAll(".Item:not(:disabled)"));
43
+ },
44
+ onKeyDown(e) {
45
+ if (e.key === "ArrowUp" || e.key === "ArrowDown") {
46
+ e.preventDefault();
47
+ let t = this.getFocusableEls();
48
+ if (!t.length) return;
49
+ let n = document.activeElement, r = t.findIndex((e) => e === n || e.contains(n));
50
+ r = e.key === "ArrowDown" ? (r + 1) % t.length : (r + t.length - 1) % t.length, t[r]?.focus();
51
+ }
52
+ },
53
+ onItemClick(e, t) {
54
+ e.disabled || (typeof e.activate == "function" && e.activate(), this.$emit("activate", e, t));
55
+ }
56
+ }
57
+ }, g = {
58
+ key: 0,
59
+ class: "Header"
60
+ }, _ = {
61
+ key: 1,
62
+ class: "Separator"
63
+ }, v = { class: "Title" }, y = {
64
+ key: 0,
65
+ class: "CheckIcon"
66
+ };
67
+ function b(e, t, n, r, h, b) {
68
+ let x = f("Btn"), S = f("VGroup");
69
+ return u(), a(S, {
70
+ class: l(["BaseMenu", [e.resolvedProps.size && `input-size-${e.resolvedProps.size}`]]),
71
+ onKeydown: b.onKeyDown
72
+ }, {
73
+ default: m(() => [(u(!0), s(i, null, d(n.items, (t, n) => (u(), s(i, { key: n }, [
74
+ b.getItemType(t) === "header" ? (u(), s("div", g, p(t.title), 1)) : o("", !0),
75
+ b.getItemType(t) === "separator" ? (u(), s("div", _)) : o("", !0),
76
+ b.getItemType(t) === "normal" ? (u(), a(x, {
77
+ key: 2,
78
+ class: l(["Item", { "Item-checked": t.checked }]),
79
+ tone: t.tone,
80
+ size: e.resolvedProps.size,
81
+ round: e.resolvedProps.round,
82
+ flat: !0,
83
+ ghost: t.ghost ?? !0,
84
+ outline: t.outline,
85
+ disabled: t.disabled,
86
+ icon: t.icon,
87
+ onClick: (e) => b.onItemClick(t, e)
88
+ }, {
89
+ label: m(() => [c("div", v, p(t.title), 1)]),
90
+ after: m(() => [t.checked ? (u(), s("span", y, " ✓ ")) : o("", !0)]),
91
+ _: 2
92
+ }, 1032, [
93
+ "class",
94
+ "tone",
95
+ "size",
96
+ "round",
97
+ "ghost",
98
+ "outline",
99
+ "disabled",
100
+ "icon",
101
+ "onClick"
102
+ ])) : o("", !0)
103
+ ], 64))), 128))]),
104
+ _: 1
105
+ }, 8, ["class", "onKeydown"]);
106
+ }
107
+ var x = /*#__PURE__*/ r(h, [["render", b], ["__scopeId", "data-v-97f926e5"]]);
108
+ export { x as default };
@@ -1,4 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ import { default as Btn } from './Btn.vue';
2
+ import { default as VGroup } from './VGroup.vue';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ export type __VLS_LocalComponents = typeof __VLS_componentsOption;
6
+ export type __VLS_GlobalComponents = import('vue').GlobalComponents;
7
+ export type __VLS_LocalDirectives = {};
8
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
9
  items: {
3
10
  type: ArrayConstructor;
4
11
  default: () => never[];
@@ -276,10 +283,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
276
283
  type: StringConstructor;
277
284
  };
278
285
  gap: {
279
- type: StringConstructor;
280
- default: string;
286
+ type: (StringConstructor | NumberConstructor)[];
287
+ };
288
+ }>, {}, {}, {
289
+ gapStyle(): {
290
+ '--VGroup-gap'?: undefined;
291
+ } | {
292
+ '--VGroup-gap': string;
281
293
  };
282
- }>, {}, {}, {}, {}, {
294
+ }, {}, {
283
295
  inject: {
284
296
  $nightshade: {
285
297
  default: null;
@@ -301,14 +313,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
301
313
  type: StringConstructor;
302
314
  };
303
315
  gap: {
304
- type: StringConstructor;
305
- default: string;
316
+ type: (StringConstructor | NumberConstructor)[];
306
317
  };
307
318
  }>> & Readonly<{}>, {
308
319
  tagName: string;
309
320
  align: string;
310
- gap: string;
311
321
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
312
322
  }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
313
- export default _default;
323
+ declare namespace __VLS_componentsOption {
324
+ export { Btn };
325
+ export { VGroup };
326
+ }
314
327
  //# sourceMappingURL=BaseMenu.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/BaseMenu.vue"],"names":[],"mappings":"AAuDA;"}
1
+ {"version":3,"file":"BaseMenu.vue.d.ts","sourceRoot":"","sources":["../../src/components/BaseMenu.vue"],"names":[],"mappings":"AAuDA;wBA6L0B,OAAO,YAAY;;oCAM/B,OAAO,sBAAsB;qCAC7B,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;AAiIhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAuEG;;;;;gBArNa,WAAW;mBACR,cAAc"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.Btn[data-v-363985f6]{--Btn-size:var(--input-major-height);--Btn-padding:var(--input-major-padding);--Btn-gap:var(--input-gap);--Btn-font-size:var(--input-font-size);--Btn-text:var(--tone-fill-text);--Btn-outline:transparent;--Btn-fill:var(--tone-fill);--Btn-fill-top:var(--tone-fill-top);--Btn-fill-bottom:var(--tone-fill-bottom);--Btn-background:linear-gradient(to bottom, var(--Btn-fill-top), var(--Btn-fill-bottom));--Btn-border-size:0px;--Btn-border:transparent;--Btn-radius:var(--radius-m);--Btn-shadow:var(--tone-shadow);--Btn-box-shadow:0 1px 1px var(--Btn-shadow), 0 1px 5px var(--shadow-medium);--Btn-text-shadow:0 1px 1px var(--text-shadow-auto);appearance:none;padding:0 calc(var(--Btn-padding) - var(--Btn-border-size));height:var(--Btn-size);line-height:var(--Btn-size);box-sizing:border-box;justify-content:flex-start;align-items:center;gap:var(--Btn-gap);border:var(--Btn-border-size) solid var(--Btn-border);border-radius:var(--Btn-radius);color:var(--Btn-text);text-shadow:var(--Btn-text-shadow);outline:var(--input-outline-size) solid var(--Btn-outline);outline-offset:var(--input-outline-offset);background:var(--Btn-background);box-shadow:var(--Btn-box-shadow);cursor:pointer;-webkit-user-select:none;user-select:none;font-family:inherit;font-size:var(--Btn-font-size);flex-shrink:0;margin:0;transition:color .3s,outline .3s,filter .3s,border-radius .3s;display:inline-flex;position:relative}.Btn[data-v-363985f6]:after{content:"";z-index:1;border-radius:var(--Btn-radius);background:var(--input-hover-overlay);mix-blend-mode:color-dodge;pointer-events:none;opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.Label[data-v-363985f6]{line-height:var(--Btn-size);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.Icon[data-v-363985f6]{width:var(--sp2);font-size:var(--Btn-font-size);justify-content:center;align-items:center;display:flex}.Btn-iconPos-right .Icon[data-v-363985f6]{order:100}.Btn[data-v-363985f6]:focus,.Btn[data-v-363985f6]:active,.Btn[data-v-363985f6]:hover{transition:none}.Btn[data-v-363985f6]:not(.Btn-disabled):hover:after,.Btn.Btn-forceHover[data-v-363985f6]:after{opacity:1}.Btn[data-v-363985f6]:not(.Btn-disabled):focus-visible,.Btn.Btn-forceFocus[data-v-363985f6]{z-index:10;--Btn-outline:var(--tone-focus-outline);--Btn-border:var(--tone-focus-border)}.Btn[data-v-363985f6]:not(.Btn-disabled):active,.Btn.Btn-forceActive[data-v-363985f6]{box-shadow:0 6px 12px var(--shadow-light) inset, 0 1px 2px var(--shadow-medium) inset;padding-top:1px}.Btn-disabled[data-v-363985f6]{opacity:var(--input-disabled-opacity);filter:var(--input-disabled-filter);cursor:not-allowed}.Btn-round[data-v-363985f6]{--Btn-radius:calc(.5 * var(--Btn-size))}.Btn-outline[data-v-363985f6]{--Btn-border:var(--tone-border);--Btn-border-size:var(--input-border-size)}.Btn-ghost[data-v-363985f6]{--Btn-fill:transparent;--Btn-fill-top:transparent;--Btn-fill-bottom:transparent;--Btn-border:var(--tone-text);--Btn-text:var(--tone-text);--Btn-text-shadow:none;--Btn-box-shadow:none}.Btn-flat[data-v-363985f6]{--Btn-fill-top:var(--Btn-fill);--Btn-fill-bottom:var(--Btn-fill);--Btn-text-shadow:none;--Btn-box-shadow:none}.Btn-translucent[data-v-363985f6]{--Btn-background:linear-gradient(to bottom, color-mix(in srgb, var(--Btn-fill-top), transparent var(--translucency-mix-light)), color-mix(in srgb, var(--Btn-fill-bottom), transparent var(--translucency-mix-light)));--Btn-box-shadow:0 1px 1px var(--Btn-shadow), 0 1px 5px var(--shadow-medium), 0 0 3px var(--translucency-highlight) inset;-webkit-backdrop-filter:blur(var(--translucency-blur));backdrop-filter:blur(var(--translucency-blur))}.Btn-flat.Btn-translucent[data-v-363985f6]{--Btn-box-shadow:0 0 3px var(--translucency-highlight) inset}.Btn-ghost.Btn-translucent[data-v-363985f6]{--Btn-background:transparent;--Btn-box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.Btn-square[data-v-363985f6]{width:var(--Btn-size);justify-content:center;padding-left:0;padding-right:0}.Btn-block[data-v-363985f6]{flex:auto;justify-content:center;display:flex}}
@@ -0,0 +1,186 @@
1
+ import './Btn.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, createCommentVNode as r, createElementBlock as i, normalizeClass as a, openBlock as o, renderSlot as s, resolveDynamicComponent as c, toDisplayString as l, withCtx as u } from "vue";
6
+ // src/components/Btn.vue
7
+ var d = {
8
+ mixins: [e],
9
+ props: {
10
+ tagName: {
11
+ type: String,
12
+ default: "button"
13
+ },
14
+ href: { type: String },
15
+ label: { type: String },
16
+ title: { type: String },
17
+ tone: { type: String },
18
+ size: { type: String },
19
+ flat: {
20
+ type: Boolean,
21
+ default: !1
22
+ },
23
+ outline: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ round: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ translucent: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ ghost: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ block: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ square: {
44
+ type: Boolean,
45
+ default: !1
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ default: !1
50
+ },
51
+ forceFocus: {
52
+ type: Boolean,
53
+ default: !1
54
+ },
55
+ forceHover: {
56
+ type: Boolean,
57
+ default: !1
58
+ },
59
+ forceActive: {
60
+ type: Boolean,
61
+ default: !1
62
+ },
63
+ icon: { type: String },
64
+ iconPos: {
65
+ type: String,
66
+ default: "left"
67
+ },
68
+ hoverOverrides: { type: Object },
69
+ activeOverrides: { type: Object },
70
+ focusOverrides: { type: Object }
71
+ },
72
+ data() {
73
+ return {
74
+ hover: !1,
75
+ active: !1,
76
+ focus: !1,
77
+ blocked: !1
78
+ };
79
+ },
80
+ computed: {
81
+ isButton() {
82
+ return this.resolvedProps.tagName === "button";
83
+ },
84
+ inactive() {
85
+ return this.resolvedProps.disabled || this.blocked;
86
+ },
87
+ baseStyle() {
88
+ let { resolvedProps: e } = this;
89
+ return {
90
+ tone: e.tone,
91
+ size: e.size,
92
+ flat: e.flat,
93
+ outline: e.outline,
94
+ round: e.round,
95
+ translucent: e.translucent,
96
+ ghost: e.ghost
97
+ };
98
+ },
99
+ effectiveStyle() {
100
+ let { baseStyle: e, hoverOverrides: t = {}, activeOverrides: n = {}, focusOverrides: r = {}, active: i, hover: a, focus: o, resolvedProps: s } = this, { forceActive: c, forceHover: l, forceFocus: u } = s, d = Object.assign({}, e);
101
+ return (i || c) && Object.assign(d, n), (a || l) && Object.assign(d, t), (o || u) && Object.assign(d, r), d;
102
+ }
103
+ },
104
+ methods: { onClickCapture(e) {
105
+ this.inactive && (e.preventDefault(), e.stopImmediatePropagation());
106
+ } }
107
+ }, f = {
108
+ key: 0,
109
+ class: "Label"
110
+ };
111
+ function p(e, t, d, p, m, h) {
112
+ return o(), n(c(e.resolvedProps.tagName), {
113
+ ref: "button",
114
+ class: a(["Btn InputElement", [
115
+ h.effectiveStyle.tone && `tone-${h.effectiveStyle.tone}`,
116
+ h.effectiveStyle.size && `input-size-${h.effectiveStyle.size}`,
117
+ `Btn-iconPos-${e.resolvedProps.iconPos}`,
118
+ {
119
+ "Btn-ghost": h.effectiveStyle.ghost,
120
+ "Btn-round": h.effectiveStyle.round,
121
+ "Btn-outline": h.effectiveStyle.outline,
122
+ "Btn-flat": h.effectiveStyle.flat,
123
+ "Btn-translucent": h.effectiveStyle.translucent && !h.effectiveStyle.ghost,
124
+ "Btn-square": e.resolvedProps.square,
125
+ "Btn-block": e.resolvedProps.block,
126
+ "Btn-disabled": h.inactive,
127
+ "Btn-forceFocus": e.resolvedProps.forceFocus,
128
+ "Btn-forceHover": e.resolvedProps.forceHover,
129
+ "Btn-forceActive": e.resolvedProps.forceActive
130
+ }
131
+ ]]),
132
+ disabled: h.isButton ? h.inactive : void 0,
133
+ "aria-disabled": !h.isButton && h.inactive ? "true" : void 0,
134
+ tabindex: !h.isButton && h.inactive ? -1 : void 0,
135
+ title: e.resolvedProps.title ?? e.resolvedProps.label,
136
+ href: h.inactive ? void 0 : e.resolvedProps.href,
137
+ onClickCapture: h.onClickCapture,
138
+ onMouseenter: t[0] ||= (e) => m.hover = !0,
139
+ onMouseleave: t[1] ||= (e) => m.hover = !1,
140
+ onMousedown: t[2] ||= (e) => m.active = !0,
141
+ onMouseup: t[3] ||= (e) => m.active = !1,
142
+ onMouseout: t[4] ||= (e) => m.active = !1,
143
+ onFocusin: t[5] ||= (e) => m.focus = !0,
144
+ onFocusout: t[6] ||= (e) => m.focus = !1
145
+ }, {
146
+ default: u(() => [
147
+ s(e.$slots, "before", {
148
+ hover: m.hover,
149
+ active: m.active,
150
+ focus: m.focus,
151
+ blocked: m.blocked
152
+ }, void 0, !0),
153
+ s(e.$slots, "default", {
154
+ hover: m.hover,
155
+ active: m.active,
156
+ focus: m.focus,
157
+ blocked: m.blocked
158
+ }, () => [e.resolvedProps.icon ? (o(), i("i", {
159
+ key: 0,
160
+ class: a([e.resolvedProps.icon, "Icon"])
161
+ }, null, 2)) : r("", !0), s(e.$slots, "label", {
162
+ hover: m.hover,
163
+ active: m.active,
164
+ focus: m.focus,
165
+ blocked: m.blocked
166
+ }, () => [e.resolvedProps.label ? (o(), i("span", f, l(e.resolvedProps.label), 1)) : r("", !0)], !0)], !0),
167
+ s(e.$slots, "after", {
168
+ hover: m.hover,
169
+ active: m.active,
170
+ focus: m.focus,
171
+ blocked: m.blocked
172
+ }, void 0, !0)
173
+ ]),
174
+ _: 3
175
+ }, 40, [
176
+ "class",
177
+ "disabled",
178
+ "aria-disabled",
179
+ "tabindex",
180
+ "title",
181
+ "href",
182
+ "onClickCapture"
183
+ ]);
184
+ }
185
+ var m = /*#__PURE__*/ t(d, [["render", p], ["__scopeId", "data-v-363985f6"]]);
186
+ export { m 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;
@@ -211,5 +217,35 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
211
217
  forceActive: boolean;
212
218
  iconPos: string;
213
219
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
214
- export default _default;
220
+ declare function __VLS_template(): {
221
+ __VLS_Slots: {
222
+ before?: (props: {
223
+ hover: boolean;
224
+ active: boolean;
225
+ focus: boolean;
226
+ blocked: boolean;
227
+ }) => any;
228
+ } & {
229
+ default?: (props: {
230
+ hover: boolean;
231
+ active: boolean;
232
+ focus: boolean;
233
+ blocked: boolean;
234
+ }) => any;
235
+ } & {
236
+ label?: (props: {
237
+ hover: boolean;
238
+ active: boolean;
239
+ focus: boolean;
240
+ blocked: boolean;
241
+ }) => any;
242
+ } & {
243
+ after?: (props: {
244
+ hover: boolean;
245
+ active: boolean;
246
+ focus: boolean;
247
+ blocked: boolean;
248
+ }) => any;
249
+ };
250
+ };
215
251
  //# sourceMappingURL=Btn.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Btn.vue.d.ts","sourceRoot":"","sources":["../../src/components/Btn.vue"],"names":[],"mappings":"AA4EA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAseQ,wGAAwG"}
1
+ {"version":3,"file":"Btn.vue.d.ts","sourceRoot":"","sources":["../../src/components/Btn.vue"],"names":[],"mappings":"AA4EA;wBA8Y0B,OAAO,YAAY;;oCAE/B,EAAE;qCACF,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;0BAsOF,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+FQ,wGAAwG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAU7G;AA9UH;;iBAyNa,CAAC,KAAK;;;;;SAAiB,KAAK,GAAG;;kBAC9B,CAAC,KAAK;;;;;SAAiB,KAAK,GAAG;;gBACjC,CAAC,KAAK;;;;;SAAiB,KAAK,GAAG;;gBAC/B,CAAC,KAAK;;;;;SAAiB,KAAK,GAAG;;EAM1C"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.Bubble[data-v-a2d5f7a5]{--Bubble-background:var(--surface-raised);--Bubble-arrow-size:var(--sp);--Bubble-arrow-offset:var(--sp2);--Bubble-radius:var(--radius-m);--Bubble-shadow:var(--shadow-light);--Bubble-filter:drop-shadow(0 1px 3px var(--Bubble-shadow));z-index:10;filter:var(--Bubble-filter);position:absolute}.Body[data-v-a2d5f7a5]{min-width:var(--sp6);min-height:var(--sp2);border-radius:var(--Bubble-radius);background:var(--Bubble-background);position:absolute}.Arrow[data-v-a2d5f7a5]{z-index:5;border:var(--Bubble-arrow-size) solid transparent;width:0;height:0;position:absolute;transform:translate(-50%,-50%)}.Bubble-top>.Body[data-v-a2d5f7a5]{margin-bottom:var(--Bubble-arrow-size);bottom:0}.Bubble-bottom>.Body[data-v-a2d5f7a5]{margin-top:var(--Bubble-arrow-size);top:0}.Bubble-left>.Body[data-v-a2d5f7a5]{margin-right:var(--Bubble-arrow-size);right:0}.Bubble-right>.Body[data-v-a2d5f7a5]{margin-left:var(--Bubble-arrow-size);left:0}.Bubble-start.Bubble-top>.Body[data-v-a2d5f7a5],.Bubble-start.Bubble-bottom>.Body[data-v-a2d5f7a5]{transform:translateX(calc(-1 * var(--Bubble-arrow-offset)));left:0}.Bubble-center.Bubble-top>.Body[data-v-a2d5f7a5],.Bubble-center.Bubble-bottom>.Body[data-v-a2d5f7a5]{transform:translate(-50%)}.Bubble-end.Bubble-top>.Body[data-v-a2d5f7a5],.Bubble-end.Bubble-bottom>.Body[data-v-a2d5f7a5]{transform:translateX(var(--Bubble-arrow-offset));right:0}.Bubble-start.Bubble-left>.Body[data-v-a2d5f7a5],.Bubble-start.Bubble-right>.Body[data-v-a2d5f7a5]{transform:translateY(calc(-1 * var(--Bubble-arrow-offset)));top:0}.Bubble-center.Bubble-left>.Body[data-v-a2d5f7a5],.Bubble-center.Bubble-right>.Body[data-v-a2d5f7a5]{transform:translateY(-50%)}.Bubble-end.Bubble-left>.Body[data-v-a2d5f7a5],.Bubble-end.Bubble-right>.Body[data-v-a2d5f7a5]{transform:translateY(var(--Bubble-arrow-offset));bottom:0}.Bubble-top>.Arrow[data-v-a2d5f7a5]{border-top-color:var(--Bubble-background)}.Bubble-bottom>.Arrow[data-v-a2d5f7a5]{border-bottom-color:var(--Bubble-background)}.Bubble-left>.Arrow[data-v-a2d5f7a5]{border-left-color:var(--Bubble-background)}.Bubble-right>.Arrow[data-v-a2d5f7a5]{border-right-color:var(--Bubble-background)}}
@@ -0,0 +1,37 @@
1
+ import './Bubble.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 { Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, normalizeClass as s, openBlock as c, renderSlot as l, withCtx as u } from "vue";
6
+ // src/components/Bubble.vue
7
+ var d = {
8
+ mixins: [e],
9
+ props: {
10
+ dir: {
11
+ type: String,
12
+ default: "bottom"
13
+ },
14
+ align: {
15
+ type: String,
16
+ default: "start"
17
+ },
18
+ arrowShown: {
19
+ type: Boolean,
20
+ default: !0
21
+ }
22
+ }
23
+ }, f = {
24
+ key: 0,
25
+ class: "Arrow"
26
+ }, p = { class: "Body" };
27
+ function m(e, t, d, m, h, g) {
28
+ return c(), r(n, {
29
+ name: "fade-" + e.resolvedProps.dir,
30
+ appear: ""
31
+ }, {
32
+ default: u(() => [o("div", { class: s(["Bubble", [`Bubble-${e.resolvedProps.dir}`, `Bubble-${e.resolvedProps.align}`]]) }, [e.resolvedProps.arrowShown ? (c(), a("div", f)) : i("", !0), o("div", p, [l(e.$slots, "default", {}, void 0, !0)])], 2)]),
33
+ _: 3
34
+ }, 8, ["name"]);
35
+ }
36
+ var h = /*#__PURE__*/ t(d, [["render", m], ["__scopeId", "data-v-a2d5f7a5"]]);
37
+ export { h 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
  dir: {
3
9
  type: StringConstructor;
4
10
  default: string;
@@ -38,5 +44,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
38
44
  dir: string;
39
45
  arrowShown: boolean;
40
46
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
- export default _default;
47
+ declare function __VLS_template(): {
48
+ __VLS_Slots: {
49
+ default?: (props: {}) => any;
50
+ };
51
+ };
42
52
  //# sourceMappingURL=Bubble.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Bubble.vue.d.ts","sourceRoot":"","sources":["../../src/components/Bubble.vue"],"names":[],"mappings":"AAmBA;"}
1
+ {"version":3,"file":"Bubble.vue.d.ts","sourceRoot":"","sources":["../../src/components/Bubble.vue"],"names":[],"mappings":"AAmBA;wBA2J0B,OAAO,YAAY;;oCAE/B,EAAE;qCACF,OAAO,KAAK,EAAE,gBAAgB;oCAG9B,EAAE;0BAwGF,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAUG;AAjHH;;kBA8Fc,CAAC,KAAK,IAAgB,KAAK,GAAG;;EAM3C"}
@@ -0,0 +1 @@
1
+ @layer nightshade;@layer nightshade-components{.Checkbox[data-v-340042a7]{--Checkbox-size:var(--input-minor-height);--Checkbox-outline:transparent;--Checkbox-background:var(--surface-deep);--Checkbox-border-size:0px;--Checkbox-border:transparent;--Checkbox-radius:var(--radius-m);--Checkbox-box-shadow:0 1px 3px var(--Checkbox-shadow) inset, 0 0 5px -1px var(--Checkbox-shadow) inset;--Checkbox-shadow:var(--shadow-light);--Checkbox-mark-text-shadow:0 1px 1px var(--text-shadow-auto);width:var(--Checkbox-size);height:var(--Checkbox-size);border:var(--Checkbox-border-size) solid var(--Checkbox-border);border-radius:var(--Checkbox-radius);background:var(--Checkbox-background);outline:var(--input-outline-size) solid var(--Checkbox-outline);outline-offset:var(--input-outline-offset);font-size:var(--Checkbox-size);color:var(--tone-fill-text);text-shadow:var(--Checkbox-mark-text-shadow);box-shadow:var(--Checkbox-box-shadow);cursor:pointer;-webkit-user-select:none;user-select:none;background-clip:border-box;justify-content:center;align-items:center;transition:background-color .3s,border-radius .3s;display:inline-flex;position:relative;overflow:hidden}.Checkbox input[data-v-340042a7]{display:none}.Mark[data-v-340042a7]{opacity:0;transition:opacity .1s,border-radius .3s}.MarkGlyph[data-v-340042a7]{width:1em;height:1em}.Checkbox-active .Mark[data-v-340042a7]{opacity:1}.Checkbox-mark-dot .Mark[data-v-340042a7]:after{content:"●"}.Checkbox-mark-knob .Mark[data-v-340042a7]{content:"";width:calc(var(--Checkbox-size) - var(--sp));height:calc(var(--Checkbox-size) - var(--sp));border-radius:calc(var(--Checkbox-radius) - 2px);background:var(--tone-fill-text);box-shadow:0 1px 2px var(--Checkbox-shadow)}.Checkbox-disabled[data-v-340042a7]{cursor:not-allowed;opacity:var(--input-disabled-opacity);filter:var(--input-disabled-filter)}.Checkbox[data-v-340042a7]:not(.Checkbox-disabled):hover,.Checkbox.Checkbox-forceHover[data-v-340042a7]{filter:var(--input-hover-filter)}.Checkbox[data-v-340042a7]:not(.Checkbox-disabled):focus-visible,.Checkbox.Checkbox-forceFocus[data-v-340042a7]{z-index:10;--Checkbox-outline:var(--tone-focus-outline);--Checkbox-border:var(--tone-focus-border)}.Checkbox-active[data-v-340042a7]{--Checkbox-background:var(--tone-fill)}.Checkbox-round[data-v-340042a7]{--Checkbox-radius:calc(.5 * var(--Checkbox-size))}.Checkbox-outline[data-v-340042a7]{--Checkbox-border:var(--tone-border);--Checkbox-border-size:var(--input-border-size)}.Checkbox-flat[data-v-340042a7]{--Checkbox-box-shadow:none;--Checkbox-shadow:transparent;--Checkbox-mark-text-shadow:none}}
@@ -0,0 +1,116 @@
1
+ import './Checkbox.css';
2
+ import e from "../glyphs/GlyphCheck.js";
3
+ import t from "../glyphs/GlyphXmark.js";
4
+ import { nightshadeMixin as n } from "../helpers/props.js";
5
+ /* empty css */
6
+ import r from "../_virtual/_plugin-vue_export-helper.js";
7
+ import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, normalizeClass as c, openBlock as l, renderSlot as u, resolveDynamicComponent as d } from "vue";
8
+ // src/components/Checkbox.vue
9
+ var f = {
10
+ mixins: [n],
11
+ props: {
12
+ mark: {
13
+ type: String,
14
+ default: "check"
15
+ },
16
+ modelValue: { type: Boolean },
17
+ disabled: { type: Boolean },
18
+ tone: { type: String },
19
+ activeTone: { type: String },
20
+ size: { type: String },
21
+ round: {
22
+ type: Boolean,
23
+ default: !1
24
+ },
25
+ flat: {
26
+ type: Boolean,
27
+ default: !1
28
+ },
29
+ outline: {
30
+ type: Boolean,
31
+ default: !1
32
+ },
33
+ forceFocus: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ forceHover: {
38
+ type: Boolean,
39
+ default: !1
40
+ },
41
+ focusOverrides: { type: Object },
42
+ hoverOverrides: { type: Object }
43
+ },
44
+ emits: ["update:modelValue"],
45
+ data() {
46
+ return {
47
+ hover: !1,
48
+ focus: !1
49
+ };
50
+ },
51
+ computed: {
52
+ markComponent() {
53
+ return this.resolvedProps.mark === "check" ? e : this.resolvedProps.mark === "xmark" ? t : null;
54
+ },
55
+ isActive() {
56
+ return !!this.resolvedProps.modelValue;
57
+ },
58
+ baseStyle() {
59
+ let { resolvedProps: e } = this;
60
+ return {
61
+ tone: (this.isActive ? e.activeTone : e.tone) ?? e.tone,
62
+ size: e.size,
63
+ round: e.round,
64
+ outline: e.outline,
65
+ flat: e.flat
66
+ };
67
+ },
68
+ effectiveStyle() {
69
+ let { baseStyle: e, hoverOverrides: t = {}, focusOverrides: n = {}, hover: r, focus: i, resolvedProps: a } = this, { forceHover: o, forceFocus: s } = a, c = Object.assign({}, e);
70
+ return (r || o) && Object.assign(c, t), (i || s) && Object.assign(c, n), c;
71
+ }
72
+ },
73
+ methods: { onChange(e) {
74
+ this.$emit("update:modelValue", e.target.checked);
75
+ } }
76
+ }, p = ["tabindex"], m = {
77
+ key: 1,
78
+ class: "Mark"
79
+ }, h = ["checked", "disabled"];
80
+ function g(e, t, n, r, f, g) {
81
+ return l(), o("label", {
82
+ class: c(["Checkbox InputElement", [
83
+ g.effectiveStyle.tone && `tone-${g.effectiveStyle.tone}`,
84
+ g.effectiveStyle.size && `input-size-${g.effectiveStyle.size}`,
85
+ `Checkbox-mark-${e.resolvedProps.mark}`,
86
+ {
87
+ "Checkbox-active": !!e.resolvedProps.modelValue,
88
+ "Checkbox-outline": g.effectiveStyle.outline,
89
+ "Checkbox-round": g.effectiveStyle.round,
90
+ "Checkbox-flat": g.effectiveStyle.flat,
91
+ "Checkbox-disabled": e.resolvedProps.disabled,
92
+ "Checkbox-forceFocus": e.resolvedProps.forceFocus,
93
+ "Checkbox-forceHover": e.resolvedProps.forceHover
94
+ }
95
+ ]]),
96
+ tabindex: e.resolvedProps.disabled ? -1 : 0,
97
+ onMouseenter: t[1] ||= (e) => f.hover = !0,
98
+ onMouseleave: t[2] ||= (e) => f.hover = !1,
99
+ onFocusin: t[3] ||= (e) => f.focus = !0,
100
+ onFocusout: t[4] ||= (e) => f.focus = !1
101
+ }, [
102
+ e.resolvedProps.modelValue ? u(e.$slots, "active", {}, () => [g.markComponent ? (l(), i(d(g.markComponent), {
103
+ key: 0,
104
+ class: "Mark MarkGlyph"
105
+ })) : (l(), o("div", m))], !0, 0) : a("", !0),
106
+ e.resolvedProps.modelValue ? a("", !0) : u(e.$slots, "inactive", {}, void 0, !0, 1),
107
+ s("input", {
108
+ type: "checkbox",
109
+ checked: e.resolvedProps.modelValue,
110
+ disabled: e.resolvedProps.disabled,
111
+ onChange: t[0] ||= (...e) => g.onChange && g.onChange(...e)
112
+ }, null, 40, h)
113
+ ], 42, p);
114
+ }
115
+ var _ = /*#__PURE__*/ r(f, [["render", g], ["__scopeId", "data-v-340042a7"]]);
116
+ export { _ as default };