@instructure/ui-table 11.7.4-snapshot-103 → 11.7.4-snapshot-105

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-105](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-105) (2026-07-15)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -11,6 +11,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **ui-table:** fix caption for table to be responsive to sorting ([aac2b17](https://github.com/instructure/instructure-ui/commit/aac2b1790f970a1e8e2d959723eb0e4248105dd2))
12
12
 
13
13
 
14
+ ### Features
15
+
16
+ * **many:** support current spacing tokens in the margin prop for v2 components ([1b47c5f](https://github.com/instructure/instructure-ui/commit/1b47c5f23eaa60b532cdfd53c39bd71f0cf51aaa))
17
+
18
+
14
19
 
15
20
 
16
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-table",
3
- "version": "11.7.4-snapshot-103",
3
+ "version": "11.7.4-snapshot-105",
4
4
  "description": "A styled HTML table component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -15,25 +15,25 @@
15
15
  "license": "MIT",
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.7",
18
- "@instructure/console": "11.7.4-snapshot-103",
19
- "@instructure/emotion": "11.7.4-snapshot-103",
20
- "@instructure/shared-types": "11.7.4-snapshot-103",
21
- "@instructure/ui-a11y-content": "11.7.4-snapshot-103",
22
- "@instructure/ui-icons": "11.7.4-snapshot-103",
23
- "@instructure/ui-simple-select": "11.7.4-snapshot-103",
24
- "@instructure/ui-themes": "11.7.4-snapshot-103",
25
- "@instructure/ui-react-utils": "11.7.4-snapshot-103",
26
- "@instructure/ui-view": "11.7.4-snapshot-103",
27
- "@instructure/ui-utils": "11.7.4-snapshot-103"
18
+ "@instructure/console": "11.7.4-snapshot-105",
19
+ "@instructure/emotion": "11.7.4-snapshot-105",
20
+ "@instructure/shared-types": "11.7.4-snapshot-105",
21
+ "@instructure/ui-a11y-content": "11.7.4-snapshot-105",
22
+ "@instructure/ui-icons": "11.7.4-snapshot-105",
23
+ "@instructure/ui-react-utils": "11.7.4-snapshot-105",
24
+ "@instructure/ui-simple-select": "11.7.4-snapshot-105",
25
+ "@instructure/ui-themes": "11.7.4-snapshot-105",
26
+ "@instructure/ui-utils": "11.7.4-snapshot-105",
27
+ "@instructure/ui-view": "11.7.4-snapshot-105"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@testing-library/jest-dom": "^6.9.1",
31
31
  "@testing-library/react": "16.3.2",
32
32
  "@testing-library/user-event": "^14.6.1",
33
33
  "vitest": "^4.1.9",
34
- "@instructure/ui-axe-check": "11.7.4-snapshot-103",
35
- "@instructure/ui-babel-preset": "11.7.4-snapshot-103",
36
- "@instructure/ui-color-utils": "11.7.4-snapshot-103"
34
+ "@instructure/ui-axe-check": "11.7.4-snapshot-105",
35
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-105",
36
+ "@instructure/ui-color-utils": "11.7.4-snapshot-105"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "react": ">=18 <=19"
@@ -29,7 +29,7 @@ const Example = () => {
29
29
 
30
30
  const renderOptions = () => (
31
31
  <Flex alignItems="start">
32
- <Flex.Item margin="small">
32
+ <Flex.Item margin="general.spaceMd">
33
33
  <RadioInputGroup
34
34
  name="layout"
35
35
  description="layout"
@@ -41,7 +41,7 @@ const Example = () => {
41
41
  <RadioInput label="stacked" value="stacked" />
42
42
  </RadioInputGroup>
43
43
  </Flex.Item>
44
- <Flex.Item margin="small">
44
+ <Flex.Item margin="general.spaceMd">
45
45
  <Checkbox
46
46
  label="hover"
47
47
  checked={hover}
@@ -312,7 +312,7 @@ const SortableTable = ({ caption, headers, rows }) => {
312
312
  }
313
313
  name={`columnTextAlign_${headerId}`}
314
314
  value={textAlign}
315
- margin="0 0 small"
315
+ margin="0 0 general.spaceMd"
316
316
  size="small"
317
317
  onChange={(e, value) =>
318
318
  handleColTextAlignChange(headerId, value)
@@ -346,7 +346,7 @@ const SortableTable = ({ caption, headers, rows }) => {
346
346
  {(props) => (
347
347
  <div>
348
348
  {props.layout !== 'stacked' && (
349
- <View display="block" margin="0 0 medium">
349
+ <View display="block" margin="0 0 general.spaceXl">
350
350
  {renderOptions()}
351
351
  </View>
352
352
  )}
@@ -618,7 +618,7 @@ const PaginatedTable = ({
618
618
  variant="compact"
619
619
  labelNext="Next Page"
620
620
  labelPrev="Previous Page"
621
- margin="large"
621
+ margin="general.space2xl"
622
622
  >
623
623
  {Array.from(Array(pageCount), (item, index) => (
624
624
  <Pagination.Page
@@ -792,7 +792,7 @@ const Example = () => {
792
792
 
793
793
  const renderOptions = () => (
794
794
  <Flex alignItems="start">
795
- <Flex.Item margin="small">
795
+ <Flex.Item margin="general.spaceMd">
796
796
  <RadioInputGroup
797
797
  name="layout2"
798
798
  description="layout2"
@@ -804,7 +804,7 @@ const Example = () => {
804
804
  <RadioInput label="stacked" value="stacked" />
805
805
  </RadioInputGroup>
806
806
  </Flex.Item>
807
- <Flex.Item margin="small">
807
+ <Flex.Item margin="general.spaceMd">
808
808
  <Checkbox
809
809
  label="hover"
810
810
  checked={hover}
@@ -902,7 +902,7 @@ const Example = () => {
902
902
 
903
903
  const renderOptions = () => (
904
904
  <Flex alignItems="start">
905
- <Flex.Item margin="small">
905
+ <Flex.Item margin="general.spaceMd">
906
906
  <RadioInputGroup
907
907
  name="Layout"
908
908
  description="Layout"
@@ -913,7 +913,7 @@ const Example = () => {
913
913
  <RadioInput label="fixed" value="fixed" />
914
914
  </RadioInputGroup>
915
915
  </Flex.Item>
916
- <Flex.Item margin="small">
916
+ <Flex.Item margin="general.spaceMd">
917
917
  <Checkbox
918
918
  label="hover"
919
919
  checked={hover}
@@ -1045,7 +1045,7 @@ const Example = () => {
1045
1045
 
1046
1046
  const renderOptions = () => (
1047
1047
  <Flex alignItems="start">
1048
- <Flex.Item margin="small">
1048
+ <Flex.Item margin="general.spaceMd">
1049
1049
  <RadioInputGroup
1050
1050
  name="customStackedLayout"
1051
1051
  description="Layout"
@@ -1057,7 +1057,7 @@ const Example = () => {
1057
1057
  <RadioInput label="stacked" value="stacked" />
1058
1058
  </RadioInputGroup>
1059
1059
  </Flex.Item>
1060
- <Flex.Item margin="small">
1060
+ <Flex.Item margin="general.spaceMd">
1061
1061
  <Checkbox
1062
1062
  label="hover"
1063
1063
  checked={hover}
@@ -47,9 +47,9 @@ type TableOwnProps = {
47
47
  */
48
48
  caption: TableCaption
49
49
  /**
50
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
51
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
52
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
50
+ * Valid values are `0`, `none`, `auto`, and Spacing token values,
51
+ * see https://instructure.design/layout-spacing. Apply these values via
52
+ * familiar CSS-like shorthand. For example, `margin="general.spaceMd auto"`.
53
53
  */
54
54
  margin?: Spacing
55
55
  /**