@cocreate/utils 1.37.3 → 1.39.0

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/docs/index.html CHANGED
@@ -1,331 +1,331 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1" />
7
- <title>CoCreate-utils Documentation | CoCreateJS</title>
8
- <link
9
- rel="icon"
10
- type="image/png"
11
- sizes="32x32"
12
- href="https://cocreate.app/images/favicon.ico"
13
- />
14
- <meta
15
- name="description"
16
- content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable."
17
- />
18
- <meta
19
- name="keywords"
20
- content="helper classes, utility classes, css framework, css library, inline style classes"
21
- />
22
- <meta name="robots" content="index,follow" />
23
- <meta
24
- property="og:image"
25
- content="https://cdn.cocreate.app/docs/utils.png"
26
- />
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
7
+ <title>CoCreate-utils Documentation | CoCreateJS</title>
8
+ <link
9
+ rel="icon"
10
+ type="image/png"
11
+ sizes="32x32"
12
+ href="https://cocreate.app/images/favicon.ico" />
13
+ <meta
14
+ name="description"
15
+ content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
16
+ <meta
17
+ name="keywords"
18
+ content="helper classes, utility classes, css framework, css library, inline style classes" />
19
+ <meta name="robots" content="index,follow" />
20
+ <meta
21
+ property="og:image"
22
+ content="https://cdn.cocreate.app/docs/utils.png" />
27
23
 
28
- <link
29
- rel="stylesheet"
30
- href="../index.css"
31
- array="files"
32
- object="60888216117c640e7596303f"
33
- key="src"
34
- type="text/css"
35
- save="true"
36
- />
37
- <link rel="manifest" href="/manifest.webmanifest" />
38
- </head>
24
+ <link
25
+ rel="stylesheet"
26
+ href="../index.css"
27
+ array="files"
28
+ object="60888216117c640e7596303f"
29
+ key="src"
30
+ type="text/css"
31
+ save="true" />
32
+ <link rel="manifest" href="/manifest.webmanifest" />
33
+ </head>
39
34
 
