Skip to content

Commit a7432d5

Browse files
Hadas FarhiorrgottliebLastExileUAKandio16ofersh-monday
authored
Vibe Design System Release 1.0 (mondaycom#340)
* first template for first story with the new format (button) * wip * wip: component rules * feat: storybook helper new component (component rule) * chore: new storybook components: header & component rules & usage guideline * chore: new storybook components: related-components & usage guideline * chore: new storybook tips support title, changes in button storybook page * chore: update desgin review notes, add anchor list item design chane * chore: add icons loading success and on color button stories * add support on general footer * i hate webpack.... * add stories * fix table of contents * support component descriptions and start working on components stories * add component story * add story controls * check * storybook stories wrapper and anchor list item margin fix * chore: paragraph component and stories style margin fix * chore: undo paragraph change * change tabs order * change tabs order * chore: change names of storybook helpers title for more declerative names * chore: readme files for component name, section name and tip * chore: readme files for related components, usage guidelines, tip and anchor * chore: readme for title and related component * update plop according to new story changes * update plop according to new story changes * update tests readme & tests plop * fix bug on plop * fix readme * naming fixs * plop: fix mock examples * sos * support mdx file structure * fix imports in storybook components * support display all stories inside the mdx file * update from master * remove component name attention box dependency * fix table of contents * fix table of contents * update new component plop * update new component plop * update new component plop * create plops for tests and stories for exist component * fix according to code review notes for component rules * undo not needed changes * remove not needed file * add links support to stories (mondaycom#334) * add links support to stories * undo not needed changes * Leany labs/storybook 1 (#1) (mondaycom#329) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests Co-authored-by: Kandio16 <[email protected]> * Chromatic (storybook 6.4) (mondaycom#326) * feat: chromatic * feat: temp * feat: small fixes * wip: Buttun Sizes * hooks: story * i hate this * hooks stories and adjustments * PR comments * small adjustments * feat: Icon Button Stories * test: something * tests! * lint: fix * lint: fix #2 * feat: 6.4 version * fix spacing in links (mondaycom#338) * Storybook/hadas/welcome (mondaycom#337) * start working on welcome page * wip * wip * welcome page * pictuers fix * pictuers fix & banner fix * fix * fix * fix * fix * fix * add contributors list with githubs * add contributors list with github links to welcome page * fix linter ! * update from master * Fix fonts and spacing according to rotem notes (mondaycom#343) * fix fonts and spacing according to rotem notes * fix style error * fix style error * fix: AlertBanner in MDX * LeanyLabs: storybooks & tests (Label, Checkbox, Radio button) (mondaycom#342) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link Co-authored-by: Kandio16 <[email protected]> * LeanyLabs #3: Attention box, Alert banner, Toast (mondaycom#355) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * stories/fix-demo-comments * refactor: remove line before closing bracket Co-authored-by: Kandio16 <[email protected]> * use callback fix * merge with master * feat: fix chromatic deploy * Storybook/hadasfa/design fix (mondaycom#362) * design fix: font weight * design fix: related components cells width * try fix errors with eslint and storybook jest * try fix errors with eslint and storybook jest * fix usage guidelines multiline support * fix usage guidelines multiline support * LeanyLabs/storybook#4 (mondaycom#359) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * stories/init * stories/add-btn-group-scss * sotries/counter-add-styles * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * stories/btn-group-add-links * stories/counter-styles * stories/litle-fix * stories/add-RC * stories/add-icon * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * stories/add-counter-tests * stories/split-button-tests * stories/buttonGroup-tests-init * stories/add-tests * fix: split button * fix: split button call * stories/split-btn * stories/fix * ffix * stories/split-button-styles * stories/add-counter-animation * stories/split-btn-padding * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * fix: add lines * stories/fix-demo-comments * refactor: remove line before closing bracket * stories/fix-comments * stories/split-button-fix * fix: styling; chips; toast * stories-change-value Co-authored-by: Kandio16 <[email protected]> * fix counter * fix typ * Leany labs/storybook 5 (mondaycom#372) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * stories/init * styles * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * stories/init * stories/add-args * stories/tooltip-init * stories/fix-demo-comments * refactor: remove line before closing bracket * remove * stories/link-init * stories/search-init * stories/text-field-init * stories/link-rc * stories/add-link-tests * stories/search-tests-init * stories/test-init * stories/add-text-field-snapshot-tests * stories/input-tests * stories/add-RC * stories/links * stories/delete-fiels * stories/fix * tests-fix * add-test-aria-label * fix-combobox-RC * fix-link * stories/fix-styles * fix: some styling * fix: styling * fix: remove stale text in variants for Links * fix: placeholders * mend * Leany labs/storybook 5a (#11) * stories/fix-comments * stories/minor-fix Co-authored-by: Kandio16 <[email protected]> Co-authored-by: Kandio16 <[email protected]> * Test/orr/migrate karma to jest (mondaycom#379) * feat: move to jest * Butotn tests * Link Tests * Link Tests * test: FormattedNumber * test: Loader * test: small changes * ifnra: update test * remove: karma sinon and mocha * remove: karma sinon and mocha * test: update coverage * fix: testing * fix: testing * fix: lint * fix: lint and stylelint * fix: storyshoots tests * uupdate node-sass * remove errors * fix accordion item type check * Storybook/hadas/typography (mondaycom#383) * add typography story * remove old typography story * fix frame border * fix code review notes * expose colors-utils (mondaycom#385) * expose colors-utils * pr fix * undo delete accordion type check Co-authored-by: Ofer Shapira <[email protected]> * Storybook/hadas/menu reorder (mondaycom#393) * change menu order 1 * change menu order 2 * change menu order 3 * change names after talking with evigeny * Leany labs/storybook 6 (mondaycom#380) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * stories/fix-demo-comments * refactor: remove line before closing bracket * stories/steps-init * stories/tipseen-init * steps/tests-init * stories/tooltip-init * stories/tipseen-styles-init * stories/styles-tooltip * stories/tooltip-tests-init * stories/steps-clear * stories/steps-fix * stories/tipseen-styles * stories/tooltip * stories/tooltip-styles * RC-Links * fix-steps * fix-styles-steps * tipseen-snapshot-tests * fix-after-chromatic-review * remove-class * tipseen-clear * fix * tooltip-tests * fix: rename files * fix: line gaps * fix-coments * fix-comments * tipseen-fix-children Co-authored-by: Kandio16 <[email protected]> * Change new stories positions and rename variables in the steps stories page * fix tests of tooltip * remove accordion type check * add class name support * Storybook/hadas/spacing page (mondaycom#392) * spacing page wip * spacing story - add spacing sizes component * spacing story - remove old spacing story * add temp assets until receiving good assets * fix spacing assets * fix spacing assets * fix spacing in spacing component * code review notes * Storybook/hadas/shadow (mondaycom#394) * add shadow story * change names after talking with evigeny * add assets and shadow example design * add use cases examples for shadow * remove not needed import * not real * add asset to shadow example (card) * code review notes * Feat/orr/stories rest (mondaycom#395) * ColorPicker * Clickable * DialogContentContainer.jsx * Editable Header * Loader * PR: review * Change SASS loader package (mondaycom#398) * css import issues * fix some importing issue * node 12 * fix: double style elements * fix build * fix tests * Storybook/hadas/colors function page (mondaycom#397) * add basic implementation of the colors page * add content colors and typography-description * colors foundation assets * fix hover error * add dependency array * Leany labs/storybook 7 (mondaycom#396) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * stories/fix-demo-comments * refactor: remove line before closing bracket * accordian-init * tab-init * tabs-init * test-version * remove-border * fix * fix-tab * tabs-fix * tabs-fix-bg-color * accordion-styles * prog-bar-init * progressBar-styles * accordion-fix * accordion-remove * accardion-rc * proggressBar-RC * refactoring * rename-tabs * tabs-RC * accordion-tests-init * progressBar-styles * fix-to-uppercase * tabs-snapshot * progressBar-snapshot-tests * progressBar-tests * fix-coments * add-RC * fix-rc * accordion-styles * fix: tabs overview * accordin-tests * tab-tests * tabList-tests * tabPanel-tests * tabPanels-tests * tabsContext-tests * tabs-column-styles * fix-coments * fix: some text * fix: empty lines * fix-coments * fix: identations * fix: identations Co-authored-by: Kandio16 <[email protected]> * Storybook/hadas/template (mondaycom#399) * update template according to new branding part 1 * template update according to new brand * code review fix * design review changes * change menu order for new components * WIP: Coming soon & fix tests errors (css and js) (mondaycom#400) * coming soon foundation pages * fix imports * fix tests * fix css and js tests error * fix css and js tests error * fix css and js tests error * fix css and js tests error * fix css and js tests error * fix css and js tests error * fix css and js tests error * Storybook/hadas/controls infra (mondaycom#402) * fix some prop types and start of controls infra implementation * undo * clean up and some styles * fix style * LeanyLabs/storybook 8 (mondaycom#403) * Leany labs/storybook 1 (#1) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * change styling * remove unused files * add spaces Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 1 (#2) docs: create new storybooks for Avatar, Chip, Toggle tests: change style and expend tests for Avatar, Chip, Toggle, Button * remove obsolete snapshot * revert Button test * remove spaces * chips: style tests * LeanyLabs/storybook 2 (#3) * story: avatar-init * stories: chips * stories/delete-old-stories * stories/add-label * stories/toggle-init * stories/add-ArgsTable * stories/toggle-init * stories/add-checkbox * stories/add-radioButton * stories/fix-btn-group * stories/add-src * stories/fix * stories/add-search-bar-ui * stories/search-person-column * stories/fix * stories/fix * stories/fix * chip/test/init * test/add-chips-tests * clean up * stories/add-icons * stories/add-components * stories/fix-icons-name * stories/small-refactoring * stories/little-fix * stories/fix * test/add-tests-plop * stories/add-link * stories/label-init * stories/add-radio-button * stories/add-RC * stories/add-checkbox * stories/fix-comments * stories/add * stories/fix * stories/merge * stories/some-fix * tests/add-tests * stories/add-link * stories/fix * stories/add-size * fix: small changes in checkbox stories * polishig * renamed file according to styles * polishing * polishing Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2a (#4) * fix/fix-coments * minor changes Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 2b (#5) * stories/fix-comments * stories/add-checkBox-name Co-authored-by: Kandio16 <[email protected]> * fix: names for checkbox * fix: add missing link * Leany labs/storybook 3 (#6) docs: create new storybooks for Attention box, Alert banner, Toast tests: change style and expand tests for Attention box, Alert banner, Toast * Leany labs/storybook 3a (#7) * fix * stories/fix-comments * stories/add-toast-test Co-authored-by: Kandio16 <[email protected]> * Leany labs/storybook 3b (#8) * stories-3b/init * stories-3b/toasts Co-authored-by: Kandio16 <[email protected]> * stories/fix-demo-comments * refactor: remove line before closing bracket * skeleton-init * breadcrumbs-styles * wizard-init * remove-RC * wizard-styles * add-RC * skeleton-useCase * skeleton-tests-clear * wizard-tests-init * fix * fix-href * fix-href * wizard-tests * breadcrumbs-tests * fix-href * fix-coments * fix: minor changes * fix: minor * fix: replace formating * fix: replace formating * fix Co-authored-by: Kandio16 <[email protected]> * Add `useAfterFirstRender` story (mondaycom#406) * menu & shadow description and more (mondaycom#405) * wip * wip * wip * Fix typos and add related components * code review notes * fix snapshot tests * design review notes * WIP: divider, list and more (mondaycom#409) * divider and popover links and list stories fixes * last fixes in list * text with high lights * add nick to contributors, and fix colors page * fix controls * fix * Add `useDebounceEvent` stories (mondaycom#410) * Heading and spacing description (mondaycom#408) * wip heading component * heading story * wip * wip * heading component * create description for the spacing * spacing description and fix controls * spacing description and fix controls * spacing description and fix controls * Move existing hooks stories next to them (mondaycom#407) * Storybook/hadas/final tweeks (mondaycom#411) * fix errors * fix errors * fix import ordr * Stories/orr/icons responsivelist virtualized list (mondaycom#412) * icon * ResponsiveList * ResponsiveList * VirtualizedList * Menu Button * Menu Button * MenuButton and Virtualized * remove * navigtion fix * small fix * fix some stuff * lint * Add `useKeyEvent` story (mondaycom#413) Co-authored-by: Orr Gottlieb <[email protected]> Co-authored-by: Ivan Harasymchuk <[email protected]> Co-authored-by: Kandio16 <[email protected]> Co-authored-by: Orr Gottlieb <[email protected]> Co-authored-by: Ofer Shapira <[email protected]> Co-authored-by: Sahar Brodbeker <[email protected]>
1 parent 0cf9f3b commit a7432d5

File tree

658 files changed

+35246
-25058
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

658 files changed

+35246
-25058
lines changed

Diff for: .github/workflows/chromatic.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# .github/workflows/chromatic.yml
2+
3+
# Workflow name
4+
name: 'Chromatic'
5+
6+
# Event for the workflow
7+
on: push
8+
9+
# List of jobs
10+
jobs:
11+
chromatic-deployment:
12+
# Operating System
13+
runs-on: ubuntu-latest
14+
# Job steps
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Install dependencies
18+
run: yarn
19+
# 👇 Adds Chromatic as a step in the workflow
20+
- name: Publish to Chromatic
21+
uses: chromaui/action@v1
22+
# Chromatic GitHub Action options
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
26+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ node_modules
33
.idea
44
npm-debug.log
55
build-storybook.log
6+
./build-storybook.log
67
/storybook-static
78
dist
89
build
910
coverage
11+
.scannerwork

Diff for: .storybook/.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
{
2222
"loose": true
2323
}
24-
]
24+
],
25+
["@babel/plugin-proposal-private-methods", { "loose": true }]
2526
]
2627
}

