diff --git a/packages/design/src/config-provider/__tests__/__snapshots__/prefixCls.tsx.snap b/packages/design/src/config-provider/__tests__/__snapshots__/prefixCls.tsx.snap index b0aeee9ca..eb13988cf 100644 --- a/packages/design/src/config-provider/__tests__/__snapshots__/prefixCls.tsx.snap +++ b/packages/design/src/config-provider/__tests__/__snapshots__/prefixCls.tsx.snap @@ -1,121 +1,37 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ConfigProvider prefixCls prefixCls 1`] = ` - + + + + `; -exports[`ConfigProvider prefixCls iconPrefixCls 1`] = ` -
- - + + button -
- - - -
- - - -
-
-
+ `; diff --git a/packages/design/src/config-provider/__tests__/__snapshots__/spin.test.tsx.snap b/packages/design/src/config-provider/__tests__/__snapshots__/spin.test.tsx.snap index b85980572..8f03ef83d 100644 --- a/packages/design/src/config-provider/__tests__/__snapshots__/spin.test.tsx.snap +++ b/packages/design/src/config-provider/__tests__/__snapshots__/spin.test.tsx.snap @@ -2,49 +2,24 @@ exports[`ConfigProvider spin spin.indicator should work 1`] = `
-
-
+ class="custom-indicator ant-spin-dot" + />
`; exports[`ConfigProvider spin spin.indicator should work in nested ConfigProvider 1`] = `
-
-
-
-
-
-
-
-
-
+ class="custom-indicator-1 ant-spin-dot" + />
`; diff --git a/packages/design/src/config-provider/__tests__/__snapshots__/styleProviderProps.test.tsx.snap b/packages/design/src/config-provider/__tests__/__snapshots__/styleProviderProps.test.tsx.snap index bee5b4f54..c32130d61 100644 --- a/packages/design/src/config-provider/__tests__/__snapshots__/styleProviderProps.test.tsx.snap +++ b/packages/design/src/config-provider/__tests__/__snapshots__/styleProviderProps.test.tsx.snap @@ -1,19 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`ConfigProvider styleProviderProps ConfigProvider styleProviderProps.hashPriority 1`] = ` -
-
-
-
-
-
-
-
-
-`; +exports[`ConfigProvider styleProviderProps ConfigProvider styleProviderProps.hashPriority 1`] = `
`; diff --git a/packages/design/src/config-provider/index.tsx b/packages/design/src/config-provider/index.tsx index c724d6124..f19ed712d 100644 --- a/packages/design/src/config-provider/index.tsx +++ b/packages/design/src/config-provider/index.tsx @@ -43,6 +43,7 @@ export interface ConfigConsumerProps extends AntConfigConsumerProps { hideOnSinglePage?: boolean; spin?: SpinConfig; table?: TableConfig; + builtInApp?: boolean; locale?: Locale; } @@ -129,7 +130,7 @@ const ConfigProvider = ({ {/* Nested App component for static function of message, notification and Modal to consume ConfigProvider config */} {/* ref: https://ant.design/components/app */} - + {children} diff --git a/packages/design/src/form/__tests__/__snapshots__/index.test.tsx.snap b/packages/design/src/form/__tests__/__snapshots__/index.test.tsx.snap index 0a9f79483..5c0231734 100644 --- a/packages/design/src/form/__tests__/__snapshots__/index.test.tsx.snap +++ b/packages/design/src/form/__tests__/__snapshots__/index.test.tsx.snap @@ -1,92 +1,88 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Drawer Form hideRequiredMark should be priority over ConfigProvider form.requiredMark 1`] = ` -
-
-
- -
+ Name + +
+
-
- -
+
+
+
-
- -
+ Address + +
+
-
- -
+
- -
+
+ `; -exports[`Drawer requiredMark could be changed 1`] = ` +exports[`Form requiredMark could be changed 1`] = `
@@ -168,93 +164,89 @@ exports[`Drawer requiredMark could be changed 1`] = `
`; -exports[`Drawer requiredMark could be changed by ConfigProvider 1`] = ` -
-
-
- -
+ Name + +
+
-
- -
+
+
+
-
- -
+ Address + +
+
-
- -
+
- -
+
+ `; -exports[`Drawer requiredMark should be optional by default 1`] = ` +exports[`Form requiredMark should be optional by default 1`] = `
diff --git a/packages/design/src/form/__tests__/index.test.tsx b/packages/design/src/form/__tests__/index.test.tsx index 45bb843b8..4138ac0b4 100644 --- a/packages/design/src/form/__tests__/index.test.tsx +++ b/packages/design/src/form/__tests__/index.test.tsx @@ -23,7 +23,7 @@ const FormTest: React.FC = props => ( ); -describe('Drawer', () => { +describe('Form', () => { it('requiredMark should be optional by default', () => { const { container, asFragment } = render(); expect(