@televet/kibble-ui 1.12.14 → 1.13.1
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/build/components/Forms/FormControl/formControl.argTypes.d.ts +13 -165
- package/build/components/Forms/Select/select.component.d.ts +5 -4
- package/build/components/Overlay/Menu/components/MenuButton/menuButton.argTypes.d.ts +9 -0
- package/build/components/Overlay/Menu/{Components → components}/MenuButton/menuButton.component.d.ts +2 -2
- package/build/components/Overlay/Menu/components/MenuContainer/menuContainer.argTypes.d.ts +14 -0
- package/build/components/Overlay/Menu/components/MenuContainer/menuContainer.component.d.ts +9 -0
- package/build/components/Overlay/Menu/components/MenuItem/menuItem.argTypes.d.ts +12 -0
- package/build/components/Overlay/Menu/{Components → components}/MenuItem/menuItem.component.d.ts +4 -2
- package/build/components/Overlay/Menu/components/MenuList/menuList.argTypes.d.ts +16 -0
- package/build/components/Overlay/Menu/components/MenuList/menuList.component.d.ts +21 -0
- package/build/components/Overlay/Menu/{Components → components}/MenuSearchBar/menuSearchBar.component.d.ts +1 -1
- package/build/components/Overlay/Menu/index.d.ts +5 -5
- package/build/components/Overlay/Menu/menu.argTypes.d.ts +78 -0
- package/build/components/Overlay/Menu/menu.component.d.ts +8 -9
- package/build/components/Overlay/Menu/menu.context.d.ts +7 -5
- package/build/components/Overlay/Menu/menu.storiesData.d.ts +4 -0
- package/build/index.js +111 -85
- package/build/index.js.map +1 -1
- package/build/utils/stories.d.ts +8 -2
- package/package.json +2 -2
- package/build/components/Overlay/Menu/Components/MenuContainer/menuContainer.component.d.ts +0 -8
- package/build/components/Overlay/Menu/Components/MenuList/menuList.component.d.ts +0 -19
- /package/build/components/Overlay/Menu/{Components → components}/MenuOptionGroup/menuOptionGroup.component.d.ts +0 -0
- /package/build/components/Overlay/Menu/{Components → components}/MenuSelectAllButtons/menuSelectAllButtons.component.d.ts +0 -0
package/build/utils/stories.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
The two functions below (getControlInfo & getBaseControlInfo) can be used in
|
|
3
|
+
stories to group nested object properties. See `avatar.stories.tsx` for examples.
|
|
4
|
+
If additional levels are needed, they can be added to the result of the `.split`
|
|
5
|
+
in getControlInfo and the returned object in the same function. Existing usages
|
|
6
|
+
would need to be updated as well.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getBaseControlInfo: (name: string) => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@televet/kibble-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "Kibble Design System by Televet",
|
|
5
5
|
"author": "TeleVet",
|
|
6
6
|
"main": "build/index.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"fix": "npx eslint --fix ./src/ && npx stylelint ./src/ --fix",
|
|
15
15
|
"lint": "npx eslint ./src/ && npx stylelint ./src/",
|
|
16
16
|
"start": "start-storybook -p 6006 && npx rollup -c --watch",
|
|
17
|
-
"build": "build-storybook -o docs && npx rollup -c",
|
|
17
|
+
"build": "npx rimraf build && build-storybook -o docs && npx rollup -c",
|
|
18
18
|
"predeploy": "npm run build",
|
|
19
19
|
"deploy": "gh-pages -d build",
|
|
20
20
|
"publishBeta": "npm run build && npm publish --tag beta"
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MenuProps as CMenuProps } from '@chakra-ui/react';
|
|
3
|
-
export interface MenuContainerProps extends Omit<CMenuProps, 'children'> {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
onMenuClose?: (value: (string | undefined)[]) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const MenuContainer: ({ children, onMenuClose, ...rest }: MenuContainerProps) => JSX.Element;
|
|
8
|
-
export default MenuContainer;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { MenuListProps as CMenuListProps } from '@chakra-ui/react';
|
|
2
|
-
import { MenuItemProps } from '../MenuItem/menuItem.component';
|
|
3
|
-
export interface MenuListProps extends CMenuListProps {
|
|
4
|
-
canSelectAll?: boolean;
|
|
5
|
-
canSelectGroups?: boolean;
|
|
6
|
-
isGrouped?: boolean;
|
|
7
|
-
isMultiSelect?: boolean;
|
|
8
|
-
isSearchable?: boolean;
|
|
9
|
-
menuItems?: MenuItemProps[];
|
|
10
|
-
onMenuItemSelect?: ((selectedItem: MenuItemProps) => void) | ((selectedItem: MenuItemProps) => Promise<void>);
|
|
11
|
-
onMenuItemSelectAll?: ((selectedItems: MenuItemProps[]) => void) | ((selectedItems: MenuItemProps[]) => Promise<void>);
|
|
12
|
-
searchPlaceholder?: string;
|
|
13
|
-
minW?: string;
|
|
14
|
-
maxW?: string;
|
|
15
|
-
maxH?: string;
|
|
16
|
-
isMatchWidthSet?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const MenuList: ({ canSelectAll, canSelectGroups, children, isGrouped, isMatchWidthSet, isMultiSelect, isSearchable, menuItems, onMenuItemSelect, onMenuItemSelectAll, searchPlaceholder, minW, maxW, maxH, ...rest }: MenuListProps) => JSX.Element;
|
|
19
|
-
export default MenuList;
|
|
File without changes
|