@starlightcms/react-sdk 2.3.0 → 3.0.0-beta.2
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.
- package/dist/cjs/ResponsiveImage/index.d.ts.map +1 -1
- package/dist/cjs/ResponsiveImage/index.js +18 -8
- package/dist/cjs/ResponsiveImage/index.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/HTML/index.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/HTML/index.js +4 -6
- package/dist/cjs/VisualContent/blocks/HTML/index.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/Header.d.ts +0 -1
- package/dist/cjs/VisualContent/blocks/Header.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/Header.js +5 -2
- package/dist/cjs/VisualContent/blocks/Header.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/Image/index.d.ts +1 -1
- package/dist/cjs/VisualContent/blocks/Image/index.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/Image/index.js +51 -13
- package/dist/cjs/VisualContent/blocks/Image/index.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/List/index.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/List/index.js +9 -11
- package/dist/cjs/VisualContent/blocks/List/index.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/Paragraph.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/Paragraph.js +6 -3
- package/dist/cjs/VisualContent/blocks/Paragraph.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/Quote.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/Quote.js +1 -2
- package/dist/cjs/VisualContent/blocks/Quote.js.map +1 -1
- package/dist/cjs/VisualContent/blocks/Video/index.d.ts.map +1 -1
- package/dist/cjs/VisualContent/blocks/Video/index.js +7 -6
- package/dist/cjs/VisualContent/blocks/Video/index.js.map +1 -1
- package/dist/cjs/VisualContent/index.d.ts +0 -1
- package/dist/cjs/VisualContent/index.d.ts.map +1 -1
- package/dist/cjs/VisualContent/index.js +18 -9
- package/dist/cjs/VisualContent/index.js.map +1 -1
- package/dist/cjs/VisualContent/types.d.ts +1 -1
- package/dist/cjs/VisualContent/types.d.ts.map +1 -1
- package/dist/esm/ResponsiveImage/index.d.ts.map +1 -1
- package/dist/esm/ResponsiveImage/index.js +1 -1
- package/dist/esm/ResponsiveImage/index.js.map +1 -1
- package/dist/esm/VisualContent/blocks/HTML/index.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/HTML/index.js +4 -6
- package/dist/esm/VisualContent/blocks/HTML/index.js.map +1 -1
- package/dist/esm/VisualContent/blocks/Header.d.ts +0 -1
- package/dist/esm/VisualContent/blocks/Header.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/Header.js +5 -2
- package/dist/esm/VisualContent/blocks/Header.js.map +1 -1
- package/dist/esm/VisualContent/blocks/Image/index.d.ts +1 -1
- package/dist/esm/VisualContent/blocks/Image/index.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/Image/index.js +34 -6
- package/dist/esm/VisualContent/blocks/Image/index.js.map +1 -1
- package/dist/esm/VisualContent/blocks/List/index.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/List/index.js +9 -11
- package/dist/esm/VisualContent/blocks/List/index.js.map +1 -1
- package/dist/esm/VisualContent/blocks/Paragraph.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/Paragraph.js +6 -3
- package/dist/esm/VisualContent/blocks/Paragraph.js.map +1 -1
- package/dist/esm/VisualContent/blocks/Quote.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/Quote.js +1 -2
- package/dist/esm/VisualContent/blocks/Quote.js.map +1 -1
- package/dist/esm/VisualContent/blocks/Video/index.d.ts.map +1 -1
- package/dist/esm/VisualContent/blocks/Video/index.js +7 -6
- package/dist/esm/VisualContent/blocks/Video/index.js.map +1 -1
- package/dist/esm/VisualContent/index.d.ts +0 -1
- package/dist/esm/VisualContent/index.d.ts.map +1 -1
- package/dist/esm/VisualContent/index.js +1 -2
- package/dist/esm/VisualContent/index.js.map +1 -1
- package/dist/esm/VisualContent/types.d.ts +1 -1
- package/dist/esm/VisualContent/types.d.ts.map +1 -1
- package/dist/styles.css +197 -0
- package/dist/styles.css.map +1 -0
- package/package.json +17 -18
- package/dist/cjs/VisualContent/blocks/HTML/styles.d.ts +0 -6
- package/dist/cjs/VisualContent/blocks/HTML/styles.d.ts.map +0 -1
- package/dist/cjs/VisualContent/blocks/HTML/styles.js +0 -13
- package/dist/cjs/VisualContent/blocks/HTML/styles.js.map +0 -1
- package/dist/cjs/VisualContent/blocks/Image/styles.d.ts +0 -19
- package/dist/cjs/VisualContent/blocks/Image/styles.d.ts.map +0 -1
- package/dist/cjs/VisualContent/blocks/Image/styles.js +0 -41
- package/dist/cjs/VisualContent/blocks/Image/styles.js.map +0 -1
- package/dist/cjs/VisualContent/blocks/List/styles.d.ts +0 -6
- package/dist/cjs/VisualContent/blocks/List/styles.d.ts.map +0 -1
- package/dist/cjs/VisualContent/blocks/List/styles.js +0 -21
- package/dist/cjs/VisualContent/blocks/List/styles.js.map +0 -1
- package/dist/cjs/VisualContent/blocks/Video/styles.d.ts +0 -14
- package/dist/cjs/VisualContent/blocks/Video/styles.d.ts.map +0 -1
- package/dist/cjs/VisualContent/blocks/Video/styles.js +0 -41
- package/dist/cjs/VisualContent/blocks/Video/styles.js.map +0 -1
- package/dist/cjs/VisualContent/styles.d.ts +0 -14
- package/dist/cjs/VisualContent/styles.d.ts.map +0 -1
- package/dist/cjs/VisualContent/styles.js +0 -89
- package/dist/cjs/VisualContent/styles.js.map +0 -1
- package/dist/esm/VisualContent/blocks/HTML/styles.d.ts +0 -6
- package/dist/esm/VisualContent/blocks/HTML/styles.d.ts.map +0 -1
- package/dist/esm/VisualContent/blocks/HTML/styles.js +0 -7
- package/dist/esm/VisualContent/blocks/HTML/styles.js.map +0 -1
- package/dist/esm/VisualContent/blocks/Image/styles.d.ts +0 -19
- package/dist/esm/VisualContent/blocks/Image/styles.d.ts.map +0 -1
- package/dist/esm/VisualContent/blocks/Image/styles.js +0 -35
- package/dist/esm/VisualContent/blocks/Image/styles.js.map +0 -1
- package/dist/esm/VisualContent/blocks/List/styles.d.ts +0 -6
- package/dist/esm/VisualContent/blocks/List/styles.d.ts.map +0 -1
- package/dist/esm/VisualContent/blocks/List/styles.js +0 -15
- package/dist/esm/VisualContent/blocks/List/styles.js.map +0 -1
- package/dist/esm/VisualContent/blocks/Video/styles.d.ts +0 -14
- package/dist/esm/VisualContent/blocks/Video/styles.d.ts.map +0 -1
- package/dist/esm/VisualContent/blocks/Video/styles.js +0 -35
- package/dist/esm/VisualContent/blocks/Video/styles.js.map +0 -1
- package/dist/esm/VisualContent/styles.d.ts +0 -14
- package/dist/esm/VisualContent/styles.d.ts.map +0 -1
- package/dist/esm/VisualContent/styles.js +0 -83
- package/dist/esm/VisualContent/styles.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/VisualContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EACL,WAAW,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACX,MAAM,sBAAsB,CAAA;AAG7B,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/VisualContent/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AACrC,OAAO,EACL,WAAW,EACX,UAAU,EACV,cAAc,EACd,UAAU,EACV,UAAU,EACV,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACX,MAAM,sBAAsB,CAAA;AAG7B,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;AAEzD,MAAM,WAAW,eACf,SAAQ,UAAU,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC;IAC/D,SAAS,EAAE,aAAa,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,CAAA;IACzD,MAAM,EAAE,aAAa,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAA;IACnD,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,GAAG,EAAE,aAAa,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAA;IAC9C,IAAI,EAAE,aAAa,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAA;IAC/C,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAA;CAClD;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,CAAA;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAA;IACrC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB"}
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
.sl-visual-content {
|
|
3
|
+
--sl-max-block-width: 100%;
|
|
4
|
+
}
|
|
5
|
+
.sl-visual-content .sl__color {
|
|
6
|
+
padding: 2px 0;
|
|
7
|
+
border-radius: 4px;
|
|
8
|
+
}
|
|
9
|
+
.sl-visual-content .sl__color__bg--red {
|
|
10
|
+
background-color: rgb(253, 235, 236);
|
|
11
|
+
}
|
|
12
|
+
.sl-visual-content .sl__color__bg--pink {
|
|
13
|
+
background-color: rgb(253, 235, 236);
|
|
14
|
+
}
|
|
15
|
+
.sl-visual-content .sl__color__bg--purple {
|
|
16
|
+
background-color: rgb(244, 240, 247);
|
|
17
|
+
}
|
|
18
|
+
.sl-visual-content .sl__color__bg--blue {
|
|
19
|
+
background-color: rgb(231, 243, 248);
|
|
20
|
+
}
|
|
21
|
+
.sl-visual-content .sl__color__bg--green {
|
|
22
|
+
background-color: rgb(237, 243, 236);
|
|
23
|
+
}
|
|
24
|
+
.sl-visual-content .sl__color__bg--yellow {
|
|
25
|
+
background-color: rgb(251, 243, 219);
|
|
26
|
+
}
|
|
27
|
+
.sl-visual-content .sl__color__bg--orange {
|
|
28
|
+
background-color: rgb(251, 236, 221);
|
|
29
|
+
}
|
|
30
|
+
.sl-visual-content .sl__color__bg--brown {
|
|
31
|
+
background-color: rgb(244, 238, 238);
|
|
32
|
+
}
|
|
33
|
+
.sl-visual-content .sl__color__bg--gray {
|
|
34
|
+
background-color: rgb(241, 241, 239);
|
|
35
|
+
}
|
|
36
|
+
.sl-visual-content .sl__color__text--red {
|
|
37
|
+
color: rgb(212, 76, 71);
|
|
38
|
+
}
|
|
39
|
+
.sl-visual-content .sl__color__text--pink {
|
|
40
|
+
color: rgb(193, 76, 138);
|
|
41
|
+
}
|
|
42
|
+
.sl-visual-content .sl__color__text--purple {
|
|
43
|
+
color: rgb(144, 101, 176);
|
|
44
|
+
}
|
|
45
|
+
.sl-visual-content .sl__color__text--blue {
|
|
46
|
+
color: rgb(51, 126, 169);
|
|
47
|
+
}
|
|
48
|
+
.sl-visual-content .sl__color__text--green {
|
|
49
|
+
color: rgb(68, 131, 97);
|
|
50
|
+
}
|
|
51
|
+
.sl-visual-content .sl__color__text--yellow {
|
|
52
|
+
color: rgb(203, 145, 47);
|
|
53
|
+
}
|
|
54
|
+
.sl-visual-content .sl__color__text--orange {
|
|
55
|
+
color: rgb(217, 115, 13);
|
|
56
|
+
}
|
|
57
|
+
.sl-visual-content .sl__color__text--brown {
|
|
58
|
+
color: rgb(159, 107, 83);
|
|
59
|
+
}
|
|
60
|
+
.sl-visual-content .sl__color__text--gray {
|
|
61
|
+
color: rgb(120, 119, 116);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.sl-content-block {
|
|
65
|
+
margin: auto;
|
|
66
|
+
width: 100%;
|
|
67
|
+
max-width: var(--sl-max-block-width);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.sl-stretched {
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.sl-header.sl-alignment-start, .sl-paragraph.sl-alignment-start {
|
|
75
|
+
text-align: start;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.sl-header.sl-alignment-center, .sl-paragraph.sl-alignment-center {
|
|
79
|
+
text-align: center;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.sl-header.sl-alignment-end, .sl-paragraph.sl-alignment-end {
|
|
83
|
+
text-align: end;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.sl-header.sl-alignment-justify, .sl-paragraph.sl-alignment-justify {
|
|
87
|
+
text-align: justify;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.sl-figure figcaption {
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
margin-top: 6px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.sl-html__root > * {
|
|
97
|
+
max-width: 100%;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.sl-image > .sl-figure {
|
|
101
|
+
margin: 1rem 0;
|
|
102
|
+
}
|
|
103
|
+
.sl-image > .sl-figure > a {
|
|
104
|
+
width: 100%;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.sl-image.sl-alignment-start {
|
|
108
|
+
display: flex;
|
|
109
|
+
justify-content: flex-start;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sl-image.sl-alignment-center {
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sl-image.sl-alignment-end {
|
|
118
|
+
display: flex;
|
|
119
|
+
justify-content: flex-end;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.sl-image.sl-alignment-justify {
|
|
123
|
+
display: flex;
|
|
124
|
+
justify-content: stretch;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.sl-image__img {
|
|
128
|
+
display: block;
|
|
129
|
+
width: 100%;
|
|
130
|
+
object-fit: cover;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.sl-list > ul.sl-list__root {
|
|
134
|
+
list-style: none;
|
|
135
|
+
}
|
|
136
|
+
.sl-list > ul.sl-list__root > li::before {
|
|
137
|
+
content: "•";
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.sl-list__root {
|
|
141
|
+
padding-left: 1em;
|
|
142
|
+
}
|
|
143
|
+
.sl-list__root > li {
|
|
144
|
+
margin: 0.5em 0;
|
|
145
|
+
}
|
|
146
|
+
.sl-list__root > li::before {
|
|
147
|
+
margin-right: 0.5em;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.sl-video {
|
|
151
|
+
display: flex;
|
|
152
|
+
}
|
|
153
|
+
.sl-video > figure.sl-figure {
|
|
154
|
+
margin: 0;
|
|
155
|
+
}
|
|
156
|
+
.sl-video > figure.sl-figure > div > * {
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
}
|
|
159
|
+
.sl-video > figure.sl-figure > div > iframe {
|
|
160
|
+
display: block;
|
|
161
|
+
margin: auto;
|
|
162
|
+
aspect-ratio: 16/9;
|
|
163
|
+
border: none;
|
|
164
|
+
background-color: transparent;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.sl-video--width-auto {
|
|
168
|
+
width: initial;
|
|
169
|
+
}
|
|
170
|
+
.sl-video--width-auto iframe {
|
|
171
|
+
width: initial;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.sl-video--width-justify, .sl-video--width-max, .sl-video--width-fixed {
|
|
175
|
+
width: 100%;
|
|
176
|
+
}
|
|
177
|
+
.sl-video--width-justify iframe, .sl-video--width-max iframe, .sl-video--width-fixed iframe {
|
|
178
|
+
width: 100%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.sl-video.sl-alignment-start {
|
|
182
|
+
justify-content: flex-start;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.sl-video.sl-alignment-center {
|
|
186
|
+
justify-content: center;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.sl-video.sl-alignment-end {
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.sl-video.sl-alignment-justify {
|
|
194
|
+
justify-content: stretch;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/*# sourceMappingURL=styles.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../src/VisualContent/styles.scss","../src/VisualContent/blocks/blocks.scss","../src/VisualContent/blocks/HTML/styles.scss","../src/VisualContent/blocks/Image/styles.scss","../src/VisualContent/blocks/List/styles.scss","../src/VisualContent/blocks/Video/styles.scss"],"names":[],"mappings":";AAAA;EACE;;AAEA;EACE;EACA;;AAGE;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAKF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;AAEF;EACE;;;AC/DR;EACE;EAEA;EACA;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAIA;EACE;EACA;EACA;;;AC9BF;EACE;;;ACFJ;EACE;;AAEA;EACE;;;AAIJ;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAGF;EACE;EACA;;;AAIF;EACE;EACA;EACA;;;AC/BA;EACE;;AAGE;EACE;;;AAMR;EACE;;AAEA;EACE;;AAEA;EACE;;;ACnBN;EACE;;AAEA;EACE;;AAGE;EACE;;AAGF;EACE;EACA;EAEA;EAEA;EAEA;;;AAMR;EACE;;AAEA;EACE;;;AAIJ;EACE;;AAEA;EACE;;;AAIJ;EACE;;;AAGF;EACE;;;AAGF;EACE;;;AAGF;EACE","file":"styles.css"}
|
package/package.json
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@starlightcms/react-sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.2",
|
|
4
4
|
"description": "The Starlight SDK for React",
|
|
5
|
-
"workspaces": [
|
|
6
|
-
"website"
|
|
7
|
-
],
|
|
8
5
|
"main": "dist/cjs/index.js",
|
|
9
6
|
"exports": {
|
|
10
7
|
".": {
|
|
11
8
|
"require": "./dist/cjs/index.js",
|
|
12
9
|
"import": "./dist/esm/index.js"
|
|
13
10
|
},
|
|
14
|
-
"./styles.css": "./dist/
|
|
11
|
+
"./styles.css": "./dist/styles.css"
|
|
15
12
|
},
|
|
16
13
|
"scripts": {
|
|
17
|
-
"build": "rimraf dist && npm run build:cjs && npm run build:esm",
|
|
18
|
-
"build:esm": "tsc --module esnext --outDir dist/esm",
|
|
14
|
+
"build": "rimraf dist && npm run build:cjs && npm run build:esm && npm run build:css",
|
|
19
15
|
"build:cjs": "tsc --module commonjs --outDir dist/cjs",
|
|
16
|
+
"build:esm": "tsc --module esnext --outDir dist/esm",
|
|
17
|
+
"build:css": "sass src/styles.scss dist/styles.css",
|
|
18
|
+
"watch:css": "sass --watch src/styles.scss dist/styles.css",
|
|
20
19
|
"dev": "tsc --watch --module esnext --outDir dist/esm",
|
|
21
20
|
"dev:cjs": "tsc --watch --module commonjs --outDir dist/cjs",
|
|
22
21
|
"docs": "npm start -w website",
|
|
@@ -44,17 +43,19 @@
|
|
|
44
43
|
},
|
|
45
44
|
"homepage": "https://github.com/starlightcms/react-sdk#readme",
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^
|
|
48
|
-
"@types/react": "^
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
50
|
-
"@typescript-eslint/parser": "^
|
|
51
|
-
"eslint": "^
|
|
52
|
-
"eslint-config-prettier": "^
|
|
46
|
+
"@types/node": "^24.10.3",
|
|
47
|
+
"@types/react": "^18.3.27",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.49.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.49.0",
|
|
50
|
+
"eslint": "^9.39.1",
|
|
51
|
+
"eslint-config-prettier": "^10.1.8",
|
|
53
52
|
"husky": "^7.0.2",
|
|
54
53
|
"lint-staged": "^11.1.2",
|
|
54
|
+
"npm-run-all": "^4.1.5",
|
|
55
55
|
"prettier": "2.4.1",
|
|
56
56
|
"rimraf": "^3.0.2",
|
|
57
|
-
"
|
|
57
|
+
"sass": "^1.69.5",
|
|
58
|
+
"typescript": "^5.9.3"
|
|
58
59
|
},
|
|
59
60
|
"lint-staged": {
|
|
60
61
|
"*.{ts,tsx}": [
|
|
@@ -63,11 +64,9 @@
|
|
|
63
64
|
]
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
|
-
"@
|
|
67
|
-
"@emotion/styled": "^11.10.6",
|
|
68
|
-
"@starlightcms/js-sdk": "^2.2.1"
|
|
67
|
+
"@starlightcms/js-sdk": "^3.0.0-beta.0"
|
|
69
68
|
},
|
|
70
69
|
"peerDependencies": {
|
|
71
|
-
"react": ">=
|
|
70
|
+
"react": ">=18.0.0"
|
|
72
71
|
}
|
|
73
72
|
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const HTMLWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;yGAIvB,CAAA"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.HTMLWrapper = void 0;
|
|
7
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
-
exports.HTMLWrapper = styled_1.default.div `
|
|
9
|
-
> * {
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAoC;AAEvB,QAAA,WAAW,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAA","sourcesContent":["import styled from '@emotion/styled'\n\nexport const HTMLWrapper = styled.div`\n > * {\n max-width: 100%;\n }\n`\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
declare type ImageProps = {
|
|
11
|
-
width: string;
|
|
12
|
-
originalWidth?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export declare const SelectedImage: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
} & ImageProps, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,YAAY;;;;;;;UAExB,CAAA;AAED,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa;;;6HA4BzB,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SelectedImage = exports.ImageWrapper = void 0;
|
|
7
|
-
const styles_1 = require("../../styles");
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
exports.ImageWrapper = (0, styled_1.default)(styles_1.FigureWrapper) `
|
|
10
|
-
margin: 1em auto;
|
|
11
|
-
`;
|
|
12
|
-
exports.SelectedImage = styled_1.default.img `
|
|
13
|
-
display: block;
|
|
14
|
-
margin: auto;
|
|
15
|
-
object-fit: cover;
|
|
16
|
-
|
|
17
|
-
max-width: ${({ width, originalWidth }) => {
|
|
18
|
-
if (originalWidth && width === 'auto')
|
|
19
|
-
return originalWidth;
|
|
20
|
-
switch (width) {
|
|
21
|
-
case 'auto':
|
|
22
|
-
return '100%';
|
|
23
|
-
case 'justify':
|
|
24
|
-
case 'max':
|
|
25
|
-
return 'initial';
|
|
26
|
-
}
|
|
27
|
-
}};
|
|
28
|
-
|
|
29
|
-
width: ${({ width }) => {
|
|
30
|
-
switch (width) {
|
|
31
|
-
case 'auto':
|
|
32
|
-
return 'initial';
|
|
33
|
-
case 'justify':
|
|
34
|
-
case 'max':
|
|
35
|
-
return '100%';
|
|
36
|
-
default:
|
|
37
|
-
return width;
|
|
38
|
-
}
|
|
39
|
-
}};
|
|
40
|
-
`;
|
|
41
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/styles.ts"],"names":[],"mappings":";;;;;;AAAA,yCAA4C;AAC5C,6DAAoC;AAEvB,QAAA,YAAY,GAAG,IAAA,gBAAM,EAAC,sBAAa,CAAC,CAAA;;CAEhD,CAAA;AAOY,QAAA,aAAa,GAAG,gBAAM,CAAC,GAAG,CAAY;;;;;eAKpC,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;IACxC,IAAI,aAAa,IAAI,KAAK,KAAK,MAAM;QAAE,OAAO,aAAa,CAAA;IAE3D,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,MAAM,CAAA;QACf,KAAK,SAAS,CAAC;QACf,KAAK,KAAK;YACR,OAAO,SAAS,CAAA;KACnB;AACH,CAAC;;WAEQ,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrB,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC;QACf,KAAK,KAAK;YACR,OAAO,MAAM,CAAA;QACf;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;CACF,CAAA","sourcesContent":["import { FigureWrapper } from '../../styles'\nimport styled from '@emotion/styled'\n\nexport const ImageWrapper = styled(FigureWrapper)`\n margin: 1em auto;\n`\n\ntype ImageProps = {\n width: string\n originalWidth?: string | undefined\n}\n\nexport const SelectedImage = styled.img<ImageProps>`\n display: block;\n margin: auto;\n object-fit: cover;\n\n max-width: ${({ width, originalWidth }) => {\n if (originalWidth && width === 'auto') return originalWidth\n\n switch (width) {\n case 'auto':\n return '100%'\n case 'justify':\n case 'max':\n return 'initial'\n }\n }};\n\n width: ${({ width }) => {\n switch (width) {\n case 'auto':\n return 'initial'\n case 'justify':\n case 'max':\n return '100%'\n default:\n return width\n }\n }};\n`\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ListWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
|
|
6
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;6GAYvB,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ListWrapper = void 0;
|
|
7
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
8
|
-
exports.ListWrapper = styled_1.default.ul `
|
|
9
|
-
list-style: none;
|
|
10
|
-
padding-left: 1em;
|
|
11
|
-
|
|
12
|
-
> li {
|
|
13
|
-
margin: 0.5em 0;
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
content: '•';
|
|
17
|
-
margin-right: 0.5em;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
`;
|
|
21
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/List/styles.ts"],"names":[],"mappings":";;;;;;AAAA,6DAAoC;AAEvB,QAAA,WAAW,GAAG,gBAAM,CAAC,EAAE,CAAA;;;;;;;;;;;;CAYnC,CAAA","sourcesContent":["import styled from '@emotion/styled'\n\nexport const ListWrapper = styled.ul`\n list-style: none;\n padding-left: 1em;\n\n > li {\n margin: 0.5em 0;\n\n &::before {\n content: '•';\n margin-right: 0.5em;\n }\n }\n`\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type VideoWrapperProps = {
|
|
3
|
-
width: string | null;
|
|
4
|
-
};
|
|
5
|
-
export declare const VideoWrapper: import("@emotion/styled").StyledComponent<{
|
|
6
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
8
|
-
} & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
9
|
-
children?: import("react").ReactNode;
|
|
10
|
-
} & {
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
} & VideoWrapperProps, {}, {}>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/styles.ts"],"names":[],"mappings":";AAGA,aAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;8BA+BxB,CAAA"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.VideoWrapper = void 0;
|
|
7
|
-
const styles_1 = require("../../styles");
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
exports.VideoWrapper = (0, styled_1.default)(styles_1.FigureWrapper) `
|
|
10
|
-
margin: 0;
|
|
11
|
-
|
|
12
|
-
> div {
|
|
13
|
-
> * {
|
|
14
|
-
max-width: 100%;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
> iframe {
|
|
18
|
-
display: block;
|
|
19
|
-
margin: auto;
|
|
20
|
-
|
|
21
|
-
aspect-ratio: 16/9;
|
|
22
|
-
|
|
23
|
-
border: none;
|
|
24
|
-
|
|
25
|
-
background-color: transparent;
|
|
26
|
-
|
|
27
|
-
width: ${({ width }) => {
|
|
28
|
-
switch (width) {
|
|
29
|
-
case 'auto':
|
|
30
|
-
return 'initial';
|
|
31
|
-
case 'justify':
|
|
32
|
-
case 'max':
|
|
33
|
-
return '100%';
|
|
34
|
-
default:
|
|
35
|
-
return width;
|
|
36
|
-
}
|
|
37
|
-
}};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
`;
|
|
41
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Video/styles.ts"],"names":[],"mappings":";;;;;;AAAA,yCAA4C;AAC5C,6DAAoC;AAMvB,QAAA,YAAY,GAAG,IAAA,gBAAM,EAAC,sBAAa,CAAC,CAAmB;;;;;;;;;;;;;;;;;;eAkBrD,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IACrB,QAAQ,KAAK,EAAE;QACb,KAAK,MAAM;YACT,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC;QACf,KAAK,KAAK;YACR,OAAO,MAAM,CAAA;QACf;YACE,OAAO,KAAK,CAAA;KACf;AACH,CAAC;;;CAGN,CAAA","sourcesContent":["import { FigureWrapper } from '../../styles'\nimport styled from '@emotion/styled'\n\ntype VideoWrapperProps = {\n width: string | null\n}\n\nexport const VideoWrapper = styled(FigureWrapper)<VideoWrapperProps>`\n margin: 0;\n\n > div {\n > * {\n max-width: 100%;\n }\n\n > iframe {\n display: block;\n margin: auto;\n\n aspect-ratio: 16/9;\n\n border: none;\n\n background-color: transparent;\n\n width: ${({ width }) => {\n switch (width) {\n case 'auto':\n return 'initial'\n case 'justify':\n case 'max':\n return '100%'\n default:\n return width\n }\n }};\n }\n }\n`\n"]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const OuterWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const BlockWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
10
|
-
export declare const FigureWrapper: import("@emotion/styled").StyledComponent<{
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
14
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/VisualContent/styles.ts"],"names":[],"mappings":";AAIA,eAAO,MAAM,YAAY;;;yGAiExB,CAAA;AAED,eAAO,MAAM,YAAY;;;yGAMxB,CAAA;AAED,eAAO,MAAM,aAAa;;;mGAMzB,CAAA"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
'use client';
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.FigureWrapper = exports.BlockWrapper = exports.OuterWrapper = void 0;
|
|
8
|
-
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
-
exports.OuterWrapper = styled_1.default.div `
|
|
10
|
-
.sl__color {
|
|
11
|
-
padding: 2px 0;
|
|
12
|
-
border-radius: 4px;
|
|
13
|
-
|
|
14
|
-
&__bg {
|
|
15
|
-
&--red {
|
|
16
|
-
background-color: rgb(253, 235, 236);
|
|
17
|
-
}
|
|
18
|
-
&--pink {
|
|
19
|
-
background-color: rgb(253, 235, 236);
|
|
20
|
-
}
|
|
21
|
-
&--purple {
|
|
22
|
-
background-color: rgb(244, 240, 247);
|
|
23
|
-
}
|
|
24
|
-
&--blue {
|
|
25
|
-
background-color: rgb(231, 243, 248);
|
|
26
|
-
}
|
|
27
|
-
&--green {
|
|
28
|
-
background-color: rgb(237, 243, 236);
|
|
29
|
-
}
|
|
30
|
-
&--yellow {
|
|
31
|
-
background-color: rgb(251, 243, 219);
|
|
32
|
-
}
|
|
33
|
-
&--orange {
|
|
34
|
-
background-color: rgb(251, 236, 221);
|
|
35
|
-
}
|
|
36
|
-
&--brown {
|
|
37
|
-
background-color: rgb(244, 238, 238);
|
|
38
|
-
}
|
|
39
|
-
&--gray {
|
|
40
|
-
background-color: rgb(241, 241, 239);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&__text {
|
|
45
|
-
&--red {
|
|
46
|
-
color: rgb(212, 76, 71);
|
|
47
|
-
}
|
|
48
|
-
&--pink {
|
|
49
|
-
color: rgb(193, 76, 138);
|
|
50
|
-
}
|
|
51
|
-
&--purple {
|
|
52
|
-
color: rgb(144, 101, 176);
|
|
53
|
-
}
|
|
54
|
-
&--blue {
|
|
55
|
-
color: rgb(51, 126, 169);
|
|
56
|
-
}
|
|
57
|
-
&--green {
|
|
58
|
-
color: rgb(68, 131, 97);
|
|
59
|
-
}
|
|
60
|
-
&--yellow {
|
|
61
|
-
color: rgb(203, 145, 47);
|
|
62
|
-
}
|
|
63
|
-
&--orange {
|
|
64
|
-
color: rgb(217, 115, 13);
|
|
65
|
-
}
|
|
66
|
-
&--brown {
|
|
67
|
-
color: rgb(159, 107, 83);
|
|
68
|
-
}
|
|
69
|
-
&--gray {
|
|
70
|
-
color: rgb(120, 119, 116);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
`;
|
|
75
|
-
exports.BlockWrapper = styled_1.default.div `
|
|
76
|
-
margin: auto;
|
|
77
|
-
|
|
78
|
-
&.sl-width-max {
|
|
79
|
-
max-width: 100%;
|
|
80
|
-
}
|
|
81
|
-
`;
|
|
82
|
-
exports.FigureWrapper = styled_1.default.figure `
|
|
83
|
-
figcaption {
|
|
84
|
-
display: flex;
|
|
85
|
-
justify-content: center;
|
|
86
|
-
margin-top: 6px;
|
|
87
|
-
}
|
|
88
|
-
`;
|
|
89
|
-
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/VisualContent/styles.ts"],"names":[],"mappings":";AAAA,YAAY,CAAA;;;;;;AAEZ,6DAAoC;AAEvB,QAAA,YAAY,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiErC,CAAA;AAEY,QAAA,YAAY,GAAG,gBAAM,CAAC,GAAG,CAAA;;;;;;CAMrC,CAAA;AAEY,QAAA,aAAa,GAAG,gBAAM,CAAC,MAAM,CAAA;;;;;;CAMzC,CAAA","sourcesContent":["'use client'\n\nimport styled from '@emotion/styled'\n\nexport const OuterWrapper = styled.div`\n .sl__color {\n padding: 2px 0;\n border-radius: 4px;\n\n &__bg {\n &--red {\n background-color: rgb(253, 235, 236);\n }\n &--pink {\n background-color: rgb(253, 235, 236);\n }\n &--purple {\n background-color: rgb(244, 240, 247);\n }\n &--blue {\n background-color: rgb(231, 243, 248);\n }\n &--green {\n background-color: rgb(237, 243, 236);\n }\n &--yellow {\n background-color: rgb(251, 243, 219);\n }\n &--orange {\n background-color: rgb(251, 236, 221);\n }\n &--brown {\n background-color: rgb(244, 238, 238);\n }\n &--gray {\n background-color: rgb(241, 241, 239);\n }\n }\n\n &__text {\n &--red {\n color: rgb(212, 76, 71);\n }\n &--pink {\n color: rgb(193, 76, 138);\n }\n &--purple {\n color: rgb(144, 101, 176);\n }\n &--blue {\n color: rgb(51, 126, 169);\n }\n &--green {\n color: rgb(68, 131, 97);\n }\n &--yellow {\n color: rgb(203, 145, 47);\n }\n &--orange {\n color: rgb(217, 115, 13);\n }\n &--brown {\n color: rgb(159, 107, 83);\n }\n &--gray {\n color: rgb(120, 119, 116);\n }\n }\n }\n`\n\nexport const BlockWrapper = styled.div`\n margin: auto;\n\n &.sl-width-max {\n max-width: 100%;\n }\n`\n\nexport const FigureWrapper = styled.figure`\n figcaption {\n display: flex;\n justify-content: center;\n margin-top: 6px;\n }\n`\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const HTMLWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;yGAIvB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/HTML/styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIpC,CAAA","sourcesContent":["import styled from '@emotion/styled'\n\nexport const HTMLWrapper = styled.div`\n > * {\n max-width: 100%;\n }\n`\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement> & {
|
|
6
|
-
children?: import("react").ReactNode;
|
|
7
|
-
} & {
|
|
8
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
declare type ImageProps = {
|
|
11
|
-
width: string;
|
|
12
|
-
originalWidth?: string | undefined;
|
|
13
|
-
};
|
|
14
|
-
export declare const SelectedImage: import("@emotion/styled").StyledComponent<{
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
-
} & ImageProps, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../src/VisualContent/blocks/Image/styles.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,YAAY;;;;;;;UAExB,CAAA;AAED,aAAK,UAAU,GAAG;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa;;;6HA4BzB,CAAA"}
|