@uva-glass/component-library 3.0.10 → 3.0.12

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 (114) hide show
  1. package/dist/Column-BL3dsYxn.js +101 -0
  2. package/dist/{Column-BUyVh2Oo.js.map → Column-BL3dsYxn.js.map} +1 -1
  3. package/dist/{Lexical.prod-CoFvB6ST.js → Lexical.prod-pVkgOp1j.js} +6 -6
  4. package/dist/Lexical.prod-pVkgOp1j.js.map +1 -0
  5. package/dist/{LexicalClipboard.prod-BceK2u8q.js → LexicalClipboard.prod-DIvwPtmL.js} +4 -4
  6. package/dist/{LexicalClipboard.prod-BceK2u8q.js.map → LexicalClipboard.prod-DIvwPtmL.js.map} +1 -1
  7. package/dist/{LexicalLink.prod-DgAdBBH7.js → LexicalLink.prod-NMeHB9CR.js} +3 -3
  8. package/dist/{LexicalLink.prod-DgAdBBH7.js.map → LexicalLink.prod-NMeHB9CR.js.map} +1 -1
  9. package/dist/{LexicalList.prod-BsGg0KUo.js → LexicalList.prod-CicvwkCx.js} +10 -8
  10. package/dist/LexicalList.prod-CicvwkCx.js.map +1 -0
  11. package/dist/{LexicalSelection.prod-CajyzNb9.js → LexicalSelection.prod-mQvH0_ap.js} +2 -2
  12. package/dist/{LexicalSelection.prod-CajyzNb9.js.map → LexicalSelection.prod-mQvH0_ap.js.map} +1 -1
  13. package/dist/{LexicalTable.prod-CNsOdwua.js → LexicalTable.prod-Bb6g8CAC.js} +240 -231
  14. package/dist/LexicalTable.prod-Bb6g8CAC.js.map +1 -0
  15. package/dist/{LexicalUtils.prod-CqRL6ZhZ.js → LexicalUtils.prod-C_aSRWfh.js} +2 -2
  16. package/dist/{LexicalUtils.prod-CqRL6ZhZ.js.map → LexicalUtils.prod-C_aSRWfh.js.map} +1 -1
  17. package/dist/{TablePlugin-CFD5PSMc.js → TablePlugin-o1MveXq2.js} +4 -4
  18. package/dist/{TablePlugin-CFD5PSMc.js.map → TablePlugin-o1MveXq2.js.map} +1 -1
  19. package/dist/TimelineItem-DmrymETS.js +52 -0
  20. package/dist/TimelineItem-DmrymETS.js.map +1 -0
  21. package/dist/__mocks__/svgrMock.js.map +1 -1
  22. package/dist/assets/Column.css +1 -1
  23. package/dist/assets/TimelineItem.css +1 -0
  24. package/dist/assets/VarIndicator.css +1 -1
  25. package/dist/assets/variables.css +3 -3
  26. package/dist/components/Accordion/Accordion.test.js.map +1 -1
  27. package/dist/components/AccordionCard/AccordionCard.test.js.map +1 -1
  28. package/dist/components/ActionList/ActionList.test.js.map +1 -1
  29. package/dist/components/AppStatusBar/AppStatusBar.test.js.map +1 -1
  30. package/dist/components/Attention/Attention.test.js.map +1 -1
  31. package/dist/components/Backdrop/Backdrop.test.js.map +1 -1
  32. package/dist/components/Buttons/Button.test.js.map +1 -1
  33. package/dist/components/Buttons/LinkButton.test.js +1 -1
  34. package/dist/components/Buttons/LinkButton.test.js.map +1 -1
  35. package/dist/components/Buttons/MenuButton.test.js +1 -1
  36. package/dist/components/Buttons/MenuButton.test.js.map +1 -1
  37. package/dist/components/Card/Card.test.d.ts +0 -0
  38. package/dist/components/Card/Card.test.js +10 -0
  39. package/dist/components/Card/Card.test.js.map +1 -0
  40. package/dist/components/Checkbox/Checkbox.test.d.ts +0 -0
  41. package/dist/components/Checkbox/Checkbox.test.js +16 -0
  42. package/dist/components/Checkbox/Checkbox.test.js.map +1 -0
  43. package/dist/components/CheckboxButton/CheckboxButton.test.d.ts +0 -0
  44. package/dist/components/CheckboxButton/CheckboxButton.test.js +51 -0
  45. package/dist/components/CheckboxButton/CheckboxButton.test.js.map +1 -0
  46. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.d.ts +0 -0
  47. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +90 -0
  48. package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js.map +1 -0
  49. package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
  50. package/dist/components/FormInput/FormInput.js +1 -1
  51. package/dist/components/GridRow/Column/Column.js +1 -1
  52. package/dist/components/GridRow/Column/index.js +1 -1
  53. package/dist/components/GridRow/GridRow.js +1 -1
  54. package/dist/components/InputField/InputField.stories.js +1 -1
  55. package/dist/components/Label/Label.test.js.map +1 -1
  56. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  57. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  58. package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
  59. package/dist/components/MultiSelect/index.js +1 -1
  60. package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
  61. package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
  62. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +1 -1
  63. package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
  64. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +1 -1
  65. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
  66. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
  67. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
  68. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +4 -4
  69. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  70. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  71. package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +3 -3
  72. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
  73. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
  74. package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +2 -2
  75. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
  76. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +3 -3
  77. package/dist/components/RteEditor/Plugins/index.js +1 -1
  78. package/dist/components/RteEditor/RteEditor.js +31 -31
  79. package/dist/components/RteEditor/helpers.js +4 -4
  80. package/dist/components/Timeline/Timeline.d.ts +28 -0
  81. package/dist/components/Timeline/Timeline.js +29 -0
  82. package/dist/components/Timeline/Timeline.js.map +1 -0
  83. package/dist/components/Timeline/Timeline.stories.d.ts +5 -0
  84. package/dist/components/Timeline/Timeline.stories.js +43 -0
  85. package/dist/components/Timeline/Timeline.stories.js.map +1 -0
  86. package/dist/components/Timeline/Timeline.test.d.ts +0 -0
  87. package/dist/components/Timeline/Timeline.test.js +80 -0
  88. package/dist/components/Timeline/Timeline.test.js.map +1 -0
  89. package/dist/components/Timeline/TimelineItem.d.ts +2 -0
  90. package/dist/components/Timeline/TimelineItem.js +7 -0
  91. package/dist/components/Timeline/TimelineItem.js.map +1 -0
  92. package/dist/components/Timeline/index.d.ts +1 -0
  93. package/dist/components/Timeline/index.js +5 -0
  94. package/dist/components/Timeline/index.js.map +1 -0
  95. package/dist/components/Timeline/mockTimelineItem.d.ts +30 -0
  96. package/dist/components/Timeline/mockTimelineItem.js +95 -0
  97. package/dist/components/Timeline/mockTimelineItem.js.map +1 -0
  98. package/dist/components/VarIndicator/VarIndicator.js +11 -11
  99. package/dist/components/VarIndicator/VarIndicator.js.map +1 -1
  100. package/dist/components/VarIndicator/VarIndicator.stories.js.map +1 -1
  101. package/dist/components/VarIndicator/VarIndicator.test.js.map +1 -1
  102. package/dist/components/index.d.ts +1 -0
  103. package/dist/components/index.js +23 -21
  104. package/dist/components/index.js.map +1 -1
  105. package/dist/{helpers-C-JeRM2f.js → helpers-CtrLGKFA.js} +4 -4
  106. package/dist/{helpers-C-JeRM2f.js.map → helpers-CtrLGKFA.js.map} +1 -1
  107. package/dist/index.js +23 -21
  108. package/dist/index.js.map +1 -1
  109. package/dist/setupTests.js.map +1 -1
  110. package/package.json +8 -8
  111. package/dist/Column-BUyVh2Oo.js +0 -101
  112. package/dist/Lexical.prod-CoFvB6ST.js.map +0 -1
  113. package/dist/LexicalList.prod-BsGg0KUo.js.map +0 -1
  114. package/dist/LexicalTable.prod-CNsOdwua.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxButtonBar.test.js","sources":["../../../src/components/CheckboxButtonBar/CheckboxButtonBar.test.tsx"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-magic-numbers */\r\nimport '@testing-library/jest-dom';\r\nimport { render, screen } from '@testing-library/react';\r\n\r\nimport { CheckboxButtonBar } from './CheckboxButtonBar';\r\n\r\nconst onClickSpy = jest.fn();\r\n\r\nconst MOCK_CHECKBOXES = [\r\n {\r\n label: '1.1',\r\n value: '1',\r\n },\r\n {\r\n label: '1.2',\r\n value: '2',\r\n },\r\n {\r\n label: '1.3',\r\n value: '3',\r\n },\r\n];\r\n\r\ndescribe('CheckboxButton', () => {\r\n it('should render', () => {\r\n render(\r\n <CheckboxButtonBar\r\n label=\"Periode\"\r\n checkboxes={MOCK_CHECKBOXES}\r\n defaultValues={['1', '2']}\r\n labelPosition=\"top\"\r\n onSetValues={onClickSpy}\r\n />\r\n );\r\n expect(screen.getByText('Periode')).toBeInTheDocument();\r\n const checkbox = screen.getAllByRole('checkbox');\r\n expect(checkbox).toHaveLength(3);\r\n });\r\n\r\n it('should render required', () => {\r\n render(\r\n <CheckboxButtonBar\r\n label=\"Periode\"\r\n required={true}\r\n checkboxes={MOCK_CHECKBOXES}\r\n defaultValues={['1', '2']}\r\n labelPosition=\"top\"\r\n onSetValues={onClickSpy}\r\n />\r\n );\r\n const label = screen.getByText('Periode');\r\n expect(label).toHaveTextContent('Periode');\r\n expect(label).toHaveClass('label--required');\r\n const checkbox = screen.getAllByRole('checkbox');\r\n expect(checkbox).toHaveLength(3);\r\n });\r\n\r\n it('should render default checked', () => {\r\n render(\r\n <CheckboxButtonBar\r\n label=\"Periode\"\r\n checkboxes={MOCK_CHECKBOXES}\r\n defaultValues={['1', '2']}\r\n labelPosition=\"top\"\r\n onSetValues={onClickSpy}\r\n />\r\n );\r\n const label = screen.getByText('Periode');\r\n expect(label).toHaveTextContent('Periode');\r\n const checkbox = screen.getAllByRole('checkbox');\r\n expect(checkbox).toHaveLength(3);\r\n expect(checkbox[0]).toBeChecked();\r\n expect(checkbox[1]).toBeChecked();\r\n expect(checkbox[2]).not.toBeChecked();\r\n });\r\n\r\n it('should render notValidatedText and notValid style', () => {\r\n render(\r\n <CheckboxButtonBar\r\n label=\"Periode\"\r\n notValidatedText=\"Not Valid\"\r\n checkboxes={MOCK_CHECKBOXES}\r\n defaultValues={['1', '2']}\r\n labelPosition=\"top\"\r\n onSetValues={onClickSpy}\r\n />\r\n );\r\n const label = screen.getByText('Periode');\r\n expect(label).toHaveTextContent('Periode');\r\n expect(screen.getByText('Not Valid')).toBeInTheDocument();\r\n const checkbox = screen.getAllByRole('checkbox');\r\n expect(checkbox).toHaveLength(3);\r\n expect(screen.getByText('1.1')).toHaveClass('checkbox-button--not-valid');\r\n expect(screen.getByText('1.2')).toHaveClass('checkbox-button--not-valid');\r\n expect(screen.getByText('1.3')).toHaveClass('checkbox-button--not-valid');\r\n });\r\n});\r\n"],"names":["onClickSpy","MOCK_CHECKBOXES","render","jsx","CheckboxButtonBar","screen","checkbox","label"],"mappings":";;;;AAMA,MAAMA,IAAa,KAAK,GAAG,GAErBC,IAAkB;AAAA,EACtB;AAAA,IACE,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA;AAAA,IACE,OAAO;AAAA,IACP,OAAO;AAAA,EAAA;AAEX;AAEA,SAAS,kBAAkB,MAAM;AAC/B,KAAG,iBAAiB,MAAM;AACxB,IAAAC;AAAA,MACE,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,YAAYH;AAAA,UACZ,eAAe,CAAC,KAAK,GAAG;AAAA,UACxB,eAAc;AAAA,UACd,aAAaD;AAAA,QAAA;AAAA,MAAA;AAAA,IAEjB,GACA,OAAOK,EAAO,UAAU,SAAS,CAAC,EAAE,kBAAkB;AAChD,UAAAC,IAAWD,EAAO,aAAa,UAAU;AACxC,WAAAC,CAAQ,EAAE,aAAa,CAAC;AAAA,EAAA,CAChC,GAED,GAAG,0BAA0B,MAAM;AACjC,IAAAJ;AAAA,MACE,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,UAAU;AAAA,UACV,YAAYH;AAAA,UACZ,eAAe,CAAC,KAAK,GAAG;AAAA,UACxB,eAAc;AAAA,UACd,aAAaD;AAAA,QAAA;AAAA,MAAA;AAAA,IAEjB;AACM,UAAAO,IAAQF,EAAO,UAAU,SAAS;AACjC,WAAAE,CAAK,EAAE,kBAAkB,SAAS,GAClC,OAAAA,CAAK,EAAE,YAAY,iBAAiB;AACrC,UAAAD,IAAWD,EAAO,aAAa,UAAU;AACxC,WAAAC,CAAQ,EAAE,aAAa,CAAC;AAAA,EAAA,CAChC,GAED,GAAG,iCAAiC,MAAM;AACxC,IAAAJ;AAAA,MACE,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,YAAYH;AAAA,UACZ,eAAe,CAAC,KAAK,GAAG;AAAA,UACxB,eAAc;AAAA,UACd,aAAaD;AAAA,QAAA;AAAA,MAAA;AAAA,IAEjB;AACM,UAAAO,IAAQF,EAAO,UAAU,SAAS;AACjC,WAAAE,CAAK,EAAE,kBAAkB,SAAS;AACnC,UAAAD,IAAWD,EAAO,aAAa,UAAU;AACxC,WAAAC,CAAQ,EAAE,aAAa,CAAC,GAC/B,OAAOA,EAAS,CAAC,CAAC,EAAE,YAAY,GAChC,OAAOA,EAAS,CAAC,CAAC,EAAE,YAAY,GAChC,OAAOA,EAAS,CAAC,CAAC,EAAE,IAAI,YAAY;AAAA,EAAA,CACrC,GAED,GAAG,qDAAqD,MAAM;AAC5D,IAAAJ;AAAA,MACE,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,OAAM;AAAA,UACN,kBAAiB;AAAA,UACjB,YAAYH;AAAA,UACZ,eAAe,CAAC,KAAK,GAAG;AAAA,UACxB,eAAc;AAAA,UACd,aAAaD;AAAA,QAAA;AAAA,MAAA;AAAA,IAEjB;AACM,UAAAO,IAAQF,EAAO,UAAU,SAAS;AACjC,WAAAE,CAAK,EAAE,kBAAkB,SAAS,GACzC,OAAOF,EAAO,UAAU,WAAW,CAAC,EAAE,kBAAkB;AAClD,UAAAC,IAAWD,EAAO,aAAa,UAAU;AACxC,WAAAC,CAAQ,EAAE,aAAa,CAAC,GAC/B,OAAOD,EAAO,UAAU,KAAK,CAAC,EAAE,YAAY,4BAA4B,GACxE,OAAOA,EAAO,UAAU,KAAK,CAAC,EAAE,YAAY,4BAA4B,GACxE,OAAOA,EAAO,UAAU,KAAK,CAAC,EAAE,YAAY,4BAA4B;AAAA,EAAA,CACzE;AACH,CAAC;"}
