@modulz/primitives
Advanced tools
Comparing version
@@ -14,3 +14,3 @@ import React from 'react'; | ||
*/ | ||
export declare function useAccessibleMouseDown<T extends HTMLElement>(handler: React.MouseEventHandler<T>, { isDisabled, onMouseDown: originalOnMouseDown, onKeyDown: originalOnKeyDown, }: UseAccessibleMouseDownOptions<T>): { | ||
export declare function useAccessibleMouseDown<T extends HTMLElement>(handler: React.MouseEventHandler<T>, { isDisabled, onMouseDown: originalOnMouseDown, onKeyDown: originalOnKeyDown }: UseAccessibleMouseDownOptions<T>): { | ||
onMouseDown: (event: React.MouseEvent<T, MouseEvent>) => void; | ||
@@ -17,0 +17,0 @@ onKeyDown: (event: React.KeyboardEvent<T>) => void; |
@@ -13,3 +13,3 @@ import React from 'react'; | ||
*/ | ||
export declare function useRect({ refToObserve, isObserving, shouldResetWhenNotObserving, }: UseRectOptions): ClientRect | undefined; | ||
export declare function useRect({ refToObserve, isObserving, shouldResetWhenNotObserving }: UseRectOptions): ClientRect | undefined; | ||
export {}; |
@@ -19,3 +19,3 @@ import React from 'react'; | ||
}; | ||
export declare function RovingTabIndexProvider({ children, orientation, shouldLoop, }: RovingTabIndexProviderProps): JSX.Element; | ||
export declare function RovingTabIndexProvider({ children, orientation, shouldLoop }: RovingTabIndexProviderProps): JSX.Element; | ||
export {}; |
@@ -33,3 +33,3 @@ import './polyfills'; | ||
export type { RightClickMenuProps, RightClickableProps } from './components/RightClickMenu'; | ||
export type { SelectProps, OptionProps, OptionGroupProps, SelectParts, } from './components/Select'; | ||
export type { SelectProps, OptionProps, OptionGroupProps, SelectParts } from './components/Select'; | ||
export type { SelectWithCustomMenuProps } from './components/SelectWithCustomMenu'; | ||
@@ -43,3 +43,3 @@ export type { SelectWithNativeMenuProps } from './components/SelectWithNativeMenu'; | ||
export type { TableProps, TheadProps, TfootProps, TbodyProps, TrProps, ThProps, TdProps, TableParts, } from './components/Table'; | ||
export type { TabsProps, TabListProps, TabProps, TabPanelProps, TabsParts, } from './components/Tabs'; | ||
export type { TabsProps, TabListProps, TabProps, TabPanelProps, TabsParts } from './components/Tabs'; | ||
export type { TextProps, TextParts } from './components/Text'; | ||
@@ -81,3 +81,3 @@ export type { TextareaProps, TextareaParts } from './components/Textarea'; | ||
export { RightClickMenu, RightClickable } from './components/RightClickMenu'; | ||
export { Select, Option, OptionGroup, } from './components/Select'; | ||
export { Select, Option, OptionGroup } from './components/Select'; | ||
export { SelectWithCustomMenu } from './components/SelectWithCustomMenu'; | ||
@@ -90,4 +90,4 @@ export { SelectWithNativeMenu } from './components/SelectWithNativeMenu'; | ||
export { SwitchSlider } from './components/SwitchSlider'; | ||
export { Table, Thead, Tfoot, Tbody, Tr, Th, Td, } from './components/Table'; | ||
export { Tabs, TabList, Tab, TabPanel, } from './components/Tabs'; | ||
export { Table, Thead, Tfoot, Tbody, Tr, Th, Td } from './components/Table'; | ||
export { Tabs, TabList, Tab, TabPanel } from './components/Tabs'; | ||
export { Text } from './components/Text'; | ||
@@ -94,0 +94,0 @@ export { Textarea } from './components/Textarea'; |
@@ -19,3 +19,3 @@ /// <reference types="react" /> | ||
}; | ||
export declare function getNextSelectableIndex({ items, currentIndex, key, }: GetNextSelectableIndexOptions): number | undefined; | ||
export declare function getNextSelectableIndex({ items, currentIndex, key }: GetNextSelectableIndexOptions): number | undefined; | ||
export {}; |
{ | ||
"name": "@modulz/primitives", | ||
"version": "0.0.1-37", | ||
"version": "0.0.1-38", | ||
"description": "Accessible and customisable primitives for the web", | ||
@@ -12,3 +12,2 @@ "author": "Pedro Duarte <pedro@modulz.app>", | ||
"types": "dist/index.d.ts", | ||
"repository": "https://github.com/modulz/primitives", | ||
"publishConfig": { | ||
@@ -34,4 +33,3 @@ "access": "public" | ||
"prettier": "prettier './**/*.{js,jsx,ts,tsx,json,yml,yaml,css,md}' --write", | ||
"release": "yarn build && np", | ||
"yalc-release": "yarn build && yalc publish --push" | ||
"release": "yarn build && np" | ||
}, | ||
@@ -93,3 +91,2 @@ "peerDependencies": { | ||
"np": "^6.1.0", | ||
"prettier": "^1.19.1", | ||
"react": "^16.12.0", | ||
@@ -104,9 +101,8 @@ "react-dom": "^16.12.0", | ||
"ts-jest": "^25.2.0", | ||
"typescript": "3.8.3", | ||
"yalc": "^1.0.0-pre.35" | ||
"typescript": "3.8.3" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx}": [ | ||
"eslint --fix", | ||
"prettier --write", | ||
"eslint --fix", | ||
"git add" | ||
@@ -113,0 +109,0 @@ ], |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
45
-4.26%840938
-0.13%13123
-0.49%1
Infinity%