@sdeck/plugin-basics 1.0.0 → 1.1.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/index.js +35 -840
- package/dist/index.js.map +6 -15
- package/package.json +5 -5
- package/src/index.tsx +7 -7
package/src/index.tsx
CHANGED
|
@@ -53,7 +53,7 @@ const label = defineAction({
|
|
|
53
53
|
fontSize: { type: "number", label: "Text size", default: 18, min: 8, max: 60 },
|
|
54
54
|
},
|
|
55
55
|
// Pressing a label does nothing, but it can still start a button's own steps.
|
|
56
|
-
|
|
56
|
+
display: true,
|
|
57
57
|
look: (s): Look => {
|
|
58
58
|
const layers: Layer[] = [];
|
|
59
59
|
if (s.image) {
|
|
@@ -191,9 +191,9 @@ const navigate = defineAction({
|
|
|
191
191
|
description: "After the last page comes the first.",
|
|
192
192
|
visibleIf: { to: ["next", "previous"] },
|
|
193
193
|
},
|
|
194
|
-
text: { type: "text", label: "Text", placeholder: "Defaults to the target" },
|
|
195
|
-
background: { type: "color", label: "Background", default: THEME.background },
|
|
196
|
-
color: { type: "color", label: "Icon colour", default: THEME.accent },
|
|
194
|
+
text: { type: "text", label: "Text", placeholder: "Defaults to the target", appearance: true },
|
|
195
|
+
background: { type: "color", label: "Background", default: THEME.background, appearance: true },
|
|
196
|
+
color: { type: "color", label: "Icon colour", default: THEME.accent, appearance: true },
|
|
197
197
|
},
|
|
198
198
|
run: ({ settings, deck }) => {
|
|
199
199
|
if (settings.to === "page") {
|
|
@@ -228,7 +228,7 @@ const pageName = defineAction({
|
|
|
228
228
|
background: { type: "color", label: "Background", default: THEME.background },
|
|
229
229
|
fontSize: { type: "number", label: "Text size", default: 20, min: 8, max: 60 },
|
|
230
230
|
},
|
|
231
|
-
|
|
231
|
+
display: true,
|
|
232
232
|
look: (s) => ({
|
|
233
233
|
background: s.background,
|
|
234
234
|
layers: [
|
|
@@ -288,7 +288,7 @@ const brightness = defineAction({
|
|
|
288
288
|
default: "10, 40, 70, 100",
|
|
289
289
|
visibleIf: { mode: "cycle" },
|
|
290
290
|
},
|
|
291
|
-
background: { type: "color", label: "Background", default: THEME.background },
|
|
291
|
+
background: { type: "color", label: "Background", default: THEME.background, appearance: true },
|
|
292
292
|
},
|
|
293
293
|
run: async ({ settings, deck }) => {
|
|
294
294
|
const before = deck.brightness();
|
|
@@ -317,7 +317,7 @@ const brightness = defineAction({
|
|
|
317
317
|
export default definePlugin({
|
|
318
318
|
id: "@sdeck/plugin-basics",
|
|
319
319
|
name: "Basics",
|
|
320
|
-
version: "1.
|
|
320
|
+
version: "1.1.0",
|
|
321
321
|
description: "Labels, a clock, the date, timers, a counter, page navigation and brightness.",
|
|
322
322
|
author: "sdeck",
|
|
323
323
|
actions: [label, clock, date, timer, stopwatch, counter, navigate, pageName, brightness],
|