@@ -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-CFD5PSMc.js";
20
+ import "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
19
+ import "../../TablePlugin-o1MveXq2.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,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "../../../clsx-OuTLNxxd.js";
3
- import { C as t } from "../../../Column-BUyVh2Oo.js";
3
+ import { C as t } from "../../../Column-BL3dsYxn.js";
4
4
  export {
5
5
  t as Column
6
6
  };
@@ -1,4 +1,4 @@
1
- import { C as r } from "../../../Column-BUyVh2Oo.js";
1
+ import { C as r } from "../../../Column-BL3dsYxn.js";
2
2
  export {
3
3
  r as Column
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as p } from "react/jsx-runtime";
2
2
  import { c as i } from "../../clsx-OuTLNxxd.js";
3
- import { s as r, C as d } from "../../Column-BUyVh2Oo.js";
3
+ import { s as r, C as d } from "../../Column-BL3dsYxn.js";
4
4
  const s = {
5
5
  0: { "--grid-gap": "0.25rem" },
6
6
  "025": { "--grid-gap": "0.25rem" },
@@ -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-CFD5PSMc.js";
19
+ import "../../TablePlugin-o1MveXq2.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 +1 @@
1
- {"version":3,"file":"Label.test.js","sources":["../../../src/components/Label/Label.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\r\nimport { render, screen } from '@testing-library/react';\r\n\r\nimport { Label } from './Label';\r\n\r\ndescribe('Label', () => {\r\n it('should render', () => {\r\n render(<Label htmlFor=\"testComponent\">Test label</Label>);\r\n expect(screen.getByText('Test label')).toBeInTheDocument();\r\n });\r\n\r\n it('should render with required', () => {\r\n render(\r\n <Label htmlFor=\"testComponent\" required={true}>\r\n Test label\r\n </Label>\r\n );\r\n expect(screen.getByText('Test label')).toHaveClass('label--required');\r\n });\r\n\r\n it('should render with noFontWeight', () => {\r\n render(\r\n <Label htmlFor=\"testComponent\" noFontWeight={true}>\r\n Test label\r\n </Label>\r\n );\r\n expect(screen.getByText('Test label')).toHaveClass('label--unset-font-weight');\r\n });\r\n\r\n it('should render with alignRight', () => {\r\n render(\r\n <Label htmlFor=\"testComponent\" alignRight={true}>\r\n Test label\r\n </Label>\r\n );\r\n expect(screen.getByText('Test label')).toHaveClass('label--align-right');\r\n });\r\n});\r\n"],"names":["render","jsx","Label","screen"],"mappings":";;;;AAKA,SAAS,SAAS,MAAM;AACtB,KAAG,iBAAiB,MAAM;AACxB,IAAAA,EAAQ,gBAAAC,EAAAC,GAAA,EAAM,SAAQ,iBAAgB,wBAAU,CAAQ,GACxD,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,kBAAkB;AAAA,EAAA,CAC1D,GAED,GAAG,+BAA+B,MAAM;AACtC,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,UAAU,IAAM,UAE/C,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,iBAAiB;AAAA,EAAA,CACrE,GAED,GAAG,mCAAmC,MAAM;AAC1C,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,cAAc,IAAM,UAEnD,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,0BAA0B;AAAA,EAAA,CAC9E,GAED,GAAG,iCAAiC,MAAM;AACxC,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,YAAY,IAAM,UAEjD,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,oBAAoB;AAAA,EAAA,CACxE;AACH,CAAC;"}
1
+ {"version":3,"file":"Label.test.js","sources":["../../../src/components/Label/Label.test.tsx"],"sourcesContent":["import '@testing-library/jest-dom';\nimport { render, screen } from '@testing-library/react';\n\nimport { Label } from './Label';\n\ndescribe('Label', () => {\n it('should render', () => {\n render(<Label htmlFor=\"testComponent\">Test label</Label>);\n expect(screen.getByText('Test label')).toBeInTheDocument();\n });\n\n it('should render with required', () => {\n render(\n <Label htmlFor=\"testComponent\" required={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--required');\n });\n\n it('should render with noFontWeight', () => {\n render(\n <Label htmlFor=\"testComponent\" noFontWeight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--unset-font-weight');\n });\n\n it('should render with alignRight', () => {\n render(\n <Label htmlFor=\"testComponent\" alignRight={true}>\n Test label\n </Label>\n );\n expect(screen.getByText('Test label')).toHaveClass('label--align-right');\n });\n});\n"],"names":["render","jsx","Label","screen"],"mappings":";;;;AAKA,SAAS,SAAS,MAAM;AACtB,KAAG,iBAAiB,MAAM;AACxB,IAAAA,EAAQ,gBAAAC,EAAAC,GAAA,EAAM,SAAQ,iBAAgB,wBAAU,CAAQ,GACxD,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,kBAAkB;AAAA,EAAA,CAC1D,GAED,GAAG,+BAA+B,MAAM;AACtC,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,UAAU,IAAM,UAE/C,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,iBAAiB;AAAA,EAAA,CACrE,GAED,GAAG,mCAAmC,MAAM;AAC1C,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,cAAc,IAAM,UAEnD,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,0BAA0B;AAAA,EAAA,CAC9E,GAED,GAAG,iCAAiC,MAAM;AACxC,IAAAH;AAAA,wBACGE,GAAM,EAAA,SAAQ,iBAAgB,YAAY,IAAM,UAEjD,aAAA,CAAA;AAAA,IACF,GACA,OAAOC,EAAO,UAAU,YAAY,CAAC,EAAE,YAAY,oBAAoB;AAAA,EAAA,CACxE;AACH,CAAC;"}
@@ -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-CFD5PSMc.js";
4
+ import { M as p } from "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
4
+ import { M as e } from "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
18
+ import { a as y } from "../../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
1
+ import { M as l } from "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
18
+ import "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
20
+ import "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
20
+ import "../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
17
+ import "../../../TablePlugin-o1MveXq2.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-CoFvB6ST.js";
4
+ import { a as _, l as p, I as h } from "../../../../Lexical.prod-pVkgOp1j.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-CoFvB6ST.js";
4
+ import { al as _, am as y, an as C, ao as k } from "../../../../Lexical.prod-pVkgOp1j.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-CFD5PSMc.js";
20
+ import "../../../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
4
- import "../../../../../helpers-C-JeRM2f.js";
3
+ import { A as D } from "../../../../../TablePlugin-o1MveXq2.js";
4
+ import "../../../../../helpers-CtrLGKFA.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-C-JeRM2f.js";
3
+ import { e as E } from "../../../../../helpers-CtrLGKFA.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-DgAdBBH7.js";
4
+ import { d as U, O as G, N as J } from "../../../../LexicalLink.prod-NMeHB9CR.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-CoFvB6ST.js";
7
- import { A as nt } from "../../../../TablePlugin-CFD5PSMc.js";
8
- import { e as it } from "../../../../helpers-C-JeRM2f.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-pVkgOp1j.js";
7
+ import { A as nt } from "../../../../TablePlugin-o1MveXq2.js";
8
+ import { e as it } from "../../../../helpers-CtrLGKFA.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-C-JeRM2f.js";
1
+ import { M as e, e as r, a as s, v as l } from "../../../../helpers-CtrLGKFA.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-BsGg0KUo.js";
4
- import { _ as O } from "../../../../LexicalSelection.prod-CajyzNb9.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";
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-CoFvB6ST.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";
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-CoFvB6ST.js";
4
- import { E as i } from "../../../../LexicalUtils.prod-CqRL6ZhZ.js";
5
- import { D as d } from "../../../../LexicalClipboard.prod-BceK2u8q.js";
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";
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-CFD5PSMc.js";
3
+ import { b as B } from "../../../../TablePlugin-o1MveXq2.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-CNsOdwua.js";
5
- import "../../../../Lexical.prod-CoFvB6ST.js";
4
+ import "../../../../LexicalTable.prod-Bb6g8CAC.js";
5
+ import "../../../../Lexical.prod-pVkgOp1j.js";
6
6
  import "react";
7
- import { T as F } from "../../../../TablePlugin-CFD5PSMc.js";
7
+ import { T as F } from "../../../../TablePlugin-o1MveXq2.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-CNsOdwua.js";
2
- import { T as u } from "../../../../Lexical.prod-CoFvB6ST.js";
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";
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++) {
@@ -1,4 +1,4 @@
1
- import { T as o } from "../../../../TablePlugin-CFD5PSMc.js";
1
+ import { T as o } from "../../../../TablePlugin-o1MveXq2.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-CoFvB6ST.js";
3
+ import { a as g, l as h, g as y } from "../../../../Lexical.prod-pVkgOp1j.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-CNsOdwua.js";
5
+ import { L as b } from "../../../../LexicalTable.prod-Bb6g8CAC.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-CFD5PSMc.js";
10
+ import { T as S } from "../../../../TablePlugin-o1MveXq2.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-CFD5PSMc.js";
6
+ import { T as a } from "../../../TablePlugin-o1MveXq2.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 Ze, ac as Ie, o as Ye, n as Me, aD as Qe, 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 Z, aS as Pt, aT as Tt, ao as Rt, an as It } from "../../Lexical.prod-CoFvB6ST.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";
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-CqRL6ZhZ.js";
6
+ import { $ as H, E as A, m as Kt, h as de } from "../../LexicalUtils.prod-C_aSRWfh.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-BceK2u8q.js";
9
- import { W as Ee, G as we } from "../../LexicalSelection.prod-CajyzNb9.js";
10
- import { q as Ae, W as ze, n as Ut } from "../../LexicalList.prod-BsGg0KUo.js";
11
- import { h as Be, O as ve, N as ie, d as Ht, p as Wt } from "../../LexicalLink.prod-DgAdBBH7.js";
12
- import { Z as jt, f as qt, d as Jt, h as Vt, b as Ue, F as Xt, e as Gt } from "../../LexicalTable.prod-CNsOdwua.js";
13
- import { a as Zt, w as Yt, M as Qt } from "../../helpers-C-JeRM2f.js";
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";
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-CFD5PSMc.js";
19
+ import "../../TablePlugin-o1MveXq2.js";
20
20
  import "./Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js";
21
21
  import "./hooks/components/Flyout.js";
22
22
  import "../Buttons/Button.js";
@@ -41,7 +41,7 @@ import { UvaTheme as ln } from "./UvaTheme/UvaTheme.js";
41
41
  import { EditorHeader as un } from "./EditorHeader/EditorHeader.js";
42
42
  import { LanguageProvider as cn, useLanguage as dn } from "./Providers/LanguageProvider.js";
43
43
  import { PasteHandlerPlugin as fn } from "./Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js";
44
- const He = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = He ? U : k, Y = { tag: "history-merge" };
44
+ const He = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, mn = He ? U : k, Q = { tag: "history-merge" };
45
45
  function pn({ initialConfig: n, children: e }) {
46
46
  const t = J(() => {
47
47
  const { theme: o, namespace: i, nodes: r, onError: s, editorState: a, html: l } = n, u = Je(null, o), c = Te({ editable: n.editable, html: l, namespace: i, nodes: r, onError: (d) => s(d, c), theme: o });
@@ -55,20 +55,20 @@ function pn({ initialConfig: n, children: e }) {
55
55
  const v = He ? document.activeElement : null;
56
56
  (p() !== null || v !== null && v === d.getRootElement()) && y.select();
57
57
  }
58
- }, Y);
58
+ }, Q);
59
59
  else if (f !== null) switch (typeof f) {
60
60
  case "string": {
61
61
  const C = d.parseEditorState(f);
62
- d.setEditorState(C, Y);
62
+ d.setEditorState(C, Q);
63
63
  break;
64
64
  }
65
65
  case "object":
66
- d.setEditorState(f, Y);
66
+ d.setEditorState(f, Q);
67
67
  break;
68
68
  case "function":
69
69
  d.update(() => {
70
70
  z().isEmpty() && f(d);
71
- }, Y);
71
+ }, Q);
72
72
  }
