@instructure/ui-tray 8.11.2-snapshot.54 → 8.11.2-snapshot.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Tray/index.js CHANGED
@@ -32,7 +32,7 @@ import { Component } from 'react';
32
32
  import { Dialog } from '@instructure/ui-dialog';
33
33
  import { omitProps } from '@instructure/ui-react-utils';
34
34
  import { createChainedFunction } from '@instructure/ui-utils';
35
- import { bidirectional } from '@instructure/ui-i18n';
35
+ import { textDirectionContextConsumer } from '@instructure/ui-i18n';
36
36
  import { testable } from '@instructure/ui-testable';
37
37
  import { Portal } from '@instructure/ui-portal';
38
38
  import { mirrorHorizontalPlacement } from '@instructure/ui-position';
@@ -47,7 +47,7 @@ import { propTypes, allowedProps } from './props';
47
47
  category: components
48
48
  ---
49
49
  **/
50
- let Tray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = bidirectional(), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Tray extends Component {
50
+ let Tray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = textDirectionContextConsumer(), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Tray extends Component {
51
51
  constructor(...args) {
52
52
  super(...args);
53
53
  this.state = {
@@ -88,7 +88,7 @@ let Tray = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = bid
88
88
  const _this$props3 = this.props,
89
89
  placement = _this$props3.placement,
90
90
  dir = _this$props3.dir;
91
- const isRtl = dir === bidirectional.DIRECTION.rtl;
91
+ const isRtl = dir === textDirectionContextConsumer.DIRECTION.rtl;
92
92
  return isRtl ? mirrorHorizontalPlacement(placement, ' ') : placement;
93
93
  }
94
94
 
package/lib/Tray/index.js CHANGED
@@ -17,7 +17,7 @@ var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
17
17
 
18
18
  var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
19
19
 
20
- var _bidirectional = require("@instructure/ui-i18n/lib/bidirectional.js");
20
+ var _textDirectionContextConsumer = require("@instructure/ui-i18n/lib/textDirectionContextConsumer.js");
21
21
 
22
22
  var _testable = require("@instructure/ui-testable/lib/testable.js");
23
23
 
@@ -44,7 +44,7 @@ var _dec, _dec2, _dec3, _class, _class2, _temp;
44
44
  category: components
45
45
  ---
46
46
  **/
47
- let Tray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _bidirectional.bidirectional)(), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Tray extends _react.Component {
47
+ let Tray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _textDirectionContextConsumer.textDirectionContextConsumer)(), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_temp = _class2 = class Tray extends _react.Component {
48
48
  constructor(...args) {
49
49
  super(...args);
50
50
  this.state = {
@@ -85,7 +85,7 @@ let Tray = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
85
85
  const _this$props3 = this.props,
86
86
  placement = _this$props3.placement,
87
87
  dir = _this$props3.dir;
88
- const isRtl = dir === _bidirectional.bidirectional.DIRECTION.rtl;
88
+ const isRtl = dir === _textDirectionContextConsumer.textDirectionContextConsumer.DIRECTION.rtl;
89
89
  return isRtl ? (0, _mirrorHorizontalPlacement.mirrorHorizontalPlacement)(placement, ' ') : placement;
90
90
  }
91
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tray",
3
- "version": "8.11.2-snapshot.54+a6aaef205",
3
+ "version": "8.11.2-snapshot.68+32da30112",
4
4
  "description": "Tray component for secondary/menu content",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -25,25 +25,25 @@
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
27
  "@babel/runtime": "^7.13.10",
28
- "@instructure/console": "8.11.2-snapshot.54+a6aaef205",
29
- "@instructure/emotion": "8.11.2-snapshot.54+a6aaef205",
30
- "@instructure/shared-types": "8.11.2-snapshot.54+a6aaef205",
31
- "@instructure/ui-dialog": "8.11.2-snapshot.54+a6aaef205",
32
- "@instructure/ui-i18n": "8.11.2-snapshot.54+a6aaef205",
33
- "@instructure/ui-motion": "8.11.2-snapshot.54+a6aaef205",
34
- "@instructure/ui-portal": "8.11.2-snapshot.54+a6aaef205",
35
- "@instructure/ui-position": "8.11.2-snapshot.54+a6aaef205",
36
- "@instructure/ui-prop-types": "8.11.2-snapshot.54+a6aaef205",
37
- "@instructure/ui-react-utils": "8.11.2-snapshot.54+a6aaef205",
38
- "@instructure/ui-testable": "8.11.2-snapshot.54+a6aaef205",
39
- "@instructure/ui-utils": "8.11.2-snapshot.54+a6aaef205",
28
+ "@instructure/console": "8.11.2-snapshot.68+32da30112",
29
+ "@instructure/emotion": "8.11.2-snapshot.68+32da30112",
30
+ "@instructure/shared-types": "8.11.2-snapshot.68+32da30112",
31
+ "@instructure/ui-dialog": "8.11.2-snapshot.68+32da30112",
32
+ "@instructure/ui-i18n": "8.11.2-snapshot.68+32da30112",
33
+ "@instructure/ui-motion": "8.11.2-snapshot.68+32da30112",
34
+ "@instructure/ui-portal": "8.11.2-snapshot.68+32da30112",
35
+ "@instructure/ui-position": "8.11.2-snapshot.68+32da30112",
36
+ "@instructure/ui-prop-types": "8.11.2-snapshot.68+32da30112",
37
+ "@instructure/ui-react-utils": "8.11.2-snapshot.68+32da30112",
38
+ "@instructure/ui-testable": "8.11.2-snapshot.68+32da30112",
39
+ "@instructure/ui-utils": "8.11.2-snapshot.68+32da30112",
40
40
  "prop-types": "^15"
41
41
  },
42
42
  "devDependencies": {
43
- "@instructure/ui-babel-preset": "8.11.2-snapshot.54+a6aaef205",
44
- "@instructure/ui-test-locator": "8.11.2-snapshot.54+a6aaef205",
45
- "@instructure/ui-test-utils": "8.11.2-snapshot.54+a6aaef205",
46
- "@instructure/ui-themes": "8.11.2-snapshot.54+a6aaef205"
43
+ "@instructure/ui-babel-preset": "8.11.2-snapshot.68+32da30112",
44
+ "@instructure/ui-test-locator": "8.11.2-snapshot.68+32da30112",
45
+ "@instructure/ui-test-utils": "8.11.2-snapshot.68+32da30112",
46
+ "@instructure/ui-themes": "8.11.2-snapshot.68+32da30112"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": ">=16.8 <=17"
@@ -52,5 +52,5 @@
52
52
  "access": "public"
53
53
  },
54
54
  "sideEffects": false,
55
- "gitHead": "a6aaef20508325ae9e5bfbbb29317174edebce9c"
55
+ "gitHead": "32da301128dcab8c300871c3f762e06986dc632f"
56
56
  }
@@ -28,7 +28,7 @@ import { Component } from 'react'
28
28
  import { Dialog } from '@instructure/ui-dialog'
29
29
  import { omitProps } from '@instructure/ui-react-utils'
30
30
  import { createChainedFunction } from '@instructure/ui-utils'
31
- import { bidirectional } from '@instructure/ui-i18n'
31
+ import { textDirectionContextConsumer } from '@instructure/ui-i18n'
32
32
  import { testable } from '@instructure/ui-testable'
33
33
  import { Portal } from '@instructure/ui-portal'
34
34
  import type { PortalNode } from '@instructure/ui-portal'
@@ -46,7 +46,7 @@ category: components
46
46
  ---
47
47
  **/
48
48
  @withStyle(generateStyle, generateComponentTheme)
49
- @bidirectional()
49
+ @textDirectionContextConsumer()
50
50
  @testable()
51
51
  class Tray extends Component<TrayProps> {
52
52
  static readonly componentId = 'Tray'
@@ -104,7 +104,7 @@ class Tray extends Component<TrayProps> {
104
104
 
105
105
  get placement() {
106
106
  const { placement, dir } = this.props
107
- const isRtl = dir === bidirectional.DIRECTION.rtl
107
+ const isRtl = dir === textDirectionContextConsumer.DIRECTION.rtl
108
108
  return isRtl ? mirrorHorizontalPlacement(placement!, ' ') : placement
109
109
  }
110
110