naive-ui 2.30.4 → 2.30.7
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.zh-CN.md +2 -2
- package/dist/index.js +2321 -1375
- package/dist/index.prod.js +2 -2
- package/es/_internal/close/src/Close.js +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.js +1 -2
- package/es/_internal/selection/src/Selection.js +5 -3
- package/es/_utils/dom/index.d.ts +1 -0
- package/es/_utils/dom/index.js +1 -0
- package/es/_utils/dom/is-document.d.ts +1 -0
- package/es/_utils/dom/is-document.js +3 -0
- package/es/_utils/index.d.ts +2 -1
- package/es/_utils/index.js +2 -1
- package/es/_utils/vue/index.d.ts +2 -0
- package/es/_utils/vue/index.js +2 -0
- package/es/_utils/vue/is-node-v-show-false.d.ts +2 -0
- package/es/_utils/vue/is-node-v-show-false.js +6 -0
- package/es/{_internal/scrollbar/src/Wrapper.d.ts → _utils/vue/wrapper.d.ts} +0 -0
- package/es/{_internal/scrollbar/src/Wrapper.js → _utils/vue/wrapper.js} +0 -0
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/src/BackTop.js +24 -31
- package/es/button/src/styles/index.cssr.js +3 -0
- package/es/color-picker/src/ColorInputUnit.js +1 -1
- package/es/data-table/src/DataTable.d.ts +5 -2
- package/es/data-table/src/DataTable.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +5 -7
- package/es/data-table/src/TableParts/Cell.d.ts +11 -1
- package/es/data-table/src/TableParts/Cell.js +19 -6
- package/es/data-table/src/interface.d.ts +5 -2
- package/es/data-table/src/styles/index.cssr.js +7 -2
- package/es/data-table/src/use-check.js +11 -3
- package/es/date-picker/src/DatePicker.d.ts +40 -0
- package/es/date-picker/src/DatePicker.js +15 -3
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/panel/date.d.ts +4 -0
- package/es/date-picker/src/panel/daterange.d.ts +7 -1
- package/es/date-picker/src/panel/datetime.d.ts +4 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/es/date-picker/src/panel/month.d.ts +4 -0
- package/es/date-picker/src/panel/monthrange.d.ts +11 -5
- package/es/date-picker/src/panel/monthrange.js +13 -7
- package/es/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +26 -6
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/utils.js +2 -2
- package/es/date-picker/styles/_common.d.ts +4 -0
- package/es/date-picker/styles/_common.js +5 -1
- package/es/date-picker/styles/light.d.ts +8 -0
- package/es/drawer/src/DrawerBodyWrapper.js +1 -1
- package/es/grid/src/Grid.d.ts +3 -0
- package/es/grid/src/Grid.js +47 -9
- package/es/grid/src/GridItem.js +2 -1
- package/es/image/src/Image.d.ts +10 -0
- package/es/image/src/Image.js +42 -8
- package/es/image/src/utils.d.ts +11 -0
- package/es/image/src/utils.js +81 -0
- package/es/input/src/styles/input-group-label.cssr.js +2 -0
- package/es/locales/common/viVN.d.ts +3 -0
- package/es/locales/common/viVN.js +113 -0
- package/es/locales/date/viVN.d.ts +3 -0
- package/es/locales/date/viVN.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/modal/src/BodyWrapper.d.ts +13 -18
- package/es/modal/src/BodyWrapper.js +38 -33
- package/es/modal/src/Modal.js +12 -7
- package/es/modal/src/styles/index.cssr.js +1 -0
- package/es/notification/src/Notification.d.ts +3 -0
- package/es/notification/src/Notification.js +5 -2
- package/es/notification/src/NotificationContainer.d.ts +3 -0
- package/es/notification/src/NotificationProvider.d.ts +27 -0
- package/es/notification/src/styles/index.cssr.js +6 -3
- package/es/notification/styles/_common.d.ts +3 -0
- package/es/notification/styles/_common.js +4 -1
- package/es/notification/styles/light.d.ts +6 -0
- package/es/select/index.d.ts +1 -1
- package/es/select/src/Select.d.ts +4 -4
- package/es/select/src/Select.js +10 -1
- package/es/select/src/interface.d.ts +1 -0
- package/es/space/src/Space.d.ts +26 -0
- package/es/space/src/Space.js +53 -43
- package/es/tabs/src/Tabs.js +1 -1
- package/es/tooltip/index.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +4 -3
- package/es/tree/src/Tree.js +2 -1
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -1
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +27 -5
- package/es/tree-select/src/TreeSelect.js +19 -3
- package/es/tree-select/src/interface.d.ts +17 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/close/src/Close.js +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.js +2 -3
- package/lib/_internal/selection/src/Selection.js +4 -2
- package/lib/_utils/dom/index.d.ts +1 -0
- package/lib/_utils/dom/index.js +5 -0
- package/lib/_utils/dom/is-document.d.ts +1 -0
- package/lib/_utils/dom/is-document.js +7 -0
- package/lib/_utils/index.d.ts +2 -1
- package/lib/_utils/index.js +4 -1
- package/lib/_utils/vue/index.d.ts +2 -0
- package/lib/_utils/vue/index.js +5 -1
- package/lib/_utils/vue/is-node-v-show-false.d.ts +2 -0
- package/lib/_utils/vue/is-node-v-show-false.js +10 -0
- package/lib/{_internal/scrollbar/src/Wrapper.d.ts → _utils/vue/wrapper.d.ts} +0 -0
- package/lib/{_internal/scrollbar/src/Wrapper.js → _utils/vue/wrapper.js} +0 -0
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/src/BackTop.js +23 -30
- package/lib/button/src/styles/index.cssr.js +3 -0
- package/lib/color-picker/src/ColorInputUnit.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +5 -2
- package/lib/data-table/src/DataTable.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +5 -7
- package/lib/data-table/src/TableParts/Cell.d.ts +11 -1
- package/lib/data-table/src/TableParts/Cell.js +19 -6
- package/lib/data-table/src/interface.d.ts +5 -2
- package/lib/data-table/src/styles/index.cssr.js +7 -2
- package/lib/data-table/src/use-check.js +11 -3
- package/lib/date-picker/src/DatePicker.d.ts +40 -0
- package/lib/date-picker/src/DatePicker.js +15 -3
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/panel/date.d.ts +4 -0
- package/lib/date-picker/src/panel/daterange.d.ts +7 -1
- package/lib/date-picker/src/panel/datetime.d.ts +4 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +7 -1
- package/lib/date-picker/src/panel/month.d.ts +4 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +11 -5
- package/lib/date-picker/src/panel/monthrange.js +13 -7
- package/lib/date-picker/src/panel/panelHeader.d.ts +8 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +9 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +24 -4
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/utils.js +2 -2
- package/lib/date-picker/styles/_common.d.ts +4 -0
- package/lib/date-picker/styles/_common.js +5 -1
- package/lib/date-picker/styles/light.d.ts +8 -0
- package/lib/drawer/src/DrawerBodyWrapper.js +1 -1
- package/lib/grid/src/Grid.d.ts +3 -0
- package/lib/grid/src/Grid.js +45 -7
- package/lib/grid/src/GridItem.js +2 -1
- package/lib/image/src/Image.d.ts +10 -0
- package/lib/image/src/Image.js +41 -7
- package/lib/image/src/utils.d.ts +11 -0
- package/lib/image/src/utils.js +86 -0
- package/lib/input/src/styles/input-group-label.cssr.js +2 -0
- package/lib/locales/common/viVN.d.ts +3 -0
- package/lib/locales/common/viVN.js +115 -0
- package/lib/locales/date/viVN.d.ts +3 -0
- package/lib/locales/date/viVN.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -1
- package/lib/modal/src/BodyWrapper.d.ts +13 -18
- package/lib/modal/src/BodyWrapper.js +38 -33
- package/lib/modal/src/Modal.js +12 -7
- package/lib/modal/src/styles/index.cssr.js +1 -0
- package/lib/notification/src/Notification.d.ts +3 -0
- package/lib/notification/src/Notification.js +5 -2
- package/lib/notification/src/NotificationContainer.d.ts +3 -0
- package/lib/notification/src/NotificationProvider.d.ts +27 -0
- package/lib/notification/src/styles/index.cssr.js +6 -3
- package/lib/notification/styles/_common.d.ts +3 -0
- package/lib/notification/styles/_common.js +4 -1
- package/lib/notification/styles/light.d.ts +6 -0
- package/lib/select/index.d.ts +1 -1
- package/lib/select/src/Select.d.ts +4 -4
- package/lib/select/src/Select.js +10 -1
- package/lib/select/src/interface.d.ts +1 -0
- package/lib/space/src/Space.d.ts +26 -0
- package/lib/space/src/Space.js +53 -43
- package/lib/tabs/src/Tabs.js +1 -1
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +4 -3
- package/lib/tree/src/Tree.js +2 -1
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -1
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +27 -5
- package/lib/tree-select/src/TreeSelect.js +19 -3
- package/lib/tree-select/src/interface.d.ts +17 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/volar.d.ts +0 -1
- package/web-types.json +100 -10
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const viVN = {
|
|
4
|
+
name: 'vi-VN',
|
|
5
|
+
global: {
|
|
6
|
+
undo: 'Hoàn tác',
|
|
7
|
+
redo: 'Làm lại',
|
|
8
|
+
confirm: 'Xác nhận'
|
|
9
|
+
},
|
|
10
|
+
Popconfirm: {
|
|
11
|
+
positiveText: 'Xác nhận',
|
|
12
|
+
negativeText: 'Hủy'
|
|
13
|
+
},
|
|
14
|
+
Cascader: {
|
|
15
|
+
placeholder: 'Vui lòng chọn',
|
|
16
|
+
loading: 'Đang tải',
|
|
17
|
+
loadingRequiredMessage: (label) => `Vui lòng tải tất cả thông tin con của ${label} trước.`
|
|
18
|
+
},
|
|
19
|
+
Time: {
|
|
20
|
+
dateFormat: '',
|
|
21
|
+
dateTimeFormat: 'HH:mm:ss dd-MM-yyyy'
|
|
22
|
+
},
|
|
23
|
+
DatePicker: {
|
|
24
|
+
yearFormat: 'yyyy',
|
|
25
|
+
monthFormat: 'MMM',
|
|
26
|
+
dayFormat: 'eeeeee',
|
|
27
|
+
yearTypeFormat: 'yyyy',
|
|
28
|
+
monthTypeFormat: 'MM-yyyy',
|
|
29
|
+
dateFormat: 'đ-MM-yyyy',
|
|
30
|
+
dateTimeFormat: 'HH:mm:ss dd-MM-yyyy',
|
|
31
|
+
quarterFormat: 'qqq-yyyy',
|
|
32
|
+
clear: 'Xóa',
|
|
33
|
+
now: 'Hôm nay',
|
|
34
|
+
confirm: 'Xác nhận',
|
|
35
|
+
selectTime: 'Chọn giờ',
|
|
36
|
+
selectDate: 'Chọn ngày',
|
|
37
|
+
datePlaceholder: 'Chọn ngày',
|
|
38
|
+
datetimePlaceholder: 'Chọn ngày giờ',
|
|
39
|
+
monthPlaceholder: 'Chọn tháng',
|
|
40
|
+
yearPlaceholder: 'Chọn năm',
|
|
41
|
+
quarterPlaceholder: 'Chọn quý',
|
|
42
|
+
startDatePlaceholder: 'Ngày bắt đầu',
|
|
43
|
+
endDatePlaceholder: 'Ngày kết thúc',
|
|
44
|
+
startDatetimePlaceholder: 'Thời gian bắt đầu',
|
|
45
|
+
endDatetimePlaceholder: 'Thời gian kết thúc',
|
|
46
|
+
startMonthPlaceholder: 'Tháng bắt đầu',
|
|
47
|
+
endMonthPlaceholder: 'Tháng kết thúc',
|
|
48
|
+
monthBeforeYear: true,
|
|
49
|
+
firstDayOfWeek: 0,
|
|
50
|
+
today: 'Hôm nay'
|
|
51
|
+
},
|
|
52
|
+
DataTable: {
|
|
53
|
+
checkTableAll: 'Chọn tất cả có trong bảng',
|
|
54
|
+
uncheckTableAll: 'Bỏ chọn tất cả có trong bảng',
|
|
55
|
+
confirm: 'Xác nhận',
|
|
56
|
+
clear: 'Xóa'
|
|
57
|
+
},
|
|
58
|
+
Transfer: {
|
|
59
|
+
sourceTitle: 'Nguồn',
|
|
60
|
+
targetTitle: 'Đích'
|
|
61
|
+
},
|
|
62
|
+
Empty: {
|
|
63
|
+
description: 'Không có dữ liệu'
|
|
64
|
+
},
|
|
65
|
+
Select: {
|
|
66
|
+
placeholder: 'Vui lòng chọn'
|
|
67
|
+
},
|
|
68
|
+
TimePicker: {
|
|
69
|
+
placeholder: 'Chọn thời gian',
|
|
70
|
+
positiveText: 'OK',
|
|
71
|
+
negativeText: 'Hủy',
|
|
72
|
+
now: 'Hiện tại'
|
|
73
|
+
},
|
|
74
|
+
Pagination: {
|
|
75
|
+
goto: 'Đi đến trang',
|
|
76
|
+
selectionSuffix: 'trang'
|
|
77
|
+
},
|
|
78
|
+
DynamicTags: {
|
|
79
|
+
add: 'Thêm'
|
|
80
|
+
},
|
|
81
|
+
Log: {
|
|
82
|
+
loading: 'Đang tải'
|
|
83
|
+
},
|
|
84
|
+
Input: {
|
|
85
|
+
placeholder: 'Vui lòng nhập'
|
|
86
|
+
},
|
|
87
|
+
InputNumber: {
|
|
88
|
+
placeholder: 'Vui lòng nhập'
|
|
89
|
+
},
|
|
90
|
+
DynamicInput: {
|
|
91
|
+
create: 'Tạo'
|
|
92
|
+
},
|
|
93
|
+
ThemeEditor: {
|
|
94
|
+
title: 'Tùy chỉnh giao diện',
|
|
95
|
+
clearAllVars: 'Xóa tất cả các biến',
|
|
96
|
+
clearSearch: 'Xóa tìm kiếm',
|
|
97
|
+
filterCompName: 'Lọc tên component',
|
|
98
|
+
filterVarName: 'Lọc tên biến',
|
|
99
|
+
import: 'Nhập',
|
|
100
|
+
export: 'Xuất',
|
|
101
|
+
restore: 'Đặt lại mặc định'
|
|
102
|
+
},
|
|
103
|
+
Image: {
|
|
104
|
+
tipPrevious: 'Hình trước (←)',
|
|
105
|
+
tipNext: 'Hình tiếp (→)',
|
|
106
|
+
tipCounterclockwise: 'Counterclockwise',
|
|
107
|
+
tipClockwise: 'Chiều kim đồng hồ',
|
|
108
|
+
tipZoomOut: 'Thu nhỏ',
|
|
109
|
+
tipZoomIn: 'Phóng to',
|
|
110
|
+
tipClose: 'Đóng (Esc)',
|
|
111
|
+
// TODO: translation
|
|
112
|
+
tipOriginalSize: 'Xem kích thớc gốc'
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
exports.default = viVN;
|
|
@@ -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
|
+
const vi_1 = __importDefault(require("date-fns/locale/vi")); //
|
|
7
|
+
const dateVi = {
|
|
8
|
+
name: 'vi-VN',
|
|
9
|
+
locale: vi_1.default
|
|
10
|
+
};
|
|
11
|
+
exports.default = dateVi;
|
package/lib/locales/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export { default as plPL } from './common/plPL';
|
|
|
18
18
|
export { default as ptBR } from './common/ptBR';
|
|
19
19
|
export { default as thTH } from './common/thTH';
|
|
20
20
|
export { default as eo } from './common/eo';
|
|
21
|
+
export { default as viVN } from './common/viVN';
|
|
21
22
|
export { default as dateZhCN } from './date/zhCN';
|
|
22
23
|
export { default as dateZhTW } from './date/zhTW';
|
|
23
24
|
export { default as dateEnUS } from './date/enUS';
|
|
@@ -38,6 +39,7 @@ export { default as datePlPL } from './date/plPL';
|
|
|
38
39
|
export { default as datePtBR } from './date/ptBR';
|
|
39
40
|
export { default as dateThTH } from './date/thTH';
|
|
40
41
|
export { default as dateEo } from './date/eo';
|
|
42
|
+
export { default as dateViVN } from './date/viVN';
|
|
41
43
|
export type { NLocale } from './common/enUS';
|
|
42
44
|
export type { NDateLocale } from './date/enUS';
|
|
43
45
|
export type { NPartialLocale } from './utils/index';
|
package/lib/locales/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createLocale = exports.dateEo = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNlNL = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.eo = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nlNL = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
6
|
+
exports.createLocale = exports.dateViVN = exports.dateEo = exports.dateThTH = exports.datePtBR = exports.datePlPL = exports.dateEnGB = exports.dateSkSK = exports.dateItIT = exports.dateEsAR = exports.dateFrFR = exports.dateNlNL = exports.dateNbNO = exports.dateDeDE = exports.dateIdID = exports.dateKoKR = exports.dateJaJP = exports.dateUkUA = exports.dateRuRU = exports.dateEnUS = exports.dateZhTW = exports.dateZhCN = exports.viVN = exports.eo = exports.thTH = exports.ptBR = exports.plPL = exports.enGB = exports.skSK = exports.itIT = exports.esAR = exports.frFR = exports.nlNL = exports.nbNO = exports.deDE = exports.idID = exports.koKR = exports.jaJP = exports.ukUA = exports.ruRU = exports.enUS = exports.zhTW = exports.zhCN = void 0;
|
|
7
7
|
var zhCN_1 = require("./common/zhCN");
|
|
8
8
|
Object.defineProperty(exports, "zhCN", { enumerable: true, get: function () { return __importDefault(zhCN_1).default; } });
|
|
9
9
|
var zhTW_1 = require("./common/zhTW");
|
|
@@ -44,6 +44,8 @@ var thTH_1 = require("./common/thTH");
|
|
|
44
44
|
Object.defineProperty(exports, "thTH", { enumerable: true, get: function () { return __importDefault(thTH_1).default; } });
|
|
45
45
|
var eo_1 = require("./common/eo");
|
|
46
46
|
Object.defineProperty(exports, "eo", { enumerable: true, get: function () { return __importDefault(eo_1).default; } });
|
|
47
|
+
var viVN_1 = require("./common/viVN");
|
|
48
|
+
Object.defineProperty(exports, "viVN", { enumerable: true, get: function () { return __importDefault(viVN_1).default; } });
|
|
47
49
|
var zhCN_2 = require("./date/zhCN");
|
|
48
50
|
Object.defineProperty(exports, "dateZhCN", { enumerable: true, get: function () { return __importDefault(zhCN_2).default; } });
|
|
49
51
|
var zhTW_2 = require("./date/zhTW");
|
|
@@ -84,5 +86,7 @@ var thTH_2 = require("./date/thTH");
|
|
|
84
86
|
Object.defineProperty(exports, "dateThTH", { enumerable: true, get: function () { return __importDefault(thTH_2).default; } });
|
|
85
87
|
var eo_2 = require("./date/eo");
|
|
86
88
|
Object.defineProperty(exports, "dateEo", { enumerable: true, get: function () { return __importDefault(eo_2).default; } });
|
|
89
|
+
var viVN_2 = require("./date/viVN");
|
|
90
|
+
Object.defineProperty(exports, "dateViVN", { enumerable: true, get: function () { return __importDefault(viVN_2).default; } });
|
|
87
91
|
var index_1 = require("./utils/index");
|
|
88
92
|
Object.defineProperty(exports, "createLocale", { enumerable: true, get: function () { return index_1.createLocale; } });
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { PropType, VNode, ComponentPublicInstance } from 'vue';
|
|
1
|
+
import { PropType, VNode, ComponentPublicInstance, VNodeChild } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
required: true;
|
|
6
|
-
};
|
|
3
|
+
renderMask: PropType<() => VNodeChild>;
|
|
4
|
+
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
7
5
|
onBeforeLeave: {
|
|
8
6
|
type: FunctionConstructor;
|
|
9
7
|
required: true;
|
|
@@ -26,12 +24,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
24
|
};
|
|
27
25
|
onAfterEnter: PropType<() => void>;
|
|
28
26
|
onEsc: PropType<(e: KeyboardEvent) => void>;
|
|
29
|
-
icon: PropType<() =>
|
|
27
|
+
icon: PropType<() => VNodeChild>;
|
|
30
28
|
type: {
|
|
31
29
|
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
32
30
|
readonly default: "default";
|
|
33
31
|
};
|
|
34
|
-
title: PropType<string | (() =>
|
|
32
|
+
title: PropType<string | (() => VNodeChild)>;
|
|
35
33
|
closable: {
|
|
36
34
|
readonly type: BooleanConstructor;
|
|
37
35
|
readonly default: true;
|
|
@@ -40,8 +38,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
40
38
|
positiveText: StringConstructor;
|
|
41
39
|
positiveButtonProps: PropType<import("../..").ButtonProps>;
|
|
42
40
|
negativeButtonProps: PropType<import("../..").ButtonProps>;
|
|
43
|
-
content: PropType<string | (() =>
|
|
44
|
-
action: PropType<() =>
|
|
41
|
+
content: PropType<string | (() => VNodeChild)>;
|
|
42
|
+
action: PropType<() => VNodeChild>;
|
|
45
43
|
showIcon: {
|
|
46
44
|
readonly type: BooleanConstructor;
|
|
47
45
|
readonly default: true;
|
|
@@ -713,7 +711,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
713
711
|
childNodeRef: import("vue").Ref<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
714
712
|
[key: string]: any;
|
|
715
713
|
}> | null>;
|
|
716
|
-
handleClickOutside: (e: MouseEvent) => void;
|
|
717
714
|
handlePositiveClick: () => void;
|
|
718
715
|
handleNegativeClick: () => void;
|
|
719
716
|
handleCloseClick: () => void;
|
|
@@ -721,10 +718,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
721
718
|
handleBeforeLeave: (el: HTMLElement) => void;
|
|
722
719
|
handleEnter: (el: HTMLElement) => void;
|
|
723
720
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
required: true;
|
|
727
|
-
};
|
|
721
|
+
renderMask: PropType<() => VNodeChild>;
|
|
722
|
+
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
728
723
|
onBeforeLeave: {
|
|
729
724
|
type: FunctionConstructor;
|
|
730
725
|
required: true;
|
|
@@ -747,12 +742,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
747
742
|
};
|
|
748
743
|
onAfterEnter: PropType<() => void>;
|
|
749
744
|
onEsc: PropType<(e: KeyboardEvent) => void>;
|
|
750
|
-
icon: PropType<() =>
|
|
745
|
+
icon: PropType<() => VNodeChild>;
|
|
751
746
|
type: {
|
|
752
747
|
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
753
748
|
readonly default: "default";
|
|
754
749
|
};
|
|
755
|
-
title: PropType<string | (() =>
|
|
750
|
+
title: PropType<string | (() => VNodeChild)>;
|
|
756
751
|
closable: {
|
|
757
752
|
readonly type: BooleanConstructor;
|
|
758
753
|
readonly default: true;
|
|
@@ -761,8 +756,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
761
756
|
positiveText: StringConstructor;
|
|
762
757
|
positiveButtonProps: PropType<import("../..").ButtonProps>;
|
|
763
758
|
negativeButtonProps: PropType<import("../..").ButtonProps>;
|
|
764
|
-
content: PropType<string | (() =>
|
|
765
|
-
action: PropType<() =>
|
|
759
|
+
content: PropType<string | (() => VNodeChild)>;
|
|
760
|
+
action: PropType<() => VNodeChild>;
|
|
766
761
|
showIcon: {
|
|
767
762
|
readonly type: BooleanConstructor;
|
|
768
763
|
readonly default: true;
|
|
@@ -28,12 +28,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
28
28
|
}, autoFocus: {
|
|
29
29
|
type: Boolean,
|
|
30
30
|
default: true
|
|
31
|
-
}, blockScroll: Boolean }, presetProps_1.presetProps), {
|
|
31
|
+
}, blockScroll: Boolean }, presetProps_1.presetProps), { renderMask: Function,
|
|
32
32
|
// events
|
|
33
|
-
onClickoutside: {
|
|
34
|
-
type: Function,
|
|
35
|
-
required: true
|
|
36
|
-
}, onBeforeLeave: {
|
|
33
|
+
onClickoutside: Function, onBeforeLeave: {
|
|
37
34
|
type: Function,
|
|
38
35
|
required: true
|
|
39
36
|
}, onAfterLeave: {
|
|
@@ -124,9 +121,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
124
121
|
function handlePositiveClick() {
|
|
125
122
|
props.onPositiveClick();
|
|
126
123
|
}
|
|
127
|
-
function handleClickOutside(e) {
|
|
128
|
-
props.onClickoutside(e);
|
|
129
|
-
}
|
|
130
124
|
const childNodeRef = (0, vue_1.ref)(null);
|
|
131
125
|
(0, vue_1.watch)(childNodeRef, (node) => {
|
|
132
126
|
if (node) {
|
|
@@ -150,7 +144,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
150
144
|
scrollbarRef,
|
|
151
145
|
displayed: displayedRef,
|
|
152
146
|
childNodeRef,
|
|
153
|
-
handleClickOutside,
|
|
154
147
|
handlePositiveClick,
|
|
155
148
|
handleNegativeClick,
|
|
156
149
|
handleCloseClick,
|
|
@@ -160,7 +153,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
160
153
|
};
|
|
161
154
|
},
|
|
162
155
|
render() {
|
|
163
|
-
const { $slots, $attrs, handleEnter, handleAfterLeave, handleBeforeLeave,
|
|
156
|
+
const { $slots, $attrs, handleEnter, handleAfterLeave, handleBeforeLeave, preset, mergedClsPrefix } = this;
|
|
164
157
|
let childNode = null;
|
|
165
158
|
if (!preset) {
|
|
166
159
|
childNode = (0, _utils_1.getFirstSlotVNode)($slots);
|
|
@@ -176,29 +169,41 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
176
169
|
return this.displayDirective === 'show' || this.displayed || this.show
|
|
177
170
|
? (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", class: `${mergedClsPrefix}-modal-body-wrapper` },
|
|
178
171
|
(0, vue_1.h)(_internal_1.NScrollbar, { ref: "scrollbarRef", theme: this.mergedTheme.peers.Scrollbar, themeOverrides: this.mergedTheme.peerOverrides.Scrollbar, contentClass: `${mergedClsPrefix}-modal-scroll-content` }, {
|
|
179
|
-
default: () =>
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
172
|
+
default: () => {
|
|
173
|
+
var _a;
|
|
174
|
+
return [
|
|
175
|
+
(_a = this.renderMask) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
176
|
+
(0, vue_1.h)(vueuc_1.VFocusTrap, { disabled: !this.trapFocus, active: this.show, onEsc: this.onEsc, autoFocus: this.autoFocus }, {
|
|
177
|
+
default: () => {
|
|
178
|
+
var _a;
|
|
179
|
+
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-scale-up-transition", appear: (_a = this.appear) !== null && _a !== void 0 ? _a : this.isMounted, onEnter: handleEnter, onAfterEnter: this.onAfterEnter, onAfterLeave: handleAfterLeave, onBeforeLeave: handleBeforeLeave }, {
|
|
180
|
+
default: () => {
|
|
181
|
+
const dirs = [
|
|
182
|
+
[vue_1.vShow, this.show]
|
|
183
|
+
];
|
|
184
|
+
const { onClickoutside } = this;
|
|
185
|
+
if (onClickoutside) {
|
|
186
|
+
dirs.push([
|
|
187
|
+
vdirs_1.clickoutside,
|
|
188
|
+
this.onClickoutside,
|
|
189
|
+
undefined,
|
|
190
|
+
{ capture: true }
|
|
191
|
+
]);
|
|
192
|
+
}
|
|
193
|
+
return (0, vue_1.withDirectives)((this.preset === 'confirm' ||
|
|
194
|
+
this.preset === 'dialog' ? ((0, vue_1.h)(Dialog_1.NDialog, Object.assign({}, this.$attrs, { class: [
|
|
195
|
+
`${mergedClsPrefix}-modal`,
|
|
196
|
+
this.$attrs.class
|
|
197
|
+
], ref: "bodyRef", theme: this.mergedTheme.peers.Dialog, themeOverrides: this.mergedTheme.peerOverrides.Dialog }, (0, _utils_1.keep)(this.$props, dialogProps_1.dialogPropKeys), { "aria-modal": "true" }), $slots)) : this.preset === 'card' ? ((0, vue_1.h)(card_1.NCard, Object.assign({}, this.$attrs, { ref: "bodyRef", class: [
|
|
198
|
+
`${mergedClsPrefix}-modal`,
|
|
199
|
+
this.$attrs.class
|
|
200
|
+
], theme: this.mergedTheme.peers.Card, themeOverrides: this.mergedTheme.peerOverrides.Card }, (0, _utils_1.keep)(this.$props, Card_1.cardBasePropKeys), { "aria-modal": "true", role: "dialog" }), $slots)) : ((this.childNodeRef = childNode))), dirs);
|
|
201
|
+
}
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
];
|
|
206
|
+
}
|
|
202
207
|
})), [
|
|
203
208
|
[
|
|
204
209
|
vue_1.vShow,
|
package/lib/modal/src/Modal.js
CHANGED
|
@@ -217,19 +217,24 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
217
217
|
const { mergedClsPrefix } = this;
|
|
218
218
|
return ((0, vue_1.h)(vueuc_1.VLazyTeleport, { to: this.to, show: this.show }, {
|
|
219
219
|
default: () => {
|
|
220
|
-
var _a
|
|
220
|
+
var _a;
|
|
221
221
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
222
|
+
const { unstableShowMask } = this;
|
|
222
223
|
return (0, vue_1.withDirectives)((0, vue_1.h)("div", { role: "none", ref: "containerRef", class: [
|
|
223
224
|
`${mergedClsPrefix}-modal-container`,
|
|
224
225
|
this.themeClass,
|
|
225
226
|
this.namespace
|
|
226
227
|
], style: this.cssVars },
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
(0, vue_1.h)(BodyWrapper_1.default, Object.assign({ style: this.overlayStyle }, this.$attrs, { ref: "bodyWrapper", displayDirective: this.displayDirective, show: this.show, preset: this.preset, autoFocus: this.autoFocus, trapFocus: this.trapFocus, blockScroll: this.blockScroll }, this.presetProps, { onEsc: this.handleEsc, onClose: this.handleCloseClick, onNegativeClick: this.handleNegativeClick, onPositiveClick: this.handlePositiveClick, onBeforeLeave: this.handleBeforeLeave, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave, onClickoutside: unstableShowMask ? undefined : this.handleClickoutside, renderMask: unstableShowMask
|
|
229
|
+
? () => {
|
|
230
|
+
var _a;
|
|
231
|
+
return ((0, vue_1.h)(vue_1.Transition, { name: "fade-in-transition", key: "mask", appear: (_a = this.internalAppear) !== null && _a !== void 0 ? _a : this.isMounted }, {
|
|
232
|
+
default: () => {
|
|
233
|
+
return this.show ? ((0, vue_1.h)("div", { "aria-hidden": true, ref: "containerRef", class: `${mergedClsPrefix}-modal-mask`, onClick: this.handleClickoutside })) : null;
|
|
234
|
+
}
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
: undefined }), this.$slots)), [
|
|
233
238
|
[
|
|
234
239
|
vdirs_1.zindexable,
|
|
235
240
|
{
|
|
@@ -72,6 +72,9 @@ export declare const Notification: import("vue").DefineComponent<{
|
|
|
72
72
|
'--n-padding-right': string;
|
|
73
73
|
'--n-padding-top': string;
|
|
74
74
|
'--n-padding-bottom': string;
|
|
75
|
+
'--n-title-font-size': string;
|
|
76
|
+
'--n-meta-font-size': string;
|
|
77
|
+
'--n-description-font-size': string;
|
|
75
78
|
}> | undefined;
|
|
76
79
|
themeClass: import("vue").Ref<string> | undefined;
|
|
77
80
|
onRender: (() => void) | undefined;
|
|
@@ -46,7 +46,7 @@ exports.Notification = (0, vue_1.defineComponent)({
|
|
|
46
46
|
const { inlineThemeDisabled } = (0, _mixins_1.useConfig)();
|
|
47
47
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
48
48
|
const { type } = props;
|
|
49
|
-
const { self: { color, textColor, closeIconColor, closeIconColorHover, closeIconColorPressed, headerTextColor, descriptionTextColor, actionTextColor, borderRadius, headerFontWeight, boxShadow, lineHeight, fontSize, closeMargin, closeSize, width, padding, closeIconSize, closeBorderRadius, closeColorHover, closeColorPressed, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseOut, cubicBezierEaseIn, cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
49
|
+
const { self: { color, textColor, closeIconColor, closeIconColorHover, closeIconColorPressed, headerTextColor, descriptionTextColor, actionTextColor, borderRadius, headerFontWeight, boxShadow, lineHeight, fontSize, closeMargin, closeSize, width, padding, closeIconSize, closeBorderRadius, closeColorHover, closeColorPressed, titleFontSize, metaFontSize, descriptionFontSize, [(0, _utils_1.createKey)('iconColor', type)]: iconColor }, common: { cubicBezierEaseOut, cubicBezierEaseIn, cubicBezierEaseInOut } } = mergedThemeRef.value;
|
|
50
50
|
const { left, right, top, bottom } = (0, seemly_1.getPadding)(padding);
|
|
51
51
|
return {
|
|
52
52
|
'--n-color': color,
|
|
@@ -76,7 +76,10 @@ exports.Notification = (0, vue_1.defineComponent)({
|
|
|
76
76
|
'--n-padding-left': left,
|
|
77
77
|
'--n-padding-right': right,
|
|
78
78
|
'--n-padding-top': top,
|
|
79
|
-
'--n-padding-bottom': bottom
|
|
79
|
+
'--n-padding-bottom': bottom,
|
|
80
|
+
'--n-title-font-size': titleFontSize,
|
|
81
|
+
'--n-meta-font-size': metaFontSize,
|
|
82
|
+
'--n-description-font-size': descriptionFontSize
|
|
80
83
|
};
|
|
81
84
|
});
|
|
82
85
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -144,6 +144,9 @@ export declare const NotificationContainer: import("vue").DefineComponent<{
|
|
|
144
144
|
closeIconSize: string;
|
|
145
145
|
width: string;
|
|
146
146
|
padding: string;
|
|
147
|
+
titleFontSize: string;
|
|
148
|
+
metaFontSize: string;
|
|
149
|
+
descriptionFontSize: string;
|
|
147
150
|
};
|
|
148
151
|
peers: {
|
|
149
152
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
@@ -75,6 +75,9 @@ declare const notificationProviderProps: {
|
|
|
75
75
|
closeIconSize: string;
|
|
76
76
|
width: string;
|
|
77
77
|
padding: string;
|
|
78
|
+
titleFontSize: string;
|
|
79
|
+
metaFontSize: string;
|
|
80
|
+
descriptionFontSize: string;
|
|
78
81
|
}, {
|
|
79
82
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
80
83
|
color: string;
|
|
@@ -108,6 +111,9 @@ declare const notificationProviderProps: {
|
|
|
108
111
|
closeIconSize: string;
|
|
109
112
|
width: string;
|
|
110
113
|
padding: string;
|
|
114
|
+
titleFontSize: string;
|
|
115
|
+
metaFontSize: string;
|
|
116
|
+
descriptionFontSize: string;
|
|
111
117
|
}, {
|
|
112
118
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
113
119
|
color: string;
|
|
@@ -141,6 +147,9 @@ declare const notificationProviderProps: {
|
|
|
141
147
|
closeIconSize: string;
|
|
142
148
|
width: string;
|
|
143
149
|
padding: string;
|
|
150
|
+
titleFontSize: string;
|
|
151
|
+
metaFontSize: string;
|
|
152
|
+
descriptionFontSize: string;
|
|
144
153
|
}, {
|
|
145
154
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
146
155
|
color: string;
|
|
@@ -188,6 +197,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
188
197
|
closeIconSize: string;
|
|
189
198
|
width: string;
|
|
190
199
|
padding: string;
|
|
200
|
+
titleFontSize: string;
|
|
201
|
+
metaFontSize: string;
|
|
202
|
+
descriptionFontSize: string;
|
|
191
203
|
}, {
|
|
192
204
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
193
205
|
color: string;
|
|
@@ -221,6 +233,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
233
|
closeIconSize: string;
|
|
222
234
|
width: string;
|
|
223
235
|
padding: string;
|
|
236
|
+
titleFontSize: string;
|
|
237
|
+
metaFontSize: string;
|
|
238
|
+
descriptionFontSize: string;
|
|
224
239
|
}, {
|
|
225
240
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
226
241
|
color: string;
|
|
@@ -254,6 +269,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
254
269
|
closeIconSize: string;
|
|
255
270
|
width: string;
|
|
256
271
|
padding: string;
|
|
272
|
+
titleFontSize: string;
|
|
273
|
+
metaFontSize: string;
|
|
274
|
+
descriptionFontSize: string;
|
|
257
275
|
}, {
|
|
258
276
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
259
277
|
color: string;
|
|
@@ -333,6 +351,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
333
351
|
closeIconSize: string;
|
|
334
352
|
width: string;
|
|
335
353
|
padding: string;
|
|
354
|
+
titleFontSize: string;
|
|
355
|
+
metaFontSize: string;
|
|
356
|
+
descriptionFontSize: string;
|
|
336
357
|
}, {
|
|
337
358
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
338
359
|
color: string;
|
|
@@ -366,6 +387,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
366
387
|
closeIconSize: string;
|
|
367
388
|
width: string;
|
|
368
389
|
padding: string;
|
|
390
|
+
titleFontSize: string;
|
|
391
|
+
metaFontSize: string;
|
|
392
|
+
descriptionFontSize: string;
|
|
369
393
|
}, {
|
|
370
394
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
371
395
|
color: string;
|
|
@@ -399,6 +423,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
399
423
|
closeIconSize: string;
|
|
400
424
|
width: string;
|
|
401
425
|
padding: string;
|
|
426
|
+
titleFontSize: string;
|
|
427
|
+
metaFontSize: string;
|
|
428
|
+
descriptionFontSize: string;
|
|
402
429
|
}, {
|
|
403
430
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
404
431
|
color: string;
|
|
@@ -11,6 +11,9 @@ const cssr_1 = require("../../../_utils/cssr"); // vars:
|
|
|
11
11
|
// --n-action-text-color
|
|
12
12
|
// --n-title-text-color
|
|
13
13
|
// --n-title-font-weight
|
|
14
|
+
// --n-title-font-size
|
|
15
|
+
// --n-meta-font-size
|
|
16
|
+
// --n-description-font-size
|
|
14
17
|
// --n-bezier
|
|
15
18
|
// --n-bezier-ease-out
|
|
16
19
|
// --n-bezier-ease-in
|
|
@@ -192,7 +195,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
192
195
|
justify-content: space-between;
|
|
193
196
|
margin-top: 12px;
|
|
194
197
|
`, [(0, cssr_1.cE)('meta', `
|
|
195
|
-
font-size:
|
|
198
|
+
font-size: var(--n-meta-font-size);
|
|
196
199
|
transition: color .3s var(--n-bezier-ease-out);
|
|
197
200
|
color: var(--n-description-text-color);
|
|
198
201
|
`), (0, cssr_1.cE)('action', `
|
|
@@ -201,12 +204,12 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('notification-container', `
|
|
|
201
204
|
color: var(--n-action-text-color);
|
|
202
205
|
`)]), (0, cssr_1.cE)('header', `
|
|
203
206
|
font-weight: var(--n-title-font-weight);
|
|
204
|
-
font-size:
|
|
207
|
+
font-size: var(--n-title-font-size);
|
|
205
208
|
transition: color .3s var(--n-bezier-ease-out);
|
|
206
209
|
color: var(--n-title-text-color);
|
|
207
210
|
`), (0, cssr_1.cE)('description', `
|
|
208
211
|
margin-top: 8px;
|
|
209
|
-
font-size:
|
|
212
|
+
font-size: var(--n-description-font-size);
|
|
210
213
|
transition: color .3s var(--n-bezier-ease-out);
|
|
211
214
|
color: var(--n-description-text-color);
|
|
212
215
|
`), (0, cssr_1.cE)('content', `
|
|
@@ -26,6 +26,9 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
26
26
|
closeIconSize: string;
|
|
27
27
|
width: string;
|
|
28
28
|
padding: string;
|
|
29
|
+
titleFontSize: string;
|
|
30
|
+
metaFontSize: string;
|
|
31
|
+
descriptionFontSize: string;
|
|
29
32
|
};
|
|
30
33
|
export declare type NotificationThemeVars = ReturnType<typeof self>;
|
|
31
34
|
declare const notificationLight: import("../../_mixins").Theme<"Notification", {
|
|
@@ -55,6 +58,9 @@ declare const notificationLight: import("../../_mixins").Theme<"Notification", {
|
|
|
55
58
|
closeIconSize: string;
|
|
56
59
|
width: string;
|
|
57
60
|
padding: string;
|
|
61
|
+
titleFontSize: string;
|
|
62
|
+
metaFontSize: string;
|
|
63
|
+
descriptionFontSize: string;
|
|
58
64
|
}, {
|
|
59
65
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
60
66
|
color: string;
|
package/lib/select/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as NSelect } from './src/Select';
|
|
2
2
|
export type { SelectProps } from './src/Select';
|
|
3
|
-
export type { SelectGroupOption, SelectOption, SelectInst } from './src/interface';
|
|
3
|
+
export type { SelectGroupOption, SelectOption, SelectInst, SelectFilter } from './src/interface';
|
|
4
4
|
export type { RenderLabelImpl as SelectRenderLabel, RenderOptionImpl as SelectRenderOption } from '../_internal/select-menu/src/interface';
|
|
5
5
|
export type { RenderTag as SelectRenderTag } from '../_internal/selection/src/interface';
|