@uva-glass/component-library 1.53.0 → 1.55.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 (124) hide show
  1. package/dist/AddTableFrom-CwnPli3F.js +162 -0
  2. package/dist/AddTableFrom-CwnPli3F.js.map +1 -0
  3. package/dist/{Lexical.prod-DNRTKPfN.js → Lexical.prod-BiuZHlIm.js} +927 -897
  4. package/dist/Lexical.prod-BiuZHlIm.js.map +1 -0
  5. package/dist/LexicalUtils.prod-BZOm66mY.js +94 -0
  6. package/dist/{LexicalUtils.prod-D_BPEjfg.js.map → LexicalUtils.prod-BZOm66mY.js.map} +1 -1
  7. package/dist/{ListPlugin-CgNBzfIl.js → ListPlugin-DFFbKLaN.js} +4 -4
  8. package/dist/{ListPlugin-CgNBzfIl.js.map → ListPlugin-DFFbKLaN.js.map} +1 -1
  9. package/dist/RteEditor.module-BBbfV1rk.js +24 -0
  10. package/dist/RteEditor.module-BBbfV1rk.js.map +1 -0
  11. package/dist/Sortable.module-BrgGu8qp.js +24 -0
  12. package/dist/Sortable.module-BrgGu8qp.js.map +1 -0
  13. package/dist/SortableProvider-Z0e0qeQT.js +152 -0
  14. package/dist/SortableProvider-Z0e0qeQT.js.map +1 -0
  15. package/dist/TablePlugin-CKJQiwra.js +1506 -0
  16. package/dist/TablePlugin-CKJQiwra.js.map +1 -0
  17. package/dist/assets/AddTableFrom.css +1 -0
  18. package/dist/assets/PageOverlay.css +1 -0
  19. package/dist/assets/RteEditor.css +1 -1
  20. package/dist/assets/Sortable.css +1 -0
  21. package/dist/assets/useFlyout.css +1 -1
  22. package/dist/components/CheckboxTree/CheckboxTree.js +11 -9
  23. package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
  24. package/dist/components/Icon/icons/index.d.ts +3 -0
  25. package/dist/components/Icon/icons/index.js +18 -13
  26. package/dist/components/Icon/icons/index.js.map +1 -1
  27. package/dist/components/InputField/InputField.stories.js +13 -11
  28. package/dist/components/InputField/InputField.stories.js.map +1 -1
  29. package/dist/components/MultiSelect/MultiSelect.js +1 -1
  30. package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
  31. package/dist/components/MultiSelect/components/MultiSelectHeader.js +4 -2
  32. package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
  33. package/dist/components/MultiSelect/index.js +1 -1
  34. package/dist/components/PageOverlay/PageOverlay.d.ts +25 -0
  35. package/dist/components/PageOverlay/PageOverlay.js +100 -0
  36. package/dist/components/PageOverlay/PageOverlay.js.map +1 -0
  37. package/dist/components/PageOverlay/PageOverlay.stories.d.ts +7 -0
  38. package/dist/components/PageOverlay/PageOverlay.stories.js +167 -0
  39. package/dist/components/PageOverlay/PageOverlay.stories.js.map +1 -0
  40. package/dist/components/PageOverlay/index.d.ts +1 -0
  41. package/dist/components/PageOverlay/index.js +5 -0
  42. package/dist/components/PageOverlay/index.js.map +1 -0
  43. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +26 -24
  44. package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
  45. package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +2 -2
  46. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +18 -16
  47. package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js.map +1 -1
  48. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.d.ts +12 -0
  49. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js +28 -0
  50. package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkFrom.js.map +1 -0
  51. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +49 -68
  52. package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js.map +1 -1
  53. package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
  54. package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +3 -3
  55. package/dist/components/RteEditor/Plugins/ListPlugin/index.js +1 -1
  56. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.d.ts +10 -0
  57. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +25 -0
  58. package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js.map +1 -0
  59. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.d.ts +1 -0
  60. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +29 -0
  61. package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js.map +1 -0
  62. package/dist/components/RteEditor/Plugins/TablePlugin/index.d.ts +1 -0
  63. package/dist/components/RteEditor/Plugins/TablePlugin/index.js +5 -0
  64. package/dist/components/RteEditor/Plugins/TablePlugin/index.js.map +1 -0
  65. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +26 -24
  66. package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -1
  67. package/dist/components/RteEditor/Plugins/index.d.ts +1 -0
  68. package/dist/components/RteEditor/Plugins/index.js +6 -4
  69. package/dist/components/RteEditor/Plugins/index.js.map +1 -1
  70. package/dist/components/RteEditor/RteEditor.js +559 -774
  71. package/dist/components/RteEditor/RteEditor.js.map +1 -1
  72. package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +1 -0
  73. package/dist/components/RteEditor/UvaTheme/UvaTheme.js +5 -4
  74. package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -1
  75. package/dist/components/RteEditor/hooks/useFlyout.d.ts +1 -0
  76. package/dist/components/RteEditor/hooks/useFlyout.js +18 -36
  77. package/dist/components/RteEditor/hooks/useFlyout.js.map +1 -1
  78. package/dist/components/Sortable/Sortable.d.ts +16 -0
  79. package/dist/components/Sortable/Sortable.js +27 -0
  80. package/dist/components/Sortable/Sortable.js.map +1 -0
  81. package/dist/components/Sortable/Sortable.stories.d.ts +7 -0
  82. package/dist/components/Sortable/Sortable.stories.js +53 -0
  83. package/dist/components/Sortable/Sortable.stories.js.map +1 -0
  84. package/dist/components/Sortable/SortableProvider.d.ts +23 -0
  85. package/dist/components/Sortable/SortableProvider.js +10 -0
  86. package/dist/components/Sortable/SortableProvider.js.map +1 -0
  87. package/dist/components/Sortable/actions.d.ts +49 -0
  88. package/dist/components/Sortable/actions.js +33 -0
  89. package/dist/components/Sortable/actions.js.map +1 -0
  90. package/dist/components/Sortable/components/SortableContainer.d.ts +7 -0
  91. package/dist/components/Sortable/components/SortableContainer.js +9 -0
  92. package/dist/components/Sortable/components/SortableContainer.js.map +1 -0
  93. package/dist/components/Sortable/components/SortableHandle.d.ts +4 -0
  94. package/dist/components/Sortable/components/SortableHandle.js +11 -0
  95. package/dist/components/Sortable/components/SortableHandle.js.map +1 -0
  96. package/dist/components/Sortable/components/SortableItem.d.ts +9 -0
  97. package/dist/components/Sortable/components/SortableItem.js +113 -0
  98. package/dist/components/Sortable/components/SortableItem.js.map +1 -0
  99. package/dist/components/Sortable/constants.d.ts +10 -0
  100. package/dist/components/Sortable/constants.js +14 -0
  101. package/dist/components/Sortable/constants.js.map +1 -0
  102. package/dist/components/Sortable/index.d.ts +1 -0
  103. package/dist/components/Sortable/index.js +5 -0
  104. package/dist/components/Sortable/index.js.map +1 -0
  105. package/dist/components/Sortable/sortableReducer.d.ts +24 -0
  106. package/dist/components/Sortable/sortableReducer.js +92 -0
  107. package/dist/components/Sortable/sortableReducer.js.map +1 -0
  108. package/dist/components/hooks/useOnClickOuside.d.ts +4 -0
  109. package/dist/components/hooks/useOnClickOuside.js +15 -0
  110. package/dist/components/hooks/useOnClickOuside.js.map +1 -0
  111. package/dist/components/index.d.ts +2 -0
  112. package/dist/components/index.js +45 -41
  113. package/dist/components/index.js.map +1 -1
  114. package/dist/{helpers-TSjo3aAv.js → helpers-CJF7fErD.js} +3 -3
  115. package/dist/{helpers-TSjo3aAv.js.map → helpers-CJF7fErD.js.map} +1 -1
  116. package/dist/index.js +45 -41
  117. package/dist/index.js.map +1 -1
  118. package/package.json +3 -3
  119. package/dist/Lexical.prod-DNRTKPfN.js.map +0 -1
  120. package/dist/LexicalUtils.prod-D_BPEjfg.js +0 -64
  121. package/dist/MultiSelect-D1FnMER4.js +0 -53
  122. package/dist/MultiSelect-D1FnMER4.js.map +0 -1
  123. package/dist/RteEditor.module-BjGyWKhW.js +0 -26
  124. package/dist/RteEditor.module-BjGyWKhW.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { useState as d, useRef as g } from "react";
