@oneflowui/ui 0.5.8 → 0.6.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 (123) hide show
  1. package/README.en.md +19 -0
  2. package/README.md +23 -0
  3. package/dist/components/ContextMenu/index.vue.js +2 -2
  4. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  5. package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
  6. package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
  7. package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
  8. package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
  9. package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
  10. package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
  11. package/dist/components/Dashboard/index.vue.js +3 -3
  12. package/dist/components/ai/AiMessageBubble.vue.js +3 -3
  13. package/dist/components/ai/AiSender.vue.js +2 -2
  14. package/dist/components/ai/AiThinking.vue.js +1 -1
  15. package/dist/components/ai/UserMessageBubble.vue.js +3 -3
  16. package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
  17. package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
  18. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  19. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  20. package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
  21. package/dist/components/base/Accordion.vue.js +1 -1
  22. package/dist/components/base/Avatar.vue.js +3 -3
  23. package/dist/components/base/Avatar.vue2.js +43 -43
  24. package/dist/components/base/Badge.vue.js +1 -1
  25. package/dist/components/base/Badge.vue2.js +35 -35
  26. package/dist/components/base/ButtonGroup.vue.js +2 -2
  27. package/dist/components/base/ChainItem.vue.js +2 -2
  28. package/dist/components/base/ChainItem.vue2.js +30 -30
  29. package/dist/components/base/DescBlock.vue.js +3 -3
  30. package/dist/components/base/DropdownMenu.vue.js +2 -2
  31. package/dist/components/base/EmptyState.vue.js +1 -1
  32. package/dist/components/base/InfoCard.vue.js +2 -2
  33. package/dist/components/base/InfoCard.vue2.js +66 -66
  34. package/dist/components/base/MonitorItem.vue.js +1 -1
  35. package/dist/components/base/MonitorItem.vue2.js +16 -16
  36. package/dist/components/base/PersonaCard.vue.js +1 -1
  37. package/dist/components/base/PersonaCard.vue2.js +81 -81
  38. package/dist/components/base/ProgressBar.vue.js +2 -2
  39. package/dist/components/base/ProgressBar.vue2.js +16 -16
  40. package/dist/components/base/RangeSlider.vue.js +1 -1
  41. package/dist/components/base/RefTag.vue.js +2 -2
  42. package/dist/components/base/RefTag.vue2.js +20 -20
  43. package/dist/components/base/SearchHighlight.vue.js +1 -1
  44. package/dist/components/base/SectionBlock.vue.js +1 -1
  45. package/dist/components/base/SectionBlock.vue2.js +44 -44
  46. package/dist/components/base/StatisticCard.vue.js +2 -2
  47. package/dist/components/base/StatisticCard.vue2.js +24 -24
  48. package/dist/components/base/StatusIndicator.vue.js +2 -2
  49. package/dist/components/base/StatusIndicator.vue2.js +30 -30
  50. package/dist/components/base/StatusSummary.vue.js +2 -2
  51. package/dist/components/base/StatusSummary.vue2.js +23 -23
  52. package/dist/components/base/Stepper.vue.js +2 -2
  53. package/dist/components/base/Switch.vue.js +2 -2
  54. package/dist/components/base/ToolbarBtn.vue.js +1 -1
  55. package/dist/components/base/ViewModeGroup.vue.js +3 -3
  56. package/dist/components/base/ViewSwitcher.vue.js +2 -2
  57. package/dist/components/base/ViewTab.vue.js +4 -4
  58. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  59. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
  60. package/dist/components/database/DatabaseView.vue.js +4 -4
  61. package/dist/components/detail/CommentItem.vue.js +2 -2
  62. package/dist/components/detail/CommentItem.vue2.js +8 -8
  63. package/dist/components/detail/DetailLayout.vue.js +1 -1
  64. package/dist/components/editor/BlockQuote.vue.js +2 -2
  65. package/dist/components/editor/CodeBlock.vue.js +2 -2
  66. package/dist/components/editor/ContentBlock.vue.js +2 -2
  67. package/dist/components/editor/RefLink.vue.js +2 -2
  68. package/dist/components/editor/RichTextEditor.vue.js +1 -1
  69. package/dist/components/field/FieldAttachment.vue.js +1 -1
  70. package/dist/components/field/FieldCreator.vue.js +1 -1
  71. package/dist/components/field/FieldCurrency.vue.js +2 -2
  72. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  73. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  74. package/dist/components/field/FieldProgress.vue.js +2 -2
  75. package/dist/components/field/FieldRating.vue.js +2 -2
  76. package/dist/components/field/FieldRelation.vue.js +1 -1
  77. package/dist/components/field/FieldRichText.vue.js +1 -1
  78. package/dist/components/field/FieldSelect.vue.js +2 -2
  79. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  80. package/dist/components/gallery/GalleryCard.vue2.js +34 -30
  81. package/dist/components/gallery/GalleryView.vue.js +2 -2
  82. package/dist/components/kanban/KanbanBoard.vue.js +4 -4
  83. package/dist/components/kanban/KanbanCard.vue.js +2 -2
  84. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  85. package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
  86. package/dist/components/kanban/QuickAddRow.vue.js +1 -1
  87. package/dist/components/layout/AppLayout.vue.js +2 -2
  88. package/dist/components/layout/Navbar.vue.js +3 -3
  89. package/dist/components/layout/Sidebar.vue.js +2 -2
  90. package/dist/components/layout/StatusBar.vue.js +2 -2
  91. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  92. package/dist/components/overlay/Dialog.vue.js +2 -2
  93. package/dist/components/overlay/Drawer.vue.js +2 -2
  94. package/dist/components/overlay/Modal.vue.js +1 -1
  95. package/dist/components/overlay/SidePanel.vue.js +2 -2
  96. package/dist/components/split/SplitPane.vue.js +2 -2
  97. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  98. package/dist/components/table/DataTable.vue.js +4 -4
  99. package/dist/components/table/DetailSheet.vue.js +1 -1
  100. package/dist/components/table/FieldCell.vue.js +1 -1
  101. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  102. package/dist/components/table/MobileListView.vue.js +2 -2
  103. package/dist/components/table/NewRowBtn.vue.js +2 -2
  104. package/dist/components/table/TableColumnManager.vue.js +2 -2
  105. package/dist/components/table/TableDataRow.vue.js +3 -3
  106. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  107. package/dist/components/table/TableGroupRow.vue.js +2 -2
  108. package/dist/components/table/TableHeaderRow.vue.js +2 -2
  109. package/dist/components/table/TableToolbar.vue.js +2 -2
  110. package/dist/components/tabs/Tabs.vue.js +1 -1
  111. package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
  112. package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
  113. package/dist/components/timeline/GanttRow.vue.js +2 -2
  114. package/dist/components/timeline/GanttRow.vue2.js +21 -18
  115. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  116. package/dist/components/toast/ToastItem.vue.js +2 -2
  117. package/dist/components/toast/ToastItem.vue2.js +39 -39
  118. package/dist/plugin.js +242 -171
  119. package/dist/style.css +1 -1
  120. package/dist/utils/icon.js +25 -68
  121. package/dist/utils/iconRegistry.d.ts +7 -0
  122. package/dist/utils/iconRegistry.js +60 -0
  123. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as y, computed as o, openBlock as a, createElementBlock as s, mergeProps as p, withKeys as r, withModifiers as m, toDisplayString as i, createCommentVNode as d, createElementVNode as t, normalizeStyle as u } from "vue";
