@streamscloud/kit 0.94.1 → 0.94.3
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.
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
<script lang="ts">"use strict";
|
|
2
2
|
let { mark = false, subheading = null, variant = 'mono', ariaLabel } = $props();
|
|
3
|
-
|
|
4
|
-
// `standard` paints the mark in the brand accent and the type in primary text,
|
|
5
|
-
// matching the Figma master Standard lockup.
|
|
6
|
-
const markFill = $derived(variant === 'standard' ? 'var(--sc-kit--color--accent)' : 'currentColor');
|
|
3
|
+
const markFill = $derived(variant === 'standard' ? 'var(--_logo--mark-color)' : 'currentColor');
|
|
7
4
|
const typeFill = $derived(variant === 'standard' ? 'var(--sc-kit--color--text--primary)' : 'currentColor');
|
|
8
5
|
// Path data per subheading. All positioned at y ≈ 135 in the lockup viewBox.
|
|
9
6
|
// Source: Figma export — paths preserved verbatim so kerning / letter shapes
|
|
@@ -56,21 +53,16 @@ const label = $derived(ariaLabel ?? (subheading ? `Streams ${subheading}` : 'Str
|
|
|
56
53
|
|
|
57
54
|
<!--
|
|
58
55
|
@component
|
|
59
|
-
Logo — the StreamsCloud brand mark, optionally locked up with the "Streams"
|
|
60
|
-
|
|
61
|
-
the consumer sets color via the parent's CSS `color` property.
|
|
56
|
+
Logo — the StreamsCloud brand mark, optionally locked up with the "Streams" wordmark and a sub-product name.
|
|
57
|
+
The `mono` variant paints in `currentColor`; `standard` paints the mark in Streams blue, which a workspace theme does not recolor.
|
|
62
58
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
Wrap in a colored container to set the fill:
|
|
69
|
-
<div style="color: var(--sc-kit--color--accent)">
|
|
70
|
-
<Logo subheading="studio" />
|
|
71
|
-
</div>
|
|
59
|
+
### CSS Custom Properties
|
|
60
|
+
| Property | Description | Default |
|
|
61
|
+
|---|---|---|
|
|
62
|
+
| `--sc-kit--logo--mark-color` | Mark color in the `standard` variant | Streams blue (`#144ab0` light, `#5a8dec` dark) |
|
|
72
63
|
-->
|
|
73
64
|
<style>.logo {
|
|
65
|
+
--_logo--mark-color: var(--sc-kit--logo--mark-color, light-dark(#144ab0, #5a8dec));
|
|
74
66
|
display: block;
|
|
75
67
|
width: 100%;
|
|
76
68
|
height: auto;
|
|
@@ -8,7 +8,7 @@ type Props = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Color treatment.
|
|
10
10
|
* - `mono`: every path inherits `currentColor`. Compose with the parent's CSS color.
|
|
11
|
-
* - `standard`: brand-canonical two-tone — mark in `--sc-kit--color
|
|
11
|
+
* - `standard`: brand-canonical two-tone — mark in `--sc-kit--logo--mark-color` (Streams blue, independent of the theme accent), wordmark in `--sc-kit--color--text--primary`.
|
|
12
12
|
* @default 'mono'
|
|
13
13
|
*/
|
|
14
14
|
variant?: Variant;
|
|
@@ -16,19 +16,13 @@ type Props = {
|
|
|
16
16
|
ariaLabel?: string;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Logo — the StreamsCloud brand mark, optionally locked up with the "Streams"
|
|
20
|
-
*
|
|
21
|
-
* the consumer sets color via the parent's CSS `color` property.
|
|
19
|
+
* Logo — the StreamsCloud brand mark, optionally locked up with the "Streams" wordmark and a sub-product name.
|
|
20
|
+
* The `mono` variant paints in `currentColor`; `standard` paints the mark in Streams blue, which a workspace theme does not recolor.
|
|
22
21
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* Wrap in a colored container to set the fill:
|
|
29
|
-
* <div style="color: var(--sc-kit--color--accent)">
|
|
30
|
-
* <Logo subheading="studio" />
|
|
31
|
-
* </div>
|
|
22
|
+
* ### CSS Custom Properties
|
|
23
|
+
* | Property | Description | Default |
|
|
24
|
+
* |---|---|---|
|
|
25
|
+
* | `--sc-kit--logo--mark-color` | Mark color in the `standard` variant | Streams blue (`#144ab0` light, `#5a8dec` dark) |
|
|
32
26
|
*/
|
|
33
27
|
declare const Cmp: import("svelte").Component<Props, {}, "">;
|
|
34
28
|
type Cmp = ReturnType<typeof Cmp>;
|
|
@@ -136,7 +136,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
136
136
|
| Property | Description | Default |
|
|
137
137
|
|---|---|---|
|
|
138
138
|
| `--sc-kit--nav-rail--width` | Rail width | `70px` |
|
|
139
|
-
| `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `
|
|
139
|
+
| `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `--sc-kit--space--4` with `showLabels={false}` |
|
|
140
140
|
| `--sc-kit--nav-rail--background` | Rail background | `--sc-kit--color--bg--panel` |
|
|
141
141
|
| `--sc-kit--nav-rail--divider-color` | Divider before `trailingItems` | `--sc-kit--color--border` |
|
|
142
142
|
| `--sc-kit--nav-rail--item-width` | Tile width | `58px` |
|
|
@@ -168,7 +168,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
168
168
|
padding: 0.25rem 0.25rem 0;
|
|
169
169
|
}
|
|
170
170
|
.nav-rail--icons-only {
|
|
171
|
-
--_nav-rail--item-gap-default:
|
|
171
|
+
--_nav-rail--item-gap-default: var(--sc-kit--space--4);
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.nav-rail__brand {
|
|
@@ -223,7 +223,7 @@ Purely presentational: the consumer owns active state, routing and feature gatin
|
|
|
223
223
|
|
|
224
224
|
.nav-rail__divider {
|
|
225
225
|
flex-shrink: 0;
|
|
226
|
-
margin-block: calc(var(--_nav-rail--item-gap) / -
|
|
226
|
+
margin-block: calc(var(--_nav-rail--item-gap) / -4);
|
|
227
227
|
width: 2rem;
|
|
228
228
|
height: 1px;
|
|
229
229
|
background: var(--_nav-rail--divider-color);
|
|
@@ -24,7 +24,7 @@ type Props = {
|
|
|
24
24
|
* | Property | Description | Default |
|
|
25
25
|
* |---|---|---|
|
|
26
26
|
* | `--sc-kit--nav-rail--width` | Rail width | `70px` |
|
|
27
|
-
* | `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `
|
|
27
|
+
* | `--sc-kit--nav-rail--item-gap` | Vertical gap between tiles | `26px`; `--sc-kit--space--4` with `showLabels={false}` |
|
|
28
28
|
* | `--sc-kit--nav-rail--background` | Rail background | `--sc-kit--color--bg--panel` |
|
|
29
29
|
* | `--sc-kit--nav-rail--divider-color` | Divider before `trailingItems` | `--sc-kit--color--border` |
|
|
30
30
|
* | `--sc-kit--nav-rail--item-width` | Tile width | `58px` |
|
|
@@ -23,6 +23,7 @@ const handleClick = (event) => {
|
|
|
23
23
|
{#if item.href && !item.disabled}
|
|
24
24
|
<a
|
|
25
25
|
class="nav-rail-item"
|
|
26
|
+
class:nav-rail-item--icon-only={!showLabel}
|
|
26
27
|
class:nav-rail-item--active={item.active}
|
|
27
28
|
class:nav-rail-item--error={item.error}
|
|
28
29
|
href={item.href}
|
|
@@ -36,6 +37,7 @@ const handleClick = (event) => {
|
|
|
36
37
|
<button
|
|
37
38
|
type="button"
|
|
38
39
|
class="nav-rail-item"
|
|
40
|
+
class:nav-rail-item--icon-only={!showLabel}
|
|
39
41
|
class:nav-rail-item--active={item.active}
|
|
40
42
|
class:nav-rail-item--error={item.error}
|
|
41
43
|
class:nav-rail-item--disabled={item.disabled}
|
|
@@ -84,6 +86,9 @@ const handleClick = (event) => {
|
|
|
84
86
|
font-family: inherit;
|
|
85
87
|
transition: color var(--sc-kit--duration--base) var(--sc-kit--ease--default), background-color var(--sc-kit--duration--base) var(--sc-kit--ease--default);
|
|
86
88
|
}
|
|
89
|
+
.nav-rail-item--icon-only {
|
|
90
|
+
padding-block: var(--sc-kit--space--3);
|
|
91
|
+
}
|
|
87
92
|
.nav-rail-item--active {
|
|
88
93
|
color: var(--_nav-rail--item-color-active);
|
|
89
94
|
background: var(--_nav-rail--item-background-active);
|