Commit a75cf7f
feat(dashboard): support RTL in dashboard (medusajs#11252)
* fix: add direction attribute to components and adjust styles for RTL support
* fix(data-grid): comment it out
* Added useDocumentDirection hook
* refactor: Integrate useDocumentDirection hook
* refactor: Standardize direction prop usage across components
* resolve
* fix: resolve build errors
* fix : remove unused useDocument
* Apply RTL styles for some components
* Create smooth-gorillas-hide.md
* refactor: update some styles for RTL support
---------
Co-authored-by: William Bouchard <[email protected]>1 parent a501364 commit a75cf7f
File tree
70 files changed
+407
-142
lines changed- .changeset
- packages/admin/dashboard/src
- components
- common
- json-view-section
- sidebar-link
- switch-box
- data-grid/components
- filtering
- filter-group
- order-by
- forms
- address-form
- metadata-form
- inputs
- combobox
- country-select
- province-select
- layout
- main-layout
- shell
- search
- table/data-table
- data-table-order-by
- data-table-root
- dashboard-app/forms/form-extension-zone
- hooks
- providers/i18n-provider
- routes
- campaigns
- campaign-detail/components/campaign-budget
- common/components/create-campaign-form-fields
- categories
- category-create/components/create-category-form
- category-detail/components/category-organize-section
- category-edit/components/edit-category-form
- inventory
- inventory-create/components/inventory-create-form
- inventory-detail/components/inventory-item-variants
- locations
- location-service-zone-shipping-option-create/components/create-shipping-options-form
- location-service-zone-shipping-option-edit/components/edit-region-form
- orders
- order-allocate-items/components/order-create-fulfillment-form
- order-create-claim/components/claim-create-form
- order-create-edit/components/order-edit-create-form
- order-create-exchange/components/exchange-create-form
- order-create-fulfillment/components/order-create-fulfillment-form
- order-create-refund/components/create-refund-form
- order-create-return/components/return-create-form
- order-create-shipment/components/order-create-shipment-form
- order-receive-return/components/order-receive-return-form
- price-lists
- price-list-create/components/price-list-create-form
- price-list-edit/components/price-list-edit-form
- price-list-prices-add/components/price-list-prices-add-form
- product-variants/product-variant-edit/components/product-edit-variant-form
- products
- common/components/category-combobox
- product-create-variant/components/create-product-variant-form
- product-create/components/product-create-form
- product-edit/components/edit-product-form
- product-media/components/product-media-gallery
- product-stock/hooks
- profile/profile-edit/components/edit-profile-form
- promotions
- common/edit-rules/components/rules-form-field
- promotion-add-campaign/components/add-campaign-promotion-form
- promotion-create/components/create-promotion-form
- promotion-edit-details/components/edit-promotion-form
- regions
- region-create/components/create-region-form
- region-edit/components/edit-region-form
- reservations/reservation-detail/components/edit-reservation/components
- sales-channels
- sales-channel-create/components/create-sales-channel-form
- sales-channel-edit/components/edit-sales-channel-form
- store
- store-add-currencies/components/add-currencies-form
- store-edit/components/edit-store-form
- tax-regions
- tax-region-tax-override-create/components/tax-region-override-create-form
- tax-region-tax-override-edit/components/tax-region-tax-override-edit-form
- workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
70 files changed
+407
-142
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
96 | 97 | | |
97 | 98 | | |
98 | 99 | | |
99 | | - | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| 704 | + | |
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
| |||
716 | 718 | | |
717 | 719 | | |
718 | 720 | | |
719 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
720 | 726 | | |
721 | 727 | | |
722 | 728 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | | - | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
| |||
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
102 | | - | |
| 105 | + | |
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
185 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
186 | 191 | | |
187 | 192 | | |
188 | 193 | | |
| |||
0 commit comments