mediawiki-skins-Vector/stories
Anne Tomasevich fa2faf563f Rename CdxButton type prop to weight
In Codex v0.7.0, the CdxButton's `type` prop changed. The `type`
prop was renamed `weight` and will continue to accept the same
values ('normal', 'quiet', and 'primary'). A new `type` prop was
added that accepts the old types, plus native button types
('button', 'reset', and 'submit'). In a future release of Codex,
the `type` prop will be removed altogether and the native type
can be bound to the CdxButton via the `type` attribute.

So, while the old values for `type` still work, we want to
update the prop name in anticipation of the `type` prop's
removal. For any new code moving forward, the `weight` prop
should be used.

This patch:
- Updates the Button stories to change the `type` prop to `weight`
- Updates Codex dev dependencies to v0.7.0
- Updates Storybook webpack config so it can process *.mjs files
  (Codex ES dist files now have this extension, see
  Ic29c891c8d7ac705d016aa6f91c5f63684d7d7c8)

Bug: T312987
Change-Id: If98dad4769ed72900dbae579823a356669d6cf64
2023-03-16 21:08:03 +00:00
..
.eslintrc.json Define documentable types in eslintrc instead of inline 2021-10-18 18:08:32 +00:00
ButtonsAndIcons.stories.js Rename CdxButton type prop to weight 2023-03-16 21:08:03 +00:00
Footer.stories.data.js T331680 2023-03-09 21:01:46 -08:00
Footer.stories.js Storybook: Consistent styling 2021-05-27 19:27:21 +00:00
Header.stories.data.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
Header.stories.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
LanguageButton.stories.data.js [Storybook] Fixes state of various components 2022-07-08 11:36:43 -07:00
LanguageButton.stories.js [storybook] Document button usage and update broken stories 2021-09-07 21:23:33 +00:00
Logo.stories.data.js Define documentable types in eslintrc instead of inline 2021-10-18 18:08:32 +00:00
Logo.stories.js [Storybook] Fixes state of various components 2022-07-08 11:36:43 -07:00
Menu.stories.data.js Technical: Use unambigious menu template 2022-06-27 12:29:03 -07:00
Menu.stories.js Storybook should include UserLinks 2021-05-27 19:27:27 +00:00
MenuDropdown.stories.data.js Remove vector-menu-dropdown-noicon class 2023-01-10 23:48:05 +00:00
MenuDropdown.stories.js [Refactor] Rethink Dropdown component 2022-11-29 17:33:03 -08:00
MenuPortal.stories.data.js [Refactor] Rename Portal component to MainMenuGroup 2022-12-01 14:45:52 -08:00
MenuPortal.stories.js Refactor: Portal is also a Menu 2020-05-07 16:56:59 -07:00
MenuTabs.stories.data.js Define documentable types in eslintrc instead of inline 2021-10-18 18:08:32 +00:00
MenuTabs.stories.js Refactor chevron across components + separate watchstar 2022-07-21 10:14:21 -04:00
PageToolbar.stories.data.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
PageToolbar.stories.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
rawLoader.d.ts [Storybook] Fix PNG/SVG asset resolution. 2020-09-25 12:52:05 +02:00
SearchBox.stories.data.js Define documentable types in eslintrc instead of inline 2021-10-18 18:08:32 +00:00
SearchBox.stories.js Allow multiple search components on the same page 2021-09-23 23:23:58 +00:00
Sidebar.stories.data.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
Sidebar.stories.js [Refactor] Rename Portal component to MainMenuGroup 2022-12-01 14:45:52 -08:00
skin.less [Storybook] Fixes state of various components 2022-07-08 11:36:43 -07:00
skin.stories.data.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
skin.stories.js [Storybook] Fixes state of various components 2022-07-08 11:36:43 -07:00
StickyHeader.stories.data.js Fix inconsistencies in sticky header font-size and spacing 2023-03-13 23:29:35 +00:00
StickyHeader.stories.js Build the sticky header skeleton 2021-09-01 12:32:31 -07:00
types.js Remove custom rendering of the user links overflow menu in favor of using 'vector-user-menu-overflow', a vector specific menu bucket in Hooks.php 2022-08-01 20:18:46 +00:00
UserLinks.stories.data.js Remove custom rendering of the user links overflow menu in favor of using 'vector-user-menu-overflow', a vector specific menu bucket in Hooks.php 2022-08-01 20:18:46 +00:00
UserLinks.stories.js [Storybook] Add Header component 2021-09-14 18:33:10 +00:00
utils.js Move Vector menu class logic into Menu mustache template 2022-07-07 12:34:23 -05:00