juxscript 1.0.57 → 1.0.59
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/package.json +1 -1
- package/presets/default/all.jux +187 -34
- package/presets/default/layout.css +936 -876
package/package.json
CHANGED
package/presets/default/all.jux
CHANGED
|
@@ -1,76 +1,229 @@
|
|
|
1
1
|
import { jux, state } from 'juxscript';
|
|
2
|
-
|
|
2
|
+
import { initializeGrid } from 'layout.jux';
|
|
3
|
+
|
|
4
|
+
// Initialize the grid layout - this executes the rendering
|
|
5
|
+
const grid = initializeGrid();
|
|
3
6
|
|
|
4
7
|
// ═══════════════════════════════════════════════════════════════════
|
|
5
8
|
// ALL COMPONENTS SHOWCASE - Maximum DOM nodes per component
|
|
6
9
|
// ═══════════════════════════════════════════════════════════════════
|
|
7
10
|
|
|
8
11
|
// Hero - All DOM-generating options
|
|
12
|
+
jux.heading('hero-heading').level(3).text('jux.hero').render("#appmain-content");
|
|
9
13
|
jux.hero('all-hero', {
|
|
10
14
|
title: 'Hero Title',
|
|
11
15
|
subtitle: 'Hero Subtitle',
|
|
12
16
|
content: 'Hero body content goes here',
|
|
13
17
|
cta: 'Call to Action',
|
|
14
18
|
ctaLink: '#',
|
|
15
|
-
backgroundImage: 'https://via.placeholder.com/1200x400',
|
|
16
19
|
backgroundOverlay: true,
|
|
17
20
|
centered: true
|
|
18
|
-
}).render();
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
jux.
|
|
22
|
-
jux.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
jux.
|
|
26
|
-
|
|
27
|
-
jux.
|
|
21
|
+
}).render("#appmain-content");
|
|
22
|
+
jux.divider().render("#appmain-content");
|
|
23
|
+
|
|
24
|
+
jux.heading('chart-heading').level(3).text('jux.chart').render("#appmain-content");
|
|
25
|
+
jux.element('all-element')
|
|
26
|
+
.text('Need Charts!')
|
|
27
|
+
.render("#appmain-content");
|
|
28
|
+
jux.divider().render("#appmain-content");
|
|
29
|
+
|
|
30
|
+
jux.heading('alert-heading').level(3).text('jux.alert').render("#appmain-content");
|
|
31
|
+
jux.alert('all-alert')
|
|
32
|
+
.message('this is it - .message').render("#appmain-content");
|
|
33
|
+
jux.divider().render("#appmain-content");
|
|
34
|
+
|
|
35
|
+
jux.heading('badge-heading').level(3).text('jux.badge').render("#appmain-content");
|
|
36
|
+
jux.badge('all-badge')
|
|
37
|
+
.text('Badge Text - .text').render("#appmain-content");
|
|
38
|
+
jux.divider().render("#appmain-content");
|
|
39
|
+
|
|
40
|
+
jux.heading('button-heading').level(3).text('jux.button').render("#appmain-content");
|
|
41
|
+
jux.button('all-button')
|
|
42
|
+
.label('Button Label - .label').render("#appmain-content");
|
|
43
|
+
jux.divider().render("#appmain-content");
|
|
44
|
+
|
|
45
|
+
jux.heading('card-heading').level(3).text('jux.card').render("#appmain-content");
|
|
46
|
+
jux.card('all-card')
|
|
47
|
+
.title('Card Title - .title')
|
|
48
|
+
.content('Card content goes here - .content')
|
|
49
|
+
.footer('Card Footer - .footer')
|
|
50
|
+
.render("#appmain-content");
|
|
51
|
+
jux.divider().render("#appmain-content");
|
|
52
|
+
|
|
53
|
+
jux.heading('checkbox-heading').level(3).text('jux.checkbox').render("#appmain-content");
|
|
54
|
+
jux.checkbox('all-checkbox')
|
|
55
|
+
.label('Checkbox Label - .label')
|
|
56
|
+
.render("#appmain-content");
|
|
57
|
+
jux.divider().render("#appmain-content");
|
|
58
|
+
|
|
59
|
+
jux.heading('code-heading').level(3).text('jux.code').render("#appmain-content");
|
|
60
|
+
jux.code('all-code')
|
|
61
|
+
.code(`// Sample code - .code`)
|
|
62
|
+
.language('javascript')
|
|
63
|
+
.render("#appmain-content");
|
|
64
|
+
jux.divider().render("#appmain-content");
|
|
65
|
+
|
|
66
|
+
jux.heading('container-heading').level(3).text('jux.container').render("#appmain-content");
|
|
67
|
+
jux.container('all-container')
|
|
68
|
+
.render("#appmain-content");
|
|
69
|
+
jux.divider().render("#appmain-content");
|
|
70
|
+
|
|
71
|
+
jux.heading('datepicker-heading').level(3).text('jux.datepicker').render("#appmain-content");
|
|
72
|
+
jux.datepicker('all-datepicker')
|
|
73
|
+
.label('Select Date - .label')
|
|
74
|
+
.render("#appmain-content");
|
|
75
|
+
jux.divider().render("#appmain-content");
|
|
76
|
+
|
|
77
|
+
jux.heading('dropdown-heading').level(3).text('jux.dropdown').render("#appmain-content");
|
|
28
78
|
jux.dropdown('all-dropdown', {
|
|
29
79
|
items: [{ label: 'Item 1', value: '1' }, { label: 'Item 2', value: '2' }]
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
jux.
|
|
33
|
-
|
|
34
|
-
jux.
|
|
35
|
-
jux.
|
|
80
|
+
})
|
|
81
|
+
.render("#appmain-content");
|
|
82
|
+
jux.divider().render("#appmain-content");
|
|
83
|
+
|
|
84
|
+
jux.heading('fileupload-heading').level(3).text('jux.fileupload').render("#appmain-content");
|
|
85
|
+
jux.fileupload('all-fileupload')
|
|
86
|
+
.label('File Upload - .label')
|
|
87
|
+
.render("#appmain-content");
|
|
88
|
+
jux.divider().render("#appmain-content");
|
|
89
|
+
|
|
90
|
+
jux.heading('heading-heading').level(3).text('jux.heading').render("#appmain-content");
|
|
91
|
+
jux.heading('all-h1')
|
|
92
|
+
.text('Heading Level 1 - .text')
|
|
93
|
+
.level(1)
|
|
94
|
+
.render("#appmain-content");
|
|
95
|
+
jux.divider().render("#appmain-content");
|
|
96
|
+
|
|
97
|
+
// jux.heading('icon-heading').level(3).text('jux.icon').render("#appmain-content");
|
|
98
|
+
// jux.icon('all-icon').render("#appmain-content");
|
|
99
|
+
// jux.divider().render("#appmain-content");
|
|
100
|
+
|
|
101
|
+
jux.heading('input-heading').level(3).text('jux.input').render("#appmain-content");
|
|
102
|
+
jux.input('all-input')
|
|
103
|
+
.label('Input Label - .label')
|
|
104
|
+
.render("#appmain-content");
|
|
105
|
+
jux.divider().render("#appmain-content");
|
|
106
|
+
|
|
107
|
+
jux.heading('kpicard-heading').level(3).text('jux.kpicard').render("#appmain-content");
|
|
108
|
+
jux.kpicard('all-kpicard')
|
|
109
|
+
.delta('+5% - .delta')
|
|
110
|
+
.prefix('$ - .prefix')
|
|
111
|
+
.value('1,000 - .value')
|
|
112
|
+
.title('KPI Card Title - .title')
|
|
113
|
+
.render("#appmain-content");
|
|
114
|
+
jux.divider().render("#appmain-content");
|
|
115
|
+
|
|
116
|
+
jux.heading('list-heading').level(3).text('jux.list').render("#appmain-content");
|
|
36
117
|
jux.list('all-list', {
|
|
37
118
|
items: ['Item 1', 'Item 2', 'Item 3']
|
|
38
|
-
})
|
|
39
|
-
|
|
119
|
+
})
|
|
120
|
+
.render("#appmain-content");
|
|
121
|
+
jux.divider().render("#appmain-content");
|
|
122
|
+
|
|
123
|
+
jux.heading('loading-heading').level(3).text('jux.loading').render("#appmain-content");
|
|
124
|
+
jux.loading('all-loading')
|
|
125
|
+
.variant('spinner')
|
|
126
|
+
.size('lg')
|
|
127
|
+
.render("#appmain-content");
|
|
128
|
+
jux.divider().render("#appmain-content");
|
|
129
|
+
|
|
130
|
+
jux.heading('sidebar-heading').level(3).text('jux.sidebar').render("#appaside");
|
|
131
|
+
jux.sidebar('all-sidebar')
|
|
132
|
+
.collapsible(true)
|
|
133
|
+
.render("#appaside");
|
|
134
|
+
jux.divider().render("#appaside");
|
|
135
|
+
|
|
136
|
+
jux.heading('menu-heading').level(3).text('jux.menu').render("#appaside");
|
|
40
137
|
jux.menu('all-menu', {
|
|
41
138
|
items: [{ label: 'Home', path: '/' }, { label: 'About', path: '/about' }]
|
|
42
|
-
})
|
|
139
|
+
})
|
|
140
|
+
.render("#appaside");
|
|
141
|
+
jux.divider().render("#appaside");
|
|
142
|
+
|
|
143
|
+
jux.heading('nav-heading').level(3).text('jux.nav').render("#appmain-content");
|
|
43
144
|
jux.nav('all-nav', {
|
|
44
145
|
items: [{ label: 'Home', path: '/' }, { label: 'About', path: '/about' }]
|
|
45
|
-
}).render();
|
|
46
|
-
jux.
|
|
47
|
-
|
|
146
|
+
}).render("#appmain-content");
|
|
147
|
+
jux.divider().render("#appmain-content");
|
|
148
|
+
|
|
149
|
+
jux.heading('paragraph-heading').level(3).text('jux.paragraph').render("#appmain-content");
|
|
150
|
+
jux.paragraph('all-paragraph')
|
|
151
|
+
.text('This is a sample paragraph created with jux.paragraph - .text')
|
|
152
|
+
.render("#appmain-content");
|
|
153
|
+
jux.divider().render("#appmain-content");
|
|
154
|
+
|
|
155
|
+
jux.heading('progress-heading').level(3).text('jux.progress').render("#appmain-content");
|
|
156
|
+
jux.progress('all-progress')
|
|
157
|
+
.value(70)
|
|
158
|
+
.max(100)
|
|
159
|
+
.variant('success')
|
|
160
|
+
.render("#appmain-content");
|
|
161
|
+
jux.divider().render("#appmain-content");
|
|
162
|
+
|
|
163
|
+
jux.heading('radio-heading').level(3).text('jux.radio').render("#appmain-content");
|
|
48
164
|
jux.radio('all-radio', {
|
|
49
165
|
options: [{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]
|
|
50
|
-
})
|
|
166
|
+
})
|
|
167
|
+
.label('Radio Label - .label')
|
|
168
|
+
.render("#appmain-content");
|
|
169
|
+
jux.divider().render("#appmain-content");
|
|
170
|
+
|
|
171
|
+
jux.heading('select-heading').level(3).text('jux.select').render("#appmain-content");
|
|
51
172
|
jux.select('all-select', {
|
|
52
173
|
options: [{ label: 'Option 1', value: '1' }, { label: 'Option 2', value: '2' }]
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
|
|
174
|
+
})
|
|
175
|
+
.label('Select Label - .label')
|
|
176
|
+
.render("#appmain-content");
|
|
177
|
+
jux.divider().render("#appmain-content");
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
jux.heading('switch-heading').level(3).text('jux.switch').render("#appmain-content");
|
|
182
|
+
jux.switch('all-switch')
|
|
183
|
+
.label('Switch Label - .label')
|
|
184
|
+
.render("#appmain-content");
|
|
185
|
+
jux.divider().render("#appmain-content");
|
|
186
|
+
|
|
187
|
+
jux.heading('table-heading').level(3).text('jux.table').render("#appmain-content");
|
|
56
188
|
jux.table('all-table', {
|
|
57
189
|
columns: ['Name', 'Age'],
|
|
58
190
|
rows: [
|
|
59
191
|
{ Name: 'John', Age: '25' },
|
|
192
|
+
{ Name: 'Jane', Age: '30' },
|
|
193
|
+
{ Name: 'Jane', Age: '30' },
|
|
194
|
+
{ Name: 'Jane', Age: '30' },
|
|
60
195
|
{ Name: 'Jane', Age: '30' }
|
|
61
196
|
]
|
|
62
|
-
})
|
|
197
|
+
})
|
|
198
|
+
.bordered(true)
|
|
199
|
+
.selectable(true)
|
|
200
|
+
.filterable(true)
|
|
201
|
+
.paginated(true)
|
|
202
|
+
.rowsPerPage(2)
|
|
203
|
+
.render("#appmain-content");
|
|
204
|
+
jux.divider().render("#appmain-content");
|
|
205
|
+
|
|
206
|
+
jux.heading('tabs-heading').level(3).text('jux.tabs').render("#appmain-content");
|
|
63
207
|
jux.tabs('all-tabs', {
|
|
64
|
-
tabs: [{ label: 'Tab 1', content: 'Content 1' }, { label: 'Tab 2', content: 'Content 2' }]
|
|
65
|
-
})
|
|
208
|
+
tabs: [{ id: 1, label: 'Tab 1', content: 'Content 1' }, { id: 2, label: 'Tab 2', content: 'Content 2' }]
|
|
209
|
+
})
|
|
210
|
+
.activeTab('1')
|
|
211
|
+
.render("#appmain-content");
|
|
212
|
+
jux.divider().render("#appmain-content");
|
|
66
213
|
|
|
67
|
-
jux.
|
|
214
|
+
jux.heading('tooltip-heading').level(3).text('jux.tooltip').render("#appmain-content");
|
|
215
|
+
jux.button('tooltip-trigger').label('Hover for tooltip').render("#appmain-content");
|
|
68
216
|
jux.tooltip('all-tooltip', {
|
|
69
217
|
text: 'Tooltip content',
|
|
70
218
|
position: 'top'
|
|
71
219
|
}).render('#tooltip-trigger');
|
|
220
|
+
jux.divider().render("#appmain-content");
|
|
72
221
|
|
|
73
|
-
jux.view('
|
|
222
|
+
jux.heading('view-heading').level(3).text('jux.view').render("#appmain-content");
|
|
223
|
+
jux.view('all-view')
|
|
224
|
+
.title('View Title - Need to Rethink - this is for nesting! - .title')
|
|
225
|
+
.render("#appmain-content");
|
|
226
|
+
jux.divider().render("#appmain-content");
|
|
74
227
|
|
|
75
228
|
// ═══════════════════════════════════════════════════════════════════
|
|
76
229
|
// SELF-ANALYSIS: Build component tree from #app
|
|
@@ -167,7 +320,7 @@ setTimeout(() => {
|
|
|
167
320
|
// Create analysis display
|
|
168
321
|
jux.container('analysis-container')
|
|
169
322
|
.style('margin-top: 3rem; padding: 2rem; background: #1e1e1e; border-radius: 8px;')
|
|
170
|
-
.render();
|
|
323
|
+
.render("#appmain-content");
|
|
171
324
|
|
|
172
325
|
jux.heading('analysis-title')
|
|
173
326
|
.level(2)
|