nuudel-core 0.1.21 → 0.1.23

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.
@@ -0,0 +1,3 @@
1
+ .button {
2
+ overflow: 'hidden';
3
+ }
@@ -0,0 +1,14 @@
1
+ .errormsg {
2
+ padding: 2rem;
3
+ background: white;
4
+ margin: 2rem 0;
5
+ border: 1px solid rgba(0, 0, 0, 0.05);
6
+ border-left: 5px solid red;
7
+ p {
8
+ margin: 0;
9
+ font-weight: 100;
10
+ }
11
+ strong {
12
+ margin-right: 1rem;
13
+ }
14
+ }
@@ -0,0 +1,92 @@
1
+ @use 'sass:map';
2
+ @import '../../theme/variables/colors';
3
+ @import '../../theme/variables/sizes';
4
+
5
+ .datetime {
6
+ color: $text;
7
+ }
8
+ .container {
9
+ flex: 1;
10
+ justify-content: 'center';
11
+ align-items: 'center';
12
+ background-color: $background-light;
13
+ }
14
+ .formfield {
15
+ border-bottom-color: $border-light;
16
+ border-bottom-width: $border-width;
17
+ margin-bottom: 0;
18
+ flex-direction: column;
19
+ margin-top: $padding;
20
+ p {
21
+ padding-bottom: 5px;
22
+ }
23
+ }
24
+
25
+ .formfield:last-child {
26
+ margin-bottom: $padding;
27
+ }
28
+ .description {
29
+ font-style: 'italic';
30
+ color: $placeholder;
31
+ font-size: $font;
32
+ }
33
+ .display {
34
+ color: $text;
35
+ }
36
+ .link {
37
+ color: $text;
38
+ }
39
+ .text {
40
+ color: $text;
41
+ }
42
+ .number {
43
+ color: $text;
44
+ }
45
+ .url {
46
+ color: $text;
47
+ }
48
+ .object {
49
+ color: $text;
50
+ }
51
+ .lookup {
52
+ color: $text;
53
+ }
54
+ .lookuptext {
55
+ background-color: 'transparent';
56
+ }
57
+ .pickerview {
58
+ background-color: $background-light;
59
+ }
60
+ .lookupplaceholder {
61
+ color: $placeholder;
62
+ }
63
+ .image {
64
+ max-width: '100%';
65
+ }
66
+ .picture {
67
+ flex-direction: 'row-reverse';
68
+ }
69
+ .button {
70
+ min-width: 150px;
71
+ }
72
+ .date {
73
+ font-size: $h6;
74
+ }
75
+ .choice {
76
+ color: $text;
77
+ }
78
+ .select {
79
+ font-size: $h6;
80
+ }
81
+ .textarea {
82
+ width: '100%';
83
+ }
84
+ .bool {
85
+ height: 50px;
86
+ }
87
+ .toggle {
88
+ flex: 1;
89
+ }
90
+ .hide {
91
+ display: 'none';
92
+ }
@@ -0,0 +1,194 @@
1
+ @use 'sass:map';
2
+ @import '../../theme/variables/colors.scss';
3
+ @import '../../theme/variables/sizes.scss';
4
+
5
+ .searchBar {
6
+ font-family: $fontfamily;
7
+ }
8
+
9
+ .button {
10
+ overflow: 'hidden';
11
+ }
12
+ .buttonText {
13
+ font-size: $h6;
14
+ }
15
+ .item {
16
+ margin-bottom: 0;
17
+ }
18
+ .text {
19
+ font-size: $font;
20
+ }
21
+ .h1 {
22
+ font-size: $h1;
23
+ }
24
+ .label {
25
+ font-size: $font;
26
+ }
27
+
28
+ .padding {
29
+ padding: $padding-half;
30
+ }
31
+ .paddingBig {
32
+ padding: $padding;
33
+ }
34
+ .bg {
35
+ background-color: $background;
36
+ }
37
+ .form {
38
+ width: 100%;
39
+ }
40
+ .input {
41
+ font-family: $fontfamily;
42
+ &:invalid {
43
+ border: $danger solid 1px;
44
+ }
45
+ }
46
+ .loading {
47
+ overflow: 'hidden';
48
+ }
49
+ .loadingLabel {
50
+ color: $placeholder;
51
+ font-size: $big;
52
+ }
53
+ .box {
54
+ justify-content: 'center';
55
+ }
56
+ .slider {
57
+ width: 100%;
58
+ }
59
+ .font {
60
+ font-size: $font;
61
+ }
62
+ .placeholder {
63
+ text-align: 'center';
64
+ color: $placeholder;
65
+ }
66
+ .delete-button {
67
+ background-color: $danger;
68
+ margin: $padding-half;
69
+ }
70
+ .flexone {
71
+ flex: 1;
72
+ }
73
+ .paddingbottom {
74
+ padding-bottom: $padding-half;
75
+ }
76
+ .paddingBottomBig {
77
+ padding-bottom: $padding;
78
+ }
79
+ .paddingtop {
80
+ padding-top: $padding-half;
81
+ }
82
+ .colorbox {
83
+ width: 10px;
84
+ height: 10px;
85
+ display: inline-block;
86
+ margin-right: 5px;
87
+ border: 1px solid $placeholder;
88
+ }
89
+
90
+ .wrapper {
91
+ margin: 8px;
92
+ position: relative;
93
+ }
94
+
95
+ .marginTopBig {
96
+ margin-top: $margingbottom-big;
97
+ }
98
+ .marginTop {
99
+ margin-top: $margingbottom;
100
+ }
101
+ .marginTopSmall {
102
+ margin-top: $margingbottom-small;
103
+ }
104
+
105
+ .marginLeftBig {
106
+ margin-left: $margingbottom-big;
107
+ }
108
+ .marginLeft {
109
+ margin-left: $margingbottom;
110
+ }
111
+ .marginLeftSmall {
112
+ margin-left: $margingbottom-small;
113
+ }
114
+
115
+ .marginRightBig {
116
+ margin-right: $margingbottom-big;
117
+ }
118
+ .marginRight {
119
+ margin-right: $margingbottom;
120
+ }
121
+ .marginRightSmall {
122
+ margin-right: $margingbottom-small;
123
+ }
124
+
125
+ .marginBottomBig {
126
+ margin-bottom: $margingbottom-big;
127
+ }
128
+ .marginBottom {
129
+ margin-bottom: $margingbottom;
130
+ }
131
+ .marginBottomSmall {
132
+ margin-bottom: $margingbottom-small;
133
+ }
134
+
135
+ .marginNormal {
136
+ margin-top: 16px;
137
+ margin-bottom: 8px;
138
+ }
139
+ .paddingNormal {
140
+ margin-top: 16px;
141
+ margin-bottom: 8px;
142
+ }
143
+
144
+ $ccolor: #08182b;
145
+ .container {
146
+ color: $ccolor;
147
+ display: flex;
148
+ align-items: center;
149
+ align-content: center;
150
+ justify-content: center;
151
+ flex-direction: column;
152
+ background-size: cover;
153
+ background-repeat: no-repeat;
154
+ background-color: 'transparent';
155
+ }
156
+
157
+ .listContainer {
158
+ display: block;
159
+ }
160
+
161
+ .optionAdornment {
162
+ background-color: $background-grey;
163
+ border-radius: 2px 0 0 2px;
164
+ margin-left: -13px;
165
+ padding: 18px 13px;
166
+ width: 200px;
167
+ color: $text-dark;
168
+ overflow: hidden;
169
+ text-overflow: ellipsis;
170
+ white-space: nowrap;
171
+ }
172
+
173
+ .link {
174
+ padding-top: 8px;
175
+ padding-bottom: 15px;
176
+ }
177
+
178
+ .swichPadding {
179
+ padding-top: $padding * 2;
180
+ }
181
+
182
+ .colorbox {
183
+ width: 10px;
184
+ height: 10px;
185
+ display: inline-block;
186
+ margin-right: 5px;
187
+ border: 1px solid '#999';
188
+ }
189
+ .multiSelect-container {
190
+ z-index: 999;
191
+ }
192
+ .multichoice {
193
+ font-size: $h6;
194
+ }
@@ -0,0 +1,35 @@
1
+ //@import './palette';
2
+
3
+ $transparent: 'transparent';
4
+ $neutral: var(--neutral);
5
+ $facebook: var(--facebook);
6
+ $login: var(--login);
7
+ $primary: var(--primary);
8
+ $primary-light: var(--primary-light);
9
+ $secondary: var(--secondary);
10
+ $info: var(--info);
11
+ $danger: var(--danger);
12
+ $warning: var(--warning);
13
+ $success: var(--success);
14
+ $button: var(--button);
15
+ $link: var(--link);
16
+ $text: var(--text);
17
+ $text-dark: var(--text-dark);
18
+ $text-light: var(--text-light);
19
+ $background: var(--background);
20
+ $background-light: var(--background-light);
21
+ $background-dark: var(--background-dark);
22
+ $background-grey: var(--background-grey);
23
+ $border: var(--border);
24
+ $border-light: var(--border-light);
25
+ $input: var(--input);
26
+ $placeholder: var(--placeholder);
27
+ $navbar: var(--navbar);
28
+ $block: var(--block);
29
+ $icon: var(--icon);
30
+ $icon-light: var(--icon-light);
31
+ $shadow: var(--shadow);
32
+ $disabled: var(--disabled);
33
+ $inverse-bg: var(--inverse-bg);
34
+ $inverse-text: var(--inverse-text);
35
+ $loader: var(--loader);
@@ -0,0 +1,69 @@
1
+ // Энийг хэрэглээгүй
2
+ $brand: #f58c22 !default;
3
+ $brand-light: #42a5f5 !default;
4
+ $brand-dark: #2777f7 !default;
5
+ $accent: #d9534f !default;
6
+ $white: #ffffff !default;
7
+ $white-bright: #fafafa !default;
8
+ $white-light: #f8f9fc !default;
9
+ $black: #161616 !default;
10
+ $black-dark: #000000 !default;
11
+ $black-light: #1e1e1e !default;
12
+ $dark-black: #2d2d2d !default;
13
+ $dark: #333333 !default;
14
+ $gray: #777777 !default;
15
+ $gray-light: #cdcdcd !default;
16
+ $grey: #656565 !default;
17
+ $grey-light: #999999 !default;
18
+ $grey-bright: #e1e1e1 !default;
19
+ $grey-dark: #5c5c5c !default;
20
+ $red: #d9534f !default;
21
+ $orange: #ff8f00 !default;
22
+ $green: #60d517 !default;
23
+ $blue: #0091ea !default;
24
+ $pink: #d81b60 !default;
25
+ $yellow: #fdd835 !default;
26
+ $red-dark: #c62828 !default;
27
+ $orange-dark: #ff6f00 !default;
28
+ $green-dark: #00875a !default;
29
+ $blue-dark: #5e98d8 !default;
30
+ $pink-dark: #b4004e !default;
31
+ $yellow-dark: #ffa000 !default;
32
+ $neutral: rgba(255, 255, 255, 0.65) !default;
33
+ //*
34
+ :root {
35
+ $brand: #{$brand};
36
+ $brand-light: #{$brand-light};
37
+ $brand-dark: #{$brand-dark};
38
+ $accent: #{$accent};
39
+ $white: #{$white};
40
+ $white-bright: #{$white-bright};
41
+ $white-light: #{$white-light};
42
+ $black: #{$black};
43
+ $black-dark: #{$black-dark};
44
+ $black-light: #{$black-light};
45
+ $dark-black: #{$dark-black};
46
+ $dark: #{$dark};
47
+ $gray: #{$gray};
48
+ $gray-light: #{$gray-light};
49
+ $grey: #{$grey};
50
+ $grey-light: #{$grey-light};
51
+ $grey-bright: #{$grey-bright};
52
+ $grey-dark: #{$grey-dark};
53
+ $red: #{$red};
54
+ $orange: #{$orange};
55
+ $green: #{$green};
56
+ $blue: #{$blue};
57
+ $pink: #{$pink};
58
+ $yellow: #{$yellow};
59
+ $red-dark: #{$red-dark};
60
+ $orange-dark: #{$orange-dark};
61
+ $green-dark: #{$green-dark};
62
+ $blue-dark: #{$blue-dark};
63
+ $pink-dark: #{$pink-dark};
64
+ $yellow-dark: #{$yellow-dark};
65
+ $neutral: #{$neutral};
66
+ }
67
+ //*/
68
+
69
+ //:export { primary: $primary; }
@@ -0,0 +1,79 @@
1
+ $base: 14px;
2
+
3
+ $fontfamily: 'Montserrat'; //'open sans';
4
+ $font: $base;
5
+ $opacity: 0.6;
6
+ $border-radius: 4px;
7
+ $button-border-radius: 999;
8
+ $border-width: 1px;
9
+ $padding: 16px;
10
+ $padding-half: 8px;
11
+ $padding-small: 5px;
12
+ $margingbottom-small: 5px;
13
+ $margingbottom: 16px;
14
+ $margingbottom-big: 25px;
15
+ // typography
16
+ $h1: $base * 2.5;
17
+ // ~30
18
+ $h2: $base * 2.25;
19
+ // ~27
20
+ $h3: $base * 2;
21
+ // ~24
22
+ $h4: $base * 1.75;
23
+ // ~21
24
+ $h5: $base * 1.5;
25
+ // ~18
26
+ $h6: $base * 1.25;
27
+ // ~15
28
+ $big: $base + 2;
29
+ // ~14
30
+ $body: $base + 1;
31
+ // ~13
32
+ $small: $base * 0.85;
33
+ // ~10
34
+ // icons
35
+ $icon: $base;
36
+ $icon-normal: $base * 1.25;
37
+ $icon-medium: $base * 1.5;
38
+ $icon-large: $base * 1.75;
39
+ $icon-huge: $base * 3.5;
40
+ // button styles
41
+ $button-width: $base * 9;
42
+ $button-height: $base * 2.75;
43
+ $button-shadow-radius: 3;
44
+ // block styles
45
+ $block-shadow-opacity: 0.15;
46
+ $block-shadow-radius: 8;
47
+ $android-elevation: 1;
48
+ // card styles
49
+ $card-border-radius: $base * 0.4;
50
+ $card-border-width: $base * 0.05;
51
+ $card-width: width - $base * 2;
52
+ $card-margin-vertical: $base * 0.875;
53
+ $card-footer-horizontal: $base * 0.75;
54
+ $card-footer-vertical: $base * 0.75;
55
+ $card-avatar-width: $base * 2.5;
56
+ $card-avatar-height: $base * 2.5;
57
+ $card-avatar-radius: $base * 1.25;
58
+ $card-image-height: $base * 12.5;
59
+ $card-round: $base * 0.1875;
60
+ $card-rounded: $base * 0.5;
61
+ // input styles
62
+ $input-border-radius: $base * 0.5;
63
+ $input-border-width: $base * 0.05;
64
+ $input-height: $base * 2.75;
65
+ $input-horizontal: $base;
66
+ $input-vertical-text: 14;
67
+ $input-vertical-label: calc($base / 2);
68
+ $input-text: $base * 0.875;
69
+ $input-rounded: $base * 1.5;
70
+ // checkbox
71
+ $checkbox-width: 20;
72
+ $checkbox-height: 20;
73
+ // slider
74
+ $track-size: 4;
75
+ $thumb-size: 25;
76
+ // radio button
77
+ $radio-width: 24;
78
+ $radio-height: 24;
79
+ $radio-thickness: 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuudel-core",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Web components for react with material UI",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",
@@ -24,7 +24,7 @@
24
24
  "build:main": "tsc -p tsconfig.json",
25
25
  "build:module": "tsc -p tsconfig.module.json",
26
26
  "prebuild": "tsm src",
27
- "postbuild": "cpy --cwd=src --parents '**/*.scss' ../build/module/ && cpy --cwd=src --parents '**/*.scss' ../main/module/",
27
+ "postbuild": "cpy --cwd=src --parents '**/*.scss' ../build/module/ && cpy --cwd=src --parents '**/*.scss' ../build/main/",
28
28
  "fix": "run-s fix:*",
29
29
  "fix:prettier": "prettier \"src/**/*.ts\" --write",
30
30
  "fix:lint": "eslint src --ext .ts --fix",