@uva-glass/component-library 3.0.12 → 3.0.14

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 (60) hide show
  1. package/dist/{Lexical.prod-pVkgOp1j.js → Lexical.prod-LIa6Q94i.js} +2 -2
  2. package/dist/{Lexical.prod-pVkgOp1j.js.map → Lexical.prod-LIa6Q94i.js.map} +1 -1
  3. package/dist/{LexicalClipboard.prod-DIvwPtmL.js → LexicalClipboard.prod-LIoPcoQF.js} +4 -4
  4. package/dist/{LexicalClipboard.prod-DIvwPtmL.js.map → LexicalClipboard.prod-LIoPcoQF.js.map} +1 -1
  5. package/dist/{LexicalLink.prod-NMeHB9CR.js → LexicalLink.prod-N0i4wDOR.js} +3 -3
  6. package/dist/{LexicalLink.prod-NMeHB9CR.js.map → LexicalLink.prod-N0i4wDOR.js.map} +1 -1
  7. package/dist/{LexicalList.prod-CicvwkCx.js → LexicalList.prod-BKa7Tljk.js} +3 -3
  8. package/dist/{LexicalList.prod-CicvwkCx.js.map → LexicalList.prod-BKa7Tljk.js.map} +1 -1
  9. package/dist/{LexicalSelection.prod-mQvH0_ap.js → LexicalSelection.prod-Cid08b3Z.js} +2 -2
  10. package/dist/{LexicalSelection.prod-mQvH0_ap.js.map → LexicalSelection.prod-Cid08b3Z.js.map} +1 -1
  11. package/dist/{LexicalTable.prod-Bb6g8CAC.js → LexicalTable.prod-B1mw85mv.js} +512 -509
  12. package/dist/LexicalTable.prod-B1mw85mv.js.map +1 -0
  13. package/dist/{LexicalUtils.prod-C_aSRWfh.js → LexicalUtils.prod-DstvN5hc.js} +2 -2
  14. package/dist/{LexicalUtils.prod-C_aSRWfh.js.map → LexicalUtils.prod-DstvN5hc.js.map} +1 -1
  15. package/dist/{TablePlugin-o1MveXq2.js → TablePlugin-DlTujN8R.js} +4 -4
  16. package/dist/{TablePlugin-o1MveXq2.js.map → TablePlugin-DlTujN8R.js.map} +1 -1
  17. package/dist/TimelineItem-ClDZJkaZ.js +60 -0
  18. package/dist/TimelineItem-ClDZJkaZ.js.map +1 -0
  19. package/dist/assets/TimelineItem.css +1 -1
  20. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  21. package/dist/components/FormInput/FormInput.js +1 -1
  22. package/dist/components/InputField/InputField.stories.js +1 -1
  23. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  24. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  25. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  26. package/dist/components/MultiSelect/index.js +1 -1
  27. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  28. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  29. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  30. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  31. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  32. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  33. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  34. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  35. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  36. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  37. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  38. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  39. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  40. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  41. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +6 -6
  42. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  43. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  44. package/dist/components/RteEditor/Plugins/index.js +1 -1
  45. package/dist/components/RteEditor/RteEditor.js +9 -9
  46. package/dist/components/RteEditor/helpers.js +4 -4
  47. package/dist/components/Timeline/Timeline.d.ts +1 -6
  48. package/dist/components/Timeline/Timeline.js +8 -8
  49. package/dist/components/Timeline/Timeline.js.map +1 -1
  50. package/dist/components/Timeline/Timeline.test.js +1 -1
  51. package/dist/components/Timeline/TimelineItem.d.ts +1 -1
  52. package/dist/components/Timeline/TimelineItem.js +1 -1
  53. package/dist/components/index.js +1 -1
  54. package/dist/{helpers-CtrLGKFA.js → helpers-BFkCPTTp.js} +4 -4
  55. package/dist/{helpers-CtrLGKFA.js.map → helpers-BFkCPTTp.js.map} +1 -1
  56. package/dist/index.js +1 -1
  57. package/package.json +30 -30
  58. package/dist/LexicalTable.prod-Bb6g8CAC.js.map +0 -1
  59. package/dist/TimelineItem-DmrymETS.js +0 -52
  60. package/dist/TimelineItem-DmrymETS.js.map +0 -1
