@uzum-tech/ui 1.1.3 → 1.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/index.js +396 -255
- package/dist/index.prod.js +2 -2
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/flex/index.d.ts +3 -0
- package/es/flex/index.js +1 -0
- package/es/flex/src/Flex.d.ts +116 -0
- package/es/flex/src/Flex.js +80 -0
- package/es/flex/src/styles/rtl.cssr.d.ts +2 -0
- package/es/flex/src/styles/rtl.cssr.js +4 -0
- package/es/flex/src/type.d.ts +3 -0
- package/es/flex/src/type.js +1 -0
- package/es/flex/styles/_common.d.ts +6 -0
- package/es/flex/styles/_common.js +5 -0
- package/es/flex/styles/dark.d.ts +3 -0
- package/es/flex/styles/dark.js +8 -0
- package/es/flex/styles/index.d.ts +4 -0
- package/es/flex/styles/index.js +3 -0
- package/es/flex/styles/light.d.ts +10 -0
- package/es/flex/styles/light.js +9 -0
- package/es/flex/styles/rtl.d.ts +2 -0
- package/es/flex/styles/rtl.js +5 -0
- package/es/themes/dark.js +3 -1
- package/es/themes/light.js +3 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/flex/index.d.ts +3 -0
- package/lib/flex/index.js +9 -0
- package/lib/flex/src/Flex.d.ts +116 -0
- package/lib/flex/src/Flex.js +83 -0
- package/lib/flex/src/styles/rtl.cssr.d.ts +2 -0
- package/lib/flex/src/styles/rtl.cssr.js +9 -0
- package/lib/flex/src/type.d.ts +3 -0
- package/lib/flex/src/type.js +2 -0
- package/lib/flex/styles/_common.d.ts +6 -0
- package/lib/flex/styles/_common.js +7 -0
- package/lib/flex/styles/dark.d.ts +3 -0
- package/lib/flex/styles/dark.js +13 -0
- package/lib/flex/styles/index.d.ts +4 -0
- package/lib/flex/styles/index.js +12 -0
- package/lib/flex/styles/light.d.ts +10 -0
- package/lib/flex/styles/light.js +14 -0
- package/lib/flex/styles/rtl.d.ts +2 -0
- package/lib/flex/styles/rtl.js +11 -0
- package/lib/themes/dark.js +3 -1
- package/lib/themes/light.js +3 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/volar.d.ts +1 -0
- package/web-types.json +90 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const _common_1 = __importDefault(require("./_common"));
|
|
7
|
+
const flexDark = {
|
|
8
|
+
name: 'Flex',
|
|
9
|
+
self() {
|
|
10
|
+
return _common_1.default;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.default = flexDark;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.flexRtl = exports.flexLight = exports.flexDark = void 0;
|
|
7
|
+
var dark_1 = require("./dark");
|
|
8
|
+
Object.defineProperty(exports, "flexDark", { enumerable: true, get: function () { return __importDefault(dark_1).default; } });
|
|
9
|
+
var light_1 = require("./light");
|
|
10
|
+
Object.defineProperty(exports, "flexLight", { enumerable: true, get: function () { return __importDefault(light_1).default; } });
|
|
11
|
+
var rtl_1 = require("./rtl");
|
|
12
|
+
Object.defineProperty(exports, "flexRtl", { enumerable: true, get: function () { return rtl_1.flexRtl; } });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Theme } from '../../_mixins';
|
|
2
|
+
declare function self(): {
|
|
3
|
+
gapSmall: string;
|
|
4
|
+
gapMedium: string;
|
|
5
|
+
gapLarge: string;
|
|
6
|
+
};
|
|
7
|
+
export type FlexThemeVars = ReturnType<typeof self>;
|
|
8
|
+
declare const flexLight: Theme<'Flex', FlexThemeVars>;
|
|
9
|
+
export default flexLight;
|
|
10
|
+
export type FlexTheme = typeof flexLight;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const _common_1 = __importDefault(require("./_common"));
|
|
7
|
+
function self() {
|
|
8
|
+
return _common_1.default;
|
|
9
|
+
}
|
|
10
|
+
const flexLight = {
|
|
11
|
+
name: 'Flex',
|
|
12
|
+
self
|
|
13
|
+
};
|
|
14
|
+
exports.default = flexLight;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.flexRtl = void 0;
|
|
7
|
+
const rtl_cssr_1 = __importDefault(require("../src/styles/rtl.cssr"));
|
|
8
|
+
exports.flexRtl = {
|
|
9
|
+
name: 'Flex',
|
|
10
|
+
style: rtl_cssr_1.default
|
|
11
|
+
};
|
package/lib/themes/dark.js
CHANGED
|
@@ -86,6 +86,7 @@ const styles_81 = require("../upload/styles");
|
|
|
86
86
|
const styles_82 = require("../watermark/styles");
|
|
87
87
|
const styles_83 = require("../toggle-button/styles");
|
|
88
88
|
const styles_84 = require("../_internal/account-option/styles");
|
|
89
|
+
const styles_85 = require("../flex/styles");
|
|
89
90
|
exports.darkTheme = {
|
|
90
91
|
name: 'dark',
|
|
91
92
|
common: common_1.commonDark,
|
|
@@ -172,5 +173,6 @@ exports.darkTheme = {
|
|
|
172
173
|
Typography: styles_79.typographyDark,
|
|
173
174
|
Upload: styles_81.uploadDark,
|
|
174
175
|
Watermark: styles_82.watermarkDark,
|
|
175
|
-
ToggleButton: styles_83.toggleButtonDark
|
|
176
|
+
ToggleButton: styles_83.toggleButtonDark,
|
|
177
|
+
Flex: styles_85.flexDark
|
|
176
178
|
};
|
package/lib/themes/light.js
CHANGED
|
@@ -88,6 +88,7 @@ const styles_81 = require("../upload/styles");
|
|
|
88
88
|
const styles_82 = require("../watermark/styles");
|
|
89
89
|
const styles_83 = require("../toggle-button/styles");
|
|
90
90
|
const styles_84 = require("../_internal/account-option/styles");
|
|
91
|
+
const styles_85 = require("../flex/styles");
|
|
91
92
|
exports.lightTheme = {
|
|
92
93
|
name: 'light',
|
|
93
94
|
common: common_1.commonLight,
|
|
@@ -174,5 +175,6 @@ exports.lightTheme = {
|
|
|
174
175
|
Typography: styles_78.typographyLight,
|
|
175
176
|
Upload: styles_81.uploadLight,
|
|
176
177
|
Watermark: styles_82.watermarkLight,
|
|
177
|
-
ToggleButton: styles_83.toggleButtonLight
|
|
178
|
+
ToggleButton: styles_83.toggleButtonLight,
|
|
179
|
+
Flex: styles_85.flexLight
|
|
178
180
|
};
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.1.
|
|
1
|
+
declare const _default: "1.1.4";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uzum-tech/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"start": "pnpm run dev",
|
|
12
12
|
"dev": "pnpm run clean && pnpm run gen-version && pnpm run gen-volar-dts && cross-env NODE_ENV=development vite",
|
|
13
13
|
"build:package": "pnpm run gen-version && pnpm run clean && pnpm run gen-volar-dts && tsc -b --force tsconfig.esm.json && node scripts/pre-build/pre-cjs-build.js && tsc -b --force tsconfig.cjs.json && rollup -c && pnpm run test:umd && node scripts/post-build && rimraf {es,lib}/*.tsbuildinfo",
|
|
14
|
-
"build:site": "./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
|
|
14
|
+
"build:site": "pnpm run gen-version && ./scripts/pre-build-site/pre-build-site.sh && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build && ./scripts/post-build-site/post-build-site.sh",
|
|
15
15
|
"clean": "rimraf site lib es dist node_modules/@uzum-tech/ui themes/tusimple/es themes/tusimple/lib",
|
|
16
16
|
"release:package": "pnpm run test && pnpm run build:package && npm publish --no-git-checks",
|
|
17
17
|
"release:changelog": "node scripts/release-changelog.mjs",
|
package/volar.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ declare module 'vue' {
|
|
|
142
142
|
UUploadFileList: typeof import('@uzum-tech/ui')['UUploadFileList']
|
|
143
143
|
UUploadTrigger: typeof import('@uzum-tech/ui')['UUploadTrigger']
|
|
144
144
|
UWatermark: typeof import('@uzum-tech/ui')['UWatermark']
|
|
145
|
+
UFlex: typeof import('@uzum-tech/ui')['UFlex']
|
|
145
146
|
}
|
|
146
147
|
}
|
|
147
148
|
export {}
|
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@uzum-tech/ui",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.4",
|
|
6
6
|
"js-types-syntax": "typescript",
|
|
7
7
|
"contributions": {
|
|
8
8
|
"html": {
|
|
@@ -16497,6 +16497,95 @@
|
|
|
16497
16497
|
}
|
|
16498
16498
|
]
|
|
16499
16499
|
}
|
|
16500
|
+
},
|
|
16501
|
+
{
|
|
16502
|
+
"name": "UFlex",
|
|
16503
|
+
"description": "Available since `2.37.0`.\n\nFrankly saying, it functions similarly to `u-space`. However use `u-flex` if possible.\n\n`u-flex` utilizes the flex layout, and note that the gap property might have compatibility issues with some older browsers.\n\nOn the other hand, `u-space` involves operations at the `VNode` level, which could lead to rendering issues in certain specific use cases.",
|
|
16504
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16505
|
+
"source": {
|
|
16506
|
+
"symbol": "UFlex"
|
|
16507
|
+
},
|
|
16508
|
+
"slots": [
|
|
16509
|
+
{
|
|
16510
|
+
"name": "default",
|
|
16511
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16512
|
+
"description": "Spacing content.",
|
|
16513
|
+
"description-sections": {
|
|
16514
|
+
"since": "2.37.0"
|
|
16515
|
+
}
|
|
16516
|
+
}
|
|
16517
|
+
],
|
|
16518
|
+
"attributes": [],
|
|
16519
|
+
"props": [
|
|
16520
|
+
{
|
|
16521
|
+
"name": "align",
|
|
16522
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16523
|
+
"type": "string",
|
|
16524
|
+
"description": "Way to align items, see [aligu-items](https://developer.mozilla.org/zh-CN/docs/Web/CSS/aligu-items).",
|
|
16525
|
+
"default": "undefined",
|
|
16526
|
+
"description-sections": {
|
|
16527
|
+
"since": "2.37.0"
|
|
16528
|
+
}
|
|
16529
|
+
},
|
|
16530
|
+
{
|
|
16531
|
+
"name": "justify",
|
|
16532
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16533
|
+
"type": "string",
|
|
16534
|
+
"description": "Way to justify content, see [justify-content](https://developer.mozilla.org/zh-CN/docs/Web/CSS/justify-content).",
|
|
16535
|
+
"default": "'start'",
|
|
16536
|
+
"description-sections": {
|
|
16537
|
+
"since": "2.37.0"
|
|
16538
|
+
}
|
|
16539
|
+
},
|
|
16540
|
+
{
|
|
16541
|
+
"name": "inline",
|
|
16542
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16543
|
+
"type": "boolean",
|
|
16544
|
+
"description": "Whether it's display is `inline-flex`.",
|
|
16545
|
+
"default": "false",
|
|
16546
|
+
"description-sections": {
|
|
16547
|
+
"since": "2.37.0"
|
|
16548
|
+
}
|
|
16549
|
+
},
|
|
16550
|
+
{
|
|
16551
|
+
"name": "vertical",
|
|
16552
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16553
|
+
"type": "boolean",
|
|
16554
|
+
"description": "Whether to layout content vertically.",
|
|
16555
|
+
"default": "false",
|
|
16556
|
+
"description-sections": {
|
|
16557
|
+
"since": "2.37.0"
|
|
16558
|
+
}
|
|
16559
|
+
},
|
|
16560
|
+
{
|
|
16561
|
+
"name": "reverse",
|
|
16562
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16563
|
+
"type": "boolean"
|
|
16564
|
+
},
|
|
16565
|
+
{
|
|
16566
|
+
"name": "size",
|
|
16567
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16568
|
+
"type": "'small' | 'medium' | 'large' | number | [number, number]",
|
|
16569
|
+
"description": "When it's a number, it will be used as vertical and horizontal gap, or it is `[horizontalGap, verticalGap]`.",
|
|
16570
|
+
"default": "'medium'",
|
|
16571
|
+
"description-sections": {
|
|
16572
|
+
"since": "2.37.0"
|
|
16573
|
+
}
|
|
16574
|
+
},
|
|
16575
|
+
{
|
|
16576
|
+
"name": "wrap",
|
|
16577
|
+
"doc-url": "https://www.naiveui.com/en-US/os-theme/components/flex",
|
|
16578
|
+
"type": "boolean",
|
|
16579
|
+
"description": "Whether to wrap content if `u-flex`'s width is exceeded.",
|
|
16580
|
+
"default": "true",
|
|
16581
|
+
"description-sections": {
|
|
16582
|
+
"since": "2.37.0"
|
|
16583
|
+
}
|
|
16584
|
+
}
|
|
16585
|
+
],
|
|
16586
|
+
"js": {
|
|
16587
|
+
"events": []
|
|
16588
|
+
}
|
|
16500
16589
|
}
|
|
16501
16590
|
]
|
|
16502
16591
|
}
|