@luoluoyu/fluentui-plus 0.1.4

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/style.css ADDED
@@ -0,0 +1 @@
1
+ *{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--fontFamilyBase)}.mm-tag{box-sizing:border-box;margin:0;color:var(--colorNeutralForeground1);font-size:var(--fontSizeBase200);line-height:calc(var(--lineHeightBase200) * var(--fontSizeBase200));list-style:none;font-family:var(--fontFamilyBase);height:auto;padding:0 var(--spacingHorizontalS);white-space:nowrap;background:var(--colorNeutralBackground2);border:var(--strokeWidthThin) solid var(--colorNeutralBackground2Hover);border-radius:var(--borderRadiusMedium);opacity:1;text-align:start;position:relative;overflow:hidden;display:inline-flex;flex-wrap:nowrap;gap:var(--spacingHorizontalS);align-items:center}.mm-tag__content{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mm-tag__close{cursor:pointer;height:100%;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center}.mm-tag--borderless{border:none}.mm-checkable-tag{cursor:pointer!important}.mm-checkable-tag--checked{background-color:var(--colorBrandBackground)!important;color:#fff!important}
@@ -0,0 +1,11 @@
1
+ // 为 Less 文件提供类型声明
2
+ declare module '*.less' {
3
+ const classes: { [key: string]: string };
4
+ export default classes;
5
+ }
6
+
7
+ // 支持 CSS 模块
8
+ declare module '*.module.less' {
9
+ const classes: { [key: string]: string };
10
+ export default classes;
11
+ }
package/package.json ADDED
@@ -0,0 +1,131 @@
1
+ {
2
+ "name": "@luoluoyu/fluentui-plus",
3
+ "version": "0.1.4",
4
+ "type": "module",
5
+ "description": "A component library based on Fluent UI, targeting Chinese enterprise applications",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.js"
14
+ },
15
+ "./es/*": "./dist/es/*",
16
+ "./lib/*": "./dist/lib/*"
17
+ },
18
+ "files": [
19
+ "dist",
20
+ "README.md",
21
+ "LICENSE"
22
+ ],
23
+ "sideEffects": false,
24
+ "scripts": {
25
+ "dev": "vite",
26
+ "build": "yarn clean && yarn build:lib",
27
+ "build:lib": "vite build",
28
+ "build:lib:dev": "cross-env NODE_ENV=development vite build",
29
+ "build:lib:prod": "cross-env NODE_ENV=production vite build",
30
+ "build:types": "tsc --emitDeclarationOnly --outDir dist",
31
+ "build:es": "cross-env BUILD_FORMAT=es vite build",
32
+ "build:cjs": "cross-env BUILD_FORMAT=cjs vite build",
33
+ "clean": "rimraf dist",
34
+ "test": "jest",
35
+ "test:watch": "jest --watch",
36
+ "test:coverage": "jest --coverage",
37
+ "lint": "eslint src --fix",
38
+ "lint:check": "eslint src",
39
+ "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
40
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
41
+ "type-check": "tsc --noEmit",
42
+ "prepublishOnly": "yarn lint:check && yarn test && yarn build",
43
+ "storybook": "storybook dev -p 6006",
44
+ "build-storybook": "storybook build",
45
+ "prepare": "husky",
46
+ "release": "standard-version && git push --follow-tags origin master",
47
+ "release:patch": "standard-version --release-as patch && git push --follow-tags origin master",
48
+ "release:minor": "standard-version --release-as minor && git push --follow-tags origin master",
49
+ "release:major": "standard-version --release-as major && git push --follow-tags origin master",
50
+ "release:first": "standard-version --first-release && git push --follow-tags origin master",
51
+ "release:dry-run": "standard-version --dry-run"
52
+ },
53
+ "lint-staged": {
54
+ "*.{js,jsx,ts,tsx}": [
55
+ "eslint --fix",
56
+ "jest --findRelatedTests --passWithNoTests"
57
+ ],
58
+ "*.{json,md,yml,yaml}": [
59
+ "prettier --write"
60
+ ]
61
+ },
62
+ "keywords": [
63
+ "react",
64
+ "typescript",
65
+ "fluent-ui",
66
+ "component-library",
67
+ "ui-components",
68
+ "enterprise"
69
+ ],
70
+ "author": "Huiru Dong",
71
+ "license": "MIT",
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "https://github.com/HuiruDong/fluentui-plus.git"
75
+ },
76
+ "bugs": {
77
+ "url": "https://github.com/HuiruDong/fluentui-plus/issues"
78
+ },
79
+ "homepage": "https://github.com/HuiruDong/fluentui-plus#readme",
80
+ "peerDependencies": {
81
+ "@fluentui/react-components": "^9.0.0",
82
+ "react": "^18.0.0",
83
+ "react-dom": "^18.0.0"
84
+ },
85
+ "devDependencies": {
86
+ "@commitlint/cli": "^19.8.1",
87
+ "@commitlint/config-conventional": "^19.8.1",
88
+ "@fluentui/react-components": "^9.54.0",
89
+ "@storybook/addon-docs": "9.0.15",
90
+ "@storybook/addon-onboarding": "9.0.15",
91
+ "@storybook/react-vite": "9.0.15",
92
+ "@testing-library/jest-dom": "^6.0.0",
93
+ "@testing-library/react": "^14.0.0",
94
+ "@types/jest": "^29.5.0",
95
+ "@types/lodash": "^4.17.19",
96
+ "@types/node": "^20.0.0",
97
+ "@types/react": "^18.2.0",
98
+ "@types/react-dom": "^18.2.0",
99
+ "@typescript-eslint/eslint-plugin": "^8.35.0",
100
+ "@typescript-eslint/parser": "^8.35.0",
101
+ "@vitejs/plugin-react": "^4.3.0",
102
+ "cross-env": "^7.0.3",
103
+ "eslint": "^9.29.0",
104
+ "eslint-config-prettier": "^10.1.5",
105
+ "eslint-plugin-react": "^7.37.5",
106
+ "eslint-plugin-react-hooks": "^5.2.0",
107
+ "eslint-plugin-storybook": "9.0.15",
108
+ "globals": "^16.3.0",
109
+ "husky": "^9.1.7",
110
+ "identity-obj-proxy": "^3.0.0",
111
+ "jest": "^29.5.0",
112
+ "jest-environment-jsdom": "^29.5.0",
113
+ "less": "^4.3.0",
114
+ "lint-staged": "^16.1.2",
115
+ "prettier": "^3.6.2",
116
+ "react": "^18.2.0",
117
+ "react-dom": "^18.2.0",
118
+ "rimraf": "^5.0.0",
119
+ "standard-version": "^9.5.0",
120
+ "storybook": "9.0.15",
121
+ "ts-jest": "^29.0.0",
122
+ "typescript": "^5.6.0",
123
+ "vite": "^5.4.0",
124
+ "vite-plugin-dts": "^4.2.0"
125
+ },
126
+ "dependencies": {
127
+ "clsx": "^2.0.0",
128
+ "lodash": "^4.17.21"
129
+ },
130
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
131
+ }