3
3
  import { fn as l } from "../../index-MQ0yPLdl.js";
4
- import { InputField as a } from "./InputField.js";
4
+ import { InputField as o } from "./InputField.js";
5
5
  import { Container as u } from "../../storyComponents/Container/Container.js";
6
6
  import { Icon as f } from "../Icon/Icon.js";
7
7
  import "../Buttons/Button.js";
@@ -15,9 +15,11 @@ import "../GridRow/GridRow.js";
15
15
  import "../IconButton/IconButton.js";
16
16
  import "../Input/Input.js";
17
17
  import "react-router-dom";
18
- import "../../MultiSelect-D1FnMER4.js";
18
+ import "../../AddTableFrom-CwnPli3F.js";
19
19
  import "../SelectListbox/SelectListbox.js";
20
20
  import "../SelectListbox/SelectProvider.js";
21
+ import "../Sortable/components/SortableItem.js";
22
+ import "../../SortableProvider-Z0e0qeQT.js";
21
23
  const C = `
22
24
  // Has all HTMLInputElement props available except "className" and "style"
23
25
  <InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}
@@ -25,9 +27,9 @@ const C = `
25
27
  `, h = (t) => {
26
28
  const e = t.variant ?? [];
27
29
  return { ...t, variant: e.toString() };
28
- }, B = {
30
+ }, G = {
29
31
  title: "Atoms/InputField",
30
- component: a,
32
+ component: o,
31
33
  argTypes: {
32
34
  variant: {
33
35
  options: ["large"],
@@ -47,17 +49,17 @@ const C = `
47
49
  }
48
50
  },
49
51
  parameters: {
50
- inspectComponent: a,
52
+ inspectComponent: o,
51
53
  codeString: C
52
54
  }
