diff --git a/docs/src/docs/core/Rating.mdx b/docs/src/docs/core/Rating.mdx index f0559fc41ec..86388e7bed6 100644 --- a/docs/src/docs/core/Rating.mdx +++ b/docs/src/docs/core/Rating.mdx @@ -35,10 +35,6 @@ function Demo() { -## Disabled state - - - ## Fractions diff --git a/docs/src/docs/core/TransferList.mdx b/docs/src/docs/core/TransferList.mdx index 0e14a2a952e..597188652b3 100644 --- a/docs/src/docs/core/TransferList.mdx +++ b/docs/src/docs/core/TransferList.mdx @@ -51,10 +51,6 @@ be a tuple of two strings, one for each list: -## Disabled state - - - ## Transferring only found items By default, TransferList transfers **all** items when you click the `transferAll` button. diff --git a/src/mantine-demos/src/demos/core/Autocomplete/Autocomplete.demo.disabled.tsx b/src/mantine-demos/src/demos/core/Autocomplete/Autocomplete.demo.disabled.tsx index 1e6e549ebc6..668454d780d 100644 --- a/src/mantine-demos/src/demos/core/Autocomplete/Autocomplete.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/Autocomplete/Autocomplete.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { Autocomplete } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- /<> - ); + return ; } `; @@ -36,25 +28,6 @@ function Demo() { disabled value="React" /> - -
- -
- - - -
); } diff --git a/src/mantine-demos/src/demos/core/Checkbox/Checkbox.demo.states.tsx b/src/mantine-demos/src/demos/core/Checkbox/Checkbox.demo.states.tsx index 008f4475fb3..2875bbc5b60 100644 --- a/src/mantine-demos/src/demos/core/Checkbox/Checkbox.demo.states.tsx +++ b/src/mantine-demos/src/demos/core/Checkbox/Checkbox.demo.states.tsx @@ -15,12 +15,6 @@ function Demo() { - -
- - - -
); } @@ -36,14 +30,6 @@ function Demo() { - -
- - - - - -
); } diff --git a/src/mantine-demos/src/demos/core/Chip/Chip.demo.states.tsx b/src/mantine-demos/src/demos/core/Chip/Chip.demo.states.tsx index f7c95b7eb77..3dc34b786a6 100644 --- a/src/mantine-demos/src/demos/core/Chip/Chip.demo.states.tsx +++ b/src/mantine-demos/src/demos/core/Chip/Chip.demo.states.tsx @@ -2,66 +2,6 @@ import React from 'react'; import { MantineDemo } from '@mantine/ds'; import { Chip, Group } from '@mantine/core'; -const code = ` -import { Chip } from '@mantine/core'; - -function Demo() { - return ( - <> - - - - Outline default - - - Outline checked - - - Outline checked disabled - - - - Light default - - - Light checked - - - Light checked disabled - - - - Filled default - - - Filled checked - - - Filled checked disabled - - - - -
- - - - Outline checked disabled by fieldset - - - Light checked disabled by fieldset - - - Filled checked disabled by fieldset - - - -
- - ); -} -`; - function Demo() { return ( <> @@ -106,24 +46,6 @@ function Demo() { - -
- -
- - - - Outline checked disabled by fieldset - - - Light checked disabled by fieldset - - - Filled checked disabled by fieldset - - - -
); } @@ -131,5 +53,4 @@ function Demo() { export const states: MantineDemo = { type: 'demo', component: Demo, - code, }; diff --git a/src/mantine-demos/src/demos/core/ColorInput/ColorInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/ColorInput/ColorInput.demo.disabled.tsx index 611bbfaddb0..d5485a308c9 100644 --- a/src/mantine-demos/src/demos/core/ColorInput/ColorInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/ColorInput/ColorInput.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { ColorInput } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ); + return ; } `; @@ -30,23 +22,6 @@ function Demo() { disabled value="#EFD679" /> - -
- -
- - -
); } diff --git a/src/mantine-demos/src/demos/core/FileInput/FileInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/FileInput/FileInput.demo.disabled.tsx index 24775ccf7d3..2248d4d51c3 100644 --- a/src/mantine-demos/src/demos/core/FileInput/FileInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/FileInput/FileInput.demo.disabled.tsx @@ -6,27 +6,13 @@ const code = ` import { FileInput } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ); + return ; `; function Demo() { return ( - -
- -
- -
); } diff --git a/src/mantine-demos/src/demos/core/JsonInput/JsonInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/JsonInput/JsonInput.demo.disabled.tsx index 347126b404f..6fa04b3b41e 100644 --- a/src/mantine-demos/src/demos/core/JsonInput/JsonInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/JsonInput/JsonInput.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { JsonInput } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ); + return ; } `; @@ -28,17 +20,6 @@ function Demo() { formatOnBlur disabled /> - -
- -
- -
); } diff --git a/src/mantine-demos/src/demos/core/MultiSelect/MultiSelect.demo.disabled.tsx b/src/mantine-demos/src/demos/core/MultiSelect/MultiSelect.demo.disabled.tsx index 208662b6327..fb1c7e4e3cd 100644 --- a/src/mantine-demos/src/demos/core/MultiSelect/MultiSelect.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/MultiSelect/MultiSelect.demo.disabled.tsx @@ -7,15 +7,7 @@ const code = ` import { MultiSelect } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ) + return ; } `; @@ -38,25 +30,6 @@ function Demo() { disabled defaultValue={['react', 'vue']} /> - -
- -
- - - -
); } diff --git a/src/mantine-demos/src/demos/core/NativeSelect/NativeSelect.demo.disabled.tsx b/src/mantine-demos/src/demos/core/NativeSelect/NativeSelect.demo.disabled.tsx index 9842d06db27..1f51024c2cd 100644 --- a/src/mantine-demos/src/demos/core/NativeSelect/NativeSelect.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/NativeSelect/NativeSelect.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { NativeSelect } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ) + return ; } `; @@ -27,17 +19,6 @@ function Demo() { placeholder="Pick one that you like" disabled /> - -
- -
- -
); } diff --git a/src/mantine-demos/src/demos/core/NumberInput/NumberInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/NumberInput/NumberInput.demo.disabled.tsx index c9dc0c7eb13..fac378c86c7 100644 --- a/src/mantine-demos/src/demos/core/NumberInput/NumberInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/NumberInput/NumberInput.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { NumberInput } from '@mantine/core'; function Demo() { - return ( - <> - - -
- -
- - ) + return ; } `; @@ -22,12 +14,6 @@ function Demo() { return ( - -
- -
- -
); } diff --git a/src/mantine-demos/src/demos/core/PasswordInput/PasswordInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/PasswordInput/PasswordInput.demo.disabled.tsx index 62a8e1fd0c7..48f68746821 100644 --- a/src/mantine-demos/src/demos/core/PasswordInput/PasswordInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/PasswordInput/PasswordInput.demo.disabled.tsx @@ -22,18 +22,6 @@ function Demo() { disabled value="secret" /> - -
- -
- - -
); } diff --git a/src/mantine-demos/src/demos/core/PinInput/PinInput.demo.disabled.tsx b/src/mantine-demos/src/demos/core/PinInput/PinInput.demo.disabled.tsx index 07671174510..0b93a1ae44e 100644 --- a/src/mantine-demos/src/demos/core/PinInput/PinInput.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/PinInput/PinInput.demo.disabled.tsx @@ -7,17 +7,9 @@ import { PinInput, Group } from '@mantine/core'; function Demo() { return ( - <> - - - - -
- - - -
- + + + ); } `; @@ -28,14 +20,6 @@ function Demo() { - -
- -
- - - -
); } diff --git a/src/mantine-demos/src/demos/core/Radio/Radio.demo.disabled.tsx b/src/mantine-demos/src/demos/core/Radio/Radio.demo.disabled.tsx index ac565844671..1ecfb3f2380 100644 --- a/src/mantine-demos/src/demos/core/Radio/Radio.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/Radio/Radio.demo.disabled.tsx @@ -11,12 +11,6 @@ function Demo() { - -
- - - -
); } @@ -28,14 +22,6 @@ function Demo() { - -
- -
- - - -
); } diff --git a/src/mantine-demos/src/demos/core/Rating/Rating.demo.disabled.tsx b/src/mantine-demos/src/demos/core/Rating/Rating.demo.disabled.tsx deleted file mode 100644 index b0bb31f431a..00000000000 --- a/src/mantine-demos/src/demos/core/Rating/Rating.demo.disabled.tsx +++ /dev/null @@ -1,35 +0,0 @@ -import React from 'react'; -import { MantineDemo } from '@mantine/ds'; -import { Rating, Group, Box } from '@mantine/core'; - -const code = ` -import { Rating, Group } from '@mantine/core'; - -function Demo() { - return ( -
- - - -
- ); -} -`; - -function Demo() { - return ( - -
- - - -
-
- ); -} - -export const disabled: MantineDemo = { - type: 'demo', - component: Demo, - code, -}; diff --git a/src/mantine-demos/src/demos/core/Rating/index.ts b/src/mantine-demos/src/demos/core/Rating/index.ts index 9a12c74cd18..beeadcd0bf2 100644 --- a/src/mantine-demos/src/demos/core/Rating/index.ts +++ b/src/mantine-demos/src/demos/core/Rating/index.ts @@ -3,4 +3,3 @@ export { customSymbol } from './Rating.demo.customSymbol'; export { readOnly } from './Rating.demo.readOnly'; export { fractions } from './Rating.demo.fractions'; export { symbol } from './Rating.demo.symbol'; -export { disabled } from './Rating.demo.disabled'; diff --git a/src/mantine-demos/src/demos/core/SegmentedControl/SegmentedControl.demo.disabled.tsx b/src/mantine-demos/src/demos/core/SegmentedControl/SegmentedControl.demo.disabled.tsx index 2c3658d2b95..b3ae67b8bdf 100644 --- a/src/mantine-demos/src/demos/core/SegmentedControl/SegmentedControl.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/SegmentedControl/SegmentedControl.demo.disabled.tsx @@ -17,10 +17,6 @@ function Demo() { { value: 'export', label: 'Export' }, ]} /> - -
- -
); } @@ -74,30 +70,6 @@ function Demo() { ]} /> - -
-
- - Disabled by fieldset - - -
-
); } diff --git a/src/mantine-demos/src/demos/core/Select/Select.demo.disabled.tsx b/src/mantine-demos/src/demos/core/Select/Select.demo.disabled.tsx index c25d0f8c140..bb12ee932b4 100644 --- a/src/mantine-demos/src/demos/core/Select/Select.demo.disabled.tsx +++ b/src/mantine-demos/src/demos/core/Select/Select.demo.disabled.tsx @@ -6,15 +6,7 @@ const code = ` import { Select } from '@mantine/core'; function Demo() { - return ( - <> - - - - ) + return - -