neko-ui 2.2.0 → 2.3.0

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.
@@ -0,0 +1,13 @@
1
+ import { type JSXElement } from 'solid-js';
2
+ import { ColorScheme } from '../theme';
3
+ declare function Provider(props: ProviderProps): import("solid-js").JSX.Element;
4
+ export interface ProviderProps {
5
+ /** 包裹的子项 */
6
+ children?: JSXElement;
7
+ /** 响应 scheme 变化 */
8
+ onScheme?(scheme: keyof typeof ColorScheme): void;
9
+ }
10
+ export type ProviderElement = CustomElement<Omit<ProviderProps, 'onScheme'> & {
11
+ onScheme?(e: CustomEvent<keyof typeof ColorScheme>): void;
12
+ }>;
13
+ export default Provider;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "neko-ui",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Web Components UI Libraries",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
- "build": "mo build library solid-js",
8
- "changelog": "mo changelog CHANGELOG.md && eslint --fix CHANGELOG.md && git add CHANGELOG.md",
7
+ "build": "mo build library solid",
8
+ "changelog": "mo changelog CHANGELOG.md && git add CHANGELOG.md",
9
9
  "lint": "mo eslint components && mo eslint site && mo stylelint components && mo stylelint site && jest --coverage",
10
10
  "precommit": "yarn lint && yarn changelog",
11
11
  "prepare": "mo githooks pre-commit=\"yarn precommit\" commit-msg=\"npx --no -- commitlint --edit \\${1}\"",
12
- "start": "rm -rf lib && mo start library solid-js",
12
+ "start": "rm -rf lib && mo start library solid",
13
13
  "test": "jest --coverage --watchAll",
14
- "postbuild": "tsc --project node_modules/@moneko/solid-js/lib.json"
14
+ "postbuild": "tsc --project node_modules/@moneko/solid/lib.json"
15
15
  },
16
16
  "author": {
17
17
  "name": "moneko",
@@ -38,12 +38,12 @@
38
38
  "devDependencies": {
39
39
  "@commitlint/cli": "17.6.6",
40
40
  "@commitlint/config-conventional": "17.6.6",
41
- "@moneko/cli": "2.0.0-beta.9",
41
+ "@moneko/cli": "2.0.0-beta.10",
42
42
  "@moneko/common": "1.2.0",
43
- "@moneko/core": "3.0.0-beta.106",
43
+ "@moneko/core": "3.0.0-beta.112",
44
44
  "@moneko/css": "1.0.5",
45
45
  "@moneko/postcss": "1.0.30",
46
- "@moneko/solid-js": "1.2.0",
46
+ "@moneko/solid": "1.0.0",
47
47
  "@solidjs/testing-library": "0.8.4",
48
48
  "@swc/jest": "0.2.27",
49
49
  "@testing-library/jest-dom": "5.17.0",