@univerjs/design 0.1.2 → 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.
Files changed (31) hide show
  1. package/README.md +5 -1
  2. package/lib/cjs/index.js +15 -11
  3. package/lib/es/index.js +10648 -7224
  4. package/lib/index.css +1 -1
  5. package/lib/types/components/checkbox/Checkbox.d.ts +9 -1
  6. package/lib/types/components/checkbox-group/CheckboxGroup.d.ts +8 -1
  7. package/lib/types/components/config-provider/ConfigProvider.d.ts +1 -1
  8. package/lib/types/components/date-picker/DatePicker.d.ts +28 -0
  9. package/lib/types/{hooks/observable.d.ts → components/date-picker/DatePicker.stories.d.ts} +8 -5
  10. package/lib/types/components/date-picker/index.d.ts +16 -0
  11. package/lib/types/components/date-range-picker/DateRangePicker.d.ts +29 -0
  12. package/lib/types/components/date-range-picker/DateRangePicker.stories.d.ts +23 -0
  13. package/lib/types/components/date-range-picker/index.d.ts +16 -0
  14. package/lib/types/components/dialog/Dialog.d.ts +1 -1
  15. package/lib/types/components/dropdown/Dropdown.d.ts +1 -1
  16. package/lib/types/components/form-layout/FormLayout.d.ts +7 -0
  17. package/lib/types/components/form-layout/index.d.ts +2 -1
  18. package/lib/types/components/input/Input.d.ts +10 -1
  19. package/lib/types/components/menu/Menu.d.ts +1 -1
  20. package/lib/types/components/pager/Pager.d.ts +1 -0
  21. package/lib/types/components/popup/RectPopup.d.ts +47 -0
  22. package/lib/types/components/popup/index.d.ts +1 -0
  23. package/lib/types/components/segmented/Segmented.d.ts +20 -0
  24. package/lib/types/components/segmented/Segmented.stories.d.ts +23 -0
  25. package/lib/types/components/segmented/index.d.ts +16 -0
  26. package/lib/types/components/select/Select.d.ts +1 -1
  27. package/lib/types/components/tooltip/Tooltip.d.ts +1 -0
  28. package/lib/types/index.d.ts +4 -3
  29. package/lib/types/locale/interface.d.ts +2 -0
  30. package/lib/umd/index.js +15 -11
  31. package/package.json +24 -20
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Inc.
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 { Segmented, type ISegmentedProps } from './Segmented';
@@ -41,5 +41,5 @@ export interface ISelectProps {
41
41
  mode?: 'combobox' | 'multiple' | 'tags' | undefined;
42
42
  dropdownRender?: (menu: React.ReactElement<any, string | React.JSXElementConstructor<any>>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
43
43
  }
44
- export declare function Select(props: ISelectProps): React.JSX.Element;
44
+ export declare function Select(props: ISelectProps): React.JSX.Element | null;
45
45
  export {};
@@ -21,5 +21,6 @@ export interface ITooltipProps {
21
21
  title: (() => React.ReactNode) | React.ReactNode;
22
22
  children: React.ReactElement;
23
23
  onVisibleChange?: (visible: boolean) => void;
24
+ style?: React.CSSProperties;
24
25
  }
25
26
  export declare const Tooltip: React.ForwardRefExoticComponent<ITooltipProps & React.RefAttributes<TooltipRef>>;
@@ -22,24 +22,25 @@ export { ColorPicker, type IColorPickerProps } from './components/color-picker';
22
22
  export { ConfigContext, ConfigProvider, type IConfigProviderProps } from './components/config-provider';
23
23
  export { Confirm, type IConfirmProps } from './components/confirm';
24
24
  export { Container, type IContainerProps } from './components/container';
25
+ export { DatePicker, type IDatePickerProps } from './components/date-picker';
25
26
  export { Dialog, type IDialogProps } from './components/dialog';
26
27
  export { Dropdown, type IDropdownProps } from './components/dropdown';
27
- export { FormLayout, type IFormLayoutProps } from './components/form-layout';
28
+ export { FormDualColumnLayout, type IFormDualColumnLayoutProps, FormLayout, type IFormLayoutProps } from './components/form-layout';
28
29
  export { type IInputProps, type IInputWithSlotProps, Input, InputWithSlot } from './components/input';
29
30
  export { type IInputNumberProps, InputNumber } from './components/input-number';
30
31
  export { Menu, MenuItem, MenuItemGroup, SubMenu } from './components/menu';
31
32
  export { type IMessageMethodOptions, type IMessageProps, Message, MessageType } from './components/message';
32
33
  export { type IPagerProps, Pager } from './components/pager';
33
- export { type IPopupProps, Popup } from './components/popup';
34
+ export { type IPopupProps, Popup, RectPopup, type IRectPopupProps } from './components/popup';
34
35
  export { type IRadioProps, Radio } from './components/radio';
35
36
  export { type IRadioGroupProps, RadioGroup } from './components/radio-group';
36
37
  export { type IScrollbarProps, Scrollbar } from './components/scrollbar';
37
38
  export { type ISelectProps, Select } from './components/select';
38
39
  export { type ISelectListProps, SelectList } from './components/select-list';
40
+ export { type ISegmentedProps, Segmented } from './components/segmented';
39
41
  export { type ISliderProps, Slider } from './components/slider';
40
42
  export { type ITooltipProps, Tooltip } from './components/tooltip';
41
43
  export { type ITreeNodeProps, type ITreeProps, Tree, TreeSelectionMode } from './components/tree';
42
- export { useObservable } from './hooks/observable';
43
44
  export { enUS, zhCN } from './locale';
44
45
  export { type ILocale } from './locale/interface';
45
46
  export { defaultTheme, greenTheme, themeInstance } from './themes';
@@ -13,9 +13,11 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ import type PickerZhCN from 'rc-picker/lib/locale/zh_CN';
16
17
  export interface ILocale {
17
18
  design: {
18
19
  Confirm: Record<string, any>;
19
20
  Slider: Record<string, any>;
21
+ Picker: typeof PickerZhCN;
20
22
  };
21
23
  }