-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from AnthonMS/my-button-entity-support
my-button entity support, my-slider-v2 seekbar and more.
- Loading branch information
Showing
28 changed files
with
3,030 additions
and
1,484 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
export const CARD_VERSION = '2.0.3' | ||
export const SLIDER_VERSION = '3.0.5' | ||
export const BUTTON_VERSION = '1.0.1' | ||
export const CARD_VERSION = '2.0.4' | ||
export const SLIDER_VERSION = '3.0.6' | ||
export const BUTTON_VERSION = '1.0.2' | ||
|
||
|
||
|
||
|
||
export const UNAVAILABLE = 'unavailable'; | ||
export const BINARY_STATE_ON = 'on'; | ||
export const BINARY_STATE_OFF = 'off'; | ||
const arrayLiteralIncludes = | ||
<T extends readonly unknown[]>(array: T) => | ||
(searchElement: unknown, fromIndex?: number): searchElement is T[number] => | ||
array.includes(searchElement as T[number], fromIndex); | ||
|
||
export const UNKNOWN = 'unknown'; | ||
export const ON = 'on'; | ||
export const OFF = 'off'; | ||
|
||
export const UNAVAILABLE_STATES = [UNAVAILABLE, UNKNOWN] as const; | ||
export const OFF_STATES = [UNAVAILABLE, UNKNOWN, OFF] as const; | ||
|
||
export const isUnavailableState = arrayLiteralIncludes(UNAVAILABLE_STATES); | ||
export const isOffState = arrayLiteralIncludes(OFF_STATES); |
Oops, something went wrong.