40
- <body>
41
- <!-- Navbar -->
42
- <nav
43
- class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
44
- content_id="content"
45
- scroll="sticky-nav,"
46
- scroll-up="5"
47
- scroll-down="5"
48
- path="../"
49
- src="../components/navbar.html"
50
- ></nav>
51
- <sidenav
52
- id="menuL"
53
- class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
54
- resizable
55
- resize-selector="[content_id='content']"
56
- resize-property="margin-left"
57
- resize-value="width"
58
- >
59
- <menu array="files" object="603717b07de7fb350ae9fec8" key="src"></menu>
60
- <div resize="right"></div>
61
- </sidenav>
62
- <main
63
- class="padding-top:15px padding:15px@lg@xl"
64
- content_id="content"
65
- id="cocreate-utils"
66
- >
67
- <div
68
- class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px"
69
- >
70
- <div class="display:flex align-items:center">
71
- <h2>CoCreate-utils</h2>
72
- </div>
73
- <div
74
- class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white"
75
- >
76
- <div
77
- class="display:flex align-items:center transition:0.3s padding-left:10px"
78
- share-network="true"
79
- share-text="Enter decription here"
80
- share-title="testing im a title"
81
- share-height="600"
82
- share-width="700"
83
- share-media="https://cdn.cocreate.app/docs/utils.png"
84
- hover="display:block!important"
85
- hover-selector=".social-networks"
86
- >
87
- <div class="display:none social-networks">
88
- <a
89
- class="margin-right:15px"
90
- share-network="twitter"
91
- title="Share on twitter"
92
- ><i src="/assets/svg/twitter.svg"></i
93
- ></a>
94
- <a
95
- class="margin-right:15px"
96
- share-network="facebook"
97
- title="Share on Facebook"
98
- ><i src="/assets/svg/facebook.svg"></i
99
- ></a>
100
- <a
101
- class="margin-right:15px"
102
- share-network="instagram"
103
- title="Share on instagram"
104
- ><i src="/assets/svg/instagram.svg"></i
105
- ></a>
106
- </div>
107
- <a
108
- class="margin-right:15px"
109
- share-network="share"
110
- title="Share on share"
111
- ><i src="/assets/svg/share-alt.svg"></i
112
- ></a>
113
- </div>
114
- <a
115
- href="https://github.com/CoCreate-app/CoCreate-utils"
116
- target="_blank"
117
- class="margin-right:15px"
118
- ><i src="/assets/svg/github.svg"></i
119
- ></a>
120
- </div>
121
- </div>
122
- <h1
123
- class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100"
124
- >
125
- A headless vinilla javascript micro component. Easy configuration using
126
- HTML5 attributes or Javscript api.
127
- </h1>
128
- <div id="utils-section" class="display:flex flex-wrap:wrap">
129
- <div
130
- class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px"
131
- >
132
- <div
133
- id="utils-install"
134
- class="border-bottom:1px_solid_lightgrey"
135
- scroll
136
- scroll-intersect="color:dodgerblue"
137
- scroll-selector="#utils-install-section"
138
- >
139
- <span
140
- class="display:flex align-items:center width:fit-content"
141
- hover="display:block!important"
142
- hover-selector="[href='#utils-install']"
143
- >
144
- <h2 class="padding:5px_0px">Install</h2>
145
- <a class="margin-left:10px display:none" href="#utils-install"
146
- ><i src="/assets/svg/link.svg"></i
147
- ></a>
148
- </span>
149
- </div>
150
- <pre
151
- class="margin-top:15px"
152
- ><code class="language-bash">npm i @cocreate/utils</code></pre>
153
- <p class="padding:10px_0px line-height:1.5">
154
- Or you can use cdn link:
155
- </p>
156
- <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/utils/latest/CoCreate-utils.min.js&lt;/script&gt;</code></pre>
35
+ <body>
36
+ <!-- Navbar -->
37
+ <nav
38
+ class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
39
+ content_id="content"
40
+ scroll="sticky-nav,"
41
+ scroll-up="5"
42
+ scroll-down="5"
43
+ path="../"
44
+ src="../components/navbar.html"></nav>
45
+ <sidenav
46
+ id="menuL"
47
+ class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
48
+ resizable
49
+ resize-query="[content_id='content']"
50
+ resize-property="margin-left"
51
+ resize-value="width">
52
+ <menu
53
+ array="files"
54
+ object="603717b07de7fb350ae9fec8"
55
+ key="src"></menu>
56
+ <div resize="right"></div>
57
+ </sidenav>
58
+ <main
59
+ class="padding-top:15px padding:15px@lg@xl"
60
+ content_id="content"
61
+ id="cocreate-utils">
62
+ <div
63
+ class="display:flex flex-wrap:wrap justify-content:space-between position:relative margin:10px">
64
+ <div class="display:flex align-items:center">
65
+ <h2>CoCreate-utils</h2>
66
+ </div>
67
+ <div
68
+ class="display:flex align-items:center font-size:20px position:absolute right:0 padding:5px background:white">
69
+ <div
70
+ class="display:flex align-items:center transition:0.3s padding-left:10px"
71
+ share-network="true"
72
+ share-text="Enter decription here"
73
+ share-title="testing im a title"
74
+ share-height="600"
75
+ share-width="700"
76
+ share-media="https://cdn.cocreate.app/docs/utils.png"
77
+ hover="display:block!important"
78
+ hover-query=".social-networks">
79
+ <div class="display:none social-networks">
80
+ <a
81
+ class="margin-right:15px"
82
+ share-network="twitter"
83
+ title="Share on twitter"
84
+ ><i src="/assets/svg/twitter.svg"></i
85
+ ></a>
86
+ <a
87
+ class="margin-right:15px"
88
+ share-network="facebook"
89
+ title="Share on Facebook"
90
+ ><i src="/assets/svg/facebook.svg"></i
91
+ ></a>
92
+ <a
93
+ class="margin-right:15px"
94
+ share-network="instagram"
95
+ title="Share on instagram"
96
+ ><i src="/assets/svg/instagram.svg"></i
97
+ ></a>
98
+ </div>
99
+ <a
100
+ class="margin-right:15px"
101
+ share-network="share"
102
+ title="Share on share"
103
+ ><i src="/assets/svg/share-alt.svg"></i
104
+ ></a>
105
+ </div>
106
+ <a
107
+ href="https://github.com/CoCreate-app/CoCreate-utils"
108
+ target="_blank"
109
+ class="margin-right:15px"
110
+ ><i src="/assets/svg/github.svg"></i
111
+ ></a>
112
+ </div>
113
+ </div>
114
+ <h1
115
+ class="max-width:500px margin:20px_10px line-height:1.5 font-size:16px font-weight:100">
116
+ A headless vinilla javascript micro component. Easy
117
+ configuration using HTML5 attributes or Javscript api.
118
+ </h1>
119
+ <div id="utils-section" class="display:flex flex-wrap:wrap">
120
+ <div
121
+ class="flex-grow:1 width:400px width:300px@xs padding:0px_10px margin-top:60px">
122
+ <div
123
+ id="utils-install"
124
+ class="border-bottom:1px_solid_lightgrey"
125
+ scroll
126
+ scroll-intersect="color:dodgerblue"
127
+ scroll-query="#utils-install-section">
128
+ <span
129
+ class="display:flex align-items:center width:fit-content"
130
+ hover="display:block!important"
131
+ hover-query="[href='#utils-install']">
132
+ <h2 class="padding:5px_0px">Install</h2>
133
+ <a
134
+ class="margin-left:10px display:none"
135
+ href="#utils-install"
136
+ ><i src="/assets/svg/link.svg"></i
137
+ ></a>
138
+ </span>
139
+ </div>
140
+ <pre
141
+ class="margin-top:15px"><code class="language-bash">npm i @cocreate/utils</code></pre>
142
+ <p class="padding:10px_0px line-height:1.5">
143
+ Or you can use cdn link:
144
+ </p>
145
+ <pre><code class="language-html">&lt;script&gt;https://cdn.cocreate.app/utils/latest/CoCreate-utils.min.js&lt;/script&gt;</code></pre>
157
146
 
