Oleksandr Fediashov
e692213987
perf: use `inline-style-expand-shorthand` for expanding ( #1925 )
...
* chore(fela): use Fela plugin
* chore(fela-plugins): use inline-style-expand-shorthand
* chore(fela-plugins): use inline-style-expand-shorthand
* fix order, fix plugin to handle arrays
* final cleanup
* remove unused dep
* add a UT for arrays
* add changelog entries
* add entry to approvedPackages.ts
2020-02-26 11:56:35 +01:00
TanelVari
731f9db570
Added 'survey' and 'survey20px' icons ( #2383 )
...
* Added 'survey' and 'survey20px' icons
2020-02-25 13:25:08 -08:00
Silviu Alexandru Avram
9d4d87b055
chore(DropdownItem): refactor to functional component with hooks ( #2382 )
...
* start component refactor
* add a11y props
* update styles
* add isConformant test
* add variables to dropdownVariables
* changelog
2020-02-25 16:47:48 +02:00
Miroslav Stastny
b05bc5f36c
chore(build): run lint per-package ( #2375 )
...
* chore(build): run lint per-package
* chore(build): run lint per-package
* chore(build): add per-package lint to docs, e2e, perf
2020-02-24 12:46:28 +01:00
Silviu Alexandru Avram
56c09acd40
chore(tests): refactor Dropdown tests ( #2228 )
...
* start refactor
* add jsdom
* tests refactor
* some types in withProvider
* finish refactor
* make wrappingComponent optional
* abstract click icon
* update yarn lock
* some code review
* update jest-dom
* fix jest-dom import
* update yarn lock
* update enzyme types
* improve types in withProvider
* renamed using node
* use toHaveFocus expect
2020-02-24 13:38:38 +02:00
Roman Sudarikov
f73ff62f8a
Virtualized table prototype ( #2339 )
...
* Virtualized table prototype
* Update chengelog
* Move row rendering to children API
* Adding notes on CellMeasurer usage
* Replace react-virtualized Table with List
* Description fix
* Add accessibility props
* Adding aria- labels for table examples
* fix navigation in virtualized table header and navigation to virtualized element
* small fix for row behavior
* Refactoring + adding tabondex -1 to scrollparent
* acc fixes
* Adding known a11y issues for Tree and Table
* Fix prettier bug
* Update CHANGELOG.md
Co-Authored-By: Oleksandr Fediashov <olfedias@microsoft.com>
* PR comment fixes
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
2020-02-21 15:18:45 +01:00
Oleksandr Fediashov
760d69b2ca
fix(Popup|Tooltip): fix wrong positioning of pointing beak on content edges ( #2364 )
...
* fix(Popup): fix issues with pointer sizes
* fix tooltip styles
* update changelog
* update example
2020-02-21 12:01:29 +01:00
Oleksandr Fediashov
70c5a307ce
perf: disable "sanitize-css" for production ( #2340 )
...
* perf: disable "sanitize-css" for production
* rework to be enabled with perf flag
* fixes, rebase to master
* fixes in UTs
* update CE
* fix types
* add changelog
* use any
2020-02-20 21:53:14 +01:00
Oleksandr Fediashov
705bdef570
fix(Chat): properly position `actions` with `overflow` ( #2363 )
...
* fix(Chat): properly position `actions` with `overflow`
* fix className
* fix screamer
* add changelog, update example
* remove cruft
2020-02-20 17:28:31 +01:00
Silviu Alexandru Avram
d3e6c15254
feat: add on change handlers and renamed others for standardisation ( #2293 )
...
* change tests
* update components
* update tests
* add test for alert
* breaking changes by changing prop names
* change Tree as well
* revert the dropdown exception in isConformant
* remove an added new line
* code review
* call handler with new value
* use separate variable for setState
* changelog
2020-02-20 15:51:49 +01:00
Oleksandr Fediashov
f15b18cfaa
chore: refactor perf flags ( #2370 )
...
* chore: refactor perf flags
* fix UT
* remove option
* add UTs
* Update mergeProviderContexts.ts
* Update mergeProviderContexts.ts
* Update mergeProviderContexts.ts
2020-02-19 20:57:49 +01:00
Silviu Alexandru Avram
39cfa9111d
fix(Toolbar): focus first item each time a focused element is hidden ( #2321 )
...
* alternative fallback focus
* use getFirstFocusable
* fix type
* changelog
* fix changelog comment
* add setViewport util
* add example for e2e test
* add a test but does not work
* add timeout to wait for resize
* add more tests, but failing
* update the e2e tests
* fix changelog
* comments of item wrapping
* renamed tests and suite
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
2020-02-19 14:05:13 +01:00
Oleksandr Fediashov
521efa9b6c
chore(Chat): remove magic static from ChatItem & ChatMessage ( #2331 )
...
* chore(Chat): remove magic static from ChatItem & ChatMessage
* use context to provide props
2020-02-19 12:09:49 +01:00
Silviu Alexandru Avram
c26bed9bed
fix(Dropdown): backspace with text selection will also remove selected element ( #2349 )
...
* fix dropdown bug
* changelog
2020-02-19 09:10:02 +01:00
Oleksandr Fediashov
f7a55901ac
chore(Chat): move to functional component ( #2366 )
...
* chore(Chat): move to functional component
* fix UTs
* fix UTs
* fix types
* add changelog
* Update packages/react/src/components/Chat/ChatItem.tsx
Co-Authored-By: Marija Najdova <mnajdova@gmail.com>
* Update packages/react/src/components/Chat/ChatItem.tsx
Co-Authored-By: Marija Najdova <mnajdova@gmail.com>
* use invoke
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
2020-02-18 17:24:02 +01:00
Marija Najdova
40d63ac84f
fix(Carousel): do not render hidden carousel items ( #2356 )
...
* wip
* wip
* refactorings
* remove logs
* fixes
* -updated changelog
* -fixed jumping on example with actionable elements
* -fixed intitial animation on mounting
* -fixes
* fix for outline
* -added outline
* prettier fixes
* -refactored
* -fixed test name
* -fixed tests
* -added isFromKeyboard
* -fixed input options
* -fixed test descriptions
* -prettier fixes
2020-02-18 15:59:23 +01:00
Oleksandr Fediashov
fb28fc57ac
chore(Tooltip): move to function component ( #2357 )
...
* chore(Tooltip): move to function component
* wip
* fix UT
* fix todo
* solve todo
* no more need in `rtl` attr
* add changelog entry
* Update packages/react/src/components/Tooltip/TooltipContent.tsx
Co-Authored-By: Marija Najdova <mnajdova@gmail.com>
Co-authored-by: Marija Najdova <mnajdova@gmail.com>
2020-02-17 17:24:02 +01:00
Oleksandr Fediashov
d22cdafb53
fix(Popper): use `keepTogether` for `arrow` modifier ( #2361 )
...
* fix(Popper): use `keepTogether` for `arrow` modifier
* add screener test, cleanup popper
* update changelog
* update changelog
* update changelog
* restore changelog changes
2020-02-17 16:41:01 +01:00
Oleksandr Fediashov
49de76b6b6
fix(whatInput): setWhatInputSource() should change DOM attribute ( #2359 )
...
* fix(whatInput): setWhatInputSource() should change DOM attribute
* add screener test
* add changelog
* update screener tests
2020-02-14 22:24:35 +01:00
Oleksandr Fediashov
dcb43c58d7
fix(Provider): render portals inside styled elements ( #2192 )
...
* fix(Dialog): apply Provider styles in Dialog
* add changelog entry
* wip!
* wip!
* fix RTL props
* more fixes
* fix tests
* fix SSR
* fix merge issue
* update changelog
* fix inline styles & screener test
* Update CHANGELOG.md
* fix class issue and spreading props
2020-02-14 20:23:31 +01:00
Oleksandr Fediashov
9cd7d546d2
feat(List): add proper support for children API ( #2207 )
...
* Prototype: Context usage for collections
* revert changes
* add UTs
* fix UTs, create default
* improve UTs, types
* apply review comments
* prettify fixes
* feat(hooks): add useAutoControlled() hook
* add docs
* use autoControlled hook
* fix review comment
* fix deps
* fix version
* add changelog
* fix perf tests
2020-02-14 13:49:18 +01:00
Milan Turon
35aaf02512
fix(Loader): Adding labeling when loader get focus ( #2352 )
...
* adding labelling when loader get focus
* Update docs/src/examples/components/Loader/BestPractices/LoaderBestPractices.tsx
Co-Authored-By: Juraj Kapsiar <jurokapsiar@gmail.com>
* Update packages/react/src/components/Loader/Loader.tsx
Co-Authored-By: Juraj Kapsiar <jurokapsiar@gmail.com>
* changes after review
* prettier applied
* changelog update
* reducing the code, apply fix from review
* lint fix
* fix unit test
Co-authored-by: Juraj Kapsiar <jurokapsiar@gmail.com>
2020-02-14 12:56:11 +01:00
TanelVari
112a8412d2
Adding 'collapse, 'expand', 'companion', 'share-to' and 'settings-audio' icons. ( #2343 )
2020-02-13 13:58:12 -08:00
TanelVari
6166d4edbd
Aligning menu items on toolbar component to the left ( #2344 )
2020-02-13 13:56:57 -08:00
Marija Najdova
f8163447b1
fix(Animation): not to throw if children is not set ( #2345 )
...
* -fixed Animation without children
* -added changelog
* -added tests
* -prettier fixes
* -fixes
* -fixes
* -fixes
2020-02-13 17:19:29 +01:00
Oleksandr Fediashov
8c17f85118
feat(hooks): add useAutoControlled() hook ( #2348 )
...
* feat(hooks): add useAutoControlled() hook
* add docs
* add more tests, clean up
2020-02-13 12:24:42 +01:00
Oleksandr Fediashov
cf6c3575a6
chore(Popup|Tooltip): remove styles from parent components ( #2333 )
...
* chore(Popup|Tooltip): remove styles from parent components
* revert change in perf test
* revert change in screener test
* Update CHANGELOG.md
* Update types.ts
2020-02-12 22:47:07 +01:00
Oleksandr Fediashov
25f7bc26b8
fix(useStateManager): keep reference to `actions` ( #2347 )
...
* fix(useStateManager): keep reference to `actions`
* fix(useStateManager): keep reference to `actions`
* improve UTs
* merge to one statement
2020-02-12 17:37:43 +01:00
Oleksandr Fediashov
8c318103a3
chore(Animation): move to function component, styles in theme are not required ( #2258 )
...
* chore(Animation): refactor to FC
* update changelog
* cleanup tests
* fix className issue
* fix review comments
* fix merge issues
* remove comment
2020-02-12 17:35:09 +01:00
Marija Najdova
a70f1f0f65
fix(Icon): exclude name from stylesProps if svg icon is used ( #2346 )
...
* -changed name mapped prop
* -made name option prop
* -prettier fixes
2020-02-12 15:54:10 +01:00
Oleksandr Fediashov
f97594260a
feat(context-selector): add initial implementation ( #2292 )
...
* feat(context-selector): add initial implementation
* fix review comments
* remove todo
* bump version to align with other packages
2020-02-12 13:24:27 +01:00
Brian Calvery
cf90f0449d
fix(Input): fix descender cropping ( #2335 )
...
adjust input component line height and top-bottom padding to resolve descender cropping in dropdown component
2020-02-11 08:27:18 -08:00
Juraj Kapsiar
d7896d0516
fix(Tooltip): Fix page crash when content is null ( #2332 )
...
* screener test for remote repo
* changelog
2020-02-11 10:26:48 +01:00
Marija Najdova
859b8aa91f
feat(useStyles): add caching when no inline overrides are applied ( #2309 )
...
* wip
* cleanup
* -prettier fixes
* -disabled tests
* -test updates
* -test fixes
-typings improvements
* wip
* -fixes
* wip
* prettier fixes
* prettier fixes
* -fixes in resolveStylesAndCLasses
-added more tests
* -removed variables cache from Provider's context
* -prettier fixes
* -added provider flag for enabling caching
* -prettier fixes
* -addressing comments
* -addressing comments
-improved typings
* prettier fixes
* -updated comments
* -refactored key generation
* -prettier fixes
* -added one Provider's prop performance
* -moved PrimitiveProps typings
* prettier fixes
* -fixed unit tests
* -renamed resolveStylesAndClasses to resolveStyles and merged two functions into one
-updated tests
* -prettier fixes
* -added component variables cache
* -updated params for resolveStyles
-updated tests
* -addressed final comments
* prettier fixes
* -fixed typings
-removed obsolete const
* -updated changelog
* -improved tests
* -fixed changelog
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
2020-02-10 19:25:14 +01:00
Oleksandr Fediashov
c2b219d59b
fix(knobs): separate contexts to avoid useless updates ( #2284 )
2020-02-10 16:13:31 +01:00
Oleksandr Fediashov
0fb1134877
fix(SSR): fix document usage and add project test ( #2330 )
...
* fix(SSR): fix document usage and add project test
* add changelog
* fixes
* fixes
* Update UIComponent.tsx
* update changelog
2020-02-10 10:56:02 +01:00
Miroslav Stastny
c347b93622
chore(build): Add sourcemaps to commonjs and es packages ( #2329 )
2020-02-10 09:44:04 +01:00
devprzemo
9ca7217937
fix(AlertBehavior) add missing aria-describedby to AlertBehavior when… ( #2208 )
...
* fix(AlertBehavior) add missing aria-describedby to AlertBehavior when type is different than warning/danger #2197
* Fix tests for alertBehavior aria-describedby attribute
* Remove duplication of aria-describedby assignment in alert dismiss behavior
* Fix test for aria-describedby in Alert behavior
* Update changelog for #2202
* Fix changelog log for #2208 PR
* Set proper PR id in CHANGELOG.md
* Move CHANGELOG log into unreleased section
2020-02-09 12:49:28 +01:00
Oleksandr Fediashov
142de9f5a5
chore: move more components ( #2307 )
...
* chore: move more components
* fix UTs
* fix UTs
* fix formatting
* fix UTs
* fix visual regressions
* fix review comments
* fix review comments
* fix review comments
* add telemetry to Status
* fix snapshots for Text
* refactor iconStyles
* add changelog entry
* fix remaining issues
* fix Status issues
* update changelog
2020-02-07 12:39:16 +01:00
Oleksandr Fediashov
880790637e
chore(Provider): refactor to function component ( #2315 )
...
* chore(Provider): refactor to function component
* fix imports
2020-02-06 15:29:25 +01:00
Oleksandr Fediashov
c848bd4bb9
fix(typings): enable strict mode for projects ( #2323 )
...
* fix(typings): enable strict mode for projects
* fix types
* add changelog entry
2020-02-06 15:05:35 +01:00
Oleksandr Fediashov
c8959a7882
chore: add support for optional chaining and coalescing operator ( #2317 )
...
* chore: add support for optional chaining and coalescing operator
* fix config
* remove duplicates
2020-02-05 17:14:14 +01:00
Miroslav Stastny
db4661ef3f
chore: Add bundle analyzer to local-sandbox ( #2322 )
...
* chore: Add bundle analyzer to local-sandbox
* add bundle analyzer
* readme
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
2020-02-05 17:05:44 +01:00
Roman Sudarikov
c501557750
Moving zIndex values to siteVariables ( #2311 )
...
* Moving zIndex values to siteVariables
* Update Changelog
* Fix changelog
* Fix changelog
* Move zIndex values from component styles to vars
* refactoring
* Comment changes
* Update packages/react/src/themes/teams/siteVariables.ts
Co-Authored-By: Oleksandr Fediashov <olfedias@microsoft.com>
* PR comments fixes
* Update chenglog
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
2020-02-05 15:39:24 +01:00
Miroslav Stastny
b157dc1f7a
fix build after merge to master
2020-02-05 14:29:08 +01:00
Miroslav Stastny
4d66f7e51f
chore: Add local-sandbox package ( #2282 )
...
* chore: Add local-sandbox package
* - add typing for webpack config
* fix yarn.lock after merge
2020-02-05 14:14:35 +01:00
Miroslav Stastny
39b6d1fbd1
v0.44.0
2020-02-05 13:01:43 +01:00
Brigette
ddf6298307
feat(Colors): Add new color scheme design token for Teams theme ( #2297 )
...
* adding new red background hover 1 color scheme design token for Teams title bar close button
* add entry to changelog
2020-02-04 12:28:10 -08:00
Silviu Alexandru Avram
7270655dfe
feat(FlexItem): allow custom values as size ( #2313 )
...
* accept direct value in styles
* augmenting the types in FlexItem
* changelog
2020-02-04 15:44:20 +01:00
Marija Najdova
077f0cb185
feat(styles): typing improvements ( #2312 )
...
* -typing improvements
* -typing improvements
2020-02-04 14:23:18 +01:00