[next] ClickOutside Component (#1757)

* working on the tests

Merge branch 'next' of github.com:coralproject/talk into clickoutside

* 'next' of github.com:coralproject/talk: (36 commits)
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  Read env in watchers.ts
  updated tests
  Update ToggleShow.spec.tsx
  ToggleShow Component
  Fix CI thanks to wyatt
  ...

docz added

Added simulant

Added simulant

unnused

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (40 commits)
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  Read env in watchers.ts
  working on the tests
  ...

unnused

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (42 commits)
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  ...

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (42 commits)
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  Implement new button api
  ...

Merge branch 'clickoutside' of github.com:coralproject/talk into clickoutside

* 'clickoutside' of github.com:coralproject/talk: (43 commits)
  working on the tests
  unnused
  working on the tests
  Added simulant
  Added simulant
  docz added
  [next] Implement AriaInfo (#1756)
  e render props for TrapFocus (#1755)
  [ToggleShow] Fix typo and better description (#1753)
  Fix wrong hour pluralization
  Implement button active state
  Styling fixes
  Fix Playground
  Commit snapshots
  Harmonize typography
  Fix Flex margin bug and add examples
  Update package-lock.json
  Use explicit export
  Implement ButtonIcon component
  Remove wrong ref prop
  ...

* Implement passing tests

* Use html as snapshot

* Refactor and simplify test

* Remove unused import

* ts

* simulant moved to devdeps
This commit is contained in:
Belén Curcio
2018-07-25 20:33:29 +00:00
committed by Wyatt Johnson
parent acb86f4b44
commit e0a8f2e067
7 changed files with 147 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
declare module "simulant" {
type SimulantEvent = {};
interface Simulant {
(event: string, extendedParams: Record<string, any>): SimulantEvent;
fire(
target: HTMLElement,
event: string | SimulantEvent,
extendedParams?: Record<string, any>
): void;
polyfill(): void;
}
const simulant: Simulant;
export default simulant;
}