-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Feat(web-react): Introduce UNSTABLE_Toggle component #DS-1346
- Loading branch information
Showing
15 changed files
with
73 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/web-react/src/components/UNSTABLE_Toggle/demo/ToggleFluid.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import React from 'react'; | ||
import { UNSTABLE_Toggle } from '../index'; | ||
|
||
const ToggleFluid = () => <UNSTABLE_Toggle id="toggle-fluid" label="Toggle Label" isFluid />; | ||
const ToggleFluid = () => <UNSTABLE_Toggle id="toggle-fluid" label="Toggle Label" name="default" isFluid />; | ||
|
||
export default ToggleFluid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/web-react/src/components/UNSTABLE_Toggle/demo/ToggleHiddenLabel.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import React from 'react'; | ||
import { UNSTABLE_Toggle } from '../index'; | ||
|
||
const ToggleHiddenLabel = () => <UNSTABLE_Toggle id="toggle-hidden-label" label="Toggle Label" isLabelHidden />; | ||
const ToggleHiddenLabel = () => ( | ||
<UNSTABLE_Toggle id="toggle-hidden-label" label="Toggle Label" name="default" isLabelHidden /> | ||
); | ||
|
||
export default ToggleHiddenLabel; |
8 changes: 4 additions & 4 deletions
8
packages/web-react/src/components/UNSTABLE_Toggle/demo/ToggleIndicators.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react'; | ||
import { UNSTABLE_Toggle } from '../index'; | ||
|
||
const ToggleDefault = () => ( | ||
const ToggleIndicators = () => ( | ||
<> | ||
<UNSTABLE_Toggle id="toggle-indicators" label="Toggle Label" hasIndicators /> | ||
<UNSTABLE_Toggle id="toggle-indicators-checked" label="Toggle Label" isChecked hasIndicators /> | ||
<UNSTABLE_Toggle id="toggle-indicators" label="Toggle Label" name="default" hasIndicators /> | ||
<UNSTABLE_Toggle id="toggle-indicators-checked" label="Toggle Label" name="default" isChecked hasIndicators /> | ||
</> | ||
); | ||
|
||
export default ToggleDefault; | ||
export default ToggleIndicators; |
2 changes: 1 addition & 1 deletion
2
packages/web-react/src/components/UNSTABLE_Toggle/demo/ToggleRequired.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import React from 'react'; | ||
import { UNSTABLE_Toggle } from '../index'; | ||
|
||
const ToggleRequired = () => <UNSTABLE_Toggle id="toggle-required" label="Toggle Label" isRequired />; | ||
const ToggleRequired = () => <UNSTABLE_Toggle id="toggle-required" label="Toggle Label" name="default" isRequired />; | ||
|
||
export default ToggleRequired; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+23 Bytes
(100%)
...2e/demo-components-compare.spec.ts-snapshots/unstable-toggle-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.