superdesk-ui-framework 3.0.38 → 3.0.40
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/.eslintignore +1 -0
- package/app/styles/_drag-handle.scss +24 -0
- package/app/styles/_helpers.scss +1 -1
- package/app/styles/_tables.scss +4 -4
- package/app/styles/_tabs-vertical.scss +8 -8
- package/app/styles/components/_card-item.scss +58 -46
- package/app/styles/components/_sd-grid-item.scss +5 -4
- package/app/styles/design-tokens/_new-colors.scss +12 -5
- package/app/styles/grids/_grid-layout.scss +2 -2
- package/app/styles/interface-elements/_side-panel.scss +0 -3
- package/app/styles/menus/_sd-content-navigation.scss +12 -9
- package/app-typescript/components/DragHandle.tsx +13 -0
- package/app-typescript/index.ts +1 -0
- package/dist/examples.bundle.css +20 -0
- package/dist/examples.bundle.js +478 -325
- package/dist/react/DragHandleDocs.tsx +26 -0
- package/dist/react/Index.tsx +6 -1
- package/dist/react/MultiSelect.tsx +2 -1
- package/dist/superdesk-ui.bundle.css +136 -85
- package/dist/superdesk-ui.bundle.js +174 -93
- package/dist/vendor.bundle.js +14 -14
- package/examples/pages/react/DragHandleDocs.tsx +26 -0
- package/examples/pages/react/Index.tsx +6 -1
- package/examples/pages/react/MultiSelect.tsx +2 -1
- package/globals.d.ts +4 -0
- package/package.json +1 -1
- package/react/components/DragHandle.d.ts +5 -0
- package/react/components/DragHandle.js +59 -0
- package/react/index.d.ts +1 -0
- package/react/index.js +3 -1
- package/tsconfig.json +1 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import {DragHandle} from '../../../app-typescript';
|
3
|
+
import * as Markup from '../../js/react';
|
4
|
+
|
5
|
+
export default class DragHandleDocs extends React.Component {
|
6
|
+
render() {
|
7
|
+
return (
|
8
|
+
<section className="docs-page__container">
|
9
|
+
<h2 className="docs-page__h2">Drag handle</h2>
|
10
|
+
<Markup.ReactMarkupCodePreview>{`
|
11
|
+
<DragHandle />
|
12
|
+
`}
|
13
|
+
</Markup.ReactMarkupCodePreview>
|
14
|
+
<Markup.ReactMarkup>
|
15
|
+
<Markup.ReactMarkupPreview>
|
16
|
+
<div className="docs-page__content-row">
|
17
|
+
<DragHandle />
|
18
|
+
</div>
|
19
|
+
</Markup.ReactMarkupPreview>
|
20
|
+
<Markup.ReactMarkupCode>{'<DragHandle />'}
|
21
|
+
</Markup.ReactMarkupCode>
|
22
|
+
</Markup.ReactMarkup>
|
23
|
+
</section>
|
24
|
+
);
|
25
|
+
}
|
26
|
+
}
|
package/dist/react/Index.tsx
CHANGED
@@ -55,7 +55,8 @@ import TextDoc from "./Text";
|
|
55
55
|
import ContainerDoc from './Container';
|
56
56
|
import DropZoneDoc from './DropZone';
|
57
57
|
import CreateButtonDoc from './CreateButton';
|
58
|
-
import TagInputDocs from './TagInputDocs'
|
58
|
+
import TagInputDocs from './TagInputDocs';
|
59
|
+
import DragHandleDocs from './DragHandleDocs';
|
59
60
|
|
60
61
|
import * as Playgrounds from '../playgrounds/react-playgrounds/Index';
|
61
62
|
import { SelectWithTemplateDocs } from './SelectWithTemplate';
|
@@ -122,6 +123,9 @@ const pages = {
|
|
122
123
|
},
|
123
124
|
'menu': {
|
124
125
|
name: 'Menu',
|
126
|
+
},
|
127
|
+
"drag-handle": {
|
128
|
+
name: 'Drag handle'
|
125
129
|
}
|
126
130
|
}
|
127
131
|
},
|
@@ -366,6 +370,7 @@ class ReactDoc extends React.Component<IProps, IState> {
|
|
366
370
|
<Route path="/react/sub-navigation" component={SubNavDoc} />
|
367
371
|
<Route path="/react/dropdowns" component={DropdownDoc} />
|
368
372
|
<Route path="/react/toast" component={ToastsDoc} />
|
373
|
+
<Route path="/react/drag-handle" component={DragHandleDocs} />
|
369
374
|
<Route path="/react/tag-input" component={TagInputDocs} />
|
370
375
|
<Route path="/react/empty-states" component={EmptyStateDoc} />
|
371
376
|
<Route path="/react/grid-list" component={GridListDoc} />
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
2
2
|
import * as Markup from '../../js/react';
|
3
3
|
import { PropsList, Prop } from '../../../app-typescript';
|
4
4
|
import { MultiSelect } from '../../../app-typescript';
|
5
|
+
import { Label } from '../../../app-typescript';
|
5
6
|
|
6
7
|
interface IColor {
|
7
8
|
name: string;
|
@@ -115,7 +116,7 @@ export class MultiselectDocs extends React.Component<{}, IState> {
|
|
115
116
|
return (
|
116
117
|
<div style={{display: 'flex', alignItems: 'center'}}>
|
117
118
|
<div style={{width: 10, height: 10, marginInlineEnd: 10, backgroundColor: option.colorCode}} />
|
118
|
-
<
|
119
|
+
<span>{option.name}</span>
|
119
120
|
</div>
|
120
121
|
);
|
121
122
|
}
|