rlz-web-slides 0.1.0 → 0.1.2
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/lib/index.js +50 -4
- package/package.json +3 -3
package/lib/index.js
CHANGED
|
@@ -3665,6 +3665,7 @@ function resolveSlidesTheme(input = {}) {
|
|
|
3665
3665
|
typography: {
|
|
3666
3666
|
"& h1, & h2, & h3, & p": {
|
|
3667
3667
|
marginTop: "0.8em",
|
|
3668
|
+
marginBottom: 0,
|
|
3668
3669
|
"&:first-child": { marginTop: 0 }
|
|
3669
3670
|
},
|
|
3670
3671
|
"& h1": { fontSize: "2em" },
|
|
@@ -7256,6 +7257,17 @@ var faEye = {
|
|
|
7256
7257
|
"M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"
|
|
7257
7258
|
]
|
|
7258
7259
|
};
|
|
7260
|
+
var faExpand = {
|
|
7261
|
+
prefix: "fas",
|
|
7262
|
+
iconName: "expand",
|
|
7263
|
+
icon: [
|
|
7264
|
+
448,
|
|
7265
|
+
512,
|
|
7266
|
+
[],
|
|
7267
|
+
"f065",
|
|
7268
|
+
"M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32S0 334.3 0 352l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"
|
|
7269
|
+
]
|
|
7270
|
+
};
|
|
7259
7271
|
var faHighlighter = {
|
|
7260
7272
|
prefix: "fas",
|
|
7261
7273
|
iconName: "highlighter",
|
|
@@ -7289,6 +7301,17 @@ var faEraser = {
|
|
|
7289
7301
|
"M178.5 416l123 0 65.3-65.3-173.5-173.5-126.7 126.7 112 112zM224 480l-45.5 0c-17 0-33.3-6.7-45.3-18.7L17 345C6.1 334.1 0 319.4 0 304s6.1-30.1 17-41L263 17C273.9 6.1 288.6 0 304 0s30.1 6.1 41 17L527 199c10.9 10.9 17 25.6 17 41s-6.1 30.1-17 41l-135 135 120 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0z"
|
|
7290
7302
|
]
|
|
7291
7303
|
};
|
|
7304
|
+
var faArrowRight = {
|
|
7305
|
+
prefix: "fas",
|
|
7306
|
+
iconName: "arrow-right",
|
|
7307
|
+
icon: [
|
|
7308
|
+
512,
|
|
7309
|
+
512,
|
|
7310
|
+
[8594],
|
|
7311
|
+
"f061",
|
|
7312
|
+
"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"
|
|
7313
|
+
]
|
|
7314
|
+
};
|
|
7292
7315
|
var faXmark = {
|
|
7293
7316
|
prefix: "fas",
|
|
7294
7317
|
iconName: "xmark",
|
|
@@ -7321,6 +7344,28 @@ var faPen = {
|
|
|
7321
7344
|
"M352.9 21.2L308 66.1 445.9 204 490.8 159.1C504.4 145.6 512 127.2 512 108s-7.6-37.6-21.2-51.1L455.1 21.2C441.6 7.6 423.2 0 404 0s-37.6 7.6-51.1 21.2zM274.1 100L58.9 315.1c-10.7 10.7-18.5 24.1-22.6 38.7L.9 481.6c-2.3 8.3 0 17.3 6.2 23.4s15.1 8.5 23.4 6.2l127.8-35.5c14.6-4.1 27.9-11.8 38.7-22.6L412 237.9 274.1 100z"
|
|
7322
7345
|
]
|
|
7323
7346
|
};
|
|
7347
|
+
var faArrowLeft = {
|
|
7348
|
+
prefix: "fas",
|
|
7349
|
+
iconName: "arrow-left",
|
|
7350
|
+
icon: [
|
|
7351
|
+
512,
|
|
7352
|
+
512,
|
|
7353
|
+
[8592],
|
|
7354
|
+
"f060",
|
|
7355
|
+
"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"
|
|
7356
|
+
]
|
|
7357
|
+
};
|
|
7358
|
+
var faCompress = {
|
|
7359
|
+
prefix: "fas",
|
|
7360
|
+
iconName: "compress",
|
|
7361
|
+
icon: [
|
|
7362
|
+
448,
|
|
7363
|
+
512,
|
|
7364
|
+
[],
|
|
7365
|
+
"f066",
|
|
7366
|
+
"M160 64c0-17.7-14.3-32-32-32S96 46.3 96 64l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"
|
|
7367
|
+
]
|
|
7368
|
+
};
|
|
7324
7369
|
var faLayerGroup = {
|
|
7325
7370
|
prefix: "fas",
|
|
7326
7371
|
iconName: "layer-group",
|
|
@@ -8045,7 +8090,7 @@ function Presentation({ slides, mode = "embedded", initialSlide = 0, onSlideChan
|
|
|
8045
8090
|
"aria-label": "Previous slide",
|
|
8046
8091
|
disabled: index === 0 || !slides.length,
|
|
8047
8092
|
onClick: () => go(index - 1),
|
|
8048
|
-
children:
|
|
8093
|
+
children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faArrowLeft })
|
|
8049
8094
|
}),
|
|
8050
8095
|
/* @__PURE__ */ jsxs("span", {
|
|
8051
8096
|
"aria-live": "polite",
|
|
@@ -8062,13 +8107,14 @@ function Presentation({ slides, mode = "embedded", initialSlide = 0, onSlideChan
|
|
|
8062
8107
|
"aria-label": "Next slide",
|
|
8063
8108
|
disabled: index >= slides.length - 1,
|
|
8064
8109
|
onClick: () => go(index + 1),
|
|
8065
|
-
children:
|
|
8110
|
+
children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: faArrowRight })
|
|
8066
8111
|
}),
|
|
8067
8112
|
/* @__PURE__ */ jsx("span", { css: { flex: 1 } }),
|
|
8068
|
-
/* @__PURE__ */
|
|
8113
|
+
/* @__PURE__ */ jsx("button", {
|
|
8069
8114
|
type: "button",
|
|
8115
|
+
"aria-label": fullscreen ? "Exit fullscreen" : "Enter fullscreen",
|
|
8070
8116
|
onClick: () => void toggleFullscreen(),
|
|
8071
|
-
children:
|
|
8117
|
+
children: /* @__PURE__ */ jsx(FontAwesomeIcon, { icon: fullscreen ? faCompress : faExpand })
|
|
8072
8118
|
})
|
|
8073
8119
|
]
|
|
8074
8120
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rlz-web-slides",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/rlz/web-slides.git"
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
},
|
|
55
55
|
"description": "Composable React slides, themes, an embedded player and standalone HTML export",
|
|
56
56
|
"main": "./lib/index.js",
|
|
57
|
-
"types": "./lib/
|
|
57
|
+
"types": "./lib/public-api.d.ts",
|
|
58
58
|
"exports": {
|
|
59
59
|
".": {
|
|
60
|
-
"types": "./lib/
|
|
60
|
+
"types": "./lib/public-api.d.ts",
|
|
61
61
|
"import": "./lib/index.js"
|
|
62
62
|
},
|
|
63
63
|
"./build": {
|