@uva-glass/component-library 3.19.3 → 3.20.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 (59) hide show
  1. package/dist/assets/CheckboxButton.css +1 -1
  2. package/dist/assets/CheckboxButtonBar.css +1 -1
  3. package/dist/assets/PeriodSelector.css +1 -1
  4. package/dist/assets/StatusPill.css +1 -1
  5. package/dist/assets/TextArea.css +1 -1
  6. package/dist/assets/ToggleSwitch.css +1 -1
  7. package/dist/assets/Tooltip.css +1 -1
  8. package/dist/assets/VarIndicator.css +1 -1
  9. package/dist/components/CheckboxButton/CheckboxButton.d.ts +1 -5
  10. package/dist/components/CheckboxButton/CheckboxButton.js +17 -40
  11. package/dist/components/CheckboxButton/CheckboxButton.js.map +1 -1
  12. package/dist/components/CheckboxButton/CheckboxButton.stories.js +5 -13
  13. package/dist/components/CheckboxButton/CheckboxButton.stories.js.map +1 -1
  14. package/dist/components/CheckboxButton/CheckboxButton.test.js +11 -41
  15. package/dist/components/CheckboxButton/CheckboxButton.test.js.map +1 -1
  16. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.d.ts +5 -2
  17. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js +48 -44
  18. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.js.map +1 -1
  19. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +16 -4
  20. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js.map +1 -1
  21. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +17 -19
  22. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -1
  23. package/dist/components/FormInput/FormInput.js +1 -1
  24. package/dist/components/PeriodSelector/PeriodSelector.js +31 -30
  25. package/dist/components/PeriodSelector/PeriodSelector.js.map +1 -1
  26. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +1 -1
  27. package/dist/components/RteEditor/RteEditor.js +1 -1
  28. package/dist/components/StatusPill/StatusPill.js +5 -5
  29. package/dist/components/TextArea/TextArea.js +12 -12
  30. package/dist/components/ToggleSwitch/ToggleSwitch.js +26 -26
  31. package/dist/components/Tooltip/Tooltip.js +24 -24
  32. package/dist/components/VarIndicator/VarIndicator.js +13 -13
  33. package/dist/components/index.d.ts +0 -1
  34. package/dist/components/index.js +10 -12
  35. package/dist/components/index.js.map +1 -1
  36. package/dist/index.js +10 -12
  37. package/dist/index.js.map +1 -1
  38. package/package.json +1 -1
  39. package/dist/TimelineItem-ClDZJkaZ.js +0 -60
  40. package/dist/TimelineItem-ClDZJkaZ.js.map +0 -1
  41. package/dist/assets/TimelineItem.css +0 -1
  42. package/dist/components/Timeline/Timeline.d.ts +0 -23
  43. package/dist/components/Timeline/Timeline.js +0 -29
  44. package/dist/components/Timeline/Timeline.js.map +0 -1
  45. package/dist/components/Timeline/Timeline.stories.d.ts +0 -5
  46. package/dist/components/Timeline/Timeline.stories.js +0 -43
  47. package/dist/components/Timeline/Timeline.stories.js.map +0 -1
  48. package/dist/components/Timeline/Timeline.test.d.ts +0 -0
  49. package/dist/components/Timeline/Timeline.test.js +0 -80
  50. package/dist/components/Timeline/Timeline.test.js.map +0 -1
  51. package/dist/components/Timeline/TimelineItem.d.ts +0 -2
  52. package/dist/components/Timeline/TimelineItem.js +0 -7
  53. package/dist/components/Timeline/TimelineItem.js.map +0 -1
  54. package/dist/components/Timeline/index.d.ts +0 -1
  55. package/dist/components/Timeline/index.js +0 -5
  56. package/dist/components/Timeline/index.js.map +0 -1
  57. package/dist/components/Timeline/mockTimelineItem.d.ts +0 -30
  58. package/dist/components/Timeline/mockTimelineItem.js +0 -95
  59. package/dist/components/Timeline/mockTimelineItem.js.map +0 -1
@@ -13,7 +13,7 @@ import { Checkbox as I } from "./Checkbox/Checkbox.js";
13
13
  import { CheckboxButton as h } from "./CheckboxButton/CheckboxButton.js";
