nuudel-core 0.1.21 → 0.1.27

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 (116) hide show
  1. package/build/main/index.d.ts +3 -3
  2. package/build/main/index.js +4 -6
  3. package/build/main/lib/common/DataProvider.d.ts +3 -3
  4. package/build/main/lib/components/Button/style.scss +3 -0
  5. package/build/main/lib/components/Material/styles.module.scss +14 -0
  6. package/build/main/lib/controls/formFields/RNFieldChoiceEdit.js +1 -1
  7. package/build/main/lib/controls/formFields/styles.module.scss +92 -0
  8. package/build/main/lib/forms/DetailForm/DetailForm.d.ts +1 -1
  9. package/build/main/lib/forms/Editor/index.d.ts +2 -0
  10. package/build/main/lib/forms/Editor/index.js +29 -0
  11. package/build/main/lib/forms/index.d.ts +4 -0
  12. package/build/main/lib/forms/index.js +13 -0
  13. package/build/main/lib/library/IBlog.d.ts +25 -0
  14. package/build/main/lib/library/IBlog.js +3 -0
  15. package/build/main/lib/library/index.d.ts +4 -0
  16. package/build/main/lib/library/index.js +6 -0
  17. package/build/main/lib/library/pagination.d.ts +6 -0
  18. package/build/main/lib/library/pagination.js +15 -0
  19. package/build/main/lib/theme/styles/styles.module.scss +194 -0
  20. package/build/main/lib/theme/variables/_colors.scss +35 -0
  21. package/build/main/lib/theme/variables/_palette.scss +69 -0
  22. package/build/main/lib/theme/variables/_sizes.scss +79 -0
  23. package/build/main/lib/widgets/Author.d.ts +6 -0
  24. package/build/main/lib/widgets/Author.js +14 -0
  25. package/build/main/lib/widgets/Burger.d.ts +7 -0
  26. package/build/main/lib/widgets/Burger.js +12 -0
  27. package/build/main/lib/widgets/Copyright.d.ts +2 -0
  28. package/build/main/lib/widgets/Copyright.js +13 -0
  29. package/build/main/lib/widgets/Date.d.ts +6 -0
  30. package/build/main/lib/widgets/Date.js +13 -0
  31. package/build/main/lib/widgets/Layout.d.ts +6 -0
  32. package/build/main/lib/widgets/Layout.js +14 -0
  33. package/build/main/lib/widgets/Navigation.d.ts +2 -0
  34. package/build/main/lib/widgets/Navigation.js +19 -0
  35. package/build/main/lib/widgets/Pagination.d.ts +11 -0
  36. package/build/main/lib/widgets/Pagination.js +15 -0
  37. package/build/main/lib/widgets/PostItem.d.ts +7 -0
  38. package/build/main/lib/widgets/PostItem.js +15 -0
  39. package/build/main/lib/widgets/PostLayout.d.ts +13 -0
  40. package/build/main/lib/widgets/PostLayout.js +25 -0
  41. package/build/main/lib/widgets/PostList.d.ts +12 -0
  42. package/build/main/lib/widgets/PostList.js +18 -0
  43. package/build/main/lib/widgets/SocialList.d.ts +2 -0
  44. package/build/main/lib/widgets/SocialList.js +13 -0
  45. package/build/main/lib/widgets/TagButton.d.ts +7 -0
  46. package/build/main/lib/widgets/TagButton.js +15 -0
  47. package/build/main/lib/widgets/TagLink.d.ts +7 -0
  48. package/build/main/lib/widgets/TagLink.js +9 -0
  49. package/build/main/lib/widgets/TagPostList.d.ts +12 -0
  50. package/build/main/lib/widgets/TagPostList.js +22 -0
  51. package/build/main/lib/widgets/index.d.ts +18 -0
  52. package/build/main/lib/widgets/index.js +41 -0
  53. package/build/main/lib/widgets/meta/BasicMeta.d.ts +10 -0
  54. package/build/main/lib/widgets/meta/BasicMeta.js +13 -0
  55. package/build/main/lib/widgets/meta/JsonLdMeta.d.ts +12 -0
  56. package/build/main/lib/widgets/meta/JsonLdMeta.js +25 -0
  57. package/build/main/lib/widgets/meta/OpenGraphMeta.d.ts +9 -0
  58. package/build/main/lib/widgets/meta/OpenGraphMeta.js +13 -0
  59. package/build/main/lib/widgets/meta/TwitterCardMeta.d.ts +8 -0
  60. package/build/main/lib/widgets/meta/TwitterCardMeta.js +13 -0
  61. package/build/main/lib/widgets/styles.module.scss +391 -0
  62. package/build/module/index.d.ts +3 -3
  63. package/build/module/index.js +4 -4
  64. package/build/module/lib/common/DataProvider.d.ts +3 -3
  65. package/build/module/lib/controls/formFields/RNFieldChoiceEdit.js +1 -1
  66. package/build/module/lib/forms/DetailForm/DetailForm.d.ts +1 -1
  67. package/build/module/lib/forms/Editor/index.d.ts +2 -0
  68. package/build/module/lib/forms/Editor/index.js +27 -0
  69. package/build/module/lib/forms/index.d.ts +4 -0
  70. package/build/module/lib/forms/index.js +5 -0
  71. package/build/module/lib/library/IBlog.d.ts +25 -0
  72. package/build/module/lib/library/IBlog.js +2 -0
  73. package/build/module/lib/library/index.d.ts +4 -0
  74. package/build/module/lib/library/index.js +3 -0
  75. package/build/module/lib/library/pagination.d.ts +6 -0
  76. package/build/module/lib/library/pagination.js +11 -0
  77. package/build/module/lib/widgets/Author.d.ts +6 -0
  78. package/build/module/lib/widgets/Author.js +8 -0
  79. package/build/module/lib/widgets/Burger.d.ts +7 -0
  80. package/build/module/lib/widgets/Burger.js +6 -0
  81. package/build/module/lib/widgets/Copyright.d.ts +2 -0
  82. package/build/module/lib/widgets/Copyright.js +7 -0
  83. package/build/module/lib/widgets/Date.d.ts +6 -0
  84. package/build/module/lib/widgets/Date.js +7 -0
  85. package/build/module/lib/widgets/Layout.d.ts +6 -0
  86. package/build/module/lib/widgets/Layout.js +8 -0
  87. package/build/module/lib/widgets/Navigation.d.ts +2 -0
  88. package/build/module/lib/widgets/Navigation.js +13 -0
  89. package/build/module/lib/widgets/Pagination.d.ts +11 -0
  90. package/build/module/lib/widgets/Pagination.js +9 -0
  91. package/build/module/lib/widgets/PostItem.d.ts +7 -0
  92. package/build/module/lib/widgets/PostItem.js +9 -0
  93. package/build/module/lib/widgets/PostLayout.d.ts +13 -0
  94. package/build/module/lib/widgets/PostLayout.js +19 -0
  95. package/build/module/lib/widgets/PostList.d.ts +12 -0
  96. package/build/module/lib/widgets/PostList.js +12 -0
  97. package/build/module/lib/widgets/SocialList.d.ts +2 -0
  98. package/build/module/lib/widgets/SocialList.js +6 -0
  99. package/build/module/lib/widgets/TagButton.d.ts +7 -0
  100. package/build/module/lib/widgets/TagButton.js +9 -0
  101. package/build/module/lib/widgets/TagLink.d.ts +7 -0
  102. package/build/module/lib/widgets/TagLink.js +6 -0
  103. package/build/module/lib/widgets/TagPostList.d.ts +12 -0
  104. package/build/module/lib/widgets/TagPostList.js +16 -0
  105. package/build/module/lib/widgets/index.d.ts +18 -0
  106. package/build/module/lib/widgets/index.js +19 -0
  107. package/build/module/lib/widgets/meta/BasicMeta.d.ts +10 -0
  108. package/build/module/lib/widgets/meta/BasicMeta.js +7 -0
  109. package/build/module/lib/widgets/meta/JsonLdMeta.d.ts +12 -0
  110. package/build/module/lib/widgets/meta/JsonLdMeta.js +19 -0
  111. package/build/module/lib/widgets/meta/OpenGraphMeta.d.ts +9 -0
  112. package/build/module/lib/widgets/meta/OpenGraphMeta.js +7 -0
  113. package/build/module/lib/widgets/meta/TwitterCardMeta.d.ts +8 -0
  114. package/build/module/lib/widgets/meta/TwitterCardMeta.js +7 -0
  115. package/build/module/lib/widgets/styles.module.scss +391 -0
  116. package/package.json +8 -5
