@onsvisual/svelte-components 1.0.37 → 1.0.39

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.
@@ -1,3 +1,5 @@
1
+ <span class="ons-warning">This component is experimental</span>
2
+
1
3
  A component for presenting key facts and figures as a grid of "cards".
2
4
 
3
5
  Note: This component is experimental. Its attributes and options are likely to change. The intention is to include a range of simple chart types.
@@ -7,7 +7,7 @@
7
7
 
8
8
  /**
9
9
  * Type of button
10
- * @type {"button"|"sumbit"|"reset"}
10
+ * @type {"button"|"submit"|"reset"}
11
11
  */
12
12
  export let type = "button";
13
13
  /**
@@ -7,7 +7,7 @@ export default class Button extends SvelteComponentTyped<{
7
7
  href?: string | null | undefined;
8
8
  color?: string | null | undefined;
9
9
  download?: string | null | undefined;
10
- type?: "button" | "reset" | "sumbit" | undefined;
10
+ type?: "button" | "reset" | "submit" | undefined;
11
11
  variant?: "secondary" | "primary" | "ghost" | undefined;
12
12
  noScroll?: boolean | undefined;
13
13
  icon?: "search" | "arrow" | "carret" | "cross" | "external" | "signout" | "print" | "download" | "tick" | "pin" | "cog" | null | undefined;
@@ -35,7 +35,7 @@ declare const __propDef: {
35
35
  href?: string | null | undefined;
36
36
  color?: string | null | undefined;
37
37
  download?: string | null | undefined;
38
- type?: "button" | "reset" | "sumbit" | undefined;
38
+ type?: "button" | "reset" | "submit" | undefined;
39
39
  variant?: "secondary" | "primary" | "ghost" | undefined;
40
40
  noScroll?: boolean | undefined;
41
41
  icon?: "search" | "arrow" | "carret" | "cross" | "external" | "signout" | "print" | "download" | "tick" | "pin" | "cog" | null | undefined;
@@ -1,3 +1,5 @@
1
+ <span class="ons-warning">This component is experimental</span>
2
+
1
3
  Radio inputs dressed up as a button group.
2
4
 
3
5
  <!-- prettier-ignore -->
@@ -20,9 +20,9 @@
20
20
  export let value = null;
21
21
  /**
22
22
  * A label to describe the &lt;input&gt; element (expected for accessibility)
23
- * @type {string}
23
+ * @type {string|null}
24
24
  */
25
- export let label = "Enter some text";
25
+ export let label = null;
26
26
  /**
27
27
  * Visually hide the label
28
28
  * @type {boolean}
@@ -5,7 +5,7 @@ export default class Input extends SvelteComponentTyped<{
5
5
  cls?: string | null | undefined;
6
6
  id?: string | null | undefined;
7
7
  width?: number | undefined;
8
- label?: string | undefined;
8
+ label?: string | null | undefined;
9
9
  pattern?: string | null | undefined;
10
10
  name?: string | null | undefined;
11
11
  error?: boolean | undefined;
@@ -33,7 +33,7 @@ declare const __propDef: {
33
33
  cls?: string | null | undefined;
34
34
  id?: string | null | undefined;
35
35
  width?: number | undefined;
36
- label?: string | undefined;
36
+ label?: string | null | undefined;
37
37
  pattern?: string | null | undefined;
38
38
  name?: string | null | undefined;
39
39
  error?: boolean | undefined;
@@ -42,7 +42,7 @@
42
42
  export let autoClear = mode === "search";
43
43
  /**
44
44
  * A label to describe the element (expected for accessibility)
45
- * @type {string}
45
+ * @type {string|null}
46
46
  */
47
47
  export let label = mode === "search" ? "Type to select" : "Select an option";
48
48
  /**
@@ -4,7 +4,7 @@
4
4
  export default class Select extends SvelteComponentTyped<{
5
5
  cls?: string | null | undefined;
6
6
  id?: string | undefined;
7
- label?: string | undefined;
7
+ label?: string | null | undefined;
8
8
  name?: string | undefined;
9
9
  mode?: "default" | "search" | undefined;
10
10
  value?: object | undefined;
@@ -35,7 +35,7 @@ declare const __propDef: {
35
35
  props: {
36
36
  cls?: string | null | undefined;
37
37
  id?: string | undefined;
38
- label?: string | undefined;
38
+ label?: string | null | undefined;
39
39
  name?: string | undefined;
40
40
  mode?: "default" | "search" | undefined;
41
41
  value?: object | undefined;
@@ -20,7 +20,7 @@
20
20
  export let value = null;
21
21
  /**
22
22
  * A label to describe the &lt;textarea&gt; element (expected for accessibility)
23
- * @type {string}
23
+ * @type {string|null}
24
24
  */
25
25
  export let label = "Enter some text";
26
26
  /**
@@ -5,7 +5,7 @@ export default class Textarea extends SvelteComponentTyped<{
5
5
  cls?: string | null | undefined;
6
6
  id?: string | null | undefined;
7
7
  width?: number | undefined;
8
- label?: string | undefined;
8
+ label?: string | null | undefined;
9
9
  name?: string | null | undefined;
10
10
  value?: string | null | undefined;
11
11
  description?: string | null | undefined;
@@ -25,7 +25,7 @@ declare const __propDef: {
25
25
  cls?: string | null | undefined;
26
26
  id?: string | null | undefined;
27
27
  width?: number | undefined;
28
- label?: string | undefined;
28
+ label?: string | null | undefined;
29
29
  name?: string | null | undefined;
30
30
  value?: string | null | undefined;
31
31
  description?: string | null | undefined;
@@ -9,7 +9,7 @@
9
9
  let { id = "" } = $props();
10
10
  </script>
11
11
 
12
- {#if currentModalId === id && !showHelp}
12
+ {#if $currentModalId === id && !$showHelp}
13
13
  <div class="tool-control" role="tabpanel" aria-labelledby={`button-${id}`} id={`panel-${id}`}>
14
14
  <slot />
15
15
  </div>
@@ -1,3 +1,5 @@
1
+ <span class="ons-warning">This component is experimental</span>
2
+
1
3
  A toolbar component. Use `ToolbarsContainer` even if using one toolbar as it contains a store for all the IDs and the activeID.
2
4
 
3
5
  There's a slot on ToolbarButton if you want to put in custom help text otherwise, there's the prop `helpText`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onsvisual/svelte-components",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "npm run build:package && npm run build:docs",
@@ -86,4 +86,4 @@
86
86
  "keywords": [
87
87
  "svelte"
88
88
  ]
89
- }
89
+ }