14
14
  import { CheckboxButtonBar as P } from "./CheckboxButtonBar/CheckboxButtonBar.js";
15
15
  import { CheckboxTree as y } from "./CheckboxTree/CheckboxTree.js";
16
- import { Chip as T } from "./Chip/Chip.js";
16
+ import { Chip as v } from "./Chip/Chip.js";
17
17
  import { Drawer as w } from "./Drawer/Drawer.js";
18
18
  import { EmptyStateDataDisplay as O } from "./EmptyStateDataDisplay/EmptyStateDataDisplay.js";
19
19
  import { FeedbackBar as H } from "./FeedbackBar/FeedbackBar.js";
@@ -40,7 +40,7 @@ import { OverlayStepBar as Lo } from "./OverlayStepBar/OverlayStepBar.js";
40
40
  import { PageOverlay as Ao } from "./PageOverlay/PageOverlay.js";
41
41
  import { Periods as Ro } from "./Periods/Periods.js";
42
42
  import { PeriodSelector as Do } from "./PeriodSelector/PeriodSelector.js";
43
- import { ProgrammeCard as vo } from "./ProgrammeCard/ProgrammeCard.js";
43
+ import { ProgrammeCard as To } from "./ProgrammeCard/ProgrammeCard.js";
44
44
  import { RadioButton as Go } from "./RadioButton/RadioButton.js";
45
45
  import { RadioGroup as Eo } from "./RadioGroup/RadioGroup.js";
46
46
  import { Repeater as zo } from "./Repeater/Repeater.js";
@@ -53,10 +53,9 @@ import { Spinner as $o } from "./Spinner/Spinner.js";
53
53
  import { StatusBadge as rr } from "./StatusBadge/StatusBage.js";
54
54
  import { StatusPill as er } from "./StatusPill/StatusPill.js";
55
55
  import { TextArea as xr } from "./TextArea/TextArea.js";
