@univerjs/design 0.1.12 → 0.1.13

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.
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+
3
+ export interface ISwitchProps {
4
+ defaultChecked?: boolean;
5
+ onChange?: (checked: boolean) => void;
6
+ }
7
+ declare const Switch: (props: ISwitchProps) => React.JSX.Element;
8
+ export { Switch };
@@ -13,7 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export { default as enUS } from './en-US';
17
- export { type ILocale } from './interface';
18
- export { default as zhCN } from './zh-CN';
19
- export { default as ruRU } from './ru-RU';
16
+ export { Switch } from './Switch';
@@ -29,7 +29,7 @@ export { FormDualColumnLayout, type IFormDualColumnLayoutProps, FormLayout, type
29
29
  export { type IInputProps, type IInputWithSlotProps, Input, InputWithSlot } from './components/input';
30
30
  export { type IInputNumberProps, InputNumber } from './components/input-number';
31
31
  export { type MenuRef, Menu, MenuItem, MenuItemGroup, SubMenu } from './components/menu';
32
- export { type IMessageMethodOptions, type IMessageProps, Message, MessageType } from './components/message';
32
+ export { type IMessageOptions, type IMessageProps, Message, MessageType } from './components/message';
33
33
  export { type IPagerProps, Pager } from './components/pager';
34
34
  export { type IPopupProps, Popup, RectPopup, type IRectPopupProps } from './components/popup';
35
35
  export { type IRadioProps, Radio } from './components/radio';
@@ -41,7 +41,10 @@ export { type ISegmentedProps, Segmented } from './components/segmented';
41
41
  export { type ISliderProps, Slider } from './components/slider';
42
42
  export { type ITooltipProps, Tooltip, resizeObserverCtor } from './components/tooltip';
43
43
  export { type ITreeNodeProps, type ITreeProps, Tree, TreeSelectionMode, mergeTreeSelected, findSubTreeFromPath, findNodePathFromTree, filterLeafNode } from './components/tree';
44
- export { enUS, zhCN, ruRU } from './locale';
44
+ export * as enUS from './locale/en-US';
45
+ export * as ruRU from './locale/ru-RU';
46
+ export * as zhCN from './locale/zh-CN';
47
+ export { Switch } from './components/switch';
45
48
  export { type ILocale } from './locale/interface';
46
49
  export { defaultTheme, greenTheme, themeInstance } from './themes';
47
50
  export { DraggableList, type IDraggableListProps } from './components/draggable-list';