Diff for: .storybook/addons.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
import "@storybook/addon-docs/register";
2-
import "@storybook/addon-knobs/register";
32
import "@storybook/addon-actions/register";
43
import "@storybook/addon-links/register";
54
import { create } from "@storybook/theming/create";
65
import { addons } from "@storybook/addons";
6+
import logo from "./logo.png";
77

88
const theme = create({
99
base: "light",
10-
brandImage:
11-
"https://dapulse-res.cloudinary.com/image/upload/f_auto,q_auto/remote_mondaycom_static/img/monday-logo-x2.png",
12-
brandUrl: "https://monday.com"
10+
brandImage: logo,
11+
brandUrl: "https://monday.com",
12+
barSelectedColor: '#5034ff',
13+
brandTitle: 'Vibe Design',
14+
background: {
15+
hoverable: "rgba(80, 52, 255, 0.1)"
16+
},
17+
hoverable: "rgba(80, 52, 255, 0.1)"
1318
});
1419

1520
addons.setConfig({

Diff for: .storybook/logo.png

6.53 KB
Loading

Diff for: .storybook/main.js

+9-27
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,7 @@ const getProjectConfigRules = () => {
1414
return projectConfig.module.rules;
1515
};
1616
const getDocsConfigRules = () => {
17-
return [
18-
{
19-
test: /\.(stories|story)\.mdx$/,
20-
use: [
21-
{
22-
loader: "babel-loader",
23-
options: {
24-
plugins: ["@babel/plugin-transform-react-jsx"]
25-
}
26-
},
27-
{
28-
loader: "@mdx-js/loader",
29-
options: {
30-
compilers: [createCompiler({})]
31-
}
32-
}
33-
]
34-
},
35-
{
36-
test: /\.(stories|story)\.[tj]sx?$/,
37-
loader: require.resolve("@storybook/source-loader"),
38-
exclude: [/node_modules/],
39-
enforce: "pre"
40-
}
41-
];
17+
return [];
4218
};
4319

4420
const buildConfig = config => {
@@ -49,9 +25,15 @@ const buildConfig = config => {
4925
};
5026

5127
module.exports = {
52-
stories: ["../src/**/*.stories.(js|mdx)"],
28+
stories: ["../src/**/*.stories.mdx"],
5329
webpackFinal: async config => {
5430
return buildConfig(config);
5531
},
56-
addons: ["storybook-addon-themes", "@storybook/addon-a11y", "storybook-addon-performance/register"]
32+
addons: [
33+
"@storybook/addon-controls",
34+
"storybook-addon-themes",
35+
"@storybook/addon-a11y",
36+
"storybook-addon-performance/register",
37+
"@storybook/addon-docs"
38+
]
5739
};

Diff for: .storybook/manager-head.html

+32-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
1-
<link
2-
href="https://fonts.googleapis.com/css2?family=Roboto&display=swap"
3-
rel="stylesheet"
4-
/>
1+
<link href="https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500&display=swap" rel="stylesheet" />
2+
<title>Vibe Design System</title>
53
<script src="https://use.fontawesome.com/660238b999.js"></script>
64
<style>
75
body {
86
font-family: "Roboto", sans-serif;
7+
background: #f0f3ff !important;
8+
font-size: 14px;
9+
}
10+
11+
#storybook-explorer-menu svg {
12+
color: #5034ff;
13+
}
14+
#storybook-explorer-menu button[aria-expanded="true"],
15+
#storybook-explorer-menu button:focus,
16+
#storybook-explorer-menu a[data-selected]:hover {
17+
background-color: rgba(80, 52, 255, 0.1);
18+
}
19+
20+
#storybook-explorer-menu a[data-selected="true"],
21+
#storybook-explorer-menu a[data-selected="true"]:hover {
22+
background-color: #5034ff;
23+
color: #f0f3ff;
24+
}
25+
26+
#storybook-explorer-menu a[data-selected="true"] svg {
27+
color: #f0f3ff;
28+
}
29+
30+
.os-content button:hover {
31+
background-color: rgba(80, 52, 255, 0.1);
32+
color: #5034ff;
33+
}
34+
35+
.os-content button:hover svg {
36+
color: #5034ff;
937
}
1038
</style>