56
- import { Timeline as fr } from "./Timeline/Timeline.js";
57
- import { ToggleSwitch as ir } from "./ToggleSwitch/ToggleSwitch.js";
58
- import { Tooltip as lr } from "./Tooltip/Tooltip.js";
59
- import { VarIndicator as dr } from "./VarIndicator/VarIndicator.js";
56
+ import { ToggleSwitch as fr } from "./ToggleSwitch/ToggleSwitch.js";
57
+ import { Tooltip as ir } from "./Tooltip/Tooltip.js";
58
+ import { VarIndicator as lr } from "./VarIndicator/VarIndicator.js";
60
59
  export {
61
60
  t as Accordion,
62
61
  p as AccordionCard,
@@ -71,7 +70,7 @@ export {
71
70
  h as CheckboxButton,
72
71
  P as CheckboxButtonBar,
73
72
  y as CheckboxTree,
74
- T as Chip,
73
+ v as Chip,
75
74
  w as Drawer,
76
75
  O as EmptyStateDataDisplay,
77
76
  H as FeedbackBar,
@@ -100,7 +99,7 @@ export {
100
99
  Ao as PageOverlay,
101
100
  Do as PeriodSelector,
102
101
  Ro as Periods,
103
- vo as ProgrammeCard,
102
+ To as ProgrammeCard,
104
103
  Go as RadioButton,
105
104
  Eo as RadioGroup,
106
105
  zo as Repeater,
@@ -114,10 +113,9 @@ export {
114
113
  rr as StatusBadge,
115
114
  er as StatusPill,
116
115
  xr as TextArea,
117
- fr as Timeline,
118
- ir as ToggleSwitch,
119
- lr as Tooltip,
120
- dr as VarIndicator,
116
+ fr as ToggleSwitch,
117
+ ir as Tooltip,
118
+ lr as VarIndicator,
121
119
  Xo as useSelect
122
120
  };
123
121
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { Checkbox as I } from "./components/Checkbox/Checkbox.js";
13
13
  import { CheckboxButton as h } from "./components/CheckboxButton/CheckboxButton.js";
14
14
  import { CheckboxButtonBar as P } from "./components/CheckboxButtonBar/CheckboxButtonBar.js";
15
15
  import { CheckboxTree as y } from "./components/CheckboxTree/CheckboxTree.js";
16
- import { Chip as T } from "./components/Chip/Chip.js";
16
+ import { Chip as v } from "./components/Chip/Chip.js";
17
17
  import { Drawer as w } from "./components/Drawer/Drawer.js";
18
18
  import { EmptyStateDataDisplay as O } from "./components/EmptyStateDataDisplay/EmptyStateDataDisplay.js";
19
19
  import { FeedbackBar as H } from "./components/FeedbackBar/FeedbackBar.js";
@@ -40,7 +40,7 @@ import { OverlayStepBar as Lo } from "./components/OverlayStepBar/OverlayStepBar
40
40
  import { PageOverlay as Ao } from "./components/PageOverlay/PageOverlay.js";
41
41
  import { Periods as Ro } from "./components/Periods/Periods.js";
42
42
  import { PeriodSelector as Do } from "./components/PeriodSelector/PeriodSelector.js";
43
- import { ProgrammeCard as vo } from "./components/ProgrammeCard/ProgrammeCard.js";
43
+ import { ProgrammeCard as To } from "./components/ProgrammeCard/ProgrammeCard.js";
44
44
  import { RadioButton as Go } from "./components/RadioButton/RadioButton.js";
45
45
  import { RadioGroup as Eo } from "./components/RadioGroup/RadioGroup.js";
46
46
  import { Repeater as zo } from "./components/Repeater/Repeater.js";
@@ -53,10 +53,9 @@ import { Spinner as $o } from "./components/Spinner/Spinner.js";
53
53
  import { StatusBadge as rr } from "./components/StatusBadge/StatusBage.js";
54
54
  import { StatusPill as er } from "./components/StatusPill/StatusPill.js";
55
55
  import { TextArea as xr } from "./components/TextArea/TextArea.js";
56
- import { Timeline as fr } from "./components/Timeline/Timeline.js";
57
- import { ToggleSwitch as ir } from "./components/ToggleSwitch/ToggleSwitch.js";
58
- import { Tooltip as lr } from "./components/Tooltip/Tooltip.js";
59
- import { VarIndicator as dr } from "./components/VarIndicator/VarIndicator.js";
56
+ import { ToggleSwitch as fr } from "./components/ToggleSwitch/ToggleSwitch.js";
57
+ import { Tooltip as ir } from "./components/Tooltip/Tooltip.js";
58
+ import { VarIndicator as lr } from "./components/VarIndicator/VarIndicator.js";
60
59
  export {
61
60
  t as Accordion,
62
61
  p as AccordionCard,
@@ -71,7 +70,7 @@ export {
71
70
  h as CheckboxButton,
72
71
  P as CheckboxButtonBar,
73
72
  y as CheckboxTree,
74
- T as Chip,
73
+ v as Chip,
75
74
  w as Drawer,
76
75
  O as EmptyStateDataDisplay,
77
76
  H as FeedbackBar,
@@ -100,7 +99,7 @@ export {
100
99
  Ao as PageOverlay,
101
100
  Do as PeriodSelector,
102
101
  Ro as Periods,
103
- vo as ProgrammeCard,
102
+ To as ProgrammeCard,
104
103
  Go as RadioButton,
105
104
  Eo as RadioGroup,
106
105
  zo as Repeater,
@@ -114,10 +113,9 @@ export {
114
113
  rr as StatusBadge,
115
114
  er as StatusPill,
116
115
  xr as TextArea,
117
- fr as Timeline,
118
- ir as ToggleSwitch,
119
- lr as Tooltip,
120
- dr as VarIndicator,
116
+ fr as ToggleSwitch,
117
+ ir as Tooltip,
118
+ lr as VarIndicator,
121
119
  Xo as useSelect
122
120
  };
123
121
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uva-glass/component-library",
3
3
  "author": "Team Glass - Frontend vrienden",
4
4
  "private": false,
5
- "version": "3.19.3",
5
+ "version": "3.20.0",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -1,60 +0,0 @@
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
@@ -1 +0,0 @@
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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AA,EAAA;AACL;"}
@@ -1 +0,0 @@
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}
@@ -1,23 +0,0 @@
1
- type NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';
2
- export interface TimelineItemProps {
3
- title: string;
4
- type: NodeTypes;
5
- reason?: string;
6
- subtitle?: string;
7
- tasks?: {
8
- title?: string;
9
- assignee?: string;
10
- }[];
11
- completed: boolean;
12
- position: number;
13
- }
14
- export interface TimelineProps {
15
- /** Is the task is completed */
16
- timelineData: TimelineItemProps[];
17
- /** Label of the button is inclomplete tasks are hidden */
18
- showLabel: string;
19
- /** Label of the button is inclomplete tasks are shown */
20
- hideLabel: string;
21
- }
22
- export declare const Timeline: ({ timelineData, showLabel, hideLabel }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
23
- export {};
@@ -1,29 +0,0 @@
1
- import { jsxs as s, jsx as n, Fragment as h } from "react/jsx-runtime";
2
- import { useState as u, createElement as r } from "react";
3
- import { c } from "../../clsx-OuTLNxxd.js";
4
- import { s as t, T as a } from "../../TimelineItem-ClDZJkaZ.js";
5
- import { Button as T } from "../Buttons/Button.js";
6
- import "../Buttons/LinkButton.js";
7
- import "@react-aria/button";
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
- return /* @__PURE__ */ s("div", { className: t.timeline__container, children: [
11
- m.length > 0 && /* @__PURE__ */ n(
12
- "div",
13
- {
14
- className: c(t["timeline__button-container"], [
15
- i && t["timeline__button-container--active"]
16
- ]),
17
- children: /* @__PURE__ */ n(T, { variant: "blank-subtle", onClick: () => d(!i), children: i ? `${_}` : `${p}` })
18
- }
19
- ),
20
- /* @__PURE__ */ s("ul", { className: t.timeline__list, children: [
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
- ] })
24
- ] });
25
- };
26
- export {
27
- y as Timeline
28
- };
29
- //# sourceMappingURL=Timeline.js.map
@@ -1 +0,0 @@
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","pending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@@ -1,5 +0,0 @@
1
- import { Meta } from '@storybook/react';
2
- import { TimelineProps } from './Timeline';
3
- declare const _default: Meta<TimelineProps>;
4
- export default _default;
5
- export declare const TimelineExample: import('@storybook/core/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, TimelineProps>;
@@ -1,43 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { Timeline as e } from "./Timeline.js";
3
- import { MOCK_TIMELINE_ITEM as i } from "./mockTimelineItem.js";
4
- const n = "<Timeline data=[] showLabel={string} hideLabel={string} />", c = {
5
- title: "Organisms/Timeline",
6
- component: e,
7
- argTypes: {
8
- timelineData: {
9
- description: "Data for the timeline",
10
- control: {
11
- type: "object"
12
- }
13
- },
14
- showLabel: {
15
- description: "Label of the button if inclomplete tasks are hidden",
16
- control: {
17
- type: "text"
18
- }
19
- },
20
- hideLabel: {
21
- description: "Label of the button if inclomplete tasks are shown",
22
- control: {
23
- type: "text"
24
- }
25
- }
26
- },
27
- parameters: {
28
- inspectComponent: e,
29
- codeString: n
30
- }
31
- }, a = (t) => /* @__PURE__ */ o(e, { ...t }), s = {
32
- timelineData: i,
33
- showLabel: "Toon vervolgstappen",
34
- hideLabel: "Verberg vervolgstappen"
35
- }, l = a.bind({});
36
- l.args = {
37
- ...s
38
- };
39
- export {
40
- l as TimelineExample,
41
- c as default
42
- };
43
- //# sourceMappingURL=Timeline.stories.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Timeline.stories.js","sources":["../../../src/components/Timeline/Timeline.stories.tsx"],"sourcesContent":["import type { Meta, StoryFn } from '@storybook/react';\nimport type { TimelineProps, TimelineItemProps } from './Timeline';\n\nimport { Timeline } from './Timeline';\nimport { MOCK_TIMELINE_ITEM } from './mockTimelineItem';\n\nconst codeString = '<Timeline data=[] showLabel={string} hideLabel={string} />';\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Organisms/Timeline',\n component: Timeline,\n argTypes: {\n timelineData: {\n description: 'Data for the timeline',\n control: {\n type: 'object',\n },\n },\n showLabel: {\n description: 'Label of the button if inclomplete tasks are hidden',\n control: {\n type: 'text',\n },\n },\n hideLabel: {\n description: 'Label of the button if inclomplete tasks are shown',\n control: {\n type: 'text',\n },\n },\n },\n parameters: {\n inspectComponent: Timeline,\n codeString: codeString,\n },\n} as Meta<TimelineProps>;\n\nconst Template: StoryFn<TimelineProps> = (args) => <Timeline {...args} />;\n\nconst defaultArgs: Partial<TimelineProps> = {\n timelineData: MOCK_TIMELINE_ITEM as TimelineItemProps[],\n showLabel: 'Toon vervolgstappen',\n hideLabel: 'Verberg vervolgstappen',\n};\n\nexport const TimelineExample = Template.bind({});\nTimelineExample.args = {\n ...defaultArgs,\n};\n"],"names":["codeString","Timeline_stories","Timeline","Template","args","jsx","defaultArgs","MOCK_TIMELINE_ITEM","TimelineExample"],"mappings":";;;AAMA,MAAMA,IAAa,8DAGJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,cAAc;AAAA,MACZ,aAAa;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,WAAW;AAAA,MACT,aAAa;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MAAA;AAAA,IAEV;AAAA,IACA,WAAW;AAAA,MACT,aAAa;AAAA,MACb,SAAS;AAAA,QACP,MAAM;AAAA,MAAA;AAAA,IACR;AAAA,EAEJ;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EAAA;AAEJ,GAEMG,IAAmC,CAACC,MAAU,gBAAAC,EAAAH,GAAA,EAAU,GAAGE,GAAM,GAEjEE,IAAsC;AAAA,EAC1C,cAAcC;AAAA,EACd,WAAW;AAAA,EACX,WAAW;AACb,GAEaC,IAAkBL,EAAS,KAAK,CAAE,CAAA;AAC/CK,EAAgB,OAAO;AAAA,EACrB,GAAGF;AACL;"}
File without changes
@@ -1,80 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import "../../index-BqLi4tOb.js";
3
- import { r as n, s as e, f as i } from "../../react.esm-CsMDid07.js";
4
- import { MOCK_TIMELINE_ITEM as r } from "./mockTimelineItem.js";
5
- import "react";
6
- import "../Buttons/Button.js";
7
- import "../Buttons/LinkButton.js";
8
- import "@react-aria/button";
9
- import "../Checkbox/Checkbox.js";
10
- import "@react-aria/dialog";
11
- import "@react-aria/focus";
12
- import "@react-aria/overlays";
13
- import "../OverlayCloseButton/OverlayCloseButton.js";
14
- import "../GridRow/GridRow.js";
15
- import "../IconButton/IconButton.js";
16
- import "../Input/Input.js";
17
- import "../InputField/InputField.js";
18
- import "react-router";
19
- import "../../TablePlugin-hxs9O_ox.js";
20
- import "../RteEditor/Providers/LanguageProvider.js";
21
- import "../RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
22
- import "../RteEditor/hooks/components/Flyout.js";
23
- import "../../index-DllfJcv4.js";
24
- import "../SelectListbox/SelectListbox.js";
25
- import "../SelectListbox/SelectProvider.js";
26
- import "../Sortable/components/SortableItem.js";
27
- import "../../SortableProvider-B3_u0pKv.js";
28
- import { Timeline as p } from "./Timeline.js";
29
- describe("should render", () => {
30
- it("should render completed items", () => {
31
- n(
32
- /* @__PURE__ */ o(
33
- p,
34
- {
35
- timelineData: r,
36
- showLabel: "Toon vervolgstappen",
37
- hideLabel: "Verberg vervolgstappen"
38
- }
39
- )
40
- ), expect(e.getByText("Concept")).toBeInTheDocument(), expect(e.getByText("Vakgegevens afgewezen")).toBeInTheDocument(), expect(e.getByText("Geverifieerd 1 van 3")).toBeInTheDocument(), expect(e.getByText("Concept ingediend")).toBeInTheDocument(), expect(e.getByText("Aangemaakt")).toBeInTheDocument();
41
- }), it("should switch label when button is clicked", () => {
42
- n(
43
- /* @__PURE__ */ o(
44
- p,
45
- {
46
- timelineData: r,
47
- showLabel: "Toon vervolgstappen",
48
- hideLabel: "Verberg vervolgstappen"
49
- }
50
- )
51
- );
52
- const t = e.getByRole("button", { name: "Toon vervolgstappen" });
53
- expect(t).toBeInTheDocument(), i.click(t), expect(e.getByText("Verberg vervolgstappen")).toBeInTheDocument();
54
- }), it("should show incomplete tasks if button is clicked", () => {
55
- n(
56
- /* @__PURE__ */ o(
57
- p,
58
- {
59
- timelineData: r,
60
- showLabel: "Toon vervolgstappen",
61
- hideLabel: "Verberg vervolgstappen"
62
- }
63
- )
64
- );
65
- const t = e.getByRole("button", { name: "Toon vervolgstappen" });
66
- expect(t).toBeInTheDocument(), i.click(t), expect(e.getByText("Verberg vervolgstappen")).toBeInTheDocument(), expect(e.getByText("Actief")).toBeInTheDocument();
67
- }), it("should not show button if there are no incomplete tasks", () => {
68
- n(
69
- /* @__PURE__ */ o(
70
- p,
71
- {
72
- timelineData: r.filter(({ completed: t }) => t),
73
- showLabel: "Toon vervolgstappen",
74
- hideLabel: "Verberg vervolgstappen"
75
- }
76
- )
77
- ), expect(e.queryByText("Toon vervolgstappen")).not.toBeInTheDocument();
78
- });
79
- });
80
- //# sourceMappingURL=Timeline.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Timeline.test.js","sources":["../../../src/components/Timeline/Timeline.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { fireEvent, render, screen } from '@testing-library/react';\n\nimport type { TimelineItemProps } from './Timeline';\n\nimport { MOCK_TIMELINE_ITEM } from './mockTimelineItem';\n\nimport { Timeline } from 'components';\n\ndescribe('should render', () => {\n it('should render completed items', () => {\n render(\n <Timeline\n timelineData={MOCK_TIMELINE_ITEM as TimelineItemProps[]}\n showLabel=\"Toon vervolgstappen\"\n hideLabel=\"Verberg vervolgstappen\"\n />\n );\n expect(screen.getByText('Concept')).toBeInTheDocument();\n expect(screen.getByText('Vakgegevens afgewezen')).toBeInTheDocument();\n expect(screen.getByText('Geverifieerd 1 van 3')).toBeInTheDocument();\n expect(screen.getByText('Concept ingediend')).toBeInTheDocument();\n expect(screen.getByText('Aangemaakt')).toBeInTheDocument();\n });\n\n it('should switch label when button is clicked', () => {\n render(\n <Timeline\n timelineData={MOCK_TIMELINE_ITEM as TimelineItemProps[]}\n showLabel=\"Toon vervolgstappen\"\n hideLabel=\"Verberg vervolgstappen\"\n />\n );\n const button = screen.getByRole('button', { name: 'Toon vervolgstappen' });\n expect(button).toBeInTheDocument();\n fireEvent.click(button);\n expect(screen.getByText('Verberg vervolgstappen')).toBeInTheDocument();\n });\n\n it('should show incomplete tasks if button is clicked', () => {\n render(\n <Timeline\n timelineData={MOCK_TIMELINE_ITEM as TimelineItemProps[]}\n showLabel=\"Toon vervolgstappen\"\n hideLabel=\"Verberg vervolgstappen\"\n />\n );\n const button = screen.getByRole('button', { name: 'Toon vervolgstappen' });\n expect(button).toBeInTheDocument();\n fireEvent.click(button);\n expect(screen.getByText('Verberg vervolgstappen')).toBeInTheDocument();\n expect(screen.getByText('Actief')).toBeInTheDocument();\n });\n\n it('should not show button if there are no incomplete tasks', () => {\n render(\n <Timeline\n timelineData={(MOCK_TIMELINE_ITEM as TimelineItemProps[]).filter(({ completed }) => completed)}\n showLabel=\"Toon vervolgstappen\"\n hideLabel=\"Verberg vervolgstappen\"\n />\n );\n expect(screen.queryByText('Toon vervolgstappen')).not.toBeInTheDocument();\n });\n});\n"],"names":["render","jsx","Timeline","MOCK_TIMELINE_ITEM","screen","button","fireEvent","completed"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,SAAS,iBAAiB,MAAM;AAC9B,KAAG,iCAAiC,MAAM;AACxC,IAAAA;AAAA,MACE,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,cAAcC;AAAA,UACd,WAAU;AAAA,UACV,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,IAEd,GACA,OAAOC,EAAO,UAAU,SAAS,CAAC,EAAE,kBAAkB,GACtD,OAAOA,EAAO,UAAU,uBAAuB,CAAC,EAAE,kBAAkB,GACpE,OAAOA,EAAO,UAAU,sBAAsB,CAAC,EAAE,kB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,0 @@
1
- import { TimelineItemProps } from './Timeline';
2
- export declare const TimelineItem: ({ title, type, reason, subtitle, tasks, completed, position, }: TimelineItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import "react/jsx-runtime";
2
- import "../../clsx-OuTLNxxd.js";
3
- import { T as r } from "../../TimelineItem-ClDZJkaZ.js";
4
- export {
5
- r as TimelineItem
6
- };
7
- //# sourceMappingURL=TimelineItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TimelineItem.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
@@ -1 +0,0 @@
1
- export * from './Timeline';
@@ -1,5 +0,0 @@
1
- import { Timeline as m } from "./Timeline.js";
2
- export {
3
- m as Timeline
4
- };
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,30 +0,0 @@
1
- export declare const MOCK_TIMELINE_ITEM: ({
2
- title: string;
3
- type: string;
4
- reason: string;
5
- subtitle: string;
6
- tasks: {
7
- title: string;
8
- assignee: string;
9
- }[];
10
- completed: boolean;
11
- } | {
12
- title: string;
13
- type: string;
14
- tasks: {
15
- title: string;
16
- assignee: string;
17
- }[];
18
- completed: boolean;
19
- reason?: undefined;
20
- subtitle?: undefined;
21
- } | {
22
- title: string;
23
- type: string;
24
- reason: string;
25
- subtitle: string;
26
- tasks: {
27
- title: string;
28
- }[];
29
- completed: boolean;
30
- })[];
@@ -1,95 +0,0 @@
1
- const e = [
2
- {
3
- title: "Actief",
4
- type: "active",
5
- completed: !1,
6
- reason: "",
7
- subtitle: "",
8
- tasks: []
9
- },
10
- {
11
- title: "Verificatie",
12
- type: "submitted",
13
- reason: "",
14
- subtitle: "3 openstaande verificatietaken",
15
- tasks: [
16
- {
17
- title: "Vakgegevens te verifiëren door",
18
- assignee: "Opleidingsdirecteur"
19
- },
20
- {
21
- title: "Vakgegevens te verifiëren door",
22
- assignee: "Opleidingscoördinator"
23
- },
24
- {
25
- title: "Vakgegevens te verifiëren door",
26
- assignee: "Studiegidsredacteur"
27
- }
28
- ],
29
- completed: !1
30
- },
31
- {
32
- title: "Concept",
33
- type: "draft",
34
- reason: "",
35
- subtitle: "",
36
- tasks: [
37
- {
38
- title: "Vakgegevens opnieuw in te dienen door",
39
- assignee: "Vakcoördinator"
40
- }
41
- ],
42
- completed: !0
43
- },
44
- {
45
- title: "Vakgegevens afgewezen",
46
- type: "rejected",
47
- tasks: [
48
- {
49
- title: "Afwijsreden: gegevens mbt de aanbiedingen kloppen nog niet.",
50
- assignee: "Jane Doe als opleidingscoördinator, 14 mei 2024, 16:39"
51
- }
52
- ],
53
- completed: !0
54
- },
55
- {
56
- title: "Geverifieerd 1 van 3",
57
- type: "verified",
58
- reason: "ongeldig door afwijzing",
59
- subtitle: "",
60
- tasks: [
61
- {
62
- title: "Jan Doe als opleidingsdirecteur, 14 mei 2024, 16:38"
63
- }
64
- ],
65
- completed: !0
66
- },
67
- {
68
- title: "Concept ingediend",
69
- type: "submitted",
70
- reason: "",
71
- subtitle: "",
72
- tasks: [
73
- {
74
- title: "John Doe, 14 mei 2024, 16:37"
75
- }
76
- ],
77
- completed: !0
78
- },
79
- {
80
- title: "Aangemaakt",
81
- type: "draft",
82
- reason: "ongeldig door afwijzing",
83
- subtitle: "",
84
- tasks: [
85
- {
86
- title: "Glass jaarkopie, 14 mei 2024, 16:35"
87
- }
88
- ],
89
- completed: !0
90
- }
91
- ];
92
- export {
93
- e as MOCK_TIMELINE_ITEM
94
- };
95
- //# sourceMappingURL=mockTimelineItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mockTimelineItem.js","sources":["../../../src/components/Timeline/mockTimelineItem.ts"],"sourcesContent":["export const MOCK_TIMELINE_ITEM = [\n {\n title: 'Actief',\n type: 'active',\n completed: false,\n reason: '',\n subtitle: '',\n tasks: [],\n },\n {\n title: 'Verificatie',\n type: 'submitted',\n reason: '',\n subtitle: '3 openstaande verificatietaken',\n tasks: [\n {\n title: 'Vakgegevens te verifiëren door',\n assignee: 'Opleidingsdirecteur',\n },\n {\n title: 'Vakgegevens te verifiëren door',\n assignee: 'Opleidingscoördinator',\n },\n {\n title: 'Vakgegevens te verifiëren door',\n assignee: 'Studiegidsredacteur',\n },\n ],\n completed: false,\n },\n {\n title: 'Concept',\n type: 'draft',\n reason: '',\n subtitle: '',\n tasks: [\n {\n title: 'Vakgegevens opnieuw in te dienen door',\n assignee: 'Vakcoördinator',\n },\n ],\n completed: true,\n },\n {\n title: 'Vakgegevens afgewezen',\n type: 'rejected',\n tasks: [\n {\n title: 'Afwijsreden: gegevens mbt de aanbiedingen kloppen nog niet.',\n assignee: 'Jane Doe als opleidingscoördinator, 14 mei 2024, 16:39',\n },\n ],\n completed: true,\n },\n {\n title: 'Geverifieerd 1 van 3',\n type: 'verified',\n reason: 'ongeldig door afwijzing',\n subtitle: '',\n tasks: [\n {\n title: 'Jan Doe als opleidingsdirecteur, 14 mei 2024, 16:38',\n },\n ],\n completed: true,\n },\n {\n title: 'Concept ingediend',\n type: 'submitted',\n reason: '',\n subtitle: '',\n tasks: [\n {\n title: 'John Doe, 14 mei 2024, 16:37',\n },\n ],\n completed: true,\n },\n {\n title: 'Aangemaakt',\n type: 'draft',\n reason: 'ongeldig door afwijzing',\n subtitle: '',\n tasks: [\n {\n title: 'Glass jaarkopie, 14 mei 2024, 16:35',\n },\n ],\n completed: true,\n },\n];\n"],"names":["MOCK_TIMELINE_ITEM"],"mappings":"AAAO,MAAMA,IAAqB;AAAA,EAChC;AAAA,IACE,OAAO;AAAA,IACP,MAAM;AAAA,IACN,WAAW;AAAA,IACX,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO,CAAA;AAAA,EACT;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,MAAM;AAAA,IACN,QAAQ;AAAA,IACR,UAAU;AAAA,IACV,OAAO;AAAA,MACL;AAAA,QACE,OAAO;AAAA,QACP,UAAU;AA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