@opencode-ai/ui 0.0.0-dev-17518 → 0.0.0-dev-17534

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/dist/i18n/en.d.ts CHANGED
@@ -98,6 +98,8 @@ declare const source: {
98
98
  "ui.messagePart.context.search.other": string;
99
99
  "ui.messagePart.context.list.one": string;
100
100
  "ui.messagePart.context.list.other": string;
101
+ "ui.messagePart.context.match.one": string;
102
+ "ui.messagePart.context.match.other": string;
101
103
  "ui.list.loading": string;
102
104
  "ui.list.empty": string;
103
105
  "ui.list.clearFilter": string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencode-ai/ui",
3
- "version": "0.0.0-dev-17518",
3
+ "version": "0.0.0-dev-17534",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -104,30 +104,6 @@
104
104
  }
105
105
  }
106
106
 
107
- body:not([data-new-layout]) [data-component="accordion"] {
108
- [data-slot="accordion-item"] [data-slot="accordion-header"] [data-slot="accordion-trigger"] {
109
- background-color: var(--background-stronger);
110
- border-width: 1px;
111
- border-color: var(--border-weak-base);
112
- color: var(--text-strong);
113
-
114
- &:hover:not([data-disabled]) {
115
- background-color: var(--surface-base-hover);
116
- }
117
-
118
- &:active:not([data-disabled]) {
119
- background-color: var(--surface-base-active);
120
- }
121
- }
122
-
123
- [data-slot="accordion-item"][data-expanded] [data-slot="accordion-content"] {
124
- border-width: 1px;
125
- border-color: var(--border-weak-base);
126
- border-top: 0;
127
- background-color: var(--background-stronger);
128
- }
129
- }
130
-
131
107
  @keyframes slideDown {
132
108
  from {
133
109
  height: 0;
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  [data-slot="animated-number-digit"] {
20
- display: inline-block;
20
+ display: inline-grid;
21
21
  width: 1ch;
22
22
  height: 1em;
23
23
  line-height: 1em;
@@ -41,19 +41,12 @@
41
41
  mask-repeat: no-repeat;
42
42
  }
43
43
 
44
+ [data-slot="animated-number-static"],
44
45
  [data-slot="animated-number-strip"] {
45
- display: inline-flex;
46
- flex-direction: column;
47
- transform: translateY(calc(var(--animated-number-offset, 10) * -1em));
48
- transition-property: transform;
49
- transition-duration: var(--animated-number-duration, 560ms);
50
- transition-timing-function: var(--tool-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
51
- }
52
-
53
- [data-slot="animated-number-strip"][data-animating="false"] {
54
- transition-duration: 0ms;
46
+ grid-area: 1 / 1;
55
47
  }
56
48
 
49
+ [data-slot="animated-number-static"],
57
50
  [data-slot="animated-number-cell"] {
58
51
  display: inline-flex;
59
52
  align-items: center;
@@ -62,6 +55,24 @@
62
55
  height: 1em;
63
56
  line-height: 1em;
64
57
  }
58
+
59
+ [data-slot="animated-number-digit"][data-animating="true"] [data-slot="animated-number-static"] {
60
+ visibility: hidden;
61
+ }
62
+
63
+ [data-slot="animated-number-strip"] {
64
+ display: inline-flex;
65
+ flex-direction: column;
66
+ margin-top: calc(var(--animated-number-offset, 10) * -1em);
67
+ transition-property: margin-top;
68
+ transition-duration: var(--animated-number-duration, 560ms);
69
+ transition-timing-function: var(--tool-motion-ease, cubic-bezier(0.22, 1, 0.36, 1));
70
+ }
71
+
72
+ [data-slot="animated-number-digit"][data-animating="false"] [data-slot="animated-number-strip"] {
73
+ transition-duration: 0ms;
74
+ visibility: hidden;
75
+ }
65
76
  }
66
77
 
67
78
  @media (prefers-reduced-motion: reduce) {
@@ -71,5 +82,12 @@
71
82
 
72
83
  [data-component="animated-number"] [data-slot="animated-number-strip"] {
73
84
  transition-duration: 0ms;
85
+ visibility: hidden;
86
+ }
87
+
88
+ [data-component="animated-number"]
89
+ [data-slot="animated-number-digit"][data-animating]
90
+ [data-slot="animated-number-static"] {
91
+ visibility: visible;
74
92
  }
75
93
  }
@@ -43,10 +43,10 @@ function Digit(props: { value: number; direction: 1 | -1 }) {
43
43
  )
44
44
 
45
45
  return (
46
- <span data-slot="animated-number-digit">
46
+ <span data-slot="animated-number-digit" data-animating={animating() ? "true" : "false"}>
47
+ <span data-slot="animated-number-static">{props.value}</span>
47
48
  <span
48
49
  data-slot="animated-number-strip"
49
- data-animating={animating() ? "true" : "false"}
50
50
  onTransitionEnd={() => {
51
51
  setState("animating", false)
52
52
  setState("step", (value) => normalize(value) + 10)
@@ -92,24 +92,3 @@
92
92
  padding-left: var(--card-indent);
93
93
  }
94
94
  }
95
-
96
- body:not([data-new-layout]) [data-component="card"] {
97
- color: var(--text-strong);
98
- --card-accent: var(--icon-active);
99
-
100
- :where([data-card="title"], [data-slot="card-title"]) {
101
- color: var(--text-strong);
102
- }
103
-
104
- :where([data-slot="card-title-icon"][data-placeholder]) [data-component="icon"] {
105
- color: var(--text-weak);
106
- }
107
-
108
- :where([data-card="description"], [data-slot="card-description"]) {
109
- color: var(--text-base);
110
- }
111
-
112
- &[data-variant="error"] {
113
- --card-accent: var(--icon-critical-base) !important;
114
- }
115
- }
@@ -685,10 +685,10 @@
685
685
  position: relative;
686
686
  }
687
687
 
688
- body[data-new-layout] #review-panel [data-component="tabs"],
689
- body[data-new-layout] #terminal-panel [data-component="tabs"],
690
- body[data-new-layout] #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"],
691
- body[data-new-layout] #terminal-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
688
+ :root body #review-panel [data-component="tabs"],
689
+ :root body #terminal-panel [data-component="tabs"],
690
+ :root body #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"],
691
+ :root body #terminal-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
692
692
  background-color: var(--v2-background-bg-base);
693
693
 
694
694
  [data-slot="tabs-list"] {
@@ -708,7 +708,7 @@ body[data-new-layout] #terminal-panel [data-component="tabs"][data-variant="norm
708
708
  }
709
709
  }
710
710
 
711
- body[data-new-layout] #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
711
+ :root body #review-panel [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"] {
712
712
  [data-slot="tabs-list"] {
713
713
  height: 52px;
714
714
  padding-inline-end: 12px;
@@ -774,7 +774,7 @@ body[data-new-layout] #review-panel [data-component="tabs"][data-variant="normal
774
774
  }
775
775
  }
