@geoffcox/sterling-svelte 0.0.17 → 0.0.18
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/Checkbox.svelte +11 -6
- package/Checkbox.svelte.d.ts +2 -1
- package/Field.svelte +257 -0
- package/Field.svelte.d.ts +63 -0
- package/Field.types.d.ts +1 -0
- package/Field.types.js +1 -0
- package/Input.svelte +58 -72
- package/Input.svelte.d.ts +8 -3
- package/Label.svelte +5 -6
- package/Label.svelte.d.ts +0 -1
- package/List.svelte +47 -78
- package/List.svelte.d.ts +0 -6
- package/ListItem.svelte +0 -1
- package/Progress.svelte +20 -44
- package/Progress.svelte.d.ts +1 -3
- package/Progress.types.d.ts +1 -1
- package/Radio.svelte +19 -14
- package/Radio.svelte.d.ts +7 -2
- package/Select.svelte +30 -42
- package/Select.svelte.d.ts +1 -5
- package/Slider.svelte +68 -89
- package/Slider.svelte.d.ts +1 -3
- package/Switch.svelte +7 -5
- package/TextArea.svelte +49 -90
- package/TextArea.svelte.d.ts +3 -6
- package/Tree.svelte +12 -40
- package/Tree.svelte.d.ts +0 -1
- package/index.d.ts +3 -1
- package/index.js +2 -1
- package/package.json +3 -2
- package/theme/darkTheme.js +14 -7
- package/theme/lightTheme.js +17 -10
- package/Portal.svelte +0 -14
- package/Portal.svelte.d.ts +0 -21
package/theme/darkTheme.js
CHANGED
|
@@ -70,15 +70,22 @@ export const darkTheme = {
|
|
|
70
70
|
'--stsv-Input__border-color--selected': neutrals.neutral98,
|
|
71
71
|
'--stsv-Input__color--selected': neutrals.neutral100,
|
|
72
72
|
// ----- Display ----- //
|
|
73
|
-
'--stsv-Display__background-color': neutrals.
|
|
73
|
+
'--stsv-Display__background-color': neutrals.neutral20,
|
|
74
74
|
'--stsv-Display__border-color': neutrals.neutral92,
|
|
75
|
-
'--stsv-Display__color': neutrals.
|
|
75
|
+
'--stsv-Display__color': neutrals.neutral80,
|
|
76
76
|
'--stsv-Display__color--subtle': neutrals.neutral96,
|
|
77
77
|
'--stsv-Display__color--faint': neutrals.neutral45,
|
|
78
78
|
'--stsv-Display__color--disabled': neutrals.neutral45,
|
|
79
|
-
'--stsv-
|
|
80
|
-
'--stsv-
|
|
81
|
-
'--stsv-
|
|
82
|
-
'--stsv-
|
|
83
|
-
'--stsv-
|
|
79
|
+
'--stsv-Info__background-color': 'hsl(198, 100%, 10%)',
|
|
80
|
+
'--stsv-Info__border-color': 'hsl(198, 100%, 40%)',
|
|
81
|
+
'--stsv-Info__color': 'hsl(198, 80%, 50%)',
|
|
82
|
+
'--stsv-Success__background-color': 'hsl(146, 100%, 10%)',
|
|
83
|
+
'--stsv-Success__border-color': 'hsl(146, 100%, 30%)',
|
|
84
|
+
'--stsv-Success__color': 'hsl(146, 100%, 40%)',
|
|
85
|
+
'--stsv-Warning__background-color': 'hsl(39, 100%, 10%)',
|
|
86
|
+
'--stsv-Warning__border-color': 'hsl(39, 100%, 45%)',
|
|
87
|
+
'--stsv-Warning__color': 'hsl(39, 100%, 50%)',
|
|
88
|
+
'--stsv-Error__background-color': 'hsl(5, 100%, 10%)',
|
|
89
|
+
'--stsv-Error__border-color': 'hsl(5, 100%, 40%)',
|
|
90
|
+
'--stsv-Error__color': 'hsl(5, 100%, 50%)'
|
|
84
91
|
};
|
package/theme/lightTheme.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { neutrals } from './colors';
|
|
2
2
|
export const lightTheme = {
|
|
3
|
-
// ----- Common ---- //
|
|
3
|
+
// ----- Common (18) ---- //
|
|
4
4
|
'--stsv-Common__background-color': neutrals.neutral100,
|
|
5
5
|
'--stsv-Common__border-color': neutrals.neutral60,
|
|
6
6
|
'--stsv-Common__border-radius': '0',
|
|
@@ -31,7 +31,7 @@ export const lightTheme = {
|
|
|
31
31
|
'--stsv-Layer__color--2': neutrals.neutral15,
|
|
32
32
|
'--stsv-Layer__background-color--3': neutrals.neutral92,
|
|
33
33
|
'--stsv-Layer__color--3': neutrals.neutral15,
|
|
34
|
-
// ----- Button ----- //
|
|
34
|
+
// ----- Button (15) ----- //
|
|
35
35
|
'--stsv-Button__background-color': neutrals.neutral96,
|
|
36
36
|
'--stsv-Button__border-color': neutrals.neutral60,
|
|
37
37
|
'--stsv-Button__border-radius': '8px',
|
|
@@ -50,7 +50,7 @@ export const lightTheme = {
|
|
|
50
50
|
'--stsv-Button__background-color--focus': neutrals.neutral96,
|
|
51
51
|
'--stsv-Button__border-color--focus': neutrals.neutral0,
|
|
52
52
|
'--stsv-Button__color--focus': neutrals.neutral15,
|
|
53
|
-
// ----- Input ----- //
|
|
53
|
+
// ----- Input (15) ----- //
|
|
54
54
|
'--stsv-Input__background-color': neutrals.neutral98,
|
|
55
55
|
'--stsv-Input__border-color': neutrals.neutral60,
|
|
56
56
|
'--stsv-Input__border-radius': '3px',
|
|
@@ -71,14 +71,21 @@ export const lightTheme = {
|
|
|
71
71
|
'--stsv-Input__color--selected': neutrals.neutral15,
|
|
72
72
|
// ----- Display ----- //
|
|
73
73
|
'--stsv-Display__background-color': neutrals.neutral92,
|
|
74
|
-
'--stsv-Display__border-color': neutrals.
|
|
74
|
+
'--stsv-Display__border-color': neutrals.neutral30,
|
|
75
75
|
'--stsv-Display__color': neutrals.neutral15,
|
|
76
|
-
'--stsv-Display__color--subtle': neutrals.
|
|
76
|
+
'--stsv-Display__color--subtle': neutrals.neutral45,
|
|
77
77
|
'--stsv-Display__color--faint': neutrals.neutral85,
|
|
78
78
|
'--stsv-Display__color--disabled': neutrals.neutral85,
|
|
79
|
-
'--stsv-
|
|
80
|
-
'--stsv-
|
|
81
|
-
'--stsv-
|
|
82
|
-
'--stsv-
|
|
83
|
-
'--stsv-
|
|
79
|
+
'--stsv-Info__background-color': 'hsl(198, 100%, 90%)',
|
|
80
|
+
'--stsv-Info__border-color': 'hsl(198, 100%, 40%)',
|
|
81
|
+
'--stsv-Info__color': 'hsl(198, 80%, 33%)',
|
|
82
|
+
'--stsv-Success__background-color': 'hsl(146, 100%, 90%)',
|
|
83
|
+
'--stsv-Success__border-color': 'hsl(146, 100%, 30%)',
|
|
84
|
+
'--stsv-Success__color': 'hsl(146, 80%, 25%)',
|
|
85
|
+
'--stsv-Warning__background-color': 'hsl(39, 100%, 80%)',
|
|
86
|
+
'--stsv-Warning__border-color': 'hsl(39, 100%, 45%)',
|
|
87
|
+
'--stsv-Warning__color': 'hsl(39, 100%, 25%)',
|
|
88
|
+
'--stsv-Error__background-color': 'hsl(5, 100%, 90%)',
|
|
89
|
+
'--stsv-Error__border-color': 'hsl(5, 100%, 40%)',
|
|
90
|
+
'--stsv-Error__color': 'hsl(5, 80%, 40%)'
|
|
84
91
|
};
|
package/Portal.svelte
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script>import { portal } from "./actions/portal";
|
|
2
|
-
export let target = document.body;
|
|
3
|
-
</script>
|
|
4
|
-
|
|
5
|
-
<div class="portal" use:portal={{ target }}>
|
|
6
|
-
<slot {...$$restProps} />
|
|
7
|
-
</div>
|
|
8
|
-
|
|
9
|
-
<style>
|
|
10
|
-
.portal {
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow: visible;
|
|
13
|
-
}
|
|
14
|
-
</style>
|
package/Portal.svelte.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SvelteComponentTyped } from "svelte";
|
|
2
|
-
declare const __propDef: {
|
|
3
|
-
props: {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
target?: HTMLElement | undefined;
|
|
6
|
-
};
|
|
7
|
-
events: {
|
|
8
|
-
[evt: string]: CustomEvent<any>;
|
|
9
|
-
};
|
|
10
|
-
slots: {
|
|
11
|
-
default: {
|
|
12
|
-
[x: string]: any;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export type PortalProps = typeof __propDef.props;
|
|
17
|
-
export type PortalEvents = typeof __propDef.events;
|
|
18
|
-
export type PortalSlots = typeof __propDef.slots;
|
|
19
|
-
export default class Portal extends SvelteComponentTyped<PortalProps, PortalEvents, PortalSlots> {
|
|
20
|
-
}
|
|
21
|
-
export {};
|