@opencode/ui 0.0.0-dev-19711 → 0.0.0-dev-19713

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.
@@ -2,4 +2,5 @@ import { type ComponentProps } from "solid-js";
2
2
  export declare function Wordmark(props: Pick<ComponentProps<"svg">, "class"> & {
3
3
  fade?: boolean;
4
4
  muted?: boolean;
5
+ outline?: boolean;
5
6
  }): import("solid-js").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode/ui",
3
- "version": "0.0.0-dev-19711",
3
+ "version": "0.0.0-dev-19713",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,6 +1,8 @@
1
1
  import { createUniqueId, type ComponentProps } from "solid-js"
2
2
 
3
- export function Wordmark(props: Pick<ComponentProps<"svg">, "class"> & { fade?: boolean; muted?: boolean }) {
3
+ export function Wordmark(
4
+ props: Pick<ComponentProps<"svg">, "class"> & { fade?: boolean; muted?: boolean; outline?: boolean },
5
+ ) {
4
6
  const mask = createUniqueId()
5
7
  const maskGradient = createUniqueId()
6
8
 
@@ -9,19 +11,51 @@ export function Wordmark(props: Pick<ComponentProps<"svg">, "class"> & { fade?:
9
11
  xmlns="http://www.w3.org/2000/svg"
10
12
  viewBox="0 0 720 129"
11
13
  fill="none"
12
- classList={{ [props.class ?? ""]: !!props.class }}
14
+ classList={{
15
+ [props.class ?? ""]: !!props.class,
16
+ "overflow-visible [&_path]:[vector-effect:non-scaling-stroke]": props.outline,
17
+ }}
13
18
  >
14
19
  <g opacity={props.muted === false ? 1 : 0.6} class="[[data-color-scheme=dark]_&]:opacity-100">
15
20
  <g mask={props.fade === false ? undefined : `url(#${mask})`}>
16
- <g opacity={props.muted === false ? 1 : 0.16 * 0.7} fill="currentColor">
17
- <path d="M55.3846 36.4286H18.4615V91.7143H55.3846V36.4286ZM73.8462 110.143H0V18H73.8462V110.143Z" />
18
- <path d="M110.462 91.7143H147.385V36.4286H110.462V91.7143ZM165.846 110.143H110.462V128.571H92V18H165.846V110.143Z" />
19
- <path d="M258.846 73.2857H203.462V91.7143H258.846V110.143H185V18H258.846V73.2857ZM203.462 54.8571H240.385V36.4286H203.462V54.8571Z" />
20
- <path d="M332.385 36.4286H295.462V110.143H277V18H332.385V36.4286ZM350.846 110.143H332.385V36.4286H350.846V110.143Z" />
21
- <path d="M442.846 36.4286H387.462V91.7143H442.846V110.143H369V18H442.846V36.4286Z" />
22
- <path d="M517.385 36.4286H480.462V91.7143H517.385V36.4286ZM535.846 110.143H462V18H535.846V110.143Z" />
23
- <path d="M609.385 36.8571H572.462V92.1429H609.385V36.8571ZM627.846 110.571H554V18.4286H609.385V0H627.846V110.571Z" />
24
- <path d="M664.462 36.4286V54.8571H701.385V36.4286H664.462ZM719.846 73.2857H664.462V91.7143H719.846V110.143H646V18H719.846V73.2857Z" />
21
+ <g
22
+ opacity={props.muted === false ? 1 : 0.16 * 0.7}
23
+ fill={props.outline ? "none" : "currentColor"}
24
+ stroke={props.outline ? "currentColor" : undefined}
25
+ stroke-width={props.outline ? 1 : undefined}
26
+ >
27
+ <path
28
+ pathLength={props.outline ? 1 : undefined}
29
+ d="M55.3846 36.4286H18.4615V91.7143H55.3846V36.4286ZM73.8462 110.143H0V18H73.8462V110.143Z"
30
+ />
31
+ <path
32
+ pathLength={props.outline ? 1 : undefined}
33
+ d="M110.462 91.7143H147.385V36.4286H110.462V91.7143ZM165.846 110.143H110.462V128.571H92V18H165.846V110.143Z"
34
+ />
35
+ <path
36
+ pathLength={props.outline ? 1 : undefined}
37
+ d="M258.846 73.2857H203.462V91.7143H258.846V110.143H185V18H258.846V73.2857ZM203.462 54.8571H240.385V36.4286H203.462V54.8571Z"
38
+ />
39
+ <path
40
+ pathLength={props.outline ? 1 : undefined}
41
+ d="M332.385 36.4286H295.462V110.143H277V18H332.385V36.4286ZM350.846 110.143H332.385V36.4286H350.846V110.143Z"
42
+ />
43
+ <path
44
+ pathLength={props.outline ? 1 : undefined}
45
+ d="M442.846 36.4286H387.462V91.7143H442.846V110.143H369V18H442.846V36.4286Z"
46
+ />
47
+ <path
48
+ pathLength={props.outline ? 1 : undefined}
49
+ d="M517.385 36.4286H480.462V91.7143H517.385V36.4286ZM535.846 110.143H462V18H535.846V110.143Z"
50
+ />
51
+ <path
52
+ pathLength={props.outline ? 1 : undefined}
53
+ d="M609.385 36.8571H572.462V92.1429H609.385V36.8571ZM627.846 110.571H554V18.4286H609.385V0H627.846V110.571Z"
54
+ />
55
+ <path
56
+ pathLength={props.outline ? 1 : undefined}
57
+ d="M664.462 36.4286V54.8571H701.385V36.4286H664.462ZM719.846 73.2857H664.462V91.7143H719.846V110.143H646V18H719.846V73.2857Z"
58
+ />
25
59
  </g>
26
60
  </g>
27
61
  </g>