@iroco/ui 0.21.0 → 0.50.1

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.
Files changed (94) hide show
  1. package/Alert.svelte +72 -0
  2. package/Alert.svelte.d.ts +18 -0
  3. package/{lib/iroco.css → Button.svelte} +69 -88
  4. package/Button.svelte.d.ts +43 -0
  5. package/DataTable.svelte +94 -0
  6. package/DataTable.svelte.d.ts +27 -0
  7. package/{src/IconBurger.svelte → IconBurger.svelte} +2 -3
  8. package/IconBurger.svelte.d.ts +17 -0
  9. package/{src/IconClose.svelte → IconClose.svelte} +2 -3
  10. package/IconClose.svelte.d.ts +17 -0
  11. package/{src/IconFloppyDisk.svelte → IconFloppyDisk.svelte} +3 -4
  12. package/IconFloppyDisk.svelte.d.ts +18 -0
  13. package/{src/IconInfo.svelte → IconInfo.svelte} +2 -3
  14. package/IconInfo.svelte.d.ts +17 -0
  15. package/{src/IconIrocoLogo.svelte → IconIrocoLogo.svelte} +2 -3
  16. package/IconIrocoLogo.svelte.d.ts +17 -0
  17. package/IconMastodon.svelte +19 -0
  18. package/IconMastodon.svelte.d.ts +18 -0
  19. package/{src/IconMoreSign.svelte → IconMoreSign.svelte} +2 -3
  20. package/IconMoreSign.svelte.d.ts +17 -0
  21. package/{src/IconTrashCan.svelte → IconTrashCan.svelte} +4 -11
  22. package/IconTrashCan.svelte.d.ts +18 -0
  23. package/IrocoLogo.svelte +49 -0
  24. package/IrocoLogo.svelte.d.ts +19 -0
  25. package/{src/Loader.svelte → Loader.svelte} +1 -2
  26. package/Loader.svelte.d.ts +14 -0
  27. package/NavBar.svelte +669 -0
  28. package/NavBar.svelte.d.ts +21 -0
  29. package/Navigation.svelte +325 -0
  30. package/Navigation.svelte.d.ts +19 -0
  31. package/NumberInput.svelte +117 -0
  32. package/NumberInput.svelte.d.ts +25 -0
  33. package/NumberInputSized.svelte +4 -0
  34. package/NumberInputSized.svelte.d.ts +14 -0
  35. package/README.md +21 -31
  36. package/RadioButton.svelte +93 -0
  37. package/RadioButton.svelte.d.ts +23 -0
  38. package/RadioButtonTest.svelte +10 -0
  39. package/RadioButtonTest.svelte.d.ts +19 -0
  40. package/SlottedComponentWrapper.svelte +7 -0
  41. package/SlottedComponentWrapper.svelte.d.ts +23 -0
  42. package/TextInput.svelte +148 -0
  43. package/TextInput.svelte.d.ts +30 -0
  44. package/{src/TopBar.svelte → TopBar.svelte} +0 -0
  45. package/TopBar.svelte.d.ts +23 -0
  46. package/definition.d.ts +28 -0
  47. package/definition.js +35 -0
  48. package/index.d.ts +18 -0
  49. package/index.js +18 -0
  50. package/package.json +71 -113
  51. package/scss/button.scss +57 -55
  52. package/scss/check.scss +45 -46
  53. package/scss/colors.scss +39 -17
  54. package/scss/constants.scss +1 -1
  55. package/scss/containers.scss +126 -130
  56. package/scss/fields/_checkbox.scss +37 -42
  57. package/scss/fields/_input.scss +160 -169
  58. package/scss/fonts.scss +7 -7
  59. package/scss/forms.scss +53 -55
  60. package/scss/iroco.scss +22 -22
  61. package/scss/layouts.scss +21 -7
  62. package/scss/loader.scss +18 -16
  63. package/scss/style.scss +5 -5
  64. package/lib/button.scss +0 -61
  65. package/lib/check.scss +0 -48
  66. package/lib/colors.scss +0 -23
  67. package/lib/constants.scss +0 -1
  68. package/lib/containers.scss +0 -226
  69. package/lib/fields/_checkbox.scss +0 -44
  70. package/lib/fields/_input.scss +0 -171
  71. package/lib/fields/_style.scss +0 -2
  72. package/lib/fonts.scss +0 -11
  73. package/lib/forms.scss +0 -67
  74. package/lib/index.js +0 -5816
  75. package/lib/index.min.js +0 -330
  76. package/lib/index.mjs +0 -5789
  77. package/lib/iroco.css.map +0 -1
  78. package/lib/iroco.scss +0 -37
  79. package/lib/layouts.scss +0 -7
  80. package/lib/loader.scss +0 -20
  81. package/lib/style.scss +0 -5
  82. package/src/Alert.svelte +0 -34
  83. package/src/Button.svelte +0 -24
  84. package/src/DataTable.svelte +0 -72
  85. package/src/Icon.svelte +0 -29
  86. package/src/IconMastodon.svelte +0 -13
  87. package/src/IrocoLogo.svelte +0 -45
  88. package/src/NavBar.svelte +0 -154
  89. package/src/Navigation.svelte +0 -107
  90. package/src/NumberInput.svelte +0 -23
  91. package/src/RadioButton.svelte +0 -56
  92. package/src/TextInput.svelte +0 -121
  93. package/src/definition.ts +0 -30
  94. package/src/index.ts +0 -21
