@iroco/ui 1.0.0-2 → 1.0.0-3
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/Alert.svelte +1 -1
- package/dist/Button.stories.svelte +2 -5
- package/dist/Button.svelte +4 -1
- package/dist/NavBar.svelte +4 -1
- package/dist/Navigation.stories.svelte +8 -10
- package/dist/Navigation.stories.svelte.d.ts +0 -4
- package/dist/Navigation.svelte +2 -2
- package/dist/NumberInput.svelte +1 -1
- package/dist/TextInput.svelte +1 -1
- package/dist/scss/button.scss +18 -8
- package/dist/scss/check.scss +1 -0
- package/dist/scss/colors.scss +47 -0
- package/dist/scss/fields/_input.scss +10 -13
- package/dist/scss/forms.scss +2 -2
- package/dist/scss/iroco.scss +3 -1
- package/package.json +1 -1
package/dist/Alert.svelte
CHANGED
|
@@ -34,9 +34,6 @@
|
|
|
34
34
|
</Button>
|
|
35
35
|
</Template>
|
|
36
36
|
|
|
37
|
+
<Story name="Default"></Story>
|
|
38
|
+
<Story name="Success" args={{ kind: 'success' }} />
|
|
37
39
|
<Story name="Danger" args={{ kind: 'danger' }} />
|
|
38
|
-
|
|
39
|
-
<!-- Dynamic snippet should be disabled for this story -->
|
|
40
|
-
<Story name="Button No Args">
|
|
41
|
-
<Button>Label</Button>
|
|
42
|
-
</Story>
|
package/dist/Button.svelte
CHANGED
|
@@ -237,6 +237,7 @@ export let node;
|
|
|
237
237
|
border-radius: 0.3em;
|
|
238
238
|
}
|
|
239
239
|
.iroco-ui-button--basic {
|
|
240
|
+
color: #18151e;
|
|
240
241
|
background: #f2ebe3;
|
|
241
242
|
border: 1px solid #18151e;
|
|
242
243
|
}
|
|
@@ -267,7 +268,9 @@ export let node;
|
|
|
267
268
|
box-shadow: none;
|
|
268
269
|
}
|
|
269
270
|
.iroco-ui-button.disabled {
|
|
270
|
-
background-color: #
|
|
271
|
+
background-color: #a9a29e;
|
|
272
|
+
color: #33323a;
|
|
273
|
+
border-color: #464452;
|
|
271
274
|
cursor: default;
|
|
272
275
|
}
|
|
273
276
|
.iroco-ui-button.disabled:hover {
|
package/dist/NavBar.svelte
CHANGED
|
@@ -523,6 +523,7 @@ $:
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
.iroco-ui-button--basic {
|
|
526
|
+
color: #18151e;
|
|
526
527
|
background: #f2ebe3;
|
|
527
528
|
border: 1px solid #18151e;
|
|
528
529
|
}
|
|
@@ -562,7 +563,9 @@ $:
|
|
|
562
563
|
}
|
|
563
564
|
|
|
564
565
|
.iroco-ui-button.disabled {
|
|
565
|
-
background-color: #
|
|
566
|
+
background-color: #a9a29e;
|
|
567
|
+
color: #33323a;
|
|
568
|
+
border-color: #464452;
|
|
566
569
|
cursor: default;
|
|
567
570
|
}
|
|
568
571
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script context="module">
|
|
2
2
|
import Navigation from './Navigation.svelte';
|
|
3
|
-
import { NavigationItem } from './definition';
|
|
3
|
+
import { NavigationItem, NavigationItemType } from './definition';
|
|
4
4
|
|
|
5
5
|
export const meta = {
|
|
6
6
|
title: 'Navigation',
|
|
@@ -21,12 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
},
|
|
24
|
-
args: {
|
|
25
|
-
navigationItems: [
|
|
26
|
-
new NavigationItem('About', `/about`),
|
|
27
|
-
new NavigationItem('Foo', `/foo`),
|
|
28
|
-
new NavigationItem('Bar', `/bar`)]
|
|
29
|
-
}
|
|
30
24
|
};
|
|
31
25
|
</script>
|
|
32
26
|
|
|
@@ -37,9 +31,13 @@
|
|
|
37
31
|
<Template let:args>
|
|
38
32
|
<Navigation {...args}
|
|
39
33
|
navigationItems={[
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
34
|
+
new NavigationItem('About', `/about`),
|
|
35
|
+
new NavigationItem('Foo', `/foo`),
|
|
36
|
+
new NavigationItem('Bar', `/bar`),
|
|
37
|
+
new NavigationItem('Button', `/bar`, NavigationItemType.BUTTON),
|
|
38
|
+
new NavigationItem('Anchor', `/bar`, NavigationItemType.ANCHOR),
|
|
39
|
+
new NavigationItem('Form', `/bar`, NavigationItemType.FORM)
|
|
40
|
+
]}>
|
|
43
41
|
|
|
44
42
|
</Navigation>
|
|
45
43
|
</Template>
|
|
@@ -32,9 +32,6 @@ export namespace meta {
|
|
|
32
32
|
export { control_3 as control };
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
export namespace args {
|
|
36
|
-
let navigationItems: NavigationItem[];
|
|
37
|
-
}
|
|
38
35
|
}
|
|
39
36
|
/** @typedef {typeof __propDef.props} NavigationProps */
|
|
40
37
|
/** @typedef {typeof __propDef.events} NavigationEvents */
|
|
@@ -49,7 +46,6 @@ export type NavigationProps = typeof __propDef.props;
|
|
|
49
46
|
export type NavigationEvents = typeof __propDef.events;
|
|
50
47
|
export type NavigationSlots = typeof __propDef.slots;
|
|
51
48
|
import Navigation from './Navigation.svelte';
|
|
52
|
-
import { NavigationItem } from './definition';
|
|
53
49
|
import { SvelteComponent } from "svelte";
|
|
54
50
|
declare const __propDef: {
|
|
55
51
|
props: {
|
package/dist/Navigation.svelte
CHANGED
|
@@ -319,7 +319,7 @@ let showMenu = false;
|
|
|
319
319
|
.navigation--mobile__button {
|
|
320
320
|
background-color: transparent;
|
|
321
321
|
border: none;
|
|
322
|
-
color: #
|
|
322
|
+
color: #a9a29e;
|
|
323
323
|
}
|
|
324
324
|
.navigation--mobile__title-container {
|
|
325
325
|
display: flex;
|
|
@@ -331,5 +331,5 @@ let showMenu = false;
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.navigation__title-link, .navigation-mobile__title-link {
|
|
334
|
-
color:
|
|
334
|
+
color: #ffffff;
|
|
335
335
|
}</style>
|
package/dist/NumberInput.svelte
CHANGED
package/dist/TextInput.svelte
CHANGED
package/dist/scss/button.scss
CHANGED
|
@@ -19,23 +19,29 @@
|
|
|
19
19
|
border-radius: constants.$border-radius;
|
|
20
20
|
|
|
21
21
|
&--basic {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
color: colors.$buttonSecondaryLabel;
|
|
23
|
+
background: colors.$buttonSecondaryBackground;
|
|
24
|
+
border: 1px solid colors.$buttonSecondaryBorder;
|
|
24
25
|
}
|
|
26
|
+
|
|
25
27
|
&--dark {
|
|
26
|
-
background: colors.$
|
|
27
|
-
color: colors.$
|
|
28
|
+
background: colors.$buttonPrimaryBackgroundDark;
|
|
29
|
+
color: colors.$buttonPrimaryLabelDark;
|
|
28
30
|
}
|
|
31
|
+
|
|
29
32
|
&--success {
|
|
30
|
-
background: colors.$
|
|
33
|
+
background: colors.$success;
|
|
31
34
|
color: colors.$nightBlue;
|
|
32
35
|
}
|
|
36
|
+
|
|
33
37
|
&--danger {
|
|
34
|
-
background: colors.$
|
|
38
|
+
background: colors.$danger;
|
|
35
39
|
}
|
|
40
|
+
|
|
36
41
|
&--regular {
|
|
37
42
|
padding: 1em 2em;
|
|
38
43
|
}
|
|
44
|
+
|
|
39
45
|
&--small {
|
|
40
46
|
padding: 0.5em 1em;
|
|
41
47
|
}
|
|
@@ -45,6 +51,7 @@
|
|
|
45
51
|
&--danger:hover {
|
|
46
52
|
box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
|
|
47
53
|
}
|
|
54
|
+
|
|
48
55
|
&--dark:hover {
|
|
49
56
|
box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
|
|
50
57
|
}
|
|
@@ -54,8 +61,11 @@
|
|
|
54
61
|
}
|
|
55
62
|
|
|
56
63
|
&.disabled {
|
|
57
|
-
background-color: colors.$
|
|
64
|
+
background-color: colors.$buttonDisabledBackground;
|
|
65
|
+
color: colors.$buttonDisabledLabel;
|
|
66
|
+
border-color: colors.$buttonDisabledBorder;
|
|
58
67
|
cursor: default;
|
|
68
|
+
|
|
59
69
|
&:hover {
|
|
60
70
|
box-shadow: none;
|
|
61
71
|
}
|
|
@@ -66,6 +76,6 @@
|
|
|
66
76
|
background: none;
|
|
67
77
|
border: none;
|
|
68
78
|
font-family: fonts.$arial;
|
|
69
|
-
color: colors.$
|
|
79
|
+
color: colors.$text;
|
|
70
80
|
cursor: pointer;
|
|
71
81
|
}
|
package/dist/scss/check.scss
CHANGED
package/dist/scss/colors.scss
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
// Declarative colors
|
|
2
|
+
|
|
1
3
|
$blue: #00b9ff;
|
|
2
4
|
$darkBlue: #211d28;
|
|
3
5
|
$nightBlue: #18151e;
|
|
4
6
|
$green: #00d692;
|
|
5
7
|
$red: #ff504d;
|
|
6
8
|
$yellow: #ffe032;
|
|
9
|
+
$white: #ffffff;
|
|
7
10
|
$beige: #f2ebe3;
|
|
8
11
|
$darkBeige: #a9a29e;
|
|
9
12
|
$mediumGrey: #464452;
|
|
@@ -13,33 +16,77 @@ $lightGrey: #f5f5f5;
|
|
|
13
16
|
.font-color-blue {
|
|
14
17
|
color: $blue;
|
|
15
18
|
}
|
|
19
|
+
|
|
16
20
|
.font-color-darkBlue {
|
|
17
21
|
color: $darkBlue;
|
|
18
22
|
}
|
|
23
|
+
|
|
19
24
|
.font-color-nightBlue {
|
|
20
25
|
color: $nightBlue;
|
|
21
26
|
}
|
|
27
|
+
|
|
22
28
|
.font-color-green {
|
|
23
29
|
color: $green;
|
|
24
30
|
}
|
|
31
|
+
|
|
25
32
|
.font-color-red {
|
|
26
33
|
color: $red;
|
|
27
34
|
}
|
|
35
|
+
|
|
28
36
|
.font-color-yellow {
|
|
29
37
|
color: $yellow;
|
|
30
38
|
}
|
|
39
|
+
|
|
31
40
|
.font-color-beige {
|
|
32
41
|
color: $beige;
|
|
33
42
|
}
|
|
43
|
+
|
|
34
44
|
.font-color-darkBeige {
|
|
35
45
|
color: $darkBeige;
|
|
36
46
|
}
|
|
47
|
+
|
|
37
48
|
.font-color-mediumGrey {
|
|
38
49
|
color: $mediumGrey;
|
|
39
50
|
}
|
|
51
|
+
|
|
40
52
|
.font-color-darkGrey {
|
|
41
53
|
color: $darkGrey;
|
|
42
54
|
}
|
|
55
|
+
|
|
43
56
|
.font-color-lightGrey {
|
|
44
57
|
color: $lightGrey;
|
|
45
58
|
}
|
|
59
|
+
|
|
60
|
+
// Semantic colors
|
|
61
|
+
|
|
62
|
+
$primary: $green;
|
|
63
|
+
|
|
64
|
+
$success: $green;
|
|
65
|
+
$danger: $red;
|
|
66
|
+
$warning: $yellow;
|
|
67
|
+
|
|
68
|
+
$background: $darkBlue;
|
|
69
|
+
$text: $beige;
|
|
70
|
+
$textLight: $white;
|
|
71
|
+
|
|
72
|
+
$iconPrimary: $darkBeige;
|
|
73
|
+
$border: $mediumGrey;
|
|
74
|
+
|
|
75
|
+
$formElementBackground: $beige;
|
|
76
|
+
$formElementBorder: $beige;
|
|
77
|
+
$formTextPlaceholder: $beige;
|
|
78
|
+
|
|
79
|
+
$buttonPrimaryLabel: $beige;
|
|
80
|
+
$buttonPrimaryBackground: $primary;
|
|
81
|
+
$buttonPrimaryBorder: $nightBlue;
|
|
82
|
+
|
|
83
|
+
$buttonPrimaryBackgroundDark: $nightBlue;
|
|
84
|
+
$buttonPrimaryLabelDark: $beige;
|
|
85
|
+
|
|
86
|
+
$buttonSecondaryLabel: $nightBlue;
|
|
87
|
+
$buttonSecondaryBackground: $beige;
|
|
88
|
+
$buttonSecondaryBorder: $nightBlue;
|
|
89
|
+
|
|
90
|
+
$buttonDisabledLabel: $darkGrey;
|
|
91
|
+
$buttonDisabledBackground: $darkBeige;
|
|
92
|
+
$buttonDisabledBorder: $mediumGrey;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use './../colors';
|
|
1
2
|
.ui-fields-input {
|
|
2
3
|
width: 100%;
|
|
3
4
|
transition: width linear 100ms;
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
left: 0;
|
|
37
38
|
width: 0;
|
|
38
39
|
height: 3px;
|
|
39
|
-
background:
|
|
40
|
+
background: colors.$green;
|
|
40
41
|
transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
41
42
|
}
|
|
42
43
|
|
|
@@ -45,7 +46,7 @@
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
> input {
|
|
48
|
-
@include Arial(1em,
|
|
49
|
+
@include Arial(1em, colors.$darkBlue);
|
|
49
50
|
flex: 1;
|
|
50
51
|
padding: 10px 15px;
|
|
51
52
|
text-overflow: ellipsis;
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
overflow: hidden;
|
|
54
55
|
|
|
55
56
|
&::placeholder {
|
|
56
|
-
color: rgba(
|
|
57
|
+
color: rgba(colors.$darkBlue, 0.3);
|
|
57
58
|
font-style: italic;
|
|
58
59
|
}
|
|
59
60
|
}
|
|
@@ -82,7 +83,7 @@
|
|
|
82
83
|
-ms-user-select: none;
|
|
83
84
|
user-select: none;
|
|
84
85
|
flex-shrink: 0;
|
|
85
|
-
border-top: solid
|
|
86
|
+
border-top: solid colors.$beige 1px;
|
|
86
87
|
background: white;
|
|
87
88
|
transition: background linear 100ms;
|
|
88
89
|
|
|
@@ -92,14 +93,14 @@
|
|
|
92
93
|
|
|
93
94
|
&:hover,
|
|
94
95
|
&.selected {
|
|
95
|
-
background:
|
|
96
|
+
background: colors.$lightGrey;
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
101
102
|
> .instructions {
|
|
102
|
-
@include Arial(1em,
|
|
103
|
+
@include Arial(1em, colors.$darkBeige);
|
|
103
104
|
margin-top: 10px;
|
|
104
105
|
}
|
|
105
106
|
|
|
@@ -111,14 +112,14 @@
|
|
|
111
112
|
margin-top: 15px;
|
|
112
113
|
|
|
113
114
|
> span {
|
|
114
|
-
@include Arial(0.9em,
|
|
115
|
+
@include Arial(0.9em, colors.$red);
|
|
115
116
|
margin-left: 10px;
|
|
116
117
|
}
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
> .warning {
|
|
120
121
|
> span {
|
|
121
|
-
color:
|
|
122
|
+
color: colors.$blue;
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
|
|
@@ -137,11 +138,7 @@
|
|
|
137
138
|
|
|
138
139
|
&.dark {
|
|
139
140
|
> .container {
|
|
140
|
-
background:
|
|
141
|
-
|
|
142
|
-
&:after {
|
|
143
|
-
//background: $blue;
|
|
144
|
-
}
|
|
141
|
+
background: colors.$background;
|
|
145
142
|
|
|
146
143
|
> input {
|
|
147
144
|
padding: 15px 20px;
|
package/dist/scss/forms.scss
CHANGED
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
> input {
|
|
15
15
|
color: colors.$beige;
|
|
16
|
-
background: colors.$
|
|
17
|
-
border: 1px solid colors.$
|
|
16
|
+
background: colors.$background;
|
|
17
|
+
border: 1px solid colors.$border;
|
|
18
18
|
padding: 1em 1.5em;
|
|
19
19
|
text-overflow: ellipsis;
|
|
20
20
|
white-space: nowrap;
|
package/dist/scss/iroco.scss
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
@use 'fonts';
|
|
3
3
|
@use 'style';
|
|
4
4
|
|
|
5
|
+
/** @deprectated : does not seem to be used anywhere */
|
|
6
|
+
|
|
5
7
|
*,
|
|
6
8
|
*::before,
|
|
7
9
|
*::after {
|
|
@@ -31,6 +33,6 @@ html {
|
|
|
31
33
|
-webkit-font-smoothing: antialiased;
|
|
32
34
|
-moz-osx-font-smoothing: grayscale;
|
|
33
35
|
font-kerning: normal;
|
|
34
|
-
background: colors.$
|
|
36
|
+
background: colors.$background;
|
|
35
37
|
}
|
|
36
38
|
}
|