2
- const g = ["onKeydown"], C = {
1
+ import { defineComponent as y, computed as o, openBlock as c, createElementBlock as s, mergeProps as g, withKeys as r, withModifiers as m, toDisplayString as i, createCommentVNode as d, createElementVNode as t, normalizeStyle as u } from "vue";
2
+ const p = ["onKeydown"], C = {
3
3
  key: 0,
4
4
  class: "of-monitor-item__subtitle"
5
- }, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" }, S = { class: "of-monitor-item__percentage" }, x = {
5
+ }, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" }, x = { class: "of-monitor-item__percentage" }, S = {
6
6
  key: 1,
7
7
  class: "of-monitor-item__count"
8
8
  }, V = /* @__PURE__ */ y({
@@ -19,29 +19,29 @@ const g = ["onKeydown"], C = {
19
19
  },
20
20
  emits: ["click"],
21
21
  setup(e, { emit: f }) {
22
- const l = e, v = f, c = o(() => Math.min(100, Math.max(0, l.value))), _ = o(
23
- () => c.value === 100 ? "var(--of-color-success)" : l.color ?? "var(--of-color-primary-500)"
22
+ const l = e, v = f, n = o(() => Math.min(100, Math.max(0, l.value))), _ = o(
23
+ () => n.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : l.color ?? "var(--of-accent-default)"
24
24
  ), k = o(() => ({
25
- backgroundColor: "var(--of-color-gray-100)"
25
+ backgroundColor: "var(--of-surface-muted, var(--of-color-gray-100))"
26
26
  })), b = o(() => ({
27
- width: `${c.value}%`,
27
+ width: `${n.value}%`,
28
28
  background: _.value
29
29
  }));
30
- function n() {
30
+ function a() {
31
31
  l.clickable && v("click");
32
32
  }
33
- return (h, B) => (a(), s("div", p({
33
+ return (h, B) => (c(), s("div", g({
34
34
  class: ["of-monitor-item", { "of-monitor-item--clickable": e.clickable }],
35
35
  role: "button",
36
36
  tabindex: "0"
37
37
  }, h.$attrs, {
38
- onClick: n,
38
+ onClick: a,
39
39
  onKeydown: [
40
- r(m(n, ["prevent"]), ["enter"]),
41
- r(m(n, ["prevent"]), ["space"])
40
+ r(m(a, ["prevent"]), ["enter"]),
41
+ r(m(a, ["prevent"]), ["space"])
42
42
  ]
43
43
  }), [
44
- e.subtitle !== void 0 ? (a(), s("div", C, i(e.subtitle), 1)) : d("", !0),
44
+ e.subtitle !== void 0 ? (c(), s("div", C, i(e.subtitle), 1)) : d("", !0),
45
45
  t("div", w, i(e.label), 1),
46
46
  t("div", M, [
47
47
  t("div", {
@@ -54,9 +54,9 @@ const g = ["onKeydown"], C = {
54
54
  }, null, 4)
55
55
  ], 4)
56
56
  ]),
57
- t("div", S, i(c.value) + "%", 1),
58
- e.count !== void 0 ? (a(), s("div", x, i(e.count), 1)) : d("", !0)
59
- ], 16, g));
57
+ t("div", x, i(n.value) + "%", 1),
58
+ e.count !== void 0 ? (c(), s("div", S, i(e.count), 1)) : d("", !0)
59
+ ], 16, p));
60
60
  }
61
61
  });
62
62
  export {
@@ -1,7 +1,7 @@
1
1
  import o from "./PersonaCard.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b283c2cd"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-260d05e8"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as P, computed as r, openBlock as t, createElementBlock as n, mergeProps as A, createElementVNode as c, normalizeStyle as g, createBlock as F, resolveDynamicComponent as D, Fragment as _, createTextVNode as N, toDisplayString as l, renderSlot as v, createCommentVNode as i, renderList as T } from "vue";
1
+ import { defineComponent as w, computed as o, openBlock as r, createElementBlock as n, mergeProps as A, createElementVNode as s, normalizeStyle as u, createBlock as F, resolveDynamicComponent as D, Fragment as _, createTextVNode as N, toDisplayString as l, renderSlot as v, createCommentVNode as f, renderList as T } from "vue";
2
2
  import { resolveIcon as V } from "../../utils/icon.js";
3
3
  const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__name-row" }, K = {
4
4
  key: 0,
@@ -12,7 +12,7 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
12
12
  }, q = { class: "of-persona-card__chevron" }, G = {
13
13
  key: 0,
14
14
  class: "of-persona-card__detail"
15
- }, Q = /* @__PURE__ */ P({
15
+ }, Q = /* @__PURE__ */ w({
16
16
  name: "PersonaCard",
17
17
  inheritAttrs: !1,
18
18
  __name: "PersonaCard",
@@ -30,64 +30,64 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
30
30
  size: { default: "md" }
31
31
  },
32
32
  emits: ["update:expanded", "click"],
33
- setup(o, { emit: k }) {
34
- const e = o, u = k, b = [
33
+ setup(t, { emit: k }) {
34
+ const e = t, g = k, b = [
35
35
  {
36
- accent: "var(--of-color-warning)",
37
- bg: "var(--of-color-warning-light)",
38
- border: "var(--of-badge-orange-border)",
39
- tagBg: "var(--of-badge-orange-bg)"
36
+ accent: "var(--of-accent-default)",
37
+ bg: "var(--of-surface-muted)",
38
+ border: "var(--of-border-subtle)",
39
+ tagBg: "var(--of-surface-selected)"
40
40
  },
41
41
  {
42
- accent: "var(--of-color-primary-500)",
43
- bg: "var(--of-color-primary-50)",
44
- border: "var(--of-color-primary-200)",
45
- tagBg: "var(--of-color-primary-100)"
42
+ accent: "var(--of-accent-strong)",
43
+ bg: "var(--of-surface-panel)",
44
+ border: "var(--of-border-strong)",
45
+ tagBg: "var(--of-surface-muted)"
46
46
  },
47
47
  {
48
- accent: "var(--of-role-pm-text)",
49
- bg: "var(--of-role-pm-bg)",
50
- border: "var(--of-badge-red-border)",
51
- tagBg: "var(--of-badge-red-bg)"
48
+ accent: "var(--of-text-strong)",
49
+ bg: "var(--of-surface-selected)",
50
+ border: "var(--of-border-subtle)",
51
+ tagBg: "var(--of-surface-panel)"
52
52
  },
53
53
  {
54
- accent: "var(--of-color-success)",
55
- bg: "var(--of-color-success-light)",
56
- border: "var(--of-badge-green-border)",
57
- tagBg: "var(--of-badge-green-bg)"
54
+ accent: "var(--of-text-secondary)",
55
+ bg: "var(--of-surface-elevated)",
56
+ border: "var(--of-border-subtle)",
57
+ tagBg: "var(--of-surface-muted)"
58
58
  },
59
59
  {
60
- accent: "var(--of-color-info)",
61
- bg: "var(--of-color-info-light)",
62
- border: "var(--of-badge-blue-border)",
63
- tagBg: "var(--of-badge-blue-bg)"
60
+ accent: "var(--of-accent-default)",
61
+ bg: "var(--of-surface-muted)",
62
+ border: "var(--of-border-subtle)",
63
+ tagBg: "var(--of-surface-selected)"
64
64
  },
65
65
  {
66
- accent: "var(--of-role-arch-text)",
67
- bg: "var(--of-role-arch-bg)",
68
- border: "var(--of-badge-purple-border)",
69
- tagBg: "var(--of-badge-purple-bg)"
66
+ accent: "var(--of-accent-strong)",
67
+ bg: "var(--of-surface-panel)",
68
+ border: "var(--of-border-subtle)",
69
+ tagBg: "var(--of-surface-selected)"
70
70
  },
71
71
  {
72
- accent: "var(--of-color-error)",
73
- bg: "var(--of-color-error-light)",
74
- border: "var(--of-badge-red-border)",
75
- tagBg: "var(--of-badge-red-bg)"
72
+ accent: "var(--of-text-strong)",
73
+ bg: "var(--of-surface-elevated)",
74
+ border: "var(--of-border-strong)",
75
+ tagBg: "var(--of-surface-muted)"
76
76
  },
77
77
  {
78
- accent: "var(--of-role-fe-text)",
79
- bg: "var(--of-role-fe-bg)",
80
- border: "var(--of-badge-green-border)",
81
- tagBg: "var(--of-badge-green-bg)"
78
+ accent: "var(--of-text-secondary)",
79
+ bg: "var(--of-surface-selected)",
80
+ border: "var(--of-border-subtle)",
81
+ tagBg: "var(--of-surface-panel)"
82
82
  }
83
83
  ];
84
84
  function x(a) {
85
- let d = 0;
86
- for (let s = 0; s < a.length; s++)
87
- d = (d << 5) - d + a.charCodeAt(s), d |= 0;
88
- return Math.abs(d);
85
+ let c = 0;
86
+ for (let d = 0; d < a.length; d++)
87
+ c = (c << 5) - c + a.charCodeAt(d), c |= 0;
88
+ return Math.abs(c);
89
89
  }
90
- const f = r(() => {
90
+ const i = o(() => {
91
91
  if (e.color) {
92
92
  const a = e.color.replace("#", "");
93
93
  return {
@@ -98,15 +98,15 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
98
98
  };
99
99
  }
100
100
  return b[x(e.name) % b.length];
101
- }), p = r(() => e.size === "sm" ? 24 : 32), m = r(() => e.size === "sm" ? 12 : 16), B = r(() => e.size === "sm" ? 12 : 13), z = r(() => e.size === "sm" ? 11 : 12), h = r(() => {
101
+ }), p = o(() => e.size === "sm" ? 24 : 32), m = o(() => e.size === "sm" ? 12 : 16), B = o(() => e.size === "sm" ? 12 : 13), z = o(() => e.size === "sm" ? 11 : 12), y = o(() => {
102
102
  if (e.icon)
103
103
  return V(e.icon);
104
- }), S = r(() => {
104
+ }), S = o(() => {
105
105
  if (e.icon && typeof e.icon == "string") return e.icon;
106
106
  if (e.icon) return "";
107
107
  const a = e.name.trim();
108
108
  return a ? a.charAt(0) : "?";
109
- }), $ = r(() => [
109
+ }), $ = o(() => [
110
110
  "of-persona-card",
111
111
  `of-persona-card--${e.size}`,
112
112
  {
@@ -115,74 +115,74 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
115
115
  "of-persona-card--disabled": e.disabled,
116
116
  "of-persona-card--expanded": e.expanded
117
117
  }
118
- ]), C = r(() => ({
119
- "--pc-accent": f.value.accent,
120
- "--pc-accent-bg": f.value.bg,
121
- "--pc-accent-border": f.value.border,
122
- "--pc-accent-tag-bg": f.value.tagBg
123
- })), w = r(() => ({
118
+ ]), C = o(() => ({
119
+ "--pc-accent": i.value.accent,
120
+ "--pc-accent-bg": i.value.bg,
121
+ "--pc-accent-border": i.value.border,
122
+ "--pc-accent-tag-bg": i.value.tagBg
123
+ })), E = o(() => ({
124
124
  width: `${p.value}px`,
125
125
  height: `${p.value}px`,
126
126
  fontSize: `${m.value}px`
127
127
  }));
128
- function y() {
129
- e.disabled || (u("update:expanded", !e.expanded), u("click"));
128
+ function h() {
129
+ e.disabled || (g("update:expanded", !e.expanded), g("click"));
130
130
  }
131
- function E(a) {
132
- a.key !== "Enter" && a.key !== " " || (a.preventDefault(), y());
131
+ function P(a) {
132
+ a.key !== "Enter" && a.key !== " " || (a.preventDefault(), h());
133
133
  }
134
- return (a, d) => (t(), n("div", A({
134
+ return (a, c) => (r(), n("div", A({
135
135
  class: $.value,
136
136
  style: C.value
137
137
  }, a.$attrs), [
138
- c("div", {
138
+ s("div", {
139
139
  class: "of-persona-card__header",
140
140
  role: "button",
141
141
  tabindex: "0",
142
- onClick: y,
143
- onKeydown: E
142
+ onClick: h,
143
+ onKeydown: P
144
144
  }, [
145
- c("span", {
145
+ s("span", {
146
146
  class: "of-persona-card__avatar",
147
- style: g(w.value)
147
+ style: u(E.value)
148
148
  }, [
149
- h.value ? (t(), F(D(h.value), {
149
+ y.value ? (r(), F(D(y.value), {
150
150
  key: 0,
151
151
  size: m.value
152
- }, null, 8, ["size"])) : (t(), n(_, { key: 1 }, [
152
+ }, null, 8, ["size"])) : (r(), n(_, { key: 1 }, [
153
153
  N(l(S.value), 1)
154
154
  ], 64))
155
155
  ], 4),
156
- c("div", H, [
157
- c("div", I, [
158
- c("span", {
156
+ s("div", H, [
157
+ s("div", I, [
158
+ s("span", {
159
159
  class: "of-persona-card__name",
160
- style: g({ fontSize: `${B.value}px` })
161
- }, l(o.name), 5),
160
+ style: u({ fontSize: `${B.value}px` })
161
+ }, l(t.name), 5),
162
162
  v(a.$slots, "badge", {}, void 0, !0),
163
- o.title ? (t(), n("span", K, l(o.title), 1)) : i("", !0)
163
+ t.title ? (r(), n("span", K, l(t.title), 1)) : f("", !0)
164
164
  ]),
165
- o.subtitle ? (t(), n("span", {
165
+ t.subtitle ? (r(), n("span", {
166
166
  key: 0,
167
167
  class: "of-persona-card__subtitle",
168
- style: g({ fontSize: `${z.value}px` })
169
- }, l(o.subtitle), 5)) : i("", !0),
170
- o.tags && o.tags.length > 0 ? (t(), n("div", L, [
171
- (t(!0), n(_, null, T(o.tags, (s) => (t(), n("span", {
172
- key: s,
168
+ style: u({ fontSize: `${z.value}px` })
169
+ }, l(t.subtitle), 5)) : f("", !0),
170
+ t.tags && t.tags.length > 0 ? (r(), n("div", L, [
171
+ (r(!0), n(_, null, T(t.tags, (d) => (r(), n("span", {
172
+ key: d,
173
173
  class: "of-persona-card__tag"
174
- }, l(s), 1))), 128))
175
- ])) : i("", !0)
174
+ }, l(d), 1))), 128))
175
+ ])) : f("", !0)
176
176
  ]),
177
- c("div", M, [
177
+ s("div", M, [
178
178
  v(a.$slots, "actions", {}, void 0, !0),
179
- o.done ? (t(), n("span", j, "✓")) : i("", !0),
180
- c("span", q, l(o.expanded ? "▲" : "▼"), 1)
179
+ t.done ? (r(), n("span", j, "✓")) : f("", !0),
180
+ s("span", q, l(t.expanded ? "▲" : "▼"), 1)
181
181
  ])
182
182
  ], 32),
183
- o.expanded ? (t(), n("div", G, [
183
+ t.expanded ? (r(), n("div", G, [
184
184
  v(a.$slots, "default", {}, void 0, !0)
185
- ])) : i("", !0)
185
+ ])) : f("", !0)
186
186
  ], 16));
187
187
  }
188
188
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./ProgressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-893c13d7"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ea5a43a9"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1,46 +1,46 @@
1
- import { defineComponent as p, computed as r, openBlock as t, createElementBlock as d, mergeProps as f, createElementVNode as a, normalizeStyle as c, normalizeClass as v, renderSlot as b, toDisplayString as m, createCommentVNode as _ } from "vue";
2
- const g = {
1
+ import { defineComponent as f, computed as r, openBlock as l, createElementBlock as d, mergeProps as p, createElementVNode as a, normalizeStyle as c, normalizeClass as v, renderSlot as b, toDisplayString as g, createCommentVNode as m } from "vue";
2
+ const _ = {
3
3
  key: 0,
4
4
  class: "of-progress-bar__label"
5
- }, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ p({
5
+ }, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ f({
6
6
  inheritAttrs: !1,
7
7
  __name: "ProgressBar",
8
8
  props: {
9
9
  value: {},
10
10
  height: { default: 4 },
11
11
  color: { default: void 0 },
12
- bgColor: { default: "var(--of-color-gray-100)" },
12
+ bgColor: { default: "var(--of-surface-muted, var(--of-color-gray-100))" },
13
13
  showLabel: { type: Boolean, default: !1 },
14
14
  borderRadius: { default: 2 }
15
15
  },
16
16
  setup(s) {
17
- const e = s, o = r(() => Math.min(100, Math.max(0, e.value))), u = r(
18
- () => o.value === 100 ? "var(--of-color-success)" : e.color ?? "var(--of-color-primary-500)"
19
- ), i = r(() => ({
17
+ const e = s, o = r(() => Math.min(100, Math.max(0, e.value))), n = r(
18
+ () => o.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : e.color ?? "var(--of-accent-default)"
19
+ ), u = r(() => ({
20
20
  height: `${e.height}px`,
21
21
  backgroundColor: e.bgColor,
22
22
  borderRadius: `${e.borderRadius}px`
23
- })), n = r(() => ({
23
+ })), i = r(() => ({
24
24
  width: `${o.value}%`,
25
- background: u.value,
25
+ background: n.value,
26
26
  borderRadius: `${e.borderRadius}px`
27
27
  }));
28
- return (l, k) => (t(), d("div", f({ class: "of-progress-bar" }, l.$attrs), [
28
+ return (t, k) => (l(), d("div", p({ class: "of-progress-bar" }, t.$attrs), [
29
29
  a("div", {
30
30
  class: "of-progress-bar__track pb",
31
- style: c(i.value)
31
+ style: c(u.value)
32
32
  }, [
33
33
  a("div", {
34
34
  class: v(["of-progress-bar__fill pf", { dn: o.value === 100 }]),
35
- style: c(n.value)
35
+ style: c(i.value)
36
36
  }, null, 6)
37
37
  ], 4),
38
- s.showLabel ? (t(), d("div", g, [
38
+ s.showLabel ? (l(), d("div", _, [
39
39
  a("div", h, [
40
- b(l.$slots, "default", {}, void 0, !0)
40
+ b(t.$slots, "default", {}, void 0, !0)
41
41
  ]),
42
- a("span", y, m(o.value) + "%", 1)
43
- ])) : _("", !0)
42
+ a("span", y, g(o.value) + "%", 1)
43
+ ])) : m("", !0)
44
44
  ], 16));
45
45
  }
46
46
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./RangeSlider.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-77f7d546"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9de86f92"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./RefTag.vue2.js";
2
2
  /* empty css */
3
- import f from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ f(o, [["__scopeId", "data-v-fbd2cfa1"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9057023c"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as d, computed as n, openBlock as c, createBlock as f, resolveDynamicComponent as s, mergeProps as g, withCtx as u, createCommentVNode as v, createElementVNode as m, renderSlot as p } from "vue";
1
+ import { defineComponent as u, computed as a, openBlock as l, createBlock as s, resolveDynamicComponent as f, mergeProps as d, withCtx as v, createCommentVNode as g, createElementVNode as m, renderSlot as p } from "vue";
2
2
  import { resolveIcon as h } from "../../utils/icon.js";
3
- const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
3
+ const b = { class: "one-ref-tag__text" }, C = /* @__PURE__ */ u({
4
4
  name: "RefTag",
5
5
  inheritAttrs: !1,
6
6
  __name: "RefTag",
@@ -12,35 +12,35 @@ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
12
12
  href: { default: void 0 }
13
13
  },
14
14
  setup(e) {
15
- const o = e, a = {
15
+ const o = e, n = {
16
16
  spec: {
17
17
  icon: "file-text",
18
- color: "var(--of-color-primary-700)",
19
- bg: "var(--of-color-primary-50)"
18
+ color: "var(--of-text-strong)",
19
+ bg: "var(--of-surface-selected)"
20
20
  },
21
- wiki: { icon: "book-open", color: "var(--of-color-green-600)", bg: "var(--of-color-green-50)" },
22
- task: { icon: "link", color: "var(--of-color-orange-600)", bg: "var(--of-color-orange-50)" }
23
- }, t = n(() => a[o.type ?? ""] ?? a.spec), l = n(() => {
24
- const r = o.icon ?? t.value.icon;
25
- return h(r);
26
- }), i = n(() => ({
27
- "--one-ref-tag-color": o.color ?? t.value.color,
28
- "--one-ref-tag-bg": o.bg ?? t.value.bg
21
+ wiki: { icon: "book-open", color: "var(--of-text-secondary)", bg: "var(--of-surface-muted)" },
22
+ task: { icon: "link", color: "var(--of-accent-strong)", bg: "var(--of-surface-panel)" }
23
+ }, r = a(() => n[o.type ?? ""] ?? n.spec), c = a(() => {
24
+ const t = o.icon ?? r.value.icon;
25
+ return h(t);
26
+ }), i = a(() => ({
27
+ "--one-ref-tag-color": o.color ?? r.value.color,
28
+ "--one-ref-tag-bg": o.bg ?? r.value.bg
29
29
  }));
30
- return (r, y) => (c(), f(s(e.href ? "a" : "span"), g({
30
+ return (t, k) => (l(), s(f(e.href ? "a" : "span"), d({
31
31
  class: "one-ref-tag",
32
32
  style: i.value,
33
33
  href: e.href ?? void 0,
34
34
  target: e.href ? "_blank" : void 0,
35
35
  rel: e.href ? "noopener noreferrer" : void 0
36
- }, r.$attrs), {
37
- default: u(() => [
38
- l.value ? (c(), f(s(l.value), {
36
+ }, t.$attrs), {
37
+ default: v(() => [
38
+ c.value ? (l(), s(f(c.value), {
39
39
  key: 0,
40
40
  class: "one-ref-tag__icon"
41
- })) : v("", !0),
41
+ })) : g("", !0),
42
42
  m("span", b, [
43
- p(r.$slots, "default", {}, void 0, !0)
43
+ p(t.$slots, "default", {}, void 0, !0)
44
44
  ])
45
45
  ]),
46
46
  _: 3
@@ -48,5 +48,5 @@ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
48
48
  }
49
49
  });
50
50
  export {
51
- S as default
51
+ C as default
52
52
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SearchHighlight.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e3a7db64"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6504e048"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./SectionBlock.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1f8a2c23"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68f4a61c"]]);
5
5
  export {
6
6
  f as default
7
7
  };