@@ -0,0 +1,60 @@
1
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
+ import { c as m } from "./clsx-OuTLNxxd.js";
3
+ import './assets/TimelineItem.css';const f = "_timeline__container_14ed5_20", u = "_timeline__list_14ed5_40", v = "_timeline__item_14ed5_47", e = {
4
+ timeline__container: f,
5
+ "timeline__button-container": "_timeline__button-container_14ed5_31",
6
+ "timeline__button-container--active": "_timeline__button-container--active_14ed5_36",
7
+ timeline__list: u,
8
+ timeline__item: v,
9
+ "timeline__item--todo": "_timeline__item--todo_14ed5_78",
10
+ "timeline__item-title": "_timeline__item-title_14ed5_86",
11
+ "timeline__item--current": "_timeline__item--current_14ed5_106",
12
+ "timeline__item--rejected": "_timeline__item--rejected_14ed5_121",
13
+ "timeline__item--draft": "_timeline__item--draft_14ed5_129",
14
+ "timeline__item-label": "_timeline__item-label_14ed5_140",
15
+ "timeline__item-dark-label": "_timeline__item-dark-label_14ed5_141",
16
+ "timeline__item-card": "_timeline__item-card_14ed5_152",
17
+ "timeline__item--verified": "_timeline__item--verified_14ed5_164",
18
+ "timeline__item--submitted": "_timeline__item--submitted_14ed5_192"
19
+ }, N = ({
20
+ title: r,
21
+ type: i,
22
+ reason: c,
23
+ subtitle: n,
24
+ tasks: l,
25
+ completed: _ = !1,
26
+ position: s
27
+ }) => /* @__PURE__ */ d(
28
+ "li",
29
+ {
30
+ className: m(e.timeline__item, {
31
+ [e["timeline__item--active"]]: i === "active" && !_,
32
+ [e["timeline__item--todo"]]: i === "active" && !_ || i === "submitted" && !_,
33
+ [e["timeline__item--submitted"]]: i === "submitted" && !_,
34
+ [e["timeline__item--draft"]]: i === "draft",
35
+ [e["timeline__item--current"]]: i === "draft" && s === 0,
36
+ [e["timeline__item--rejected"]]: i === "rejected",
37
+ [e["timeline__item--submitted"]]: i === "submitted",
38
+ [e["timeline__item--verified"]]: i === "verified"
39
+ }),
40
+ children: [
41
+ /* @__PURE__ */ t("span", { className: e["timeline__item-title"], "data-reason": c, children: r }),
42
+ n && /* @__PURE__ */ t("span", { className: e["timeline__item-dark-label"], children: n }),
43
+ l && l.map(({ title: a, assignee: o }, b) => /* @__PURE__ */ d("div", { className: e["timeline__item-card"], children: [
44
+ /* @__PURE__ */ t(
45
+ "span",
46
+ {
47
+ className: m(i === "rejected" ? e["timeline__item-dark-label"] : e["timeline__item-label"]),
48
+ children: a
49
+ }
50
+ ),
51
+ /* @__PURE__ */ t("span", { className: m(i === "rejected" ? e["timeline__item-label"] : e["timeline__item-info"]), children: o })
52
+ ] }, `${a}_${b}`))
53
+ ]
54
+ }
55
+ );
56
+ export {
57
+ N as T,
58
+ e as s
59
+ };
60
+ //# sourceMappingURL=TimelineItem-ClDZJkaZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimelineItem-ClDZJkaZ.js","sources":["../src/components/Timeline/TimelineItem.tsx"],"sourcesContent":["import clsx from 'clsx';\n\nimport type { TimelineItemProps } from './Timeline';\n\nimport styles from 'components/Timeline/Timeline.module.css';\n\nexport const TimelineItem = ({\n title,\n type,\n reason,\n subtitle,\n tasks,\n completed = false,\n position,\n}: TimelineItemProps) => (\n <li\n className={clsx(styles['timeline__item'], {\n [styles['timeline__item--active']]: type === 'active' && !completed,\n [styles['timeline__item--todo']]: (type === 'active' && !completed) || (type === 'submitted' && !completed),\n [styles['timeline__item--submitted']]: type === 'submitted' && !completed,\n\n [styles['timeline__item--draft']]: type === 'draft',\n [styles['timeline__item--current']]: type === 'draft' && position === 0,\n [styles['timeline__item--rejected']]: type === 'rejected',\n [styles['timeline__item--submitted']]: type === 'submitted',\n [styles['timeline__item--verified']]: type === 'verified',\n })}\n >\n <span className={styles['timeline__item-title']} data-reason={reason}>\n {title}\n </span>\n {subtitle && <span className={styles['timeline__item-dark-label']}>{subtitle}</span>}\n {tasks &&\n tasks.map(({ title, assignee }, idx) => (\n <div className={styles['timeline__item-card']} key={`${title}_${idx}`}>\n <span\n className={clsx(type === 'rejected' ? styles['timeline__item-dark-label'] : styles['timeline__item-label'])}\n >\n {title}\n </span>\n <span className={clsx(type === 'rejected' ? styles['timeline__item-label'] : styles['timeline__item-info'])}>\n {assignee}\n </span>\n </div>\n ))}\n </li>\n);\n"],"names":["TimelineItem","title","type","reason","subtitle","tasks","completed","position","jsxs","clsx","styles","jsx","assignee","idx"],"mappings":";;;;;;;;;;;;;;;;;;GAMaA,IAAe,CAAC;AAAA,EAC3B,OAAAC;AAAA,EACA,MAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,UAAAC;AACF,MACE,gBAAAC;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWC,EAAKC,EAAO,gBAAmB;AAAA,MACxC,CAACA,EAAO,wBAAwB,CAAC,GAAGR,MAAS,YAAY,CAACI;AAAA,MAC1D,CAACI,EAAO,sBAAsB,CAAC,GAAIR,MAAS,YAAY,CAACI,KAAeJ,MAAS,eAAe,CAACI;AAAA,MACjG,CAACI,EAAO,2BAA2B,CAAC,GAAGR,MAAS,eAAe,CAACI;AAAA,MAEhE,CAACI,EAAO,uBAAuB,CAAC,GAAGR,MAAS;AAAA,MAC5C,CAACQ,EAAO,yBAAyB,CAAC,GAAGR,MAAS,WAAWK,MAAa;AAAA,MACtE,CAACG,EAAO,0BAA0B,CAAC,GAAGR,MAAS;AAAA,MAC/C,CAACQ,EAAO,2BAA2B,CAAC,GAAGR,MAAS;AAAA,MAChD,CAACQ,EAAO,0BAA0B,CAAC,GAAGR,MAAS;AAAA,IAAA,CAChD;AAAA,IAED,UAAA;AAAA,MAAA,gBAAAS,EAAC,UAAK,WAAWD,EAAO,sBAAsB,GAAG,eAAaP,GAC3D,UACHF,GAAA;AAAA,MACCG,KAAa,gBAAAO,EAAA,QAAA,EAAK,WAAWD,EAAO,2BAA2B,GAAI,UAASN,GAAA;AAAA,MAC5EC,KACCA,EAAM,IAAI,CAAC,EAAE,OAAAJ,GAAO,UAAAW,EAAS,GAAGC,MAC7B,gBAAAL,EAAA,OAAA,EAAI,WAAWE,EAAO,qBAAqB,GAC1C,UAAA;AAAA,QAAA,gBAAAC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWF,EAAKP,MAAS,aAAaQ,EAAO,2BAA2B,IAAIA,EAAO,sBAAsB,CAAC;AAAA,YAEzG,UAAAT;AAAAA,UAAA;AAAA,QACH;AAAA,QACC,gBAAAU,EAAA,QAAA,EAAK,WAAWF,EAAKP,MAAS,aAAaQ,EAAO,sBAAsB,IAAIA,EAAO,qBAAqB,CAAC,GACvG,UACHE,EAAA,CAAA;AAAA,MAAA,EAAA,GARkD,GAAGX,CAAK,IAAIY,CAAG,EASnE,CACD;AAAA,IAAA;AAAA,EAAA;AACL;"}
@@ -1 +1 @@
1
- :root{--gray-100: #faf9f9;--gray-200: #f5f4f4;--gray-300: #e7e5e4;--gray-400: #d6d3d1;--gray-500: #a8a19e;--gray-600: #78706c;--gray-700: #57514e;--gray-800: #433f3d;--gray-900: #282625;--uva-black: #000;--uva-white: #fff}._timeline__container_recyi_20{align-items:flex-start;background-color:var(--uva-white);display:flex;flex-direction:column;height:100%;justify-content:flex-start;padding:.25rem 1rem;width:100%}._timeline__button-container_recyi_31{margin-bottom:-.25rem;margin-left:1.5rem}._timeline__button-container--active_recyi_36{margin-bottom:.75rem}._timeline__list_recyi_40{list-style:none;margin:0;padding:0;width:100%}._timeline__item_recyi_47{display:flex;flex-direction:column;padding-bottom:1.25rem;position:relative;width:100%}._timeline__item_recyi_47:empty{min-height:1rem}._timeline__item_recyi_47:not(:last-child):before{background-color:var(--uva-black);border:none;bottom:-1rem;content:"";left:.25rem;position:absolute;top:1rem;width:1px}._timeline__item_recyi_47:last-child{padding-bottom:0}._timeline__item_recyi_47:nth-last-child(2):before{bottom:-.75rem}._timeline__item--todo_recyi_78:not(:last-child):before{background:repeating-linear-gradient(to bottom,transparent 0 4px,var(--gray-400) 4px 8px) 80%/2px 100% no-repeat}._timeline__item_recyi_47:empty:before{top:-1rem}._timeline__item-title_recyi_86{align-items:center;display:inline-flex;font-family:inherit;font-size:var(--font-size-sm);font-weight:var(--semibold);margin-bottom:.25rem;position:relative}._timeline__item-title_recyi_86:before{background-color:var(--uva-black);border-radius:50%;content:"";height:.375rem;margin-left:.0625rem;margin-right:1.0625rem;position:relative;width:.375rem}._timeline__item--current_recyi_107 ._timeline__item-title_recyi_86:before{height:.5rem;margin-left:0;margin-right:1rem;width:.5rem}._timeline__item--todo_recyi_78 ._timeline__item-title_recyi_86:before{background-color:var(--gray-400)}._timeline__item--rejected_recyi_118 ._timeline__item-title_recyi_86:before{border-radius:0;height:.125rem;margin-left:0;margin-right:1rem;width:.5rem}._timeline__item--draft_recyi_126:last-child ._timeline__item-title_recyi_86:before{background-color:var(--uva-black);border-radius:50%;content:"";height:.375rem;margin-left:.0625rem;margin-right:1.0625rem;position:relative;width:.375rem}._timeline__item-label_recyi_137,._timeline__item-dark-label_recyi_138{color:var(--gray-700);font-size:var(--font-size-text-non-essential)}._timeline__item-dark-label_recyi_138{color:var(--uva-black);margin-bottom:.25rem;margin-left:1.5rem}._timeline__item-card_recyi_149{display:flex;flex-direction:column;margin-bottom:.125rem;margin-left:1.5rem;padding:.5rem 0}._timeline__item-card_recyi_149 ._timeline__item-dark-label_recyi_138{margin-left:0}._timeline__item--verified_recyi_161 ._timeline__item-card_recyi_149{margin-top:-.25rem;padding:.125rem 0}._timeline__item--rejected_recyi_118{margin-bottom:-.25rem}._timeline__item--rejected_recyi_118 ._timeline__item-card_recyi_149{margin-top:-.25rem;padding:.125rem 0}._timeline__item--draft_recyi_126{margin-bottom:.5rem}._timeline__item--draft_recyi_126 ._timeline__item-card_recyi_149{margin-top:-.25rem;padding:.125rem 0}._timeline__item--todo_recyi_78 ._timeline__item-card_recyi_149{background-color:var(--gray-200);padding:.5rem .75rem}._timeline__item--submitted_recyi_189:not(._timeline__item--todo_recyi_78){margin-bottom:-.25rem}._timeline__item--submitted_recyi_189:not(._timeline__item--todo_recyi_78) ._timeline__item-card_recyi_149{margin-top:-.25rem;padding:.125rem 0}._timeline__item--draft_recyi_126:not(:last-child) ._timeline__item-card_recyi_149{background-color:var(--gray-200);padding:.5rem .75rem}._timeline__item--verified_recyi_161{margin-bottom:-.25rem}._timeline__item--verified_recyi_161 ._timeline__item-title_recyi_86:after{background-color:var(--gray-200);color:var(--color-grey-500);content:attr(data-reason);font-size:var(--font-size-text-non-essential);margin-left:.5rem;padding:.25rem .5rem}
1
+ :root{--gray-100: #faf9f9;--gray-200: #f5f4f4;--gray-300: #e7e5e4;--gray-400: #d6d3d1;--gray-500: #a8a19e;--gray-600: #78706c;--gray-700: #57514e;--gray-800: #433f3d;--gray-900: #282625;--uva-black: #000;--uva-white: #fff}._timeline__container_14ed5_20{align-items:flex-start;background-color:var(--uva-white);display:flex;flex-direction:column;height:100%;justify-content:flex-start;padding:.25rem 1rem;width:100%}._timeline__button-container_14ed5_31{margin-bottom:-.25rem;margin-left:1.5rem}._timeline__button-container--active_14ed5_36{margin-bottom:.75rem}._timeline__list_14ed5_40{list-style:none;margin:0;padding:0;width:100%}._timeline__item_14ed5_47{display:flex;flex-direction:column;padding-bottom:1.25rem;position:relative;width:100%}._timeline__item_14ed5_47:empty{min-height:1rem}._timeline__item_14ed5_47:not(:last-child):before{background-color:var(--uva-black);border:none;bottom:-1.25rem;content:"";left:.25rem;position:absolute;top:.825rem;width:1px}._timeline__item_14ed5_47:last-child{padding-bottom:0}._timeline__item_14ed5_47:nth-last-child(2):before{bottom:-.5rem}._timeline__item--todo_14ed5_78:not(:last-child):before{background:repeating-linear-gradient(to bottom,transparent 0 4px,var(--gray-400) 4px 8px) 80%/2px 100% no-repeat}._timeline__item_14ed5_47:empty:before{top:-1rem}._timeline__item-title_14ed5_86{align-items:center;display:inline-flex;font-family:inherit;font-size:var(--font-size-sm);margin-bottom:.25rem;position:relative}._timeline__item-title_14ed5_86:before{background-color:var(--uva-black);border-radius:50%;content:"";height:.375rem;margin-left:.0625rem;margin-right:1.0625rem;position:relative;width:.375rem}._timeline__item--current_14ed5_106 ._timeline__item-title_14ed5_86{font-weight:var(--semibold)}._timeline__item--current_14ed5_106 ._timeline__item-title_14ed5_86:before{height:.5rem;margin-left:0;margin-right:1rem;width:.5rem}._timeline__item--todo_14ed5_78 ._timeline__item-title_14ed5_86:before{background-color:var(--gray-400)}._timeline__item--rejected_14ed5_121 ._timeline__item-title_14ed5_86:before{border-radius:0;height:.125rem;margin-left:0;margin-right:1rem;width:.5rem}._timeline__item--draft_14ed5_129:last-child ._timeline__item-title_14ed5_86:before{background-color:var(--uva-black);border-radius:50%;content:"";height:.375rem;margin-left:.0625rem;margin-right:1.0625rem;position:relative;width:.375rem}._timeline__item-label_14ed5_140,._timeline__item-dark-label_14ed5_141{color:var(--gray-700);font-size:var(--font-size-text-non-essential)}._timeline__item-dark-label_14ed5_141{color:var(--uva-black);margin-bottom:.25rem;margin-left:1.5rem}._timeline__item-card_14ed5_152{display:flex;flex-direction:column;margin-bottom:.125rem;margin-left:1.5rem;padding:.5rem 0}._timeline__item-card_14ed5_152 ._timeline__item-dark-label_14ed5_141{margin-left:0}._timeline__item--verified_14ed5_164 ._timeline__item-card_14ed5_152{margin-top:-.25rem;padding:.125rem 0}._timeline__item--rejected_14ed5_121{margin-bottom:-.25rem}._timeline__item--rejected_14ed5_121 ._timeline__item-card_14ed5_152{margin-top:-.25rem;padding:.125rem 0}._timeline__item--draft_14ed5_129{margin-bottom:.5rem}._timeline__item--draft_14ed5_129 ._timeline__item-card_14ed5_152{margin-top:-.25rem;padding:.125rem 0}._timeline__item--todo_14ed5_78 ._timeline__item-card_14ed5_152{background-color:var(--gray-200);padding:.5rem .75rem}._timeline__item--submitted_14ed5_192:not(._timeline__item--todo_14ed5_78){margin-bottom:-.25rem}._timeline__item--submitted_14ed5_192:not(._timeline__item--todo_14ed5_78) ._timeline__item-card_14ed5_152{margin-top:-.25rem;padding:.125rem 0}._timeline__item--draft_14ed5_129:not(:last-child) ._timeline__item-card_14ed5_152{background-color:var(--gray-200);padding:.5rem .75rem}._timeline__item--verified_14ed5_164{margin-bottom:-.25rem}._timeline__item--verified_14ed5_164 ._timeline__item-title_14ed5_86:after{background-color:var(--gray-200);color:var(--color-grey-500);content:attr(data-reason);font-size:var(--font-size-text-non-essential);margin-left:.5rem;padding:.25rem .5rem}
@@ -17,7 +17,7 @@ import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-o1MveXq2.js";
20
+ import "../../TablePlugin-DlTujN8R.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -16,7 +16,7 @@ import "../IconButton/IconButton.js";
16
16
  import "../Input/Input.js";
17
17
  import "../InputField/InputField.js";
18
18
  import "react-router";
19
- import "../../TablePlugin-o1MveXq2.js";
19
+ import "../../TablePlugin-DlTujN8R.js";
20
20
  import "../RteEditor/Providers/LanguageProvider.js";
21
21
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
22
  import "../RteEditor/hooks/components/Flyout.js";
@@ -16,7 +16,7 @@ import "../GridRow/GridRow.js";
16
16
  import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "react-router";
19
- import "../../TablePlugin-o1MveXq2.js";
19
+ import "../../TablePlugin-DlTujN8R.js";
20
20
  import "../RteEditor/Providers/LanguageProvider.js";
21
21
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
22
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
3
  import "../../MultiSelectItem-D9PxdX43.js";
4
- import { M as p } from "../../TablePlugin-o1MveXq2.js";
4
+ import { M as p } from "../../TablePlugin-DlTujN8R.js";
5
5
  export {
6
6
  p as MultiSelect
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
2
  import { fn as d } from "../../index-DpyOH4wL.js";
3
3
  import { useState as p } from "react";
4
- import { M as e } from "../../TablePlugin-o1MveXq2.js";
4
+ import { M as e } from "../../TablePlugin-DlTujN8R.js";
5
5
  import { Container as M } from "../../storyComponents/Container/Container.js";
6
6
  const C = `
7
7
  // MultiSelectHeader can be added optionally
@@ -15,7 +15,7 @@ import "../../IconButton/IconButton.js";
15
15
  import "../../Input/Input.js";
16
16
  import "../../InputField/InputField.js";
17
17
  import "react-router";
18
- import { a as y } from "../../../TablePlugin-o1MveXq2.js";
18
+ import { a as y } from "../../../TablePlugin-DlTujN8R.js";
19
19
  import "../../RteEditor/Providers/LanguageProvider.js";
20
20
  import "../../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../../RteEditor/hooks/components/Flyout.js";
@@ -1,4 +1,4 @@
1
- import { M as l } from "../../TablePlugin-o1MveXq2.js";
1
+ import { M as l } from "../../TablePlugin-DlTujN8R.js";
2
2
  export {
3
3
  l as MultiSelect
4
4
  };
@@ -15,7 +15,7 @@ import "../IconButton/IconButton.js";
15
15
  import "../Input/Input.js";
16
16
  import "../InputField/InputField.js";
17
17
  import "react-router";
18
- import "../../TablePlugin-o1MveXq2.js";
18
+ import "../../TablePlugin-DlTujN8R.js";
19
19
  import "../RteEditor/Providers/LanguageProvider.js";
20
20
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "../RteEditor/hooks/components/Flyout.js";
@@ -17,7 +17,7 @@ import "../Input/Input.js";
17
17
  import "../InputField/InputField.js";
18
18
  import { Label as D } from "../Label/Label.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-o1MveXq2.js";
20
+ import "../../TablePlugin-DlTujN8R.js";
21
21
  import "../RteEditor/Providers/LanguageProvider.js";
22
22
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
23
23
  import "../RteEditor/hooks/components/Flyout.js";
@@ -17,7 +17,7 @@ import "../IconButton/IconButton.js";
17
17
  import "../Input/Input.js";
18
18
  import "../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../TablePlugin-o1MveXq2.js";
20
+ import "../../TablePlugin-DlTujN8R.js";
21
21
  import { Repeater as i } from "../Repeater/Repeater.js";
22
22
  import "../RteEditor/Providers/LanguageProvider.js";
23
23
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
@@ -14,7 +14,7 @@ import "../../IconButton/IconButton.js";
14
14
  import "../../Input/Input.js";
15
15
  import "../../InputField/InputField.js";
16
16
  import "react-router";
17
- import "../../../TablePlugin-o1MveXq2.js";
17
+ import "../../../TablePlugin-DlTujN8R.js";
18
18
  import "../Providers/LanguageProvider.js";
19
19
  import "../Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
20
20
  import "../hooks/components/Flyout.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import { o as u } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
3
  import { c as f } from "../../../../clsx-OuTLNxxd.js";
4
- import { a as _, l as p, I as h } from "../../../../Lexical.prod-pVkgOp1j.js";
4
+ import { a as _, l as p, I as h } from "../../../../Lexical.prod-LIa6Q94i.js";
5
5
  import { useState as s, useEffect as I } from "react";
6
6
  import { Icon as k } from "../../../Icon/Icon.js";
7
7
  import { s as a } from "../../../../RteEditor.module-oFMKEW6f.js";
@@ -1,7 +1,7 @@
1
1
  import { jsxs as f, jsx as e } from "react/jsx-runtime";
2
2
  import { c as i } from "../../../../clsx-OuTLNxxd.js";
3
3
  import { o as h } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
4
- import { al as _, am as y, an as C, ao as k } from "../../../../Lexical.prod-pVkgOp1j.js";
4
+ import { al as _, am as y, an as C, ao as k } from "../../../../Lexical.prod-LIa6Q94i.js";
5
5
  import { useState as s, useEffect as m } from "react";
6
6
  import { Icon as n } from "../../../Icon/Icon.js";
7
7
  import "../../../Buttons/Button.js";
@@ -17,7 +17,7 @@ import "../../../IconButton/IconButton.js";
17
17
  import "../../../Input/Input.js";
18
18
  import "../../../InputField/InputField.js";
19
19
  import "react-router";
20
- import "../../../../TablePlugin-o1MveXq2.js";
20
+ import "../../../../TablePlugin-DlTujN8R.js";
21
21
  import { s as r } from "../../../../RteEditor.module-oFMKEW6f.js";
22
22
  import { useTranslation as x } from "../../hooks/useTranslation.js";
23
23
  import "../LinkPlugin/LinkContextMenu/LinkContextMenu.js";
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { A as D } from "../../../../../TablePlugin-o1MveXq2.js";
4
- import "../../../../../helpers-CtrLGKFA.js";
3
+ import { A as D } from "../../../../../TablePlugin-DlTujN8R.js";
4
+ import "../../../../../helpers-BFkCPTTp.js";
5
5
  import "../../../../Icon/Icon.js";
6
6
  import "../../../../Buttons/Button.js";
7
7
  import "../../../../Buttons/LinkButton.js";
@@ -1,6 +1,6 @@
1
1
  import { jsxs as k, Fragment as v, jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as K, useState as b, useRef as N, useImperativeHandle as T, useLayoutEffect as g } from "react";
3
- import { e as E } from "../../../../../helpers-CtrLGKFA.js";
3
+ import { e as E } from "../../../../../helpers-BFkCPTTp.js";
4
4
  import { Icon as m } from "../../../../Icon/Icon.js";
5
5
  import { useTranslation as R } from "../../../hooks/useTranslation.js";
6
6
  import { Button as y } from "../../../../Buttons/Button.js";
@@ -1,11 +1,11 @@
1
1
  import { jsx as k, jsxs as W } from "react/jsx-runtime";
2
2
  import { o as Y } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
3
  import { c as q } from "../../../../clsx-OuTLNxxd.js";
4
- import { d as U, O as G, N as J } from "../../../../LexicalLink.prod-NMeHB9CR.js";
4
+ import { d as U, O as G, N as J } from "../../../../LexicalLink.prod-N0i4wDOR.js";
5
5
  import { useRef as a, useState as X, useEffect as m } from "react";
6
- import { S as Z, a as f, i as $, ak as tt, l as N, N as et, g as ot, Q as rt } from "../../../../Lexical.prod-pVkgOp1j.js";
7
- import { A as nt } from "../../../../TablePlugin-o1MveXq2.js";
8
- import { e as it } from "../../../../helpers-CtrLGKFA.js";
6
+ import { S as Z, a as f, i as $, ak as tt, l as N, N as et, g as ot, Q as rt } from "../../../../Lexical.prod-LIa6Q94i.js";
7
+ import { A as nt } from "../../../../TablePlugin-DlTujN8R.js";
8
+ import { e as it } from "../../../../helpers-BFkCPTTp.js";
9
9
  import { LinkContextMenu as st } from "./LinkContextMenu/LinkContextMenu.js";
10
10
  import { useFlyout as ct } from "../../hooks/useFlyout.js";
11
11
  import { Icon as lt } from "../../../Icon/Icon.js";
@@ -1,4 +1,4 @@
1
- import { M as e, e as r, a as s, v as l } from "../../../../helpers-CtrLGKFA.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-BFkCPTTp.js";
2
2
  export {
3
3
  e as MATCHERS,
4
4
  r as ensureHttps,
@@ -1,10 +1,10 @@
1
1
  import { jsx as d } from "react/jsx-runtime";
2
2
  import { o as S } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { r as C, t as k, Z as P, $ as y, Y as f, X as E } from "../../../../LexicalList.prod-CicvwkCx.js";
4
- import { _ as O } from "../../../../LexicalSelection.prod-mQvH0_ap.js";
3
+ import { r as C, t as k, Z as P, $ as y, Y as f, X as E } from "../../../../LexicalList.prod-BKa7Tljk.js";
4
+ import { _ as O } from "../../../../LexicalSelection.prod-Cid08b3Z.js";
5
5
  import { useState as p, useEffect as D } from "react";
6
6
  import { c as x } from "../../../../clsx-OuTLNxxd.js";
7
- import { ak as T, N as U, M as $, a as b, l as h, E as v, T as w } from "../../../../Lexical.prod-pVkgOp1j.js";
7
+ import { ak as T, N as U, M as $, a as b, l as h, E as v, T as w } from "../../../../Lexical.prod-LIa6Q94i.js";
8
8
  import { Icon as B } from "../../../Icon/Icon.js";
9
9
  import { s as u } from "../../../../RteEditor.module-oFMKEW6f.js";
10
10
  import { useTranslation as Y } from "../../hooks/useTranslation.js";
@@ -1,8 +1,8 @@
1
1
  import { o as m } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
2
2
  import { useEffect as c } from "react";
3
- import { ac as f, z as p, a as u } from "../../../../Lexical.prod-pVkgOp1j.js";
4
- import { E as i } from "../../../../LexicalUtils.prod-C_aSRWfh.js";
5
- import { D as d } from "../../../../LexicalClipboard.prod-DIvwPtmL.js";
3
+ import { ac as f, z as p, a as u } from "../../../../Lexical.prod-LIa6Q94i.js";
4
+ import { E as i } from "../../../../LexicalUtils.prod-DstvN5hc.js";
5
+ import { D as d } from "../../../../LexicalClipboard.prod-LIoPcoQF.js";
6
6
  import { d as D } from "../../../../index-B3c5pcHk.js";
7
7
  const z = () => {
8
8
  const [a] = m(), l = (t) => {
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { b as B } from "../../../../TablePlugin-o1MveXq2.js";
3
+ import { b as B } from "../../../../TablePlugin-DlTujN8R.js";
4
4
  import "../../../Buttons/Button.js";
5
5
  import "../../../Buttons/LinkButton.js";
6
6
  import "@react-aria/button";
@@ -1,10 +1,10 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
3
  import "../../../../clsx-OuTLNxxd.js";
4
- import "../../../../LexicalTable.prod-Bb6g8CAC.js";
5
- import "../../../../Lexical.prod-pVkgOp1j.js";
4
+ import "../../../../LexicalTable.prod-B1mw85mv.js";
5
+ import "../../../../Lexical.prod-LIa6Q94i.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-o1MveXq2.js";
7
+ import { T as F } from "../../../../TablePlugin-DlTujN8R.js";
8
8
  import "./helpers.js";
9
9
  import "../../hooks/useFlyout.js";
10
10
  import "../../../Icon/Icon.js";
@@ -1,5 +1,5 @@
1
- import { W as d, v as h, B as m, X as S, z as w, H as v, x as C, A as p, $ as E } from "../../../../LexicalTable.prod-Bb6g8CAC.js";
2
- import { T as u } from "../../../../Lexical.prod-pVkgOp1j.js";
1
+ import { W as d, v as h, B as m, X as S, z as w, H as v, x as C, O as p, $ as E } from "../../../../LexicalTable.prod-B1mw85mv.js";
2
+ import { T as u } from "../../../../Lexical.prod-LIa6Q94i.js";
3
3
  const b = 100, D = (e, n) => {
4
4
  const t = E(0, 0, !1);
5
5
  for (let o = 0; o < e; o++) {
@@ -11,7 +11,7 @@ const b = 100, D = (e, n) => {
11
11
  t.append(r);
12
12
  }
13
13
  return t;
14
- }, B = (e) => {
14
+ }, A = (e) => {
15
15
  const n = w(e), t = n.getNextSibling() || n.getPreviousSibling(), o = n.getParentOrThrow();
16
16
  if (o.getChildrenSize() > 1 ? n.remove() : o.remove(), t !== null) {
17
17
  const r = t.getFirstDescendant();
@@ -19,7 +19,7 @@ const b = 100, D = (e, n) => {
19
19
  }
20
20
  }, I = (e) => {
21
21
  d(e).remove();
22
- }, O = (e, n) => {
22
+ }, B = (e, n) => {
23
23
  const t = p(), o = w(e), r = o.getChildrenSize();
24
24
  for (let s = 0; s < r; s++) {
25
25
  const c = C(0);
@@ -58,9 +58,9 @@ const b = 100, D = (e, n) => {
58
58
  export {
59
59
  D as createTable,
60
60
  P as deleteColumn,
61
- B as deleteRow,
61
+ A as deleteRow,
62
62
  I as deleteTable,
63
63
  F as insertColumn,
64
- O as insertRow
64
+ B as insertRow
65
65
  };
66
66
  //# sourceMappingURL=helpers.js.map
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-o1MveXq2.js";
1
+ import { T as o } from "../../../../TablePlugin-DlTujN8R.js";
2
2
  import { TableCellContextMenu as t } from "./TableCellContextMenu/TableCellContextMenu.js";
3
3
  export {
4
4
  t as TableCellContextMenu,
@@ -1,13 +1,13 @@
1
1
  import { jsxs as L, jsx as n } from "react/jsx-runtime";
2
2
  import { o as P } from "../../../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { a as g, l as h, g as y } from "../../../../Lexical.prod-pVkgOp1j.js";
3
+ import { a as g, l as h, g as y } from "../../../../Lexical.prod-LIa6Q94i.js";
4
4
  import { useState as C, useRef as E, useCallback as T, useEffect as m } from "react";
5
- import { L as b } from "../../../../LexicalTable.prod-Bb6g8CAC.js";
5
+ import { L as b } from "../../../../LexicalTable.prod-B1mw85mv.js";
6
6
  import { BlockFormatPlugin as N } from "../BlockFormatPlugin/BlockFormatPlugin.js";
7
7
  import { ListPlugin as k } from "../ListPlugin/ListPlugin.js";
8
8
  import { LinkPlugin as x } from "../LinkPlugin/LinkPlugin.js";
9
9
  import { HistoryPlugin as B } from "../HistoryPlugin/HistoryPlugin.js";
10
- import { T as S } from "../../../../TablePlugin-o1MveXq2.js";
10
+ import { T as S } from "../../../../TablePlugin-DlTujN8R.js";
11
11
  import { TableCellContextMenu as z } from "../TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
12
12
  import { s as A } from "../../../../RteEditor.module-oFMKEW6f.js";
13
13
  import { setScrollableContainers as w, removeScrollableContainers as K } from "../../helpers.js";
@@ -3,7 +3,7 @@ import { BlockFormatPlugin as l } from "./BlockFormatPlugin/BlockFormatPlugin.js
3
3
  import { ListPlugin as n } from "./ListPlugin/ListPlugin.js";
4
4
  import { LinkPlugin as m, getLinkNodeTag as x } from "./LinkPlugin/LinkPlugin.js";
5
5
  import { HistoryPlugin as p } from "./HistoryPlugin/HistoryPlugin.js";
6
- import { T as a } from "../../../TablePlugin-o1MveXq2.js";
6
+ import { T as a } from "../../../TablePlugin-DlTujN8R.js";
7
7
  import { TableCellContextMenu as T } from "./TablePlugin/TableCellContextMenu/TableCellContextMenu.js";
8
8
  export {
9
9
  l as BlockFormatPlugin,
@@ -1,22 +1,22 @@
1
1
  import { jsx as h, jsxs as O, Fragment as Pe } from "react/jsx-runtime";
2
2
  import { t as Je, r as Ve, o as P } from "../../LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { aB as Te, ad as z, T as Re, a as p, ah as j, d as q, w as Xe, X as I, l as g, M as Ge, N as m, aC as Ye, ac as Ie, o as Qe, n as Me, aD as Ze, G as et, aA as K, ax as tt, aE as nt, aF as rt, aG as ot, r as ne, aH as it, aI as st, Z as at, C as lt, g as ut, L as ct, aJ as dt, aK as fe, b as me, B as ft, y as re, A as mt, a0 as Fe, aL as pe, u as pt, q as gt, m as ht, aM as ge, p as Ct, aN as yt, aO as Et, aP as wt, aw as vt, J as bt, I as _t, aQ as St, K as kt, x as xt, v as Nt, i as Lt, E as he, aR as Dt, t as $t, am as G, al as Y, aS as Pt, aT as Tt, ao as Rt, an as It } from "../../Lexical.prod-pVkgOp1j.js";
3
+ import { aB as Te, ad as z, T as Re, a as p, ah as j, d as q, w as Xe, X as I, l as g, M as Ge, N as m, aC as Ye, ac as Ie, o as Qe, n as Me, aD as Ze, G as et, aA as K, ax as tt, aE as nt, aF as rt, aG as ot, r as ne, aH as it, aI as st, Z as at, C as lt, g as ut, L as ct, aJ as dt, aK as fe, b as me, B as ft, y as re, A as mt, a0 as Fe, aL as pe, u as pt, q as gt, m as ht, aM as ge, p as Ct, aN as yt, aO as Et, aP as wt, aw as vt, J as bt, I as _t, aQ as St, K as kt, x as xt, v as Nt, i as Lt, E as he, aR as Dt, t as $t, am as G, al as Y, aS as Pt, aT as Tt, ao as Rt, an as It } from "../../Lexical.prod-LIa6Q94i.js";
4
4
  import * as oe from "react";
5
5
  import { useMemo as J, useLayoutEffect as U, useEffect as k, useState as M, useRef as Ke, Suspense as Mt, forwardRef as Oe, useCallback as Ft } from "react";
6
- import { $ as H, E as A, m as Kt, h as de } from "../../LexicalUtils.prod-C_aSRWfh.js";
6
+ import { $ as H, E as A, m as Kt, h as de } from "../../LexicalUtils.prod-DstvN5hc.js";
7
7
  import { flushSync as Ot, createPortal as At } from "react-dom";
8
- import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-DIvwPtmL.js";
9
- import { W as Ee, G as we } from "../../LexicalSelection.prod-mQvH0_ap.js";
10
- import { q as Ae, W as ze, n as Ut } from "../../LexicalList.prod-CicvwkCx.js";
11
- import { h as Be, O as ve, N as ie, d as Ht, p as Wt } from "../../LexicalLink.prod-NMeHB9CR.js";
12
- import { e as jt, g as qt, f as Jt, d as Vt, b as Ue, F as Xt, t as Gt } from "../../LexicalTable.prod-Bb6g8CAC.js";
13
- import { a as Yt, w as Qt, M as Zt } from "../../helpers-CtrLGKFA.js";
8
+ import { D as Ce, _ as ye, h as zt, m as Bt } from "../../LexicalClipboard.prod-LIoPcoQF.js";
9
+ import { W as Ee, G as we } from "../../LexicalSelection.prod-Cid08b3Z.js";
10
+ import { q as Ae, W as ze, n as Ut } from "../../LexicalList.prod-BKa7Tljk.js";
11
+ import { h as Be, O as ve, N as ie, d as Ht, p as Wt } from "../../LexicalLink.prod-N0i4wDOR.js";
12
+ import { e as jt, g as qt, f as Jt, d as Vt, b as Ue, F as Xt, t as Gt } from "../../LexicalTable.prod-B1mw85mv.js";
13
+ import { a as Yt, w as Qt, M as Zt } from "../../helpers-BFkCPTTp.js";
14
14
  import { c as en } from "../../clsx-OuTLNxxd.js";
15
15
  import { exportMap as tn, isStartingWithHtmlTag as nn, mergeBoldStrongTags as rn } from "./helpers.js";
16
16
  import { s as R } from "../../RteEditor.module-oFMKEW6f.js";
17
17
  import { ToolBarPlugin as on } from "./Plugins/ToolbarPlugin/ToolbarPlugin.js";
18
18
  import { useTranslation as sn } from "./hooks/useTranslation.js";
19
- import "../../TablePlugin-o1MveXq2.js";
19
+ import "../../TablePlugin-DlTujN8R.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -1,7 +1,7 @@
1
- import { h as s } from "../../LexicalLink.prod-NMeHB9CR.js";
2
- import { q as n, W as i } from "../../LexicalList.prod-CicvwkCx.js";
3
- import { ab as a, R as c } from "../../Lexical.prod-pVkgOp1j.js";
4
- import { t as m, F as b, b as g } from "../../LexicalTable.prod-Bb6g8CAC.js";
1
+ import { h as s } from "../../LexicalLink.prod-N0i4wDOR.js";
2
+ import { q as n, W as i } from "../../LexicalList.prod-BKa7Tljk.js";
3
+ import { ab as a, R as c } from "../../Lexical.prod-LIa6Q94i.js";
4
+ import { t as m, F as b, b as g } from "../../LexicalTable.prod-B1mw85mv.js";
5
5
  const h = (e) => /^<(b|i|u|strong|em|mark|small|del|ins|sub|sup|div|p|span|h[1-6]|a|img|table|tr|td|th|ul|ol|li|blockquote|pre|code|br)(\s+[^>]*)?>/i.test(e.trim()), v = (e) => {
6
6
  let r = e.replace(/<b><strong>/gi, "<strong>");
7
7
  return r = r.replace(/<\/strong><\/b>/gi, "</strong>"), r;
@@ -1,20 +1,15 @@
1
1
  type NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';
2
2
  export interface TimelineItemProps {
3
- /** Title of the node */
4
3
  title: string;
5
- /** Type of the node active, draft, rejected, verified, submitted */
6
4
  type: NodeTypes;
7
- /** Reason for rejection on verified node */
8
5
  reason?: string;
9
- /** Subtitle of the node */
10
6
  subtitle?: string;
11
- /** Tasks to be completed */
12
7
  tasks?: {
13
8
  title?: string;
14
9
  assignee?: string;
15
10
  }[];
16
- /** If the task is completed */
17
11
  completed: boolean;
12
+ position: number;
18
13
  }
19
14
  export interface TimelineProps {
20
15
  /** Is the task is completed */
@@ -1,25 +1,25 @@
1
- import { jsxs as s, jsx as o, Fragment as h } from "react/jsx-runtime";
1
+ import { jsxs as s, jsx as n, Fragment as h } from "react/jsx-runtime";
2
2
  import { useState as u, createElement as r } from "react";
3
3
  import { c } from "../../clsx-OuTLNxxd.js";
4
- import { s as t, T as a } from "../../TimelineItem-DmrymETS.js";
4
+ import { s as t, T as a } from "../../TimelineItem-ClDZJkaZ.js";
5
5
  import { Button as T } from "../Buttons/Button.js";
6
6
  import "../Buttons/LinkButton.js";
7
7
  import "@react-aria/button";
8
- const y = ({ timelineData: n, showLabel: p, hideLabel: _ }) => {
9
- const [i, d] = u(!1), f = n.filter((e) => e.completed), m = n.filter((e) => !e.completed);
8
+ const y = ({ timelineData: l, showLabel: p, hideLabel: _ }) => {
9
+ const [i, d] = u(!1), f = l.filter((e) => e.completed), m = l.filter((e) => !e.completed);
10
10
  return /* @__PURE__ */ s("div", { className: t.timeline__container, children: [
11
- m.length > 0 && /* @__PURE__ */ o(
11
+ m.length > 0 && /* @__PURE__ */ n(
12
12
  "div",
13
13
  {
14
14
  className: c(t["timeline__button-container"], [
15
15
  i && t["timeline__button-container--active"]
16
16
  ]),
17
- children: /* @__PURE__ */ o(T, { variant: "blank-subtle", onClick: () => d(!i), children: i ? `${_}` : `${p}` })
17
+ children: /* @__PURE__ */ n(T, { variant: "blank-subtle", onClick: () => d(!i), children: i ? `${_}` : `${p}` })
18
18
  }
19
19
  ),
20
20
  /* @__PURE__ */ s("ul", { className: t.timeline__list, children: [
21
- i ? /* @__PURE__ */ o(h, { children: m.map((e, l) => /* @__PURE__ */ r(a, { ...e, key: `${l}_${e.title}` })) }) : /* @__PURE__ */ o("li", { className: c(t.timeline__item, t["timeline__item--todo"]) }),
22
- f.map((e, l) => /* @__PURE__ */ r(a, { ...e, key: `${l}_${e.title}` }))
21
+ i ? /* @__PURE__ */ n(h, { children: m.map((e, o) => /* @__PURE__ */ r(a, { ...e, key: `${o}_${e.title}` })) }) : /* @__PURE__ */ n("li", { className: c(t.timeline__item, t["timeline__item--todo"]) }),
22
+ f.map((e, o) => /* @__PURE__ */ r(a, { ...e, key: `${o}_${e.title}`, position: o }))
23
23
  ] })
24
24
  ] });
25
25
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Timeline.js","sources":["../../../src/components/Timeline/Timeline.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useState } from 'react';\n\nimport styles from './Timeline.module.css';\n\nimport { TimelineItem } from 'components/Timeline/TimelineItem';\nimport { Button } from 'components/Buttons';\n\ntype NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';\n\nexport interface TimelineItemProps {\n /** Title of the node */\n title: string;\n /** Type of the node active, draft, rejected, verified, submitted */\n type: NodeTypes;\n /** Reason for rejection on verified node */\n reason?: string;\n /** Subtitle of the node */\n subtitle?: string;\n /** Tasks to be completed */\n tasks?: {\n title?: string;\n assignee?: string;\n }[];\n /** If the task is completed */\n completed: boolean;\n}\nexport interface TimelineProps {\n /** Is the task is completed */\n timelineData: TimelineItemProps[];\n /** Label of the button is inclomplete tasks are hidden */\n showLabel: string;\n /** Label of the button is inclomplete tasks are shown */\n hideLabel: string;\n}\n\nexport const Timeline = ({ timelineData, showLabel, hideLabel }: TimelineProps) => {\n const [showTodo, setShowTodo] = useState(false);\n const completedTasks = timelineData.filter((task) => task.completed);\n const pendingTasks = timelineData.filter((task) => !task.completed);\n\n return (\n <div className={styles['timeline__container']}>\n {pendingTasks.length > 0 && (\n <div\n className={clsx(styles['timeline__button-container'], [\n showTodo && styles['timeline__button-container--active'],\n ])}\n >\n <Button variant=\"blank-subtle\" onClick={() => setShowTodo(!showTodo)}>\n {showTodo ? `${hideLabel}` : `${showLabel}`}\n </Button>\n </div>\n )}\n <ul className={styles['timeline__list']}>\n {showTodo ? (\n <>\n {pendingTasks.map((data: TimelineItemProps, idx: number) => (\n <TimelineItem {...data} key={`${idx}_${data.title}`} />\n ))}\n </>\n ) : (\n <li className={clsx(styles['timeline__item'], styles['timeline__item--todo'])}></li>\n )}\n {completedTasks.map((data: TimelineItemProps, idx: number) => (\n <TimelineItem {...data} key={`${idx}_${data.title}`} />\n ))}\n </ul>\n </div>\n );\n};\n"],"names":["Timeline","timelineData","showLabel","hideLabel","showTodo","setShowTodo","useState","completedTasks","task","pendingTasks","jsxs","styles","jsx","clsx","Button","Fragment","data","idx","createElement","TimelineItem"],"mappings":";;;;;;;AAoCO,MAAMA,IAAW,CAAC,EAAE,cAAAC,GAAc,WAAAC,GAAW,WAAAC,QAA+B;AACjF,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAK,GACxCC,IAAiBN,EAAa,OAAO,CAACO,MAASA,EAAK,SAAS,GAC7DC,IAAeR,EAAa,OAAO,CAACO,MAAS,CAACA,EAAK,SAAS;AAElE,SACG,gBAAAE,EAAA,OAAA,EAAI,WAAWC,EAAO,qBACpB,UAAA;AAAA,IAAAF,EAAa,SAAS,KACrB,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC,EAAKF,EAAO,4BAA4B,GAAG;AAAA,UACpDP,KAAYO,EAAO,oCAAoC;AAAA,QAAA,CACxD;AAAA,QAED,4BAACG,GAAO,EAAA,SAAQ,gBAAe,SAAS,MAAMT,EAAY,CAACD,CAAQ,GAChE,cAAW,GAAGD,CAAS,KAAK,GAAGD,CAAS,GAC3C,CAAA;AAAA,MAAA;AAAA,IACF;AAAA,IAED,gBAAAQ,EAAA,MAAA,EAAG,WAAWC,EAAO,gBACnB,UAAA;AAAA,MAAAP,IAEI,gBAAAQ,EAAAG,GAAA,EAAA,UAAAN,EAAa,IAAI,CAACO,GAAyBC,MACzC,gBAAAC,EAAAC,GAAA,EAAc,GAAGH,GAAM,KAAK,GAAGC,CAAG,IAAID,EAAK,KAAK,GAAA,CAAI,CACtD,EACH,CAAA,IAEA,gBAAAJ,EAAC,MAAG,EAAA,WAAWC,EAAKF,EAAO,gBAAmBA,EAAO,sBAAsB,CAAC,GAAG;AAAA,MAEhFJ,EAAe,IAAI,CAACS,GAAyBC,wBAC3CE,GAAc,EAAA,GAAGH,GAAM,KAAK,GAAGC,CAAG,IAAID,EAAK,KAAK,IAAI,CACtD;AAAA,IAAA,EACH,CAAA;AAAA,EAAA,GACF;AAEJ;"}
1
+ {"version":3,"file":"Timeline.js","sources":["../../../src/components/Timeline/Timeline.tsx"],"sourcesContent":["import clsx from 'clsx';\nimport { useState } from 'react';\n\nimport styles from './Timeline.module.css';\n\nimport { TimelineItem } from 'components/Timeline/TimelineItem';\nimport { Button } from 'components/Buttons';\n\ntype NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';\n\nexport interface TimelineItemProps {\n title: string;\n type: NodeTypes;\n reason?: string;\n subtitle?: string;\n tasks?: {\n title?: string;\n assignee?: string;\n }[];\n completed: boolean;\n position: number;\n}\nexport interface TimelineProps {\n /** Is the task is completed */\n timelineData: TimelineItemProps[];\n /** Label of the button is inclomplete tasks are hidden */\n showLabel: string;\n /** Label of the button is inclomplete tasks are shown */\n hideLabel: string;\n}\n\nexport const Timeline = ({ timelineData, showLabel, hideLabel }: TimelineProps) => {\n const [showTodo, setShowTodo] = useState(false);\n const completedTasks = timelineData.filter((task) => task.completed);\n const pendingTasks = timelineData.filter((task) => !task.completed);\n\n return (\n <div className={styles['timeline__container']}>\n {pendingTasks.length > 0 && (\n <div\n className={clsx(styles['timeline__button-container'], [\n showTodo && styles['timeline__button-container--active'],\n ])}\n >\n <Button variant=\"blank-subtle\" onClick={() => setShowTodo(!showTodo)}>\n {showTodo ? `${hideLabel}` : `${showLabel}`}\n </Button>\n </div>\n )}\n <ul className={styles['timeline__list']}>\n {showTodo ? (\n <>\n {pendingTasks.map((data: TimelineItemProps, idx: number) => (\n <TimelineItem {...data} key={`${idx}_${data.title}`} />\n ))}\n </>\n ) : (\n <li className={clsx(styles['timeline__item'], styles['timeline__item--todo'])}></li>\n )}\n {completedTasks.map((data: TimelineItemProps, idx: number) => (\n <TimelineItem {...data} key={`${idx}_${data.title}`} position={idx} />\n ))}\n </ul>\n </div>\n );\n};\n"],"names":["Timeline","timelineData","showLabel","hideLabel","showTodo","setShowTodo","useState","completedTasks","task","pendingTasks","jsxs","styles","jsx","clsx","Button","Fragment","data","idx","createElement","TimelineItem"],"mappings":";;;;;;;AA+BO,MAAMA,IAAW,CAAC,EAAE,cAAAC,GAAc,WAAAC,GAAW,WAAAC,QAA+B;AACjF,QAAM,CAACC,GAAUC,CAAW,IAAIC,EAAS,EAAK,GACxCC,IAAiBN,EAAa,OAAO,CAACO,MAASA,EAAK,SAAS,GAC7DC,IAAeR,EAAa,OAAO,CAACO,MAAS,CAACA,EAAK,SAAS;AAElE,SACG,gBAAAE,EAAA,OAAA,EAAI,WAAWC,EAAO,qBACpB,UAAA;AAAA,IAAAF,EAAa,SAAS,KACrB,gBAAAG;AAAA,MAAC;AAAA,MAAA;AAAA,QACC,WAAWC,EAAKF,EAAO,4BAA4B,GAAG;AAAA,UACpDP,KAAYO,EAAO,oCAAoC;AAAA,QAAA,CACxD;AAAA,QAED,4BAACG,GAAO,EAAA,SAAQ,gBAAe,SAAS,MAAMT,EAAY,CAACD,CAAQ,GAChE,cAAW,GAAGD,CAAS,KAAK,GAAGD,CAAS,GAC3C,CAAA;AAAA,MAAA;AAAA,IACF;AAAA,IAED,gBAAAQ,EAAA,MAAA,EAAG,WAAWC,EAAO,gBACnB,UAAA;AAAA,MAAAP,IAEI,gBAAAQ,EAAAG,GAAA,EAAA,UAAAN,EAAa,IAAI,CAACO,GAAyBC,MACzC,gBAAAC,EAAAC,GAAA,EAAc,GAAGH,GAAM,KAAK,GAAGC,CAAG,IAAID,EAAK,KAAK,GAAA,CAAI,CACtD,EACH,CAAA,IAEA,gBAAAJ,EAAC,MAAG,EAAA,WAAWC,EAAKF,EAAO,gBAAmBA,EAAO,sBAAsB,CAAC,GAAG;AAAA,MAEhFJ,EAAe,IAAI,CAACS,GAAyBC,MAC5C,gBAAAC,EAACC,KAAc,GAAGH,GAAM,KAAK,GAAGC,CAAG,IAAID,EAAK,KAAK,IAAI,UAAUC,GAAK,CACrE;AAAA,IAAA,EACH,CAAA;AAAA,EAAA,GACF;AAEJ;"}
@@ -16,7 +16,7 @@ import "../IconButton/IconButton.js";
16
16
  import "../Input/Input.js";
17
17
  import "../InputField/InputField.js";
18
18
  import "react-router";
19
- import "../../TablePlugin-o1MveXq2.js";
19
+ import "../../TablePlugin-DlTujN8R.js";
20
20
  import "../RteEditor/Providers/LanguageProvider.js";
21
21
  import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
22
  import "../RteEditor/hooks/components/Flyout.js";
@@ -1,2 +1,2 @@
1
1
  import { TimelineItemProps } from './Timeline';
2
- export declare const TimelineItem: ({ title, type, reason, subtitle, tasks, completed }: TimelineItemProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const TimelineItem: ({ title, type, reason, subtitle, tasks, completed, position, }: TimelineItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../clsx-OuTLNxxd.js";
3
- import { T as r } from "../../TimelineItem-DmrymETS.js";
3
+ import { T as r } from "../../TimelineItem-ClDZJkaZ.js";
4
4
  export {
5
5
  r as TimelineItem
6
6
  };
@@ -32,7 +32,7 @@ import { Label as io } from "./Label/Label.js";
32
32
  import { MenuLink as no } from "./MenuLink/MenuLink.js";
33
33
  import { MetaDataList as co } from "./MetaDataList/MetaDataList.js";
34
34
  import { ModalDialog as so } from "./ModalDialog/ModalDialog.js";
35
- import { M as So } from "../TablePlugin-o1MveXq2.js";
35
+ import { M as So } from "../TablePlugin-DlTujN8R.js";
36
36
  import { OverlayCloseButton as bo } from "./OverlayCloseButton/OverlayCloseButton.js";
37
37
  import { OverlayStepBar as Fo } from "./OverlayStepBar/OverlayStepBar.js";
38
38
  import { PageOverlay as Lo } from "./PageOverlay/PageOverlay.js";
@@ -1,7 +1,7 @@
1
- import { p as _, O as y, U as x, d as F, m as G } from "./LexicalLink.prod-NMeHB9CR.js";
1
+ import { p as _, O as y, U as x, d as F, m as G } from "./LexicalLink.prod-N0i4wDOR.js";
2
2
  import { o as M } from "./LexicalComposerContext.prod-DLlRM5wP.js";
3
- import { $ as H } from "./LexicalUtils.prod-C_aSRWfh.js";
4
- import { a as v, l as E, E as Q, R as j, X as T, Q as L, aA as B, O as N, d as P } from "./Lexical.prod-pVkgOp1j.js";
3
+ import { $ as H } from "./LexicalUtils.prod-DstvN5hc.js";
4
+ import { a as v, l as E, E as Q, R as j, X as T, Q as L, aA as B, O as N, d as P } from "./Lexical.prod-LIa6Q94i.js";
5
5
  import { useEffect as K } from "react";
6
6
  function b(t, e = (n) => n) {
7
7
  return (n) => {
@@ -161,4 +161,4 @@ export {
161
161
  gt as v,
162
162
  at as w
163
163
  };
164
- //# sourceMappingURL=helpers-CtrLGKFA.js.map
164
+ //# sourceMappingURL=helpers-BFkCPTTp.js.map