@uva-glass/component-library 1.50.0 → 1.51.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.
- package/dist/Lexical.prod-DSsdOWxu.js +4043 -0
- package/dist/Lexical.prod-DSsdOWxu.js.map +1 -0
- package/dist/ListPlugin-Bu2AbCDB.js +643 -0
- package/dist/ListPlugin-Bu2AbCDB.js.map +1 -0
- package/dist/{MultiSelect-Ckf3uGw5.js → MultiSelect-D1FnMER4.js} +3 -2
- package/dist/{MultiSelect-Ckf3uGw5.js.map → MultiSelect-D1FnMER4.js.map} +1 -1
- package/dist/RteEditor.module-RkKUrkOO.js +21 -0
- package/dist/RteEditor.module-RkKUrkOO.js.map +1 -0
- package/dist/assets/RteEditor.css +1 -0
- package/dist/components/ActionList/ActionList.js +5 -3
- package/dist/components/ActionList/ActionList.js.map +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup.stories.js.map +1 -1
- package/dist/components/{Button → Buttons}/Button.d.ts +1 -1
- package/dist/components/Buttons/Button.js +22 -0
- package/dist/components/Buttons/Button.js.map +1 -0
- package/dist/components/Buttons/Button.stories.js.map +1 -0
- package/dist/components/Buttons/LinkButton.d.ts +11 -0
- package/dist/components/Buttons/LinkButton.js +12 -0
- package/dist/components/Buttons/LinkButton.js.map +1 -0
- package/dist/components/Buttons/LinkButton.stories.d.ts +6 -0
- package/dist/components/Buttons/LinkButton.stories.js +51 -0
- package/dist/components/Buttons/LinkButton.stories.js.map +1 -0
- package/dist/components/Buttons/MenuButton.js.map +1 -0
- package/dist/components/Buttons/MenuButton.stories.js.map +1 -0
- package/dist/components/Buttons/index.d.ts +3 -0
- package/dist/components/Buttons/index.js +9 -0
- package/dist/components/Buttons/index.js.map +1 -0
- package/dist/components/CheckboxTree/CheckboxTree.js +5 -4
- package/dist/components/CheckboxTree/CheckboxTree.js.map +1 -1
- package/dist/components/Drawer/Drawer.stories.js +19 -17
- package/dist/components/Drawer/Drawer.stories.js.map +1 -1
- package/dist/components/Icon/icons/index.d.ts +12 -0
- package/dist/components/Icon/icons/index.js +93 -73
- package/dist/components/Icon/icons/index.js.map +1 -1
- package/dist/components/InputField/InputField.stories.js +5 -4
- package/dist/components/InputField/InputField.stories.js.map +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +5 -3
- package/dist/components/ModalDialog/ModalDialog.stories.js.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +1 -1
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +4 -3
- package/dist/components/MultiSelect/components/MultiSelectHeader.js.map +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +5 -4
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js.map +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.d.ts +6 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +32 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.d.ts +6 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +11 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ListPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +38 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js.map +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.d.ts +1 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js +5 -0
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/index.js.map +1 -0
- package/dist/components/RteEditor/Plugins/index.d.ts +3 -0
- package/dist/components/RteEditor/Plugins/index.js +9 -0
- package/dist/components/RteEditor/Plugins/index.js.map +1 -0
- package/dist/components/RteEditor/RteEditor.d.ts +7 -0
- package/dist/components/RteEditor/RteEditor.js +833 -0
- package/dist/components/RteEditor/RteEditor.js.map +1 -0
- package/dist/components/RteEditor/RteEditor.stories.d.ts +6 -0
- package/dist/components/RteEditor/RteEditor.stories.js +40 -0
- package/dist/components/RteEditor/RteEditor.stories.js.map +1 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.d.ts +11 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js +16 -0
- package/dist/components/RteEditor/UvaTheme/UvaTheme.js.map +1 -0
- package/dist/components/RteEditor/UvaTheme/index.d.ts +1 -0
- package/dist/components/RteEditor/UvaTheme/index.js +5 -0
- package/dist/components/RteEditor/UvaTheme/index.js.map +1 -0
- package/dist/components/RteEditor/index.d.ts +1 -0
- package/dist/components/RteEditor/index.js +5 -0
- package/dist/components/RteEditor/index.js.map +1 -0
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +82 -78
- package/dist/components/index.js.map +1 -1
- package/dist/index-DsprzSCj.js +19067 -0
- package/dist/index-DsprzSCj.js.map +1 -0
- package/dist/index.js +82 -78
- package/dist/index.js.map +1 -1
- package/dist/{react-18-m8Z-Ep7B.js → react-18-C0Aiha-e.js} +2 -2
- package/dist/{react-18-m8Z-Ep7B.js.map → react-18-C0Aiha-e.js.map} +1 -1
- package/dist/storybook__react.d.js +1993 -1
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/types/UserInterface.d.ts +1 -1
- package/package.json +29 -23
- package/dist/components/Button/Button.js +0 -23
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.stories.js.map +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Button/index.js +0 -5
- package/dist/components/MenuButton/MenuButton.js.map +0 -1
- package/dist/components/MenuButton/MenuButton.stories.js.map +0 -1
- package/dist/components/MenuButton/index.d.ts +0 -1
- package/dist/components/MenuButton/index.js +0 -5
- package/dist/storybook__react.d-fgYZl9aD.js +0 -21053
- package/dist/storybook__react.d-fgYZl9aD.js.map +0 -1
- /package/dist/components/{Button → Buttons}/Button.stories.d.ts +0 -0
- /package/dist/components/{Button → Buttons}/Button.stories.js +0 -0
- /package/dist/components/{MenuButton → Buttons}/MenuButton.d.ts +0 -0
- /package/dist/components/{MenuButton → Buttons}/MenuButton.js +0 -0
- /package/dist/components/{MenuButton → Buttons}/MenuButton.stories.d.ts +0 -0
- /package/dist/components/{MenuButton → Buttons}/MenuButton.stories.js +0 -0
- /package/dist/components/{Button → RteEditor/Plugins/BlockFormatPlugin}/index.js.map +0 -0
- /package/dist/components/{MenuButton → RteEditor/Plugins/ListPlugin}/index.js.map +0 -0
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { jsxs as a, jsx as
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { OverlayProvider as p } from "@react-aria/overlays";
|
|
3
3
|
import { fn as m } from "../../index-MQ0yPLdl.js";
|
|
4
4
|
import { useState as c } from "react";
|
|
5
5
|
import { Drawer as r } from "./Drawer.js";
|
|
6
|
-
import { Button as
|
|
6
|
+
import { Button as o } from "../Buttons/Button.js";
|
|
7
|
+
import "../Buttons/LinkButton.js";
|
|
8
|
+
import "@react-aria/button";
|
|
7
9
|
import { ButtonGroup as u } from "../ButtonGroup/ButtonGroup.js";
|
|
8
10
|
const d = `
|
|
9
11
|
<Drawer isOpen={isOpen} onClose={onCloseFunction} title={title} buttons={buttons}> {children} </Drawer>
|
|
10
|
-
`,
|
|
12
|
+
`, v = {
|
|
11
13
|
title: "Molecules/Drawer",
|
|
12
14
|
component: r,
|
|
13
15
|
argTypes: {
|
|
@@ -31,38 +33,38 @@ const d = `
|
|
|
31
33
|
inspectComponent: r,
|
|
32
34
|
codeString: d
|
|
33
35
|
}
|
|
34
|
-
},
|
|
35
|
-
const [
|
|
36
|
+
}, i = (l) => {
|
|
37
|
+
const [t, n] = c(!1);
|
|
36
38
|
return /* @__PURE__ */ a(p, { children: [
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
+
/* @__PURE__ */ e(o, { onClick: () => n(!t), variant: "primary", children: "Open drawer" }),
|
|
40
|
+
t && /* @__PURE__ */ e(
|
|
39
41
|
r,
|
|
40
42
|
{
|
|
41
43
|
...l,
|
|
42
|
-
isOpen:
|
|
43
|
-
onClose: () => (m()(),
|
|
44
|
+
isOpen: t,
|
|
45
|
+
onClose: () => (m()(), n(!t)),
|
|
44
46
|
children: "Example Drawer Content"
|
|
45
47
|
}
|
|
46
48
|
)
|
|
47
49
|
] });
|
|
48
|
-
},
|
|
50
|
+
}, s = {
|
|
49
51
|
title: "Example Title",
|
|
50
52
|
closeButtonAriaValueText: "Close"
|
|
51
|
-
}, b =
|
|
53
|
+
}, b = i.bind({});
|
|
52
54
|
b.args = {
|
|
53
|
-
...
|
|
55
|
+
...s
|
|
54
56
|
};
|
|
55
|
-
const f =
|
|
57
|
+
const f = i.bind({});
|
|
56
58
|
f.args = {
|
|
57
|
-
...
|
|
59
|
+
...s,
|
|
58
60
|
buttons: /* @__PURE__ */ a(u, { children: [
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ e(o, { variant: "primary", children: "Primary Example Button" }),
|
|
62
|
+
/* @__PURE__ */ e(o, { variant: "secondary", children: "Secondary Example Button" })
|
|
61
63
|
] })
|
|
62
64
|
};
|
|
63
65
|
export {
|
|
64
66
|
b as DrawerExample,
|
|
65
67
|
f as WithButtons,
|
|
66
|
-
|
|
68
|
+
v as default
|
|
67
69
|
};
|
|
68
70
|
//# sourceMappingURL=Drawer.stories.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.stories.js","sources":["../../../src/components/Drawer/Drawer.stories.tsx"],"sourcesContent":["import { OverlayProvider } from '@react-aria/overlays';\nimport { fn } from '@storybook/test';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { DrawerProps } from './Drawer';\n\nimport { Drawer } from './Drawer';\n\nimport { Button } from 'components/
|
|
1
|
+
{"version":3,"file":"Drawer.stories.js","sources":["../../../src/components/Drawer/Drawer.stories.tsx"],"sourcesContent":["import { OverlayProvider } from '@react-aria/overlays';\nimport { fn } from '@storybook/test';\nimport { useState } from 'react';\n\nimport type { Meta, StoryFn } from '@storybook/react';\nimport type { DrawerProps } from './Drawer';\n\nimport { Drawer } from './Drawer';\n\nimport { Button } from 'components/Buttons';\nimport { ButtonGroup } from 'components/ButtonGroup';\n\nconst codeString = `\n <Drawer isOpen={isOpen} onClose={onCloseFunction} title={title} buttons={buttons}> {children} </Drawer>\n`;\n\n// eslint-disable-next-line import/no-default-export\nexport default {\n title: 'Molecules/Drawer',\n component: Drawer,\n argTypes: {\n isOpen: {\n table: {\n disable: true,\n },\n },\n buttons: {\n table: {\n disable: true,\n },\n },\n closeButtonAriaValueText: {\n table: {\n disable: true,\n },\n },\n },\n parameters: {\n inspectComponent: Drawer,\n codeString: codeString,\n },\n} as Meta<DrawerProps>;\n\nconst Template: StoryFn<DrawerProps> = (args) => {\n const [isOpen, setIsOpen] = useState(false);\n\n return (\n <OverlayProvider>\n <Button onClick={() => setIsOpen(!isOpen)} variant=\"primary\">\n Open drawer\n </Button>\n {isOpen && (\n <Drawer\n {...args}\n isOpen={isOpen}\n onClose={() => {\n fn()();\n return setIsOpen(!isOpen);\n }}\n >\n Example Drawer Content\n </Drawer>\n )}\n </OverlayProvider>\n );\n};\n\nconst defaultArgs: Partial<DrawerProps> = {\n title: 'Example Title',\n closeButtonAriaValueText: 'Close',\n};\n\nexport const DrawerExample = Template.bind({});\nDrawerExample.args = {\n ...defaultArgs,\n};\n\nexport const WithButtons = Template.bind({});\nWithButtons.args = {\n ...defaultArgs,\n buttons: (\n <ButtonGroup>\n <Button variant=\"primary\">Primary Example Button</Button>\n <Button variant=\"secondary\">Secondary Example Button</Button>\n </ButtonGroup>\n ),\n};\n"],"names":["codeString","Drawer_stories","Drawer","Template","args","isOpen","setIsOpen","useState","OverlayProvider","jsx","Button","fn","defaultArgs","DrawerExample","WithButtons","ButtonGroup"],"mappings":";;;;;;;;;AAYA,MAAMA,IAAa;AAAA;AAAA,GAKJC,IAAA;AAAA,EACb,OAAO;AAAA,EACP,WAAWC;AAAA,EACX,UAAU;AAAA,IACR,QAAQ;AAAA,MACN,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,SAAS;AAAA,MACP,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,0BAA0B;AAAA,MACxB,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,YAAY;AAAA,IACV,kBAAkBA;AAAA,IAClB,YAAAF;AAAA,EACF;AACF,GAEMG,IAAiC,CAACC,MAAS;AAC/C,QAAM,CAACC,GAAQC,CAAS,IAAIC,EAAS,EAAK;AAE1C,2BACGC,GACC,EAAA,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAO,SAAS,MAAMJ,EAAU,CAACD,CAAM,GAAG,SAAQ,WAAU,UAE7D,cAAA,CAAA;AAAA,IACCA,KACC,gBAAAI;AAAA,MAACP;AAAA,MAAA;AAAA,QACE,GAAGE;AAAA,QACJ,QAAAC;AAAA,QACA,SAAS,OACPM,EAAK,EAAA,GACEL,EAAU,CAACD,CAAM;AAAA,QAE3B,UAAA;AAAA,MAAA;AAAA,IAED;AAAA,EAEJ,EAAA,CAAA;AAEJ,GAEMO,IAAoC;AAAA,EACxC,OAAO;AAAA,EACP,0BAA0B;AAC5B,GAEaC,IAAgBV,EAAS,KAAK,EAAE;AAC7CU,EAAc,OAAO;AAAA,EACnB,GAAGD;AACL;AAEO,MAAME,IAAcX,EAAS,KAAK,EAAE;AAC3CW,EAAY,OAAO;AAAA,EACjB,GAAGF;AAAA,EACH,2BACGG,GACC,EAAA,UAAA;AAAA,IAAC,gBAAAN,EAAAC,GAAA,EAAO,SAAQ,WAAU,UAAsB,0BAAA;AAAA,IAC/C,gBAAAD,EAAAC,GAAA,EAAO,SAAQ,aAAY,UAAwB,4BAAA;AAAA,EAAA,GACtD;AAEJ;"}
|
|
@@ -134,6 +134,18 @@ export declare const Icons: {
|
|
|
134
134
|
FaceFrown: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
135
135
|
title?: string;
|
|
136
136
|
}>;
|
|
137
|
+
FormatBold: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
138
|
+
title?: string;
|
|
139
|
+
}>;
|
|
140
|
+
FormatItalic: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
141
|
+
title?: string;
|
|
142
|
+
}>;
|
|
143
|
+
FormatOrderedLists: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
144
|
+
title?: string;
|
|
145
|
+
}>;
|
|
146
|
+
FormatUnorderedList: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
147
|
+
title?: string;
|
|
148
|
+
}>;
|
|
137
149
|
Hamburger: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement> & {
|
|
138
150
|
title?: string;
|
|
139
151
|
}>;
|