@univerjs/design 0.10.1 → 0.10.2

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.
Files changed (67) hide show
  1. package/lib/cjs/index.js +78 -90
  2. package/lib/cjs/locale/ca-ES.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/es-ES.js +1 -1
  5. package/lib/cjs/locale/fa-IR.js +1 -1
  6. package/lib/cjs/locale/fr-FR.js +1 -1
  7. package/lib/cjs/locale/ko-KR.js +1 -1
  8. package/lib/cjs/locale/ru-RU.js +1 -1
  9. package/lib/cjs/locale/vi-VN.js +1 -1
  10. package/lib/cjs/locale/zh-CN.js +1 -1
  11. package/lib/cjs/locale/zh-TW.js +1 -1
  12. package/lib/es/index.js +13694 -17413
  13. package/lib/es/locale/ca-ES.js +20 -449
  14. package/lib/es/locale/en-US.js +20 -169
  15. package/lib/es/locale/es-ES.js +20 -449
  16. package/lib/es/locale/fa-IR.js +20 -449
  17. package/lib/es/locale/fr-FR.js +20 -450
  18. package/lib/es/locale/ko-KR.js +20 -453
  19. package/lib/es/locale/ru-RU.js +20 -464
  20. package/lib/es/locale/vi-VN.js +20 -450
  21. package/lib/es/locale/zh-CN.js +20 -454
  22. package/lib/es/locale/zh-TW.js +20 -456
  23. package/lib/index.css +1 -1
  24. package/lib/index.js +13694 -17413
  25. package/lib/locale/ca-ES.js +20 -449
  26. package/lib/locale/en-US.js +20 -169
  27. package/lib/locale/es-ES.js +20 -449
  28. package/lib/locale/fa-IR.js +20 -449
  29. package/lib/locale/fr-FR.js +20 -450
  30. package/lib/locale/ko-KR.js +20 -453
  31. package/lib/locale/ru-RU.js +20 -464
  32. package/lib/locale/vi-VN.js +20 -450
  33. package/lib/locale/zh-CN.js +20 -454
  34. package/lib/locale/zh-TW.js +20 -456
  35. package/lib/types/components/button/Button.d.ts +1 -1
  36. package/lib/types/components/calendar/Calendar.d.ts +25 -0
  37. package/lib/types/components/calendar/Calendar.stories.d.ts +7 -0
  38. package/lib/types/components/config-provider/ConfigProvider.d.ts +1 -2
  39. package/lib/types/components/date-picker/DatePicker.d.ts +23 -6
  40. package/lib/types/components/date-range-picker/DateRangePicker.d.ts +23 -6
  41. package/lib/types/components/date-range-picker/index.d.ts +1 -1
  42. package/lib/types/components/{date-picker/index.d.ts → time-input/TimeInput.d.ts} +7 -2
  43. package/lib/types/index.d.ts +4 -3
  44. package/lib/types/locale/ca-ES.d.ts +2 -2
  45. package/lib/types/locale/en-US.d.ts +39 -2
  46. package/lib/types/locale/es-ES.d.ts +2 -2
  47. package/lib/types/locale/fa-IR.d.ts +2 -2
  48. package/lib/types/locale/fr-FR.d.ts +2 -2
  49. package/lib/types/locale/ko-KR.d.ts +2 -2
  50. package/lib/types/locale/ru-RU.d.ts +2 -2
  51. package/lib/types/locale/vi-VN.d.ts +2 -2
  52. package/lib/types/locale/zh-CN.d.ts +2 -2
  53. package/lib/types/locale/zh-TW.d.ts +2 -2
  54. package/lib/umd/index.js +77 -89
  55. package/lib/umd/locale/ca-ES.js +1 -1
  56. package/lib/umd/locale/en-US.js +1 -1
  57. package/lib/umd/locale/es-ES.js +1 -1
  58. package/lib/umd/locale/fa-IR.js +1 -1
  59. package/lib/umd/locale/fr-FR.js +1 -1
  60. package/lib/umd/locale/ko-KR.js +1 -1
  61. package/lib/umd/locale/ru-RU.js +1 -1
  62. package/lib/umd/locale/vi-VN.js +1 -1
  63. package/lib/umd/locale/zh-CN.js +1 -1
  64. package/lib/umd/locale/zh-TW.js +1 -1
  65. package/package.json +6 -7
  66. package/lib/types/components/date-picker/DatePanel.d.ts +0 -10
  67. package/lib/types/locale/interface.d.ts +0 -10
