forked from carbon-design-system/ibm-products
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Checklist): add typescript types (carbon-design-system#5055)
* refactor(checklist): add typescript types * chore(checklist): copyright year updated * chore(checklist): type added for enableToggle prop * fix(checklist): title type updated and removed showToggle
- Loading branch information
Showing
5 changed files
with
173 additions
and
24 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
28 changes: 28 additions & 0 deletions
28
packages/ibm-products/src/components/Checklist/Checklist.types.ts
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* Copyright IBM Corp. 2024, 2024 | ||
* | ||
* This source code is licensed under the Apache-2.0 license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
export enum Themes { | ||
light = 'light', | ||
dark = 'dark', | ||
} | ||
|
||
export type Theme = Themes.light | Themes.dark; | ||
|
||
export enum Kinds { | ||
unchecked = 'unchecked', | ||
indeterminate = 'indeterminate', | ||
checked = 'checked', | ||
disabled = 'disabled', | ||
error = 'error', | ||
} | ||
|
||
export type Kind = | ||
| Kinds.unchecked | ||
| Kinds.indeterminate | ||
| Kinds.checked | ||
| Kinds.disabled | ||
| Kinds.error; |
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