@@ -0,0 +1,391 @@
1
+ .widgetColor {
2
+ color: #9b9b9b;
3
+ }
4
+
5
+ .copyRightText {
6
+ font-size: 0.75rem;
7
+ text-align: center;
8
+ }
9
+
10
+ .burgerContainer {
11
+ position: fixed;
12
+ width: 38px;
13
+ height: 38px;
14
+ cursor: pointer;
15
+ top: 1rem;
16
+ left: 1.25rem;
17
+ z-index: 2;
18
+ background-color: rgba(255, 255, 255, 0.7);
19
+ }
20
+ .burgerMeat {
21
+ position: absolute;
22
+ width: 28px;
23
+ height: 2px;
24
+ background: #222;
25
+ top: calc(50% - 2px / 2);
26
+ left: calc(50% - 28px / 2);
27
+ transition: all 150ms ease-in;
28
+ }
29
+ .firstMeat {
30
+ transform: translateY(-10px);
31
+ }
32
+ .secondMeat {
33
+ width: calc(28px - 6px);
34
+ }
35
+ .thirdMeat {
36
+ transform: translateY(10px);
37
+ }
38
+ .burgerActive {
39
+ .burgerMeat-1 {
40
+ transform: rotate(45deg);
41
+ }
42
+ .burgerMeat-2 {
43
+ opacity: 0;
44
+ }
45
+ .burgerMeat-3 {
46
+ transform: rotate(-45deg);
47
+ }
48
+ }
49
+
50
+ @media (min-width: 769px) {
51
+ .burgerContainer {
52
+ display: none;
53
+ }
54
+ }
55
+
56
+ .widgetLayoutRoot {
57
+ display: block;
58
+ padding: 4rem 0;
59
+ box-sizing: border-box;
60
+ height: 100%;
61
+ main {
62
+ display: flex;
63
+ min-height: 100%;
64
+ }
65
+ }
66
+ @media (min-width: 769px) {
67
+ .widgetLayoutRoot {
68
+ display: flex;
69
+ flex: 1 0 auto;
70
+ main {
71
+ flex: 1 0 auto;
72
+ }
73
+ }
74
+ }
75
+
76
+ .widgetNavigationContainer {
77
+ width: 0;
78
+ ul {
79
+ opacity: 0;
80
+ width: 100%;
81
+ height: 100vh;
82
+ text-align: right;
83
+ list-style: none;
84
+ margin: 0;
85
+ padding: 0;
86
+ position: fixed;
87
+ top: 0;
88
+ background-color: #fff;
89
+ display: flex;
90
+ flex-direction: column;
91
+ justify-content: center;
92
+ z-index: 1;
93
+ transform: translateY(100%);
94
+ transition: opacity 200ms;
95
+ }
96
+ li {
97
+ margin-bottom: 1.75rem;
98
+ font-size: 2rem;
99
+ padding: 0 1.5rem 0 0;
100
+ }
101
+ li:last-child {
102
+ margin-bottom: 0;
103
+ }
104
+ .active {
105
+ color: #222;
106
+ }
107
+ }
108
+ .widgetNavigationContainer.widgetNavigationActive ul {
109
+ opacity: 1;
110
+ transform: translateY(0);
111
+ }
112
+
113
+ @media (min-width: 769px) {
114
+ .widgetNavigationContainer {
115
+ width: 7rem;
116
+ display: block;
117
+ ul {
118
+ opacity: 1;
119
+ width: 7rem;
120
+ top: auto;
121
+ display: block;
122
+ transform: translateY(0);
123
+ }
124
+ li {
125
+ font-size: 1rem;
126
+ padding: 0;
127
+ }
128
+ }
129
+ }
130
+
131
+ ul.widgetPagination {
132
+ list-style: none;
133
+ margin: 3rem 0 0 0;
134
+ padding: 0;
135
+ li {
136
+ display: inline-block;
137
+ margin-right: 1em;
138
+ color: #9b9b9b;
139
+ font-size: 1.25rem;
140
+ }
141
+ a.active {
142
+ color: #222;
143
+ font-weight: bold;
144
+ }
145
+ }
146
+
147
+ a.widgetPost {
148
+ color: #222;
149
+ display: inline-block;
150
+ h2 {
151
+ margin: 0;
152
+ font-weight: 500;
153
+ }
154
+ }
155
+
156
+ .widgetPostContent {
157
+ color: #222;
158
+ font-weight: 200;
159
+ }
160
+ .widgetPostContainer {
161
+ display: block;
162
+ max-width: 36rem;
163
+ width: 100%;
164
+ margin: 0 auto;
165
+ padding: 0 1.5rem;
166
+ box-sizing: border-box;
167
+ z-index: 0;
168
+ article {
169
+ flex: 1 0 auto;
170
+ }
171
+ h1 {
172
+ margin: 0 0 0.5rem;
173
+ font-size: 2.25rem;
174
+ }
175
+ .tag-list {
176
+ list-style: none;
177
+ text-align: right;
178
+ margin: 1.75rem 0 0 0;
179
+ padding: 0;
180
+ }
181
+ .tag-list li {
182
+ display: inline-block;
183
+ margin-left: 0.5rem;
184
+ }
185
+ .social-list {
186
+ margin-top: 3rem;
187
+ text-align: center;
188
+ }
189
+ }
190
+ .widgetPostMetadata div {
191
+ display: inline-block;
192
+ margin-right: 0.5rem;
193
+ }
194
+
195
+ @media (min-width: 769px) {
196
+ .widgetPostContainer {
197
+ display: flex;
198
+ flex-direction: column;
199
+ }
200
+ }
201
+
202
+ .widgetPostListContainer {
203
+ display: flex;
204
+ margin: 0 auto;
205
+ max-width: 1200px;
206
+ width: 100%;
207
+ padding: 0 1.5rem;
208
+ ul {
209
+ margin: 0;
210
+ padding: 0;
211
+ }
212
+ li {
213
+ list-style: none;
214
+ }
215
+ .widgetPosts {
216
+ display: flex;
217
+ flex-direction: column;
218
+ flex: 1 1 auto;
219
+ }
220
+ .widgetPosts li {
221
+ margin-bottom: 1.5rem;
222
+ }
223
+ .widgetPostList {
224
+ flex: 1 0 auto;
225
+ }
226
+ .widgetPostCategories {
227
+ display: none;
228
+ }
229
+ .widgetPostCategories li {
230
+ margin-bottom: 0.75em;
231
+ }
232
+ }
233
+
234
+ @media (min-width: 769px) {
235
+ .categories {
236
+ display: block;
237
+ }
238
+ }
239
+ .widgetSocialList {
240
+ a {
241
+ display: inline-block;
242
+ }
243
+ a:not(:last-child) {
244
+ margin-right: 2em;
245
+ }
246
+ }
247
+
248
+ a.widgetTagButton {
249
+ display: inline-block;
250
+ border-radius: 3px;
251
+ background-color: rgba(21, 132, 125, 0.2);
252
+ color: #15847d;
253
+ transition: background-color 0.3s ease;
254
+ padding: 0.25em 0.5em;
255
+
256
+ :active,
257
+ :hover {
258
+ background-color: rgba(21, 132, 125, 0.4);
259
+ }
260
+ }
261
+
262
+ .widgetTagPostContainer {
263
+ margin: 0 auto;
264
+ max-width: 1200px;
265
+ width: 100%;
266
+ padding: 0 1.5rem;
267
+ display: flex;
268
+ flex-direction: column;
269
+ h1 {
270
+ margin: 0 0 2rem;
271
+ padding: 0;
272
+ font-weight: 100;
273
+ font-size: 1.75rem;
274
+ color: #9b9b9b;
275
+ }
276
+ h1 span {
277
+ font-weight: bold;
278
+ color: #222;
279
+ }
280
+ ul {
281
+ margin: 0;
282
+ padding: 0;
283
+ flex: 1 0 auto;
284
+ }
285
+ li {
286
+ list-style: none;
287
+ margin-bottom: 1.5rem;
288
+ }
289
+ }
290
+
291
+ @media (min-width: 769px) {
292
+ .widgetTagPostContainer > h1 {
293
+ font-size: 2rem;
294
+ }
295
+ }
296
+
297
+ /* Syntax highlighting */
298
+ .token.comment,
299
+ .token.prolog,
300
+ .token.doctype,
301
+ .token.cdata,
302
+ .token.plain-text {
303
+ color: #6a737d;
304
+ }
305
+
306
+ .token.atrule,
307
+ .token.attr-value,
308
+ .token.keyword,
309
+ .token.operator {
310
+ color: #d73a49;
311
+ }
312
+
313
+ .token.property,
314
+ .token.tag,
315
+ .token.boolean,
316
+ .token.number,
317
+ .token.constant,
318
+ .token.symbol,
319
+ .token.deleted {
320
+ color: #22863a;
321
+ }
322
+
323
+ .token.selector,
324
+ .token.attr-name,
325
+ .token.string,
326
+ .token.char,
327
+ .token.builtin,
328
+ .token.inserted {
329
+ color: #032f62;
330
+ }
331
+
332
+ .token.function,
333
+ .token.class-name {
334
+ color: #6f42c1;
335
+ }
336
+
337
+ /* language-specific */
338
+
339
+ .language-jsx .token.punctuation,
340
+ .language-jsx .token.tag .token.punctuation,
341
+ .language-jsx .token.tag .token.script,
342
+ .language-jsx .token.plain-text {
343
+ color: #24292e;
344
+ }
345
+
346
+ .language-jsx .token.tag .token.attr-name {
347
+ color: #6f42c1;
348
+ }
349
+
350
+ .language-jsx .token.tag .token.class-name {
351
+ color: #005cc5;
352
+ }
353
+
354
+ .language-jsx .token.tag .token.script-punctuation,
355
+ .language-jsx .token.attr-value .token.punctuation:first-child {
356
+ color: #d73a49;
357
+ }
358
+
359
+ .language-jsx .token.attr-value {
360
+ color: #032f62;
361
+ }
362
+
363
+ .language-jsx span[class='comment'] {
364
+ color: pink;
365
+ }
366
+
367
+ /* HTML */
368
+ .language-html .token.tag .token.punctuation {
369
+ color: #24292e;
370
+ }
371
+
372
+ .language-html .token.tag .token.attr-name {
373
+ color: #6f42c1;
374
+ }
375
+
376
+ .language-html .token.tag .token.attr-value,
377
+ .language-html
378
+ .token.tag
379
+ .token.attr-value
380
+ .token.punctuation:not(:first-child) {
381
+ color: #032f62;
382
+ }
383
+
384
+ /* CSS */
385
+ .language-css .token.selector {
386
+ color: #6f42c1;
387
+ }
388
+
389
+ .language-css .token.property {
390
+ color: #005cc5;
391
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuudel-core",
3
- "version": "0.1.21",
3
+ "version": "0.1.27",
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",
@@ -60,19 +60,22 @@
60
60
  "graphql-2-json-schema": "0.2.0",
61
61
  "material-ui-chip-input": "^1.1.0",
62
62
  "next-with-apollo": "^5.2.1",
63
- "nuudel-utils": "^0.1.14",
63
+ "nuudel-utils": "^0.1.20",
64
64
  "pica": "^9.0.1",
65
65
  "react-device-detect": "^2.1.2",
66
66
  "react-dropzone": "^11.5.1",
67
67
  "react-google-recaptcha-v3": "^1.9.7",
68
68
  "react-number-format": "^4.9.1",
69
69
  "react-redux": "^7.2.6",
70
- "redux": "^4.1.2",
71
- "swiper": "^7.4.1"
70
+ "react-schemaorg": "^1.3.3",
71
+ "schema-dts": "^0.8.3",
72
+ "redux": "^4.1.2"
72
73
  },
73
74
  "devDependencies": {
74
75
  "@apollo/react-hooks": "^4.0.0",
75
76
  "@ava/typescript": "^1.1.1",
77
+ "@ckeditor/ckeditor5-build-classic": "^28.0.0",
78
+ "@ckeditor/ckeditor5-react": "^3.0.2",
76
79
  "@istanbuljs/nyc-config-typescript": "^1.0.1",
77
80
  "@material-ui/core": "^4.12.3",
78
81
  "@material-ui/icons": "^4.11.2",