ember-freestyle 0.12.9 → 0.13.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/.husky/pre-commit +5 -0
- package/CHANGELOG.md +54 -0
- package/README.md +69 -49
- package/addon/components/freestyle/usage/argument/index.hbs +1 -1
- package/addon/components/freestyle/usage/argument/index.js +5 -0
- package/addon/components/freestyle/usage/array/index.hbs +1 -0
- package/addon/components/freestyle/usage/bool/{control.hbs → control/index.hbs} +1 -1
- package/addon/components/freestyle/usage/bool/control/index.js +9 -0
- package/addon/components/freestyle/usage/bool/index.hbs +1 -0
- package/addon/components/freestyle/usage/number/{control.hbs → control/index.hbs} +2 -1
- package/addon/components/freestyle/usage/number/{control.js → control/index.js} +5 -0
- package/addon/components/freestyle/usage/number/index.hbs +1 -0
- package/addon/components/freestyle/usage/object/control/index.hbs +5 -0
- package/addon/components/freestyle/usage/object/control/index.js +18 -0
- package/addon/components/freestyle/usage/object/index.hbs +1 -0
- package/addon/components/freestyle/usage/string/{control.hbs → control/index.hbs} +4 -2
- package/addon/components/freestyle/usage/string/{control.js → control/index.js} +6 -0
- package/addon/components/freestyle/usage/string/index.hbs +1 -0
- package/addon/components/freestyle-collection/index.js +1 -2
- package/addon/components/freestyle-dynamic/index.js +1 -2
- package/addon/components/freestyle-dynamic-input/index.hbs +34 -6
- package/addon/components/freestyle-dynamic-input/index.js +6 -6
- package/addon/components/freestyle-palette/index.hbs +3 -3
- package/addon/components/freestyle-palette/index.js +1 -0
- package/addon/components/freestyle-palette-item/index.js +1 -1
- package/addon/components/freestyle-section/index.js +0 -2
- package/addon/components/freestyle-showdown-content/index.js +14 -0
- package/addon/components/freestyle-source/index.js +1 -2
- package/addon/components/freestyle-subsection/index.js +0 -1
- package/addon/components/freestyle-typeface/index.js +1 -1
- package/addon/components/freestyle-usage/index.js +3 -4
- package/addon/components/freestyle-usage-controls/index.hbs +2 -2
- package/addon/components/freestyle-variant-list/index.hbs +1 -1
- package/addon/services/ember-freestyle.js +2 -2
- package/app/components/freestyle/usage/{bool/index.js → bool.js} +0 -0
- package/app/components/freestyle/usage/{number/index.js → number.js} +0 -0
- package/app/components/freestyle/usage/{object/index.js → object.js} +0 -0
- package/app/components/freestyle/usage/{string/index.js → string.js} +0 -0
- package/{addon → app}/styles/components/freestyle/usage.scss +14 -14
- package/{addon → app}/styles/components/freestyle-annotation.scss +1 -1
- package/{addon → app}/styles/components/freestyle-collection.scss +5 -4
- package/{addon → app}/styles/components/freestyle-dynamic.scss +2 -1
- package/{addon → app}/styles/components/freestyle-guide.scss +7 -6
- package/{addon → app}/styles/components/freestyle-menu.scss +1 -1
- package/{addon → app}/styles/components/freestyle-palette-item.scss +0 -1
- package/{addon → app}/styles/components/freestyle-palette.scss +1 -1
- package/{addon → app}/styles/components/freestyle-section.scss +1 -1
- package/{addon → app}/styles/components/freestyle-source.scss +2 -2
- package/{addon → app}/styles/components/freestyle-subsection.scss +2 -2
- package/{addon → app}/styles/components/freestyle-typeface.scss +0 -0
- package/{addon → app}/styles/components/freestyle-usage-controls.scss +12 -11
- package/{addon → app}/styles/components/freestyle-usage.scss +2 -6
- package/{addon → app}/styles/components/freestyle-variant.scss +0 -0
- package/{addon/styles/addon.scss → app/styles/ember-freestyle.scss} +3 -3
- package/blueprints/ember-freestyle/files/__root__/app/controllers/freestyle.js +16 -47
- package/blueprints/ember-freestyle/files/__root__/app/templates/freestyle.hbs +14 -20
- package/blueprints/ember-freestyle/index.js +0 -1
- package/index.js +15 -1
- package/lib/ast-transform.js +26 -33
- package/package.json +50 -44
- package/vendor/ember-freestyle.css +523 -0
- package/addon/components/freestyle/usage/object/control.hbs +0 -7
- package/addon/components/freestyle-note/index.hbs +0 -3
- package/addon/components/freestyle-note/index.js +0 -11
- package/addon/helpers/equal.js +0 -3
- package/addon/helpers/is-present.js +0 -10
- package/addon/helpers/pick.js +0 -14
- package/app/components/freestyle-note.js +0 -9
- package/app/helpers/is-present.js +0 -1
- package/app/helpers/pick.js +0 -1
- package/app/helpers/variant-eq.js +0 -4
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
.FreestyleGuide {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
min-height: 100vh;
|
|
6
|
+
min-width: 320px;
|
|
7
|
+
}
|
|
8
|
+
.FreestyleGuide-header, .FreestyleGuide-footer {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex: none;
|
|
11
|
+
}
|
|
12
|
+
.FreestyleGuide-header {
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
border-bottom: solid 1px #b6b6b6;
|
|
16
|
+
padding: 0.5rem 1rem;
|
|
17
|
+
}
|
|
18
|
+
.FreestyleGuide-cta {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
display: inline-block;
|
|
21
|
+
flex-basis: 20px;
|
|
22
|
+
font-size: 1.4rem;
|
|
23
|
+
text-align: center;
|
|
24
|
+
}
|
|
25
|
+
.FreestyleGuide-ctaIcon:hover {
|
|
26
|
+
fill: #00bcd4;
|
|
27
|
+
}
|
|
28
|
+
.FreestyleGuide-titleContainer {
|
|
29
|
+
padding: 0 1rem;
|
|
30
|
+
text-align: center;
|
|
31
|
+
}
|
|
32
|
+
.FreestyleGuide-title {
|
|
33
|
+
font-size: 1.4rem;
|
|
34
|
+
font-weight: bold;
|
|
35
|
+
}
|
|
36
|
+
@media (min-width: 600px) {
|
|
37
|
+
.FreestyleGuide-title {
|
|
38
|
+
font-size: 1.9rem;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.FreestyleGuide-subtitle {
|
|
42
|
+
margin: 0 auto;
|
|
43
|
+
}
|
|
44
|
+
.FreestyleGuide-body {
|
|
45
|
+
background-color: #fff;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex: 1 0 auto;
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
}
|
|
50
|
+
@media (min-width: 600px) {
|
|
51
|
+
.FreestyleGuide-body {
|
|
52
|
+
flex-direction: row;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
.FreestyleGuide-content {
|
|
56
|
+
margin-top: 1.5rem;
|
|
57
|
+
overflow: auto;
|
|
58
|
+
}
|
|
59
|
+
@media (min-width: 600px) {
|
|
60
|
+
.FreestyleGuide-content {
|
|
61
|
+
flex: 1;
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.FreestyleGuide-nav {
|
|
66
|
+
background-color: #fff;
|
|
67
|
+
order: -1;
|
|
68
|
+
padding: 1rem;
|
|
69
|
+
}
|
|
70
|
+
@media (min-width: 600px) {
|
|
71
|
+
.FreestyleGuide-nav {
|
|
72
|
+
border-right: solid 1px #b6b6b6;
|
|
73
|
+
flex: 0 0 18rem;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.FreestyleGuide-aside {
|
|
77
|
+
background: #fff;
|
|
78
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
|
79
|
+
margin-right: 0.5rem;
|
|
80
|
+
order: -2;
|
|
81
|
+
position: fixed;
|
|
82
|
+
right: 0.5rem;
|
|
83
|
+
}
|
|
84
|
+
@media (min-width: 600px) {
|
|
85
|
+
.FreestyleGuide-aside {
|
|
86
|
+
border-left: solid 1px #b6b6b6;
|
|
87
|
+
order: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
.FreestyleGuide-chooseSectionMessage {
|
|
91
|
+
display: flex;
|
|
92
|
+
height: 100%;
|
|
93
|
+
font-size: 1.4rem;
|
|
94
|
+
}
|
|
95
|
+
.FreestyleGuide-chooseSectionMessage > span {
|
|
96
|
+
margin: auto;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.FreestyleCollection {
|
|
100
|
+
max-width: 1200px;
|
|
101
|
+
}
|
|
102
|
+
.FreestyleCollection-title {
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
padding: 1rem 1rem 0;
|
|
105
|
+
text-transform: uppercase;
|
|
106
|
+
}
|
|
107
|
+
.FreestyleCollection-variantList {
|
|
108
|
+
background-color: #fff;
|
|
109
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
|
110
|
+
color: #212121;
|
|
111
|
+
display: flex;
|
|
112
|
+
height: 48px;
|
|
113
|
+
list-style-type: none;
|
|
114
|
+
margin: 1rem;
|
|
115
|
+
overflow-x: auto;
|
|
116
|
+
overflow-y: hidden;
|
|
117
|
+
padding: 0;
|
|
118
|
+
position: relative;
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
121
|
+
.FreestyleCollection-variantListItem {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
display: block;
|
|
124
|
+
flex-grow: 1;
|
|
125
|
+
float: left;
|
|
126
|
+
font-size: 14px;
|
|
127
|
+
height: 48px;
|
|
128
|
+
letter-spacing: 0.8px;
|
|
129
|
+
line-height: 48px;
|
|
130
|
+
margin: 0;
|
|
131
|
+
min-width: 120px;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
padding: 0;
|
|
134
|
+
text-align: center;
|
|
135
|
+
text-overflow: ellipsis;
|
|
136
|
+
text-transform: uppercase;
|
|
137
|
+
width: 15%;
|
|
138
|
+
}
|
|
139
|
+
.FreestyleCollection-variantListItem:hover, .FreestyleCollection-variantListItem--active {
|
|
140
|
+
border-bottom: solid 3px #00bcd4;
|
|
141
|
+
color: #00bcd4;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.FreestyleDynamic-input {
|
|
145
|
+
margin-bottom: 10px;
|
|
146
|
+
}
|
|
147
|
+
.FreestyleDynamic-input input[type=text],
|
|
148
|
+
.FreestyleDynamic-input textarea {
|
|
149
|
+
display: block;
|
|
150
|
+
}
|
|
151
|
+
.FreestyleDynamic-inputDescription {
|
|
152
|
+
display: block;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.FreestyleVariant--inline {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.FreestyleAnnotation {
|
|
160
|
+
font-size: 0.9rem;
|
|
161
|
+
padding: 0 1rem;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.FreestyleUsageControls {
|
|
165
|
+
background: #fff;
|
|
166
|
+
font-size: 0.9rem;
|
|
167
|
+
padding: 1rem;
|
|
168
|
+
text-align: left;
|
|
169
|
+
width: 200px;
|
|
170
|
+
}
|
|
171
|
+
.FreestyleUsageControls-header {
|
|
172
|
+
color: #00bcd4;
|
|
173
|
+
font-weight: bold;
|
|
174
|
+
margin-bottom: 0.3rem;
|
|
175
|
+
text-transform: uppercase;
|
|
176
|
+
}
|
|
177
|
+
.FreestyleUsageControls-item {
|
|
178
|
+
align-items: baseline;
|
|
179
|
+
display: flex;
|
|
180
|
+
}
|
|
181
|
+
.FreestyleUsageControls-item--focus {
|
|
182
|
+
padding-top: 0.6rem;
|
|
183
|
+
}
|
|
184
|
+
.FreestyleUsageControls-itemControl {
|
|
185
|
+
cursor: pointer;
|
|
186
|
+
padding-right: 0.1rem;
|
|
187
|
+
}
|
|
188
|
+
.FreestyleUsageControls-itemLabel {
|
|
189
|
+
font-size: 0.8rem;
|
|
190
|
+
}
|
|
191
|
+
.FreestyleUsageControls-input--focus {
|
|
192
|
+
margin-bottom: 0.2rem;
|
|
193
|
+
}
|
|
194
|
+
.FreestyleUsageControls-button {
|
|
195
|
+
background-color: #00bcd4;
|
|
196
|
+
border: 0;
|
|
197
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
|
|
198
|
+
color: #fff;
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
font-size: 0.6rem;
|
|
201
|
+
padding: 0.4rem 1rem;
|
|
202
|
+
text-transform: uppercase;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.FreestylePalette-title {
|
|
206
|
+
font-size: 1.4rem;
|
|
207
|
+
font-weight: bold;
|
|
208
|
+
padding-bottom: 2px;
|
|
209
|
+
padding-top: 10px;
|
|
210
|
+
}
|
|
211
|
+
.FreestylePalette-description {
|
|
212
|
+
font-size: 0.8rem;
|
|
213
|
+
padding-bottom: 5px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* BEGIN-FREESTYLE-USAGE fpi--notes
|
|
217
|
+
# Markdown Notes In SCSS!
|
|
218
|
+
|
|
219
|
+
Hey look... these are `markdown` notes:
|
|
220
|
+
|
|
221
|
+
- coming from scss
|
|
222
|
+
- looking nice
|
|
223
|
+
|
|
224
|
+
END-FREESTYLE-USAGE */
|
|
225
|
+
.FreestylePaletteItem {
|
|
226
|
+
border: solid 1px #cecece;
|
|
227
|
+
display: inline-block;
|
|
228
|
+
margin: 0 5px 5px 0;
|
|
229
|
+
}
|
|
230
|
+
.FreestylePaletteItem-color {
|
|
231
|
+
height: 90px;
|
|
232
|
+
width: 160px;
|
|
233
|
+
}
|
|
234
|
+
.FreestylePaletteItem-info {
|
|
235
|
+
background-color: #fff;
|
|
236
|
+
border-top: solid 1px #cecece;
|
|
237
|
+
padding: 5px;
|
|
238
|
+
}
|
|
239
|
+
.FreestylePaletteItem-hex {
|
|
240
|
+
font-size: 12px;
|
|
241
|
+
font-weight: bold;
|
|
242
|
+
margin-bottom: 0;
|
|
243
|
+
}
|
|
244
|
+
.FreestylePaletteItem-name {
|
|
245
|
+
color: #2f4f4f;
|
|
246
|
+
font-size: 11px;
|
|
247
|
+
margin-top: 0;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.FreestyleUsage {
|
|
251
|
+
max-width: 1200px;
|
|
252
|
+
}
|
|
253
|
+
.FreestyleUsage-title {
|
|
254
|
+
font-weight: bold;
|
|
255
|
+
padding: 1rem 1rem 0;
|
|
256
|
+
text-transform: uppercase;
|
|
257
|
+
}
|
|
258
|
+
.FreestyleUsage-rendered {
|
|
259
|
+
padding: 1rem;
|
|
260
|
+
}
|
|
261
|
+
.FreestyleUsage-usage {
|
|
262
|
+
padding-bottom: 10px;
|
|
263
|
+
}
|
|
264
|
+
.FreestyleUsage-sourceContainer pre {
|
|
265
|
+
font-size: 0.8rem;
|
|
266
|
+
margin-top: 0;
|
|
267
|
+
}
|
|
268
|
+
.FreestyleUsage-sourceContainer pre.hljs {
|
|
269
|
+
padding: 0.5rem 1rem;
|
|
270
|
+
}
|
|
271
|
+
.FreestyleUsage--inline {
|
|
272
|
+
border-bottom: 0;
|
|
273
|
+
display: inline-block;
|
|
274
|
+
margin-bottom: 0;
|
|
275
|
+
padding-bottom: 0;
|
|
276
|
+
width: 100%;
|
|
277
|
+
}
|
|
278
|
+
@media (min-width: 600px) {
|
|
279
|
+
.FreestyleUsage--inline {
|
|
280
|
+
max-width: inherit;
|
|
281
|
+
width: auto;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
.FreestyleUsage-focusCta {
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
fill: #b6b6b6;
|
|
287
|
+
position: relative;
|
|
288
|
+
top: 1px;
|
|
289
|
+
}
|
|
290
|
+
.FreestyleUsage-focusCta:hover {
|
|
291
|
+
fill: #00bcd4;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.FreestyleSection-name {
|
|
295
|
+
border-bottom: solid 1px #ccc;
|
|
296
|
+
font-size: 1.5rem;
|
|
297
|
+
font-weight: bold;
|
|
298
|
+
margin: 0 1rem;
|
|
299
|
+
max-width: calc(1200px - 1rem);
|
|
300
|
+
padding: 1rem 0 0.4rem;
|
|
301
|
+
text-transform: uppercase;
|
|
302
|
+
}
|
|
303
|
+
.FreestyleSection--hidden {
|
|
304
|
+
display: none;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.FreestyleSubsection.is-hidden {
|
|
308
|
+
display: none;
|
|
309
|
+
}
|
|
310
|
+
.FreestyleSubsection-name {
|
|
311
|
+
font-size: 1.3rem;
|
|
312
|
+
margin: 0 1rem;
|
|
313
|
+
padding: 0.8rem 0 0.4rem;
|
|
314
|
+
text-transform: uppercase;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.FreestyleMenu {
|
|
318
|
+
font-size: 14px;
|
|
319
|
+
list-style: none;
|
|
320
|
+
padding-left: 1rem;
|
|
321
|
+
}
|
|
322
|
+
.FreestyleMenu-item, .FreestyleMenu-submenuItem {
|
|
323
|
+
padding-top: 0.6rem;
|
|
324
|
+
text-transform: uppercase;
|
|
325
|
+
}
|
|
326
|
+
.FreestyleMenu-itemLink, .FreestyleMenu-submenuItemLink {
|
|
327
|
+
color: #212121;
|
|
328
|
+
text-decoration: none;
|
|
329
|
+
}
|
|
330
|
+
.FreestyleMenu-itemLink.active, .FreestyleMenu-submenuItemLink.active {
|
|
331
|
+
color: #00bcd4;
|
|
332
|
+
text-decoration: none;
|
|
333
|
+
}
|
|
334
|
+
.FreestyleMenu-itemLink:hover, .FreestyleMenu-submenuItemLink:hover {
|
|
335
|
+
color: #ffc107;
|
|
336
|
+
text-decoration: none;
|
|
337
|
+
}
|
|
338
|
+
.FreestyleMenu-submenu {
|
|
339
|
+
list-style: none;
|
|
340
|
+
padding-left: 1rem;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.FreestyleSource-title {
|
|
344
|
+
font-size: 0.7rem;
|
|
345
|
+
font-weight: bold;
|
|
346
|
+
padding: 0.5rem 1rem 0.2rem;
|
|
347
|
+
text-transform: uppercase;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.FreestyleTypeface-previewHero, .FreestyleTypeface-previewSample {
|
|
351
|
+
font-family: inherit;
|
|
352
|
+
}
|
|
353
|
+
.FreestyleTypeface-previewHero {
|
|
354
|
+
font-size: 140px;
|
|
355
|
+
line-height: 1.05;
|
|
356
|
+
}
|
|
357
|
+
.FreestyleTypeface-previewSample {
|
|
358
|
+
font-size: 15px;
|
|
359
|
+
margin: 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.FreestyleUsage {
|
|
363
|
+
--radius: 4px;
|
|
364
|
+
--border-color: #eee;
|
|
365
|
+
padding: 0 1rem 1rem;
|
|
366
|
+
margin-bottom: 1rem;
|
|
367
|
+
max-width: 1200px;
|
|
368
|
+
}
|
|
369
|
+
.FreestyleUsage:last-child {
|
|
370
|
+
border-bottom: 1px solid #ccc;
|
|
371
|
+
}
|
|
372
|
+
.FreestyleUsage-name {
|
|
373
|
+
color: #333;
|
|
374
|
+
margin-top: 1.5rem;
|
|
375
|
+
}
|
|
376
|
+
.FreestyleUsage-description {
|
|
377
|
+
margin: 0.5rem 0;
|
|
378
|
+
font-size: 1.1rem;
|
|
379
|
+
color: #666;
|
|
380
|
+
}
|
|
381
|
+
.FreestyleUsage-apiTitle {
|
|
382
|
+
font-size: 0.9rem;
|
|
383
|
+
font-weight: bold;
|
|
384
|
+
margin: 0;
|
|
385
|
+
}
|
|
386
|
+
.FreestyleUsage-standaloneFocusCta {
|
|
387
|
+
float: right;
|
|
388
|
+
margin-right: 1rem;
|
|
389
|
+
}
|
|
390
|
+
.FreestyleUsage-preview {
|
|
391
|
+
padding: 1.5rem;
|
|
392
|
+
margin: 1rem 0;
|
|
393
|
+
border: 1px solid var(--border-color);
|
|
394
|
+
border-radius: var(--radius);
|
|
395
|
+
position: relative;
|
|
396
|
+
}
|
|
397
|
+
.FreestyleUsage-preview:after {
|
|
398
|
+
content: "Preview";
|
|
399
|
+
font-size: 0.7rem;
|
|
400
|
+
position: absolute;
|
|
401
|
+
right: 0;
|
|
402
|
+
top: 0;
|
|
403
|
+
background: #eee;
|
|
404
|
+
color: #777;
|
|
405
|
+
padding: 2px 8px;
|
|
406
|
+
display: block;
|
|
407
|
+
border-radius: 0 0 0 var(--radius);
|
|
408
|
+
}
|
|
409
|
+
.FreestyleUsage-sourceContainer, .FreestyleUsage-apiTable {
|
|
410
|
+
margin-left: -1rem;
|
|
411
|
+
margin-right: -1rem;
|
|
412
|
+
}
|
|
413
|
+
.FreestyleUsage-apiTable {
|
|
414
|
+
width: 100%;
|
|
415
|
+
padding: 0.5rem 0 0.2rem;
|
|
416
|
+
border-collapse: collapse;
|
|
417
|
+
}
|
|
418
|
+
.FreestyleUsage-apiTable th {
|
|
419
|
+
text-align: left;
|
|
420
|
+
font-size: 0.8rem;
|
|
421
|
+
font-weight: 600;
|
|
422
|
+
color: #777;
|
|
423
|
+
}
|
|
424
|
+
.FreestyleUsage-apiTable tr {
|
|
425
|
+
border-bottom: 1px solid var(--border-color);
|
|
426
|
+
vertical-align: top;
|
|
427
|
+
}
|
|
428
|
+
.FreestyleUsage-apiTable tr:nth-child(even) {
|
|
429
|
+
background-color: #f9f9f9;
|
|
430
|
+
}
|
|
431
|
+
.FreestyleUsage-apiTable th,
|
|
432
|
+
.FreestyleUsage-apiTable td {
|
|
433
|
+
padding: 0.5rem 1rem;
|
|
434
|
+
}
|
|
435
|
+
.FreestyleUsage-sourceContainer {
|
|
436
|
+
margin-top: 1rem;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/*
|
|
440
|
+
FreestyleUsageArgument
|
|
441
|
+
*/
|
|
442
|
+
.FreestyleUsageArgument {
|
|
443
|
+
font-size: 0.8rem;
|
|
444
|
+
}
|
|
445
|
+
.FreestyleUsageArgument-name {
|
|
446
|
+
font-weight: bold;
|
|
447
|
+
width: 20%;
|
|
448
|
+
}
|
|
449
|
+
.FreestyleUsageArgument-description {
|
|
450
|
+
width: 40%;
|
|
451
|
+
}
|
|
452
|
+
.FreestyleUsageArgument-required {
|
|
453
|
+
color: #d81c38;
|
|
454
|
+
font-style: oblique;
|
|
455
|
+
}
|
|
456
|
+
.FreestyleUsageArgument-default {
|
|
457
|
+
font-family: monospace;
|
|
458
|
+
}
|
|
459
|
+
.FreestyleUsageArgument-jsonViewer {
|
|
460
|
+
background-color: #222;
|
|
461
|
+
min-width: 300px;
|
|
462
|
+
padding: 1rem;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.FreestyleUsageBoolean {
|
|
466
|
+
position: relative;
|
|
467
|
+
display: flex;
|
|
468
|
+
}
|
|
469
|
+
.FreestyleUsageBoolean:after {
|
|
470
|
+
content: "False";
|
|
471
|
+
display: block;
|
|
472
|
+
position: absolute;
|
|
473
|
+
top: 2px;
|
|
474
|
+
left: 27px;
|
|
475
|
+
font-family: monospace;
|
|
476
|
+
color: #999;
|
|
477
|
+
}
|
|
478
|
+
.FreestyleUsageBoolean.is-checked:after {
|
|
479
|
+
content: "True";
|
|
480
|
+
color: #333;
|
|
481
|
+
font-weight: 700;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.FreestyleUsageArray-item {
|
|
485
|
+
margin: 0 0 0.5em 0;
|
|
486
|
+
display: flex;
|
|
487
|
+
flex-direction: row;
|
|
488
|
+
justify-content: space-between;
|
|
489
|
+
}
|
|
490
|
+
.FreestyleUsageArray-removeItem, .FreestyleUsageArray-addItem {
|
|
491
|
+
background: transparent;
|
|
492
|
+
border: 0;
|
|
493
|
+
outline: 0;
|
|
494
|
+
cursor: pointer;
|
|
495
|
+
padding: 2px 4px;
|
|
496
|
+
text-transform: uppercase;
|
|
497
|
+
letter-spacing: 0.5px;
|
|
498
|
+
font-size: 0.8em;
|
|
499
|
+
border-radius: 4px;
|
|
500
|
+
}
|
|
501
|
+
.FreestyleUsageArray-removeItem {
|
|
502
|
+
color: #999;
|
|
503
|
+
opacity: 0.5;
|
|
504
|
+
}
|
|
505
|
+
.FreestyleUsageArray-addItem {
|
|
506
|
+
font-weight: 700;
|
|
507
|
+
padding: 3px 8px;
|
|
508
|
+
color: #666;
|
|
509
|
+
background: #ddd;
|
|
510
|
+
}
|
|
511
|
+
.FreestyleUsageArray-item:hover .FreestyleUsageArray-removeItem {
|
|
512
|
+
opacity: 1;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.u-codePill {
|
|
516
|
+
background-color: #eee;
|
|
517
|
+
border-radius: 2px;
|
|
518
|
+
color: #777;
|
|
519
|
+
display: inline-block;
|
|
520
|
+
font-family: monospace;
|
|
521
|
+
margin-right: 0.2em;
|
|
522
|
+
padding: 1px 7px;
|
|
523
|
+
}
|
package/addon/helpers/equal.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { helper } from '@ember/component/helper';
|
|
2
|
-
import { isPresent as emberIsPresent } from '@ember/utils';
|
|
3
|
-
|
|
4
|
-
export function isPresent(params) {
|
|
5
|
-
return params.every((p) => emberIsPresent(p));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export default helper(function (params /*, hash*/) {
|
|
9
|
-
return isPresent(params);
|
|
10
|
-
});
|
package/addon/helpers/pick.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { helper } from '@ember/component/helper';
|
|
2
|
-
import { get } from '@ember/object';
|
|
3
|
-
|
|
4
|
-
export default helper(function event([path, action] /*, hash*/) {
|
|
5
|
-
return function (event) {
|
|
6
|
-
let value = get(event, path);
|
|
7
|
-
|
|
8
|
-
if (!action) {
|
|
9
|
-
return value;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
action(value);
|
|
13
|
-
};
|
|
14
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
|
|
3
|
-
export default class extends Component {
|
|
4
|
-
constructor() {
|
|
5
|
-
throw new Error(
|
|
6
|
-
'freestyle-note has been removed from ember-freestyle as of version 0.12.0. Please see the documention (https://chrislopresto.github.io/ember-freestyle/) for suggested migration path.'
|
|
7
|
-
);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from 'ember-freestyle/helpers/is-present';
|
package/app/helpers/pick.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default, pick } from 'ember-freestyle/helpers/pick';
|