@scion/components 16.1.0 → 17.0.0

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 (47) hide show
  1. package/_index.scss +99 -1
  2. package/design/_index.scss +1 -0
  3. package/design/_theming.scss +244 -0
  4. package/design/colors/_scion-dark-colors.scss +91 -0
  5. package/design/colors/_scion-light-colors.scss +91 -0
  6. package/design/colors/_scion-static-colors.scss +4 -0
  7. package/design/components/_scion-component-tokens.scss +48 -0
  8. package/design/themes/_scion-dark-theme.scss +55 -0
  9. package/design/themes/_scion-light-theme.scss +55 -0
  10. package/esm2022/dimension/dimension.directive.mjs +6 -7
  11. package/esm2022/dimension/dimension.module.mjs +6 -7
  12. package/esm2022/sashbox/element-ref.directive.mjs +6 -7
  13. package/esm2022/sashbox/sash-initializer.directive.mjs +6 -7
  14. package/esm2022/sashbox/sash.directive.mjs +6 -7
  15. package/esm2022/sashbox/sashbox.component.mjs +20 -20
  16. package/esm2022/sashbox/sashbox.module.mjs +6 -7
  17. package/esm2022/splitter/splitter.component.mjs +20 -20
  18. package/esm2022/splitter/splitter.module.mjs +6 -7
  19. package/esm2022/throbber/ellipsis-throbber/ellipsis-throbber.component.mjs +6 -7
  20. package/esm2022/throbber/ripple-throbber/ripple-throbber.component.mjs +6 -7
  21. package/esm2022/throbber/roller-throbber/roller-throbber.component.mjs +6 -7
  22. package/esm2022/throbber/spinner-throbber/spinner-throbber.component.mjs +6 -7
  23. package/esm2022/throbber/throbber.component.mjs +9 -9
  24. package/esm2022/throbber/throbber.module.mjs +6 -7
  25. package/esm2022/viewport/native-scrollbar-track-size-provider.service.mjs +12 -10
  26. package/esm2022/viewport/scrollable.directive.mjs +6 -7
  27. package/esm2022/viewport/scrollbar/scrollbar.component.mjs +12 -12
  28. package/esm2022/viewport/viewport.component.mjs +13 -13
  29. package/esm2022/viewport/viewport.module.mjs +6 -7
  30. package/fesm2022/scion-components-dimension.mjs +8 -8
  31. package/fesm2022/scion-components-dimension.mjs.map +1 -1
  32. package/fesm2022/scion-components-sashbox.mjs +34 -33
  33. package/fesm2022/scion-components-sashbox.mjs.map +1 -1
  34. package/fesm2022/scion-components-splitter.mjs +22 -21
  35. package/fesm2022/scion-components-splitter.mjs.map +1 -1
  36. package/fesm2022/scion-components-throbber.mjs +27 -26
  37. package/fesm2022/scion-components-throbber.mjs.map +1 -1
  38. package/fesm2022/scion-components-viewport.mjs +39 -34
  39. package/fesm2022/scion-components-viewport.mjs.map +1 -1
  40. package/package.json +10 -4
  41. package/sashbox/sashbox.component.d.ts +12 -11
  42. package/splitter/splitter.component.d.ts +12 -11
  43. package/throbber/throbber.component.d.ts +3 -2
  44. package/viewport/{_scrollbar.scss → scrollbar/_scrollbar.scss} +3 -4
  45. package/viewport/scrollbar/scrollbar.component.d.ts +4 -3
  46. package/viewport/viewport.component.d.ts +6 -5
  47. /package/viewport/{_index.scss → scrollbar/_index.scss} +0 -0
@@ -11,32 +11,33 @@ import * as i0 from "@angular/core";
11
11
  * In the toolkit, {@link SciSashboxComponent} uses this splitter to divide a layout into several resizable sections.
12
12
  * Another use case would be a resizable sidebar panel.
13
13
  *
14
- * ### Usage:
14
+ * ### Usage
15
15
  *
16
16
  * ```html
17
17
  * <sci-splitter (move)="onSplitterMove($event.distance)"></sci-splitter>
18
18
  * ```
19
19
  *
20
- * ### Theme override:
21
- * The default style of the splitter is made up of shades of gray.
22
- * You can control the appearance by overriding the following CSS variables:
20
+ * ### Styling
23
21
  *
24
- * - --sci-splitter-bgcolor: Sets the background color of the splitter.
25
- * - --sci-splitter-bgcolor_hover: Sets the background color of the splitter when hovering it.
22
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
23
+ * To style a specific `sci-splitter` component, the following CSS variables can be set directly on the component.
24
+ *
25
+ * - --sci-splitter-background-color: Sets the background color of the splitter.
26
+ * - --sci-splitter-background-color-hover: Sets the background color of the splitter when hovering it.
26
27
  * - --sci-splitter-size: Sets the size of the splitter along the main axis.
27
- * - --sci-splitter-size_hover: Sets the size of the splitter along the main axis when hovering it.
28
+ * - --sci-splitter-size-hover: Sets the size of the splitter along the main axis when hovering it.
28
29
  * - --sci-splitter-touch-target-size: Sets the touch target size to move the splitter (accessibility).
29
30
  * - --sci-splitter-cross-axis-size: Sets the splitter size along the cross axis.
30
31
  * - --sci-splitter-border-radius: Sets the border radius of the splitter.
