@iroco/ui 1.0.0-14 → 1.0.0-16
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/Button.svelte
CHANGED
|
@@ -4,12 +4,13 @@
|
|
|
4
4
|
export let disabled = false;
|
|
5
5
|
export let kind = "basic";
|
|
6
6
|
export let size = "regular";
|
|
7
|
+
export let fullWidth = false;
|
|
7
8
|
export let id;
|
|
8
9
|
</script>
|
|
9
10
|
|
|
10
11
|
<button
|
|
11
12
|
{id}
|
|
12
|
-
class={`iroco-ui-button iroco-ui-button--${size} iroco-ui-button--${kind}`}
|
|
13
|
+
class={`iroco-ui-button iroco-ui-button--${size} iroco-ui-button--${kind} ${fullWidth?'iroco-ui-button--full-width':''}`}
|
|
13
14
|
class:disabled
|
|
14
15
|
{type}
|
|
15
16
|
{disabled}
|
|
@@ -229,6 +230,9 @@ export let id;
|
|
|
229
230
|
.iroco-ui-button.disabled:hover, .iroco-ui-button:disabled:hover {
|
|
230
231
|
box-shadow: none;
|
|
231
232
|
}
|
|
233
|
+
.iroco-ui-button--full-width {
|
|
234
|
+
width: 100%;
|
|
235
|
+
}
|
|
232
236
|
|
|
233
237
|
.iroco-ui-link {
|
|
234
238
|
background: none;
|
package/dist/Button.svelte.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { SvelteComponent } from "svelte";
|
|
2
2
|
declare const __propDef: {
|
|
3
3
|
props: {
|
|
4
|
-
type?:
|
|
4
|
+
type?: 'button' | 'reset' | 'submit' | null | undefined;
|
|
5
5
|
disabled?: boolean | undefined;
|
|
6
6
|
kind?: "success" | "danger" | "dark" | "basic" | undefined;
|
|
7
7
|
size?: "small" | "regular" | undefined;
|
|
8
|
+
fullWidth?: boolean | undefined;
|
|
8
9
|
id: string;
|
|
9
10
|
};
|
|
10
11
|
events: {
|
|
@@ -20,9 +21,9 @@ export type ButtonProps = typeof __propDef.props;
|
|
|
20
21
|
export type ButtonEvents = typeof __propDef.events;
|
|
21
22
|
export type ButtonSlots = typeof __propDef.slots;
|
|
22
23
|
export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, ButtonSlots> {
|
|
23
|
-
get type():
|
|
24
|
+
get type(): "button" | "reset" | "submit" | null | undefined;
|
|
24
25
|
/**accessor*/
|
|
25
|
-
set type(_:
|
|
26
|
+
set type(_: "button" | "reset" | "submit" | null | undefined);
|
|
26
27
|
get disabled(): boolean | undefined;
|
|
27
28
|
/**accessor*/
|
|
28
29
|
set disabled(_: boolean | undefined);
|
|
@@ -32,6 +33,9 @@ export default class Button extends SvelteComponent<ButtonProps, ButtonEvents, B
|
|
|
32
33
|
get size(): "small" | "regular" | undefined;
|
|
33
34
|
/**accessor*/
|
|
34
35
|
set size(_: "small" | "regular" | undefined);
|
|
36
|
+
get fullWidth(): boolean | undefined;
|
|
37
|
+
/**accessor*/
|
|
38
|
+
set fullWidth(_: boolean | undefined);
|
|
35
39
|
get id(): string;
|
|
36
40
|
/**accessor*/
|
|
37
41
|
set id(_: string);
|
package/dist/ImageArticle.svelte
CHANGED
package/dist/NavBar.svelte
CHANGED
package/dist/TextInput.svelte
CHANGED
package/dist/scss/button.scss
CHANGED