package/scss/style.scss CHANGED
@@ -1,5 +1,5 @@
1
- @use "colors";
2
- @use "containers";
3
- @use "fonts";
4
- @use "forms";
5
- @use "layouts";
1
+ @use 'colors';
2
+ @use 'containers';
3
+ @use 'fonts';
4
+ @use 'forms';
5
+ @use 'layouts';
package/lib/button.scss DELETED
@@ -1,61 +0,0 @@
1
- @use '../scss/colors';
2
- @use '../scss/fonts';
3
- @use '../scss/containers';
4
- @use '../scss/constants';
5
-
6
- .iroco-ui-button {
7
- cursor: pointer;
8
- -webkit-touch-callout: none;
9
- -webkit-user-select: none;
10
- -khtml-user-select: none;
11
- -moz-user-select: none;
12
- -ms-user-select: none;
13
- user-select: none;
14
- border: none;
15
- flex-shrink: 0;
16
- margin: 1em 0em;
17
- position: relative;
18
- text-transform: uppercase;
19
- border-radius: constants.$border-radius;
20
-
21
- &--basic {
22
- background: colors.$beige;
23
- border: 1px solid colors.$nightBlue;
24
- }
25
- &--dark {
26
- background: colors.$nightBlue;
27
- color: colors.$beige;
28
- }
29
- &--success {
30
- background: colors.$green;
31
- color: colors.$nightBlue;
32
- }
33
- &--danger {
34
- background: colors.$red;
35
- }
36
- &--regular {
37
- padding: 1em 2em;
38
- }
39
- &--small {
40
- padding: 0.5em 1em;
41
- }
42
-
43
- &--basic:hover, &--success:hover, &--danger:hover {
44
- box-shadow: inset 0 0 0 10em rgba(0, 0, 0, 0.2);
45
- }
46
- &--dark:hover {
47
- box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.2);
48
- }
49
-
50
- &:active {
51
- box-shadow: none;
52
- }
53
-
54
- &.disabled {
55
- background-color: colors.$lightGrey;
56
- cursor: default;
57
- &:hover {
58
- box-shadow: none;
59
- }
60
- }
61
- }
package/lib/check.scss DELETED
@@ -1,48 +0,0 @@
1
- .ui-check {
2
- width: 30px;
3
- min-width: 30px;
4
- height: 30px;
5
- min-height: 30px;
6
- background: rgba($darkBeige, .1);
7
- border: solid rgba($darkBeige, .4) 1px;
8
- cursor: pointer;
9
- outline: none;
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- position: relative;
14
- transition: all cubic-bezier(0.215, 0.61, 0.355, 1) 400ms;
15
- border-radius: 2px;
16
-
17
- &.tag {
18
- width: auto;
19
- padding: 0 10px;
20
- }
21
-
22
- &:focus {
23
- outline: none;
24
- box-shadow: 0 0 5px rgba($blue, .3);
25
- }
26
-
27
- >svg {
28
- stroke-dashoffset: 100;
29
- transition: stroke-dashoffset cubic-bezier(0.215, 0.61, 0.355, 1) 400ms;
30
- }
31
-
32
- >span {
33
- @include Arial(1em, $darkBeige);
34
- }
35
-
36
- &[aria-pressed=true] {
37
- border: solid $blue 1px;
38
-
39
- >svg {
40
- stroke-dashoffset: 0;
41
- }
42
-
43
- >span {
44
- color: $blue;
45
- }
46
- }
47
-
48
- }
package/lib/colors.scss DELETED
@@ -1,23 +0,0 @@
1
- $blue: #00B9FF;
2
- $darkBlue: #211D28;
3
- $nightBlue: #18151E;
4
- $green: #00D692;
5
- $red: #ff504d;
6
- $yellow: #FFE032;
7
- $beige: #f2ebe3;
8
- $darkBeige: #a9a29e;
9
- $mediumGrey : #464452;
10
- $darkGrey: #33323a;
11
- $lightGrey: #f5f5f5;
12
-
13
- .font-color-blue {color: $blue;}
14
- .font-color-darkBlue {color: $darkBlue;}
15
- .font-color-nightBlue {color: $nightBlue;}
16
- .font-color-green {color: $green;}
17
- .font-color-red {color: $red;}
18
- .font-color-yellow {color: $yellow;}
19
- .font-color-beige {color: $beige;}
20
- .font-color-darkBeige {color: $darkBeige;}
21
- .font-color-mediumGrey {color: $mediumGrey;}
22
- .font-color-darkGrey {color: $darkGrey;}
23
- .font-color-lightGrey {color: $lightGrey;}
@@ -1 +0,0 @@
1
- $border-radius: 0.3em
@@ -1,226 +0,0 @@
1
- $break-point-4K: 2560px;
2
- $break-point-desktop: 1800px;
3
- $break-point-laptop-L: 1440px;
4
- $break-point-laptop: 1024px;
5
- $break-point-tablet: 768px;
6
- $break-point-tablet-S: 596px;
7
- $break-point-mobile-L: 425px;
8
- $break-point-mobile-M: 375px;
9
- $break-point-mobile-S: 320px;
10
-
11
- $width: $break-point-4K - 200px;
12
- $width-4k: $break-point-desktop - 180px;
13
- $width-desktop: $break-point-laptop-L - 160px;
14
- $width-laptop-L: $break-point-laptop - 140px;
15
- $width-laptop: $break-point-tablet - 120px;
16
- $width-tablet: $break-point-tablet-S - 100px;
17
- $width-tablet-S: $break-point-mobile-L - 60px;
18
- $width-mobile-L: calc(100% - 60px);
19
- $width-mobile-M: calc(100% - 40px);
20
- $width-mobile-S: calc(100% - 20px);
21
-
22
- @mixin screen-4K() {
23
- @media all and (max-width: $break-point-4K) {
24
- @content;
25
- }
26
- }
27
-
28
- @mixin screen-desktop() {
29
- @media all and (max-width: $break-point-desktop) {
30
- @content;
31
- }
32
- }
33
-
34
- @mixin screen-laptop-L() {
35
- @media all and (max-width: $break-point-laptop-L) {
36
- @content;
37
- }
38
- }
39
-
40
- @mixin screen-laptop() {
41
- @media all and (max-width: $break-point-laptop) {
42
- @content;
43
- }
44
- }
45
-
46
- @mixin screen-tablet() {
47
- @media all and (max-width: $break-point-tablet) {
48
- @content;
49
- }
50
- }
51
-
52
- @mixin screen-tablet-S() {
53
- @media all and (max-width: $break-point-tablet-S) {
54
- @content;
55
- }
56
- }
57
-
58
- @mixin screen-mobile-L() {
59
- @media all and (max-width: $break-point-mobile-L) {
60
- @content;
61
- }
62
- }
63
-
64
- @mixin screen-mobile-M() {
65
- @media all and (max-width: $break-point-mobile-M) {
66
- @content;
67
- }
68
- }
69
-
70
- @mixin screen-mobile-S() {
71
- @media all and (max-width: $break-point-mobile-S) {
72
- @content;
73
- }
74
- }
75
-
76
- @mixin container-wide() {
77
- width: $width-mobile-S;
78
- max-width: $width;
79
- margin-left: auto;
80
- margin-right: auto;
81
- transition: max-width ease-out 200ms;
82
-
83
- @include screen-4K() {
84
- max-width: $width-4k;
85
- }
86
-
87
- @include screen-desktop() {
88
- max-width: $width-desktop;
89
- }
90
-
91
- @include screen-laptop-L() {
92
- max-width: $width-laptop-L;
93
- }
94
-
95
- @include screen-laptop() {
96
- max-width: $width-laptop;
97
- }
98
-
99
- @include screen-tablet() {
100
- max-width: $width-tablet;
101
- }
102
-
103
- @include screen-tablet-S() {
104
- max-width: $width-tablet-S;
105
- }
106
-
107
- @include screen-mobile-L() {
108
- max-width: $width-mobile-L;
109
- }
110
-
111
- @include screen-mobile-M() {
112
- max-width: $width-mobile-M;
113
- }
114
-
115
- @include screen-mobile-S() {
116
- max-width: $width-mobile-S;
117
- }
118
-
119
- }
120
-
121
- @mixin container-large() {
122
- width: $width-mobile-S;
123
- max-width: $width-desktop;
124
- margin-left: auto;
125
- margin-right: auto;
126
- transition: max-width ease-out 200ms;
127
-
128
- @include screen-laptop-L() {
129
- max-width: $width-laptop-L;
130
- }
131
-
132
- @include screen-laptop() {
133
- max-width: $width-laptop;
134
- }
135
-
136
- @include screen-tablet() {
137
- max-width: $width-tablet;
138
- }
139
-
140
- @include screen-tablet-S() {
141
- max-width: $width-tablet-S;
142
- }
143
-
144
- @include screen-mobile-L() {
145
- max-width: $width-mobile-L;
146
- }
147
-
148
- @include screen-mobile-M() {
149
- max-width: $width-mobile-M;
150
- }
151
-
152
- @include screen-mobile-S() {
153
- max-width: $width-mobile-S;
154
- }
155
-
156
- }
157
-
158
- @mixin container-medium() {
159
- width: $width-mobile-S;
160
- max-width: $width-laptop-L;
161
- margin-left: auto;
162
- margin-right: auto;
163
- transition: max-width ease-out 200ms;
164
-
165
- @include screen-laptop() {
166
- max-width: $width-laptop;
167
- }
168
-
169
- @include screen-tablet() {
170
- max-width: $width-tablet;
171
- }
172
-
173
- @include screen-tablet-S() {
174
- max-width: $width-tablet-S;
175
- }
176
-
177
- @include screen-mobile-L() {
178
- max-width: $width-mobile-L;
179
- }
180
-
181
- @include screen-mobile-M() {
182
- max-width: $width-mobile-M;
183
- }
184
-
185
- @include screen-mobile-S() {
186
- max-width: $width-mobile-S;
187
- }
188
-
189
- }
190
-
191
- @mixin container-small() {
192
- width: $width-mobile-S;
193
- max-width: $width-tablet;
194
- margin-left: auto;
195
- margin-right: auto;
196
- transition: max-width ease-out 200ms;
197
-
198
- @include screen-mobile-L() {
199
- max-width: $width-mobile-L;
200
- }
201
-
202
- @include screen-mobile-M() {
203
- max-width: $width-mobile-M;
204
- }
205
-
206
- @include screen-mobile-S() {
207
- max-width: $width-mobile-S;
208
- }
209
-
210
- }
211
-
212
- .container-wide {
213
- @include container-wide();
214
- }
215
-
216
- .container-large {
217
- @include container-large();
218
- }
219
-
220
- .container-medium {
221
- @include container-medium();
222
- }
223
-
224
- .container-small {
225
- @include container-small();
226
- }
@@ -1,44 +0,0 @@
1
- .ui-fields-checkbox {
2
-
3
- >.container {
4
- display: flex;
5
- align-items: center;
6
- justify-content: flex-start;
7
-
8
- >label {
9
- @include Arial(.9em, $blue, bold);
10
- letter-spacing: .05em;
11
- text-transform: uppercase;
12
- display: inline-block;
13
- margin-left: 20px;
14
-
15
- @include small-screen() {
16
- font-size: .8em;
17
- margin-left: 15px;
18
- }
19
-
20
- }
21
- }
22
-
23
- >.error, >.warning {
24
- display: flex;
25
- align-items: center;
26
- justify-content: flex-start;
27
- margin-top: 15px;
28
-
29
- >span {
30
- @include Arial(.9em, $red);
31
- margin-left: 10px;
32
- }
33
-
34
- }
35
-
36
- >.warning {
37
-
38
- >span {
39
- color: $blue;
40
- }
41
-
42
- }
43
-
44
- }
@@ -1,171 +0,0 @@
1
- .ui-fields-input {
2
- width: 100%;
3
- transition: width linear 100ms;
4
-
5
- > label {
6
- @include Arial(1em, white, bold);
7
- letter-spacing: .05em;
8
- text-transform: uppercase;
9
- padding-bottom: 10px;
10
- display: inline-block;
11
- }
12
-
13
- input, input:active, input:focus {
14
- border: none;
15
- outline: none;
16
- text-decoration: none;
17
- background: transparent;
18
-
19
- }
20
-
21
- >.container {
22
- transition: background linear 100ms;
23
- background: white;
24
- width: 100%;
25
- display: flex;
26
- align-items: center;
27
- justify-content: space-between;
28
- position: relative;
29
-
30
- &:after {
31
- content: "";
32
- display: block;
33
- position: absolute;
34
- bottom: 0;
35
- left: 0;
36
- width: 0;
37
- height: 3px;
38
- background: $green;
39
- transition: all 400ms cubic-bezier(0.215, 0.61, 0.355, 1);
40
- }
41
-
42
- >.left-icon {
43
- padding-left: 15px;
44
- }
45
-
46
- >input {
47
- @include Arial(1em, $darkBlue);
48
- flex: 1;
49
- padding: 10px 15px;
50
- text-overflow: ellipsis;
51
- white-space: nowrap;
52
- overflow: hidden;
53
-
54
- &::placeholder {
55
- color: rgba($darkBlue, .3);
56
- font-style: italic;
57
- }
58
-
59
- }
60
-
61
- >.suggestions {
62
- overflow: hidden;
63
- visibility: hidden;
64
- opacity: 0;
65
- position: absolute;
66
- background: white;
67
- width: 100%;
68
- top: 100%;
69
- transition: opacity linear 100ms;
70
- @include modal-layout();
71
-
72
- >.suggestion {
73
- display: block;
74
- text-align: left;
75
- width: 100%;
76
- border: none;
77
- cursor: pointer;
78
- -webkit-touch-callout: none;
79
- -webkit-user-select: none;
80
- -khtml-user-select: none;
81
- -moz-user-select: none;
82
- -ms-user-select: none;
83
- user-select: none;
84
- flex-shrink: 0;
85
- border-top: solid $beige 1px;
86
- background: white;
87
- transition: background linear 100ms;
88
-
89
- &:first-child {
90
- border: none;
91
- }
92
-
93
- &:hover, &.selected {
94
- background: $lightGrey;
95
- }
96
-
97
- }
98
-
99
- }
100
- }
101
-
102
- >.instructions {
103
- @include Arial(1em, $darkBeige);
104
- margin-top: 10px;
105
- }
106
-
107
- >.error, >.warning {
108
- display: flex;
109
- align-items: center;
110
- justify-content: flex-start;
111
- margin-top: 15px;
112
-
113
- >span {
114
- @include Arial(.9em, $red);
115
- margin-left: 10px;
116
- }
117
-
118
- }
119
-
120
- >.warning {
121
-
122
- >span {
123
- color: $blue;
124
- }
125
-
126
- }
127
-
128
- &.active {
129
- >.container {
130
-
131
- &:after {
132
- width: 100%;
133
- }
134
-
135
- >.suggestions.active {
136
- visibility: visible;
137
- opacity: 1;
138
- }
139
- }
140
- }
141
-
142
- &.dark {
143
-
144
- >.container {
145
- background: $darkBlue;
146
-
147
- &:after {
148
- //background: $blue;
149
- }
150
-
151
- >input {
152
- padding: 15px 20px;
153
-
154
- &::placeholder {
155
- color: rgba(white, .3);
156
- }
157
-
158
- }
159
-
160
- }
161
-
162
- &.active, &.touched {
163
- >.container {
164
- background: white;
165
-
166
- }
167
- }
168
-
169
- }
170
-
171
- }
@@ -1,2 +0,0 @@
1
- @import 'input';
2
- @import 'checkbox';
package/lib/fonts.scss DELETED
@@ -1,11 +0,0 @@
1
- $arial: 'Arial';
2
-
3
- @mixin Arial($size: 1em, $color: white, $weight: normal) {
4
- font-family: $arial, sans-serif;
5
- font-size: $size;
6
- font-weight: $weight;
7
- color: $color;
8
- margin: 0;
9
- padding: 0;
10
- transition: color ease-out 100ms, font-size ease-out 100ms;
11
- }
package/lib/forms.scss DELETED
@@ -1,67 +0,0 @@
1
- @use 'colors';
2
-
3
- .iroco-ui-form {
4
- input, textarea {
5
- outline: none;
6
- text-decoration: none;
7
- font-size: 14px;
8
-
9
- &:focus {
10
- outline: none;
11
- text-decoration: none;
12
- font-size: 14px;
13
- }
14
- }
15
-
16
- .iroco-ui-input {
17
- display: flex;
18
- flex-direction: column;
19
- > input {
20
- color: colors.$beige;
21
- background: colors.$darkBlue;
22
- border: 1px solid colors.$darkBlue;
23
- padding: 1em 1.5em;
24
- text-overflow: ellipsis;
25
- white-space: nowrap;
26
- overflow: hidden;
27
- border-radius: 0.5em;
28
-
29
- &::placeholder {
30
- color: rgba(colors.$beige, .5);
31
- }
32
- &.error {
33
- border-color: colors.$red;
34
- }
35
- &.readonlyInput{
36
- cursor: not-allowed;
37
- }
38
- }
39
- }
40
-
41
- .iroco-ui-label {
42
- color: rgba(colors.$beige, .6);
43
- font-weight: bold;
44
- padding-bottom: 10px;
45
- display: inline-block;
46
- }
47
-
48
- .field {
49
- margin-top: 20px;
50
-
51
- &:first-child {
52
- margin: 0;
53
- }
54
- }
55
-
56
- >.submit {
57
- margin-top: 40px;
58
- }
59
-
60
- p.error {
61
- margin: 0;
62
- color: colors.$red;
63
- }
64
- }
65
-
66
-
67
-