Diff for: .storybook/preview-head.html

+62-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
<link
2-
href="https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500"
3-
rel="stylesheet"
4-
/>
1+
<link href="https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,500" rel="stylesheet" />
2+
<link href="http://fonts.cdnfonts.com/css/sofia-pro" rel="stylesheet" />
53
<script src="https://use.fontawesome.com/660238b999.js"></script>
64
<style>
75
body {
@@ -30,15 +28,71 @@
3028
max-width: 50%;
3129
}
3230
.light-app-theme {
33-
background-color: var(--primary-background-color);
31+
background-color: var(--primary-background-color);
3432
}
3533
.dark-app-theme {
36-
background-color: var(--primary-background-color);
34+
background-color: var(--primary-background-color);
3735
}
3836
.black-app-theme {
39-
background-color: var(--primary-background-color);
37+
background-color: var(--primary-background-color);
4038
}
4139
.hacker_theme-app-theme {
42-
background-color: var(--primary-background-color);
40+
background-color: var(--primary-background-color);
41+
}
42+
.sbdocs.sbdocs-wrapper,
43+
.sbdocs.sbdocs-content {
44+
background: var(--primary-background-color);
45+
}
46+
.sbdocs.sbdocs-p {
47+
color: var(--primary-text-color);
48+
}
49+
50+
.sbdocs .docs-story {
51+
border: var(--layout-border-color);
52+
}
53+
.sbdocs .docs-story > div {
54+
background: var(--secondary-background-color);
55+
}
56+
57+
.sbdocs {
58+
color: var(--primary-text-color);
59+
}
60+
61+
.sbdocs ul li a {
62+
color: var(--link-color);
63+
}
64+
65+
#docs-root .docblock-argstable {
66+
border: 1px solid var(--layout-border-color);
67+
}
68+
69+
#docs-root .docblock-argstable tr th {
70+
color: var(--primary-text-color);
71+
}
72+
73+
#docs-root .docblock-argstable tr td {
74+
color: var(--primary-text-color);
75+
background: var(--secondary-background-color);
76+
}
77+
#docs-root .docblock-code-toggle {
78+
cursor: pointer;
79+
background-color: var(--secondary-background-color);
80+
border: 1px solid var(--layout-border-color);
81+
color: var(--primary-text-color);
82+
}
83+
#docs-root .docblock-code-toggle.docblock-code-toggle--expanded {
84+
background-color: var(--primary-selected-color);
85+
}
86+
#docs-root .docblock-code-toggle:hover {
87+
background-color: var(--primary-background-hover-color);
88+
}
89+
90+
.os-content button:hover {
91+
background-color: rgba(80, 52, 255, 0.1);
92+
color: #5034ff;
93+
}
94+
95+
.os-content button:hover svg {
96+
color: #5034ff;
4397
}
4498
</style>

