@openedx/paragon 22.16.1 → 22.17.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "22.16.1",
3
+ "version": "22.17.0",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -265,8 +265,8 @@ $select-icon-padding: .5625rem !default;
265
265
  }
266
266
 
267
267
  .form-control:focus ~ &,
268
- // select.form-control ~ &,
269
- .form-control.has-value ~ & {
268
+ .form-control.has-value ~ &,
269
+ .form-control:is(:-webkit-autofill, :autofill) ~ & {
270
270
  .pgn__form-control-floating-label-text {
271
271
  background-color: $input-bg;
272
272
  }
@@ -53,7 +53,7 @@ interface Props {
53
53
  /** Specifies the z-index of the modal */
54
54
  zIndex?: number;
55
55
  /** Specifies whether overflow is visible in the modal */
56
- isOverflowVisible?: boolean;
56
+ isOverflowVisible: boolean;
57
57
  }
58
58
 
59
59
  function ModalDialog({
@@ -70,7 +70,7 @@ function ModalDialog({
70
70
  isFullscreenOnMobile = false,
71
71
  isBlocking = false,
72
72
  zIndex,
73
- isOverflowVisible = true,
73
+ isOverflowVisible,
74
74
  }: Props) {
75
75
  const isMobile = useMediaQuery({ query: '(max-width: 767.98px)' });
76
76
  const showFullScreen = (isFullscreenOnMobile && isMobile);
@@ -163,7 +163,7 @@ ModalDialog.propTypes = {
163
163
  */
164
164
  zIndex: PropTypes.number,
165
165
  /** Specifies whether overflow is visible in the modal */
166
- isOverflowVisible: PropTypes.bool,
166
+ isOverflowVisible: PropTypes.bool.isRequired,
167
167
  };
168
168
 
169
169
  ModalDialog.Header = ModalDialogHeader;
@@ -145,4 +145,4 @@ class ModalWrapper extends React.Component {
145
145
  }
146
146
  onClose={() => {}}
147
147
  />
148
- ```
148
+ ```
@@ -36,6 +36,7 @@ This is the alert style `ModalDialog` composition. `AlertModal` passes all of it
36
36
  <Button variant="danger">Submit</Button>
37
37
  </ActionRow>
38
38
  )}
39
+ isOverflowVisible={false}
39
40
  >
40
41
  <p>
41
42
  I'm baby palo santo ugh celiac fashion axe. La croix lo-fi venmo whatever.
@@ -67,6 +68,7 @@ const [isOpen, open, close] = useToggle(false);
67
68
  <Button variant="primary">Delete</Button>
68
69
  </ActionRow>
69
70
  )}
71
+ isOverflowVisible={false}
70
72
  >
71
73
  <p>
72
74
  Are your sure you want to delete this file? You can't undo this action.
@@ -95,6 +97,7 @@ const [isOpen, open, close] = useToggle(false);
95
97
  <Button variant="danger">Acknowledge errror</Button>
96
98
  </ActionRow>
97
99
  )}
100
+ isOverflowVisible={false}
98
101
  >
99
102
  <p>
100
103
  An unknown error has occured.
@@ -123,6 +126,7 @@ const [isOpen, open, close] = useToggle(false);
123
126
  <Button variant="success">Confirm</Button>
124
127
  </ActionRow>
125
128
  )}
129
+ isOverflowVisible={false}
126
130
  >
127
131
  <p>
128
132
  All good!
@@ -38,6 +38,7 @@ The fullscreen `ModalDialog` composition. `FullscreenModal` passes all of its pr
38
38
  <Button>Submit</Button>
39
39
  </ActionRow>
40
40
  )}
41
+ isOverflowVisible={false}
41
42
  >
42
43
  <Container size="md">
43
44
  <p>
@@ -50,6 +50,7 @@ The ``MarketingModal`` is a preconfigured `ModalDialog` that accepts an image an
50
50
  <Button>Submit</Button>
51
51
  </ActionRow>
52
52
  )}
53
+ isOverflowVisible={false}
53
54
  >
54
55
  <p>