158
- <div
159
- id="utils-usage"
160
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
161
- scroll
162
- scroll-intersect="color:dodgerblue"
163
- scroll-selector="#utils-usage-section"
164
- >
165
- <span
166
- class="display:flex align-items:center width:fit-content"
167
- hover="display:block!important"
168
- hover-selector="[href='#utils-usage']"
169
- >
170
- <h2 class="padding:5px_0px">Usage</h2>
171
- <a class="margin-left:10px display:none" href="#utils-usage"
172
- ><i src="/assets/svg/link.svg"></i
173
- ></a>
174
- </span>
175
- </div>
176
- <p class="padding:10px_0px line-height:1.5">utils usage content</p>
177
- <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
147
+ <div
148
+ id="utils-usage"
149
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
150
+ scroll
151
+ scroll-intersect="color:dodgerblue"
152
+ scroll-query="#utils-usage-section">
153
+ <span
154
+ class="display:flex align-items:center width:fit-content"
155
+ hover="display:block!important"
156
+ hover-query="[href='#utils-usage']">
157
+ <h2 class="padding:5px_0px">Usage</h2>
158
+ <a
159
+ class="margin-left:10px display:none"
160
+ href="#utils-usage"
161
+ ><i src="/assets/svg/link.svg"></i
162
+ ></a>
163
+ </span>
164
+ </div>
165
+ <p class="padding:10px_0px line-height:1.5">
166
+ utils usage content
167
+ </p>
168
+ <pre><code class="language-html">&lt;div&gt;&lt;/div&gt;</code></pre>
178
169
 
