@zealsolutions/zeal-ui 1.0.0-alpha.369 → 1.0.0-alpha.370

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.
@@ -1,4 +1,4 @@
1
- import { computed as q, openBlock as f, createElementBlock as y, createElementVNode as v, toDisplayString as x, createCommentVNode as S, Fragment as D, renderList as F, normalizeClass as B, createStaticVNode as V } from "vue";
1
+ import { computed as q, openBlock as f, createElementBlock as b, createElementVNode as v, toDisplayString as x, createCommentVNode as S, Fragment as D, renderList as F, normalizeClass as B, createStaticVNode as V } from "vue";
2
2
  import { _ as T } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const U = (e) => e === ">", A = (e) => e === "<", P = (e) => /^\s+$/.test(e), E = (e) => /^\s*<[^>]+>\s*$/.test(e), j = (e) => !E(e);
4
4
  class O {
@@ -30,9 +30,9 @@ function N(e) {
30
30
  function H(e, t, i, n, r, a, l) {
31
31
  let u = n, s = a, d = 0, c = {}, p;
32
32
  for (let o = n; o < r; o++) {
33
- const _ = {}, g = e[o], b = i[g];
34
- for (let R = 0, L = b.length; R < L; R++) {
35
- const h = b[R];
33
+ const _ = {}, g = e[o], y = i[g];
34
+ for (let R = 0, L = y.length; R < L; R++) {
35
+ const h = y[R];
36
36
  if (h < a)
37
37
  continue;
38
38
  if (h >= l)
@@ -82,13 +82,13 @@ function z(e, t) {
82
82
  }, l = $(e, t);
83
83
  l.push(new O(e.length, t.length, 0));
84
84
  for (let c = 0, p = l.length; c < p; c++) {
85
- const o = l[c], _ = i === o.start_in_before, g = n === o.start_in_after, b = a[[_, g].toString()];
86
- b !== "none" && r.push({
87
- action: b,
85
+ const o = l[c], _ = i === o.start_in_before, g = n === o.start_in_after, y = a[[_, g].toString()];
86
+ y !== "none" && r.push({
87
+ action: y,
88
88
  start_in_before: i,
89
- end_in_before: b !== "insert" ? o.start_in_before - 1 : void 0,
89
+ end_in_before: y !== "insert" ? o.start_in_before - 1 : void 0,
90
90
  start_in_after: n,
91
- end_in_after: b !== "delete" ? o.start_in_after - 1 : void 0
91
+ end_in_after: y !== "delete" ? o.start_in_after - 1 : void 0
92
92
  }), o.length !== 0 && r.push({
93
93
  action: "equal",
94
94
  start_in_before: o.start_in_before,
@@ -367,21 +367,21 @@ function fe(e, t, i = {}, n = null) {
367
367
  const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-style-sub-header font-medium text-app-950 leading-[1.3]" }, Z = {
368
368
  key: 0,
369
369
  "data-testid": "preview-diff-legend",
370
- class: "border-b-[1px] border-steel-300 px-6 py-[10px] flex items-center gap-[16px] text-[12px] text-[#697277] shrink-0"
371
- }, ee = /* @__PURE__ */ V('<span class="font-semibold" data-v-781d71ec>Unpublished draft changes</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#d4fcbc;" data-v-781d71ec></span>Added</span><span class="flex items-center gap-[5px]" data-v-781d71ec><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#fbb6c2;" data-v-781d71ec></span>Removed</span>', 3), te = {
370
+ class: "border-b-[1px] border-steel-300 dark:border-line px-6 py-[10px] flex items-center gap-[16px] text-[12px] text-[#697277] dark:text-content-muted shrink-0"
371
+ }, ee = /* @__PURE__ */ V('<span class="font-semibold" data-v-065b2cb7>Unpublished draft changes</span><span class="flex items-center gap-[5px]" data-v-065b2cb7><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#d4fcbc;" data-v-065b2cb7></span>Added</span><span class="flex items-center gap-[5px]" data-v-065b2cb7><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#fbb6c2;" data-v-065b2cb7></span>Removed</span>', 3), te = {
372
372
  key: 0,
373
373
  "data-testid": "preview-diff-loading",
374
374
  class: "italic"
375
375
  }, ie = { class: "flex-1 min-h-0 overflow-y-auto px-6 py-5" }, ne = {
376
376
  key: 0,
377
377
  "data-testid": "preview-empty",
378
- class: "text-[14px] text-[#697277]"
378
+ class: "text-[14px] text-[#697277] dark:text-content-muted"
379
379
  }, re = {
380
380
  key: 1,
381
381
  class: "flex flex-col gap-6"
382
382
  }, le = { class: "font-semibold text-[13px] text-[#326d68] dark:text-proclusteal-950 leading-[1.2] mb-[6px]" }, ae = ["innerHTML"], se = ["innerHTML"], oe = {
383
383
  key: 2,
384
- class: "text-[15px] text-black-950 leading-[1.5] whitespace-pre-wrap"
384
+ class: "text-[15px] text-black-950 dark:text-content leading-[1.5] whitespace-pre-wrap"
385
385
  }, ce = {
386
386
  __name: "SopCompare",
387
387
  props: {
@@ -391,36 +391,36 @@ const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-
391
391
  },
392
392
  setup(e) {
393
393
  const t = e, i = q(() => t.sections.some((n) => n.diff));
394
- return (n, r) => (f(), y("div", K, [
394
+ return (n, r) => (f(), b("div", K, [
395
395
  v("p", X, x(e.title), 1),
396
- i.value || e.loading ? (f(), y("div", Z, [
396
+ i.value || e.loading ? (f(), b("div", Z, [
397
397
  ee,
398
- e.loading ? (f(), y("span", te, "Loading changes…")) : S("", !0)
398
+ e.loading ? (f(), b("span", te, "Loading changes…")) : S("", !0)
399
399
  ])) : S("", !0),
400
400
  v("div", ie, [
401
- e.sections.length ? (f(), y("div", re, [
402
- (f(!0), y(D, null, F(e.sections, (a, l) => (f(), y("section", {
401
+ e.sections.length ? (f(), b("div", re, [
402
+ (f(!0), b(D, null, F(e.sections, (a, l) => (f(), b("section", {
403
403
  key: l,
404
404
  "data-testid": "preview-section"
405
405
  }, [
406
406
  v("p", le, x(a.label), 1),
407
- a.diff ? (f(), y("div", {
407
+ a.diff ? (f(), b("div", {
408
408
  key: 0,
409
- class: B(["preview-content text-[15px] text-black-950 leading-[1.5]", { "whitespace-pre-wrap": !a.rich }]),
409
+ class: B(["preview-content text-[15px] text-black-950 dark:text-content leading-[1.5]", { "whitespace-pre-wrap": !a.rich }]),
410
410
  innerHTML: a.value
411
- }, null, 10, ae)) : a.rich ? (f(), y("div", {
411
+ }, null, 10, ae)) : a.rich ? (f(), b("div", {
412
412
  key: 1,
413
- class: "preview-content text-[15px] text-black-950 leading-[1.5]",
413
+ class: "preview-content text-[15px] text-black-950 dark:text-content leading-[1.5]",
414
414
  innerHTML: a.value
415
- }, null, 8, se)) : (f(), y("p", oe, x(a.value), 1))
415
+ }, null, 8, se)) : (f(), b("p", oe, x(a.value), 1))
416
416
  ]))), 128))
417
- ])) : (f(), y("p", ne, " There is no content to preview yet. "))
417
+ ])) : (f(), b("p", ne, " There is no content to preview yet. "))
418
418
  ])
419
419
  ]));
420
420
  }
421
- }, ye = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-781d71ec"]]);
421
+ }, be = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-065b2cb7"]]);
422
422
  export {
423
- ye as SopCompare,
423
+ be as SopCompare,
424
424
  fe as buildPreview,
425
425
  w as hasContent,
426
426
  Y as htmlDiff
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .preview-content[data-v-781d71ec] ul{list-style:disc;margin-left:1.5rem}.preview-content[data-v-781d71ec] ol{list-style:decimal;margin-left:1.5rem}.preview-content[data-v-781d71ec] p{margin-bottom:.5rem}.preview-content[data-v-781d71ec] a{color:#326d68;text-decoration:underline}.preview-content[data-v-781d71ec] img{max-width:100%;height:auto}.preview-content[data-v-781d71ec] table{border-collapse:collapse}.preview-content[data-v-781d71ec] td,.preview-content[data-v-781d71ec] th{border:1px solid #c8ced0;padding:4px 8px}.preview-content[data-v-781d71ec] ins{text-decoration:none;background-color:#d4fcbc}.preview-content[data-v-781d71ec] del{text-decoration:line-through;background-color:#fbb6c2;color:#555}.gs-marked[data-v-7b7d8437] mark{background:#1a8a7d33;color:inherit;border-radius:3px;padding:0 2px}.columns-container[data-v-5373471c]{position:relative;margin:16px 0;border-radius:8px}.columns-content[data-v-5373471c]{min-height:100px}@media (max-width: 767px){.columns-content[data-v-5373471c]{flex-direction:column!important}}.v-enter-active,.v-leave-active{transition:opacity .3s ease}.v-enter-from,.v-leave-to{opacity:0}
1
+ .preview-content[data-v-065b2cb7] ul{list-style:disc;margin-left:1.5rem}.preview-content[data-v-065b2cb7] ol{list-style:decimal;margin-left:1.5rem}.preview-content[data-v-065b2cb7] p{margin-bottom:.5rem}.preview-content[data-v-065b2cb7] a{color:#326d68;text-decoration:underline}.preview-content[data-v-065b2cb7] img{max-width:100%;height:auto}.preview-content[data-v-065b2cb7] table{border-collapse:collapse}.preview-content[data-v-065b2cb7] td,.preview-content[data-v-065b2cb7] th{border:1px solid #c8ced0;padding:4px 8px}.preview-content[data-v-065b2cb7] ins{text-decoration:none;background-color:#d4fcbc;color:#07151e}.preview-content[data-v-065b2cb7] del{text-decoration:line-through;background-color:#fbb6c2;color:#555}[data-theme=dark] .preview-content[data-v-065b2cb7] a{color:#1a8a7d}.gs-marked[data-v-7b7d8437] mark{background:#1a8a7d33;color:inherit;border-radius:3px;padding:0 2px}.columns-container[data-v-5373471c]{position:relative;margin:16px 0;border-radius:8px}.columns-content[data-v-5373471c]{min-height:100px}@media (max-width: 767px){.columns-content[data-v-5373471c]{flex-direction:column!important}}.v-enter-active,.v-leave-active{transition:opacity .3s ease}.v-enter-from,.v-leave-to{opacity:0}
package/package.json CHANGED
@@ -1,123 +1,123 @@
1
- {
2
- "name": "@zealsolutions/zeal-ui",
3
- "version": "1.0.0-alpha.369",
4
- "description": "UI library for Zeal Solutions",
5
- "author": "Zeal Solutions",
6
- "license": "ISC",
7
- "bugs": {
8
- "url": "https://github.com/zeal-solutions/zeal-ui/issues"
9
- },
10
- "homepage": "https://github.com/zeal-solutions/zeal-ui#readme",
11
- "keywords": [
12
- "zeal",
13
- "ui"
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/zeal-solutions/zeal-ui.git"
18
- },
19
- "main": "dist/index.js",
20
- "browser": "dist/index.js",
21
- "module": "dist/index.js",
22
- "files": [
23
- "dist/*"
24
- ],
25
- "exports": {
26
- "./css/typography.css": "./dist/css/typography.css",
27
- "./css/base.css": "./dist/css/base.css",
28
- "./css/editorStyles.css": "./dist/css/editorStyles.css",
29
- "./css/theme.css": "./dist/css/theme.css",
30
- "./config/tailwind": "./dist/config/tailwind/index.js",
31
- "./buttons": "./dist/components/buttons/index.js",
32
- "./forms": "./dist/components/forms/index.js",
33
- "./header": "./dist/components/header/index.js",
34
- "./icons": "./dist/components/icons/index.js",
35
- "./inputs": "./dist/components/inputs/index.js",
36
- "./layouts": "./dist/components/layouts/index.js",
37
- "./logos": "./dist/components/logos/index.js",
38
- "./menus": "./dist/components/menus/index.js",
39
- "./modals": "./dist/components/modals/index.js",
40
- "./navigation": "./dist/components/navigation/index.js",
41
- "./overlays": "./dist/components/overlays/index.js",
42
- "./session": "./dist/components/session/index.js",
43
- "./sop-diff": "./dist/components/sop-diff/index.js",
44
- "./style.css": "./dist/style.css",
45
- "./tiptap": "./dist/components/tiptap/index.js",
46
- "./tooltips": "./dist/components/tooltips/index.js",
47
- "./transitions": "./dist/components/transitions/index.js",
48
- "./utils": "./dist/utils/index.js",
49
- "./tables": "./dist/components/tables/index.js",
50
- "./datepicker": "./dist/components/datepicker/index.js"
51
- },
52
- "type": "module",
53
- "scripts": {
54
- "dev": "vite",
55
- "build": "vite build",
56
- "build:publish": "npm run build && npm publish",
57
- "prepublishOnly": "npm run build",
58
- "preview": "vite preview",
59
- "test": "vitest run",
60
- "storybook": "storybook dev -p 6006",
61
- "build-storybook": "storybook build",
62
- "chromatic": "npx chromatic --project-token=chpt_368bf7fc8d469c1"
63
- },
64
- "dependencies": {
65
- "@floating-ui/dom": "^1.7.2",
66
- "@floating-ui/vue": "^1.1.7",
67
- "@gocapsule/column-extension": "^1.0.0-beta-3",
68
- "@tailwindcss/forms": "^0.5.7",
69
- "@tailwindcss/line-clamp": "^0.4.4",
70
- "@tiptap-extend/columns": "^2.1.6",
71
- "@tiptap/core": "^2.6.6",
72
- "@tiptap/extension-bubble-menu": "^2.6.6",
73
- "@tiptap/extension-color": "^2.6.6",
74
- "@tiptap/extension-document": "^2.6.6",
75
- "@tiptap/extension-gapcursor": "^2.8.0",
76
- "@tiptap/extension-heading": "^2.6.6",
77
- "@tiptap/extension-link": "^2.23.0",
78
- "@tiptap/extension-list-item": "^2.6.6",
79
- "@tiptap/extension-paragraph": "^2.6.6",
80
- "@tiptap/extension-placeholder": "^2.12.0",
81
- "@tiptap/extension-table": "^2.8.0",
82
- "@tiptap/extension-table-cell": "^2.8.0",
83
- "@tiptap/extension-table-header": "^2.8.0",
84
- "@tiptap/extension-table-row": "^2.8.0",
85
- "@tiptap/extension-text": "^2.6.6",
86
- "@tiptap/extension-text-align": "^2.7.2",
87
- "@tiptap/extension-text-style": "^2.6.6",
88
- "@tiptap/extension-underline": "^2.6.6",
89
- "@tiptap/pm": "^2.6.6",
90
- "@tiptap/starter-kit": "^2.6.6",
91
- "@tiptap/vue-3": "^2.7.2",
92
- "@vueuse/core": "^11.2.0",
93
- "axios": "^1.6.8",
94
- "i": "^0.3.7",
95
- "less": "^4.2.0",
96
- "lodash": "^4.17.21",
97
- "postcss": "^8.4.38",
98
- "tailwindcss": "^3.4.3",
99
- "tailwindcss-convert-px-to-rem": "^1.0.4",
100
- "vue": "^3.4.21"
101
- },
102
- "devDependencies": {
103
- "@chromatic-com/storybook": "^1.6.0",
104
- "@storybook/addon-essentials": "^8.1.11",
105
- "@storybook/addon-interactions": "^8.1.11",
106
- "@storybook/addon-links": "^8.1.11",
107
- "@storybook/addon-mdx-gfm": "^8.1.11",
108
- "@storybook/blocks": "^8.1.11",
109
- "@storybook/test": "^8.1.11",
110
- "@storybook/vue3": "^8.1.11",
111
- "@storybook/vue3-vite": "^8.1.11",
112
- "@vitejs/plugin-vue": "^5.0.4",
113
- "@vue/test-utils": "^2.4.11",
114
- "@whitespace/storybook-addon-html": "^6.1.1",
115
- "autoprefixer": "^10.4.19",
116
- "chromatic": "^11.3.1",
117
- "jsdom": "^25.0.0",
118
- "storybook": "^8.1.11",
119
- "vite": "^5.2.8",
120
- "vite-plugin-vue-devtools": "^7.0.25",
121
- "vitest": "^3.0.0"
122
- }
123
- }
1
+ {
2
+ "name": "@zealsolutions/zeal-ui",
3
+ "version": "1.0.0-alpha.370",
4
+ "description": "UI library for Zeal Solutions",
5
+ "author": "Zeal Solutions",
6
+ "license": "ISC",
7
+ "bugs": {
8
+ "url": "https://github.com/zeal-solutions/zeal-ui/issues"
9
+ },
10
+ "homepage": "https://github.com/zeal-solutions/zeal-ui#readme",
11
+ "keywords": [
12
+ "zeal",
13
+ "ui"
14
+ ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/zeal-solutions/zeal-ui.git"
18
+ },
19
+ "main": "dist/index.js",
20
+ "browser": "dist/index.js",
21
+ "module": "dist/index.js",
22
+ "files": [
23
+ "dist/*"
24
+ ],
25
+ "exports": {
26
+ "./css/typography.css": "./dist/css/typography.css",
27
+ "./css/base.css": "./dist/css/base.css",
28
+ "./css/editorStyles.css": "./dist/css/editorStyles.css",
29
+ "./css/theme.css": "./dist/css/theme.css",
30
+ "./config/tailwind": "./dist/config/tailwind/index.js",
31
+ "./buttons": "./dist/components/buttons/index.js",
32
+ "./forms": "./dist/components/forms/index.js",
33
+ "./header": "./dist/components/header/index.js",
34
+ "./icons": "./dist/components/icons/index.js",
35
+ "./inputs": "./dist/components/inputs/index.js",
36
+ "./layouts": "./dist/components/layouts/index.js",
37
+ "./logos": "./dist/components/logos/index.js",
38
+ "./menus": "./dist/components/menus/index.js",
39
+ "./modals": "./dist/components/modals/index.js",
40
+ "./navigation": "./dist/components/navigation/index.js",
41
+ "./overlays": "./dist/components/overlays/index.js",
42
+ "./session": "./dist/components/session/index.js",
43
+ "./sop-diff": "./dist/components/sop-diff/index.js",
44
+ "./style.css": "./dist/style.css",
45
+ "./tiptap": "./dist/components/tiptap/index.js",
46
+ "./tooltips": "./dist/components/tooltips/index.js",
47
+ "./transitions": "./dist/components/transitions/index.js",
48
+ "./utils": "./dist/utils/index.js",
49
+ "./tables": "./dist/components/tables/index.js",
50
+ "./datepicker": "./dist/components/datepicker/index.js"
51
+ },
52
+ "type": "module",
53
+ "scripts": {
54
+ "dev": "vite",
55
+ "build": "vite build",
56
+ "build:publish": "npm run build && npm publish",
57
+ "prepublishOnly": "npm run build",
58
+ "preview": "vite preview",
59
+ "test": "vitest run",
60
+ "storybook": "storybook dev -p 6006",
61
+ "build-storybook": "storybook build",
62
+ "chromatic": "npx chromatic --project-token=chpt_368bf7fc8d469c1"
63
+ },
64
+ "dependencies": {
65
+ "@floating-ui/dom": "^1.7.2",
66
+ "@floating-ui/vue": "^1.1.7",
67
+ "@gocapsule/column-extension": "^1.0.0-beta-3",
68
+ "@tailwindcss/forms": "^0.5.7",
69
+ "@tailwindcss/line-clamp": "^0.4.4",
70
+ "@tiptap-extend/columns": "^2.1.6",
71
+ "@tiptap/core": "^2.6.6",
72
+ "@tiptap/extension-bubble-menu": "^2.6.6",
73
+ "@tiptap/extension-color": "^2.6.6",
74
+ "@tiptap/extension-document": "^2.6.6",
75
+ "@tiptap/extension-gapcursor": "^2.8.0",
76
+ "@tiptap/extension-heading": "^2.6.6",
77
+ "@tiptap/extension-link": "^2.23.0",
78
+ "@tiptap/extension-list-item": "^2.6.6",
79
+ "@tiptap/extension-paragraph": "^2.6.6",
80
+ "@tiptap/extension-placeholder": "^2.12.0",
81
+ "@tiptap/extension-table": "^2.8.0",
82
+ "@tiptap/extension-table-cell": "^2.8.0",
83
+ "@tiptap/extension-table-header": "^2.8.0",
84
+ "@tiptap/extension-table-row": "^2.8.0",
85
+ "@tiptap/extension-text": "^2.6.6",
86
+ "@tiptap/extension-text-align": "^2.7.2",
87
+ "@tiptap/extension-text-style": "^2.6.6",
88
+ "@tiptap/extension-underline": "^2.6.6",
89
+ "@tiptap/pm": "^2.6.6",
90
+ "@tiptap/starter-kit": "^2.6.6",
91
+ "@tiptap/vue-3": "^2.7.2",
92
+ "@vueuse/core": "^11.2.0",
93
+ "axios": "^1.6.8",
94
+ "i": "^0.3.7",
95
+ "less": "^4.2.0",
96
+ "lodash": "^4.17.21",
97
+ "postcss": "^8.4.38",
98
+ "tailwindcss": "^3.4.3",
99
+ "tailwindcss-convert-px-to-rem": "^1.0.4",
100
+ "vue": "^3.4.21"
101
+ },
102
+ "devDependencies": {
103
+ "@chromatic-com/storybook": "^1.6.0",
104
+ "@storybook/addon-essentials": "^8.1.11",
105
+ "@storybook/addon-interactions": "^8.1.11",
106
+ "@storybook/addon-links": "^8.1.11",
107
+ "@storybook/addon-mdx-gfm": "^8.1.11",
108
+ "@storybook/blocks": "^8.1.11",
109
+ "@storybook/test": "^8.1.11",
110
+ "@storybook/vue3": "^8.1.11",
111
+ "@storybook/vue3-vite": "^8.1.11",
112
+ "@vitejs/plugin-vue": "^5.0.4",
113
+ "@vue/test-utils": "^2.4.11",
114
+ "@whitespace/storybook-addon-html": "^6.1.1",
115
+ "autoprefixer": "^10.4.19",
116
+ "chromatic": "^11.3.1",
117
+ "jsdom": "^25.0.0",
118
+ "storybook": "^8.1.11",
119
+ "vite": "^5.2.8",
120
+ "vite-plugin-vue-devtools": "^7.0.25",
121
+ "vitest": "^3.0.0"
122
+ }
123
+ }