55
56
  I'm baby palo santo ugh celiac fashion axe. La croix lo-fi venmo whatever. Beard man braid migas single-origin coffee forage ramps. Tumeric messenger bag bicycle rights wayfarers, try-hard cronut blue bottle health goth. Sriracha tumblr cardigan, cloud bread succulents tumeric copper mug marfa semiotics woke next level organic roof party +1 try-hard.
@@ -44,6 +44,7 @@ label for the dialog element.
44
44
  variant={modalVariant}
45
45
  hasCloseButton
46
46
  isFullscreenOnMobile
47
+ isOverflowVisible={false}
47
48
  >
48
49
  <ModalDialog.Header>
49
50
  <ModalDialog.Title>
@@ -114,6 +115,7 @@ label for the dialog element.
114
115
  size={modalSize}
115
116
  variant={modalVariant}
116
117
  hasCloseButton
118
+ isOverflowVisible={false}
117
119
  >
118
120
  <ModalDialog.Hero>
119
121
  <ModalDialog.Hero.Background
@@ -38,6 +38,7 @@ The standard `ModalDialog` composition. `StandardModal` passes all of its props
38
38
  <Button>Submit</Button>
39
39
  </ActionRow>
40
40
  )}
41
+ isOverflowVisible={false}
41
42
  >
42
43
  <p>
43
44
  I'm baby palo santo ugh celiac fashion axe. La croix lo-fi venmo whatever. Beard man braid migas single-origin coffee forage ramps. Tumeric messenger bag bicycle rights wayfarers, try-hard cronut blue bottle health goth. Sriracha tumblr cardigan, cloud bread succulents tumeric copper mug marfa semiotics woke next level organic roof party +1 try-hard.
@@ -42,6 +42,7 @@ describe('<AlertModal />', () => {
42
42
  isOpen={isOpen}
43
43
  onClose={closeFn}
44
44
  footerNode={<p>footer</p>}
45
+ isOverflowVisible={false}
45
46
  >
46
47
  <Body />
47
48
  </AlertModal>,
@@ -60,6 +61,7 @@ describe('<AlertModal />', () => {
60
61
  onClose={closeFn}
61
62
  icon={Info}
62
63
  footerNode={<p>footer</p>}
64
+ isOverflowVisible={false}
63
65
  >
64
66
  <Body />
65
67
  </AlertModal>,
@@ -77,6 +79,7 @@ describe('<AlertModal />', () => {
77
79
  onClose={closeFn}
78
80
  icon={Info}
79
81
  footerNode={<p>footer</p>}
82
+ isOverflowVisible={false}
80
83
  >
81
84
  <Body />
82
85
  </AlertModal>,
@@ -94,6 +97,7 @@ describe('<AlertModal />', () => {
94
97
  onClose={closeFn}
95
98
  icon={Info}
96
99
  footerNode={<p>footer</p>}
100
+ isOverflowVisible={false}
97
101
  >
98
102
  <Body />
99
103
  </AlertModal>,
@@ -14,6 +14,7 @@ describe('ModalDialog', () => {
14
14
  size="md"
15
15
  variant="default"
16
16
  hasCloseButton
17
+ isOverflowVisible={false}
17
18
  >
18
19
  <ModalDialog.Header>
19
20
  <ModalDialog.Title>The title</ModalDialog.Title>
@@ -42,6 +43,7 @@ describe('ModalDialog', () => {
42
43
  <ModalDialog
43
44
  title="My dialog"
44
45
  onClose={onClose}
46
+ isOverflowVisible={false}
45
47
  >
46
48
  <ModalDialog.Header><ModalDialog.Title>The title</ModalDialog.Title></ModalDialog.Header>
47
49
  <ModalDialog.Body><p>The hidden content</p></ModalDialog.Body>
@@ -64,6 +66,7 @@ describe('ModalDialog with Hero', () => {
64
66
  size="md"
65
67
  variant="default"
66
68
  hasCloseButton
69
+ isOverflowVisible={false}
67
70
  >
68
71
  <ModalDialog.Hero>
69
72
  <ModalDialog.Hero.Background backgroundSrc="imageurl" />