-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(sdk,main-button): rework the way we export the component
- Loading branch information
Showing
3 changed files
with
31 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export { | ||
backgroundColor as mainButtonBackgroundColor, | ||
hasShineEffect as mainButtonHasShineEffect, | ||
isMounted as isMainButtonMounted, | ||
isEnabled as isMainButtonEnabled, | ||
isLoaderVisible as isMainButtonLoaderVisible, | ||
isVisible as isMainButtonVisible, | ||
mount as mountMainButton, | ||
offClick as offMainButtonClick, | ||
onClick as onMainButtonClick, | ||
setParams as setMainButtonParams, | ||
state as mainButtonState, | ||
textColor as mainButtonTextColor, | ||
text as mainButtonText, | ||
unmount as unmountMainButton, | ||
} from './exports.variable.js'; | ||
export type { State as MainButtonState } from './types.js'; | ||
export * as miniApp from './exports.variable.js'; |
12 changes: 12 additions & 0 deletions
12
packages/sdk/src/scopes/components/main-button/exports.variable.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,12 @@ | ||
export * from './methods.js'; | ||
export { | ||
backgroundColor, | ||
hasShineEffect, | ||
isMounted, | ||
isEnabled, | ||
isLoaderVisible, | ||
isVisible, | ||
state, | ||
textColor, | ||
text, | ||
} from './signals.js'; |