light-chain-open-ui 1.0.3 → 1.0.5
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/README.md +3 -12
- package/dist/{button-CREPu5oG.js → button-BnE0JWRX.js} +208 -181
- package/dist/{button-DE8_GX7q.cjs → button-DGQ4b8f2.cjs} +68 -17
- package/dist/lightchain-ui.cjs +1 -1
- package/dist/lightchain-ui.mjs +6 -5
- package/dist/react.cjs +1 -1
- package/dist/react.mjs +50 -48
- package/dist/types/components/enum-selector/enum-selector.d.ts +6 -5
- package/dist/types/components/task-workflow/task-workflow.d.ts +1 -1
- package/dist/types/styles/register-theme.d.ts +1 -0
- package/package.json +6 -2
- package/src/styles/register-theme.ts +64 -0
package/README.md
CHANGED
|
@@ -168,7 +168,7 @@ import { OPTIONS_ASPECT_RATIO } from 'light-chain-open-ui/options'
|
|
|
168
168
|
name="aspectRatio"
|
|
169
169
|
label="宽高比"
|
|
170
170
|
mode="select"
|
|
171
|
-
options={
|
|
171
|
+
options={OPTIONS_ASPECT_RATIO}
|
|
172
172
|
/>
|
|
173
173
|
```
|
|
174
174
|
|
|
@@ -177,8 +177,8 @@ import { OPTIONS_ASPECT_RATIO } from 'light-chain-open-ui/options'
|
|
|
177
177
|
默认样式会随组件一起工作。需要切换暗色主题时,引入主题样式并在页面上添加主题标记。
|
|
178
178
|
|
|
179
179
|
```ts
|
|
180
|
-
import 'light-chain-open-ui/
|
|
181
|
-
import 'light-chain-open-ui/
|
|
180
|
+
import 'light-chain-open-ui/styles/themes/default.css'
|
|
181
|
+
import 'light-chain-open-ui/styles/themes/dark.css'
|
|
182
182
|
|
|
183
183
|
document.documentElement.dataset.theme = 'dark'
|
|
184
184
|
```
|
|
@@ -222,12 +222,3 @@ document.documentElement.dataset.theme = 'dark'
|
|
|
222
222
|
]
|
|
223
223
|
}
|
|
224
224
|
```
|
|
225
|
-
|
|
226
|
-
## 打包与发布
|
|
227
|
-
|
|
228
|
-
```bash
|
|
229
|
-
npm run build
|
|
230
|
-
npm publish --access public
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
如果 npm 开启了双因素认证,需要使用支持 publish 的 automation token,或在发布时输入 OTP。
|