179
- <div
180
- id="utils-attributes"
181
- class="margin-top:80px border-bottom:1px_solid_lightgrey"
182
- scroll
183
- scroll-intersect="color:dodgerblue"
184
- scroll-selector="#utils-attributes-section"
185
- >
186
- <span
187
- class="display:flex align-items:center width:fit-content"
188
- hover="display:block!important"
189
- hover-selector="[href='#utils-attributes']"
190
- >
191
- <h2 class="padding:5px_0px">Attributes</h2>
192
- <a class="margin-left:10px display:none" href="#utils-attributes"
193
- ><i src="/assets/svg/link.svg"></i
194
- ></a>
195
- </span>
196
- </div>
197
- <ul class="list-style-type:none">
198
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
199
- <h4>
200
- <span>utils</span>
201
- <span class="cocreate-badge success">string</span>
202
- <span class="cocreate-badge warning">optional</span>
203
- </h4>
204
- <p>utils-attribute</p>
205
- </li>
206
- <li class="padding:15px_0px border-bottom:1px_solid_lightgrey">
207
- <h4>
208
- <span>utils</span>
209
- <span class="cocreate-badge success">string</span>
210
- <span class="cocreate-badge warning">optional</span>
211
- </h4>
212
- <p>utils-attribute</p>
213
- </li>
214
- </ul>
215
- </div>
170
+ <div
171
+ id="utils-attributes"
172
+ class="margin-top:80px border-bottom:1px_solid_lightgrey"
173
+ scroll
174
+ scroll-intersect="color:dodgerblue"
175
+ scroll-query="#utils-attributes-section">
176
+ <span
177
+ class="display:flex align-items:center width:fit-content"
178
+ hover="display:block!important"
179
+ hover-query="[href='#utils-attributes']">
180
+ <h2 class="padding:5px_0px">Attributes</h2>
181
+ <a
182
+ class="margin-left:10px display:none"
183
+ href="#utils-attributes"
184
+ ><i src="/assets/svg/link.svg"></i
185
+ ></a>
186
+ </span>
187
+ </div>
188
+ <ul class="list-style-type:none">
189
+ <li
190
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
191
+ <h4>
192
+ <span>utils</span>
193
+ <span class="cocreate-badge success"
194
+ >string</span
195
+ >
196
+ <span class="cocreate-badge warning"
197
+ >optional</span
198
+ >
199
+ </h4>
200
+ <p>utils-attribute</p>
201
+ </li>
202
+ <li
203
+ class="padding:15px_0px border-bottom:1px_solid_lightgrey">
204
+ <h4>
205
+ <span>utils</span>
206
+ <span class="cocreate-badge success"
207
+ >string</span
208
+ >
209
+ <span class="cocreate-badge warning"
210
+ >optional</span
211
+ >
212
+ </h4>
213
+ <p>utils-attribute</p>
214
+ </li>
215
+ </ul>
216
+ </div>
216
217
 
217
- <div
218
- class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey"
219
- >
220
- <!-- SandBox -->
221
- <div
222
- id="utils-demo"
223
- class="border-bottom:1px_solid_lightgrey"
224
- scroll
225
- scroll-intersect="color:dodgerblue"
226
- scroll-selector="#utils-demo-section"
227
- >
228
- <span
229
- class="display:flex align-items:center width:fit-content"
230
- hover="display:block!important"
231
- hover-selector="[href='#utils-demo']"
232
- >
233
- <h2 class="padding:5px_0px">Demo</h2>
234
- <a class="margin-left:10px display:none" href="#utils-demo"
235
- ><i src="/assets/svg/link.svg"></i
236
- ></a>
237
- </span>
238
- </div>
239
- <div class="position:sticky top:0 padding:10px_0px height:100vh">
240
- <!-- SandBox -->
241
- <div
242
- class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
243
- id="playground"
244
- >
245
- <div
246
- id="demo-code"
247
- resizable
248
- class="position:relative height:50%"
249
- >
250
- <textarea
251
- type="code"
252
- lang="html"
253
- array="demos"
254
- object=""
255
- key="demo"
256
- save="false"
257
- id="demo"
258
- input-selector=".demopreview"
259
- input-attribute="value"
260
- input-events="input, onload"
261
- class="height:100% width:100% outline:none border:none resize:none padding:5px"
262
- ></textarea>
263
- <div resize="bottom" class="background:lightgrey"></div>
264
- </div>
218
+ <div
219
+ class="flex-grow:1 width:300px padding:0px_10px margin-top:60px border-bottom:1px_solid_lightgrey">
220
+ <!-- SandBox -->
221
+ <div
222
+ id="utils-demo"
223
+ class="border-bottom:1px_solid_lightgrey"
224
+ scroll
225
+ scroll-intersect="color:dodgerblue"
226
+ scroll-query="#utils-demo-section">
227
+ <span
228
+ class="display:flex align-items:center width:fit-content"
229
+ hover="display:block!important"
230
+ hover-query="[href='#utils-demo']">
231
+ <h2 class="padding:5px_0px">Demo</h2>
232
+ <a
233
+ class="margin-left:10px display:none"
234
+ href="#utils-demo"
235
+ ><i src="/assets/svg/link.svg"></i
236
+ ></a>
237
+ </span>
238
+ </div>
239
+ <div
240
+ class="position:sticky top:0 padding:10px_0px height:100vh">
241
+ <!-- SandBox -->
242
+ <div
243
+ class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
244
+ id="playground">
245
+ <div
246
+ id="demo-code"
247
+ resizable
248
+ class="position:relative height:50%">
249
+ <textarea
250
+ type="code"
251
+ lang="html"
252
+ array="demos"
253
+ object=""
254
+ key="demo"
255
+ save="false"
256
+ id="demo"
257
+ input-query=".demopreview"
258
+ input-attribute="value"
259
+ input-events="input, onload"
260
+ class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
261
+ <div
262
+ resize="bottom"
263
+ class="background:lightgrey"></div>
264
+ </div>
265
265
 
