@iroco/ui 1.0.0-4 → 1.0.0-5

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.
@@ -47,104 +47,7 @@ function typeAction(node) {
47
47
  {/if}
48
48
  </div>
49
49
 
50
- <style>.font-color-blue {
51
- color: #00b9ff;
52
- }
53
-
54
- .font-color-darkBlue {
55
- color: #211d28;
56
- }
57
-
58
- .font-color-nightBlue {
59
- color: #18151e;
60
- }
61
-
62
- .font-color-green {
63
- color: #00d692;
64
- }
65
-
66
- .font-color-red {
67
- color: #ff504d;
68
- }
69
-
70
- .font-color-yellow {
71
- color: #ffe032;
72
- }
73
-
74
- .font-color-beige {
75
- color: #f2ebe3;
76
- }
77
-
78
- .font-color-darkBeige {
79
- color: #a9a29e;
80
- }
81
-
82
- .font-color-mediumGrey {
83
- color: #464452;
84
- }
85
-
86
- .font-color-darkGrey {
87
- color: #33323a;
88
- }
89
-
90
- .font-color-lightGrey {
91
- color: #f5f5f5;
92
- }
93
-
94
- :root {
95
- --color-white-op-20: rgba(255, 255, 255, 0.2);
96
- --color-white-op-30: rgba(255, 255, 255, 0.3);
97
- --color-black-op-20: rgba(0, 0, 0, 0.2);
98
- --color-black-op-40: rgba(0, 0, 0, 0.4);
99
- --color-black-op-60: rgba(0, 0, 0, 0.6);
100
- --color-dark-blue-op-30: #211d284d;
101
- /* semantic colors */
102
- --color-primary-light: #82eec7;
103
- --color-primary: #00d692;
104
- --color-primary-bg: #00d69280;
105
- --color-primary-dark: #00a873;
106
- --color-secondary-light: #ffffff;
107
- --color-secondary: #f2ebe3;
108
- --color-secondary-dark: #a9a29e;
109
- /* feedback */
110
- --color-success: #00d692;
111
- --color-success-bg: #00d69280;
112
- --color-danger: #ff504d;
113
- --color-danger-bg: #ff504d80;
114
- --color-warning: #ffe032;
115
- --color-warning-bg: #ffe03280;
116
- /* typography */
117
- --color-text-light: #ffffff;
118
- --color-text: #f2ebe3;
119
- --color-text-op-50: #f2ebe380;
120
- --color-text-op-60: #f2ebe399;
121
- --color-text-dark: #464452;
122
- /* border */
123
- --color-border: #464452;
124
- /* body */
125
- --color-body: #211d28;
126
- /* forms */
127
- --form-element-border: var(--color-border);
128
- --form-element-bg: #f2ebe3;
129
- --form-text-placeholder: #a9a29e;
130
- /* buttons */
131
- --btn-primary-bg: #f2ebe3;
132
- --btn-primary-border: #18151e;
133
- --btn-primary-label: #f2ebe3;
134
- --dark-btn-primary-label: #f2ebe3;
135
- --dark-btn-primary-bg: #18151e;
136
- --btn-basic-label: #18151e;
137
- --btn-basic-bg: #f2ebe3;
138
- --btn-basic-border: #18151e;
139
- --btn-disabled-label: var(--color-black-op-60);
140
- --btn-disabled-bg: #a9a29e;
141
- --btn-disabled-border: var(--color-black-op-60);
142
- /* icons */
143
- --color-icon-primary: #a9a29e;
144
- --color-icon-secondary: inherit;
145
- }
146
-
147
- input,
50
+ <style>input,
148
51
  textarea {
149
52
  outline: none;
150
53
  text-decoration: none;
@@ -1,4 +1,4 @@
1
- @use './colors';
1
+ //@use './colors';
2
2
  @use './fonts';
3
3
  @use './containers';
4
4
  @use './constants';
@@ -1,63 +1,5 @@
1
- // Declarative colors
2
-
3
- $blue: #00b9ff;
4
- $darkBlue: #211d28;
5
- $nightBlue: #18151e;
6
- $greenLight: #82eec7;
7
- $green: #00d692;
8
- $greenDark: #00a873;
9
- $red: #ff504d;
10
- $yellow: #ffe032;
11
- $white: #ffffff;
12
- $beige: #f2ebe3;
13
- $darkBeige: #a9a29e;
14
- $mediumGrey: #464452;
15
- $darkGrey: #33323a;
16
- $lightGrey: #f5f5f5;
17
-
18
- .font-color-blue {
19
- color: $blue;
20
- }
21
-
22
- .font-color-darkBlue {
23
- color: $darkBlue;
24
- }
25
-
26
- .font-color-nightBlue {
27
- color: $nightBlue;
28
- }
29
-
30
- .font-color-green {
31
- color: $green;
32
- }
33
-
34
- .font-color-red {
35
- color: $red;
36
- }
37
-
38
- .font-color-yellow {
39
- color: $yellow;
40
- }
41
-
42
- .font-color-beige {
43
- color: $beige;
44
- }
45
-
46
- .font-color-darkBeige {
47
- color: $darkBeige;
48
- }
49
-
50
- .font-color-mediumGrey {
51
- color: $mediumGrey;
52
- }
53
-
54
- .font-color-darkGrey {
55
- color: $darkGrey;
56
- }
57
-
58
- .font-color-lightGrey {
59
- color: $lightGrey;
60
- }
1
+ // Import this file for Iroco colors
2
+ // Create your own theme by duplicating this one and importing it globally
61
3
 
62
4
  :root {
63
5
  --color-white-op-20: rgba(255, 255, 255, 0.2);
@@ -5,7 +5,7 @@
5
5
  justify-content: flex-start;
6
6
 
7
7
  > label {
8
- @include Arial(0.9em, $blue, bold);
8
+ @include Arial(0.9em, #00b9ff /*$blue*/, bold);
9
9
  letter-spacing: 0.05em;
10
10
  text-transform: uppercase;
11
11
  display: inline-block;
@@ -26,14 +26,14 @@
26
26
  margin-top: 15px;
27
27
 
28
28
  > span {
29
- @include Arial(0.9em, $red);
29
+ @include Arial(0.9em, var(--color-danger) /* red */);
30
30
  margin-left: 10px;
31
31
  }
32
32
  }
33
33
 
34
34
  > .warning {
35
35
  > span {
36
- color: $blue;
36
+ color: #00b9ff /*$blue*/;
37
37
  }
38
38
  }
39
39
  }
@@ -1,4 +1,4 @@
1
- @use './../colors';
1
+ //@use './../colors';
2
2
  .ui-fields-input {
3
3
  width: 100%;
4
4
  transition: width linear 100ms;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  > input {
49
- @include Arial(1em, colors.$darkBlue);
49
+ @include Arial(1em, #211d28); /* $darkBlue */
50
50
  flex: 1;
51
51
  padding: 10px 15px;
52
52
  text-overflow: ellipsis;
@@ -82,7 +82,7 @@
82
82
  -ms-user-select: none;
83
83
  user-select: none;
84
84
  flex-shrink: 0;
85
- border-top: solid colors.$beige 1px;
85
+ border-top: solid #f2ebe3 /*colors.$beige*/ 1px;
86
86
  background: white;
87
87
  transition: background linear 100ms;
88
88
 
@@ -92,14 +92,14 @@
92
92
 
93
93
  &:hover,
94
94
  &.selected {
95
- background: colors.$lightGrey;
95
+ background: #f5f5f5 /*lighGrey*/;
96
96
  }
97
97
  }
98
98
  }
99
99
  }
100
100
 
101
101
  > .instructions {
102
- @include Arial(1em, colors.$darkBeige);
102
+ @include Arial(1em, var(--color-secondary-dark) /*$darkBeige*/);
103
103
  margin-top: 10px;
104
104
  }
105
105
 
@@ -111,14 +111,14 @@
111
111
  margin-top: 15px;
112
112
 
113
113
  > span {
114
- @include Arial(0.9em, colors.$red);
114
+ @include Arial(0.9em, var(--color-danger) /*$red*/);
115
115
  margin-left: 10px;
116
116
  }
117
117
  }
118
118
 
119
119
  > .warning {
120
120
  > span {
121
- color: colors.$blue;
121
+ color: #00b9ff /*$blue*/;
122
122
  }
123
123
  }
124
124
 
@@ -1,4 +1,4 @@
1
- @use 'colors';
1
+ //@use 'colors';
2
2
 
3
3
  .iroco-ui-form {
4
4
  input,
@@ -1,4 +1,4 @@
1
- @use 'colors';
1
+ //@use 'colors';
2
2
  @use 'containers';
3
3
  @use 'fonts';
4
4
  @use 'forms';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.0.0-4",
3
+ "version": "1.0.0-5",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -38,6 +38,7 @@
38
38
  "@testing-library/user-event": "^14.5.2",
39
39
  "@typescript-eslint/eslint-plugin": "^6.21.0",
40
40
  "@typescript-eslint/parser": "^6.21.0",
41
+ "@vitest/ui": "^1.2.2",
41
42
  "eslint": "^8.56.0",
42
43
  "eslint-config-prettier": "^9.1.0",
43
44
  "eslint-plugin-storybook": "^0.6.15",