superdesk-ui-framework 3.1.5 → 3.1.7

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.
Files changed (271) hide show
  1. package/app/styles/_expand-button.scss +31 -0
  2. package/app/styles/_helpers.scss +320 -151
  3. package/app/styles/app.scss +1 -0
  4. package/app/styles/components/_subnav.scss +1 -0
  5. package/app/styles/design-tokens/_design-tokens-general.scss +19 -7
  6. package/app/styles/design-tokens/_new-colors.scss +6 -1
  7. package/app/styles/grids/_grid-layout.scss +1 -0
  8. package/app/styles/interface-elements/_side-panel.scss +4 -0
  9. package/app-typescript/components/IconPicker.tsx +1 -1
  10. package/{examples/pages/react → dist/components}/Index.tsx +81 -63
  11. package/dist/components/utilities/SpacingUtilities.tsx +774 -0
  12. package/dist/components/utilities/TextUtilities.tsx +432 -0
  13. package/dist/components.html +6 -27
  14. package/dist/{components → components_deprecated}/text.html +7 -7
  15. package/dist/components_deprecated.html +38 -0
  16. package/dist/design/buttons.html +1 -11
  17. package/dist/design/checkbox-and-radio.html +3 -3
  18. package/dist/design/layout-principles.html +0 -1
  19. package/dist/design/switch.html +0 -10
  20. package/dist/design-patterns/Index.tsx +86 -0
  21. package/dist/design-patterns/ThreePaneLayoutPattern.tsx +362 -0
  22. package/{examples/pages/react.html → dist/design-patterns.html} +3 -4
  23. package/dist/design.html +4 -4
  24. package/dist/examples.bundle.css +106 -20
  25. package/dist/examples.bundle.js +3233 -1443
  26. package/dist/main.html +17 -15
  27. package/dist/playgrounds/boxed-list.html +7 -7
  28. package/dist/playgrounds/master-desk.html +4 -4
  29. package/dist/playgrounds/photo-snippets/edit-photo-metadata.html +1 -1
  30. package/dist/playgrounds/planning-snippets/edit-planning.html +1 -1
  31. package/dist/playgrounds/planning.html +1 -1
  32. package/dist/playgrounds/publisher-content-analytics.html +25 -25
  33. package/dist/playgrounds/react-playgrounds/RundownEditor.tsx +16 -1
  34. package/dist/playgrounds/react-playgrounds/TestGround.tsx +46 -4
  35. package/dist/playgrounds/video-editor.html +1 -1
  36. package/dist/playgrounds.html +3 -6
  37. package/dist/superdesk-ui.bundle.css +345 -120
  38. package/dist/superdesk-ui.bundle.js +105 -101
  39. package/examples/css/docs-page.css +106 -20
  40. package/examples/index.js +89 -89
  41. package/examples/js/doc.js +16 -2
  42. package/examples/js/react.js +122 -19
  43. package/{dist/react → examples/pages/components}/Index.tsx +81 -63
  44. package/examples/pages/components/utilities/SpacingUtilities.tsx +774 -0
  45. package/examples/pages/components/utilities/TextUtilities.tsx +432 -0
  46. package/examples/pages/components.html +6 -27
  47. package/examples/pages/{components → components_deprecated}/text.html +7 -7
  48. package/examples/pages/components_deprecated.html +38 -0
  49. package/examples/pages/design/buttons.html +1 -11
  50. package/examples/pages/design/checkbox-and-radio.html +3 -3
  51. package/examples/pages/design/layout-principles.html +0 -1
  52. package/examples/pages/design/switch.html +0 -10
  53. package/examples/pages/design-patterns/Index.tsx +86 -0
  54. package/examples/pages/design-patterns/ThreePaneLayoutPattern.tsx +362 -0
  55. package/{dist/react.html → examples/pages/design-patterns.html} +3 -4
  56. package/examples/pages/design.html +4 -4
  57. package/examples/pages/main.html +17 -15
  58. package/examples/pages/playgrounds/boxed-list.html +7 -7
  59. package/examples/pages/playgrounds/master-desk.html +4 -4
  60. package/examples/pages/playgrounds/photo-snippets/edit-photo-metadata.html +1 -1
  61. package/examples/pages/playgrounds/planning-snippets/edit-planning.html +1 -1
  62. package/examples/pages/playgrounds/planning.html +1 -1
  63. package/examples/pages/playgrounds/publisher-content-analytics.html +25 -25
  64. package/examples/pages/playgrounds/react-playgrounds/RundownEditor.tsx +16 -1
  65. package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +46 -4
  66. package/examples/pages/playgrounds/video-editor.html +1 -1
  67. package/examples/pages/playgrounds.html +3 -6
  68. package/package.json +1 -1
  69. package/react/components/IconPicker.js +1 -1
  70. /package/dist/{react → components}/Alerts.tsx +0 -0
  71. /package/dist/{react → components}/Autocomplete.tsx +0 -0
  72. /package/dist/{react → components}/Avatar.tsx +0 -0
  73. /package/dist/{react → components}/Badges.tsx +0 -0
  74. /package/dist/{react → components}/BigIconFont.tsx +0 -0
  75. /package/dist/{react → components}/BoxedList.tsx +0 -0
  76. /package/dist/{react → components}/ButtonGroups.tsx +0 -0
  77. /package/dist/{react → components}/Buttons.tsx +0 -0
  78. /package/dist/{react → components}/Carousel.tsx +0 -0
  79. /package/dist/{react → components}/Checkboxs.tsx +0 -0
  80. /package/dist/{react → components}/Container.tsx +0 -0
  81. /package/dist/{react → components}/ContentDivider.tsx +0 -0
  82. /package/dist/{react → components}/ContentList.tsx +0 -0
  83. /package/dist/{react → components}/CreateButton.tsx +0 -0
  84. /package/dist/{react → components}/DatePicker.tsx +0 -0
  85. /package/dist/{react → components}/DragHandleDocs.tsx +0 -0
  86. /package/dist/{react → components}/DropZone.tsx +0 -0
  87. /package/dist/{react → components}/Dropdowns.tsx +0 -0
  88. /package/dist/{react → components}/DurationInput.tsx +0 -0
  89. /package/dist/{react → components}/EmptyStates.tsx +0 -0
  90. /package/dist/{react → components}/GridItem.tsx +0 -0
  91. /package/dist/{react → components}/GridList.tsx +0 -0
  92. /package/dist/{react → components}/Heading.tsx +0 -0
  93. /package/dist/{react → components}/IconButtons.tsx +0 -0
  94. /package/dist/{react → components}/IconFont.tsx +0 -0
  95. /package/dist/{react → components}/IconLabels.tsx +0 -0
  96. /package/dist/{react → components}/IconPicker.tsx +0 -0
  97. /package/dist/{react → components}/IllustrationButton.tsx +0 -0
  98. /package/dist/{react → components}/Inputs.tsx +0 -0
  99. /package/dist/{react → components}/Labels.tsx +0 -0
  100. /package/dist/{react → components}/LeftNavigations.tsx +0 -0
  101. /package/dist/{react → components}/ListItems.tsx +0 -0
  102. /package/dist/{react → components}/Menu.tsx +0 -0
  103. /package/dist/{react → components}/Modal.tsx +0 -0
  104. /package/dist/{react → components}/MultiSelect.tsx +0 -0
  105. /package/dist/{react → components}/NavButtons.tsx +0 -0
  106. /package/dist/{react → components}/Panel.tsx +0 -0
  107. /package/dist/{react → components}/Popover.tsx +0 -0
  108. /package/dist/{react → components}/QuickNavigationBar.tsx +0 -0
  109. /package/dist/{react → components}/RadioGroup.tsx +0 -0
  110. /package/dist/{react → components}/ResizablePanels.tsx +0 -0
  111. /package/dist/{react → components}/SelectGrid.tsx +0 -0
  112. /package/dist/{react → components}/SelectWithTemplate.tsx +0 -0
  113. /package/dist/{react → components}/Selects.tsx +0 -0
  114. /package/dist/{react → components}/SimpleList.tsx +0 -0
  115. /package/dist/{react → components}/SubNav.tsx +0 -0
  116. /package/dist/{react → components}/Switch.tsx +0 -0
  117. /package/dist/{react → components}/TableList.tsx +0 -0
  118. /package/dist/{react → components}/Tabs.tsx +0 -0
  119. /package/dist/{react → components}/TagInputDocs.tsx +0 -0
  120. /package/dist/{react → components}/Tags.tsx +0 -0
  121. /package/dist/{react → components}/Text.tsx +0 -0
  122. /package/dist/{react → components}/TimePicker.tsx +0 -0
  123. /package/dist/{react → components}/Toasts.tsx +0 -0
  124. /package/dist/{react → components}/Togglebox.tsx +0 -0
  125. /package/dist/{react → components}/Tooltips.tsx +0 -0
  126. /package/dist/{react → components}/TreeMenu.tsx +0 -0
  127. /package/dist/{react → components}/TreeSelect.tsx +0 -0
  128. /package/dist/{react → components}/WithPaginationDocs.tsx +0 -0
  129. /package/dist/{react → components}/WithSizeObserver.tsx +0 -0
  130. /package/dist/{react → components}/tree-select/TreeSelect.tsx +0 -0
  131. /package/dist/{react → components}/tree-select/example-1.tsx +0 -0
  132. /package/dist/{react → components}/tree-select/example-2.tsx +0 -0
  133. /package/dist/{components → components_deprecated}/alerts.html +0 -0
  134. /package/dist/{components → components_deprecated}/badge.html +0 -0
  135. /package/dist/{components → components_deprecated}/basic-grid.html +0 -0
  136. /package/dist/{components → components_deprecated}/big-icons.html +0 -0
  137. /package/dist/{components → components_deprecated}/buttons.html +0 -0
  138. /package/dist/{components → components_deprecated}/carousel.html +0 -0
  139. /package/dist/{components → components_deprecated}/checkbox.html +0 -0
  140. /package/dist/{components → components_deprecated}/colors.html +0 -0
  141. /package/dist/{components → components_deprecated}/dropdown.html +0 -0
  142. /package/dist/{components → components_deprecated}/form-layout.html +0 -0
  143. /package/dist/{components → components_deprecated}/icon-labels.html +0 -0
  144. /package/dist/{components → components_deprecated}/icons.html +0 -0
  145. /package/dist/{components → components_deprecated}/input.html +0 -0
  146. /package/dist/{components → components_deprecated}/labels.html +0 -0
  147. /package/dist/{components → components_deprecated}/layout-grid.html +0 -0
  148. /package/dist/{components → components_deprecated}/left-nav.html +0 -0
  149. /package/dist/{components → components_deprecated}/list-item.html +0 -0
  150. /package/dist/{components → components_deprecated}/loader.html +0 -0
  151. /package/dist/{components → components_deprecated}/modal-template.html +0 -0
  152. /package/dist/{components → components_deprecated}/modals.html +0 -0
  153. /package/dist/{components → components_deprecated}/other-elements.html +0 -0
  154. /package/dist/{components → components_deprecated}/panel-info.html +0 -0
  155. /package/dist/{components → components_deprecated}/radio.html +0 -0
  156. /package/dist/{components → components_deprecated}/select.html +0 -0
  157. /package/dist/{components → components_deprecated}/shadows.html +0 -0
  158. /package/dist/{components → components_deprecated}/sidebar-menu.html +0 -0
  159. /package/dist/{components → components_deprecated}/simple-list.html +0 -0
  160. /package/dist/{components → components_deprecated}/slider.html +0 -0
  161. /package/dist/{components → components_deprecated}/spacing.html +0 -0
  162. /package/dist/{components → components_deprecated}/switch.html +0 -0
  163. /package/dist/{components → components_deprecated}/tables.html +0 -0
  164. /package/dist/{components → components_deprecated}/tabs.html +0 -0
  165. /package/dist/{components → components_deprecated}/tag-input.html +0 -0
  166. /package/dist/{components → components_deprecated}/tag-labels.html +0 -0
  167. /package/dist/{components → components_deprecated}/toggle.html +0 -0
  168. /package/dist/{components → components_deprecated}/tooltips.html +0 -0
  169. /package/dist/{components → components_deprecated}/vertical-tabs.html +0 -0
  170. /package/dist/{components → components_deprecated}/wizard.html +0 -0
  171. /package/examples/pages/{react → components}/Alerts.tsx +0 -0
  172. /package/examples/pages/{react → components}/Autocomplete.tsx +0 -0
  173. /package/examples/pages/{react → components}/Avatar.tsx +0 -0
  174. /package/examples/pages/{react → components}/Badges.tsx +0 -0
  175. /package/examples/pages/{react → components}/BigIconFont.tsx +0 -0
  176. /package/examples/pages/{react → components}/BoxedList.tsx +0 -0
  177. /package/examples/pages/{react → components}/ButtonGroups.tsx +0 -0
  178. /package/examples/pages/{react → components}/Buttons.tsx +0 -0
  179. /package/examples/pages/{react → components}/Carousel.tsx +0 -0
  180. /package/examples/pages/{react → components}/Checkboxs.tsx +0 -0
  181. /package/examples/pages/{react → components}/Container.tsx +0 -0
  182. /package/examples/pages/{react → components}/ContentDivider.tsx +0 -0
  183. /package/examples/pages/{react → components}/ContentList.tsx +0 -0
  184. /package/examples/pages/{react → components}/CreateButton.tsx +0 -0
  185. /package/examples/pages/{react → components}/DatePicker.tsx +0 -0
  186. /package/examples/pages/{react → components}/DragHandleDocs.tsx +0 -0
  187. /package/examples/pages/{react → components}/DropZone.tsx +0 -0
  188. /package/examples/pages/{react → components}/Dropdowns.tsx +0 -0
  189. /package/examples/pages/{react → components}/DurationInput.tsx +0 -0
  190. /package/examples/pages/{react → components}/EmptyStates.tsx +0 -0
  191. /package/examples/pages/{react → components}/GridItem.tsx +0 -0
  192. /package/examples/pages/{react → components}/GridList.tsx +0 -0
  193. /package/examples/pages/{react → components}/Heading.tsx +0 -0
  194. /package/examples/pages/{react → components}/IconButtons.tsx +0 -0
  195. /package/examples/pages/{react → components}/IconFont.tsx +0 -0
  196. /package/examples/pages/{react → components}/IconLabels.tsx +0 -0
  197. /package/examples/pages/{react → components}/IconPicker.tsx +0 -0
  198. /package/examples/pages/{react → components}/IllustrationButton.tsx +0 -0
  199. /package/examples/pages/{react → components}/Inputs.tsx +0 -0
  200. /package/examples/pages/{react → components}/Labels.tsx +0 -0
  201. /package/examples/pages/{react → components}/LeftNavigations.tsx +0 -0
  202. /package/examples/pages/{react → components}/ListItems.tsx +0 -0
  203. /package/examples/pages/{react → components}/Menu.tsx +0 -0
  204. /package/examples/pages/{react → components}/Modal.tsx +0 -0
  205. /package/examples/pages/{react → components}/MultiSelect.tsx +0 -0
  206. /package/examples/pages/{react → components}/NavButtons.tsx +0 -0
  207. /package/examples/pages/{react → components}/Panel.tsx +0 -0
  208. /package/examples/pages/{react → components}/Popover.tsx +0 -0
  209. /package/examples/pages/{react → components}/QuickNavigationBar.tsx +0 -0
  210. /package/examples/pages/{react → components}/RadioGroup.tsx +0 -0
  211. /package/examples/pages/{react → components}/ResizablePanels.tsx +0 -0
  212. /package/examples/pages/{react → components}/SelectGrid.tsx +0 -0
  213. /package/examples/pages/{react → components}/SelectWithTemplate.tsx +0 -0
  214. /package/examples/pages/{react → components}/Selects.tsx +0 -0
  215. /package/examples/pages/{react → components}/SimpleList.tsx +0 -0
  216. /package/examples/pages/{react → components}/SubNav.tsx +0 -0
  217. /package/examples/pages/{react → components}/Switch.tsx +0 -0
  218. /package/examples/pages/{react → components}/TableList.tsx +0 -0
  219. /package/examples/pages/{react → components}/Tabs.tsx +0 -0
  220. /package/examples/pages/{react → components}/TagInputDocs.tsx +0 -0
  221. /package/examples/pages/{react → components}/Tags.tsx +0 -0
  222. /package/examples/pages/{react → components}/Text.tsx +0 -0
  223. /package/examples/pages/{react → components}/TimePicker.tsx +0 -0
  224. /package/examples/pages/{react → components}/Toasts.tsx +0 -0
  225. /package/examples/pages/{react → components}/Togglebox.tsx +0 -0
  226. /package/examples/pages/{react → components}/Tooltips.tsx +0 -0
  227. /package/examples/pages/{react → components}/TreeMenu.tsx +0 -0
  228. /package/examples/pages/{react → components}/TreeSelect.tsx +0 -0
  229. /package/examples/pages/{react → components}/WithPaginationDocs.tsx +0 -0
  230. /package/examples/pages/{react → components}/WithSizeObserver.tsx +0 -0
  231. /package/examples/pages/{react → components}/tree-select/TreeSelect.tsx +0 -0
  232. /package/examples/pages/{react → components}/tree-select/example-1.tsx +0 -0
  233. /package/examples/pages/{react → components}/tree-select/example-2.tsx +0 -0
  234. /package/examples/pages/{components → components_deprecated}/alerts.html +0 -0
  235. /package/examples/pages/{components → components_deprecated}/badge.html +0 -0
  236. /package/examples/pages/{components → components_deprecated}/basic-grid.html +0 -0
  237. /package/examples/pages/{components → components_deprecated}/big-icons.html +0 -0
  238. /package/examples/pages/{components → components_deprecated}/buttons.html +0 -0
  239. /package/examples/pages/{components → components_deprecated}/carousel.html +0 -0
  240. /package/examples/pages/{components → components_deprecated}/checkbox.html +0 -0
  241. /package/examples/pages/{components → components_deprecated}/colors.html +0 -0
  242. /package/examples/pages/{components → components_deprecated}/dropdown.html +0 -0
  243. /package/examples/pages/{components → components_deprecated}/form-layout.html +0 -0
  244. /package/examples/pages/{components → components_deprecated}/icon-labels.html +0 -0
  245. /package/examples/pages/{components → components_deprecated}/icons.html +0 -0
  246. /package/examples/pages/{components → components_deprecated}/input.html +0 -0
  247. /package/examples/pages/{components → components_deprecated}/labels.html +0 -0
  248. /package/examples/pages/{components → components_deprecated}/layout-grid.html +0 -0
  249. /package/examples/pages/{components → components_deprecated}/left-nav.html +0 -0
  250. /package/examples/pages/{components → components_deprecated}/list-item.html +0 -0
  251. /package/examples/pages/{components → components_deprecated}/loader.html +0 -0
  252. /package/examples/pages/{components → components_deprecated}/modal-template.html +0 -0
  253. /package/examples/pages/{components → components_deprecated}/modals.html +0 -0
  254. /package/examples/pages/{components → components_deprecated}/other-elements.html +0 -0
  255. /package/examples/pages/{components → components_deprecated}/panel-info.html +0 -0
  256. /package/examples/pages/{components → components_deprecated}/radio.html +0 -0
  257. /package/examples/pages/{components → components_deprecated}/select.html +0 -0
  258. /package/examples/pages/{components → components_deprecated}/shadows.html +0 -0
  259. /package/examples/pages/{components → components_deprecated}/sidebar-menu.html +0 -0
  260. /package/examples/pages/{components → components_deprecated}/simple-list.html +0 -0
  261. /package/examples/pages/{components → components_deprecated}/slider.html +0 -0
  262. /package/examples/pages/{components → components_deprecated}/spacing.html +0 -0
  263. /package/examples/pages/{components → components_deprecated}/switch.html +0 -0
  264. /package/examples/pages/{components → components_deprecated}/tables.html +0 -0
  265. /package/examples/pages/{components → components_deprecated}/tabs.html +0 -0
  266. /package/examples/pages/{components → components_deprecated}/tag-input.html +0 -0
  267. /package/examples/pages/{components → components_deprecated}/tag-labels.html +0 -0
  268. /package/examples/pages/{components → components_deprecated}/toggle.html +0 -0
  269. /package/examples/pages/{components → components_deprecated}/tooltips.html +0 -0
  270. /package/examples/pages/{components → components_deprecated}/vertical-tabs.html +0 -0
  271. /package/examples/pages/{components → components_deprecated}/wizard.html +0 -0
