fluency-v8-components 1.3.8 → 1.3.9

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.
@@ -3117,7 +3117,7 @@ const yH = { class: "flex items-center" }, bH = {
3117
3117
  onChange: s[0] || (s[0] = (o) => n.value = o.target.value),
3118
3118
  displayValue: (o) => o
3119
3119
  }, null, 8, ["displayValue"]),
3120
- he(J(cg), { class: "input-block absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm" }, {
3120
+ he(J(cg), { class: "input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm" }, {
3121
3121
  default: Me(() => [
3122
3122
  r.value && !i.value.some((o) => o.value === r.value) ? (q(), Je(J(mh), {
3123
3123
  key: 0,
@@ -4078,7 +4078,7 @@ function Cj(e, t, n, r, i, a) {
4078
4078
  Di(K("input", {
4079
4079
  type: "text",
4080
4080
  class: st([
4081
- "input-block",
4081
+ "pl-3 input-block",
4082
4082
  n.error ? "ring-red-600 " : "",
4083
4083
  n.readonly ? "disabled" : ""
4084
4084
  ]),
@@ -4108,7 +4108,7 @@ function Cj(e, t, n, r, i, a) {
4108
4108
  "leave-to-class": "opacity-0"
4109
4109
  }, {
4110
4110
  default: Me(() => [
4111
- he(A, { class: "input-block absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base sm:text-sm" }, {
4111
+ he(A, { class: "input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base sm:text-sm" }, {
4112
4112
  default: Me(() => [
4113
4113
  (q(!0), de(gt, null, tn(a.sortedOptions, (d) => (q(), Je(l, {
4114
4114
  as: "template",
@@ -4145,7 +4145,7 @@ function Cj(e, t, n, r, i, a) {
4145
4145
  }
4146
4146
  const vSe = /* @__PURE__ */ xr(bj, [["render", Cj]]), Sj = { class: "relative w-full rounded-lg text-left min-h-9" }, kj = { class: "flex items-center ml-2 select-chip mt-2" }, Ej = { class: "text-xs font-normal leading-none max-w-full flex-initial" }, Fj = {
4147
4147
  key: 0,
4148
- class: "relative z-10 flex flex-auto flex-row-reverse"
4148
+ class: "relative z-9 flex flex-auto flex-row-reverse"
4149
4149
  }, Lj = {
4150
4150
  key: 0,
4151
4151
  class: "block truncate"
@@ -4282,7 +4282,7 @@ const vSe = /* @__PURE__ */ xr(bj, [["render", Cj]]), Sj = { class: "relative w-
4282
4282
  onAfterLeave: c[3] || (c[3] = (p) => a.value = "")
4283
4283
  }, {
4284
4284
  default: Me(() => [
4285
- he(J(cg), { class: "input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm" }, {
4285
+ he(J(cg), { class: "input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm" }, {
4286
4286
  default: Me(() => [
4287
4287
  o.value.length === 0 && a.value !== "" ? (q(), de("div", {
4288
4288
  key: 0,
@@ -17989,6 +17989,10 @@ var Fm = TX();
17989
17989
  const EU = {
17990
17990
  __name: "CodeEditor",
17991
17991
  props: {
17992
+ theme: {
17993
+ type: String,
17994
+ default: "dark"
17995
+ },
17992
17996
  fontSize: {
17993
17997
  type: String,
17994
17998
  default: "12px"
@@ -18019,13 +18023,15 @@ const EU = {
18019
18023
  function n(r) {
18020
18024
  return r.length > 1e5 ? Fm.highlight(r, {}) : t.noHighlight ? Fm.highlight(r, {}) : t.isFPL ? Fm.highlight(r, UX) : Fm.highlight(r, IX);
18021
18025
  }
18022
- return (r, i) => (q(), Je(J(EX), ps({ class: "editor-style" }, r.$attrs, {
18026
+ return (r, i) => (q(), Je(J(EX), ps({
18027
+ class: ["editor-style", t.theme === "dark" ? "editor-style-dark" : "editor-style-light"]
18028
+ }, r.$attrs, {
18023
18029
  style: `fontSize: ${t.fontSize}`,
18024
18030
  readonly: t.readonly,
18025
18031
  "tab-size": t.tabSize,
18026
18032
  highlight: n,
18027
18033
  "line-numbers": t.lineNumbers
18028
- }), null, 16, ["style", "readonly", "tab-size", "line-numbers"]));
18034
+ }), null, 16, ["class", "style", "readonly", "tab-size", "line-numbers"]));
18029
18035
  }
18030
18036
  }, NX = { class: "fixed inset-0 overflow-y-auto" }, OX = { class: "flex min-h-full items-center justify-center p-2 text-center" }, MX = { class: "bg-sky-700 px-4 py-3 text-white sm:px-6" }, QX = { class: "flex items-center justify-between" }, DX = { class: "ml-3 flex h-7 items-center" }, $Se = /* @__PURE__ */ xt({
18031
18037
  __name: "PopupEditor",
@@ -19303,7 +19309,7 @@ const EU = {
19303
19309
  placeholder: "Search",
19304
19310
  onInput: o,
19305
19311
  onKeyup: u[1] || (u[1] = o4((d) => r("search", i.value), ["enter"])),
19306
- class: "w-full dark:dark-bg py-2 px-2"
19312
+ class: "w-full bg-white outline-1 dark:dark-bg py-2 px-2"
19307
19313
  }, null, 8, ["modelValue"]),
19308
19314
  he(Rs, {
19309
19315
  "enter-active-class": "transition duration-100 ease-out",
@@ -26874,7 +26880,7 @@ const qoe = {
26874
26880
  _: 3
26875
26881
  }));
26876
26882
  }
26877
- }, nle = {}, rle = { class: "bg-neutral-600 text-white pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center" }, ile = { class: "mt-3 flex sm:mt-0" };
26883
+ }, nle = {}, rle = { class: "bg-gray-400 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center dark:bg-neutral-600 dark:text-white" }, ile = { class: "mt-3 flex sm:mt-0" };
26878
26884
  function ale(e, t) {
26879
26885
  return q(), de("div", rle, [
26880
26886
  gn(e.$slots, "title"),
@@ -62708,7 +62714,7 @@ function(e) {
62708
62714
  var A = l.getContext("2d");
62709
62715
  A.fillStyle = "#fff", A.fillRect(0, 0, l.width, l.height);
62710
62716
  var u = { ignoreMouse: !0, ignoreAnimation: !0, ignoreDimensions: !0 }, d = this;
62711
- return (Bn.canvg ? Promise.resolve(Bn.canvg) : import("./index.es-B_UwL3US.mjs")).catch(function(f) {
62717
+ return (Bn.canvg ? Promise.resolve(Bn.canvg) : import("./index.es-BrS6IGfB.mjs")).catch(function(f) {
62712
62718
  return Promise.reject(new Error("Could not load canvg: " + f));
62713
62719
  }).then(function(f) {
62714
62720
  return f.default ? f.default : f;
@@ -1,4 +1,4 @@
1
- import { c as Da, _ as Va, g as il } from "./index-mewQ1Z9n.mjs";
1
+ import { c as Da, _ as Va, g as il } from "./index-DrG6GyAN.mjs";
2
2
  var fn = {}, cn = {}, cr, vn;
3
3
  function Q() {
4
4
  if (vn) return cr;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluency-v8-components",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "main": "dist/fluency-v8-components.umd.js",
5
5
  "module": "dist/fluency-v8-components.es.js",
6
6
  "types": "dist/index.d.ts",
@@ -4,11 +4,23 @@
4
4
  }
5
5
 
6
6
  @utility editor-style {
7
+ font-family: Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace;
8
+ padding: 10px 5px 10px 5px;
9
+ :focus {
10
+ outline: none;
11
+ }
12
+ }
13
+
14
+ @utility editor-style-light {
15
+ scrollbar-color: #94a3b8 #64748b;
16
+ background: #475569;
17
+ color: #f8fafc;
18
+ }
19
+
20
+ @utility editor-style-dark {
7
21
  scrollbar-color: #e0e7ff #303030;
8
22
  background: #303030;
9
23
  color: #FFFFFF;
10
- font-family: Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace;
11
- padding: 10px 5px 10px 5px;
12
24
  }
13
25
 
14
26
  @utility report-container {
@@ -8,7 +8,7 @@
8
8
  placeholder="Search"
9
9
  @input="onChange"
10
10
  @keyup.enter="emits('search', newVal)"
11
- class="w-full dark:dark-bg py-2 px-2"
11
+ class="w-full bg-white outline-1 dark:dark-bg py-2 px-2"
12
12
  />
13
13
  <transition
14
14
  enter-active-class="transition duration-100 ease-out"
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <PrismEditor
3
- class="editor-style"
3
+ :class="['editor-style', props.theme === 'dark' ? 'editor-style-dark' : 'editor-style-light']"
4
4
  v-bind="$attrs"
5
5
  :style="`fontSize: ${props.fontSize}`"
6
6
  :readonly="props.readonly"
@@ -18,6 +18,10 @@ import "@/assets/prism-theme.css"; // import syntax highlighting styles
18
18
 
19
19
  // props and emits
20
20
  const props = defineProps({
21
+ theme: {
22
+ type: String,
23
+ default: "dark",
24
+ },
21
25
  fontSize: {
22
26
  type: String,
23
27
  default: "12px",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="bg-neutral-600 text-white pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center"
3
+ class="bg-gray-400 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center dark:bg-neutral-600 dark:text-white"
4
4
  >
5
5
  <slot name="title" />
6
6
  <div class="mt-3 flex sm:mt-0">
@@ -15,7 +15,7 @@
15
15
  :displayValue="(option) => option"
16
16
  />
17
17
  <ComboboxOptions
18
- class="input-block absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm"
18
+ class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm"
19
19
  >
20
20
  <ComboboxOption
21
21
  v-if="queryOption && !filteredOptions.some((option) => option.value === queryOption)"
@@ -4,7 +4,7 @@
4
4
  <input
5
5
  type="text"
6
6
  :class="[
7
- 'input-block',
7
+ 'pl-3 input-block',
8
8
  error ? 'ring-red-600 ' : '',
9
9
  readonly ? 'disabled' : '',
10
10
  ]"
@@ -24,7 +24,7 @@
24
24
  leave-to-class="opacity-0"
25
25
  >
26
26
  <ComboboxOptions
27
- class="input-block absolute z-10 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base sm:text-sm"
27
+ class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base sm:text-sm"
28
28
  >
29
29
  <ComboboxOption
30
30
  as="template"
@@ -24,7 +24,7 @@
24
24
  </div>
25
25
  <div
26
26
  v-if="!readonly"
27
- class="relative z-10 flex flex-auto flex-row-reverse"
27
+ class="relative z-9 flex flex-auto flex-row-reverse"
28
28
  >
29
29
  <XMarkIcon
30
30
  class="icon cursor-pointer hover:opacity-75"
@@ -64,7 +64,7 @@
64
64
  @after-leave="query = ''"
65
65
  >
66
66
  <ComboboxOptions
67
- class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md bg-white p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm"
67
+ class="input-block absolute z-20 mt-1 max-h-56 w-full overflow-auto rounded-md p-1 text-base shadow-lg ring-1 ring-black/5 focus:outline-hidden sm:text-sm"
68
68
  >
69
69
  <div
70
70
  v-if="filteredOptions.length === 0 && query !== ''"