Diff for: .storybook/preview.js

+83-14
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,90 @@
1-
import { addParameters, configure } from "@storybook/react";
1+
import { parameters } from "@storybook/addon-docs/dist/esm/frameworks/react/config";
2+
import { addParameters } from "@storybook/react";
23
import { DocsPage, DocsContainer } from "@storybook/addon-docs/blocks";
3-
4-
import { loadFoundationsStories } from "../src/general-stories/foundations-stories";
4+
import {
5+
SectionName,
6+
Title,
7+
Tip,
8+
AnchorListItem,
9+
ComponentRules,
10+
ComponentName,
11+
UsageGuidelines,
12+
FunctionArguments,
13+
FunctionArgument,
14+
RelatedComponents,
15+
DocFooter,
16+
MultipleStoryElementsWrapper,
17+
Paragraph,
18+
LinkComponent
19+
} from "../src/storybook/components";
520

621
addParameters({
722
docs: {
8-
container: DocsContainer,
9-
page: DocsPage
23+
...parameters.docs,
24+
inlineStories: true,
25+
container: ({ children, context }) => (
26+
<DocsContainer context={context}>
27+
{children}
28+
{<DocFooter />}
29+
</DocsContainer>
30+
),
31+
page: DocsPage,
32+
components: {
33+
h1: ComponentName,
34+
h2: SectionName,
35+
h3: Title,
36+
li: AnchorListItem,
37+
a: LinkComponent,
38+
p: Paragraph,
39+
Tip,
40+
ComponentRules,
41+
UsageGuidelines,
42+
FunctionArguments,
43+
FunctionArgument,
44+
RelatedComponents
45+
}
46+
},
47+
viewMode: "docs",
48+
previewTabs: {
49+
"storybook/docs/panel": {
50+
index: -1
51+
},
52+
canvas: { title: "Sandbox" }
1053
},
11-
themes: [
12-
{ name: "Light", class: "light-app-them", color: "#ffffff", default: true },
13-
{ name: "Dark", class: "dark-app-theme", color: "#1C1F3B" },
14-
{ name: "Black", class: "black-app-theme", color: "#111111" },
15-
{ name: "Hacker", class: "hacker_theme-app-theme", color: "#282a36" }
16-
]
54+
themes: {
55+
default: "Light",
56+
list: [
57+
{ name: "Light", class: "light-app-them", color: "#ffffff" },
58+
{ name: "Dark", class: "dark-app-theme", color: "#1C1F3B" },
59+
{ name: "Black", class: "black-app-theme", color: "#111111" },
60+
{ name: "Hacker", class: "hacker_theme-app-theme", color: "#282a36" }
61+
]
62+
},
63+
options: {
64+
storySort: {
65+
order: [
66+
"Welcome",
67+
"Foundations",
68+
"Buttons",
69+
"Inputs",
70+
"Data display",
71+
"Media",
72+
"Popover",
73+
"Pickers",
74+
"*",
75+
"Accessibility",
76+
"Hooks"
77+
]
78+
}
79+
}
1780
});
1881

