@univerjs/design 0.17.0 → 0.18.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.
- package/lib/cjs/index.js +322 -88
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +329 -15659
- package/lib/es/locale/ca-ES.js +1 -50
- package/lib/es/locale/en-US.js +1 -50
- package/lib/es/locale/es-ES.js +1 -50
- package/lib/es/locale/fa-IR.js +1 -50
- package/lib/es/locale/fr-FR.js +1 -50
- package/lib/es/locale/ja-JP.js +1 -50
- package/lib/es/locale/ko-KR.js +1 -50
- package/lib/es/locale/ru-RU.js +1 -50
- package/lib/es/locale/sk-SK.js +1 -50
- package/lib/es/locale/vi-VN.js +1 -50
- package/lib/es/locale/zh-CN.js +1 -50
- package/lib/es/locale/zh-TW.js +1 -50
- package/lib/index.css +2580 -1
- package/lib/index.js +329 -15659
- package/lib/locale/ca-ES.js +1 -50
- package/lib/locale/en-US.js +1 -50
- package/lib/locale/es-ES.js +1 -50
- package/lib/locale/fa-IR.js +1 -50
- package/lib/locale/fr-FR.js +1 -50
- package/lib/locale/ja-JP.js +1 -50
- package/lib/locale/ko-KR.js +1 -50
- package/lib/locale/ru-RU.js +1 -50
- package/lib/locale/sk-SK.js +1 -50
- package/lib/locale/vi-VN.js +1 -50
- package/lib/locale/zh-CN.js +1 -50
- package/lib/locale/zh-TW.js +1 -50
- package/lib/types/components/accordion/Accordion.d.ts +16 -1
- package/lib/types/components/accordion/Accordion.stories.d.ts +16 -1
- package/lib/types/components/avatar/Avatar.d.ts +18 -3
- package/lib/types/components/avatar/Avatar.stories.d.ts +16 -1
- package/lib/types/components/badge/Badge.d.ts +16 -1
- package/lib/types/components/badge/Badge.stories.d.ts +16 -1
- package/lib/types/components/button/Button.d.ts +19 -4
- package/lib/types/components/button/Button.stories.d.ts +16 -1
- package/lib/types/components/button/ButtonGroup.d.ts +17 -2
- package/lib/types/components/button/ButtonGroup.stories.d.ts +16 -1
- package/lib/types/components/calendar/Calendar.stories.d.ts +16 -1
- package/lib/types/components/cascader-list/CascaderList.stories.d.ts +16 -1
- package/lib/types/components/checkbox/Checkbox.d.ts +16 -1
- package/lib/types/components/checkbox/Checkbox.stories.d.ts +16 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +16 -1
- package/lib/types/components/checkbox-group/CheckboxGroup.stories.d.ts +16 -1
- package/lib/types/components/color-picker/ColorPicker.stories.d.ts +16 -1
- package/lib/types/components/config-provider/ConfigProvider.d.ts +17 -2
- package/lib/types/components/config-provider/ConfigProvider.stories.d.ts +16 -1
- package/lib/types/components/confirm/Confirm.d.ts +16 -1
- package/lib/types/components/confirm/Confirm.stories.d.ts +16 -1
- package/lib/types/components/date-picker/DatePicker.stories.d.ts +16 -1
- package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +16 -1
- package/lib/types/components/dialog/Dialog.d.ts +16 -1
- package/lib/types/components/dialog/Dialog.stories.d.ts +16 -1
- package/lib/types/components/dialog/DialogPrimitive.d.ts +24 -9
- package/lib/types/components/draggable-list/DraggableList.d.ts +16 -1
- package/lib/types/components/draggable-list/DraggableList.stories.d.ts +16 -1
- package/lib/types/components/dropdown/Dropdown.d.ts +16 -1
- package/lib/types/components/dropdown/Dropdown.stories.d.ts +16 -1
- package/lib/types/components/dropdown/PopoverPrimitive.d.ts +16 -1
- package/lib/types/components/dropdown-menu/DropdownMenu.d.ts +16 -1
- package/lib/types/components/dropdown-menu/DropdownMenuPrimitive.d.ts +16 -1
- package/lib/types/components/form-layout/FormLayout.d.ts +16 -1
- package/lib/types/components/form-layout/FormLayout.stories.d.ts +16 -1
- package/lib/types/components/gallery/Gallery.d.ts +1 -1
- package/lib/types/components/gallery/Gallery.stories.d.ts +16 -1
- package/lib/types/components/gradient-color-picker/GradientColorPicker.stories.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCard.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCard.stories.d.ts +16 -1
- package/lib/types/components/hover-card/HoverCardPrimitive.d.ts +4 -4
- package/lib/types/components/input/Input.d.ts +19 -4
- package/lib/types/components/input/Input.stories.d.ts +16 -1
- package/lib/types/components/input-number/InputNumber.d.ts +17 -2
- package/lib/types/components/input-number/InputNumber.stories.d.ts +16 -1
- package/lib/types/components/kbd/Kbd.stories.d.ts +16 -1
- package/lib/types/components/message/Message.d.ts +16 -1
- package/lib/types/components/message/Message.stories.d.ts +16 -1
- package/lib/types/components/pager/Pager.stories.d.ts +16 -1
- package/lib/types/components/popup/Popup.d.ts +17 -2
- package/lib/types/components/popup/Popup.stories.d.ts +16 -1
- package/lib/types/components/radio/Radio.d.ts +16 -1
- package/lib/types/components/radio/Radio.stories.d.ts +16 -1
- package/lib/types/components/radio-group/RadioGroup.d.ts +16 -1
- package/lib/types/components/radio-group/RadioGroup.stories.d.ts +16 -1
- package/lib/types/components/segmented/Segmented.stories.d.ts +16 -1
- package/lib/types/components/select/MultipleSelect.d.ts +16 -1
- package/lib/types/components/select/Select.d.ts +16 -1
- package/lib/types/components/select/Select.stories.d.ts +16 -1
- package/lib/types/components/select-list/SelectList.stories.d.ts +16 -1
- package/lib/types/components/separator/Separator.d.ts +16 -1
- package/lib/types/components/textarea/Textarea.d.ts +17 -2
- package/lib/types/components/toaster/Toaster.d.ts +16 -1
- package/lib/types/components/tooltip/Tooltip.d.ts +16 -1
- package/lib/types/components/tooltip/Tooltip.stories.d.ts +16 -1
- package/lib/types/components/tree/Tree.d.ts +16 -1
- package/lib/types/components/tree/Tree.stories.d.ts +16 -1
- package/lib/types/components/tree/util.d.ts +16 -1
- package/lib/types/components/virtual-list/VirtualList.d.ts +16 -1
- package/lib/types/helper/clsx.d.ts +16 -1
- package/lib/types/index.d.ts +0 -1
- package/lib/types/locale/ca-ES.d.ts +16 -1
- package/lib/types/locale/es-ES.d.ts +16 -1
- package/lib/types/locale/fa-IR.d.ts +16 -1
- package/lib/types/locale/fr-FR.d.ts +16 -1
- package/lib/types/locale/ja-JP.d.ts +16 -1
- package/lib/types/locale/ko-KR.d.ts +16 -1
- package/lib/types/locale/ru-RU.d.ts +16 -1
- package/lib/types/locale/sk-SK.d.ts +16 -1
- package/lib/types/locale/vi-VN.d.ts +16 -1
- package/lib/types/locale/zh-CN.d.ts +16 -1
- package/lib/types/locale/zh-TW.d.ts +16 -1
- package/lib/umd/index.js +349 -71
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +7 -9
- package/lib/types/components/menu/Menu.d.ts +0 -27
- package/lib/types/components/menu/index.d.ts +0 -17
- package/lib/types/components/menu/menu.stories.d.ts +0 -27
- package/lib/types/type.d.ts +0 -18
package/lib/umd/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignCaES=t())})(this,function(){return{design:{Confirm:{cancel:`cancel·la`,confirm:`ok`},CascaderList:{empty:`Cap`},Calendar:{year:``,weekDays:[`dg`,`dl`,`dt`,`dc`,`dj`,`dv`,`ds`],months:[`gener`,`febrer`,`març`,`abril`,`maig`,`juny`,`juliol`,`agost`,`setembre`,`octubre`,`novembre`,`desembre`]},Select:{empty:`Cap`},ColorPicker:{more:`Més colors`,cancel:`cancel·la`,confirm:`ok`},GradientColorPicker:{linear:`Lineal`,radial:`Radial`,angular:`Angular`,diamond:`Diamant`,offset:`Desplaçament`,angle:`Angle`,flip:`Girar`,delete:`Eliminar`}}}});
|
package/lib/umd/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignEnUS=t())})(this,function(){return{design:{Confirm:{cancel:`cancel`,confirm:`ok`},CascaderList:{empty:`None`},Calendar:{year:``,weekDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]},Select:{empty:`None`},ColorPicker:{more:`More Colors`,cancel:`cancel`,confirm:`ok`},GradientColorPicker:{linear:`Linear`,radial:`Radial`,angular:`Angular`,diamond:`Diamond`,offset:`Offset`,angle:`Angle`,flip:`Flip`,delete:`Delete`}}}});
|
package/lib/umd/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignEsES=t())})(this,function(){return{design:{Confirm:{cancel:`cancel·la`,confirm:`ok`},CascaderList:{empty:`Cap`},Calendar:{year:``,weekDays:[`Dg`,`Dl`,`Dt`,`Dc`,`Dj`,`Dv`,`Ds`],months:[`Gener`,`Febrer`,`Març`,`Abril`,`Maig`,`Juny`,`Juliol`,`Agost`,`Setembre`,`Octubre`,`Novembre`,`Desembre`]},Select:{empty:`Cap`},ColorPicker:{more:`Més colors`,cancel:`cancel·la`,confirm:`ok`},GradientColorPicker:{linear:`Lineal`,radial:`Radial`,angular:`Angular`,diamond:`Diamant`,offset:`Desplaçament`,angle:`Angle`,flip:`Girar`,delete:`Eliminar`}}}});
|
package/lib/umd/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignFaIR=t())})(this,function(){return{design:{Confirm:{cancel:`لغو`,confirm:`باشه`},CascaderList:{empty:`هیچ کدام`},Calendar:{year:`سال`,weekDays:[`ش`,`ی`,`د`,`س`,`چ`,`پ`,`ج`],months:[`فروردین`,`اردیبهشت`,`خرداد`,`تیر`,`مرداد`,`شهریور`,`مهر`,`آبان`,`آذر`,`دی`,`بهمن`,`اسفند`]},Select:{empty:`هیچکدام`},ColorPicker:{more:`رنگهای بیشتر`,cancel:`لغو`,confirm:`باشه`},GradientColorPicker:{linear:`خطی`,radial:`شعاعی`,angular:`زاویهای`,diamond:`الماسی`,offset:`افست`,angle:`زاویه`,flip:`برگردان`,delete:`حذف`}}}});
|
package/lib/umd/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignFrFR=t())})(this,function(){return{design:{Confirm:{cancel:`annuler`,confirm:`ok`},CascaderList:{empty:`Aucun`},Calendar:{year:``,weekDays:[`Dim`,`Lun`,`Mar`,`Mer`,`Jeu`,`Ven`,`Sam`],months:[`Janvier`,`Février`,`Mars`,`Avril`,`Mai`,`Juin`,`Juillet`,`Août`,`Septembre`,`Octobre`,`Novembre`,`Décembre`]},Select:{empty:`Aucun`},ColorPicker:{more:`Plus de couleurs`,cancel:`annuler`,confirm:`ok`},GradientColorPicker:{linear:`Linéaire`,radial:`Radial`,angular:`Angulaire`,diamond:`Diamant`,offset:`Décalage`,angle:`Angle`,flip:`Retourner`,delete:`Supprimer`}}}});
|
package/lib/umd/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignJaJP=t())})(this,function(){return{design:{Confirm:{cancel:`キャンセル`,confirm:`確認`},CascaderList:{empty:`該当なし`},Calendar:{year:`年`,weekDays:[`日`,`月`,`火`,`水`,`木`,`金`,`土`],months:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`]},Select:{empty:`該当なし`},ColorPicker:{more:`その他の色`,cancel:`キャンセル`,confirm:`確認`},GradientColorPicker:{linear:`線形`,radial:`円形`,angular:`角度`,diamond:`菱形`,offset:`オフセット`,angle:`角度`,flip:`反転`,delete:`削除`}}}});
|
package/lib/umd/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignKoKR=t())})(this,function(){return{design:{Confirm:{cancel:`취소`,confirm:`확인`},CascaderList:{empty:`없음`},Calendar:{year:`년`,weekDays:[`일`,`월`,`화`,`수`,`목`,`금`,`토`],months:[`1월`,`2월`,`3월`,`4월`,`5월`,`6월`,`7월`,`8월`,`9월`,`10월`,`11월`,`12월`]},Select:{empty:`없음`},ColorPicker:{more:`추가 색상`,cancel:`취소`,confirm:`확인`},GradientColorPicker:{linear:`선형`,radial:`방사형`,angular:`각도형`,diamond:`다이아몬드형`,offset:`오프셋`,angle:`각도`,flip:`뒤집기`,delete:`삭제`}}}});
|
package/lib/umd/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignRuRU=t())})(this,function(){return{design:{Confirm:{cancel:`отмена`,confirm:`ок`},CascaderList:{empty:`Нет`},Select:{empty:`Нет`},Calendar:{year:``,weekDays:[`Вс`,`Пн`,`Вт`,`Ср`,`Чт`,`Пт`,`Сб`],months:[`Январь`,`Февраль`,`Март`,`Апрель`,`Май`,`Июнь`,`Июль`,`Август`,`Сентябрь`,`Октябрь`,`Ноябрь`,`Декабрь`]},ColorPicker:{more:`Больше цветов`,cancel:`отмена`,confirm:`ок`},GradientColorPicker:{linear:`линейный`,radial:`радиальный`,angular:`угловой`,diamond:`ромбовидный`,offset:`смещение`,angle:`угол`,flip:`перевернуть`,delete:`удалить`}}}});
|
package/lib/umd/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignSkSK=t())})(this,function(){return{design:{Confirm:{cancel:`zrušiť`,confirm:`ok`},CascaderList:{empty:`Žiadne`},Calendar:{year:``,weekDays:[`Ne`,`Po`,`Ut`,`St`,`Št`,`Pi`,`So`],months:[`Jan`,`Feb`,`Mar`,`Apr`,`Máj`,`Jún`,`Júl`,`Aug`,`Sep`,`Okt`,`Nov`,`Dec`]},Select:{empty:`Žiadne`},ColorPicker:{more:`Viac farieb`,cancel:`zrušiť`,confirm:`ok`},GradientColorPicker:{linear:`Lineárny`,radial:`Radiálny`,angular:`Uhlový`,diamond:`Diamantový`,offset:`Posun`,angle:`Uhol`,flip:`Prevrátiť`,delete:`Odstrániť`}}}});
|
package/lib/umd/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignViVN=t())})(this,function(){return{design:{Confirm:{cancel:`Hủy bỏ`,confirm:`Xác nhận`},CascaderList:{empty:`Không có`},Calendar:{year:`Năm`,weekDays:[`CN`,`T2`,`T3`,`T4`,`T5`,`T6`,`T7`],months:[`Tháng 1`,`Tháng 2`,`Tháng 3`,`Tháng 4`,`Tháng 5`,`Tháng 6`,`Tháng 7`,`Tháng 8`,`Tháng 9`,`Tháng 10`,`Tháng 11`,`Tháng 12`]},Select:{empty:`Không có`},ColorPicker:{more:`Màu sắc khác`,cancel:`Hủy bỏ`,confirm:`Xác nhận`},GradientColorPicker:{linear:`Tuyến tính`,radial:`Tỏa ra`,angular:`Góc`,diamond:`Hình thoi`,offset:`Độ lệch`,angle:`Góc`,flip:`Lật`,delete:`Xóa`}}}});
|
package/lib/umd/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignZhCN=t())})(this,function(){return{design:{Confirm:{cancel:`取消`,confirm:`确定`},CascaderList:{empty:`无`},Calendar:{year:`年`,weekDays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],months:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},Select:{empty:`无`},ColorPicker:{more:`更多颜色`,cancel:`取消`,confirm:`确定`},GradientColorPicker:{linear:`线性`,radial:`径向`,angular:`角向`,diamond:`菱形`,offset:`偏移`,angle:`角度`,flip:`翻转`,delete:`删除`}}}});
|
package/lib/umd/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.UniverDesignZhTW=t())})(this,function(){return{design:{Confirm:{cancel:`取消`,confirm:`確定`},CascaderList:{empty:`無`},Calendar:{year:`年`,weekDays:[`日`,`一`,`二`,`三`,`四`,`五`,`六`],months:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`]},Select:{empty:`無`},ColorPicker:{more:`更多顏色`,cancel:`取消`,confirm:`確定`},GradientColorPicker:{linear:`線性`,radial:`徑向`,angular:`角向`,diamond:`菱形`,offset:`偏移`,angle:`角度`,flip:`翻轉`,delete:`刪除`}}}});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UI component library for building exceptional Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -63,9 +63,7 @@
|
|
|
63
63
|
"@univerjs/icons": "^1.1.1",
|
|
64
64
|
"class-variance-authority": "^0.7.1",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
|
-
"dayjs": "^1.11.
|
|
67
|
-
"rc-dropdown": "^4.2.1",
|
|
68
|
-
"rc-menu": "^9.16.0",
|
|
66
|
+
"dayjs": "^1.11.20",
|
|
69
67
|
"react-transition-group": "^4.4.5",
|
|
70
68
|
"sonner": "^2.0.7",
|
|
71
69
|
"tailwind-merge": "2.6.0"
|
|
@@ -80,17 +78,17 @@
|
|
|
80
78
|
"tailwindcss": "3.4.18",
|
|
81
79
|
"tailwindcss-animate": "^1.0.7",
|
|
82
80
|
"typescript": "^5.9.3",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"@univerjs-infra/shared": "0.17.0",
|
|
86
|
-
"@univerjs/core": "0.17.0"
|
|
81
|
+
"vitest": "^4.1.0",
|
|
82
|
+
"@univerjs-infra/shared": "0.18.0"
|
|
87
83
|
},
|
|
88
84
|
"scripts": {
|
|
89
85
|
"test": "vitest run",
|
|
90
86
|
"test:watch": "vitest",
|
|
91
87
|
"coverage": "vitest run --coverage",
|
|
92
88
|
"typecheck": "tsc --noEmit",
|
|
93
|
-
"build": "univer-cli build"
|
|
89
|
+
"build:bundle": "univer-cli build",
|
|
90
|
+
"build:types": "tsc -p tsconfig.node.json",
|
|
91
|
+
"build": "pnpm run build:bundle && pnpm run build:types"
|
|
94
92
|
},
|
|
95
93
|
"module": "./lib/es/index.js"
|
|
96
94
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MenuItemGroupProps, MenuItemProps, MenuProps, MenuRef, SubMenuProps } from 'rc-menu';
|
|
2
|
-
import { ComponentType } from 'react';
|
|
3
|
-
import './index.css';
|
|
4
|
-
/** @deprecated */
|
|
5
|
-
export declare const Menu: import('react').ForwardRefExoticComponent<MenuProps & {
|
|
6
|
-
wrapperClass?: string;
|
|
7
|
-
} & import('react').RefAttributes<MenuRef>>;
|
|
8
|
-
/** @deprecated */
|
|
9
|
-
export declare function MenuItem(props: MenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
/** @deprecated */
|
|
11
|
-
export declare function SubMenu(props: SubMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
/** @deprecated */
|
|
13
|
-
export declare function MenuItemGroup(props: MenuItemGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export interface ITinyMenuItem {
|
|
15
|
-
onClick: () => void;
|
|
16
|
-
className: string;
|
|
17
|
-
Icon: ComponentType<{
|
|
18
|
-
className?: string;
|
|
19
|
-
}>;
|
|
20
|
-
key: string;
|
|
21
|
-
active?: boolean;
|
|
22
|
-
tooltip?: string;
|
|
23
|
-
}
|
|
24
|
-
export interface ITinyMenuGroupProps {
|
|
25
|
-
items: ITinyMenuItem[];
|
|
26
|
-
}
|
|
27
|
-
export declare function TinyMenuGroup({ items }: ITinyMenuGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export { Menu, MenuItem, MenuItemGroup, SubMenu, TinyMenuGroup } from './Menu';
|
|
17
|
-
export type { MenuRef } from 'rc-menu';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
declare const _default: {
|
|
17
|
-
title: string;
|
|
18
|
-
component: import('react').ForwardRefExoticComponent<import('rc-menu').MenuProps & {
|
|
19
|
-
wrapperClass?: string;
|
|
20
|
-
} & import('react').RefAttributes<import('rc-menu').MenuRef>>;
|
|
21
|
-
parameters: {
|
|
22
|
-
layout: string;
|
|
23
|
-
};
|
|
24
|
-
tags: string[];
|
|
25
|
-
};
|
|
26
|
-
export default _default;
|
|
27
|
-
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
package/lib/types/type.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export interface IDisposable {
|
|
17
|
-
dispose(): void;
|
|
18
|
-
}
|