266
- <div
267
- id="demo-preview"
268
- class="position:relative overflow:auto background-color:white"
269
- >
270
- <div class="demopreview padding:20px"></div>
271
- </div>
266
+ <div
267
+ id="demo-preview"
268
+ class="position:relative overflow:auto background-color:white">
269
+ <div class="demopreview padding:20px"></div>
270
+ </div>
272
271
 
273
- <div
274
- class="font-size:20px position:absolute top:10px right:10px opacity:0.6"
275
- >
276
- <a
277
- class="margin-right:10px"
278
- id="eye"
279
- show="#eye-slash"
280
- hide="#eye, #demo-preview"
281
- toggle="code-height"
282
- toggle-selector="#demo-code"
283
- ><i class="height:18px" src="/assets/svg/eye.svg"></i
284
- ></a>
285
- <a
286
- class="margin-right:10px"
287
- hidden
288
- id="eye-slash"
289
- show="#eye, #demo-preview"
290
- hide="#eye-slash"
291
- toggle="code-height"
292
- toggle-selector="#demo-code"
293
- ><i src="/assets/svg/eye-slash.svg"></i
294
- ></a>
295
- <a
296
- class="margin-right:10px"
297
- id="code"
298
- show="#code-slash"
299
- hide="#code, #demo-code"
300
- ><i src="/assets/svg/code.svg"></i
301
- ></a>
302
- <a
303
- class="margin-right:10px"
304
- hidden
305
- id="code-slash"
306
- show="#code, #demo-code"
307
- hide="#code-slash"
308
- ><i class="height:18px" src="/assets/svg/code.svg"></i
309
- ></a>
310
- <a
311
- class="margin-right:5px"
312
- fullscreen
313
- fullscreen-selector="#playground"
314
- ></a>
315
- </div>
316
- </div>
317
- <!-- End SandBox -->
318
- </div>
319
- </div>
320
- </div>
321
- <button
322
- href="https://github.com/CoCreate-app/CoCreate-utils/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
323
- target="_blank"
324
- class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)"
325
- >
326
- <i src="../assets/svg/pencil-alt.svg"></i>
327
- </button>
328
- </main>
329
- <script src="https://CoCreate.app/dist/CoCreate.js"></script>
330
- </body>
272
+ <div
273
+ class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
274
+ <a
275
+ class="margin-right:10px"
276
+ id="eye"
277
+ show="#eye-slash"
278
+ hide="#eye, #demo-preview"
279
+ toggle="code-height"
280
+ toggle-query="#demo-code"
281
+ ><i
282
+ class="height:18px"
283
+ src="/assets/svg/eye.svg"></i
284
+ ></a>
285
+ <a
286
+ class="margin-right:10px"
287
+ hidden
288
+ id="eye-slash"
289
+ show="#eye, #demo-preview"
290
+ hide="#eye-slash"
291
+ toggle="code-height"
292
+ toggle-query="#demo-code"
293
+ ><i src="/assets/svg/eye-slash.svg"></i
294
+ ></a>
295
+ <a
296
+ class="margin-right:10px"
297
+ id="code"
298
+ show="#code-slash"
299
+ hide="#code, #demo-code"
300
+ ><i src="/assets/svg/code.svg"></i
301
+ ></a>
302
+ <a
303
+ class="margin-right:10px"
304
+ hidden
305
+ id="code-slash"
306
+ show="#code, #demo-code"
307
+ hide="#code-slash"
308
+ ><i
309
+ class="height:18px"
310
+ src="/assets/svg/code.svg"></i
311
+ ></a>
312
+ <a
313
+ class="margin-right:5px"
314
+ fullscreen
315
+ fullscreen-query="#playground"></a>
316
+ </div>
317
+ </div>
318
+ <!-- End SandBox -->
319
+ </div>
320
+ </div>
321
+ </div>
322
+ <button
323
+ href="https://github.com/CoCreate-app/CoCreate-utils/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
324
+ target="_blank"
325
+ class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
326
+ <i src="../assets/svg/pencil-alt.svg"></i>
327
+ </button>
328
+ </main>
329
+ <script src="https://CoCreate.app/dist/CoCreate.js"></script>
330
+ </body>
331
331
  </html>