776
776
 
777
- body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-tabs-bar {
777
+ :root body #review-panel [data-component="tabs"] .session-review-v2-tabs-bar {
778
778
  width: 100%;
779
779
  min-width: 0;
780
780
  gap: 8px;
@@ -783,8 +783,9 @@ body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-t
783
783
  background-color: var(--v2-background-bg-base);
784
784
  }
785
785
 
786
- body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-tabs-bar [data-slot="tabs-list"],
787
- body[data-new-layout]
786
+ :root body #review-panel [data-component="tabs"] .session-review-v2-tabs-bar [data-slot="tabs-list"],
787
+ :root
788
+ body
788
789
  #review-panel
789
790
  [data-component="tabs"][data-variant="normal"][data-orientation="horizontal"]
790
791
  .session-review-v2-tabs-bar
@@ -795,12 +796,7 @@ body[data-new-layout]
795
796
  border-bottom: none;
796
797
  }
797
798
 
798
- body[data-new-layout]
799
- #review-panel
800
- [data-component="tabs"]
801
- .session-review-v2-tabs-bar
802
- [data-slot="tabs-list"]
803
- > .sticky {
799
+ :root body #review-panel [data-component="tabs"] .session-review-v2-tabs-bar [data-slot="tabs-list"] > .sticky {
804
800
  padding-inline-end: 0;
805
801
 
806
802
  [data-component="icon-button-v2"] {
@@ -820,7 +816,8 @@ body[data-new-layout]
820
816
  }
821
817
  }
822
818
 
823
- body[data-new-layout]
819
+ :root
820
+ body
824
821
  #review-panel
825
822
  [data-component="tabs"]
826
823
  .session-review-v2-tabs-bar
@@ -831,7 +828,8 @@ body[data-new-layout]
831
828
  inset-inline-end: 0;
832
829
  }
833
830
 
834
- body[data-new-layout]
831
+ :root
832
+ body
835
833
  #review-panel
836
834
  [data-component="tabs"]
837
835
  .session-review-v2-tabs-bar
@@ -879,11 +877,11 @@ body[data-new-layout]
879
877
  }
880
878
  }
881
879
 
882
- body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-open-in-app-slot {
880
+ :root body #review-panel [data-component="tabs"] .session-review-v2-open-in-app-slot {
883
881
  flex-shrink: 0;
884
882
  margin-inline-start: auto;
885
883
  }
886
884
 
887
- body[data-new-layout] #review-panel [data-component="tabs"] .session-review-v2-open-in-app {
885
+ :root body #review-panel [data-component="tabs"] .session-review-v2-open-in-app {
888
886
  flex-shrink: 0;
889
887
  }
package/src/i18n/en.ts CHANGED
@@ -108,6 +108,8 @@ const source = {
108
108
  "ui.messagePart.context.search.other": "{{count}} searches",
109
109
  "ui.messagePart.context.list.one": "{{count}} list",
110
110
  "ui.messagePart.context.list.other": "{{count}} lists",
111
+ "ui.messagePart.context.match.one": "({{count}} match)",
112
+ "ui.messagePart.context.match.other": "({{count}} matches)",
111
113
 
112
114
  "ui.list.loading": "Loading",
113
115
  "ui.list.empty": "No results",
@@ -1,16 +1,4 @@
1
1
  @layer theme {
2
- html[data-theme="oc-2"] body:not([data-new-layout]) {
3
- --text-diff-add-base: light-dark(#167517, #c4ffc0);
4
- --text-diff-delete-base: light-dark(#fa3012, #ec2f14);
5
- --syntax-comment: light-dark(#7a7a7a, #8f8f8f);
6
- --syntax-keyword: light-dark(#a753ae, #edb2f1);
7
- --syntax-string: #00ceb9;
8
- --syntax-primitive: light-dark(#034cff, #8cb0ff);
9
- --syntax-property: light-dark(#a753ae, #fab283);
10
- --syntax-type: light-dark(#8a6f00, #fcd53a);
11
- --syntax-critical: light-dark(#ff8c00, #fab283);
12
- }
13
-
14
2
  :root {
15
3
  color-scheme: light;
16
4