superdesk-ui-framework 3.0.1-beta.17 → 3.0.1-beta.19
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/.vscode/settings.json +5 -0
- package/app/styles/_content-divider.scss +58 -3
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/Dropdown.tsx +6 -2
- package/app-typescript/components/DurationInput.tsx +32 -17
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/dist/components/Alert.d.ts +16 -0
- package/app-typescript/dist/components/Autocomplete.d.ts +48 -0
- package/app-typescript/dist/components/Avatar.d.ts +33 -0
- package/app-typescript/dist/components/Badge.d.ts +13 -0
- package/app-typescript/dist/components/Button.d.ts +23 -0
- package/app-typescript/dist/components/ButtonGroup.d.ts +12 -0
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +11 -0
- package/app-typescript/dist/components/CheckGroup.d.ts +9 -0
- package/app-typescript/dist/components/Checkbox.d.ts +19 -0
- package/app-typescript/dist/components/CheckboxButton.d.ts +19 -0
- package/app-typescript/dist/components/DatePicker.d.ts +37 -0
- package/app-typescript/dist/components/Divider.d.ts +9 -0
- package/app-typescript/dist/components/DonutChart.d.ts +12 -0
- package/app-typescript/dist/components/Dropdown.d.ts +28 -0
- package/app-typescript/dist/components/DropdownFirst.d.ts +42 -0
- package/app-typescript/dist/components/EmptyState.d.ts +11 -0
- package/app-typescript/dist/components/FormLabel.d.ts +9 -0
- package/app-typescript/dist/components/Genie.d.ts +13 -0
- package/app-typescript/dist/components/GridItem.d.ts +69 -0
- package/app-typescript/dist/components/GridList.d.ts +14 -0
- package/app-typescript/dist/components/HeadingText.d.ts +10 -0
- package/app-typescript/dist/components/HelloWorld.d.ts +8 -0
- package/app-typescript/dist/components/Icon.d.ts +12 -0
- package/app-typescript/dist/components/IconButton.d.ts +12 -0
- package/app-typescript/dist/components/IconLabel.d.ts +11 -0
- package/app-typescript/dist/components/Input.d.ts +24 -0
- package/app-typescript/dist/components/Label.d.ts +15 -0
- package/app-typescript/dist/components/LeftMenu.d.ts +26 -0
- package/app-typescript/dist/components/Loader.d.ts +8 -0
- package/app-typescript/dist/components/NavButton.d.ts +15 -0
- package/app-typescript/dist/components/Popover.d.ts +13 -0
- package/app-typescript/dist/components/PropsList.d.ts +15 -0
- package/app-typescript/dist/components/Radio.d.ts +19 -0
- package/app-typescript/dist/components/RadioButton.d.ts +20 -0
- package/app-typescript/dist/components/Select.d.ts +29 -0
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +32 -0
- package/app-typescript/dist/components/SlidingToolbar.d.ts +8 -0
- package/app-typescript/dist/components/StrechBar.d.ts +4 -0
- package/app-typescript/dist/components/SubNav.d.ts +10 -0
- package/app-typescript/dist/components/Switch.d.ts +12 -0
- package/app-typescript/dist/components/TabCustom.d.ts +25 -0
- package/app-typescript/dist/components/TabList.d.ts +22 -0
- package/app-typescript/dist/components/Tag.d.ts +9 -0
- package/app-typescript/dist/components/TagInput.d.ts +7 -0
- package/app-typescript/dist/components/TagInputTest.d.ts +18 -0
- package/app-typescript/dist/components/TimePicker.d.ts +11 -0
- package/app-typescript/dist/components/Tooltip.d.ts +11 -0
- package/app-typescript/dist/components/_Positioner.d.ts +27 -0
- package/app-typescript/dist/index.d.ts +56 -0
- package/dist/examples.bundle.js +184 -42
- package/dist/react/ContentDivider.tsx +18 -14
- package/dist/react/ContentList.tsx +187 -3
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/TableList.tsx +21 -4
- package/dist/superdesk-ui.bundle.css +41 -3
- package/dist/superdesk-ui.bundle.js +43 -22
- package/examples/pages/react/ContentDivider.tsx +18 -14
- package/examples/pages/react/ContentList.tsx +187 -3
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/TableList.tsx +21 -4
- package/package.json +1 -1
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/Dropdown.js +6 -2
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +35 -20
- package/yarn-error.log +111 -0
@@ -32,11 +32,12 @@ export default class ContentDividerDoc extends React.Component {
|
|
32
32
|
consectetur adipiscing elit. Nullam quis risus eget urna mollis ornare vel eu leo.
|
33
33
|
Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras mattis consectetur
|
34
34
|
purus sit amet fermentum. Nulla vitae elit libero, a pharetra augue.</p>
|
35
|
-
<ContentDivider type="dotted" />
|
35
|
+
<ContentDivider type="dotted" margin='x-small' />
|
36
36
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce dapibus, tellus
|
37
37
|
ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet
|
38
38
|
risus. Donec id elit non mi porta gravida at eget metus. Cras justo odio, dapibus ac
|
39
39
|
facilisis in, egestas eget quam.</p>
|
40
|
+
<ContentDivider type="dotted" margin='x-small' />
|
40
41
|
</div>
|
41
42
|
</Markup.ReactMarkupPreview>
|
42
43
|
<Markup.ReactMarkupCode>{`
|
@@ -50,9 +51,11 @@ export default class ContentDividerDoc extends React.Component {
|
|
50
51
|
|
51
52
|
<p>Donec ullamcorper nulla non metus auctor fringilla...</p>
|
52
53
|
|
53
|
-
<ContentDivider type="dotted" />
|
54
|
+
<ContentDivider type="dotted" margin='x-small' />
|
54
55
|
|
55
56
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
|
57
|
+
|
58
|
+
<ContentDivider type="dotted" margin='x-small' />
|
56
59
|
`}
|
57
60
|
</Markup.ReactMarkupCode>
|
58
61
|
</Markup.ReactMarkup>
|
@@ -69,15 +72,15 @@ export default class ContentDividerDoc extends React.Component {
|
|
69
72
|
Maecenas faucibus mollis interdum. Donec ullamcorper nulla non metus
|
70
73
|
auctor fringilla. Aenean eu leo quam. Pellentesque ornare sem lacinia
|
71
74
|
quam venenatis vestibulum.</p>
|
72
|
-
<ContentDivider align="left">
|
73
|
-
Left aligned
|
75
|
+
<ContentDivider margin='small' align="left">
|
76
|
+
Left aligned, small margin
|
74
77
|
</ContentDivider>
|
75
78
|
<p>Maecenas sed diam eget risus varius blandit sit amet non magna.
|
76
79
|
Donec id elit non mi porta gravida at eget metus. Cras mattis consectetur
|
77
80
|
purus sit amet fermentum. Etiam porta sem malesuada magna mollis euismod.
|
78
81
|
Cras mattis consectetur purus sit amet fermentum.</p>
|
79
82
|
<ContentDivider align="right" type="dotted">
|
80
|
-
Right aligned
|
83
|
+
Right aligned, dotted
|
81
84
|
</ContentDivider>
|
82
85
|
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur et.
|
83
86
|
Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna,
|
@@ -93,14 +96,14 @@ export default class ContentDividerDoc extends React.Component {
|
|
93
96
|
|
94
97
|
<p>Maecenas sed diam eget...</p>
|
95
98
|
|
96
|
-
<ContentDivider align="left">
|
97
|
-
Left aligned
|
99
|
+
<ContentDivider margin='small' align="left">
|
100
|
+
Left aligned, small margin
|
98
101
|
</ContentDivider>
|
99
102
|
|
100
103
|
<p>Maecenas sed diam eget risus...</p>
|
101
104
|
|
102
105
|
<ContentDivider align="right" type="dotted">
|
103
|
-
Right aligned
|
106
|
+
Right aligned, dotted
|
104
107
|
</ContentDivider>
|
105
108
|
|
106
109
|
<p>Praesent commodo cursus magna...</p>
|
@@ -115,9 +118,9 @@ export default class ContentDividerDoc extends React.Component {
|
|
115
118
|
<p className="docs-page__paragraph">// Basic</p>
|
116
119
|
<div className='docs-page__content-row'>
|
117
120
|
<span>Option one</span>
|
118
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
121
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
119
122
|
<span>Option two</span>
|
120
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
123
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
121
124
|
<span>Option three</span>
|
122
125
|
</div>
|
123
126
|
<p className="docs-page__paragraph ">// With text</p>
|
@@ -129,7 +132,7 @@ export default class ContentDividerDoc extends React.Component {
|
|
129
132
|
sit amet. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Aenean lacinia bibendum nulla
|
130
133
|
sed consectetur. Vivamus sagittis lacus vel augue.
|
131
134
|
</div>
|
132
|
-
<ContentDivider orientation="vertical">
|
135
|
+
<ContentDivider orientation="vertical" margin='large'>
|
133
136
|
or
|
134
137
|
</ContentDivider>
|
135
138
|
<div style={{width:'100%'}}>
|
@@ -143,9 +146,9 @@ export default class ContentDividerDoc extends React.Component {
|
|
143
146
|
// Basic
|
144
147
|
|
145
148
|
<span>Option one</span>
|
146
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
149
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
147
150
|
<span>Option two</span>
|
148
|
-
<ContentDivider orientation="vertical" type="dotted" />
|
151
|
+
<ContentDivider margin='small' orientation="vertical" type="dotted" />
|
149
152
|
<span>Option three</span>
|
150
153
|
|
151
154
|
// With text
|
@@ -154,7 +157,7 @@ export default class ContentDividerDoc extends React.Component {
|
|
154
157
|
Cras justo odio, dapibus ac facilisis in, egestas eget quam...
|
155
158
|
</div>
|
156
159
|
|
157
|
-
<ContentDivider orientation="vertical">
|
160
|
+
<ContentDivider orientation="vertical" margin='large'>
|
158
161
|
or
|
159
162
|
</ContentDivider>
|
160
163
|
|
@@ -171,6 +174,7 @@ export default class ContentDividerDoc extends React.Component {
|
|
171
174
|
<Prop name='orientation' isRequired={false} type='horizontal | vertical' default='horizontal' description='Defines if the divider is horizontal or vertical. Default is horizontal.'/>
|
172
175
|
<Prop name='align' isRequired={false} type='center | left | right' default='right' description='Text alignment inside the divider. Should not be used without any text inside the divider. The vertical divider has no alignment options.'/>
|
173
176
|
<Prop name='border' isRequired={false} type='boolean' default='true' description='Removes the border if set to true. Should be generally avoided especially if there is textual content. It can be used to add space between elements if there is no other option.'/>
|
177
|
+
<Prop name='margin' isRequired={false} type='x-small | small | medium | large | none' default='medium' description='Vertical or horizontal margins (depending on the orientation) of the ContentDivider. Default to medium if not set.'/>
|
174
178
|
</PropsList>
|
175
179
|
</section>
|
176
180
|
)
|
@@ -56,7 +56,6 @@ export default class ContentListDoc extends React.Component {
|
|
56
56
|
}
|
57
57
|
],
|
58
58
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
59
|
-
loading: true,
|
60
59
|
},
|
61
60
|
{
|
62
61
|
itemColum: [
|
@@ -93,8 +92,6 @@ export default class ContentListDoc extends React.Component {
|
|
93
92
|
fullwidth: true,
|
94
93
|
}
|
95
94
|
],
|
96
|
-
//locked: true,
|
97
|
-
selected: true,
|
98
95
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
99
96
|
},
|
100
97
|
{
|
@@ -136,6 +133,141 @@ export default class ContentListDoc extends React.Component {
|
|
136
133
|
},
|
137
134
|
]} />
|
138
135
|
</Markup.ReactMarkupPreview>
|
136
|
+
|
137
|
+
<Markup.ReactMarkupPreview>
|
138
|
+
<p className="docs-page__paragraph">// loading</p>
|
139
|
+
<ContentList
|
140
|
+
items={[
|
141
|
+
{
|
142
|
+
itemColum: [
|
143
|
+
{
|
144
|
+
itemRow: [{content:<>
|
145
|
+
<i className="icon-rundown"></i>
|
146
|
+
</>}],
|
147
|
+
border: true
|
148
|
+
},
|
149
|
+
{
|
150
|
+
itemRow: [
|
151
|
+
{
|
152
|
+
content:
|
153
|
+
<>
|
154
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
155
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
156
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
157
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
158
|
+
</>
|
159
|
+
},
|
160
|
+
{
|
161
|
+
content:
|
162
|
+
<>
|
163
|
+
<Label text='Marker' color='blue--800'/>
|
164
|
+
<span className='sd-list-item__compound-text'>
|
165
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
166
|
+
<span>Marker Daily</span>
|
167
|
+
</span>
|
168
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
169
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
170
|
+
</>
|
171
|
+
},
|
172
|
+
],
|
173
|
+
fullwidth: true,
|
174
|
+
}
|
175
|
+
],
|
176
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
177
|
+
loading: true
|
178
|
+
},
|
179
|
+
]} />
|
180
|
+
</Markup.ReactMarkupPreview>
|
181
|
+
|
182
|
+
<Markup.ReactMarkupPreview>
|
183
|
+
<p className="docs-page__paragraph">// selected</p>
|
184
|
+
<ContentList
|
185
|
+
items={[
|
186
|
+
{
|
187
|
+
itemColum: [
|
188
|
+
{
|
189
|
+
itemRow: [{content:<>
|
190
|
+
<i className="icon-rundown"></i>
|
191
|
+
</>}],
|
192
|
+
border: true
|
193
|
+
},
|
194
|
+
{
|
195
|
+
itemRow: [
|
196
|
+
{
|
197
|
+
content:
|
198
|
+
<>
|
199
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
200
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
201
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
202
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
203
|
+
</>
|
204
|
+
},
|
205
|
+
{
|
206
|
+
content:
|
207
|
+
<>
|
208
|
+
<Label text='Marker' color='blue--800'/>
|
209
|
+
<span className='sd-list-item__compound-text'>
|
210
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
211
|
+
<span>Marker Daily</span>
|
212
|
+
</span>
|
213
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
214
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
215
|
+
</>
|
216
|
+
},
|
217
|
+
],
|
218
|
+
fullwidth: true,
|
219
|
+
}
|
220
|
+
],
|
221
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
222
|
+
selected: true,
|
223
|
+
},
|
224
|
+
]} />
|
225
|
+
</Markup.ReactMarkupPreview>
|
226
|
+
|
227
|
+
<Markup.ReactMarkupPreview>
|
228
|
+
<p className="docs-page__paragraph">// locked</p>
|
229
|
+
<ContentList
|
230
|
+
items={[
|
231
|
+
{
|
232
|
+
itemColum: [
|
233
|
+
{
|
234
|
+
itemRow: [{content:<>
|
235
|
+
<i className="icon-rundown"></i>
|
236
|
+
</>}],
|
237
|
+
border: true
|
238
|
+
},
|
239
|
+
{
|
240
|
+
itemRow: [
|
241
|
+
{
|
242
|
+
content:
|
243
|
+
<>
|
244
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
245
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
246
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
247
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
248
|
+
</>
|
249
|
+
},
|
250
|
+
{
|
251
|
+
content:
|
252
|
+
<>
|
253
|
+
<Label text='Marker' color='blue--800'/>
|
254
|
+
<span className='sd-list-item__compound-text'>
|
255
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
256
|
+
<span>Marker Daily</span>
|
257
|
+
</span>
|
258
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
259
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
260
|
+
</>
|
261
|
+
},
|
262
|
+
],
|
263
|
+
fullwidth: true,
|
264
|
+
}
|
265
|
+
],
|
266
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
267
|
+
locked: true,
|
268
|
+
},
|
269
|
+
]} />
|
270
|
+
</Markup.ReactMarkupPreview>
|
139
271
|
<Markup.ReactMarkupCode>{`
|
140
272
|
<ContentList
|
141
273
|
items={[
|
@@ -252,6 +384,52 @@ export default class ContentListDoc extends React.Component {
|
|
252
384
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
253
385
|
},
|
254
386
|
]} />
|
387
|
+
|
388
|
+
// loading, slected & locked
|
389
|
+
|
390
|
+
<ContentList
|
391
|
+
items={[
|
392
|
+
{
|
393
|
+
itemColum: [
|
394
|
+
{
|
395
|
+
itemRow: [{content:<>
|
396
|
+
<i className="icon-rundown"></i>
|
397
|
+
</>}],
|
398
|
+
border: true
|
399
|
+
},
|
400
|
+
{
|
401
|
+
itemRow: [
|
402
|
+
{
|
403
|
+
content:
|
404
|
+
<>
|
405
|
+
<span className="sd-list-item__slugline">19:00 – 19:45</span>
|
406
|
+
<IconLabel style='translucent' innerLabel='Duration:' text='00:38' size='small' type='warning' />
|
407
|
+
<IconLabel style='translucent' innerLabel='Planned Duration:'text='00:45' size='small' />
|
408
|
+
<time className='sd-margin-s--auto' title="June 01, 2022 11:08 AM">11:08, 01.06.2022</time>
|
409
|
+
</>
|
410
|
+
},
|
411
|
+
{
|
412
|
+
content:
|
413
|
+
<>
|
414
|
+
<Label text='Marker' color='blue--800'/>
|
415
|
+
<span className='sd-list-item__compound-text'>
|
416
|
+
<span className='sd-list-item__text-label'>Template:</span>
|
417
|
+
<span>Marker Daily</span>
|
418
|
+
</span>
|
419
|
+
<span className="sd-overflow-ellipsis sd-list-item--element-grow sd-list-item__headline">Marker // 01.06.2022</span>
|
420
|
+
<Label style='translucent' text='In Progress' type='warning' />
|
421
|
+
</>
|
422
|
+
},
|
423
|
+
],
|
424
|
+
fullwidth: true,
|
425
|
+
}
|
426
|
+
],
|
427
|
+
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
428
|
+
loading: true,
|
429
|
+
selected: true,
|
430
|
+
locked: true,
|
431
|
+
},
|
432
|
+
]} />
|
255
433
|
`}
|
256
434
|
</Markup.ReactMarkupCode>
|
257
435
|
</Markup.ReactMarkup>
|
@@ -272,6 +450,12 @@ export default class ContentListDoc extends React.Component {
|
|
272
450
|
<Prop name='onClick' isRequired={false} type='function' default='/' description='onClick functionality.'/>
|
273
451
|
<Prop name='onDoubleClick' isRequired={false} type='function' default='/' description='onDoubleClick functionality.'/>
|
274
452
|
</PropsList>
|
453
|
+
<p className="docs-page__paragraph">itemColum:</p>
|
454
|
+
<PropsList>
|
455
|
+
<Prop name='itemRow' isRequired={true} type='Array<{content: any}>' default='ture' description='An array of objects for defining rows of individual items.'/>
|
456
|
+
<Prop name='border' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change style.'/>
|
457
|
+
<Prop name='fullwidth' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change style.'/>
|
458
|
+
</PropsList>
|
275
459
|
</section>
|
276
460
|
)
|
277
461
|
}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
|
3
2
|
import * as Markup from '../../js/react';
|
4
|
-
|
5
3
|
import { Input, Select, CheckGroup, Checkbox, PropsList, Prop } from '../../../app-typescript';
|
6
4
|
import { DurationInput } from '../../../app-typescript/components/DurationInput';
|
5
|
+
import { getDurationString } from '../../../app-typescript/components/DurationInput';
|
7
6
|
|
8
7
|
interface IState {
|
9
8
|
inlineLabel: boolean;
|
10
9
|
required: boolean;
|
11
10
|
disabled: boolean;
|
12
11
|
invalid: boolean;
|
12
|
+
value: any
|
13
13
|
}
|
14
14
|
|
15
15
|
export default class DurationInputDoc extends React.Component<{}, IState> {
|
@@ -20,10 +20,12 @@ export default class DurationInputDoc extends React.Component<{}, IState> {
|
|
20
20
|
required: true,
|
21
21
|
disabled: false,
|
22
22
|
invalid: false,
|
23
|
+
value: 3661,
|
23
24
|
}
|
24
25
|
}
|
25
26
|
|
26
27
|
render() {
|
28
|
+
|
27
29
|
return (
|
28
30
|
<section className='docs-page__container'>
|
29
31
|
<h2 className='docs-page__h2'>Duration Input</h2>
|
@@ -62,8 +64,10 @@ export default class DurationInputDoc extends React.Component<{}, IState> {
|
|
62
64
|
required={this.state.required}
|
63
65
|
invalid={this.state.invalid}
|
64
66
|
inlineLabel={this.state.inlineLabel}
|
67
|
+
seconds={this.state.value}
|
65
68
|
onChange={(e) => {
|
66
|
-
|
69
|
+
this.setState({value: e})
|
70
|
+
console.log(e);
|
67
71
|
}}
|
68
72
|
/>
|
69
73
|
</div>
|
package/dist/react/TableList.tsx
CHANGED
@@ -71,13 +71,28 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
71
71
|
addItem
|
72
72
|
array={this.state.array}
|
73
73
|
itemsDropdown={(index) => [
|
74
|
-
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () =>
|
75
|
-
{ label: <Label style='translucent' text='prlg' />, onSelect: () =>
|
76
|
-
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () =>
|
74
|
+
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => false },
|
75
|
+
{ label: <Label style='translucent' text='prlg' />, onSelect: () => false },
|
76
|
+
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => false },
|
77
77
|
]} />
|
78
78
|
`}
|
79
79
|
</Markup.ReactMarkupCodePreview>
|
80
80
|
|
81
|
+
<p className="docs-page__paragraph">Simple list without drag and drop functionality and without functionality for adding item in list:</p>
|
82
|
+
<Markup.ReactMarkup>
|
83
|
+
<Markup.ReactMarkupPreview>
|
84
|
+
<TableList
|
85
|
+
array={this.state.array}
|
86
|
+
/>
|
87
|
+
</Markup.ReactMarkupPreview>
|
88
|
+
<Markup.ReactMarkupCode>{`
|
89
|
+
<TableList
|
90
|
+
array={this.state.array}
|
91
|
+
/>
|
92
|
+
`}
|
93
|
+
</Markup.ReactMarkupCode>
|
94
|
+
</Markup.ReactMarkup>
|
95
|
+
|
81
96
|
<p className="docs-page__paragraph">With drag and drop functionality:</p>
|
82
97
|
<Markup.ReactMarkup>
|
83
98
|
<Markup.ReactMarkupPreview>
|
@@ -130,7 +145,9 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
130
145
|
<Prop name='center' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
131
146
|
<Prop name='end' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
132
147
|
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='Column of individual list items that is displayed on hover.' />
|
133
|
-
<Prop name='hexColor' isRequired={false} type='string' default='false' description='' />
|
148
|
+
<Prop name='hexColor' isRequired={false} type='string' default='false' description='Color of left border for item status.' />
|
149
|
+
<Prop name='locked' isRequired={false} type='function' default='false' description='If is true, the individual item of list change state and change style (border).' />
|
150
|
+
<Prop name='positionLocked' isRequired={false} type='function' default='false' description='Work in progress...' />
|
134
151
|
<Prop name='onClick' isRequired={false} type='function' default='false' description='onClick functionality.' />
|
135
152
|
<Prop name='onDoubleClick' isRequired={false} type='function' default='false' description='onDoubleClick functionality.' />
|
136
153
|
</PropsList>
|
@@ -35139,6 +35139,9 @@ input.sd-inset-search__input {
|
|
35139
35139
|
padding: 0;
|
35140
35140
|
color: var(--color-text);
|
35141
35141
|
list-style: none;
|
35142
|
+
border-bottom: 0;
|
35143
|
+
border-left: 0;
|
35144
|
+
border-right: 0;
|
35142
35145
|
border-top: 1px var(--sd-colour-line--medium);
|
35143
35146
|
border-style: solid; }
|
35144
35147
|
.sd-content-divider.sd-content-divider--with-text {
|
@@ -35149,14 +35152,26 @@ input.sd-inset-search__input {
|
|
35149
35152
|
white-space: nowrap;
|
35150
35153
|
text-align: center;
|
35151
35154
|
border-top: 0;
|
35155
|
+
border-bottom: 0;
|
35156
|
+
border-left: 0;
|
35157
|
+
border-right: 0;
|
35152
35158
|
border-top-color: var(--sd-colour-line--medium);
|
35153
35159
|
border-style: solid; }
|
35154
35160
|
.sd-content-divider.sd-content-divider--horizontal {
|
35155
35161
|
display: flex;
|
35156
35162
|
clear: both;
|
35157
35163
|
width: 100%;
|
35158
|
-
min-width: 100%;
|
35159
|
-
margin
|
35164
|
+
min-width: 100%; }
|
35165
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--margin-x-small {
|
35166
|
+
margin: 0.8rem 0; }
|
35167
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--margin-small {
|
35168
|
+
margin: 1.6rem 0; }
|
35169
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--margin-medium {
|
35170
|
+
margin: 2.4rem 0; }
|
35171
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--margin-large {
|
35172
|
+
margin: 3.2rem 0; }
|
35173
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--margin-none {
|
35174
|
+
margin: 0 0; }
|
35160
35175
|
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text {
|
35161
35176
|
margin: 1.6rem 0; }
|
35162
35177
|
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text::before, .sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text::after {
|
@@ -35168,6 +35183,8 @@ input.sd-inset-search__input {
|
|
35168
35183
|
border-top-color: transparent;
|
35169
35184
|
border-top-color: inherit;
|
35170
35185
|
border-bottom: 0;
|
35186
|
+
border-left: 0;
|
35187
|
+
border-right: 0;
|
35171
35188
|
transform: translateY(50%);
|
35172
35189
|
border-style: inherit; }
|
35173
35190
|
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--text-left::before {
|
@@ -35178,10 +35195,19 @@ input.sd-inset-search__input {
|
|
35178
35195
|
width: 95%; }
|
35179
35196
|
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--text-right::after {
|
35180
35197
|
width: 5%; }
|
35198
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--margin-x-small {
|
35199
|
+
margin: 0.8rem 0; }
|
35200
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--margin-small {
|
35201
|
+
margin: 1.6rem 0; }
|
35202
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--margin-medium {
|
35203
|
+
margin: 2.4rem 0; }
|
35204
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--margin-large {
|
35205
|
+
margin: 3.2rem 0; }
|
35206
|
+
.sd-content-divider.sd-content-divider--horizontal.sd-content-divider--with-text.sd-content-divider--margin-none {
|
35207
|
+
margin: 0.4rem 0; }
|
35181
35208
|
.sd-content-divider.sd-content-divider--vertical {
|
35182
35209
|
position: relative;
|
35183
35210
|
display: inline-block;
|
35184
|
-
margin: 0.4rem 1.2rem;
|
35185
35211
|
vertical-align: middle;
|
35186
35212
|
border-top: 0;
|
35187
35213
|
border-left: 1px var(--sd-colour-line--medium);
|
@@ -35204,7 +35230,9 @@ input.sd-inset-search__input {
|
|
35204
35230
|
position: relative;
|
35205
35231
|
height: 50%;
|
35206
35232
|
border-left: 1px var(--sd-colour-line--medium);
|
35233
|
+
border-right: 0;
|
35207
35234
|
border-bottom: 0;
|
35235
|
+
border-top: 0;
|
35208
35236
|
width: 1px;
|
35209
35237
|
border-style: solid; }
|
35210
35238
|
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--with-text.sd-content-divider--dashed::before, .sd-content-divider.sd-content-divider--vertical.sd-content-divider--with-text.sd-content-divider--dashed::after {
|
@@ -35212,6 +35240,16 @@ input.sd-inset-search__input {
|
|
35212
35240
|
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--with-text.sd-content-divider--dotted::before, .sd-content-divider.sd-content-divider--vertical.sd-content-divider--with-text.sd-content-divider--dotted::after {
|
35213
35241
|
border-style: dotted;
|
35214
35242
|
border-color: var(--sd-colour-line--strong); }
|
35243
|
+
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--margin-x-small {
|
35244
|
+
margin: 0 0.8rem; }
|
35245
|
+
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--margin-small {
|
35246
|
+
margin: 0 1.6rem; }
|
35247
|
+
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--margin-medium {
|
35248
|
+
margin: 0 2.4rem; }
|
35249
|
+
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--margin-large {
|
35250
|
+
margin: 0 3.2rem; }
|
35251
|
+
.sd-content-divider.sd-content-divider--vertical.sd-content-divider--margin-none {
|
35252
|
+
margin: 0 0; }
|
35215
35253
|
.sd-content-divider.sd-content-divider--dashed {
|
35216
35254
|
border-style: dashed; }
|
35217
35255
|
.sd-content-divider.sd-content-divider--dotted {
|