pallote-react 0.2.25 → 0.2.26

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 (35) hide show
  1. package/dist/components/Display.js +2 -2
  2. package/dist/components/Input.js +1 -1
  3. package/package.json +2 -2
  4. package/dist/styles/common/_global.scss +0 -98
  5. package/dist/styles/common/_mixins.scss +0 -58
  6. package/dist/styles/common/_variables.scss +0 -222
  7. package/dist/styles/components/accordion.scss +0 -181
  8. package/dist/styles/components/button.scss +0 -210
  9. package/dist/styles/components/buttons.scss +0 -56
  10. package/dist/styles/components/card.scss +0 -243
  11. package/dist/styles/components/checkbox.scss +0 -78
  12. package/dist/styles/components/chip.scss +0 -77
  13. package/dist/styles/components/component.scss +0 -17
  14. package/dist/styles/components/detail.scss +0 -36
  15. package/dist/styles/components/divider.scss +0 -54
  16. package/dist/styles/components/form-field.scss +0 -262
  17. package/dist/styles/components/link.scss +0 -36
  18. package/dist/styles/components/loader.scss +0 -131
  19. package/dist/styles/components/modal.scss +0 -112
  20. package/dist/styles/components/nav-group.scss +0 -72
  21. package/dist/styles/components/nav-item.scss +0 -127
  22. package/dist/styles/components/navbar.scss +0 -41
  23. package/dist/styles/components/page.scss +0 -48
  24. package/dist/styles/components/radio.scss +0 -58
  25. package/dist/styles/components/section.scss +0 -169
  26. package/dist/styles/components/snippet.scss +0 -79
  27. package/dist/styles/components/stepper.scss +0 -78
  28. package/dist/styles/components/switch.scss +0 -71
  29. package/dist/styles/components/table.scss +0 -167
  30. package/dist/styles/components/tabs.scss +0 -102
  31. package/dist/styles/components/tag.scss +0 -41
  32. package/dist/styles/components/tooltip.scss +0 -65
  33. package/dist/styles/mixins/layer.scss +0 -109
  34. package/dist/styles/mixins/text.scss +0 -150
  35. /package/dist/{styles/index.scss → index.scss} +0 -0
