@instructure/ui-modal 11.7.4-snapshot-103 → 11.7.4-snapshot-106

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/CHANGELOG.md CHANGED
@@ -3,7 +3,7 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [11.7.4-snapshot-103](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-103) (2026-07-14)
6
+ ## [11.7.4-snapshot-106](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-106) (2026-07-16)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -12,6 +12,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
12
12
  * **ui-modal:** skip Modal.Body tab stop when it has focusable children ([25e4261](https://github.com/instructure/instructure-ui/commit/25e42617898fa6584da0b33eed589e2710875570))
13
13
 
14
14
 
15
+ ### Features
16
+
17
+ * **many:** support current spacing tokens in the margin prop for v2 components ([1b47c5f](https://github.com/instructure/instructure-ui/commit/1b47c5f23eaa60b532cdfd53c39bd71f0cf51aaa))
18
+
19
+
15
20
 
16
21
 
17
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-modal",
3
- "version": "11.7.4-snapshot-103",
3
+ "version": "11.7.4-snapshot-106",
4
4
  "description": "A component for displaying content in a dialog overlay",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,28 +15,28 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/console": "11.7.4-snapshot-103",
19
- "@instructure/shared-types": "11.7.4-snapshot-103",
20
- "@instructure/emotion": "11.7.4-snapshot-103",
21
- "@instructure/ui-dialog": "11.7.4-snapshot-103",
22
- "@instructure/ui-buttons": "11.7.4-snapshot-103",
23
- "@instructure/ui-motion": "11.7.4-snapshot-103",
24
- "@instructure/ui-portal": "11.7.4-snapshot-103",
25
- "@instructure/ui-overlays": "11.7.4-snapshot-103",
26
- "@instructure/ui-dom-utils": "11.7.4-snapshot-103",
27
- "@instructure/ui-react-utils": "11.7.4-snapshot-103",
28
- "@instructure/ui-themes": "11.7.4-snapshot-103",
29
- "@instructure/ui-view": "11.7.4-snapshot-103",
30
- "@instructure/ui-utils": "11.7.4-snapshot-103"
18
+ "@instructure/console": "11.7.4-snapshot-106",
19
+ "@instructure/ui-buttons": "11.7.4-snapshot-106",
20
+ "@instructure/shared-types": "11.7.4-snapshot-106",
21
+ "@instructure/ui-dialog": "11.7.4-snapshot-106",
22
+ "@instructure/emotion": "11.7.4-snapshot-106",
23
+ "@instructure/ui-dom-utils": "11.7.4-snapshot-106",
24
+ "@instructure/ui-motion": "11.7.4-snapshot-106",
25
+ "@instructure/ui-portal": "11.7.4-snapshot-106",
26
+ "@instructure/ui-overlays": "11.7.4-snapshot-106",
27
+ "@instructure/ui-react-utils": "11.7.4-snapshot-106",
28
+ "@instructure/ui-themes": "11.7.4-snapshot-106",
29
+ "@instructure/ui-utils": "11.7.4-snapshot-106",
30
+ "@instructure/ui-view": "11.7.4-snapshot-106"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@testing-library/jest-dom": "^6.9.1",
34
34
  "@testing-library/react": "16.3.2",
35
35
  "@testing-library/user-event": "^14.6.1",
36
36
  "vitest": "^4.1.9",
37
- "@instructure/ui-babel-preset": "11.7.4-snapshot-103",
38
- "@instructure/ui-color-utils": "11.7.4-snapshot-103",
39
- "@instructure/ui-position": "11.7.4-snapshot-103"
37
+ "@instructure/ui-color-utils": "11.7.4-snapshot-106",
38
+ "@instructure/ui-position": "11.7.4-snapshot-106",
39
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-106"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "react": ">=18 <=19"
@@ -65,7 +65,7 @@ const Example = () => {
65
65
  <Text lineHeight="double">{fpo}</Text>
66
66
  </Modal.Body>
67
67
  <Modal.Footer>
68
- <Button onClick={handleButtonClick} margin="0 x-small 0 0">
68
+ <Button onClick={handleButtonClick} margin="0 general.spaceSm 0 0">
69
69
  Close
70
70
  </Button>
71
71
  <Button color="primary" type="submit">
@@ -130,13 +130,13 @@ const Example = () => {
130
130
  <Heading>This Modal is constrained to a parent</Heading>
131
131
  </Modal.Header>
132
132
  <Modal.Body>
133
- <View as="p" margin="none none small">
133
+ <View as="p" margin="none none general.spaceMd">
134
134
  <Text>{fpo}</Text>
135
135
  </View>
136
136
  <ModalAutoCompleteExample renderLabel="Choose a state" />
137
137
  </Modal.Body>
138
138
  <Modal.Footer spacing="compact">
139
- <Button onClick={handleButtonClick} margin="0 x-small 0 0">
139
+ <Button onClick={handleButtonClick} margin="0 general.spaceSm 0 0">
140
140
  Close
141
141
  </Button>
142
142
  <Button onClick={handleButtonClick} color="primary" type="submit">
@@ -146,7 +146,7 @@ const Example = () => {
146
146
  </Modal>
147
147
  <View
148
148
  background="primary-inverse"
149
- margin="medium auto none"
149
+ margin="general.spaceXl auto none"
150
150
  display="block"
151
151
  width="25rem"
152
152
  height="25rem"
@@ -340,7 +340,7 @@ const Example = () => {
340
340
  <RadioInput label="auto" value="auto" />
341
341
  </RadioInputGroup>
342
342
  </FormFieldGroup>
343
- <Button onClick={handleButtonClick} margin="medium 0 0">
343
+ <Button onClick={handleButtonClick} margin="general.spaceXl 0 0">
344
344
  {open ? 'Close' : 'Open'} the Modal
345
345
  </Button>
346
346
  <Modal
@@ -358,7 +358,7 @@ const Example = () => {
358
358
  <Flex>
359
359
  <Flex.Item shouldGrow shouldShrink>
360
360
  <Flex alignItems="center">
361
- <Flex.Item margin="0 x-small 0 0">
361
+ <Flex.Item margin="0 general.spaceSm 0 0">
362
362
  <HeartInstUIIcon size={'xl'} />
363
363
  </Flex.Item>
364
364
  <Flex.Item shouldGrow shouldShrink>
@@ -375,7 +375,7 @@ const Example = () => {
375
375
  withBorder={false}
376
376
  renderIcon={<PrinterInstUIIcon/>}
377
377
  screenReaderLabel="Print This Image"
378
- margin="0 x-small 0 0"
378
+ margin="0 general.spaceSm 0 0"
379
379
  />
380
380
  <IconButton
381
381
  color="primary-inverse"
@@ -383,7 +383,7 @@ const Example = () => {
383
383
  withBorder={false}
384
384
  renderIcon={<DownloadInstUIIcon/>}
385
385
  screenReaderLabel="Download This Image"
386
- margin="0 x-small 0 0"
386
+ margin="0 general.spaceSm 0 0"
387
387
  />
388
388
  <IconButton
389
389
  color="primary-inverse"
@@ -456,7 +456,7 @@ const Example = () => {
456
456
  </Button>
457
457
  <Button
458
458
  onClick={toggleViewport}
459
- margin="0 0 0 small"
459
+ margin="0 0 0 general.spaceMd"
460
460
  id="toggleViewportButton"
461
461
  >
462
462
  Toggle viewport
@@ -485,12 +485,12 @@ const Example = () => {
485
485
  )}
486
486
  </Modal.Header>
487
487
  <Modal.Body>
488
- <View as="p" margin="none none small">
488
+ <View as="p" margin="none none general.spaceMd">
489
489
  <Text>{fpo}</Text>
490
490
  </View>
491
491
  </Modal.Body>
492
492
  <Modal.Footer spacing={smallViewport ? 'compact' : 'default'}>
493
- <Button onClick={toggleOpen} margin="0 x-small 0 0">
493
+ <Button onClick={toggleOpen} margin="0 general.spaceSm 0 0">
494
494
  Close
495
495
  </Button>
496
496
  <Button onClick={toggleOpen} color="primary" type="submit">
@@ -501,7 +501,7 @@ const Example = () => {
501
501
 
502
502
  <View
503
503
  background="primary-inverse"
504
- margin="medium auto none"
504
+ margin="general.spaceXl auto none"
505
505
  display="block"
506
506
  width={smallViewport ? '20rem' : '50rem'}
507
507
  height="37.5rem"
@@ -579,7 +579,7 @@ class Example extends React.Component {
579
579
  </WrappedModalBody>
580
580
  <View
581
581
  as="div"
582
- margin="small"
582
+ margin="general.spaceMd"
583
583
  padding="large"
584
584
  background="primary">
585
585
  <Heading level='h3'>This View child does not inherit the variant and overflow properties</Heading>