superdesk-ui-framework 3.0.1-beta.8 → 3.0.1
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 +1 -0
- 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 +11 -10
- package/app/styles/_labels.scss +0 -1
- package/app/styles/_master-desk.scss +5 -4
- package/app/styles/_modals.scss +7 -3
- package/app/styles/_normalize.scss +4 -0
- package/app/styles/_sd-tag-input.scss +56 -2
- package/app/styles/_simple-list.scss +0 -2
- package/app/styles/_table-list.scss +116 -12
- package/app/styles/app.scss +3 -0
- package/app/styles/components/_list-item.scss +23 -16
- 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-media-carousel.scss +37 -2
- package/app/styles/components/_sd-pagination.scss +41 -0
- package/app/styles/components/_sd-photo-preview.scss +2 -2
- package/app/styles/components/_subnav.scss +470 -470
- package/app/styles/design-tokens/_new-colors.scss +29 -12
- package/app/styles/dropdowns/_basic-dropdown.scss +6 -0
- package/app/styles/form-elements/_input-wrap.scss +138 -0
- package/app/styles/form-elements/_inputs.scss +230 -61
- package/app/styles/grids/_grid-layout.scss +13 -14
- package/app/styles/interface-elements/_side-panel.scss +1 -1
- package/app/styles/layout/_editor.scss +6 -0
- package/app/styles/menus/_sd-sidebar-menu.scss +1 -1
- package/app/styles/primereact/_pr-datepicker.scss +16 -2
- package/app/styles/primereact/_pr-dialog.scss +9 -0
- package/app/styles/primereact/_pr-menu.scss +6 -5
- package/app/styles/variables/_colors.scss +47 -47
- package/app/template/search-handler.html +2 -2
- package/app-typescript/components/ContentDivider.tsx +3 -0
- package/app-typescript/components/DatePicker.tsx +8 -9
- package/app-typescript/components/Dropdown.tsx +127 -82
- package/app-typescript/components/DurationInput.tsx +39 -14
- package/app-typescript/components/Form/FormLabel.tsx +8 -1
- package/app-typescript/components/Form/InputBase.tsx +12 -2
- package/app-typescript/components/Input.tsx +4 -4
- package/app-typescript/components/Label.tsx +17 -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 +3 -1
- package/app-typescript/components/Layouts/CoreLayoutMain.tsx +10 -1
- package/app-typescript/components/Lists/ContentList.tsx +64 -30
- package/app-typescript/components/Lists/TableList.tsx +255 -53
- package/app-typescript/components/Menu.tsx +2 -2
- package/app-typescript/components/Modal.tsx +6 -2
- package/app-typescript/components/MultiSelect.tsx +1 -1
- package/app-typescript/components/NavButton.tsx +2 -1
- package/app-typescript/components/Navigation/SideBarMenu.tsx +30 -4
- package/app-typescript/components/SearchBar.tsx +11 -3
- package/app-typescript/components/Spacer.tsx +87 -0
- package/app-typescript/components/TimePicker.tsx +2 -13
- package/app-typescript/components/TreeSelect.tsx +286 -180
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.css +110 -71
- package/dist/examples.bundle.js +23848 -21661
- package/dist/playgrounds/react-playgrounds/CoreLayout.tsx +505 -2
- 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 +17 -19
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/dist/react/ContentDivider.tsx +22 -18
- package/dist/react/ContentList.tsx +188 -12
- package/dist/react/DatePicker.tsx +50 -2
- package/dist/react/Dropdowns.tsx +580 -48
- package/dist/react/DurationInput.tsx +7 -3
- package/dist/react/Inputs.tsx +1 -7
- package/dist/react/Modal.tsx +154 -22
- package/dist/react/MultiSelect.tsx +5 -5
- package/dist/react/NavButtons.tsx +31 -1
- package/dist/react/TableList.tsx +52 -139
- package/dist/react/Togglebox.tsx +1 -1
- package/dist/react/TreeSelect.tsx +167 -176
- package/dist/sd_icons.eot +0 -0
- package/dist/sd_icons.svg +1 -0
- package/dist/sd_icons.ttf +0 -0
- package/dist/sd_icons.woff +0 -0
- package/dist/superdesk-ui.bundle.css +1100 -407
- package/dist/superdesk-ui.bundle.js +6591 -4035
- 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 +505 -2
- 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 +17 -19
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +22 -23
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +226 -25
- package/examples/pages/react/ContentDivider.tsx +22 -18
- package/examples/pages/react/ContentList.tsx +188 -12
- package/examples/pages/react/DatePicker.tsx +50 -2
- package/examples/pages/react/Dropdowns.tsx +580 -48
- package/examples/pages/react/DurationInput.tsx +7 -3
- package/examples/pages/react/Inputs.tsx +1 -7
- package/examples/pages/react/Modal.tsx +154 -22
- package/examples/pages/react/MultiSelect.tsx +5 -5
- package/examples/pages/react/NavButtons.tsx +31 -1
- package/examples/pages/react/TableList.tsx +52 -139
- package/examples/pages/react/Togglebox.tsx +1 -1
- package/examples/pages/react/TreeSelect.tsx +167 -176
- package/package.json +3 -5
- package/react/components/ContentDivider.d.ts +1 -0
- package/react/components/ContentDivider.js +2 -0
- package/react/components/DatePicker.d.ts +2 -2
- package/react/components/DatePicker.js +3 -3
- package/react/components/Dropdown.d.ts +6 -5
- package/react/components/Dropdown.js +57 -30
- package/react/components/DurationInput.d.ts +1 -1
- package/react/components/DurationInput.js +46 -17
- package/react/components/Form/FormLabel.d.ts +4 -1
- package/react/components/Form/FormLabel.js +9 -3
- package/react/components/Form/InputBase.d.ts +0 -1
- package/react/components/Form/InputBase.js +15 -1
- package/react/components/Input.d.ts +3 -3
- package/react/components/Input.js +2 -1
- package/react/components/Label.d.ts +1 -0
- package/react/components/Label.js +17 -2
- 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 +2 -0
- package/react/components/Layouts/CoreLayout.js +1 -1
- package/react/components/Layouts/CoreLayoutMain.d.ts +2 -0
- package/react/components/Layouts/CoreLayoutMain.js +8 -1
- package/react/components/Lists/ContentList.d.ts +6 -0
- package/react/components/Lists/ContentList.js +42 -16
- package/react/components/Lists/TableList.d.ts +30 -8
- package/react/components/Lists/TableList.js +127 -24
- package/react/components/Menu.js +1 -1
- package/react/components/Modal.d.ts +2 -0
- package/react/components/Modal.js +3 -3
- 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/SideBarMenu.d.ts +6 -0
- package/react/components/Navigation/SideBarMenu.js +19 -2
- package/react/components/SearchBar.d.ts +1 -1
- package/react/components/SearchBar.js +15 -7
- package/react/components/TimePicker.d.ts +1 -5
- package/react/components/TimePicker.js +3 -7
- package/react/components/TreeSelect.d.ts +12 -5
- package/react/components/TreeSelect.js +189 -116
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -0
- package/patches/@superdesk+primereact+5.0.2-4.patch +0 -66
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as Markup from '../../js/react';
|
3
|
-
import { BoxedList, BoxedListItem, BoxedListContentRow, Prop, PropsList, Icon, IconButton, AvatarWrapper, AvatarContentText, ButtonGroup, Button, Heading, Text, Label, Container, IconLabel, SelectGrid, Dropdown } from '../../../app-typescript';
|
3
|
+
import { BoxedList, BoxedListItem, BoxedListContentRow, Prop, PropsList, Icon, IconButton, AvatarWrapper, AvatarContentText, ButtonGroup, Button, Heading, Text, Label, Container, IconLabel, SelectGrid, Dropdown, Tooltip } from '../../../app-typescript';
|
4
4
|
import { TableList, TableListItem } from '../../../app-typescript/components/Lists/TableList';
|
5
5
|
|
6
6
|
interface IState {
|
@@ -14,7 +14,7 @@ interface IProps {
|
|
14
14
|
export default class TableListDoc extends React.Component<IProps, IState> {
|
15
15
|
constructor(props: IState) {
|
16
16
|
super(props);
|
17
|
-
this.state = {
|
17
|
+
this.state = {
|
18
18
|
array: [
|
19
19
|
{
|
20
20
|
start: <>
|
@@ -23,10 +23,14 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
23
23
|
</>,
|
24
24
|
center: <span>Item 1</span>,
|
25
25
|
end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
|
26
|
-
action: <
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
action: <Dropdown append={true} items={[
|
27
|
+
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => 1 },
|
28
|
+
{ label: <Label style='translucent' text='prlg' />, onSelect: () => 1 },
|
29
|
+
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => 1 },
|
30
|
+
]}><IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={(e) => e.stopPropagation()} /></Dropdown>,
|
31
|
+
onClick: () => console.log('single'),
|
32
|
+
onDoubleClick: () => console.log('double'),
|
33
|
+
hexColor: '#ccff00'
|
30
34
|
},
|
31
35
|
{
|
32
36
|
start: <>
|
@@ -36,9 +40,8 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
36
40
|
center: <span>Item 2</span>,
|
37
41
|
end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
|
38
42
|
action: <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={() => false} />,
|
39
|
-
onClick: () =>
|
40
|
-
|
41
|
-
}
|
43
|
+
onClick: () => console.log('single'),
|
44
|
+
onDoubleClick: () => console.log('double'),
|
42
45
|
},
|
43
46
|
{
|
44
47
|
start: <>
|
@@ -48,9 +51,9 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
48
51
|
center: <span>Item 3</span>,
|
49
52
|
end: <IconLabel style='translucent' text='Label success' type='success' icon='time' />,
|
50
53
|
action: <IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={() => false} />,
|
51
|
-
onClick: () =>
|
52
|
-
|
53
|
-
|
54
|
+
onClick: () => console.log('single'),
|
55
|
+
onDoubleClick: () => console.log('double'),
|
56
|
+
hexColor: '#ff9808'
|
54
57
|
},
|
55
58
|
]
|
56
59
|
}
|
@@ -67,148 +70,58 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
67
70
|
dragAndDrop
|
68
71
|
addItem
|
69
72
|
array={this.state.array}
|
70
|
-
itemsDropdown={[
|
71
|
-
{ label: '
|
72
|
-
{ label: '
|
73
|
-
{ label: '
|
73
|
+
itemsDropdown={(index) => [
|
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 },
|
74
77
|
]} />
|
75
78
|
`}
|
76
79
|
</Markup.ReactMarkupCodePreview>
|
77
80
|
|
78
|
-
<p className="docs-page__paragraph">
|
79
|
-
|
81
|
+
<p className="docs-page__paragraph">Simple list without drag and drop functionality and without functionality for adding item in list:</p>
|
80
82
|
<Markup.ReactMarkup>
|
81
83
|
<Markup.ReactMarkupPreview>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
start={
|
86
|
-
<>
|
87
|
-
<Label style='translucent' text='aacc' />
|
88
|
-
<Label style='translucent' type='primary' text='prlg' />
|
89
|
-
</>
|
90
|
-
}
|
91
|
-
center={
|
92
|
-
<span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
93
|
-
}
|
94
|
-
end={
|
95
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
96
|
-
}
|
97
|
-
action={
|
98
|
-
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={() => false} />
|
99
|
-
} />
|
100
|
-
<TableListItem
|
101
|
-
start={
|
102
|
-
<>
|
103
|
-
<Label style='hollow' text='aacc' />
|
104
|
-
<Label style='filled' type='primary' text='prlg' />
|
105
|
-
</>
|
106
|
-
}
|
107
|
-
center={
|
108
|
-
<span>Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
109
|
-
}
|
110
|
-
end={
|
111
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
112
|
-
} />
|
113
|
-
<TableListItem
|
114
|
-
start={
|
115
|
-
<>
|
116
|
-
<Label style='translucent' text='aacc' />
|
117
|
-
<Label style='translucent' type='primary' text='prlg' />
|
118
|
-
</>
|
119
|
-
}
|
120
|
-
center={
|
121
|
-
<span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
122
|
-
}
|
123
|
-
end={
|
124
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
125
|
-
}
|
126
|
-
action={
|
127
|
-
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={() => false} />
|
128
|
-
} />
|
129
|
-
</TableList>
|
130
|
-
|
84
|
+
<TableList
|
85
|
+
array={this.state.array}
|
86
|
+
/>
|
131
87
|
</Markup.ReactMarkupPreview>
|
132
88
|
<Markup.ReactMarkupCode>{`
|
133
|
-
<TableList
|
134
|
-
|
135
|
-
|
136
|
-
<>
|
137
|
-
<Label style='translucent' text='aacc' />
|
138
|
-
<Label style='translucent' type='primary' text='prlg' />
|
139
|
-
</>
|
140
|
-
}
|
141
|
-
center={
|
142
|
-
<span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
143
|
-
}
|
144
|
-
end={
|
145
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
146
|
-
}
|
147
|
-
action={
|
148
|
-
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
149
|
-
} />
|
150
|
-
<TableListItem
|
151
|
-
start={
|
152
|
-
<>
|
153
|
-
<Label style='hollow' text='aacc' />
|
154
|
-
<Label style='filled' type='primary' text='prlg' />
|
155
|
-
</>
|
156
|
-
}
|
157
|
-
center={
|
158
|
-
<span>Nullam id dolor id nibh ultricies vehicula ut id elit.</span>
|
159
|
-
}
|
160
|
-
end={
|
161
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
162
|
-
} />
|
163
|
-
<TableListItem
|
164
|
-
start={
|
165
|
-
<>
|
166
|
-
<Label style='translucent' text='aacc' />
|
167
|
-
<Label style='translucent' type='primary' text='prlg' />
|
168
|
-
</>
|
169
|
-
}
|
170
|
-
center={
|
171
|
-
<span>Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.</span>
|
172
|
-
}
|
173
|
-
end={
|
174
|
-
<IconLabel style='translucent' text='Label success' type='success' icon='time' />
|
175
|
-
}
|
176
|
-
action={
|
177
|
-
<IconButton icon='dots-vertical' size='small' ariaValue='More actions' onClick={()=> false} />
|
178
|
-
} />
|
179
|
-
</TableList>
|
89
|
+
<TableList
|
90
|
+
array={this.state.array}
|
91
|
+
/>
|
180
92
|
`}
|
181
93
|
</Markup.ReactMarkupCode>
|
182
94
|
</Markup.ReactMarkup>
|
95
|
+
|
183
96
|
<p className="docs-page__paragraph">With drag and drop functionality:</p>
|
184
97
|
<Markup.ReactMarkup>
|
185
98
|
<Markup.ReactMarkupPreview>
|
186
|
-
|
187
99
|
<TableList
|
188
100
|
dragAndDrop
|
101
|
+
append
|
189
102
|
addItem
|
190
103
|
array={this.state.array}
|
191
|
-
itemsDropdown={[
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
104
|
+
itemsDropdown={(index) => [
|
105
|
+
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => console.log(index) },
|
106
|
+
{ label: <Label style='translucent' text='prlg' />, onSelect: () => console.log(index) },
|
107
|
+
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => console.log(index) },
|
108
|
+
]
|
109
|
+
}
|
197
110
|
onDrag={(start, end) => console.log(start, end)}
|
198
111
|
/>
|
199
|
-
|
200
112
|
</Markup.ReactMarkupPreview>
|
201
113
|
<Markup.ReactMarkupCode>{`
|
202
114
|
<TableList
|
203
115
|
dragAndDrop
|
204
116
|
addItem
|
205
117
|
array={this.state.array}
|
206
|
-
itemsDropdown={[
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
118
|
+
itemsDropdown={(index) => [
|
119
|
+
{ label: <Label style='translucent' type='primary' text='aacc' />, onSelect: () => console.log(index) },
|
120
|
+
{ label: <Label style='translucent' text='prlg' />, onSelect: () => console.log(index) },
|
121
|
+
{ label: <Label style='translucent' type='primary' text='prlg' />, onSelect: () => console.log(index) },
|
122
|
+
]
|
123
|
+
}
|
124
|
+
onDrag={(start, end) => console.log(start, end)}
|
212
125
|
/>
|
213
126
|
`}
|
214
127
|
</Markup.ReactMarkupCode>
|
@@ -217,14 +130,16 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
217
130
|
<h3 className="docs-page__h3">Props</h3>
|
218
131
|
<p className="docs-page__paragraph">TableList</p>
|
219
132
|
<PropsList>
|
220
|
-
<Prop name='array' isRequired={
|
221
|
-
<Prop name='children' isRequired={false} type='React.ReactNode' default='false' description='Children of component.' />
|
133
|
+
<Prop name='array' isRequired={true} type='Array' default='false' description='Array of object.' />
|
222
134
|
<Prop name='addItem' isRequired={false} type='boolean' default='false' description='Functionality to add items to the list.' />
|
223
135
|
<Prop name='dragAndDrop' isRequired={false} type='boolean' default='false' description='Drag&Drop functionality.' />
|
224
|
-
<Prop name='itemsDropdown' isRequired={false} type='React.ReactNode | any' default='false' description='Dropdown for functionality to add items to the list.' />
|
225
136
|
<Prop name='className' isRequired={false} type='string' default='false' description='Add class on TableList container.' />
|
226
|
-
<Prop name='
|
137
|
+
<Prop name='showDragHandle' isRequired={false} type='string' default='always' description='"always" | "onHover" | "none".' />
|
138
|
+
<Prop name='readOnly' isRequired={false} type='boolean' default='false' description='When specified, component changes are not enabled.' />
|
139
|
+
<Prop name='append' isRequired={false} type='boolean' default='false' description='Set append to body on individual item while draging.' />
|
227
140
|
<Prop name='onDrag' isRequired={false} type='function' default='false' description='Returns start and end position of draggable item' />
|
141
|
+
<Prop name='onAddItem' isRequired={false} type='function' default='false' description='Returns index of draggable item.' />
|
142
|
+
<Prop name='itemsDropdown' isRequired={false} type='function' default='false' description='Dropdown for adding items in the list. Returns index of draggable item.' />
|
228
143
|
</PropsList>
|
229
144
|
<p className="docs-page__paragraph">array:</p>
|
230
145
|
<PropsList>
|
@@ -232,15 +147,13 @@ export default class TableListDoc extends React.Component<IProps, IState> {
|
|
232
147
|
<Prop name='center' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
233
148
|
<Prop name='end' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
234
149
|
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='Column of individual list items that is displayed on hover.' />
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
<Prop name='start' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
239
|
-
<Prop name='center' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
240
|
-
<Prop name='end' isRequired={false} type='React.ReactNode' default='false' description='Column of individual items of list.' />
|
241
|
-
<Prop name='action' isRequired={false} type='React.ReactNode' default='false' description='Column of individual list items that is displayed on hover.' />
|
150
|
+
<Prop name='hexColor' isRequired={false} type='string' default='false' description='Color of left border for item status.' />
|
151
|
+
<Prop name='locked' isRequired={false} type='function' default='false' description='If is true, the individual item of list change state and change style (border).' />
|
152
|
+
<Prop name='positionLocked' isRequired={false} type='function' default='false' description='Work in progress...' />
|
242
153
|
<Prop name='onClick' isRequired={false} type='function' default='false' description='onClick functionality.' />
|
154
|
+
<Prop name='onDoubleClick' isRequired={false} type='function' default='false' description='onDoubleClick functionality.' />
|
243
155
|
</PropsList>
|
156
|
+
|
244
157
|
|
245
158
|
</section>
|
246
159
|
)
|
@@ -40,6 +40,7 @@ const ToggleboxDocs = () => {
|
|
40
40
|
<Prop name='hideUsingCSS' isRequired={false} type='boolean' default='false' description='Usefull when working with forms. Content of togglebox will be hidden but remain rendered.' />
|
41
41
|
<Prop name='initiallyOpen' isRequired={false} type='boolean' default='false' description='Opens togglebox on initial render' />
|
42
42
|
<Prop name='className' isRequired={false} type='string' default='null' description='Style class of the component' />
|
43
|
+
<Prop name='margin' isRequired={false} type='none | small | normal | large' default='normal' description='Defines the bottom margin of the toggle box.' />
|
43
44
|
<Prop name='onOpen' isRequired={false} type='function' default='null' description='Callback on open event' />
|
44
45
|
<Prop name='onClose' isRequired={false} type='function' default='null' description='Callback on close event' />
|
45
46
|
</PropsList>
|
@@ -47,5 +48,4 @@ const ToggleboxDocs = () => {
|
|
47
48
|
)
|
48
49
|
}
|
49
50
|
|
50
|
-
|
51
51
|
export default ToggleboxDocs;
|