Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add LTR-RTL button to support rtl languages #1927

Merged
merged 1 commit into from
Aug 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
1 change: 1 addition & 0 deletions packages/odyssey-storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const config: StorybookConfig = {
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-interactions"),
getAbsolutePath("@storybook/addon-mdx-gfm"),
getAbsolutePath("storybook-addon-rtl-direction"),
],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
Expand Down
4 changes: 4 additions & 0 deletions packages/odyssey-storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import type { Preview } from "@storybook/react";

export const globalTypes = {
rtlDirection: "ltr",
};

const preview: Preview = {
parameters: {
a11y: {
Expand Down
1 change: 1 addition & 0 deletions packages/odyssey-storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"storybook": "^7.2.0",
"storybook-addon-rtl-direction": "^0.0.19",
"typescript": "^5.1.6",
"vite": "^4.3.2"
},
Expand Down
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5798,6 +5798,7 @@ __metadata:
react: ^17.0.2
react-dom: ^17.0.2
storybook: ^7.2.0
storybook-addon-rtl-direction: ^0.0.19
typescript: ^5.1.6
vite: ^4.3.2
languageName: unknown
Expand Down Expand Up @@ -24493,6 +24494,26 @@ __metadata:
languageName: node
linkType: hard

"storybook-addon-rtl-direction@npm:^0.0.19":
version: 0.0.19
resolution: "storybook-addon-rtl-direction@npm:0.0.19"
peerDependencies:
"@storybook/addons": ^6.5.8
"@storybook/api": ^6.5.8
"@storybook/components": ^6.5.8
"@storybook/core-events": ^6.5.8
"@storybook/theming": ^6.5.8
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
peerDependenciesMeta:
react:
optional: true
react-dom:
optional: true
checksum: 688ac4c510e959f1d147ce2f2cfb18456a32bbae1c70a854e3657a6a0f042da4c5a2f0bbe445caa68806f6e0a247ae48e2b04648541e383029eec61e76b522ea
languageName: node
linkType: hard

"storybook@npm:^7.2.0":
version: 7.2.0
resolution: "storybook@npm:7.2.0"
Expand Down
Loading