@@ -0,0 +1,31 @@
1
+ .expand-button {
2
+ --sd-btn-bg: var(--sd-colour-btn-bg-neutral);
3
+ --sd-btn-bg--hover: var(--sd-colour-btn-bg-neutral--hover);
4
+ --sd-btn-bg--active: var(--sd-colour-btn-bg-neutral--active);
5
+ display: inline-flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ height: 3.2rem;
9
+ transition: all 0.2s ease;
10
+ outline: none;
11
+ padding-inline: var(--space--0-5);
12
+ background-color: var(--sd-btn-bg);
13
+ border-radius: 0 var(--b-radius--medium) var(--b-radius--medium) 0;
14
+ opacity: 0.75;
15
+ color: var(--color-text);
16
+ [class^="icon-"], [class*=" icon-"] {
17
+ transition: transform 0.2s ease;
18
+ color: currentColor;
19
+ }
20
+ &:hover {
21
+ padding-inline: var(--space--1);
22
+ }
23
+ &:active {
24
+ opacity: 1;
25
+ }
26
+ &.expand-button--expanded {
27
+ [class^="icon-"], [class*=" icon-"] {
28
+ transform: rotate(180deg);
29
+ }
30
+ }
31
+ }
@@ -288,7 +288,7 @@
288
288
  overflow-y: scroll !important;