@@ -19,13 +19,14 @@ export { Avatar, type IAvatarProps } from './components/avatar/Avatar';
19
19
  export { Badge, type IBadgeProps } from './components/badge/Badge';
20
20
  export { Button, type IButtonProps } from './components/button/Button';
21
21
  export { ButtonGroup, type IButtonGroupProps } from './components/button/ButtonGroup';
22
+ export { Calendar } from './components/calendar/Calendar';
22
23
  export { CascaderList, type ICascaderListProps, type ICascaderOption } from './components/cascader-list/CascaderList';
23
24
  export { CheckboxGroup, type ICheckboxGroupProps } from './components/checkbox-group/CheckboxGroup';
24
25
  export { Checkbox, type ICheckboxProps } from './components/checkbox/Checkbox';
25
26
  export { ColorPicker, type IColorPickerProps } from './components/color-picker/ColorPicker';
26
27
  export { ConfigContext, ConfigProvider, type IConfigProviderProps } from './components/config-provider/ConfigProvider';
27
28
  export { Confirm, type IConfirmProps } from './components/confirm/Confirm';
28
- export { DatePanel, DatePicker, type IDatePanelProps, type IDatePickerProps } from './components/date-picker';
29
+ export { DatePicker } from './components/date-picker/DatePicker';
29
30
  export { DateRangePicker } from './components/date-range-picker';
30
31
  export { Dialog, type IDialogProps } from './components/dialog/Dialog';
31
32
  export { DraggableList, type IDraggableListProps, ReactGridLayout } from './components/draggable-list';
@@ -51,14 +52,14 @@ export { type ISelectProps, Select } from './components/select/Select';
51
52
  export { Separator } from './components/separator/Separator';
52
53
  export { Switch } from './components/switch/Switch';
53
54
  export { Textarea } from './components/textarea/Textarea';
55
+ export { TimeInput } from './components/time-input/TimeInput';
54
56
  export { type IToasterProps, toast, Toaster } from './components/toaster/Toaster';
55
57
  export { type ITooltipProps, Tooltip } from './components/tooltip/Tooltip';
56
- export { filterLeafNode, findNodePathFromTree, findSubTreeFromPath, type ITreeNodeProps, type ITreeProps, mergeTreeSelected, Tree, TreeSelectionMode } from './components/tree';
58
+ export { filterLeafNode, findNodePathFromTree, findSubTreeFromPath, type ITreeNodeProps, type ITreeProps, mergeTreeSelected, Tree, TreeSelectionMode, } from './components/tree';
57
59
  export { borderBottomClassName, borderClassName, borderLeftBottomClassName, borderLeftClassName, borderRightClassName, borderTopClassName, divideXClassName, divideYClassName, scrollbarClassName, } from './helper/class-utilities';
58
60
  export { clsx } from './helper/clsx';
59
61
  export { isBrowser } from './helper/is-browser';
60
62
  export { render, unmount } from './helper/react-dom';
61
63
  export { resizeObserverCtor } from './helper/resize-observer';
62
- export { type ILocale } from './locale/interface';
63
64
  /** @deprecated Only for compatibility with versions before 0.7.0, will be removed in future versions */
64
65
  export { defaultTheme, greenTheme } from '@univerjs/themes';
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,40 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
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 locale: {
17
+ design: {
18
+ Confirm: {
19
+ cancel: string;
20
+ confirm: string;
21
+ };
22
+ CascaderList: {
23
+ empty: string;
24
+ };
25
+ Calendar: {
26
+ year: string;
27
+ weekDays: string[];
28
+ months: string[];
29
+ };
30
+ Select: {
31
+ empty: string;
32
+ };
33
+ ColorPicker: {
34
+ more: string;
35
+ cancel: string;
36
+ confirm: string;
37
+ };
38
+ };
39
+ };
3
40
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { ILocale } from './interface';
2
- declare const locale: ILocale;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;