@@ -1,210 +0,0 @@
1
- @import '../mixins/layer.scss';
2
-
3
- // —————————————————————————————————————————————————————————————————
4
- // reset
5
- // mixins
6
- // elements
7
- // color
8
- // size
9
- // variant
10
- // fullWidth
11
- // disabled
12
- // isTransparent
13
- // —————————————————————————————————————————————————————————————————
14
-
15
- // —————————————————————————————————————————————————————————————————
16
- // reset
17
- // —————————————————————————————————————————————————————————————————
18
-
19
- button,
20
- a {
21
- margin: 0;
22
- padding: 0;
23
- width: auto;
24
- background: transparent;
25
- color: inherit;
26
- font: inherit;
27
- line-height: normal;
28
- appearance: none;
29
- -webkit-appearance: none;
30
-
31
- &::-moz-focus-inner {
32
- border: 0;
33
- padding: 0;
34
- }
35
-
36
- svg {
37
- width: 100%;
38
- height: 100%;
39
- }
40
- }
41
-
42
- // —————————————————————————————————————————————————————————————————
43
- // mixins
44
- // —————————————————————————————————————————————————————————————————
45
-
46
- @mixin size($size) {
47
- border-radius: $size*0.2;
48
- font-size: $size*0.5;
49
- height: $size;
50
-
51
- .button {
52
- border-radius: $size*0.2;
53
- padding-right: calc($size / 3);
54
- padding-left: calc($size / 3);
55
- }
56
-
57
- &.button--icon .button {
58
- width: $size;
59
- padding: $size*0.25;
60
- }
61
-
62
- p {
63
- font-size: $size*0.5;
64
- }
65
-
66
- &.button--stroke {
67
- padding-right: calc(#{calc($size/3)} - $spacing*0.25);
68
- padding-left: calc(#{calc($size/3)} - $spacing*0.25);
69
- height: calc(#{$size} - $spacing*0.5);
70
-
71
- &.button--icon {
72
- width: calc(#{$size} - $spacing*0.5);
73
- padding: calc(#{$size*0.25} - $spacing*0.25);
74
- }
75
- }
76
-
77
- .button__icons {
78
- display: flex;
79
- align-items: center;
80
- justify-content: center;
81
-
82
- svg {
83
- width: $size*0.5;
84
- height: $size*0.5;
85
- }
86
-
87
- &--left {
88
- margin-right: $size*0.25;
89
- margin-left: -$size*0.125;
90
- }
91
-
92
- &--right {
93
- margin-right: -$size*0.125;
94
- margin-left: $size*0.25;
95
- }
96
- }
97
- }
98
-
99
- // —————————————————————————————————————————————————————————————————
100
- // elements
101
- // —————————————————————————————————————————————————————————————————
102
-
103
- .button {
104
- width: 100%;
105
- height: 100%;
106
- display: flex;
107
- align-items: center;
108
- justify-content: center;
109
- cursor: pointer;
110
- text-transform: uppercase;
111
- font-weight: $font-bold;
112
-
113
- &__wrapper {
114
- display: inline-flex;
115
- height: auto;
116
- }
117
- }
118
-
119
- // —————————————————————————————————————————————————————————————————
120
- // color
121
- // —————————————————————————————————————————————————————————————————
122
-
123
- // color is handled with the Layer component
124
-
125
- // —————————————————————————————————————————————————————————————————
126
- // size
127
- // —————————————————————————————————————————————————————————————————
128
-
129
- .button {
130
-
131
- &--xxs {
132
- @include size($spacing*2.5);
133
-
134
- &.button--icon .button {
135
- padding: $spacing*0.5;
136
- }
137
- }
138
-
139
- &--xs {
140
- @include size($spacing*3);
141
-
142
- &.button--icon .button {
143
- padding: $spacing*0.5;
144
- }
145
- }
146
-
147
- &--sm {
148
- @include size($spacing*3.5);
149
- }
150
-
151
- &--md {
152
- @include size($spacing*4);
153
- }
154
-
155
- &--lg {
156
- @include size($spacing*4.5);
157
- }
158
-
159
- &--xl {
160
- @include size($spacing*5);
161
- }
162
- }
163
-
164
- // —————————————————————————————————————————————————————————————————
165
- // variant
166
- // —————————————————————————————————————————————————————————————————
167
-
168
- .button {
169
-
170
- &--stroke {
171
- border-width: $spacing*0.25;
172
- border-style: solid;
173
- color: $text;
174
- }
175
- }
176
-
177
- // —————————————————————————————————————————————————————————————————
178
- // fullWidth
179
- // —————————————————————————————————————————————————————————————————
180
-
181
- .button--fullWidth {
182
- width: 100%;
183
- }
184
-
185
- // —————————————————————————————————————————————————————————————————
186
- // disabled
187
- // —————————————————————————————————————————————————————————————————
188
-
189
- .button--disabled {
190
- opacity: 0.4;
191
-
192
- .button {
193
- cursor: not-allowed;
194
- }
195
- }
196
-
197
- // —————————————————————————————————————————————————————————————————
198
- // isTransparent
199
- // —————————————————————————————————————————————————————————————————
200
-
201
- .button--transparent {
202
- background-color: transparent !important;
203
- padding: 0;
204
- height: auto;
205
-
206
- .button {
207
- padding-right: 0;
208
- padding-left: 0;
209
- }
210
- }
@@ -1,56 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // mixins
3
- // elements
4
- // direction
5
- // spacing
6
- // —————————————————————————————————————————————————————————————————
7
-
8
- // —————————————————————————————————————————————————————————————————
9
- // mixins
10
- // —————————————————————————————————————————————————————————————————
11
-
12
- @mixin spacing($proportion, $size) {
13
- margin: -$size;
14
-
15
- @if $proportion == sm {
16
- @include responsive(down, tablet) { margin: -$spacing*0.5; }
17
- }
18
- @include responsive(down, mobile) { margin: -$spacing; }
19
-
20
- > * {
21
- margin: $size;
22
-
23
- @if $proportion == sm {
24
- @include responsive(down, tablet) { margin: $spacing*0.5; }
25
- }
26
- @include responsive(down, mobile) { margin: $spacing; }
27
- }
28
- }
29
-
30
- // —————————————————————————————————————————————————————————————————
31
- // elements
32
- // —————————————————————————————————————————————————————————————————
33
-
34
- .buttons {
35
- display: inline-flex;
36
- flex-wrap: wrap;
37
- }
38
-
39
- // —————————————————————————————————————————————————————————————————
40
- // direction
41
- // —————————————————————————————————————————————————————————————————
42
-
43
- .buttons--portrait {
44
- flex-direction: column;
45
- }
46
-
47
- // —————————————————————————————————————————————————————————————————
48
- // spacing
49
- // —————————————————————————————————————————————————————————————————
50
-
51
- .buttons {
52
-
53
- &--sm { @include spacing(sm, $spacing*0.25); }
54
- &--md { @include spacing(md, $spacing*0.5); }
55
- &--lg { @include spacing(lg, $spacing); }
56
- }
@@ -1,243 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // mixins
3
- // elements
4
- // size
5
- // direction
6
- // noPadding
7
- // —————————————————————————————————————————————————————————————————
8
-
9
- // —————————————————————————————————————————————————————————————————
10
- // mixins
11
- // —————————————————————————————————————————————————————————————————
12
-
13
- // for card media
14
- @mixin border-radius($int) {
15
-
16
- .card__mediaInner {
17
- border-radius: $int !important;
18
- }
19
- }
20
-
21
- @mixin size($size) {
22
- border-radius: $size;
23
-
24
- &.card--shadow {
25
- box-shadow: 0 0 $size $size*0.25 rgba($white ,0.25);
26
- }
27
-
28
- > .card__media,
29
- > .card__header,
30
- > .card__content,
31
- > .card__actions {
32
- padding: $size;
33
- }
34
-
35
- .card {
36
-
37
- &__subtitle { margin-top: calc($size / 3); }
38
- &__mediaInner { border-radius: $size*0.25; }
39
- }
40
-
41
- > .card__media--fullWidth .card__mediaInner {
42
- border-radius: 0;
43
- }
44
-
45
- &.card--transparent > .card__media--fullWidth .card__mediaInner {
46
- border-radius: $size*0.5;
47
- }
48
-
49
- &.card--portrait {
50
-
51
- > .card__media,
52
- > .card__header,
53
- > .card__content,
54
- > .card__actions {
55
-
56
- &:not(:first-child) {
57
- padding-top: 0;
58
- }
59
- }
60
-
61
- > .card__actions {
62
- margin-top: auto;
63
- }
64
-
65
- &.card--noPadding {
66
-
67
- > .card__media,
68
- > .card__header,
69
- > .card__content,
70
- > .card__actions {
71
- padding: 0;
72
-
73
- &:not(:first-child) {
74
- padding-top: $size;
75
- }
76
- }
77
-
78
- >.card__media .card__mediaInner {
79
- border-radius: calc($size/2);
80
- }
81
- }
82
-
83
- .card__media--fullWidth {
84
- padding-right: 0;
85
- padding-top: 0;
86
- padding-left: 0;
87
- }
88
- }
89
-
90
- &.card--landscape {
91
-
92
- > .card__media,
93
- > .card__header,
94
- > .card__content,
95
- > .card__actions {
96
-
97
- &:not(:first-child) {
98
- padding-left: 0;
99
- }
100
- }
101
-
102
- > .card__actions {
103
- margin-left: auto;
104
- flex-direction: column;
105
- justify-content: flex-start;
106
- }
107
-
108
- &.card--noPadding {
109
-
110
- > .card__media,
111
- > .card__header,
112
- > .card__content,
113
- > .card__actions {
114
- padding: 0;
115
-
116
- &:not(:first-child) {
117
- padding-left: $size;
118
- }
119
- }
120
-
121
- >.card__media .card__mediaInner {
122
- border-radius: calc($size/2);
123
- }
124
- }
125
-
126
- .card__media--fullWidth {
127
- padding-top: 0;
128
- padding-bottom: 0;
129
- padding-left: 0;
130
- }
131
- }
132
- }
133
-
134
- // —————————————————————————————————————————————————————————————————
135
- // elements
136
- // —————————————————————————————————————————————————————————————————
137
-
138
- .card {
139
- display: flex;
140
- flex-direction: column;
141
- align-items: stretch;
142
- width: 100%;
143
- overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
144
-
145
- &__media {
146
- flex-basis: 0;
147
-
148
- &Inner {
149
- background-size: cover;
150
- background-repeat: no-repeat;
151
- background-position: center center;
152
- width: 100%;
153
- height: 100%;
154
- background-color: $backdrop;
155
- overflow: hidden;
156
- }
157
-
158
- &--borderRadius {
159
-
160
- &--xs { @include border-radius($spacing*0.5); }
161
- &--sm { @include border-radius($spacing*0.75); }
162
- &--md { @include border-radius($spacing*1); }
163
- &--lg { @include border-radius($spacing*1.5); }
164
- &--xl { @include border-radius($spacing*2); }
165
- }
166
- }
167
-
168
- &__header {
169
- display: flex;
170
- justify-content: space-between;
171
- }
172
-
173
- &__title {
174
- line-height: 1.25;
175
- display: inline-block;
176
- }
177
-
178
- &__content {
179
- display: inline-flex;
180
- flex-direction: column;
181
- flex-direction: column;
182
- align-items: flex-start;
183
-
184
- &--fullWidth {
185
-
186
- .card > &.card__content {
187
- padding-right: 0;
188
- padding-left: 0;
189
- }
190
- }
191
- }
192
-
193
- &__actions {
194
- display: flex;
195
- justify-content: space-between;
196
-
197
- >*:only-child {
198
- margin-left: auto;
199
- }
200
-
201
- &--fullWidth {
202
- flex-direction: column;
203
-
204
- >*:not(:last-child) {
205
- margin-bottom: $spacing;
206
- }
207
- }
208
- }
209
- }
210
-
211
- // —————————————————————————————————————————————————————————————————
212
- // size
213
- // —————————————————————————————————————————————————————————————————
214
-
215
- .card {
216
-
217
- &--xs { @include size($spacing); }
218
- &--sm { @include size($spacing*1.5); }
219
- &--md { @include size($spacing*2); }
220
- &--lg { @include size($spacing*3); }
221
- &--xl { @include size($spacing*4); }
222
- }
223
-
224
- // —————————————————————————————————————————————————————————————————
225
- // direction
226
- // —————————————————————————————————————————————————————————————————
227
-
228
- .card--landscape {
229
- flex-direction: row;
230
- }
231
-
232
- // —————————————————————————————————————————————————————————————————
233
- // noPadding
234
- // —————————————————————————————————————————————————————————————————
235
-
236
- .card--noPadding {
237
- border-radius: 0;
238
- background-color: transparent;
239
-
240
- &.card--shadow {
241
- box-shadow: none;
242
- }
243
- }
@@ -1,78 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // elements
3
- // disabled
4
- // —————————————————————————————————————————————————————————————————
5
-
6
- // —————————————————————————————————————————————————————————————————
7
- // elements
8
- // —————————————————————————————————————————————————————————————————
9
-
10
- .checkbox {
11
- display: flex;
12
- align-items: center;
13
- position: relative;
14
-
15
- &__input {
16
- position: absolute;
17
- height: 0;
18
- width: 0;
19
- opacity: 0;
20
- cursor: pointer;
21
-
22
- &:checked {
23
-
24
- ~ .checkbox__label:before {
25
- border-color: $primary;
26
- border-width: $spacing;
27
- }
28
-
29
- ~ .checkbox__icon {
30
- opacity: 1;
31
- }
32
- }
33
- }
34
-
35
- &__icon {
36
- color: $primary-text-contrast;
37
- pointer-events: none;
38
- position: absolute;
39
- left: $spacing*0.25;
40
- height: $spacing*1.5;
41
- width: $spacing*1.5;
42
- opacity: 0;
43
- stroke-width: 3;
44
- }
45
-
46
- &__label {
47
- position: relative;
48
- display: flex;
49
- align-items: center;
50
- white-space: nowrap;
51
- cursor: pointer;
52
-
53
- &:before {
54
- content: "";
55
- box-sizing: border-box;
56
- display: inline-block;
57
- width: $spacing*2;
58
- height: $spacing*2;
59
- left: 0;
60
- top: 0;
61
- margin-right: $spacing;
62
- border-radius: $spacing*0.5;
63
- border: $spacing*0.25 solid $grey-20;
64
- }
65
- }
66
- }
67
-
68
- // —————————————————————————————————————————————————————————————————
69
- // disabled
70
- // —————————————————————————————————————————————————————————————————
71
-
72
- .checkbox--disabled {
73
- opacity: 0.4;
74
-
75
- * {
76
- cursor: not-allowed;
77
- }
78
- }
@@ -1,77 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // elements
3
- // dense
4
- // disabled
5
- // —————————————————————————————————————————————————————————————————
6
-
7
- // —————————————————————————————————————————————————————————————————
8
- // elements
9
- // —————————————————————————————————————————————————————————————————
10
-
11
- .chip {
12
- display: inline-flex;
13
- align-items: center;
14
- padding: $spacing*0.5;
15
- height: $spacing*4;
16
- border-radius: $spacing*5;
17
-
18
- &__avatar {
19
- border-radius: 50%;
20
- height: $spacing*3;
21
- width: $spacing*3;
22
- background-color: $overlay;
23
- }
24
-
25
- &__content {
26
- @extend %caption;
27
- padding-right: $spacing;
28
- padding-left: $spacing;
29
- white-space: nowrap;
30
- }
31
-
32
- &__close {
33
- cursor: pointer;
34
- background-color: $overlay;
35
- border-radius: 50%;
36
- padding: $spacing*0.5;
37
-
38
- @include hover {
39
- background-color: lighten($overlay, 50%);
40
- }
41
- }
42
- }
43
-
44
- // —————————————————————————————————————————————————————————————————
45
- // dense
46
- // —————————————————————————————————————————————————————————————————
47
-
48
- .chip--dense {
49
- height: $spacing*3;
50
-
51
- .chip {
52
-
53
- &__avatar {
54
- height: $spacing*2;
55
- width: $spacing*2;
56
- }
57
-
58
- &__content {
59
- @extend %overline;
60
- padding-right: $spacing*0.5;
61
- padding-left: $spacing*0.5;
62
- }
63
-
64
- &__close {
65
- padding: $spacing*0.25;
66
- }
67
- }
68
- }
69
-
70
- // —————————————————————————————————————————————————————————————————
71
- // disabled
72
- // —————————————————————————————————————————————————————————————————
73
-
74
- .chip--disabled {
75
- opacity: 0.5;
76
- cursor: not-allowed;
77
- }
@@ -1,17 +0,0 @@
1
- // —————————————————————————————————————————————————————————————————
2
- // variables
3
- // mixins
4
- // elements
5
- // —————————————————————————————————————————————————————————————————
6
-
7
- // —————————————————————————————————————————————————————————————————
8
- // variables
9
- // —————————————————————————————————————————————————————————————————
10
-
11
- // —————————————————————————————————————————————————————————————————
12
- // mixins
13
- // —————————————————————————————————————————————————————————————————
14
-
15
- // —————————————————————————————————————————————————————————————————
16
- // elements
17
- // —————————————————————————————————————————————————————————————————