@openlearning/widget-framework 1.0.2 → 1.2.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/README.md +230 -0
- package/dist/components/Button.d.ts +41 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +47 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Checkbox.d.ts +19 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox.js +16 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/CheckboxGroup.d.ts +34 -0
- package/dist/components/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CheckboxGroup.js +18 -0
- package/dist/components/CheckboxGroup.js.map +1 -0
- package/dist/components/Menu.d.ts +45 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/Menu.js +56 -0
- package/dist/components/Menu.js.map +1 -0
- package/dist/components/RadioGroup.d.ts +36 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup.js +18 -0
- package/dist/components/RadioGroup.js.map +1 -0
- package/dist/components/Spinner.d.ts +15 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +10 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/StatusTag.d.ts +16 -0
- package/dist/components/StatusTag.d.ts.map +1 -0
- package/dist/components/StatusTag.js +9 -0
- package/dist/components/StatusTag.js.map +1 -0
- package/dist/components/Switch.d.ts +22 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Switch.js +14 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Tabs.d.ts +23 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs.js +27 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/TextField.d.ts +19 -0
- package/dist/components/TextField.d.ts.map +1 -0
- package/dist/components/TextField.js +17 -0
- package/dist/components/TextField.js.map +1 -0
- package/dist/components/Textarea.d.ts +19 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +17 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/icons/IconCaretDown.d.ts +7 -0
- package/dist/components/icons/IconCaretDown.d.ts.map +1 -0
- package/dist/components/icons/IconCaretDown.js +4 -0
- package/dist/components/icons/IconCaretDown.js.map +1 -0
- package/dist/components/icons/IconCaretLeft.d.ts +7 -0
- package/dist/components/icons/IconCaretLeft.d.ts.map +1 -0
- package/dist/components/icons/IconCaretLeft.js +4 -0
- package/dist/components/icons/IconCaretLeft.js.map +1 -0
- package/dist/components/icons/IconCaretRight.d.ts +7 -0
- package/dist/components/icons/IconCaretRight.d.ts.map +1 -0
- package/dist/components/icons/IconCaretRight.js +4 -0
- package/dist/components/icons/IconCaretRight.js.map +1 -0
- package/dist/components/icons/IconCaretUp.d.ts +7 -0
- package/dist/components/icons/IconCaretUp.d.ts.map +1 -0
- package/dist/components/icons/IconCaretUp.js +4 -0
- package/dist/components/icons/IconCaretUp.js.map +1 -0
- package/dist/components/icons/IconChevronLeft.d.ts +7 -0
- package/dist/components/icons/IconChevronLeft.d.ts.map +1 -0
- package/dist/components/icons/IconChevronLeft.js +4 -0
- package/dist/components/icons/IconChevronLeft.js.map +1 -0
- package/dist/components/icons/IconChevronRight.d.ts +7 -0
- package/dist/components/icons/IconChevronRight.d.ts.map +1 -0
- package/dist/components/icons/IconChevronRight.js +4 -0
- package/dist/components/icons/IconChevronRight.js.map +1 -0
- package/dist/components/icons/IconFastForward.d.ts +7 -0
- package/dist/components/icons/IconFastForward.d.ts.map +1 -0
- package/dist/components/icons/IconFastForward.js +4 -0
- package/dist/components/icons/IconFastForward.js.map +1 -0
- package/dist/components/icons/IconNext.d.ts +7 -0
- package/dist/components/icons/IconNext.d.ts.map +1 -0
- package/dist/components/icons/IconNext.js +4 -0
- package/dist/components/icons/IconNext.js.map +1 -0
- package/dist/components/icons/IconPause.d.ts +7 -0
- package/dist/components/icons/IconPause.d.ts.map +1 -0
- package/dist/components/icons/IconPause.js +4 -0
- package/dist/components/icons/IconPause.js.map +1 -0
- package/dist/components/icons/IconPlay.d.ts +7 -0
- package/dist/components/icons/IconPlay.d.ts.map +1 -0
- package/dist/components/icons/IconPlay.js +4 -0
- package/dist/components/icons/IconPlay.js.map +1 -0
- package/dist/components/icons/IconPlus.d.ts +7 -0
- package/dist/components/icons/IconPlus.d.ts.map +1 -0
- package/dist/components/icons/IconPlus.js +4 -0
- package/dist/components/icons/IconPlus.js.map +1 -0
- package/dist/components/icons/IconPrevious.d.ts +7 -0
- package/dist/components/icons/IconPrevious.d.ts.map +1 -0
- package/dist/components/icons/IconPrevious.js +4 -0
- package/dist/components/icons/IconPrevious.js.map +1 -0
- package/dist/components/icons/IconRedo.d.ts +7 -0
- package/dist/components/icons/IconRedo.d.ts.map +1 -0
- package/dist/components/icons/IconRedo.js +4 -0
- package/dist/components/icons/IconRedo.js.map +1 -0
- package/dist/components/icons/IconReload.d.ts +7 -0
- package/dist/components/icons/IconReload.d.ts.map +1 -0
- package/dist/components/icons/IconReload.js +4 -0
- package/dist/components/icons/IconReload.js.map +1 -0
- package/dist/components/icons/IconReplay.d.ts +3 -0
- package/dist/components/icons/IconReplay.d.ts.map +1 -0
- package/dist/components/icons/IconReplay.js +4 -0
- package/dist/components/icons/IconReplay.js.map +1 -0
- package/dist/components/icons/IconRewind.d.ts +7 -0
- package/dist/components/icons/IconRewind.d.ts.map +1 -0
- package/dist/components/icons/IconRewind.js +4 -0
- package/dist/components/icons/IconRewind.js.map +1 -0
- package/dist/components/icons/IconSkipBackward.d.ts +7 -0
- package/dist/components/icons/IconSkipBackward.d.ts.map +1 -0
- package/dist/components/icons/IconSkipBackward.js +4 -0
- package/dist/components/icons/IconSkipBackward.js.map +1 -0
- package/dist/components/icons/IconSkipForward.d.ts +7 -0
- package/dist/components/icons/IconSkipForward.d.ts.map +1 -0
- package/dist/components/icons/IconSkipForward.js +4 -0
- package/dist/components/icons/IconSkipForward.js.map +1 -0
- package/dist/components/icons/IconStop.d.ts +7 -0
- package/dist/components/icons/IconStop.d.ts.map +1 -0
- package/dist/components/icons/IconStop.js +4 -0
- package/dist/components/icons/IconStop.js.map +1 -0
- package/dist/components/icons/IconUndo.d.ts +7 -0
- package/dist/components/icons/IconUndo.d.ts.map +1 -0
- package/dist/components/icons/IconUndo.js +4 -0
- package/dist/components/icons/IconUndo.js.map +1 -0
- package/dist/components/icons/IconX.d.ts +7 -0
- package/dist/components/icons/IconX.d.ts.map +1 -0
- package/dist/components/icons/IconX.js +4 -0
- package/dist/components/icons/IconX.js.map +1 -0
- package/dist/components/icons/index.d.ts +21 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/index.js +21 -0
- package/dist/components/icons/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/button.css +381 -0
- package/dist/styles/checkbox.css +105 -0
- package/dist/styles/checkboxgroup.css +42 -0
- package/dist/styles/radiogroup.css +135 -0
- package/dist/styles/spinner.css +22 -0
- package/dist/styles/statustag.css +35 -0
- package/dist/styles/switch.css +74 -0
- package/dist/styles/tabs.css +49 -0
- package/dist/styles/textfield.css +72 -0
- package/package.json +12 -7
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconReload = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M534.6 182.6C547.1 170.1 547.1 149.8 534.6 137.3L470.6 73.3C461.4 64.1 447.7 61.4 435.7 66.4C423.7 71.4 416 83.1 416 96L416 128L256 128C150 128 64 214 64 320C64 337.7 78.3 352 96 352C113.7 352 128 337.7 128 320C128 249.3 185.3 192 256 192L416 192L416 224C416 236.9 423.8 248.6 435.8 253.6C447.8 258.6 461.5 255.8 470.7 246.7L534.7 182.7zM105.4 457.4C92.9 469.9 92.9 490.2 105.4 502.7L169.4 566.7C178.6 575.9 192.3 578.6 204.3 573.6C216.3 568.6 224 556.9 224 544L224 512L384 512C490 512 576 426 576 320C576 302.3 561.7 288 544 288C526.3 288 512 302.3 512 320C512 390.7 454.7 448 384 448L224 448L224 416C224 403.1 216.2 391.4 204.2 386.4C192.2 381.4 178.5 384.2 169.3 393.3L105.3 457.3z" }) }));
|
|
3
|
+
export default IconReload;
|
|
4
|
+
//# sourceMappingURL=IconReload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconReload.js","sourceRoot":"","sources":["../../../src/components/icons/IconReload.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAmB,EAAE,EAAE,CAAC,CACnE,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,8qBAA8qB,GAAG,GACrrB,CACP,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconReplay.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconReplay.tsx"],"names":[],"mappings":"AAAA,QAAA,MAAM,UAAU,+CAQf,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconReplay = () => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: _jsx("path", { d: "M12 4V2.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V6c3.31 0 6 2.69 6 6 0 .79-.15 1.56-.44 2.25-.15.36-.04.77.23 1.04.51.51 1.37.33 1.64-.34.37-.91.57-1.91.57-2.95 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-.79.15-1.56.44-2.25.15-.36.04-.77-.23-1.04-.51-.51-1.37-.33-1.64.34C4.2 9.96 4 10.96 4 12c0 4.42 3.58 8 8 8v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V18z" }) }));
|
|
3
|
+
export default IconReplay;
|
|
4
|
+
//# sourceMappingURL=IconReplay.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconReplay.js","sourceRoot":"","sources":["../../../src/components/icons/IconReplay.tsx"],"names":[],"mappings":";AAAA,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,cAAc,YAEnB,eAAM,CAAC,EAAC,+bAA+b,GAAG,GACtc,CACP,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRewind.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconRewind.tsx"],"names":[],"mappings":"AAAA,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,GAAI,mBAA6B,eAAe,4CAU/D,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconRewind = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M11.5 280.6l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2zm256 0l192 160c20.6 17.2 52.5 2.8 52.5-24.6V96c0-27.4-31.9-41.8-52.5-24.6l-192 160c-15.3 12.8-15.3 36.4 0 49.2z" }) }));
|
|
3
|
+
export default IconRewind;
|
|
4
|
+
//# sourceMappingURL=IconRewind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconRewind.js","sourceRoot":"","sources":["../../../src/components/icons/IconRewind.tsx"],"names":[],"mappings":";AAKA,MAAM,UAAU,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAmB,EAAE,EAAE,CAAC,CACnE,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,qOAAqO,GAAG,GAC5O,CACP,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface IconSkipBackwardProps {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const IconSkipBackward: ({ width, height, }: IconSkipBackwardProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default IconSkipBackward;
|
|
7
|
+
//# sourceMappingURL=IconSkipBackward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSkipBackward.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconSkipBackward.tsx"],"names":[],"mappings":"AAAA,UAAU,qBAAqB;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,gBAAgB,GAAI,oBAGvB,qBAAqB,4CAUvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconSkipBackward = ({ width = 14, height = 14, }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M0 436V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v151.9L235.5 71.4C256.1 54.3 288 68.6 288 96v131.9L459.5 71.4C480.1 54.3 512 68.6 512 96v320c0 27.4-31.9 41.7-52.5 24.6L288 285.3V416c0 27.4-31.9 41.7-52.5 24.6L64 285.3V436c0 6.6-5.4 12-12 12H12c-6.6 0-12-5.4-12-12z" }) }));
|
|
3
|
+
export default IconSkipBackward;
|
|
4
|
+
//# sourceMappingURL=IconSkipBackward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSkipBackward.js","sourceRoot":"","sources":["../../../src/components/icons/IconSkipBackward.tsx"],"names":[],"mappings":";AAKA,MAAM,gBAAgB,GAAG,CAAC,EACxB,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,GACW,EAAE,EAAE,CAAC,CAC3B,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,4QAA4Q,GAAG,GACnR,CACP,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface IconSkipForwardProps {
|
|
2
|
+
width?: number;
|
|
3
|
+
height?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const IconSkipForward: ({ width, height }: IconSkipForwardProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default IconSkipForward;
|
|
7
|
+
//# sourceMappingURL=IconSkipForward.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSkipForward.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconSkipForward.tsx"],"names":[],"mappings":"AAAA,UAAU,oBAAoB;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,eAAe,GAAI,mBAA6B,oBAAoB,4CAUzE,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconSkipForward = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M512 76v360c0 6.6-5.4 12-12 12h-40c-6.6 0-12-5.4-12-12V284.1L276.5 440.6c-20.6 17.2-52.5 2.8-52.5-24.6V284.1L52.5 440.6C31.9 457.8 0 443.4 0 416V96c0-27.4 31.9-41.7 52.5-24.6L224 226.8V96c0-27.4 31.9-41.7 52.5-24.6L448 226.8V76c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12z" }) }));
|
|
3
|
+
export default IconSkipForward;
|
|
4
|
+
//# sourceMappingURL=IconSkipForward.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSkipForward.js","sourceRoot":"","sources":["../../../src/components/icons/IconSkipForward.tsx"],"names":[],"mappings":";AAKA,MAAM,eAAe,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAwB,EAAE,EAAE,CAAC,CAC7E,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,+QAA+Q,GAAG,GACtR,CACP,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconStop.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconStop.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,QAAQ,GAAI,mBAA6B,aAAa,4CAU3D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconStop = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M160 96L480 96C515.3 96 544 124.7 544 160L544 480C544 515.3 515.3 544 480 544L160 544C124.7 544 96 515.3 96 480L96 160C96 124.7 124.7 96 160 96z" }) }));
|
|
3
|
+
export default IconStop;
|
|
4
|
+
//# sourceMappingURL=IconStop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconStop.js","sourceRoot":"","sources":["../../../src/components/icons/IconStop.tsx"],"names":[],"mappings":";AAKA,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAiB,EAAE,EAAE,CAAC,CAC/D,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,kJAAkJ,GAAG,GACzJ,CACP,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconUndo.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconUndo.tsx"],"names":[],"mappings":"AAAA,UAAU,aAAa;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,QAAQ,GAAI,mBAA6B,aAAa,4CAU3D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconUndo = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M255.545 8c-66.269.119-126.438 26.233-170.86 68.685L48.971 40.971C33.851 25.851 8 36.559 8 57.941V192c0 13.255 10.745 24 24 24h134.059c21.382 0 32.09-25.851 16.971-40.971l-41.75-41.75c30.864-28.899 70.801-44.907 113.23-45.273 92.398-.798 170.283 73.977 169.484 169.442C423.236 348.009 349.816 424 256 424c-41.127 0-79.997-14.678-110.63-41.556-4.743-4.161-11.906-3.908-16.368.553L89.34 422.659c-4.872 4.872-4.631 12.815.482 17.433C133.798 479.813 192.074 504 256 504c136.966 0 247.999-111.033 248-247.998C504.001 119.193 392.354 7.755 255.545 8z" }) }));
|
|
3
|
+
export default IconUndo;
|
|
4
|
+
//# sourceMappingURL=IconUndo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconUndo.js","sourceRoot":"","sources":["../../../src/components/icons/IconUndo.tsx"],"names":[],"mappings":";AAKA,MAAM,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAiB,EAAE,EAAE,CAAC,CAC/D,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,kiBAAkiB,GAAG,GACziB,CACP,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconX.d.ts","sourceRoot":"","sources":["../../../src/components/icons/IconX.tsx"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,KAAK,GAAI,mBAA6B,UAAU,4CAUrD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
const IconX = ({ width = 14, height = 14 }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", fill: "currentColor", width: width, height: height, children: _jsx("path", { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }) }));
|
|
3
|
+
export default IconX;
|
|
4
|
+
//# sourceMappingURL=IconX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconX.js","sourceRoot":"","sources":["../../../src/components/icons/IconX.tsx"],"names":[],"mappings":";AAKA,MAAM,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,MAAM,GAAG,EAAE,EAAc,EAAE,EAAE,CAAC,CACzD,cACE,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,IAAI,EAAC,cAAc,EACnB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,YAEd,eAAM,CAAC,EAAC,iaAAia,GAAG,GACxa,CACP,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as IconCaretDown } from "./IconCaretDown";
|
|
2
|
+
export { default as IconCaretLeft } from "./IconCaretLeft";
|
|
3
|
+
export { default as IconCaretRight } from "./IconCaretRight";
|
|
4
|
+
export { default as IconCaretUp } from "./IconCaretUp";
|
|
5
|
+
export { default as IconChevronLeft } from "./IconChevronLeft";
|
|
6
|
+
export { default as IconChevronRight } from "./IconChevronRight";
|
|
7
|
+
export { default as IconFastForward } from "./IconFastForward";
|
|
8
|
+
export { default as IconNext } from "./IconNext";
|
|
9
|
+
export { default as IconPause } from "./IconPause";
|
|
10
|
+
export { default as IconPlay } from "./IconPlay";
|
|
11
|
+
export { default as IconPlus } from "./IconPlus";
|
|
12
|
+
export { default as IconPrevious } from "./IconPrevious";
|
|
13
|
+
export { default as IconRedo } from "./IconRedo";
|
|
14
|
+
export { default as IconReload } from "./IconReload";
|
|
15
|
+
export { default as IconRewind } from "./IconRewind";
|
|
16
|
+
export { default as IconSkipBackward } from "./IconSkipBackward";
|
|
17
|
+
export { default as IconSkipForward } from "./IconSkipForward";
|
|
18
|
+
export { default as IconStop } from "./IconStop";
|
|
19
|
+
export { default as IconUndo } from "./IconUndo";
|
|
20
|
+
export { default as IconX } from "./IconX";
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { default as IconCaretDown } from "./IconCaretDown";
|
|
2
|
+
export { default as IconCaretLeft } from "./IconCaretLeft";
|
|
3
|
+
export { default as IconCaretRight } from "./IconCaretRight";
|
|
4
|
+
export { default as IconCaretUp } from "./IconCaretUp";
|
|
5
|
+
export { default as IconChevronLeft } from "./IconChevronLeft";
|
|
6
|
+
export { default as IconChevronRight } from "./IconChevronRight";
|
|
7
|
+
export { default as IconFastForward } from "./IconFastForward";
|
|
8
|
+
export { default as IconNext } from "./IconNext";
|
|
9
|
+
export { default as IconPause } from "./IconPause";
|
|
10
|
+
export { default as IconPlay } from "./IconPlay";
|
|
11
|
+
export { default as IconPlus } from "./IconPlus";
|
|
12
|
+
export { default as IconPrevious } from "./IconPrevious";
|
|
13
|
+
export { default as IconRedo } from "./IconRedo";
|
|
14
|
+
export { default as IconReload } from "./IconReload";
|
|
15
|
+
export { default as IconRewind } from "./IconRewind";
|
|
16
|
+
export { default as IconSkipBackward } from "./IconSkipBackward";
|
|
17
|
+
export { default as IconSkipForward } from "./IconSkipForward";
|
|
18
|
+
export { default as IconStop } from "./IconStop";
|
|
19
|
+
export { default as IconUndo } from "./IconUndo";
|
|
20
|
+
export { default as IconX } from "./IconX";
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/icons/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -9,4 +9,15 @@ export { defineWidgetProject, type WidgetProjectConfig, } from "./setupProject";
|
|
|
9
9
|
export { useParentMessaging } from "./useParentMessaging";
|
|
10
10
|
export { useWidgetConfig } from "./useWidgetConfig";
|
|
11
11
|
export type { JSONValue, Attachment, WidgetConfigBase, LearnerViewProps, SetupViewProps, ParentMessage, ParentMessagingCallbacks, } from "./types";
|
|
12
|
+
export { Button, type ButtonProps, type ButtonVariant, type ButtonSize, } from "./components/Button";
|
|
13
|
+
export { Menu, type MenuProps, type MenuItem, } from "./components/Menu";
|
|
14
|
+
export { Spinner, type SpinnerProps, } from "./components/Spinner";
|
|
15
|
+
export { Checkbox, type CheckboxProps, } from "./components/Checkbox";
|
|
16
|
+
export { CheckboxGroup, type CheckboxGroupProps, type CheckboxGroupOption, } from "./components/CheckboxGroup";
|
|
17
|
+
export { RadioGroup, type RadioGroupProps, type RadioOption, } from "./components/RadioGroup";
|
|
18
|
+
export { Switch, type SwitchProps, } from "./components/Switch";
|
|
19
|
+
export { TextField, type TextFieldProps, } from "./components/TextField";
|
|
20
|
+
export { Textarea, type TextareaProps, } from "./components/Textarea";
|
|
21
|
+
export { StatusTag, type StatusTagProps, type StatusTagVariant, } from "./components/StatusTag";
|
|
22
|
+
export { Tabs, type TabsProps, type Tab, } from "./components/Tabs";
|
|
12
23
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,kBAAkB,EAClB,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,YAAY,EACV,SAAS,EACT,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,wBAAwB,GACzB,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,MAAM,EACN,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,QAAQ,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,UAAU,EACV,KAAK,eAAe,EACpB,KAAK,WAAW,GACjB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,MAAM,EACN,KAAK,WAAW,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,EACT,KAAK,cAAc,GACpB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,EACT,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,IAAI,EACJ,KAAK,SAAS,EACd,KAAK,GAAG,GACT,MAAM,mBAAmB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,23 @@
|
|
|
2
2
|
* Widget Framework
|
|
3
3
|
* Shared utilities for building OpenLearning widgets
|
|
4
4
|
*/
|
|
5
|
+
// Framework utilities
|
|
5
6
|
export { createLearnerEntry, } from "./createLearnerEntry";
|
|
6
7
|
export { createSetupEntry, } from "./createSetupEntry";
|
|
7
8
|
export { DevApp } from "./DevApp";
|
|
8
9
|
export { defineWidgetProject, } from "./setupProject";
|
|
9
10
|
export { useParentMessaging } from "./useParentMessaging";
|
|
10
11
|
export { useWidgetConfig } from "./useWidgetConfig";
|
|
12
|
+
// UI Components
|
|
13
|
+
export { Button, } from "./components/Button";
|
|
14
|
+
export { Menu, } from "./components/Menu";
|
|
15
|
+
export { Spinner, } from "./components/Spinner";
|
|
16
|
+
export { Checkbox, } from "./components/Checkbox";
|
|
17
|
+
export { CheckboxGroup, } from "./components/CheckboxGroup";
|
|
18
|
+
export { RadioGroup, } from "./components/RadioGroup";
|
|
19
|
+
export { Switch, } from "./components/Switch";
|
|
20
|
+
export { TextField, } from "./components/TextField";
|
|
21
|
+
export { Textarea, } from "./components/Textarea";
|
|
22
|
+
export { StatusTag, } from "./components/StatusTag";
|
|
23
|
+
export { Tabs, } from "./components/Tabs";
|
|
11
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACL,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AACpD,OAAO,EACL,mBAAmB,GAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,sBAAsB;AACtB,OAAO,EACL,kBAAkB,GAEnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,gBAAgB,GAEjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAoB,MAAM,UAAU,CAAC;AACpD,OAAO,EACL,mBAAmB,GAEpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,gBAAgB;AAChB,OAAO,EACL,MAAM,GAIP,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,IAAI,GAGL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,OAAO,GAER,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,QAAQ,GAET,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,GAGd,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,UAAU,GAGX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,MAAM,GAEP,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,SAAS,GAEV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,QAAQ,GAET,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,SAAS,GAGV,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,IAAI,GAGL,MAAM,mBAAmB,CAAC"}
|