one-design-next 0.0.15 → 0.0.16

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.
@@ -5,7 +5,6 @@
5
5
  * SkillParamPopover 定位策略一致:贴在 anchor 上方。
6
6
  */
7
7
  import { type ReactNode } from 'react';
8
- import './param-popover.scss';
9
8
  export interface InvocationParamPopoverProps {
10
9
  anchor: HTMLElement;
11
10
  label: string;
@@ -14,7 +14,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
14
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
15
15
  import { createPortal } from 'react-dom';
16
16
  import Icon from "../icon";
17
- import "./param-popover.scss";
18
17
  export function InvocationParamPopover(_ref) {
19
18
  var anchor = _ref.anchor,
20
19
  label = _ref.label,
@@ -79,4 +79,67 @@
79
79
  font-size: 14px;
80
80
  line-height: 24px;
81
81
  color: var(--odn-color-solid-black-12);
82
+ }
83
+
84
+ /* ------------------------------------------------------------------
85
+ * InvocationParamPopover · 参数编辑浮层壳
86
+ * ----------------------------------------------------------------- */
87
+ [data-odn-invocation-param-popover] {
88
+ width: auto;
89
+ min-width: 0;
90
+ max-width: none;
91
+ }
92
+
93
+ [data-odn-invocation-param-popover-body] {
94
+ transform: translateY(-100%) translateY(-6px);
95
+ background: var(--odn-color-bg-elevated, #fff);
96
+ border-radius: var(--odn-popup-border-radius, 6px);
97
+ box-shadow: var(--odn-popup-box-shadow);
98
+ filter: var(--odn-popup-filter);
99
+ overflow: hidden;
100
+ }
101
+
102
+ [data-odn-invocation-param-popover-header] {
103
+ display: flex;
104
+ align-items: center;
105
+ gap: 6px;
106
+ padding: 10px 12px;
107
+ border-bottom: 1px solid var(--odn-color-black-6);
108
+ font-size: var(--odn-popup-font-size, 13px);
109
+ font-weight: 500;
110
+ line-height: 20px;
111
+ color: var(--odn-color-solid-black-12);
112
+ }
113
+
114
+ [data-odn-invocation-param-popover-title] {
115
+ flex: 1;
116
+ min-width: 0;
117
+ overflow: hidden;
118
+ text-overflow: ellipsis;
119
+ white-space: nowrap;
120
+ }
121
+
122
+ [data-odn-invocation-param-popover-close] {
123
+ margin-left: auto;
124
+ display: inline-flex;
125
+ align-items: center;
126
+ justify-content: center;
127
+ width: 20px;
128
+ height: 20px;
129
+ padding: 0;
130
+ border: none;
131
+ border-radius: 4px;
132
+ background: transparent;
133
+ color: var(--odn-color-solid-black-9);
134
+ cursor: pointer;
135
+ }
136
+ [data-odn-invocation-param-popover-close]:hover {
137
+ background: var(--odn-color-black-4);
138
+ }
139
+
140
+ [data-odn-invocation-param-popover-content] {
141
+ padding: 12px;
142
+ font-size: var(--odn-popup-font-size, 13px);
143
+ line-height: 20px;
144
+ color: var(--odn-color-solid-black-12);
82
145
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "one-design-next",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "description": "One Design Next from TAD@tencent.com",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",