clapton 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -34
- data/app/helpers/clapton/clapton_helper.rb +1 -0
- data/lib/clapton/engine.rb +3 -0
- data/lib/clapton/javascripts/dist/c +559 -0
- data/lib/clapton/javascripts/dist/c-base.js +589 -0
- data/lib/clapton/javascripts/dist/c-for-test.js +589 -0
- data/lib/clapton/javascripts/dist/c.js +584 -0
- data/lib/clapton/javascripts/dist/client.js +9 -0
- data/lib/clapton/javascripts/dist/components-for-test.js +21 -104
- data/lib/clapton/javascripts/dist/components.js +0 -79
- data/lib/clapton/javascripts/rollup.config.mjs +31 -0
- data/lib/clapton/javascripts/src/c-for-test.ts +160 -0
- data/lib/clapton/javascripts/src/c.ts +160 -0
- data/lib/clapton/javascripts/src/client.ts +11 -0
- data/lib/clapton/javascripts/src/components/component.ts +0 -3
- data/lib/clapton/test_helper/base.rb +1 -2
- data/lib/clapton/version.rb +1 -2
- metadata +7 -2
- data/lib/clapton/javascripts/src/components/presets.ts +0 -105
@@ -1,105 +0,0 @@
|
|
1
|
-
import { Clapton } from "components";
|
2
|
-
|
3
|
-
export class Presets {
|
4
|
-
bq(...props: any[]) {
|
5
|
-
return new Clapton.BlockQuote(...props)
|
6
|
-
}
|
7
|
-
|
8
|
-
box(...props: any[]) {
|
9
|
-
return new Clapton.Box(...props)
|
10
|
-
}
|
11
|
-
|
12
|
-
b(...props: any[]) {
|
13
|
-
return new Clapton.Bold(...props)
|
14
|
-
}
|
15
|
-
|
16
|
-
button(...props: any[]) {
|
17
|
-
return new Clapton.Button(...props)
|
18
|
-
}
|
19
|
-
|
20
|
-
check(...props: any[]) {
|
21
|
-
return new Clapton.Checkbox(props[0], props[1], props[2])
|
22
|
-
}
|
23
|
-
|
24
|
-
code(...props: any[]) {
|
25
|
-
return new Clapton.Code(...props)
|
26
|
-
}
|
27
|
-
|
28
|
-
datetime(...props: any[]) {
|
29
|
-
return new Clapton.DateTimeField(props[0], props[1], props[2])
|
30
|
-
}
|
31
|
-
|
32
|
-
el(...props: any[]) {
|
33
|
-
return new Clapton.Element(props[0], props[1])
|
34
|
-
}
|
35
|
-
|
36
|
-
embed(...props: any[]) {
|
37
|
-
return new Clapton.Embed(props[0])
|
38
|
-
}
|
39
|
-
|
40
|
-
em(...props: any[]) {
|
41
|
-
return new Clapton.Emphasis(...props)
|
42
|
-
}
|
43
|
-
|
44
|
-
form(...props: any[]) {
|
45
|
-
return new Clapton.Form(...props)
|
46
|
-
}
|
47
|
-
|
48
|
-
h(...props: any[]) {
|
49
|
-
return new Clapton.Heading(props[0], props[1])
|
50
|
-
}
|
51
|
-
|
52
|
-
img(...props: any[]) {
|
53
|
-
return new Clapton.Image(props[0], props[1], props[2])
|
54
|
-
}
|
55
|
-
|
56
|
-
a(...props: any[]) {
|
57
|
-
return new Clapton.Link(props[0], props[1])
|
58
|
-
}
|
59
|
-
|
60
|
-
li(...props: any[]) {
|
61
|
-
return new Clapton.ListItem(...props)
|
62
|
-
}
|
63
|
-
|
64
|
-
ul(...props: any[]) {
|
65
|
-
return new Clapton.List(...props)
|
66
|
-
}
|
67
|
-
|
68
|
-
ol(...props: any[]) {
|
69
|
-
return new Clapton.OrderedList(...props)
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
p(...props: any[]) {
|
74
|
-
return new Clapton.Paragraph(...props)
|
75
|
-
}
|
76
|
-
|
77
|
-
q(...props: any[]) {
|
78
|
-
return new Clapton.Quote(...props)
|
79
|
-
}
|
80
|
-
|
81
|
-
radio(...props: any[]) {
|
82
|
-
return new Clapton.RadioButton(props[0], props[1], props[2])
|
83
|
-
}
|
84
|
-
|
85
|
-
select(...props: any[]) {
|
86
|
-
return new Clapton.Select(props[0], props[1], props[2])
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
span(...props: any[]) {
|
91
|
-
return new Clapton.Span(...props)
|
92
|
-
}
|
93
|
-
|
94
|
-
textarea(...props: any[]) {
|
95
|
-
return new Clapton.TextArea(props[0], props[1], props[2])
|
96
|
-
}
|
97
|
-
|
98
|
-
input(...props: any[]) {
|
99
|
-
return new Clapton.TextField(props[0], props[1], props[2])
|
100
|
-
}
|
101
|
-
|
102
|
-
text(...props: any[]) {
|
103
|
-
return new Clapton.Text(props[0])
|
104
|
-
}
|
105
|
-
}
|