31
- * - --sci-splitter-opacity_active: Sets the opacity of the splitter while the user moves the splitter.
32
- * - --sci-splitter-opacity_hover: Sets the opacity of the splitter when hovering it.
32
+ * - --sci-splitter-opacity-active: Sets the opacity of the splitter while the user moves the splitter.
33
+ * - --sci-splitter-opacity-hover: Sets the opacity of the splitter when hovering it.
33
34
  *
34
35
  * Example:
35
36
  *
36
37
  * ```scss
37
38
  * sci-splitter {
38
- * --sci-splitter-bgcolor: black;
39
- * --sci-splitter-bgcolor_hover: black;
39
+ * --sci-splitter-background-color: black;
40
+ * --sci-splitter-background-color-hover: black;
40
41
  * }
41
42
  * ```
42
43
  */
@@ -4,9 +4,10 @@ import * as i0 from "@angular/core";
4
4
  *
5
5
  * Choose between different throbber presentations by setting the `type` property: `ellipsis`, `ripple`, `roller`, `spinner`.
6
6
  *
7
- * ### CSS styling:
7
+ * ### Styling:
8
8
  *
9
- * You can override the following CSS variables:
9
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
10
+ * To style a specific `sci-throbber` component, the following CSS variables can be set directly on the component.
10
11
  *
11
12
  * - sci-throbber-color: Sets the color of the throbber (by default, uses `lightgray`).
12
13
  * - sci-throbber-size: Defines the size of the throbber. Most throbbers are quadratic having the same width and height.
@@ -5,9 +5,8 @@
5
5
  *
6
6
  * Invoke from within the 'sci-scrollbar' selector.
7
7
  */
8
- @mixin position($theme: ()) {
9
- $scrollbar-size: map.get($theme, scrollbar-size);
10
- $scrollbar-size: 12px !default;
8
+ @mixin position() {
9
+ $scrollbar-size: 12px;
11
10
 
12
11
  position: absolute;
13
12
  transition-duration: 1s;
@@ -39,7 +38,7 @@
39
38
  *
40
39
  * Invoke from within the viewport selector.
41
40
  */
42
- @mixin hide-when-inactive($theme: ()) {
41
+ @mixin hide-when-inactive() {
43
42
  &:host-context(:not(:hover):not(:active)) sci-scrollbar:not(.scrolling) { // use :host-context to work with shadow DOM, i.e., to select the shadow host of the shadow DOM
44
43
  opacity: 0; // do not use 'display' nor 'visibility' property to fade the scrollbar
45
44
  }
@@ -8,11 +8,12 @@ import * as i0 from "@angular/core";
8
8
  * - enlarges the thumb if the mouse pointer is near the thumb
9
9
  * - allows paging on mousedown on the scroll track
10
10
  *
11
- * ### CSS styling:
11
+ * ### Styling:
12
12
  *
13
- * You can override the following CSS variables:
13
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
14
+ * To style a specific `sci-scrollbar` component, the following CSS variables can be set directly on the component.
14
15
  *
15
- * - sci-scrollbar-color: Sets the color of the scrollbar (by default, uses `rgb(78, 78, 78)`).
16
+ * - sci-scrollbar-color: Sets the color of the scrollbar.
16
17
  *
17
18
  * Example:
18
19
  *
@@ -17,7 +17,7 @@ import * as i0 from "@angular/core";
17
17
  *
18
18
  * ## Adding the viewport to a layout
19
19
  *
20
- * Typically you would add the viewport component to a flexible layout, filling the remaining space vertically and horizontally, such as a flexbox container
20
+ * Typically, you would add the viewport component to a flexible layout, filling the remaining space vertically and horizontally, such as a flexbox container
21
21
  * with the viewport's `flex` CSS property set to either `flex: auto` or `flex: 1 1 0`.
22
22
  *
23
23
  * The viewport is sized according to its content width and height. It grows to absorb any free space, thus overflowing its content only when encountering
@@ -39,7 +39,7 @@ import * as i0 from "@angular/core";
39
39
  * By default, the viewport's content is added to a CSS grid container with a single column, filling remaining space vertically and horizontally.
40
40
  * Using the `::part(content)` pseudo element selector, you can configure the grid container or apply a different layout, such as a flex or flow layout.
41
41
  *
42
- * #### Example of adding slotted content to a CSS flex container.
42
+ * #### Example of adding slotted content to a CSS flex container
43
43
  * ```css
44
44
  * sci-viewport::part(content) {
45
45
  * display: flex;
@@ -55,11 +55,12 @@ import * as i0 from "@angular/core";
55
55
  * }
56
56
  * ```
57
57
  *
58
- * ## Styling of scrollbars
58
+ * ## Styling
59
59
  *
60
- * You can override the following CSS variables to control the appearance of the scrollbar:
60
+ * To customize the default look of SCION components or support different themes, configure the `@scion/components` SCSS module in `styles.scss`.
61
+ * To style a specific `sci-viewport` component, the following CSS variables can be set directly on the component.
61
62
  *
62
- * - sci-viewport-scrollbar-color: Sets the color of the scrollbar (by default, uses `rgb(78, 78, 78)`).
63
+ * - sci-viewport-scrollbar-color: Sets the color of the scrollbar.
63
64
  *
64
65
  * ```css
65
66
  * sci-viewport {
File without changes