19-
const storiesLoaderFunction = () => [...loadFoundationsStories()];
20-
21-
configure(storiesLoaderFunction, module);
82+
export const decorators = [
83+
(Story, { className }) => {
84+
return (
85+
<MultipleStoryElementsWrapper className={className}>
86+
<Story />
87+
</MultipleStoryElementsWrapper>
88+
);
89+
}
90+
];

Diff for: .stylelintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"max-line-length": [140, {"severity": "error"}],
2525
"function-calc-no-unspaced-operator": null,
2626
"no-duplicate-selectors": [true, {"severity": "warning"}],
27-
2827
"scss/dollar-variable-empty-line-before": null,
2928
"no-missing-end-of-source-newline": null,
3029
"comment-empty-line-before": null,

Diff for: TESTING_README.md

+6-9
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,13 @@ We are using two approaches when regarding testing the first is the standard jes
66
1. Jest as of our test runner and framework
77
2. [React testing library](https://testing-library.com/docs/react-testing-library/intro) as our components testing library
88

9-
The second approach is for special use cases which require a browser (positing, observer callbacks ...)
10-
1. Karna as our test runner
11-
2. Mocha as our framework library
12-
3. Sinon as our mocks/stubs library
13-
4. [React testing library](https://testing-library.com/docs/react-testing-library/intro) as our components testing library
14-
159
## React testing library
1610
This library forces us to test according to user behaviour and not implementation details (state keys for example) for example the library allows you to target elements according to text, aria labels, placeholders text and more. This approach ensure us that we test the component in the right way and allows us easier refactoring when needed.
1711

1812
#### Test File
1913
#### Jest
2014
Use our plop which automatically generates the proper folder structure, each file should end with .test.js
2115

22-
#### Karma
23-
The file should end with `-test.js` and should be located in a `__tests__` folder.
24-
2516
### React testing 101
2617
#### Mounting components
2718
In react testing library we "mount" the entire components and the tests are running against a fully rendered tree in order to simulate the most accurate user environment.
@@ -85,3 +76,9 @@ In this example we are looking for an element which has a placeholder with the t
8576
- [`ByRole`](https://testing-library.com/docs/dom-testing-library/api-queries#byrole)
8677
- [`ByTestId`](https://testing-library.com/docs/dom-testing-library/api-queries#bytestid)
8778

79+
80+
#### Component tests file structure
81+
Each component in the library will contain a __tests__ folder that should contain two files:
82+
- Snapshot tests file, which will include all the component snapshot tests.
83+
This file will contain a snapshot test for the component with empty props and a snapshot test for each prop that allows a significant state of the component.
84+
- Tests file for all the tests which are not snapshot tests. This file should contain a test for each possible interaction of the user with the component. Any other tests for the component which are not snapshot tests also should be here.

0 commit comments

Comments
 (0)