superdesk-ui-framework 3.0.1-beta.1 → 3.0.1-beta.2
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_big-icons.eot +0 -0
- package/app/fonts/sd_big-icons.svg +55 -53
- package/app/fonts/sd_big-icons.ttf +0 -0
- package/app/fonts/sd_big-icons.woff +0 -0
- 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/img/dots.svg +3 -0
- package/app/styles/_accessibility.scss +3 -3
- package/app/styles/_big-icon-font.scss +60 -23
- package/app/styles/_boxed-list.scss +26 -3
- package/app/styles/_buttons.scss +4 -0
- package/app/styles/_helpers.scss +4 -3
- package/app/styles/_icon-font.scss +341 -307
- package/app/styles/_icon-labels.scss +66 -10
- package/app/styles/_table-list.scss +244 -0
- package/app/styles/app.scss +1 -0
- package/app/styles/components/_list-item.scss +24 -20
- package/app/styles/components/_sd-dropzone.scss +52 -16
- package/app/styles/components/_subnav.scss +87 -80
- package/app/styles/design-tokens/_design-tokens-general.scss +7 -0
- package/app/styles/design-tokens/_new-colors.scss +4 -2
- package/app/styles/form-elements/_inputs.scss +4 -0
- package/app/styles/grids/_grid-layout.scss +21 -7
- package/app/styles/layout/_container.scss +3 -0
- package/app/styles/layout/_editor.scss +108 -16
- package/app/styles/menus/_sd-sidebar-menu.scss +6 -0
- package/app/styles/primereact/_pr-dialog.scss +39 -7
- package/app-typescript/components/CreateButton.tsx +38 -0
- package/app-typescript/components/DropZone.tsx +4 -4
- package/app-typescript/components/Icon.tsx +3 -1
- package/app-typescript/components/IconLabel.tsx +8 -1
- package/app-typescript/components/Input.tsx +2 -0
- package/app-typescript/components/Layouts/AuthoringContainer.tsx +27 -0
- package/app-typescript/components/Layouts/AuthoringInnerHeader.tsx +2 -0
- package/app-typescript/components/Layouts/AuthoringMain.tsx +11 -7
- package/app-typescript/components/Layouts/AuthoringMainToolBar.tsx +7 -1
- package/app-typescript/components/Layouts/Container.tsx +1 -1
- package/app-typescript/components/Layouts/ContentSplitter.tsx +23 -0
- package/app-typescript/components/Layouts/Layout.tsx +33 -0
- package/app-typescript/components/Layouts/LayoutContainer.tsx +1 -4
- package/app-typescript/components/Layouts/MainPanel.tsx +10 -5
- package/app-typescript/components/Layouts/OverlayPanel.tsx +19 -0
- package/app-typescript/components/Layouts/Panel.tsx +1 -0
- package/app-typescript/components/Layouts/index.tsx +8 -2
- package/app-typescript/components/Lists/BoxedList.tsx +6 -2
- package/app-typescript/components/Lists/ContentList.tsx +100 -0
- package/app-typescript/components/Lists/TableList.tsx +208 -0
- package/app-typescript/components/Modal.tsx +27 -17
- package/app-typescript/components/Navigation/SideBarTabs.tsx +10 -0
- package/app-typescript/components/SearchBar.tsx +79 -0
- package/app-typescript/components/Select.tsx +2 -0
- package/app-typescript/components/SidebarMenu.tsx +68 -0
- package/app-typescript/components/Spinner.tsx +1 -1
- package/app-typescript/components/SwitchGroup.tsx +2 -1
- package/app-typescript/index.ts +3 -0
- package/dist/dots.svg +3 -0
- package/dist/examples.bundle.css +7871 -379
- package/dist/examples.bundle.js +29461 -15740
- package/dist/playgrounds/react-playgrounds/EditorTest.tsx +9 -4
- package/dist/playgrounds/react-playgrounds/Index.tsx +3 -1
- package/dist/playgrounds/react-playgrounds/PersonalProfile.tsx +13 -0
- package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/dist/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +190 -182
- package/dist/playgrounds/react-playgrounds/UiPlayground.tsx +4 -0
- package/dist/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/dist/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/dist/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/dist/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/dist/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/dist/react/Container.tsx +1 -1
- package/dist/react/ContentList.tsx +280 -0
- package/dist/react/CreateButton.tsx +71 -0
- package/dist/react/DropZone.tsx +14 -6
- package/dist/react/IconButtons.tsx +6 -6
- package/dist/react/IconLabels.tsx +24 -2
- package/dist/react/Index.tsx +15 -0
- package/dist/react/Inputs.tsx +32 -3
- package/dist/react/Modal.tsx +1 -0
- package/dist/react/TableList.tsx +268 -0
- package/dist/sd_big-icons.eot +0 -0
- package/dist/sd_big-icons.svg +55 -53
- package/dist/sd_big-icons.ttf +0 -0
- package/dist/sd_big-icons.woff +0 -0
- 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 +44994 -24931
- package/dist/superdesk-ui.bundle.js +2437 -1949
- package/dist/vendor.bundle.js +27 -27
- package/examples/css/docs-page.css +2 -3
- package/examples/index.js +8 -0
- package/examples/pages/playgrounds/react-playgrounds/EditorTest.tsx +9 -4
- package/examples/pages/playgrounds/react-playgrounds/Index.tsx +3 -1
- package/examples/pages/playgrounds/react-playgrounds/PersonalProfile.tsx +13 -0
- package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +466 -0
- package/examples/pages/playgrounds/react-playgrounds/Rundowns.tsx +1002 -0
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +190 -182
- package/examples/pages/playgrounds/react-playgrounds/UiPlayground.tsx +4 -0
- package/examples/pages/playgrounds/react-playgrounds/components/AuthoringContainer.tsx +26 -0
- package/examples/pages/playgrounds/react-playgrounds/components/ContentSplitter.tsx +22 -0
- package/examples/pages/playgrounds/react-playgrounds/components/Index.tsx +6 -1
- package/examples/pages/playgrounds/react-playgrounds/components/MainPanel.tsx +11 -1
- package/examples/pages/playgrounds/react-playgrounds/components/SearchBar.tsx +51 -9
- package/examples/pages/react/Container.tsx +1 -1
- package/examples/pages/react/ContentList.tsx +280 -0
- package/examples/pages/react/CreateButton.tsx +71 -0
- package/examples/pages/react/DropZone.tsx +14 -6
- package/examples/pages/react/IconButtons.tsx +6 -6
- package/examples/pages/react/IconLabels.tsx +24 -2
- package/examples/pages/react/Index.tsx +15 -0
- package/examples/pages/react/Inputs.tsx +32 -3
- package/examples/pages/react/Modal.tsx +1 -0
- package/examples/pages/react/TableList.tsx +268 -0
- package/package.json +2 -1
- package/react/components/CreateButton.d.ts +17 -0
- package/react/components/CreateButton.js +66 -0
- package/react/components/DropZone.d.ts +2 -2
- package/react/components/DropZone.js +2 -2
- package/react/components/Icon.d.ts +1 -0
- package/react/components/Icon.js +2 -1
- package/react/components/IconLabel.d.ts +2 -0
- package/react/components/IconLabel.js +6 -3
- package/react/components/Input.d.ts +1 -0
- package/react/components/Input.js +1 -0
- package/react/components/Layouts/AuthoringContainer.d.ts +11 -0
- package/react/components/Layouts/AuthoringContainer.js +58 -0
- package/react/components/Layouts/AuthoringInnerHeader.d.ts +1 -0
- package/react/components/Layouts/AuthoringInnerHeader.js +6 -3
- package/react/components/Layouts/AuthoringMain.d.ts +3 -1
- package/react/components/Layouts/AuthoringMain.js +2 -2
- package/react/components/Layouts/AuthoringMainToolBar.d.ts +1 -0
- package/react/components/Layouts/AuthoringMainToolBar.js +8 -1
- package/react/components/Layouts/Container.d.ts +1 -1
- package/react/components/Layouts/ContentSplitter.d.ts +10 -0
- package/react/components/Layouts/ContentSplitter.js +56 -0
- package/react/components/Layouts/Layout.d.ts +8 -0
- package/react/components/Layouts/Layout.js +35 -0
- package/react/components/Layouts/LayoutContainer.js +1 -1
- package/react/components/Layouts/MainPanel.d.ts +1 -0
- package/react/components/Layouts/MainPanel.js +11 -4
- package/react/components/Layouts/OverlayPanel.d.ts +8 -0
- package/react/components/Layouts/OverlayPanel.js +49 -0
- package/react/components/Layouts/Panel.d.ts +1 -0
- package/react/components/Layouts/index.d.ts +6 -2
- package/react/components/Layouts/index.js +12 -4
- package/react/components/Lists/BoxedList.d.ts +2 -0
- package/react/components/Lists/BoxedList.js +6 -4
- package/react/components/Modal.d.ts +2 -0
- package/react/components/Modal.js +11 -3
- package/react/components/Navigation/SideBarTabs.d.ts +1 -0
- package/react/components/Navigation/SideBarTabs.js +4 -0
- package/react/components/SearchBar.d.ts +23 -0
- package/react/components/SearchBar.js +87 -0
- package/react/components/Select.d.ts +1 -0
- package/react/components/Select.js +1 -0
- package/react/components/Spinner.js +1 -1
- package/react/components/SwitchGroup.d.ts +1 -0
- package/react/components/SwitchGroup.js +1 -1
- package/react/index.d.ts +2 -0
- package/react/index.js +5 -0
- package/sd_icons.eot +0 -0
- package/sd_icons.svg +189 -0
- package/sd_icons.ttf +0 -0
- package/sd_icons.woff +0 -0
@@ -277,94 +277,101 @@ $navbutton-focus-box-shadow: inset 0 0 0 1px var(--sd-colour-interactive--alpha-
|
|
277
277
|
}
|
278
278
|
}
|
279
279
|
}
|
280
|
+
.sd-create-btn {
|
281
|
+
background-color: var(--color-dropdown-menu-Bg);
|
282
|
+
position: relative;
|
283
|
+
box-shadow: 0 8px 0 0px var(--color-dropdown-menu-Bg), -2px -1px 8px -2px rgba(0, 0, 0, 0.24), 3px -1px 8px -2px rgba(0, 0, 0, 0.24);
|
284
|
+
border-color: transparent !important;
|
285
|
+
z-index: 1001;
|
286
|
+
}
|
280
287
|
}
|
281
288
|
|
282
289
|
.navbtn {
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
border-inline-width: 0 1px;
|
327
|
-
}
|
328
|
-
&.navbtn--blue {
|
329
|
-
background: $sd-colour-interactive;
|
330
|
-
border-color: var(--sd-colour-interactive--lighten-10);
|
331
|
-
color: $white;
|
332
|
-
&.disabled {
|
333
|
-
background: var(--sd-colour-interactive--lighten-30);
|
334
|
-
}
|
335
|
-
}
|
336
|
-
&.navbtn--text-only {
|
337
|
-
width: auto;
|
338
|
-
line-height: $subnav-height;
|
339
|
-
padding: 0 20px;
|
290
|
+
position: relative;
|
291
|
+
display: inline-flex;
|
292
|
+
flex-direction: row;
|
293
|
+
align-items: center;
|
294
|
+
justify-content: center;
|
295
|
+
height: $subnav-height;
|
296
|
+
width: 4.8rem;
|
297
|
+
padding: 0;
|
298
|
+
background: transparent;
|
299
|
+
color: $sd-text;
|
300
|
+
text-align: center;
|
301
|
+
text-decoration: none;
|
302
|
+
border: 0px solid transparent;
|
303
|
+
border-color: $navbutton-border-color;
|
304
|
+
border-inline-width: 1px 0;
|
305
|
+
cursor:pointer;
|
306
|
+
background: transparent;
|
307
|
+
transition: background-color 0.2s ease-out, color 0.1s ease-out;
|
308
|
+
i {
|
309
|
+
opacity: 0.75;
|
310
|
+
vertical-align: baseline !important;
|
311
|
+
transition: opacity 0.2s ease-out;
|
312
|
+
}
|
313
|
+
[class^="big-icon--"],
|
314
|
+
[class*=" big-icon--"] {
|
315
|
+
line-height: 1;
|
316
|
+
color: $sd-text;
|
317
|
+
display: block;
|
318
|
+
}
|
319
|
+
.big-icon--send-to {
|
320
|
+
margin-left: 0.3rem;
|
321
|
+
}
|
322
|
+
[class^="icon-"],
|
323
|
+
[class*=" icon-"] {
|
324
|
+
color: $sd-text;
|
325
|
+
}
|
326
|
+
&:hover {
|
327
|
+
background: var(--color-navbutton-bg-hover);
|
328
|
+
> i {
|
329
|
+
opacity: 1;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
&.navbtn--left {
|
340
333
|
border-inline-width: 0 1px;
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
border-
|
345
|
-
}
|
346
|
-
&.navbtn--highlighted {
|
347
|
-
background-color: $purple !important;
|
348
|
-
transition: all 0.3s;
|
349
|
-
padding: 0 0 0 9px;
|
334
|
+
}
|
335
|
+
&.navbtn--blue {
|
336
|
+
background: $sd-colour-interactive;
|
337
|
+
border-color: var(--sd-colour-interactive--lighten-10);
|
350
338
|
color: $white;
|
351
|
-
|
352
|
-
|
353
|
-
}
|
354
|
-
}
|
355
|
-
&.navbtn--darker {
|
356
|
-
background-color: rgba(0, 0, 0, 0.05);
|
357
|
-
}
|
358
|
-
&.navbtn--active {
|
359
|
-
background-color: $sd-colour-interactive;
|
360
|
-
> i {
|
361
|
-
opacity: 1;
|
362
|
-
color: $white;
|
339
|
+
&.disabled {
|
340
|
+
background: var(--sd-colour-interactive--lighten-30);
|
363
341
|
}
|
342
|
+
}
|
343
|
+
&.navbtn--text-only {
|
344
|
+
width: auto;
|
345
|
+
line-height: $subnav-height;
|
346
|
+
padding: 0 20px;
|
347
|
+
border-inline-width: 0 1px;
|
348
|
+
font-size: 1.5rem;
|
349
|
+
}
|
350
|
+
&.navbtn--border-r {
|
351
|
+
border-inline-end: 1px !important;
|
352
|
+
}
|
353
|
+
&.navbtn--highlighted {
|
354
|
+
background-color: $purple !important;
|
355
|
+
transition: all 0.3s;
|
356
|
+
padding: 0 0 0 9px;
|
357
|
+
color: $white;
|
358
|
+
&:hover {
|
359
|
+
background-color: darken($purple, 10%);
|
364
360
|
}
|
365
|
-
|
366
|
-
|
361
|
+
}
|
362
|
+
&.navbtn--darker {
|
363
|
+
background-color: rgba(0, 0, 0, 0.05);
|
364
|
+
}
|
365
|
+
&.navbtn--active {
|
366
|
+
background-color: $sd-colour-interactive;
|
367
|
+
> i {
|
368
|
+
opacity: 1;
|
369
|
+
color: $white;
|
367
370
|
}
|
371
|
+
}
|
372
|
+
&.navbtn--publish {
|
373
|
+
background-color: rgba(0, 0, 0, 0.05);
|
374
|
+
}
|
368
375
|
}
|
369
376
|
|
370
377
|
.dropdown.open {
|
@@ -2,6 +2,13 @@
|
|
2
2
|
// ====================================================
|
3
3
|
:root {
|
4
4
|
// GENERAL
|
5
|
+
--gap--x-small: 0.4rem; // 4px
|
6
|
+
--gap--small: 0.8rem; // 8px
|
7
|
+
--gap--medium: 1.6rem; // 16px
|
8
|
+
--gap--large: 2.4rem; // 24px;
|
9
|
+
--gap--x-large: 3.2rem; // 32px;
|
10
|
+
--gap--xx-large: 4rem; // 40px;
|
11
|
+
--gap--auto: auto;
|
5
12
|
|
6
13
|
// BORDER RADIUS
|
7
14
|
--b-radius--x-small: 2px;
|
@@ -310,6 +310,7 @@
|
|
310
310
|
--sd-shadow__subnav: 0 1px 0px var(--sd-colour--shadow-line), 0 1px 3px hsla(0, 0%, 0%, 0.07), 0 1px 0 0 hsla(0, 0%, 0%, 0.1);
|
311
311
|
|
312
312
|
--sd-shadow__item--selected: 0 0 0 2px var(--sd-colour-interactive), 0 0 0 5px var(--sd-colour-interactive--alpha-30);
|
313
|
+
--sd-shadow__item--selected-thin: 0 0 0 1px var(--sd-colour-interactive), inset 0 0 0 2px var(--sd-colour-interactive--alpha-30);
|
313
314
|
|
314
315
|
// Webkit scrollbar colors
|
315
316
|
--sd-colour__webkit-scrollbar--hover: hsla(214, 13%, 50%, 0.24);
|
@@ -454,6 +455,7 @@
|
|
454
455
|
--sd-shadow__subnav: 0 1px 0px var(--sd-colour--shadow-line), 0 1px 3px hsla(0, 0%, 0%, 0.14), 0 2px 0 0 hsla(0, 0%, 0%, 0.12);
|
455
456
|
|
456
457
|
--sd-shadow__item--selected: 0 0 0 2px var(--sd-colour-interactive), 0 0 0 5px var(--sd-colour-interactive--alpha-30);
|
458
|
+
--sd-shadow__item--selected-thin: 0 0 0 1px var(--sd-colour-interactive), inset 0 0 0 2px var(--sd-colour-interactive--alpha-30);
|
457
459
|
|
458
460
|
// Webkit scrollbar colors
|
459
461
|
--sd-colour__webkit-scrollbar--hover: hsla(214, 13%, 30%, 0.24);
|
@@ -556,7 +558,7 @@
|
|
556
558
|
--color-text-light: hsla(214, 13%, 30%, 0.75);
|
557
559
|
--color-text-lighter: hsla(214, 13%, 30%, 0.55);
|
558
560
|
--color-icon-default: hsla(214, 13%, 30%, 1);
|
559
|
-
--sd-slugline-color: hsla(197, 100%,
|
561
|
+
--sd-slugline-color: hsla(197, 100%, 15%, 1) !important;
|
560
562
|
--sd-time-schedule-color: hsla(268, 100%, 25%, 1);
|
561
563
|
--sd-navy-color: hsla(240, 100%, 25%, 1);
|
562
564
|
|
@@ -572,7 +574,7 @@
|
|
572
574
|
--color-checkbox-border-hover: hsla(0, 0%, 0%, 0.4);
|
573
575
|
|
574
576
|
--color-selected-bg: hsla(196, 35%, 94%, 1);
|
575
|
-
--color-selected-bg--hover:
|
577
|
+
--color-selected-bg--hover: hsla(196, 35%, 93%, 1);
|
576
578
|
|
577
579
|
--color-bg-00: hsla(0, 0%, 100%, 1);
|
578
580
|
--color-bg-50: hsla(0, 0%, 97%, 1);
|
@@ -671,6 +671,9 @@ $planningEditor-width: 53rem;
|
|
671
671
|
.side-panel__container {
|
672
672
|
width: var(--width__container--medium);
|
673
673
|
overflow-y: auto;
|
674
|
+
&.side-panel__container--xx-large{
|
675
|
+
width: var(--width__container--xx-large);
|
676
|
+
}
|
674
677
|
.side-panel {
|
675
678
|
opacity: 1;
|
676
679
|
}
|
@@ -715,17 +718,28 @@ $planningEditor-width: 53rem;
|
|
715
718
|
overflow: auto;
|
716
719
|
}
|
717
720
|
|
718
|
-
.
|
719
|
-
|
721
|
+
.content-splitter--visible {
|
722
|
+
&.sd-content-wrapper__content-splitter {
|
723
|
+
display: block;
|
724
|
+
grid-column: contentSplitter;
|
725
|
+
// this styling might be moved to an inner element
|
726
|
+
width: 3px;
|
727
|
+
background-color: hsl(214, 13%, 40%);
|
728
|
+
cursor: col-resize;
|
729
|
+
}
|
720
730
|
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
cursor: col-resize;
|
731
|
+
}
|
732
|
+
.sd-content-wrapper__content-splitter {
|
733
|
+
display: none;
|
725
734
|
}
|
726
735
|
.sd-content-wrapper__authoring-content-area {
|
727
736
|
grid-column: authoringArea;
|
728
737
|
display: grid;
|
738
|
+
display: grid;
|
739
|
+
//border-inline-start: 2px solid hsla(214, 13%, 45%, 1);
|
740
|
+
grid-template-rows: 1fr;
|
741
|
+
grid-auto-columns: auto;
|
742
|
+
overflow-y: auto;
|
729
743
|
}
|
730
744
|
|
731
745
|
// main page structure - top bar, slide-in main navigation, content area and footer (open items bar).
|
@@ -737,7 +751,7 @@ $planningEditor-width: 53rem;
|
|
737
751
|
grid-gap: 0;
|
738
752
|
height: 100vh;
|
739
753
|
position: relative;
|
740
|
-
background-color: aquamarine;
|
754
|
+
//background-color: aquamarine;
|
741
755
|
|
742
756
|
.sd-main-menu {
|
743
757
|
grid-column: slideInNavigation;
|
@@ -134,19 +134,45 @@
|
|
134
134
|
justify-content: space-between;
|
135
135
|
align-items: center;
|
136
136
|
box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.2);
|
137
|
+
&--custom {
|
138
|
+
height: auto;
|
139
|
+
flex-direction: column;
|
140
|
+
align-items: stretch;
|
141
|
+
padding: 0;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
.sd-editor-content__save-bar {
|
145
|
+
height: $nav-height;
|
146
|
+
position: relative;
|
147
|
+
padding: 4px 20px;
|
148
|
+
//background-color: var(--sd-colour-panel-bg--000);
|
149
|
+
background-color: var(--sd-colour-interactive);
|
150
|
+
z-index: 3;
|
151
|
+
transition: all 0.5s;
|
152
|
+
display: flex;
|
153
|
+
justify-content: space-between;
|
154
|
+
align-items: center;
|
155
|
+
box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.2);
|
156
|
+
&--custom {
|
157
|
+
height: auto;
|
158
|
+
flex-direction: column;
|
159
|
+
align-items: stretch;
|
160
|
+
padding: 0;
|
161
|
+
}
|
137
162
|
}
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
163
|
+
.sd-editor-content__toolbar-inner {
|
164
|
+
height: $nav-height;
|
165
|
+
position: relative;
|
166
|
+
padding: 4px 20px;
|
167
|
+
background-color: var(--sd-colour-panel-bg--000);
|
168
|
+
z-index: 3;
|
169
|
+
transition: all 0.5s;
|
170
|
+
display: flex;
|
171
|
+
justify-content: space-between;
|
172
|
+
align-items: center;
|
173
|
+
box-shadow: 0px 1px 3px -1px rgba(0, 0, 0, 0.2);
|
174
|
+
}
|
175
|
+
|
150
176
|
.sd-editor-content__main-container {
|
151
177
|
grid-column: editorMain;
|
152
178
|
grid-row: editorMainContainer;
|
@@ -166,9 +192,6 @@
|
|
166
192
|
|
167
193
|
grid-column: 1 / 3;
|
168
194
|
grid-row: authoringHeader;
|
169
|
-
|
170
|
-
|
171
|
-
|
172
195
|
display: flex;
|
173
196
|
flex-direction: column;
|
174
197
|
background-color: var(--sd-colour-panel-bg--100);
|
@@ -177,7 +200,7 @@
|
|
177
200
|
padding: $sd-base-increment * 3 $sd-base-increment * 1.5;
|
178
201
|
z-index: 2;
|
179
202
|
box-shadow: 0px 1px 4px -1px rgba(0, 0, 0, 0.25);
|
180
|
-
max-height:
|
203
|
+
max-height: 1400px;
|
181
204
|
transition: max-height 0.12s ease-in;
|
182
205
|
& > .authoring-header__holder {
|
183
206
|
height: auto;
|
@@ -202,6 +225,21 @@
|
|
202
225
|
overflow: hidden;
|
203
226
|
transition: opacity 0.4s 0.1s;
|
204
227
|
}
|
228
|
+
&.authoring-header--padding-small,
|
229
|
+
&.authoring-header--padding-medium,
|
230
|
+
&.authoring-header--padding-large {
|
231
|
+
padding-block-start: 0 !important;
|
232
|
+
padding-block-end: 0 !important;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
&.authoring-header--padding-small {
|
236
|
+
padding: $sd-base-increment * 3 $sd-base-increment * 1.5;
|
237
|
+
}
|
238
|
+
&.authoring-header--padding-medium {
|
239
|
+
padding: $sd-base-increment * 3 $sd-base-increment * 3;
|
240
|
+
}
|
241
|
+
&.authoring-header--padding-large {
|
242
|
+
padding: $sd-base-increment * 3 $sd-base-increment * 4;
|
205
243
|
}
|
206
244
|
}
|
207
245
|
.authoring-header__toggle {
|
@@ -302,5 +340,59 @@
|
|
302
340
|
background: var(--sd-colour__webkit-scrollbar-thumb--hover);
|
303
341
|
cursor: pointer;
|
304
342
|
}
|
343
|
+
}
|
344
|
+
|
345
|
+
.sd-editor__container {
|
346
|
+
grid-column: 1 / 2;
|
347
|
+
display: grid;
|
348
|
+
grid-template-rows: 1fr;
|
349
|
+
grid-auto-columns: auto;
|
350
|
+
overflow-y: auto;
|
351
|
+
|
352
|
+
width: 0;
|
353
|
+
min-width: 0;
|
354
|
+
overflow: hidden;
|
355
|
+
opacity: 0;
|
356
|
+
transition: all ease-in-out 0.1s;
|
357
|
+
.sd-content-wrapper__main-content-area.sd-main-content-grid {
|
358
|
+
grid-column: 1 / 2 !important;
|
359
|
+
}
|
360
|
+
}
|
361
|
+
|
362
|
+
.open-editor {
|
363
|
+
.sd-editor__container {
|
364
|
+
opacity: 1;
|
365
|
+
overflow-y: auto;
|
366
|
+
width: auto;
|
367
|
+
min-width: 45vw;
|
368
|
+
//min-width: 45%;
|
369
|
+
//max-width: 1200px;
|
305
370
|
|
371
|
+
}
|
306
372
|
}
|
373
|
+
|
374
|
+
.sd-editor__input--title {
|
375
|
+
-webkit-appearance: none;
|
376
|
+
-moz-appearance: none;
|
377
|
+
appearance: none;
|
378
|
+
width: 100%;
|
379
|
+
color: var(--color-text);
|
380
|
+
border: 0;
|
381
|
+
border: 2px solid var(--color-input-border);
|
382
|
+
font-size: 3.2rem;
|
383
|
+
font-weight: 500;
|
384
|
+
background-color: transparent;
|
385
|
+
transition: all ease 0.3s;
|
386
|
+
padding: 0 1.6rem;
|
387
|
+
min-height: 5.6rem;
|
388
|
+
border-radius: var(--b-radius--large);
|
389
|
+
display: block;
|
390
|
+
&:hover {
|
391
|
+
border-color: var(--color-input-border-hover);
|
392
|
+
}
|
393
|
+
&:focus {
|
394
|
+
outline: none;
|
395
|
+
border-color: var(--sd-colour-interactive--alpha-50);
|
396
|
+
box-shadow: inset 0 0 0 4px var(--sd-colour-interactive--alpha-20);
|
397
|
+
}
|
398
|
+
}
|
@@ -132,6 +132,12 @@ $sd-sideTabMenu-background: var(--sd-colour-sidebar-menu--20);
|
|
132
132
|
&--static {
|
133
133
|
position: static;
|
134
134
|
}
|
135
|
+
.badge {
|
136
|
+
position: absolute;
|
137
|
+
inset-block-start: 3px;
|
138
|
+
inset-inline-end: 3px;
|
139
|
+
z-index: 1;
|
140
|
+
}
|
135
141
|
}
|
136
142
|
|
137
143
|
.sd-sidetab-menu__btn {
|
@@ -34,6 +34,8 @@
|
|
34
34
|
pointer-events: auto;
|
35
35
|
max-height: 90%;
|
36
36
|
transform: scale(1);
|
37
|
+
|
38
|
+
overflow: hidden;
|
37
39
|
}
|
38
40
|
|
39
41
|
.p-dialog-content {
|
@@ -211,6 +213,8 @@
|
|
211
213
|
.p-dialog .p-dialog-header {
|
212
214
|
border-bottom: 0 none;
|
213
215
|
background: transparent;
|
216
|
+
position: relative;
|
217
|
+
z-index: 1012;
|
214
218
|
padding: 0.8rem 0.8rem 0.8rem 1.6rem;
|
215
219
|
border-top-right-radius: $border-radius__base--large;
|
216
220
|
border-top-left-radius: $border-radius__base--large;
|
@@ -251,7 +255,6 @@
|
|
251
255
|
}
|
252
256
|
|
253
257
|
.p-dialog .p-dialog-content {
|
254
|
-
padding: 1.6rem;
|
255
258
|
background-color: transparent;
|
256
259
|
font-size: 1.4rem;
|
257
260
|
p {
|
@@ -267,6 +270,8 @@
|
|
267
270
|
border-bottom-right-radius: $border-radius__base--full;
|
268
271
|
border-bottom-left-radius: $border-radius__base--full;
|
269
272
|
box-shadow: 0 -1px 0 var(--sd-colour-line--x-light);
|
273
|
+
position: relative;
|
274
|
+
z-index: 2;
|
270
275
|
}
|
271
276
|
|
272
277
|
.p-dialog .p-dialog-footer button {
|
@@ -298,20 +303,18 @@
|
|
298
303
|
&:hover {
|
299
304
|
.p-dialog-header-close-icon {
|
300
305
|
opacity: 1;
|
301
|
-
|
306
|
+
}
|
302
307
|
}
|
303
308
|
&:active {
|
304
309
|
.p-dialog-header-close-icon {
|
305
310
|
color: $sd-colour-interactive !important;
|
306
311
|
opacity: 1;
|
307
|
-
|
312
|
+
}
|
308
313
|
}
|
309
|
-
|
310
|
-
|
311
314
|
}
|
312
315
|
|
313
316
|
.p-dialog-content {
|
314
|
-
//
|
317
|
+
// size
|
315
318
|
&--small {
|
316
319
|
width: var(--width__modal--small);
|
317
320
|
}
|
@@ -324,7 +327,36 @@
|
|
324
327
|
}
|
325
328
|
&--x-large {
|
326
329
|
width: var(--width__modal--x-large);
|
327
|
-
min-height: 30rem;
|
330
|
+
//min-height: 30rem;
|
331
|
+
height: calc(100vh - 200px);
|
332
|
+
}
|
333
|
+
// padding
|
334
|
+
&--0-padding {
|
335
|
+
padding: 0 !important;
|
336
|
+
}
|
337
|
+
&--s-padding {
|
338
|
+
padding: $sd-base-increment * 2;
|
339
|
+
}
|
340
|
+
&--m-padding {
|
341
|
+
padding: $sd-base-increment * 3
|
342
|
+
}
|
343
|
+
&--l-padding {
|
344
|
+
padding: $sd-base-increment * 4;
|
345
|
+
}
|
346
|
+
&--default {
|
347
|
+
background-color: transparent !important;
|
348
|
+
}
|
349
|
+
&--dark {
|
350
|
+
background-color: var(--sd-colour-panel-bg--200) !important;
|
351
|
+
}
|
352
|
+
&--medium {
|
353
|
+
background-color: var(--sd-colour-panel-bg--100) !important;
|
328
354
|
}
|
329
355
|
}
|
330
356
|
|
357
|
+
.p-dialog-content {
|
358
|
+
//max-height: 100%;
|
359
|
+
.sd-main-content-grid {
|
360
|
+
height: 100% !important;
|
361
|
+
}
|
362
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import classNames from 'classnames';
|
3
|
+
import { Icon } from './Icon';
|
4
|
+
import { Tooltip } from './Tooltip';
|
5
|
+
interface IProps {
|
6
|
+
id?: string;
|
7
|
+
ariaValue: string;
|
8
|
+
toolTipFlow?: 'top' | 'left' | 'right' | 'down';
|
9
|
+
type?: 'default' | 'primary' | 'highlight' | 'darker';
|
10
|
+
state?: 'normal' | 'active'; // defaults to 'normal'
|
11
|
+
value?: 'button' | 'submit' | 'reset'; // defaults to 'button'
|
12
|
+
onClick(): void;
|
13
|
+
}
|
14
|
+
export class CreateButton extends React.PureComponent<IProps> {
|
15
|
+
static defaultProps = {
|
16
|
+
toolTipFlow: 'left',
|
17
|
+
};
|
18
|
+
render() {
|
19
|
+
let classes = classNames('sd-create-btn', {
|
20
|
+
'sd-navbtn--active': this.props.state === 'active',
|
21
|
+
[`sd-navbtn--${this.props.type}`]: this.props.type,
|
22
|
+
});
|
23
|
+
const value = this.props.value === undefined ? 'button' : this.props.value;
|
24
|
+
return (
|
25
|
+
<Tooltip text={this.props.ariaValue} flow={this.props.toolTipFlow} appendToBody={true}>
|
26
|
+
<button type={value}
|
27
|
+
className={classes}
|
28
|
+
tabIndex={0}
|
29
|
+
onClick={this.props.onClick}
|
30
|
+
aria-label={this.props.ariaValue}
|
31
|
+
id={this.props.id}>
|
32
|
+
<Icon name="plus-large" />
|
33
|
+
<span className="circle"></span>
|
34
|
+
</button>
|
35
|
+
</Tooltip>
|
36
|
+
);
|
37
|
+
}
|
38
|
+
}
|
@@ -1,11 +1,12 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import classNames from 'classnames';
|
3
3
|
import { Icon } from './Icon';
|
4
|
+
// import * as PanelElements from '../../app-typescript/components/Layouts/Panel';
|
4
5
|
|
5
6
|
interface IProps {
|
6
7
|
icon?: boolean;
|
7
|
-
|
8
|
-
|
8
|
+
iconSmall?: boolean;
|
9
|
+
text?: string;
|
9
10
|
heading?: string;
|
10
11
|
className?: string;
|
11
12
|
width?: 'auto' | 'full';
|
@@ -71,8 +72,8 @@ export class DropZone extends React.PureComponent<IProps, IState> {
|
|
71
72
|
onDragEnd={() => false}
|
72
73
|
>
|
73
74
|
<div className='sd-dropzone__target-border'>
|
74
|
-
<input type="file" className='sd-dropzone__input'/>
|
75
75
|
</div>
|
76
|
+
<input type="file" className='sd-dropzone__input'/>
|
76
77
|
{this.props.icon ?
|
77
78
|
<figure className='sd-dropzone__icon' aria-hidden='true'>
|
78
79
|
<Icon name='upload-alt' size='big' />
|
@@ -82,7 +83,6 @@ export class DropZone extends React.PureComponent<IProps, IState> {
|
|
82
83
|
<h4 className='sd-dropzone__heading'>{this.props.heading}</h4> : null
|
83
84
|
}
|
84
85
|
<p className='sd-dropzone__description'>{this.props.text}</p>
|
85
|
-
{/* <Button text={this.props.actionText} style='hollow' onClick={() => false} /> */}
|
86
86
|
</div>
|
87
87
|
);
|
88
88
|
}
|
@@ -5,6 +5,7 @@ interface IProps {
|
|
5
5
|
size?: 'small' | 'big'; // defaults to 'small'
|
6
6
|
type?: 'default' | 'primary' | 'success' | 'warning' | 'alert' | 'highlight' | 'light';
|
7
7
|
className?: string;
|
8
|
+
scale?: '2x' | '3x' | '4x';
|
8
9
|
ariaHidden?: boolean;
|
9
10
|
}
|
10
11
|
|
@@ -14,7 +15,8 @@ export class Icon extends React.PureComponent<IProps> {
|
|
14
15
|
[`icon-${this.props.name}`]:
|
15
16
|
(this.props.name && !this.props.size) || (this.props.name && this.props.size === 'small'),
|
16
17
|
[`big-icon--${this.props.name}`]: this.props.name && this.props.size === 'big',
|
17
|
-
[
|
18
|
+
[`color--${this.props.type}`]: this.props.type,
|
19
|
+
[`scale--${this.props.scale}`]: this.props.scale,
|
18
20
|
});
|
19
21
|
return (
|
20
22
|
<i className={classes} aria-label={this.props.name} aria-hidden={this.props.ariaHidden}></i>
|