53
- }, o = (t) => {
55
+ }, a = (t) => {
54
56
  const [e, i] = d(""), p = g(null), s = (c) => {
55
57
  i(c.target.value), l()("handleChange");
56
58
  }, m = () => {
57
59
  i(""), l()("handleClear");
58
60
  };
59
61
  return /* @__PURE__ */ r(u, { children: /* @__PURE__ */ r(
60
- a,
62
+ o,
61
63
  {
62
64
  ...h(t),
63
65
  value: e,
@@ -70,16 +72,16 @@ const C = `
70
72
  type: "text",
71
73
  variant: void 0,
72
74
  id: "4f9ca77d"
73
- }, v = o.bind({});
75
+ }, v = a.bind({});
74
76
  v.args = {
75
77
  ...n
76
78
  };
77
- const b = o.bind({});
79
+ const b = a.bind({});
78
80
  b.args = {
79
81
  ...n,
80
82
  clearTrigger: "Clear"
81
83
  };
82
- const y = o.bind({});
84
+ const y = a.bind({});
83
85
  y.args = {
84
86
  ...n,
85
87
  clearTrigger: /* @__PURE__ */ r(f, { name: "Cross" })
@@ -88,6 +90,6 @@ export {
88
90
  v as InputFieldExample,
89
91
  y as WithIconClearTrigger,
90
92
  b as WithStringClearTrigger,
91
- B as default
93
+ G as default
92
94
  };
93
95
  //# sourceMappingURL=InputField.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputField.stories.js","sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport { fn } from '@storybook/test';\n\nimport type { ChangeEvent } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport { InputField } from './InputField';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon } from 'components';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}\n value={value} type={type} clearTrigger={clearTrigger} />\n`;\n\nconst transformArgs = (args: InputFieldProps) => {\n // args.variant is provided as an array because the control type is set to a checkbox. So this transforms the selected value into its proper value: a string\n const variantArray = (args.variant as unknown as string[]) ?? [];\n return { ...args, ...{ variant: variantArray.toString() } } as InputFieldProps;\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/InputField',\n component: InputField,\n argTypes: {\n variant: {\n options: ['large'],\n control: 'check',\n },\n type: {\n control: 'radio',\n options: ['text', 'password', 'email'],\n },\n id: {\n control: 'text',\n },\n autoComplete: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: InputField,\n codeString: codeString,\n },\n} as Meta<InputFieldProps>;\n\nconst Template: StoryFn<InputFieldProps> = (args) => {\n const [inputValue, setInputValue] = useState<InputFieldProps['value']>('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setInputValue(event.target.value);\n fn()('handleChange');\n };\n\n const handleClear = () => {\n setInputValue('');\n fn()('handleClear');\n };\n\n return (\n <Container>\n <InputField\n {...transformArgs(args)}\n value={inputValue}\n onChange={handleChange}\n onClear={handleClear}\n ref={inputRef}\n />\n </Container>\n );\n};\n\nconst defaultArgs: Partial<InputFieldProps> = {\n type: 'text',\n variant: undefined,\n id: '4f9ca77d',\n};\n\nexport const InputFieldExample = Template.bind({});\nInputFieldExample.args = {\n ...defaultArgs,\n};\n\nexport const WithStringClearTrigger = Template.bind({});\nWithStringClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: 'Clear',\n};\n\nexport const WithIconClearTrigger = Template.bind({});\nWithIconClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: <Icon name=\"Cross\" />,\n};\n"],"names":["codeString","transformArgs","args","variantArray","InputField_stories","InputField","Template","inputValue","setInputValue","useState","inputRef","useRef","handleChange","event","fn","handleClear","Container","jsx","defaultArgs","InputFieldExample","WithStringClearTrigger","WithIconClearTrigger","Icon"],"mappings":";;;;;;;;;;;;;;;;;;;;AAYA,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA,GAMbC,IAAgB,CAACC,MAA0B;AAEzC,QAAAC,IAAgBD,EAAK,WAAmC;AACvD,SAAA,EAAE,GAAGA,GAAW,SAAS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AS,KAAK,EAAE;AACpDe,EAAqB,OAAO;AAAA,EAC1B,GAAGH;AAAA,EACH,cAAc,gBAAAD,EAACK,GAAK,EAAA,MAAK,QAAQ,CAAA;AACnC;"}
1
+ {"version":3,"file":"InputField.stories.js","sources":["../../../src/components/InputField/InputField.stories.tsx"],"sourcesContent":["import { useRef, useState } from 'react';\nimport { fn } from '@storybook/test';\n\nimport type { ChangeEvent } from 'react';\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { InputFieldProps } from './InputField';\n\nimport { InputField } from './InputField';\n\nimport { Container } from 'storyComponents/Container';\nimport { Icon } from 'components';\n\nconst codeString = `\n// Has all HTMLInputElement props available except \"className\" and \"style\" \n<InputField aria-labelledby={aria-labelledby} id={id} onChange={onChangeFunction}\n value={value} type={type} clearTrigger={clearTrigger} />\n`;\n\nconst transformArgs = (args: InputFieldProps) => {\n // args.variant is provided as an array because the control type is set to a checkbox. So this transforms the selected value into its proper value: a string\n const variantArray = (args.variant as unknown as string[]) ?? [];\n return { ...args, ...{ variant: variantArray.toString() } } as InputFieldProps;\n};\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Atoms/InputField',\n component: InputField,\n argTypes: {\n variant: {\n options: ['large'],\n control: 'check',\n },\n type: {\n control: 'radio',\n options: ['text', 'password', 'email'],\n },\n id: {\n control: 'text',\n },\n autoComplete: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: InputField,\n codeString: codeString,\n },\n} as Meta<InputFieldProps>;\n\nconst Template: StoryFn<InputFieldProps> = (args) => {\n const [inputValue, setInputValue] = useState<InputFieldProps['value']>('');\n const inputRef = useRef<HTMLInputElement>(null);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setInputValue(event.target.value);\n fn()('handleChange');\n };\n\n const handleClear = () => {\n setInputValue('');\n fn()('handleClear');\n };\n\n return (\n <Container>\n <InputField\n {...transformArgs(args)}\n value={inputValue}\n onChange={handleChange}\n onClear={handleClear}\n ref={inputRef}\n />\n </Container>\n );\n};\n\nconst defaultArgs: Partial<InputFieldProps> = {\n type: 'text',\n variant: undefined,\n id: '4f9ca77d',\n};\n\nexport const InputFieldExample = Template.bind({});\nInputFieldExample.args = {\n ...defaultArgs,\n};\n\nexport const WithStringClearTrigger = Template.bind({});\nWithStringClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: 'Clear',\n};\n\nexport const WithIconClearTrigger = Template.bind({});\nWithIconClearTrigger.args = {\n ...defaultArgs,\n clearTrigger: <Icon name=\"Cross\" />,\n};\n"],"names":["codeString","transformArgs","args","variantArray","InputField_stories","InputField","Template","inputValue","setInputValue","useState","inputRef","useRef","handleChange","event","fn","handleClear","Container","jsx","defaultArgs","InputFieldExample","WithStringClearTrigger","WithIconClearTrigger","Icon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAYA,MAAMA,IAAa;AAAA;AAAA;AAAA;AAAA,GAMbC,IAAgB,CAACC,MAA0B;AAEzC,QAAAC,IAAgBD,EAAK,WAAmC;AACvD,SAAA,EAAE,GAAGA,GAAW,SAASC,EAAa,SAAS;AACxD,GAGeC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS,CAAC,OAAO;AAAA,MACjB,SAAS;AAAA,IACX;AAAA,IACA,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS,CAAC,QAAQ,YAAY,OAAO;AAAA,IACvC;AAAA,IACA,IAAI;AAAA,MACF,SAAS;AAAA,IACX;AAAA,IACA,cAAc;AAAA,MACZ,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAL;AAAA,EACF;AACF,GAEMM,IAAqC,CAACJ,MAAS;AACnD,QAAM,CAACK,GAAYC,CAAa,IAAIC,EAAmC,EAAE,GACnEC,IAAWC,EAAyB,IAAI,GAExCC,IAAe,CAACC,MAAyC;AAC/C,IAAAL,EAAAK,EAAM,OAAO,KAAK,GAChCC,EAAA,EAAK,cAAc;AAAA,EAAA,GAGfC,IAAc,MAAM;AACxB,IAAAP,EAAc,EAAE,GAChBM,EAAA,EAAK,aAAa;AAAA,EAAA;AAGpB,2BACGE,GACC,EAAA,UAAA,gBAAAC;AAAA,IAACZ;AAAA,IAAA;AAAA,MACE,GAAGJ,EAAcC,CAAI;AAAA,MACtB,OAAOK;AAAA,MACP,UAAUK;AAAA,MACV,SAASG;AAAA,MACT,KAAKL;AAAA,IAAA;AAAA,EAET,EAAA,CAAA;AAEJ,GAEMQ,IAAwC;AAAA,EAC5C,MAAM;AAAA,EACN,SAAS;AAAA,EACT,IAAI;AACN,GAEaC,IAAoBb,EAAS,KAAK,EAAE;AACjDa,EAAkB,OAAO;AAAA,EACvB,GAAGD;AACL;AAEO,MAAME,IAAyBd,EAAS,KAAK,EAAE;AACtDc,EAAuB,OAAO;AAAA,EAC5B,GAAGF;AAAA,EACH,cAAc;AAChB;AAEO,MAAMG,IAAuBf,EAAS,KAAK,EAAE;AACpDe,EAAqB,OAAO;AAAA,EAC1B,GAAGH;AAAA,EACH,cAAc,gBAAAD,EAACK,GAAK,EAAA,MAAK,QAAQ,CAAA;AACnC;"}
@@ -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 "../../MultiSelect-D1FnMER4.js";
4
+ import { M as p } from "../../AddTableFrom-CwnPli3F.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-MQ0yPLdl.js";
3
3
  import { useState as p } from "react";
4
- import { M as e } from "../../MultiSelect-D1FnMER4.js";
4
+ import { M as e } from "../../AddTableFrom-CwnPli3F.js";
5
5
  import { Container as M } from "../../storyComponents/Container/Container.js";
6
6
  const C = `
7
7
  // MultiSelectHeader can be added optionally
@@ -14,10 +14,12 @@ import "../../IconButton/IconButton.js";
14
14
  import "../../Input/Input.js";
15
15
  import "../../InputField/InputField.js";
16
16
  import "react-router-dom";
17
- import { a as h } from "../../../MultiSelect-D1FnMER4.js";
17
+ import { b as k } from "../../../AddTableFrom-CwnPli3F.js";
18
18
  import "../../SelectListbox/SelectListbox.js";
19
19
  import "../../SelectListbox/SelectProvider.js";
20
+ import "../../Sortable/components/SortableItem.js";
21
+ import "../../../SortableProvider-Z0e0qeQT.js";
20
22
  export {
21
- h as MultiSelectHeader
23
+ k as MultiSelectHeader
22
24
  };
23
25
  //# sourceMappingURL=MultiSelectHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"MultiSelectHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { M as l } from "../../MultiSelect-D1FnMER4.js";
1
+ import { M as l } from "../../AddTableFrom-CwnPli3F.js";
2
2
  export {
3
3
  l as MultiSelect
4
4
  };
@@ -0,0 +1,25 @@
1
+ import { FormHTMLAttributes, PropsWithChildren, ReactNode } from 'react';
2
+ export interface PageOverlayProps {
3
+ /** The buttons of the dialog. */
4
+ buttons?: ReactNode;
5
+ /** `true` to show a spinner, if the contents of the dialog is lazy loaded; otherwise, `false`. */
6
+ isLoading?: boolean;
7
+ /** The `aria-valuetext` value of the [Spinner](/story/atoms-spinner--spinner-example) component. Used together with `isLoading`. */
8
+ spinnerAriaValueText?: string;
9
+ /** The `aria-label` value of the [OverlayCloseButton](/story/atoms-overlayclosebutton--overlay-close-button-example) component. */
10
+ closeButtonAriaValueText?: string;
11
+ /** `true` to render the dialog opened; otherwise, `false`. */
12
+ isOpen: boolean;
13
+ /** `true` to disable form validation; otherwise, `false`. */
14
+ noValidate?: boolean;
15
+ /** The callback function that is invoked when the dialog is closed. */
16
+ onClose?(): void;
17
+ /** The callback function that is invoked when the form is submitted. */
18
+ onSubmit?: FormHTMLAttributes<HTMLFormElement>['onSubmit'];
19
+ /** The title of the dialog. */
20
+ title?: string;
21
+ /** The contents of the dialog header. */
22
+ headerContent?: ReactNode;
23
+ }
24
+ /** Represents a component for a modal dialog. */
25
+ export declare function PageOverlay({ buttons, children, isLoading, spinnerAriaValueText, closeButtonAriaValueText, isOpen, noValidate, onClose, onSubmit, title, headerContent, }: PropsWithChildren<PageOverlayProps>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,100 @@
1
+ import { jsx as e, Fragment as m, jsxs as i } from "react/jsx-runtime";
2
+ import { useDialog as j } from "@react-aria/dialog";
3
+ import { FocusScope as k } from "@react-aria/focus";
4
+ import { useModal as A, useOverlay as C, usePreventScroll as K, OverlayContainer as M } from "@react-aria/overlays";
5
+ import { c as d } from "../../clsx-OuTLNxxd.js";
6
+ import { useRef as y, useState as f, useEffect as U } from "react";
7
+ import { OverlayCloseButton as V } from "../OverlayCloseButton/OverlayCloseButton.js";
8
+ import { Spinner as q } from "../Spinner/Spinner.js";
9
+ import '../../assets/PageOverlay.css';const o = {
10
+ "page-overlay__container": "_page-overlay__container_1et9u_1",
11
+ "page-overlay": "_page-overlay_1et9u_1",
12
+ "page-overlay__content": "_page-overlay__content_1et9u_20",
13
+ "page-overlay__children": "_page-overlay__children_1et9u_32",
14
+ "page-overlay__title": "_page-overlay__title_1et9u_36",
15
+ "page-overlay__buttons-bar": "_page-overlay__buttons-bar_1et9u_43",
16
+ "page-overlay__buttons-bar--shadow": "_page-overlay__buttons-bar--shadow_1et9u_69",
17
+ "page-overlay__close": "_page-overlay__close_1et9u_73"
18
+ };
19
+ function $({
20
+ buttons: t,
21
+ children: h,
22
+ isLoading: b,
23
+ spinnerAriaValueText: S = "Loading",
24
+ closeButtonAriaValueText: w = "Close",
25
+ isOpen: a,
26
+ noValidate: N = !1,
27
+ onClose: _,
28
+ onSubmit: P,
29
+ title: s,
30
+ headerContent: n
31
+ }) {
32
+ const c = y(null), u = y(null), [T, E] = f(!1), [x, L] = f(!1), { dialogProps: F, titleProps: H } = j({ role: "dialog" }, c), { modalProps: z } = A({ isDisabled: !a }), { overlayProps: B } = C({ isOpen: a, onClose: _ }, c);
33
+ K({ isDisabled: !a }), U(() => {
34
+ const r = u.current;
35
+ if (!r) return;
36
+ function p() {
37
+ const v = r.scrollHeight, g = r.clientHeight, R = r.scrollTop;
38
+ E(v > g), L(R + g >= v);
39
+ }
40
+ function l() {
41
+ p();
42
+ }
43
+ r.addEventListener("scroll", l), window.addEventListener("resize", l);
44
+ const I = setTimeout(() => {
45
+ p();
46
+ }, 0);
47
+ return () => {
48
+ r.removeEventListener("scroll", l), window.removeEventListener("resize", l), clearTimeout(I);
49
+ };
50
+ }, [a, n]);
51
+ function D(r) {
52
+ r.stopPropagation();
53
+ }
54
+ return a ? /* @__PURE__ */ e(M, { className: o["page-overlay__container"], children: b ? /* @__PURE__ */ e(q, { ariaValueText: S }) : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e(k, { autoFocus: !0, contain: !0, restoreFocus: !0, children: /* @__PURE__ */ i(
55
+ "div",
56
+ {
57
+ ...F,
58
+ ...z,
59
+ ...B,
60
+ className: o["page-overlay"],
61
+ onKeyUp: D,
62
+ role: "presentation",
63
+ ref: c,
64
+ children: [
65
+ (s || n) && /* @__PURE__ */ i(m, { children: [
66
+ s && /* @__PURE__ */ e("h1", { ...H, className: o["page-overlay__title"], children: s }),
67
+ n,
68
+ /* @__PURE__ */ e("span", { className: o["page-overlay__close"], children: /* @__PURE__ */ e(V, { "aria-label": w, onClick: _ }) })
69
+ ] }),
70
+ /* @__PURE__ */ i(
71
+ "form",
72
+ {
73
+ className: d(o["page-overlay__content"], {
74
+ [o["page-overlay--content-with-buttons"]]: t
75
+ }),
76
+ onSubmit: P,
77
+ noValidate: N,
78
+ ref: u,
79
+ children: [
80
+ /* @__PURE__ */ e("div", { className: o["page-overlay__children"], children: h }),
81
+ t && /* @__PURE__ */ e(
82
+ "div",
83
+ {
84
+ className: d(o["page-overlay__buttons-bar"], {
85
+ [o["page-overlay__buttons-bar--shadow"]]: T && !x
86
+ }),
87
+ children: t
88
+ }
89
+ )
90
+ ]
91
+ }
92
+ )
93
+ ]
94
+ }
95
+ ) }) }) }) : null;
96
+ }
97
+ export {
98
+ $ as PageOverlay
99
+ };
100
+ //# sourceMappingURL=PageOverlay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageOverlay.js","sources":["../../../src/components/PageOverlay/PageOverlay.tsx"],"sourcesContent":["import { useDialog } from '@react-aria/dialog';\nimport { FocusScope } from '@react-aria/focus';\nimport { OverlayContainer, useModal, useOverlay, usePreventScroll } from '@react-aria/overlays';\nimport classNames from 'clsx';\nimport { useEffect, useRef, useState } from 'react';\n\nimport type { FormHTMLAttributes, KeyboardEvent, PropsWithChildren, ReactNode } from 'react';\n\nimport styles from './PageOverlay.module.css';\n\nimport { OverlayCloseButton } from 'components/OverlayCloseButton';\nimport { Spinner } from 'components/Spinner';\n\nexport interface PageOverlayProps {\n /** The buttons of the dialog. */\n buttons?: ReactNode;\n /** `true` to show a spinner, if the contents of the dialog is lazy loaded; otherwise, `false`. */\n isLoading?: boolean;\n /** The `aria-valuetext` value of the [Spinner](/story/atoms-spinner--spinner-example) component. Used together with `isLoading`. */\n spinnerAriaValueText?: string;\n /** The `aria-label` value of the [OverlayCloseButton](/story/atoms-overlayclosebutton--overlay-close-button-example) component. */\n closeButtonAriaValueText?: string;\n /** `true` to render the dialog opened; otherwise, `false`. */\n isOpen: boolean;\n /** `true` to disable form validation; otherwise, `false`. */\n noValidate?: boolean;\n /** The callback function that is invoked when the dialog is closed. */\n onClose?(): void;\n /** The callback function that is invoked when the form is submitted. */\n onSubmit?: FormHTMLAttributes<HTMLFormElement>['onSubmit'];\n /** The title of the dialog. */\n title?: string;\n /** The contents of the dialog header. */\n headerContent?: ReactNode;\n}\n\n/** Represents a component for a modal dialog. */\nexport function PageOverlay({\n buttons,\n children,\n isLoading,\n spinnerAriaValueText = 'Loading',\n closeButtonAriaValueText = 'Close',\n isOpen,\n noValidate = false,\n onClose,\n onSubmit,\n title,\n headerContent,\n}: PropsWithChildren<PageOverlayProps>) {\n const ref = useRef<HTMLDivElement>(null);\n const formRef = useRef<HTMLFormElement>(null);\n const [isScrollable, setIsScrollable] = useState(false);\n const [isScrolledToBottom, setIsScrolledToBottom] = useState(false);\n\n const { dialogProps, titleProps } = useDialog({ role: 'dialog' }, ref);\n const { modalProps } = useModal({ isDisabled: !isOpen });\n const { overlayProps } = useOverlay({ isOpen, onClose }, ref);\n\n usePreventScroll({ isDisabled: !isOpen });\n\n useEffect(() => {\n const formElement = formRef.current;\n\n if (!formElement) return;\n\n function checkScrollable() {\n const scrollHeight = formElement!.scrollHeight;\n const clientHeight = formElement!.clientHeight;\n const scrollTop = formElement!.scrollTop;\n\n setIsScrollable(scrollHeight > clientHeight);\n setIsScrolledToBottom(scrollTop + clientHeight >= scrollHeight);\n }\n\n function handleScrollAndResize() {\n checkScrollable();\n }\n\n formElement.addEventListener('scroll', handleScrollAndResize);\n window.addEventListener('resize', handleScrollAndResize);\n\n const timeoutId = setTimeout(() => {\n checkScrollable();\n }, 0);\n\n return () => {\n formElement.removeEventListener('scroll', handleScrollAndResize);\n\n window.removeEventListener('resize', handleScrollAndResize);\n clearTimeout(timeoutId);\n };\n }, [isOpen, headerContent]);\n\n function onKeyUp(event: KeyboardEvent) {\n event.stopPropagation();\n }\n\n if (!isOpen) return null;\n\n return (\n <OverlayContainer className={styles['page-overlay__container']}>\n {isLoading ? (\n <Spinner ariaValueText={spinnerAriaValueText} />\n ) : (\n <>\n {/* eslint-disable-next-line jsx-a11y/no-autofocus */}\n <FocusScope autoFocus contain restoreFocus>\n <div\n {...dialogProps}\n {...modalProps}\n {...overlayProps}\n className={styles['page-overlay']}\n onKeyUp={onKeyUp}\n role=\"presentation\"\n ref={ref}\n >\n {(title || headerContent) && (\n <>\n {title && (\n <h1 {...titleProps} className={styles['page-overlay__title']}>\n {title}\n </h1>\n )}\n {headerContent}\n {\n <span className={styles['page-overlay__close']}>\n <OverlayCloseButton aria-label={closeButtonAriaValueText} onClick={onClose} />\n </span>\n }\n </>\n )}\n <form\n className={classNames(styles['page-overlay__content'], {\n [styles['page-overlay--content-with-buttons']]: buttons,\n })}\n onSubmit={onSubmit}\n noValidate={noValidate}\n ref={formRef}\n >\n <div className={styles['page-overlay__children']}>{children}</div>\n {buttons && (\n <div\n className={classNames(styles['page-overlay__buttons-bar'], {\n [styles['page-overlay__buttons-bar--shadow']]: isScrollable && !isScrolledToBottom,\n })}\n >\n {buttons}\n </div>\n )}\n </form>\n </div>\n </FocusScope>\n </>\n )}\n </OverlayContainer>\n );\n}\n"],"names":["PageOverlay","buttons","children","isLoading","spinnerAriaValueText","closeButtonAriaValueText","isOpen","noValidate","onClose","onSubmit","title","headerContent","ref","useRef","formRef","isScrollable","setIsScrollable","useState","isScrolledToBottom","setIsScrolledToBottom","dialogProps","titleProps","useDialog","modalProps","useModal","overlayProps","useOverlay","usePreventScroll","useEffect","formElement","checkScrollable","scrollHeight","clientHeight","scrollTop","handleScrollAndResize","timeoutId","onKeyUp","event","jsx","OverlayContainer","styles","Spinner","Fragment","FocusScope","jsxs","OverlayCloseButton","classNames"],"mappings":";;;;;;;;;;;;;;;;;;AAqCO,SAASA,EAAY;AAAA,EAC1B,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC;AAAA,EACA,sBAAAC,IAAuB;AAAA,EACvB,0BAAAC,IAA2B;AAAA,EAC3B,QAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,SAAAC;AAAA,EACA,UAAAC;AAAA,EACA,OAAAC;AAAA,EACA,eAAAC;AACF,GAAwC;AAChC,QAAAC,IAAMC,EAAuB,IAAI,GACjCC,IAAUD,EAAwB,IAAI,GACtC,CAACE,GAAcC,CAAe,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Props } from './PageOverlay';
3
+ declare const _default: Meta<PageOverlayProps>;
4
+ export default _default;
5
+ export declare const PageOverlayExample: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PageOverlayProps>;
6
+ export declare const Loading: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PageOverlayProps>;
7
+ export declare const WithLongComplexContent: import('@storybook/csf').AnnotatedStoryFn<import('@storybook/react').ReactRenderer, PageOverlayProps>;
@@ -0,0 +1,167 @@
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { OverlayProvider as P } from "@react-aria/overlays";
3
+ import { useState as N, useRef as V, useEffect as j, useCallback as f } from "react";
4
+ import { PageOverlay as v } from "./PageOverlay.js";
5
+ import { Button as l } from "../Buttons/Button.js";
6
+ import "../Buttons/LinkButton.js";
7
+ import "@react-aria/button";
8
+ import { ButtonGroup as O } from "../ButtonGroup/ButtonGroup.js";
9
+ import { InputField as M } from "../InputField/InputField.js";
10
+ import { GridRow as b } from "../GridRow/GridRow.js";
11
+ import { Repeater as T } from "../Repeater/Repeater.js";
12
+ function I(t, s, i) {
13
+ let [n, c] = N(t || s), m = V(t !== void 0), a = t !== void 0;
14
+ j(() => {
15
+ let u = m.current;
16
+ u !== a && console.warn(`WARN: A component changed from ${u ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}.`), m.current = a;
17
+ }, [
18
+ a
19
+ ]);
20
+ let r = a ? t : n, y = f((u, ...h) => {
21
+ let q = (d, ...p) => {
22
+ i && (Object.is(r, d) || i(d, ...p)), a || (r = d);
23
+ };
24
+ typeof u == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), c((p, ...A) => {
25
+ let C = u(a ? r : p, ...A);
26
+ return q(C, ...h), a ? p : C;
27
+ })) : (a || c(u), q(u, ...h));
28
+ }, [
29
+ a,
30
+ r,
31
+ i
32
+ ]);
33
+ return [
34
+ r,
35
+ y
36
+ ];
37
+ }
38
+ function S(t) {
39
+ let [s, i] = I(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
40
+ const n = f(() => {
41
+ i(!0);
42
+ }, [
43
+ i
44
+ ]), c = f(() => {
45
+ i(!1);
46
+ }, [
47
+ i
48
+ ]), m = f(() => {
49
+ i(!s);
50
+ }, [
51
+ i,
52
+ s
53
+ ]);
54
+ return {
55
+ isOpen: s,
56
+ setOpen: i,
57
+ open: n,
58
+ close: c,
59
+ toggle: m
60
+ };
61
+ }
62
+ const k = `
63
+ <PageOverlay isOpen={isOpen} title={title} onClose={onCloseFunction}
64
+ onSubmit={onSubmitFunction} buttons={buttons}> {children} </PageOverlay>
65
+ `, Y = {
66
+ title: "Molecules/PageOverlay",
67
+ component: v,
68
+ argTypes: {
69
+ isOpen: {
70
+ table: {
71
+ disable: !0
72
+ }
73
+ },
74
+ noValidate: {
75
+ control: "boolean"
76
+ },
77
+ onSubmit: {
78
+ table: {
79
+ disable: !0
80
+ }
81
+ },
82
+ onClose: {
83
+ table: {
84
+ disable: !0
85
+ }
86
+ },
87
+ buttons: {
88
+ table: {
89
+ disable: !0
90
+ }
91
+ }
92
+ },
93
+ parameters: {
94
+ inspectComponent: v,
95
+ codeString: k
96
+ }
97
+ }, x = (t) => {
98
+ const { open: s, close: i, isOpen: n } = S({});
99
+ return /* @__PURE__ */ o(P, { children: [
100
+ /* @__PURE__ */ e(l, { variant: "primary", onClick: () => s(), children: "Open PageOverlay" }),
101
+ /* @__PURE__ */ e(
102
+ v,
103
+ {
104
+ ...t,
105
+ isOpen: n,
106
+ buttons: /* @__PURE__ */ o(O, { reversed: !0, children: [
107
+ /* @__PURE__ */ e(l, { variant: "primary", onClick: () => i(), children: "OK" }),
108
+ /* @__PURE__ */ e(l, { variant: "secondary", onClick: () => i(), children: "Cancel" })
109
+ ] }),
110
+ onClose: () => i(),
111
+ children: "Your content goes here"
112
+ }
113
+ )
114
+ ] });
115
+ }, g = {
116
+ title: "Example Title",
117
+ closeButtonAriaValueText: "Close",
118
+ noValidate: !1
119
+ }, $ = x.bind({});
120
+ $.args = {
121
+ ...g
122
+ };
123
+ const F = x.bind({});
124
+ F.args = {
125
+ ...g,
126
+ isLoading: !0,
127
+ spinnerAriaValueText: "Loading"
128
+ };
129
+ const L = (t) => {
130
+ const { open: s, close: i, isOpen: n } = S({});
131
+ return /* @__PURE__ */ o(P, { children: [
132
+ /* @__PURE__ */ e(l, { variant: "primary", onClick: () => s(), children: "Open PageOverlay" }),
133
+ /* @__PURE__ */ e(
134
+ v,
135
+ {
136
+ ...t,
137
+ isOpen: n,
138
+ buttons: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(b.Column, { size: "8", mediumSize: "9", startPositon: "2", mediumStartPosition: "3", children: /* @__PURE__ */ o(O, { reversed: !0, children: [
139
+ /* @__PURE__ */ e(l, { variant: "primary", onClick: () => i(), children: "OK" }),
140
+ /* @__PURE__ */ e(l, { variant: "secondary", onClick: () => i(), children: "Cancel" })
141
+ ] }) }) }),
142
+ onClose: () => i(),
143
+ children: /* @__PURE__ */ e(b, { marginTop: "100", children: /* @__PURE__ */ e(b.Column, { size: "8", mediumSize: "9", startPositon: "2", mediumStartPosition: "3", children: /* @__PURE__ */ o(T, { gap: "100", children: [
144
+ /* @__PURE__ */ e("div", { children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id nulla. Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac erat. Ut fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae; Gijs molestie ante ac magna ornare rhoncus non at quam. Mauris elementum luctus euismod. Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi blandit lacus sit amet dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In nunc tortor, mollis ac molestie dignissim, elementum sed quam. Suspendisse mollis venenatis Laura, pellentesque vestibulum elit consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit augue tristique. Quisque cursus neque vel justo tristique, eget semper turpis elementum. Etiam venenatis mattis sapien ac mattis. Mauris vitae ultrices erat." }),
145
+ /* @__PURE__ */ e("div", { children: "Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat nec. Nam porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus risus. Pien ac diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac euismod non, vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet. Proin semper enim ut sapien tempor, a ornare ipsum faucibus." }),
146
+ /* @__PURE__ */ e(l, { variant: "primary", children: "Test Button" }),
147
+ /* @__PURE__ */ e("div", { children: "Cras bibendum arcu vitae nulla venenatis, at cursus urna dapibus. In hac habitasse platea dictumst. In porttitor at lectus nec rhoncus. In hac habitasse platea dictumst. Sed nec lectus neque. Aliquam erat volutpat. Morbi elit orci, ultricies a porttitor eget, eleifend eu metus. Maarten sollicitudin vitae massa a tempor. Aliquam dignissim metus id sem sollicitudin, eget lacinia nulla imperdiet. Nullam nec vestibulum eros, ut aliquam libero. Nulla hendrerit cursus ante id auctor. Curabitur condimentum malesuada maximus. Aliquam felis diam, gravida nec eleifend quis, placerat et orci." }),
148
+ /* @__PURE__ */ e("div", { children: "Nulla leo ligula, hendrerit vel egestas in, suscipit vitae erat. Vivamus interdum quam lacinia, egestas felis non, volutpat velit. Vestibulum orci diam, tincidunt ac mattis quis, ornare posuere magna. Aliquam erat volutpat. Maecenas facilisis lacus id ante efficitur, non dignissim lorem suscipit. Praesent at posuere velit. Nulla imperdiet, dui rhoncus volutpat feugiat, eros mauris cursus justo, a tincidunt ipsum ipsum eu nisl. Nulla eu dui Thierry. Aliquam vitae risus ut velit fringilla sodales nec id lacus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse ullamcorper purus quis nunc placerat, vel bibendum urna mollis. Nulla facilisi. Phasellus sed erat nec ex ullamcorper viverra. Phasellus convallis nibh sed dolor vulputate convallis. Phasellus ac posuere sapien, et elementum ipsum." }),
149
+ /* @__PURE__ */ e(M, { id: "test-input", placeholder: "Test Input" }),
150
+ /* @__PURE__ */ e("div", { children: "Sed malesuada ut nulla ut maximus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Morten in libero rhoncus, maximus tortor sit amet, molestie ex. Mauris rhoncus et erat dapibus aliquam. Vestibulum placerat quam eget lorem tempor, vel venenatis lorem malesuada. Duis ut venenatis arcu. Cras lacinia mi ac dui sollicitudin semper sit amet eget nisl. Fusce viverra ex eget tortor molestie dictum. Cras ullamcorper faucibus nisi in congue. Sanne in tristique est. Praesent id rhoncus ligula, ut porta dui. Sed tincidunt, mi nec varius auctor, nunc diam venenatis felis, at facilisis tortor sem et magna. Aliquam erat volutpat." }),
151
+ /* @__PURE__ */ e("div", { children: "Proin ipsum ante, auctor id consectetur a, pulvinar id nibh. Phasellus molestie quam eu mi lacinia condimentum. Nullam fermentum id diam eu pharetra. Donec dictum sem vitae Jos scelerisque semper. Suspendisse sed facilisis orci. Sed ut scelerisque odio. Curabitur felis felis, finibus ac orci at, pellentesque efficitur risus. Sed et leo ac orci mollis tincidunt et pulvinar velit. Duis non nibh tincidunt, lacinia urna a, fringilla augue. Benjamin fermentum, massa a mollis cursus, ex dui tincidunt tellus, ut sollicitudin ex neque ac sapien." }),
152
+ /* @__PURE__ */ e("div", { children: "Nunc rhoncus imperdiet leo. Fusce interdum malesuada aliquet. Aenean porttitor, tortor et volutpat blandit, sapien diam scelerisque massa, ac facilisis metus turpis id quam. Donec ac elementum augue, congue pulvinar arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras tempor convallis elit, id vehicula Robin semper nec. Sed ut ultrices nulla. Cras nec dolor justo. Proin mollis mauris ligula, luctus faucibus dolor ultrices ac. Nunc quis mauris fringilla, pellentesque massa nec, dictum metus. Praesent odio ligula, tincidunt ultrices maximus quis, accumsan ut odio. Nullam iaculis molestie nulla quis ultrices. Praesent quam velit, sagittis eget auctor a, dignissim ut massa. Donec mollis at lorem sit amet accumsan. Praesent nec nulla laoreet nunc pretium egestas. Malesuada Wim arcu pharetra, dictum nibh a, facilisis risus." })
153
+ ] }) }) })
154
+ }
155
+ )
156
+ ] });
157
+ }, R = L.bind({});
158
+ R.args = {
159
+ ...g
160
+ };
161
+ export {
162
+ F as Loading,
163
+ $ as PageOverlayExample,
164
+ R as WithLongComplexContent,
165
+ Y as default
166
+ };
167
+ //# sourceMappingURL=PageOverlay.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PageOverlay.stories.js","sources":["../../../node_modules/@react-stately/utils/dist/useControlledState.mjs","../../../node_modules/@react-stately/overlays/dist/useOverlayTriggerState.mjs","../../../src/components/PageOverlay/PageOverlay.stories.tsx"],"sourcesContent":["import {useState as $3whtM$useState, useRef as $3whtM$useRef, useEffect as $3whtM$useEffect, useCallback as $3whtM$useCallback} from \"react\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \nfunction $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, onChange) {\n let [stateValue, setStateValue] = (0, $3whtM$useState)(value || defaultValue);\n let isControlledRef = (0, $3whtM$useRef)(value !== undefined);\n let isControlled = value !== undefined;\n (0, $3whtM$useEffect)(()=>{\n let wasControlled = isControlledRef.current;\n if (wasControlled !== isControlled) console.warn(`WARN: A component changed from ${wasControlled ? 'controlled' : 'uncontrolled'} to ${isControlled ? 'controlled' : 'uncontrolled'}.`);\n isControlledRef.current = isControlled;\n }, [\n isControlled\n ]);\n let currentValue = isControlled ? value : stateValue;\n let setValue = (0, $3whtM$useCallback)((value, ...args)=>{\n let onChangeCaller = (value, ...onChangeArgs)=>{\n if (onChange) {\n if (!Object.is(currentValue, value)) onChange(value, ...onChangeArgs);\n }\n if (!isControlled) // If uncontrolled, mutate the currentValue local variable so that\n // calling setState multiple times with the same value only emits onChange once.\n // We do not use a ref for this because we specifically _do_ want the value to\n // reset every render, and assigning to a ref in render breaks aborted suspended renders.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n currentValue = value;\n };\n if (typeof value === 'function') {\n console.warn('We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320');\n // this supports functional updates https://reactjs.org/docs/hooks-reference.html#functional-updates\n // when someone using useControlledState calls setControlledState(myFunc)\n // this will call our useState setState with a function as well which invokes myFunc and calls onChange with the value from myFunc\n // if we're in an uncontrolled state, then we also return the value of myFunc which to setState looks as though it was just called with myFunc from the beginning\n // otherwise we just return the controlled value, which won't cause a rerender because React knows to bail out when the value is the same\n let updateFunction = (oldValue, ...functionArgs)=>{\n let interceptedValue = value(isControlled ? currentValue : oldValue, ...functionArgs);\n onChangeCaller(interceptedValue, ...args);\n if (!isControlled) return interceptedValue;\n return oldValue;\n };\n setStateValue(updateFunction);\n } else {\n if (!isControlled) setStateValue(value);\n onChangeCaller(value, ...args);\n }\n }, [\n isControlled,\n currentValue,\n onChange\n ]);\n return [\n currentValue,\n setValue\n ];\n}\n\n\nexport {$458b0a5536c1a7cf$export$40bfa8c7b0832715 as useControlledState};\n//# sourceMappingURL=useControlledState.module.js.map\n","import {useCallback as $hnMvi$useCallback} from \"react\";\nimport {useControlledState as $hnMvi$useControlledState} from \"@react-stately/utils\";\n\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */ \n\nfunction $fc909762b330b746$export$61c6a8c84e605fb6(props) {\n let [isOpen, setOpen] = (0, $hnMvi$useControlledState)(props.isOpen, props.defaultOpen || false, props.onOpenChange);\n const open = (0, $hnMvi$useCallback)(()=>{\n setOpen(true);\n }, [\n setOpen\n ]);\n const close = (0, $hnMvi$useCallback)(()=>{\n setOpen(false);\n }, [\n setOpen\n ]);\n const toggle = (0, $hnMvi$useCallback)(()=>{\n setOpen(!isOpen);\n }, [\n setOpen,\n isOpen\n ]);\n return {\n isOpen: isOpen,\n setOpen: setOpen,\n open: open,\n close: close,\n toggle: toggle\n };\n}\n\n\nexport {$fc909762b330b746$export$61c6a8c84e605fb6 as useOverlayTriggerState};\n//# sourceMappingURL=useOverlayTriggerState.module.js.map\n","import { OverlayProvider } from '@react-aria/overlays';\nimport { useOverlayTriggerState } from '@react-stately/overlays';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { PageOverlayProps } from './PageOverlay';\n\nimport { PageOverlay } from './PageOverlay';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\nimport { InputField } from 'components/InputField';\nimport { GridRow } from 'components/GridRow';\nimport { Repeater } from 'components/Repeater';\n\nconst codeString = `\n <PageOverlay isOpen={isOpen} title={title} onClose={onCloseFunction}\n onSubmit={onSubmitFunction} buttons={buttons}> {children} </PageOverlay>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/PageOverlay',\n component: PageOverlay,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n noValidate: {\n control: 'boolean',\n },\n onSubmit: {\n table: {\n disable: true,\n },\n },\n onClose: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: PageOverlay,\n codeString: codeString,\n },\n} as Meta<PageOverlayProps>;\n\nconst Template: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n }\n onClose={() => close()}\n >\n Your content goes here\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nconst defaultArgs: Partial<PageOverlayProps> = {\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n noValidate: false,\n};\n\nexport const PageOverlayExample = Template.bind({});\nPageOverlayExample.args = {\n ...defaultArgs,\n};\n\nexport const Loading = Template.bind({});\nLoading.args = {\n ...defaultArgs,\n isLoading: true,\n spinnerAriaValueText: 'Loading',\n};\n\nconst LongContentTemplate: StoryFn<PageOverlayProps> = (args: PageOverlayProps) => {\n const { open, close, isOpen } = useOverlayTriggerState({});\n return (\n <OverlayProvider>\n <Button variant=\"primary\" onClick={() => open()}>\n Open PageOverlay\n </Button>\n <PageOverlay\n {...args}\n isOpen={isOpen}\n buttons={\n <GridRow>\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <ButtonGroup reversed>\n <Button variant=\"primary\" onClick={() => close()}>\n OK\n </Button>\n <Button variant=\"secondary\" onClick={() => close()}>\n Cancel\n </Button>\n </ButtonGroup>\n </GridRow.Column>\n </GridRow>\n }\n onClose={() => close()}\n >\n <GridRow marginTop=\"100\">\n <GridRow.Column size=\"8\" mediumSize=\"9\" startPositon=\"2\" mediumStartPosition=\"3\">\n <Repeater gap=\"100\">\n <div>\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut ac dui et nibh eleifend ultricies a id\n nulla. Pellentesque eleifend sem a tellus dictum tempus. Proin non leo id risus placerat vulputate at ac\n erat. Ut fringilla imperdiet sollicitudin. Vestibulum ante ipsum primis in faucibus orci luctus et\n ultrices posuere cubilia curae; Gijs molestie ante ac magna ornare rhoncus non at quam. Mauris elementum\n luctus euismod. Pellentesque molestie malesuada purus, sed egestas lacus interdum sit amet. Morbi\n blandit lacus sit amet dictum pulvinar. Ut semper nunc ac enim imperdiet, non interdum diam gravida. In\n nunc tortor, mollis ac molestie dignissim, elementum sed quam. Suspendisse mollis venenatis Laura,\n pellentesque vestibulum elit consequat et. Aliquam fringilla tellus id libero tempus, sit amet suscipit\n augue tristique. Quisque cursus neque vel justo tristique, eget semper turpis elementum. Etiam venenatis\n mattis sapien ac mattis. Mauris vitae ultrices erat.\n </div>\n <div>\n Aliquam facilisis massa sed justo rhoncus bibendum. Sed lobortis urna orci, vitae porta leo placerat\n nec. Nam porta porttitor ornare. Suspendisse vehicula nunc nec egestas finibus. Aliquam non luctus\n risus. Pien ac diam tincidunt, bibendum sem eget, sollicitudin neque. Curabitur mauris risus, feugiat ac\n euismod non, vulputate ac justo. Curabitur pretium vehicula augue, blandit porta odio rutrum sit amet.\n Proin semper enim ut sapien tempor, a ornare ipsum faucibus.\n </div>\n <Button variant=\"primary\">Test Button</Button>\n <div>\n Cras bibendum arcu vitae nulla venenatis, at cursus urna dapibus. In hac habitasse platea dictumst. In\n porttitor at lectus nec rhoncus. In hac habitasse platea dictumst. Sed nec lectus neque. Aliquam erat\n volutpat. Morbi elit orci, ultricies a porttitor eget, eleifend eu metus. Maarten sollicitudin vitae\n massa a tempor. Aliquam dignissim metus id sem sollicitudin, eget lacinia nulla imperdiet. Nullam nec\n vestibulum eros, ut aliquam libero. Nulla hendrerit cursus ante id auctor. Curabitur condimentum\n malesuada maximus. Aliquam felis diam, gravida nec eleifend quis, placerat et orci.\n </div>\n <div>\n Nulla leo ligula, hendrerit vel egestas in, suscipit vitae erat. Vivamus interdum quam lacinia, egestas\n felis non, volutpat velit. Vestibulum orci diam, tincidunt ac mattis quis, ornare posuere magna. Aliquam\n erat volutpat. Maecenas facilisis lacus id ante efficitur, non dignissim lorem suscipit. Praesent at\n posuere velit. Nulla imperdiet, dui rhoncus volutpat feugiat, eros mauris cursus justo, a tincidunt\n ipsum ipsum eu nisl. Nulla eu dui Thierry. Aliquam vitae risus ut velit fringilla sodales nec id lacus.\n Interdum et malesuada fames ac ante ipsum primis in faucibus. Suspendisse ullamcorper purus quis nunc\n placerat, vel bibendum urna mollis. Nulla facilisi. Phasellus sed erat nec ex ullamcorper viverra.\n Phasellus convallis nibh sed dolor vulputate convallis. Phasellus ac posuere sapien, et elementum ipsum.\n </div>\n <InputField id=\"test-input\" placeholder=\"Test Input\" />\n <div>\n Sed malesuada ut nulla ut maximus. Class aptent taciti sociosqu ad litora torquent per conubia nostra,\n per inceptos himenaeos. Morten in libero rhoncus, maximus tortor sit amet, molestie ex. Mauris rhoncus\n et erat dapibus aliquam. Vestibulum placerat quam eget lorem tempor, vel venenatis lorem malesuada. Duis\n ut venenatis arcu. Cras lacinia mi ac dui sollicitudin semper sit amet eget nisl. Fusce viverra ex eget\n tortor molestie dictum. Cras ullamcorper faucibus nisi in congue. Sanne in tristique est. Praesent id\n rhoncus ligula, ut porta dui. Sed tincidunt, mi nec varius auctor, nunc diam venenatis felis, at\n facilisis tortor sem et magna. Aliquam erat volutpat.\n </div>\n <div>\n Proin ipsum ante, auctor id consectetur a, pulvinar id nibh. Phasellus molestie quam eu mi lacinia\n condimentum. Nullam fermentum id diam eu pharetra. Donec dictum sem vitae Jos scelerisque semper.\n Suspendisse sed facilisis orci. Sed ut scelerisque odio. Curabitur felis felis, finibus ac orci at,\n pellentesque efficitur risus. Sed et leo ac orci mollis tincidunt et pulvinar velit. Duis non nibh\n tincidunt, lacinia urna a, fringilla augue. Benjamin fermentum, massa a mollis cursus, ex dui tincidunt\n tellus, ut sollicitudin ex neque ac sapien.\n </div>\n <div>\n Nunc rhoncus imperdiet leo. Fusce interdum malesuada aliquet. Aenean porttitor, tortor et volutpat\n blandit, sapien diam scelerisque massa, ac facilisis metus turpis id quam. Donec ac elementum augue,\n congue pulvinar arcu. Interdum et malesuada fames ac ante ipsum primis in faucibus. Cras tempor\n convallis elit, id vehicula Robin semper nec. Sed ut ultrices nulla. Cras nec dolor justo. Proin mollis\n mauris ligula, luctus faucibus dolor ultrices ac. Nunc quis mauris fringilla, pellentesque massa nec,\n dictum metus. Praesent odio ligula, tincidunt ultrices maximus quis, accumsan ut odio. Nullam iaculis\n molestie nulla quis ultrices. Praesent quam velit, sagittis eget auctor a, dignissim ut massa. Donec\n mollis at lorem sit amet accumsan. Praesent nec nulla laoreet nunc pretium egestas. Malesuada Wim arcu\n pharetra, dictum nibh a, facilisis risus.\n </div>\n </Repeater>\n </GridRow.Column>\n </GridRow>\n </PageOverlay>\n </OverlayProvider>\n );\n};\n\nexport const WithLongComplexContent = LongContentTemplate.bind({});\nWithLongComplexContent.args = {\n ...defaultArgs,\n};\n"],"names":["$458b0a5536c1a7cf$export$40bfa8c7b0832715","value","defaultValue","onChange","stateValue","setStateValue","$3whtM$useState","isControlledRef","$3whtM$useRef","isControlled","$3whtM$useEffect","wasControlled","currentValue","setValue","$3whtM$useCallback","args","onChangeCaller","onChangeArgs","oldValue","functionArgs","interceptedValue","$fc909762b330b746$export$61c6a8c84e605fb6","props","isOpen","setOpen","$hnMvi$useControlledState","open","$hnMvi$useCallback","close","toggle","codeString","PageOverlay_stories","PageOverlay","Template","useOverlayTriggerState","OverlayProvider","jsx","Button","jsxs","ButtonGroup","defaultArgs","PageOverlayExample","Loading","LongContentTemplate","GridRow","Repeater","InputField","WithLongComplexContent"],"mappings":";;;;;;;;;;;AAaA,SAASA,EAA0CC,GAAOC,GAAcC,GAAU;AAC9E,MAAI,CAACC,GAAYC,CAAa,IAAQC,EAAiBL,KAASC,CAAY,GACxEK,IAAsBC,EAAeP,MAAU,MAAS,GACxDQ,IAAeR,MAAU;AAC7B,EAAIS,EAAkB,MAAI;AACtB,QA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AO,GAAA,EAAS,KAAI,OACZ,UAAA;AAAA,UAAA,gBAAAT,EAAC,SAAI,UAWL,68BAAA,CAAA;AAAA,UACA,gBAAAA,EAAC,SAAI,UAML,udAAA,CAAA;AAAA,UACC,gBAAAA,EAAAC,GAAA,EAAO,SAAQ,WAAU,UAAW,eAAA;AAAA,UACrC,gBAAAD,EAAC,SAAI,UAOL,+kBAAA,CAAA;AAAA,UACA,gBAAAA,EAAC,SAAI,UASL,szBAAA,CAAA;AAAA,UACC,gBAAAA,EAAAU,GAAA,EAAW,IAAG,cAAa,aAAY,cAAa;AAAA,UACrD,gBAAAV,EAAC,SAAI,UAQL,8pBAAA,CAAA;AAAA,UACA,gBAAAA,EAAC,SAAI,UAOL,kiBAAA,CAAA;AAAA,UACA,gBAAAA,EAAC,SAAI,UAUL,o1BAAA,CAAA;AAAA,QAAA,EACF,CAAA,EACF,CAAA,GACF;AAAA,MAAA;AAAA,IACF;AAAA,EACF,EAAA,CAAA;AAEJ,GAEaW,IAAyBJ,EAAoB,KAAK,EAAE;AACjEI,EAAuB,OAAO;AAAA,EAC5B,GAAGP;AACL;","x_google_ignoreList":[0,1]}
@@ -0,0 +1 @@
1
+ export * from './PageOverlay';
@@ -0,0 +1,5 @@
1
+ import { PageOverlay as a } from "./PageOverlay.js";
2
+ export {
3
+ a as PageOverlay
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}