superdesk-ui-framework 3.0.1-beta.3 → 3.0.1-beta.30
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/app/fonts/sd_icons.eot +0 -0
- package/app/fonts/sd_icons.svg +14 -7
- package/app/fonts/sd_icons.ttf +0 -0
- package/app/fonts/sd_icons.woff +0 -0
- package/app/scripts/toggleBoxNext.js +1 -1
- package/app/styles/_big-icon-font.scss +1 -1
- package/app/styles/_buttons.scss +11 -6
- package/app/styles/_content-divider.scss +63 -8
- package/app/styles/_helpers.scss +24 -1
- package/app/styles/_icon-font.scss +17 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +3 -2
- package/app/styles/_modals.scss +6 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +256 -296
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +1 -0
- package/app/styles/components/_list-item.scss +36 -17
- package/app/styles/components/_sd-collapse-box.scss +6 -6
- package/app/styles/components/_sd-comment-box.scss +8 -4
- package/app/styles/components/_sd-editor-popup.scss +4 -4
- package/app/styles/components/_sd-grid-item.scss +30 -16
- package/app/styles/components/_sd-media-carousel.scss +37 -2
- package/app/styles/components/_sd-photo-preview.scss +3 -3
- package/app/styles/components/_sd-searchbar.scss +7 -0
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_design-tokens-general.scss +1 -1
- package/app/styles/design-tokens/_new-colors.scss +30 -13
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_forms-general.scss +81 -7
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +368 -110
- package/app/styles/grids/_grid-layout.scss +34 -1
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_basic-layout.scss +2 -2
- package/app/styles/layout/_editor.scss +10 -4
- package/app/styles/primereact/_pr-datepicker.scss +4 -2
- package/app/styles/primereact/_pr-dialog.scss +5 -0
- package/app/styles/primereact/_pr-dropdown.scss +17 -1
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +21 -21
- package/app-typescript/components/Badge.tsx +3 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +40 -52
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +400 -0
- package/app-typescript/components/EmptyState.tsx +2 -1
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/FormRowNew.tsx +41 -0
- package/app-typescript/components/Form/InputBase.tsx +95 -0
- package/app-typescript/components/Form/InputNew.tsx +107 -0
- package/app-typescript/components/Form/InputWrapper.tsx +79 -0
- package/app-typescript/components/Form/index.tsx +4 -0
- package/app-typescript/components/Input.tsx +28 -45
- package/app-typescript/components/Label.tsx +65 -10
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrame.tsx +2 -1
- package/app-typescript/components/Layouts/AuthoringFrameRightBar.tsx +21 -2
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +1 -1
- package/app-typescript/components/Layouts/AuthoringMain.tsx +4 -2
- package/app-typescript/components/Layouts/CoreLayout.tsx +2 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +7 -1
- package/app-typescript/components/Layouts/Layout.tsx +1 -1
- package/app-typescript/components/LeftMenu.tsx +127 -122
- package/app-typescript/components/Lists/ContentList.tsx +66 -33
- package/app-typescript/components/Lists/TableList.tsx +348 -151
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/MultiSelect.tsx +37 -50
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/BottomNav.tsx +3 -2
- package/app-typescript/components/SearchBar.tsx +39 -12
- package/app-typescript/components/Select.tsx +23 -41
- package/app-typescript/components/SelectWithTemplate.tsx +32 -7
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +38 -15
- package/app-typescript/components/TreeSelect.tsx +546 -212
- package/app-typescript/index.ts +6 -1
- package/dist/examples.bundle.css +344 -71
- package/dist/examples.bundle.js +48203 -45174
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
- package/dist/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/dist/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/dist/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +379 -25
- package/dist/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/dist/react/Badges.tsx +18 -0
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +200 -18
- package/dist/react/DatePicker.tsx +21 -1
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +108 -0
- package/dist/react/Index.tsx +5 -0
- package/dist/react/Inputs.tsx +147 -2
- package/dist/react/Labels.tsx +51 -1
- package/dist/react/LeftNavigations.tsx +71 -44
- package/dist/react/MultiSelect.tsx +10 -7
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/SelectWithTemplate.tsx +6 -1
- package/dist/react/TableList.tsx +79 -186
- package/dist/react/TimePicker.tsx +22 -12
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +295 -51
- package/dist/react/tree-select/TreeSelect.tsx +273 -0
- package/dist/react/tree-select/example-1.tsx +71 -0
- package/dist/react/tree-select/example-2.tsx +59 -0
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +14 -7
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +2282 -782
- package/dist/superdesk-ui.bundle.js +37312 -21800
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +4 -4
- package/examples/index.js +4 -0
- package/examples/pages/playgrounds/react-playgrounds/CoreLayout.tsx +65 -54
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +1 -0
- package/examples/pages/playgrounds/react-playgrounds/Multiedit.tsx +321 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +26 -23
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +20 -21
- package/examples/pages/playgrounds/react-playgrounds/SamsPlayground.tsx +12 -3
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +379 -25
- package/examples/pages/playgrounds/react-playgrounds/components/Layout.tsx +1 -1
- package/examples/pages/react/Badges.tsx +18 -0
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +200 -18
- package/examples/pages/react/DatePicker.tsx +21 -1
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +108 -0
- package/examples/pages/react/Index.tsx +5 -0
- package/examples/pages/react/Inputs.tsx +147 -2
- package/examples/pages/react/Labels.tsx +51 -1
- package/examples/pages/react/LeftNavigations.tsx +71 -44
- package/examples/pages/react/MultiSelect.tsx +10 -7
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/SelectWithTemplate.tsx +6 -1
- package/examples/pages/react/TableList.tsx +79 -186
- package/examples/pages/react/TimePicker.tsx +22 -12
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +295 -51
- package/examples/pages/react/tree-select/TreeSelect.tsx +273 -0
- package/examples/pages/react/tree-select/example-1.tsx +71 -0
- package/examples/pages/react/tree-select/example-2.tsx +59 -0
- package/package.json +5 -5
- package/react/components/Badge.d.ts +1 -0
- package/react/components/Badge.js +2 -2
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +1 -0
- package/react/components/DatePicker.js +6 -22
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +42 -0
- package/react/components/DurationInput.js +364 -0
- package/react/components/EmptyState.d.ts +1 -0
- package/react/components/EmptyState.js +1 -1
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/FormRowNew.d.ts +12 -0
- package/react/components/Form/FormRowNew.js +67 -0
- package/react/components/Form/InputBase.d.ts +41 -0
- package/react/components/Form/InputBase.js +86 -0
- package/react/components/Form/InputNew.d.ts +45 -0
- package/react/components/Form/InputNew.js +75 -0
- package/react/components/Form/InputWrapper.d.ts +28 -0
- package/react/components/Form/InputWrapper.js +91 -0
- package/react/components/Form/index.d.ts +4 -0
- package/react/components/Form/index.js +9 -1
- package/react/components/Input.js +5 -34
- package/react/components/Label.d.ts +2 -0
- package/react/components/Label.js +34 -3
- package/react/components/Layouts/AuthoringContainer.d.ts +1 -0
- package/react/components/Layouts/AuthoringContainer.js +1 -1
- package/react/components/Layouts/AuthoringFrame.d.ts +1 -0
- package/react/components/Layouts/AuthoringFrame.js +1 -1
- package/react/components/Layouts/AuthoringFrameRightBar.d.ts +9 -2
- package/react/components/Layouts/AuthoringFrameRightBar.js +14 -3
- package/react/components/Layouts/AuthoringInnerHeader.js +1 -1
- package/react/components/Layouts/AuthoringMain.js +1 -1
- package/react/components/Layouts/CoreLayout.d.ts +1 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +1 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Layouts/Layout.js +1 -1
- package/react/components/LeftMenu.d.ts +3 -1
- package/react/components/LeftMenu.js +8 -1
- package/react/components/Lists/ContentList.d.ts +51 -0
- package/react/components/Lists/ContentList.js +110 -0
- package/react/components/Lists/TableList.d.ts +64 -0
- package/react/components/Lists/TableList.js +240 -0
- package/react/components/Menu.js +1 -1
- package/react/components/MultiSelect.d.ts +40 -0
- package/react/components/MultiSelect.js +70 -0
- package/react/components/NavButton.d.ts +1 -1
- package/react/components/Navigation/BottomNav.d.ts +1 -0
- package/react/components/Navigation/BottomNav.js +2 -2
- package/react/components/SearchBar.d.ts +3 -2
- package/react/components/SearchBar.js +28 -4
- package/react/components/Select.d.ts +1 -1
- package/react/components/Select.js +4 -26
- package/react/components/SelectWithTemplate.d.ts +11 -1
- package/react/components/SelectWithTemplate.js +19 -10
- package/react/components/TimePicker.d.ts +11 -1
- package/react/components/TimePicker.js +10 -3
- package/react/components/TreeSelect.d.ts +82 -0
- package/react/components/TreeSelect.js +521 -0
- package/react/index.d.ts +6 -0
- package/react/index.js +16 -3
- package/.vscode/settings.json +0 -5
- package/app-typescript/dist/components/Alert.d.ts +0 -16
- package/app-typescript/dist/components/Autocomplete.d.ts +0 -48
- package/app-typescript/dist/components/Avatar.d.ts +0 -33
- package/app-typescript/dist/components/Badge.d.ts +0 -13
- package/app-typescript/dist/components/Button.d.ts +0 -23
- package/app-typescript/dist/components/ButtonGroup.d.ts +0 -12
- package/app-typescript/dist/components/CheckButtonGroup.d.ts +0 -11
- package/app-typescript/dist/components/CheckGroup.d.ts +0 -9
- package/app-typescript/dist/components/Checkbox.d.ts +0 -19
- package/app-typescript/dist/components/CheckboxButton.d.ts +0 -19
- package/app-typescript/dist/components/DatePicker.d.ts +0 -37
- package/app-typescript/dist/components/Divider.d.ts +0 -9
- package/app-typescript/dist/components/DonutChart.d.ts +0 -12
- package/app-typescript/dist/components/Dropdown.d.ts +0 -28
- package/app-typescript/dist/components/DropdownFirst.d.ts +0 -42
- package/app-typescript/dist/components/EmptyState.d.ts +0 -11
- package/app-typescript/dist/components/FormLabel.d.ts +0 -9
- package/app-typescript/dist/components/Genie.d.ts +0 -13
- package/app-typescript/dist/components/GridItem.d.ts +0 -69
- package/app-typescript/dist/components/GridList.d.ts +0 -14
- package/app-typescript/dist/components/HeadingText.d.ts +0 -10
- package/app-typescript/dist/components/HelloWorld.d.ts +0 -8
- package/app-typescript/dist/components/Icon.d.ts +0 -12
- package/app-typescript/dist/components/IconButton.d.ts +0 -12
- package/app-typescript/dist/components/IconLabel.d.ts +0 -11
- package/app-typescript/dist/components/Input.d.ts +0 -24
- package/app-typescript/dist/components/Label.d.ts +0 -15
- package/app-typescript/dist/components/LeftMenu.d.ts +0 -26
- package/app-typescript/dist/components/Loader.d.ts +0 -8
- package/app-typescript/dist/components/NavButton.d.ts +0 -15
- package/app-typescript/dist/components/Popover.d.ts +0 -13
- package/app-typescript/dist/components/PropsList.d.ts +0 -15
- package/app-typescript/dist/components/Radio.d.ts +0 -19
- package/app-typescript/dist/components/RadioButton.d.ts +0 -20
- package/app-typescript/dist/components/Select.d.ts +0 -29
- package/app-typescript/dist/components/SelectWithTemplate.d.ts +0 -32
- package/app-typescript/dist/components/SlidingToolbar.d.ts +0 -8
- package/app-typescript/dist/components/StrechBar.d.ts +0 -4
- package/app-typescript/dist/components/SubNav.d.ts +0 -10
- package/app-typescript/dist/components/Switch.d.ts +0 -12
- package/app-typescript/dist/components/TabCustom.d.ts +0 -25
- package/app-typescript/dist/components/TabList.d.ts +0 -22
- package/app-typescript/dist/components/Tag.d.ts +0 -9
- package/app-typescript/dist/components/TagInput.d.ts +0 -7
- package/app-typescript/dist/components/TagInputTest.d.ts +0 -18
- package/app-typescript/dist/components/TimePicker.d.ts +0 -11
- package/app-typescript/dist/components/Tooltip.d.ts +0 -11
- package/app-typescript/dist/components/_Positioner.d.ts +0 -27
- package/app-typescript/dist/index.d.ts +0 -56
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -57
- package/yarn-error.log +0 -111
@@ -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
|
|
@@ -167,10 +170,11 @@ export default class ContentDividerDoc extends React.Component {
|
|
167
170
|
|
168
171
|
<h3 className="docs-page__h3">Props</h3>
|
169
172
|
<PropsList>
|
170
|
-
<Prop name='type'
|
171
|
-
<Prop name='orientation'
|
172
|
-
<Prop name='align'
|
173
|
-
<Prop name='border'
|
173
|
+
<Prop name='type' isRequired={false} type='dashed | dotted | solid' default='solid' description='Border style of the divider.'/>
|
174
|
+
<Prop name='orientation' isRequired={false} type='horizontal | vertical' default='horizontal' description='Defines if the divider is horizontal or vertical. Default is horizontal.'/>
|
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.'/>
|
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
|
)
|
@@ -1,28 +1,23 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as Markup from '../../js/react';
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import { ContentList, ContentListItem } from '../../../app-typescript/components/Lists/ContentList';
|
3
|
+
import { Prop, PropsList, Icon, IconButton, Label, Container, IconLabel } from '../../../app-typescript';
|
4
|
+
import { ContentList } from '../../../app-typescript/components/Lists/ContentList';
|
6
5
|
|
7
6
|
export default class ContentListDoc extends React.Component {
|
8
7
|
render() {
|
9
8
|
return (
|
10
9
|
<section className='docs-page__container'>
|
11
10
|
<h2 className='docs-page__h2'>ContentList</h2>
|
12
|
-
|
13
11
|
<Markup.ReactMarkupCodePreview>{`
|
14
12
|
<ContentList
|
15
13
|
items: [...]
|
16
14
|
/>
|
17
15
|
`}
|
18
16
|
</Markup.ReactMarkupCodePreview>
|
19
|
-
|
20
17
|
<p className="docs-page__paragraph">...</p>
|
21
|
-
|
22
18
|
<Markup.ReactMarkup>
|
23
19
|
<Markup.ReactMarkupPreview>
|
24
20
|
<p className="docs-page__paragraph">// basic</p>
|
25
|
-
|
26
21
|
<ContentList
|
27
22
|
items={[
|
28
23
|
{
|
@@ -61,7 +56,6 @@ export default class ContentListDoc extends React.Component {
|
|
61
56
|
}
|
62
57
|
],
|
63
58
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
64
|
-
loading: true,
|
65
59
|
},
|
66
60
|
{
|
67
61
|
itemColum: [
|
@@ -98,7 +92,6 @@ export default class ContentListDoc extends React.Component {
|
|
98
92
|
fullwidth: true,
|
99
93
|
}
|
100
94
|
],
|
101
|
-
locked: true,
|
102
95
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
103
96
|
},
|
104
97
|
{
|
@@ -139,7 +132,141 @@ export default class ContentListDoc extends React.Component {
|
|
139
132
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
140
133
|
},
|
141
134
|
]} />
|
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>
|
142
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
|
+
]} />
|
143
270
|
</Markup.ReactMarkupPreview>
|
144
271
|
<Markup.ReactMarkupCode>{`
|
145
272
|
<ContentList
|
@@ -257,23 +384,78 @@ export default class ContentListDoc extends React.Component {
|
|
257
384
|
action: <IconButton icon='dots-vertical' ariaValue='More actions' onClick={()=> false} />,
|
258
385
|
},
|
259
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
|
+
]} />
|
260
433
|
`}
|
261
434
|
</Markup.ReactMarkupCode>
|
262
435
|
</Markup.ReactMarkup>
|
263
|
-
|
264
436
|
<h3 className="docs-page__h3">Props</h3>
|
265
|
-
<p className="docs-page__paragraph">
|
437
|
+
<p className="docs-page__paragraph">ContentList</p>
|
266
438
|
<PropsList>
|
267
|
-
<Prop name='
|
439
|
+
<Prop name='items' isRequired={true} type='Array' default='compact' description='An array of object.'/>
|
268
440
|
</PropsList>
|
269
|
-
<p className="docs-page__paragraph">
|
441
|
+
<p className="docs-page__paragraph">Items:</p>
|
270
442
|
<PropsList>
|
271
|
-
<Prop name='
|
272
|
-
<Prop name='
|
273
|
-
<Prop name='
|
274
|
-
<Prop name='
|
443
|
+
<Prop name='itemColum' isRequired={true} type='Array<{itemRow: Array<{content: any}>, border?: boolean, fullwidth?: boolean}>' default='false' description='An array of objects for defining column of individual items.'/>
|
444
|
+
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='On hover displays an additional menu.'/>
|
445
|
+
<Prop name='locked' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
446
|
+
<Prop name='activated' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
447
|
+
<Prop name='selected' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
448
|
+
<Prop name='archived' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
449
|
+
<Prop name='loading' isRequired={false} type='boolean' default='false' description='If is true, the individual item of list change state and change style.'/>
|
450
|
+
<Prop name='onClick' isRequired={false} type='function' default='/' description='onClick functionality.'/>
|
451
|
+
<Prop name='onDoubleClick' isRequired={false} type='function' default='/' description='onDoubleClick functionality.'/>
|
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.'/>
|
275
458
|
</PropsList>
|
276
|
-
|
277
459
|
</section>
|
278
460
|
)
|
279
461
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
|
3
3
|
import * as Markup from '../../js/react';
|
4
|
-
import {DatePicker, PropsList, Prop} from '../../../app-typescript';
|
4
|
+
import {DatePicker, PropsList, Prop, DatePickerISO} from '../../../app-typescript';
|
5
5
|
|
6
6
|
class DatePickerExample extends React.PureComponent<{}, {date: Date}> {
|
7
7
|
constructor(props) {
|
@@ -48,6 +48,11 @@ export default class DatePickerDoc extends React.Component {
|
|
48
48
|
onChange={(date) => {
|
49
49
|
this.setState({date});
|
50
50
|
}}
|
51
|
+
required
|
52
|
+
tabindex={1}
|
53
|
+
label={'This is Label'}
|
54
|
+
info={'This is info'}
|
55
|
+
error={'This is error'}
|
51
56
|
/>
|
52
57
|
);
|
53
58
|
}
|
@@ -58,6 +63,21 @@ export default class DatePickerDoc extends React.Component {
|
|
58
63
|
<div className='docs-page__content-row'>
|
59
64
|
<DatePickerExample />
|
60
65
|
</div>
|
66
|
+
|
67
|
+
<p className="docs-page__paragraph">// DatePickerISO</p>
|
68
|
+
<div className='docs-page__content-row'>
|
69
|
+
<DatePickerISO
|
70
|
+
value={'2019-01-01'}
|
71
|
+
dateFormat="YYYY-MM-DD"
|
72
|
+
onChange={(date) => {
|
73
|
+
this.setState({date});
|
74
|
+
}}
|
75
|
+
tabindex={1}
|
76
|
+
label={'This is Label'}
|
77
|
+
info={'This is info'}
|
78
|
+
error={'This is error'}
|
79
|
+
/>
|
80
|
+
</div>
|
61
81
|
</Markup.ReactMarkupPreview>
|
62
82
|
<Markup.ReactMarkupCode>{`
|
63
83
|
<DatePicker
|