73
73
  }
74
74
  }(c, a), [c, u];
@@ -174,8 +174,8 @@ function be(n, e) {
174
174
  }
175
175
  return null;
176
176
  }
177
- const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = W && "documentMode" in document ? document.documentMode : null, _n = !(!W || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), Sn = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), _e = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = W && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = W && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, Se = Ye();
178
- function Q(n) {
177
+ const W = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, bn = W && "documentMode" in document ? document.documentMode : null, _n = !(!W || !("InputEvent" in window) || bn) && "getTargetRanges" in new window.InputEvent("input"), Sn = W && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), _e = W && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, kn = W && /^(?=.*Chrome).*/i.test(navigator.userAgent), xn = W && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !kn, Se = Qe();
178
+ function Z(n) {
179
179
  let e = null;
180
180
  if (A(n, DragEvent) ? e = n.dataTransfer : A(n, ClipboardEvent) && (e = n.clipboardData), e === null) return [!1, [], !1];
181
181
  const t = e.types, o = t.includes("Files"), i = t.includes("text/html") || t.includes("text/plain");
@@ -322,7 +322,7 @@ function Nn(n) {
322
322
  const e = p();
323
323
  return !!g(e) && (n.blur(), !0);
324
324
  }, m), n.registerCommand(st, (e) => {
325
- const [, t] = Q(e);
325
+ const [, t] = Z(e);
326
326
  if (t.length > 0) {
327
327
  const i = be(e.clientX, e.clientY);
328
328
  if (i !== null) {
@@ -344,10 +344,10 @@ function Nn(n) {
344
344
  const o = p();
345
345
  return !!g(o);
346
346
  }, m), n.registerCommand(it, (e) => {
347
- const [t] = Q(e), o = p();
347
+ const [t] = Z(e), o = p();
348
348
  return !(t && !g(o));
349
349
  }, m), n.registerCommand(ot, (e) => {
350
- const [t] = Q(e), o = p();
350
+ const [t] = Z(e), o = p();
351
351
  if (t && !g(o)) return !1;
352
352
  const i = be(e.clientX, e.clientY);
353
353
  if (i !== null) {
@@ -361,14 +361,14 @@ function Nn(n) {
361
361
  g(i) ? i.removeText() : K(i) && i.getNodes().forEach((r) => r.remove());
362
362
  });
363
363
  }(e, n), !0), m), n.registerCommand(Ie, (e) => {
364
- const [, t, o] = Q(e);
365
- return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Me(e.target) && Qe(e.target) ? !1 : p() !== null && (function(i, r) {
364
+ const [, t, o] = Z(e);
365
+ return t.length > 0 && !o ? (n.dispatchCommand(Se, t), !0) : Me(e.target) && Ze(e.target) ? !1 : p() !== null && (function(i, r) {
366
366
  i.preventDefault(), r.update(() => {
367
367
  const s = p(), a = A(i, InputEvent) || A(i, KeyboardEvent) ? null : i.clipboardData;
368
368
  a != null && s !== null && Ce(a, s, r);
369
369
  }, { tag: "paste" });
370
370
  }(e, n), !0);
371
- }, m), n.registerCommand(Ze, (e) => {
371
+ }, m), n.registerCommand(Ye, (e) => {
372
372
  const t = p();
373
373
  return g(t) && se(t), !1;
374
374
  }, m), n.registerCommand(Ge, (e) => {
@@ -645,21 +645,21 @@ function Jn(n, e, t) {
645
645
  const a = s.redoStack, l = s.undoStack;
646
646
  if (l.length !== 0) {
647
647
  const u = s.current, c = l.pop();
648
- u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(Z, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
648
+ u !== null && (a.push(u), r.dispatchCommand(G, !0)), l.length === 0 && r.dispatchCommand(Y, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
649
649
  }
650
650
  }(n, e), !0), m), n.registerCommand(Rt, () => (function(r, s) {
651
651
  const a = s.redoStack, l = s.undoStack;
652
652
  if (a.length !== 0) {
653
653
  const u = s.current;
654
- u !== null && (l.push(u), r.dispatchCommand(Z, !0));
654
+ u !== null && (l.push(u), r.dispatchCommand(Y, !0));
655
655
  const c = a.pop();
656
656
  a.length === 0 && r.dispatchCommand(G, !1), s.current = c || null, c && c.editor.setEditorState(c.editorState, { tag: "historic" });
657
657
  }
658
- }(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(Z, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
658
+ }(n, e), !0), m), n.registerCommand(Tt, () => ($e(e), !1), m), n.registerCommand(Pt, () => ($e(e), n.dispatchCommand(G, !1), n.dispatchCommand(Y, !1), !0), m), n.registerUpdateListener(({ editorState: r, prevEditorState: s, dirtyLeaves: a, dirtyElements: l, tags: u }) => {
659
659
  const c = e.current, d = e.redoStack, f = e.undoStack, C = c === null ? null : c.editorState;
660
660
  if (c !== null && r === C) return;
661
661
  const y = o(s, r, c, a, l, u);
662
- if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Z, !0));
662
+ if (y === ue) d.length !== 0 && (e.redoStack = [], n.dispatchCommand(G, !1)), c !== null && (f.push({ ...c }), n.dispatchCommand(Y, !0));
663
663
  else if (y === ce) return;
664
664
  e.current = { editor: n, editorState: r };
665
665
  }));
@@ -686,7 +686,7 @@ function Gn({ hasCellMerge: n = !0, hasCellBackgroundColor: e = !0, hasTabHandle
686
686
  });
687
687
  }, [i, e, n]), null;
688
688
  }
689
- const qe = 200, Zn = ({
689
+ const qe = 200, Yn = ({
690
690
  currentLanguage: n = "NL",
691
691
  initialValue: e = "",
692
692
  placeholder: t = "",
@@ -770,8 +770,8 @@ const qe = 200, Zn = ({
770
770
  /* @__PURE__ */ h(Gn, {}),
771
771
  /* @__PURE__ */ h(Xn, {}),
772
772
  /* @__PURE__ */ h(An, {}),
773
- /* @__PURE__ */ h(zn, { validateUrl: Zt }),
774
- /* @__PURE__ */ h(Yt, { matchers: Qt }),
773
+ /* @__PURE__ */ h(zn, { validateUrl: Yt }),
774
+ /* @__PURE__ */ h(Qt, { matchers: Zt }),
775
775
  /* @__PURE__ */ h(Bn, {}),
776
776
  /* @__PURE__ */ h(On, { onChange: N }),
777
777
  /* @__PURE__ */ h(fn, {})
@@ -790,7 +790,7 @@ const qe = 200, Zn = ({
790
790
  maxWords: a = qe,
791
791
  onChange: l
792
792
  }) => /* @__PURE__ */ h(cn, { children: /* @__PURE__ */ h(
793
- Zn,
793
+ Yn,
794
794
  {
795
795
  currentLanguage: n,
796
796
  initialValue: e,
@@ -804,7 +804,7 @@ const qe = 200, Zn = ({
804
804
  }
805
805
  ) });
806
806
  export {
807
- Zn as Rte,
807
+ Yn as Rte,
808
808
  zr as RteEditor
809
809
  };
810
810
  //# sourceMappingURL=RteEditor.js.map
@@ -1,7 +1,7 @@
1
- import { h as s } from "../../LexicalLink.prod-DgAdBBH7.js";
2
- import { q as n, W as i } from "../../LexicalList.prod-BsGg0KUo.js";
3
- import { ab as a, R as c } from "../../Lexical.prod-CoFvB6ST.js";
4
- import { e as m, F as b, b as g } from "../../LexicalTable.prod-CNsOdwua.js";
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";
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;
@@ -0,0 +1,28 @@
1
+ type NodeTypes = 'active' | 'draft' | 'rejected' | 'verified' | 'submitted';
2
+ export interface TimelineItemProps {
3
+ /** Title of the node */
4
+ title: string;
5
+ /** Type of the node active, draft, rejected, verified, submitted */
6
+ type: NodeTypes;
7
+ /** Reason for rejection on verified node */
8
+ reason?: string;
9
+ /** Subtitle of the node */
10
+ subtitle?: string;
11
+ /** Tasks to be completed */
12
+ tasks?: {
13
+ title?: string;
14
+ assignee?: string;
15
+ }[];
16
+ /** If the task is completed */
17
+ completed: boolean;
18
+ }
19
+ export interface TimelineProps {
20
+ /** Is the task is completed */
21
+ timelineData: TimelineItemProps[];
22
+ /** Label of the button is inclomplete tasks are hidden */
23
+ showLabel: string;
24
+ /** Label of the button is inclomplete tasks are shown */
25
+ hideLabel: string;
26
+ }
27
+ export declare const Timeline: ({ timelineData, showLabel, hideLabel }: TimelineProps) => import("react/jsx-runtime").JSX.Element;
28
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsxs as s, jsx as o, 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-DmrymETS.js";
5
+ import { Button as T } from "../Buttons/Button.js";
6
+ import "../Buttons/LinkButton.js";
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);
10
+ return /* @__PURE__ */ s("div", { className: t.timeline__container, children: [
11
+ m.length > 0 && /* @__PURE__ */ o(
12
+ "div",
13
+ {
14
+ className: c(t["timeline__button-container"], [
15
+ i && t["timeline__button-container--active"]
16
+ ]),
17
+ children: /* @__PURE__ */ o(T, { variant: "blank-subtle", onClick: () => d(!i), children: i ? `${_}` : `${p}` })
18
+ }
19
+ ),
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}` }))
23
+ ] })
24
+ ] });
25
+ };
26
+ export {
27
+ y as Timeline
28
+ };
29
+ //# sourceMappingURL=Timeline.js.map
@@ -0,0 +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;"}