289
289
  }
290
290
 
291
- // Text overflow
291
+ // TEXT OVERFLOW
292
292
  .sd-overflow-ellipsis,
293
293
  .sd-overflow--ellipsis {
294
294
  text-overflow: ellipsis;
@@ -512,140 +512,8 @@ h6 {
512
512
  letter-spacing: 0.025em;
513
513
  }
514
514
 
515
- // Font weights
516
515
 
517
- .sd-text__light,
518
- .sd-text--light {
519
- font-weight: 300;
520
- }
521
-
522
- .sd-text__normal,
523
- .sd-text--normal {
524
- font-weight: 400;
525
- }
526
-
527
- .sd-text--medium {
528
- font-weight: 500;
529
- }
530
-
531
- .sd-text__strong,
532
- .sd-text--strong {
533
- font-weight: 700;
534
- }
535
-
536
- .sd-text--bold {
537
- font-weight: 700;
538
- }
539
-
540
- // Font style
541
- .sd-text__italic,
542
- .sd-text--italic {
543
- font-style: italic;
544
- }
545
-
546
- .sd-text--non-italic {
547
- font-style: normal;
548
- }
549
-
550
- // Text alignment
551
- .sd-text-align--left,
552
- .sd-text-align--start {
553
- text-align: start;
554
- }
555
-
556
- .sd-text__center,
557
- .sd-text-align--center {
558
- text-align: center;
559
- }
560
-
561
- .sd-text__right,
562
- .sd-text-align--right,
563
- .sd-text-align--end {
564
- text-align: end;
565
- }
566
-
567
- .sd-text-align--justify {
568
- text-align: justify;
569
- }
570
-
571
- // Font family
572
- .sd-text__serif,
573
- .sd-text--serif {
574
- font-family: $baseFontFamilySerif;
575
- }
576
-
577
- .sd-text--sans {
578
- font-family: $baseFontFamily;
579
- }
580
-
581
- .sd-text--mono {
582
- font-family: $baseFontFamilyMono;
583
- }
584
-
585
- // Word Break
586
- .sd-word-break--normal {
587
- overflow-wrap: normal;
588
- word-break: normal;
589
- }
590
-
591
- .sd-word-break--words {
592
- overflow-wrap: break-word;
593
- }
594
-
595
- .sd-word-break--all {
596
- word-break: break-all;
597
- }
598
-
599
- // Whitespace
600
- .sd-whitespace--normal {
601
- white-space: normal;
602
- }
603
516
 
604
- .sd-whitespace--nowrap {
605
- white-space: nowrap;
606
- }
607
-
608
- .sd-whitespace--pre {
609
- white-space: pre;
610
- }
611
-
612
- .sd-whitespace--pre-line {
613
- white-space: pre-line;
614
- }
615
-
616
- .sd-whitespace--pre-wrap {
617
- white-space: pre-wrap;
618
- }
619
-
620
- // Text Transform
621
- .sd-txt-transform--uppercase {
622
- text-transform: uppercase;
623
- }
624
-
625
- .sd-txt-transform--lowercase {
626
- text-transform: lowercase;
627
- }
628
-
629
- .sd-txt-transform--capitalize {
630
- text-transform: capitalize;
631
- }
632
-
633
- .sd-txt-transform--none {
634
- text-transform: none;
635
- }
636
-
637
- // Text Decoration
638
- .sd-txt-decoration--underline {
639
- text-decoration: underline;
640
- }
641
-
642
- .sd-txt-decoration--line-through {
643
- text-decoration: line-through;
644
- }
645
-
646
- .sd-txt-decoration--none {
647
- text-decoration: none;
648
- }
649
517
 
650
518
  // Line Clamp
651
519
  // limit the number of horizontal lines in an elemnt (e.g. <p>)
@@ -777,13 +645,21 @@ h6 {
777
645
 
778
646
 
779
647
  // Margin auto
648
+
649
+ .m-auto,
650
+ .sd-margin--auto {
651
+ margin: auto !important;
652
+ }
653
+
780
654
  .ml-auto,
655
+ .ms-auto,
781
656
  .sd-margin-l--auto,
782
657
  .sd-margin-s--auto {
783
658
  margin-inline-start: auto !important;
784
659
  }
785
660
 
786
661
  .mr-auto,
662
+ .me-auto,
787
663
  .sd-margin-r--auto,
788
664
  .sd-margin-e--auto {
789
665
  margin-inline-end: auto !important;
@@ -800,19 +676,18 @@ h6 {
800
676
  }
801
677
 
802
678
  .mlr-auto,
679
+ .mx-auto,
803
680
  .sd-margin-x--auto {
804
681
  margin-inline-start: auto !important;
805
682
  margin-inline-end: auto !important;
806
683
  }
807
684
 
685
+ .my-auto,
808
686
  .sd-margin-y--auto {
809
687
  margin-block-start: auto !important;
810
688
  margin-block-end: auto !important;
811
689
  }
812
690
 
813
- .sd-margin--auto {
814
- margin: auto !important;
815
- }
816
691
 
817
692
  // MARGINS ---------------------------------------------- //
818
693
  // MARGIN (all sides)
@@ -1237,7 +1112,7 @@ h6 {
1237
1112
  padding-block-start: calc(5 * var(--base-increment)) !important;
1238
1113
  }
1239
1114
  // PADDING BLOCK END (bottom)
1240
- .pb--0,
1115
+ .pb-0,
1241
1116
  .sd-padding-b--0 {
1242
1117
  padding-block-end: 0 !important;
1243
1118
  }
@@ -1524,36 +1399,277 @@ h6 {
1524
1399
  border-width: 3px;
1525
1400
  }
1526
1401
 
1527
- // Font size
1528
- .sd-font-size--x-small {
1402
+ // ==================== TYPOGRAPHY =================== //
1403
+
1404
+ // FONT SIZE
1405
+ .text-2xs {
1406
+ font-size: calc(var(--text-size--base) * 1); // 12px;
1407
+ }
1408
+ .sd-font-size--x-small,
1409
+ .text-xs {
1529
1410
  font-size: calc(var(--text-size--base) * 1.2); // 12px;
1530
1411
  }
1531
-
1532
- .sd-font-size--small {
1412
+ .sd-font-size--small,
1413
+ .text-sm {
1533
1414
  font-size: calc(var(--text-size--base) * 1.4); // 14px;
1534
1415
  }
1535
-
1536
- .sd-font-size--medium {
1416
+ .sd-font-size--medium ,
1417
+ .text-md {
1537
1418
  font-size: calc(var(--text-size--base) * 1.6); // 16px;
1538
1419
  }
1539
-
1540
- .sd-font-size--large {
1420
+ .sd-font-size--large,
1421
+ .text-lg {
1541
1422
  font-size: calc(var(--text-size--base) * 2); // 20px;
1542
1423
  }
1424
+ .sd-font-size--x-large,
1425
+ .text-xl {
1426
+ font-size: calc(var(--text-size--base) * 2.4); // 24px;
1427
+ }
1428
+ .sd-font-size--x-large,
1429
+ .text-2xl {
1430
+ font-size: calc(var(--text-size--base) * 3.2); // 32px;
1431
+ }
1543
1432
 
1544
- // Text colour
1545
- .sd-text-color--lighter {
1433
+ // TEXT COLOR
1434
+ .sd-text-color--normal,
1435
+ .text-color-normal {
1436
+ color: var(--color-text) !important;
1437
+ }
1438
+ .sd-text-color--light,
1439
+ .text-color-muted {
1440
+ color: var(--color-text-light) !important;
1441
+ }
1442
+ .sd-text-color--lighter,
1443
+ .text-color-subdued {
1546
1444
  color: var(--color-text-lighter) !important;
1547
1445
  }
1446
+ .sd-text-color--inverse,
1447
+ .text-color-inverse {
1448
+ color: var(--color-text--inverse) !important;
1449
+ }
1548
1450
 
1549
- .sd-text-color--light {
1550
- color: var(--color-text-light) !important;
1451
+ // FONT WEIGHTS
1452
+ .sd-text__light,
1453
+ .sd-text--light,
1454
+ .font-light {
1455
+ font-weight: 300;
1456
+ }
1457
+ .sd-text__normal,
1458
+ .sd-text--normal,
1459
+ .font-normal {
1460
+ font-weight: 400;
1461
+ }
1462
+ .sd-text--medium,
1463
+ .font-medium {
1464
+ font-weight: 500;
1465
+ }
1466
+ .sd-text--medium,
1467
+ .font-semibold {
1468
+ font-weight: 500;
1469
+ }
1470
+ .sd-text__strong,
1471
+ .sd-text--strong,
1472
+ .sd-text--bold,
1473
+ .font-bold {
1474
+ font-weight: 700;
1475
+ }
1476
+ .font-black {
1477
+ font-weight: 900;
1551
1478
  }
1552
1479
 
1553
- .sd-text-color--normal {
1554
- color: var(--color-text) !important;
1480
+ // FONT STYLE
1481
+ .sd-text__italic,
1482
+ .sd-text--italic,
1483
+ .italic {
1484
+ font-style: italic;
1555
1485
  }
1556
1486
 
1487
+ .sd-text--non-italic,
1488
+ .non-italic {
1489
+ font-style: normal;
1490
+ }
1491
+
1492
+ // TEXT ALIGN
1493
+ .sd-text-align--left,
1494
+ .sd-text-align--start,
1495
+ .text-start,
1496
+ .text-left {
1497
+ text-align: start;
1498
+ }
1499
+ .sd-text__center,
1500
+ .sd-text-align--center,
1501
+ .text-center {
1502
+ text-align: center;
1503
+ }
1504
+ .sd-text__right,
1505
+ .sd-text-align--right,
1506
+ .sd-text-align--end,
1507
+ .text-end {
1508
+ text-align: end;
1509
+ }
1510
+ .sd-text-align--justify,
1511
+ .text-justify {
1512
+ text-align: justify;
1513
+ }
1514
+
1515
+ // FONT FAMILY
1516
+ .sd-text__serif,
1517
+ .sd-text--serif {
1518
+ font-family: $baseFontFamilySerif;
1519
+ }
1520
+ .sd-text--sans {
1521
+ font-family: $baseFontFamily;
1522
+ }
1523
+ .sd-text--mono {
1524
+ font-family: $baseFontFamilyMono;
1525
+ }
1526
+
1527
+ // WHITESPACE
1528
+ .sd-whitespace--normal,
1529
+ .whitespace-normal {
1530
+ white-space: normal;
1531
+ }
1532
+ .sd-whitespace--nowrap,
1533
+ .whitespace-nowrap {
1534
+ white-space: nowrap;
1535
+ }
1536
+ .sd-whitespace--pre,
1537
+ .whitespace-pre {
1538
+ white-space: pre;
1539
+ }
1540
+ .sd-whitespace--pre-line,
1541
+ .whitespace-pre-line {
1542
+ white-space: pre-line;
1543
+ }
1544
+ .sd-whitespace--pre-wrap,
1545
+ .whitespace-pre-wrap {
1546
+ white-space: pre-wrap;
1547
+ }
1548
+ .whitespace-break-spaces {
1549
+ white-space: break-spaces;
1550
+ }
1551
+
1552
+ // TEXT TRANSFORM
1553
+ .sd-txt-transform--uppercase,
1554
+ .text-uppercase {
1555
+ text-transform: uppercase;
1556
+ }
1557
+
1558
+ .sd-txt-transform--lowercase,
1559
+ .text-lowercase {
1560
+ text-transform: lowercase;
1561
+ }
1562
+
1563
+ .sd-txt-transform--capitalize,
1564
+ .text-capitalize {
1565
+ text-transform: capitalize;
1566
+ }
1567
+
1568
+ .sd-txt-transform--none,
1569
+ .text-normal-case {
1570
+ text-transform: none;
1571
+ }
1572
+
1573
+ // TEXT DECORATION
1574
+ .sd-txt-decoration--underline,
1575
+ .text-underline {
1576
+ text-decoration: underline;
1577
+ }
1578
+ .sd-txt-decoration--line-through,
1579
+ .text-line-through {
1580
+ text-decoration: line-through;
1581
+ }
1582
+ .sd-txt-decoration--none,
1583
+ .text-no-underline {
1584
+ text-decoration: none;
1585
+ }
1586
+
1587
+ // TEXT OVERFLOW
1588
+ .sd-overflow-ellipsis,
1589
+ .sd-overflow--ellipsis,
1590
+ .text-ellipsis {
1591
+ overflow: hidden;
1592
+ text-overflow: ellipsis;
1593
+ white-space: nowrap;
1594
+ }
1595
+ .text-clip {
1596
+ text-overflow: clip;
1597
+ }
1598
+
1599
+ // TEXT WRAP
1600
+ .text-wrap {
1601
+ text-wrap: wrap;
1602
+ }
1603
+ .text-nowrap {
1604
+ text-wrap: clip;
1605
+ }
1606
+ .text-balance {
1607
+ text-wrap: balance;
1608
+ }
1609
+ .text-pretty {
1610
+ text-wrap: pretty;
1611
+ }
1612
+
1613
+ // WORD BREAK
1614
+ .sd-word-break--normal,
1615
+ .break-normal {
1616
+ overflow-wrap: normal;
1617
+ word-break: normal;
1618
+ }
1619
+ .sd-word-break--words,
1620
+ .break-words {
1621
+ overflow-wrap: break-word;
1622
+ }
1623
+ .sd-word-break--all,
1624
+ .break-all {
1625
+ word-break: break-all;
1626
+ }
1627
+
1628
+ // LINE CLAMP
1629
+ // limit the number of horizontal lines in an elemnt (e.g. <p>)
1630
+ // it doesn't work if the element has set flex-grow: 1;
1631
+ @mixin line-clamp-base {
1632
+ overflow: hidden;
1633
+ display: -webkit-box;
1634
+ -webkit-box-orient: vertical;
1635
+ }
1636
+ .sd-line-clamp--1,
1637
+ .line-clamp-1 {
1638
+ @include line-clamp-base;
1639
+ -webkit-line-clamp: 1;
1640
+ }
1641
+ .sd-line-clamp--2,
1642
+ .line-clamp-2 {
1643
+ @include line-clamp-base;
1644
+ -webkit-line-clamp: 2;
1645
+ }
1646
+ .sd-line-clamp--3,
1647
+ .line-clamp-3 {
1648
+ @include line-clamp-base;
1649
+ -webkit-line-clamp: 3;
1650
+ }
1651
+ .sd-line-clamp--4,
1652
+ .line-clamp-4 {
1653
+ @include line-clamp-base;
1654
+ -webkit-line-clamp: 4;
1655
+ }
1656
+ .sd-line-clamp--5,
1657
+ .line-clamp-5 {
1658
+ @include line-clamp-base;
1659
+ -webkit-line-clamp: 5;
1660
+ }
1661
+ .sd-line-clamp--6,
1662
+ .line-clamp-6 {
1663
+ @include line-clamp-base;
1664
+ -webkit-line-clamp: 6;
1665
+ }
1666
+ .sd-line-clamp--none,
1667
+ .line-clamp-none {
1668
+ -webkit-line-clamp: none;
1669
+ }
1670
+
1671
+ // ==================================================== //
1672
+
1557
1673
  // Background colours
1558
1674
  .sd-panel-bg--100 {
1559
1675
  background-color: var(--sd-colour-panel-bg--100);
@@ -1644,6 +1760,59 @@ h6 {
1644
1760
 
1645
1761
  // MAX-HEIGHT:
1646
1762
 
1763
+ .max-h-5 {
1764
+ max-height: calc(5 * var(--base-increment)) !important;
1765
+ }
1766
+ .max-h-6 {
1767
+ max-height: calc(6 * var(--base-increment)) !important;
1768
+ }
1769
+ .max-h-8 {
1770
+ max-height: calc(8 * var(--base-increment)) !important;
1771
+ }
1772
+ .max-h-10 {
1773
+ max-height: calc(10 * var(--base-increment)) !important;
1774
+ }
1775
+ .max-h-15 {
1776
+ max-height: calc(15 * var(--base-increment)) !important;
1777
+ }
1778
+ .max-h-20 {
1779
+ max-height: calc(20 * var(--base-increment)) !important;
1780
+ }
1781
+ .max-h-25 {
1782
+ max-height: calc(25 * var(--base-increment)) !important;
1783
+ }
1784
+ .max-h-30 {
1785
+ max-height: calc(30 * var(--base-increment)) !important;
1786
+ }
1787
+
1647
1788
  .max-h-full {
1648
1789
  max-height: 100%;
1649
1790
  }
1791
+ .max-h-screen {
1792
+ max-height: 100svh;
1793
+ }
1794
+
1795
+ .gap-0 {
1796
+ gap: var(--gap-0); // 0px
1797
+ }
1798
+ .gap-0-5 {
1799
+ gap: var(--gap-0-5); // 4px
1800
+ }
1801
+ .gap-1 {
1802
+ gap: var(--gap-1); // 8px
1803
+ }
1804
+ .gap-1-5 {
1805
+ gap: var(--gap-1-5); // 12px
1806
+ }
1807
+ .gap-2 {
1808
+ gap: var(--gap-2); // 16px
1809
+ }
1810
+ .gap-3 {
1811
+ gap: var(--gap-3); // 24px
1812
+ }
1813
+ .gap-4 {
1814
+ gap: var(--gap-4); // 32px
1815
+ }
1816
+ .gap-5 {
1817
+ gap: var(--gap-5); // 40px
1818
+ }
@@ -36,6 +36,7 @@
36
36
  @import 'table-list';
37
37
  @import 'hamburger';
38
38
  @import 'drag-handle';
39
+ @import 'expand-button';
39
40
 
40
41
  // Interface elements
41
42
  @import 'interface-elements/side-panel';
@@ -12,6 +12,7 @@
12
12
  align-items: center;
13
13
  color: $sd-text;
14
14
  flex-shrink: 0;
15
+ flex-grow: 1;
15
16
 
16
17
  .sd-check__group {
17
18
  padding: 0;
@@ -16,13 +16,22 @@
16
16
  --space--8: calc(8 * var(--base-increment)); // 64px;
17
17
 
18
18
  --gap--none: 0; // 0px
19
- --gap--x-small: 0.4rem; // 4px
20
- --gap--small: 0.8rem; // 8px
21
- --gap--medium-small: 1.2rem; // 12px
22
- --gap--medium: 1.6rem; // 16px
23
- --gap--large: 2.4rem; // 24px;
24
- --gap--x-large: 3.2rem; // 32px;
25
- --gap--xx-large: 4rem; // 40px;
19
+ --gap-0: 0;
20
+ --gap--x-small: calc(0.5 * var(--base-increment)); // 4px
21
+ --gap-0-5: calc(0.5 * var(--base-increment)); // 4px
22
+ --gap--small: calc(1 * var(--base-increment)); // 8px
23
+ --gap-1: calc(1 * var(--base-increment)); // 8px
24
+ --gap--medium-small: calc(1.5 * var(--base-increment)); // 12px
25
+ --gap-1-5: calc(1.5 * var(--base-increment)); // 12px
26
+ --gap--medium: calc(2 * var(--base-increment)); // 16px
27
+ --gap-2: calc(2 * var(--base-increment)); // 16px
28
+ --gap--large: calc(3 * var(--base-increment)); // 24px;
29
+ --gap-3: calc(3 * var(--base-increment)); // 24px;
30
+ --gap--x-large: calc(4 * var(--base-increment)); // 32px;
31
+ --gap-4: calc(4 * var(--base-increment)); // 32px;
32
+ --gap--xx-large: calc(5 * var(--base-increment)); // 40px;
33
+ --gap-5: calc(5 * var(--base-increment)); // 40px;
34
+
26
35
  --gap--auto: auto;
27
36
 
28
37
  // BORDER RADIUS
@@ -53,10 +62,13 @@
53
62
 
54
63
  // TEXT SIZE
55
64
  --text-size--base: 1rem;
65
+ --text-size-xx-small: calc(var(--text-size--base) * 1); // 10px;
56
66
  --text-size-x-small: calc(var(--text-size--base) * 1.2); // 12px;
57
67
  --text-size-small: calc(var(--text-size--base) * 1.4); // 14px;
58
68
  --text-size-medium: calc(var(--text-size--base) * 1.6); // 16px;
59
69
  --text-size-large: calc(var(--text-size--base) * 2); // 20px;
70
+ --text-size-x-large: calc(var(--text-size--base) * 2.4); // 24px;
71
+ --text-size-xx-large: calc(var(--text-size--base) * 3.2); // 32px;
60
72
 
61
73
 
62
74
  // SHADOW
@@ -604,9 +604,11 @@
604
604
  --sd-colour-background__base--30: hsla(0, 0%, 70%, 1);
605
605
 
606
606
  --color-text: hsla(214, 13%, 20%, 1);
607
- --color-text--inverse: hsla(214, 13%, 98%, 1);
608
607
  --color-text-light: hsla(214, 13%, 40%, 1);
608
+ --color-text-muted: hsla(214, 13%, 40%, 1);
609
609
  --color-text-lighter: hsla(214, 13%, 60%, 1);
610
+ --color-text-subdued: hsla(214, 13%, 60%, 1);
611
+ --color-text--inverse: hsla(214, 13%, 98%, 1);
610
612
  --color-icon-default: hsla(214, 13%, 30%, 1);
611
613
  --sd-slugline-color: hsla(197, 100%, 15%, 1) !important;
612
614
  --sd-time-schedule-color: hsla(268, 100%, 25%, 1);
@@ -687,7 +689,10 @@
687
689
  //color: hsla(0, 0%, 100%, 1);
688
690
  --color-text: hsla(0, 0%, 96%, 1);
689
691
  --color-text-light: hsla(214, 13%, 76%, 1);
692
+ --color-text-muted: hsla(214, 13%, 76%, 1);
690
693
  --color-text-lighter: hsla(214, 13%, 56%, 1);
694
+ --color-text-subdued: hsla(214, 13%, 56%, 1);
695
+ --color-text--inverse: hsla(214, 13%, 20%, 1);
691
696
  --color-icon-default: hsla(214, 13%, 90%, 1);
692
697
  --sd-slugline-color: hsla(197, 60%, 75%, 1) !important;
693
698
  --sd-time-schedule-color: hsla(268, 60%, 65%, 1);
@@ -700,6 +700,7 @@ $planningEditor-width: 53rem;
700
700
  grid-template-columns: [slideInLeft] auto [mainContent] 1fr [slideInRight] auto [overlayContainer] 0;
701
701
  grid-template-rows: [headerToolbar] auto [contentBlock] 1fr;
702
702
  overflow: auto;
703
+ height: 100%;
703
704
  }
704
705
 
705
706
  .sd-main-content-grid__header {
@@ -40,6 +40,10 @@ $side-panel-Bg-200: var(--sd-colour-panel-bg--200);
40
40
  color: $white;
41
41
  }
42
42
 
43
+ .side-panel__header--light {
44
+ background-color: var(--sd-colour-panel-bg--000);
45
+ }
46
+
43
47
  .side-panel__header--darker {
44
48
  background-color: var(--sd-colour-panel-bg--100);
45
49
  }
@@ -61,7 +61,7 @@ export class IconPicker extends React.PureComponent<IProps, IState> {
61
61
  itemTemplate = ({ item }: { item: IItem | null }) => item ?
62
62
  (<>
63
63
  <Icon name={item.value} />
64
- <span className="sd-text__normal sd-padding-t--1">
64
+ <span className="sd-text--normal sd-padding-t--1">
65
65
  {item.label}
66
66
  </span>
67
67
  </>) : null