-
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.
[TASK] general refactor, use fields types from hubspot react modules
- Loading branch information
Showing
83 changed files
with
2,712 additions
and
7,286 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ node_modules | |
.env* | ||
.idea | ||
.tmp | ||
.DS_Store |
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,5 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm test | ||
npm run docs |
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,73 +1,29 @@ | ||
import { init, writeJson } from './lib/init.js' | ||
import { init } from './lib/init.js' | ||
import { group, styleGroup } from './lib/group.js' | ||
import { | ||
alignment, | ||
spacing, | ||
gradient, | ||
backgroundimage, | ||
border, | ||
textalignment | ||
} from './lib/style-tab-fields.js' | ||
import { | ||
boolean, | ||
choice, | ||
number, | ||
color, | ||
icon, | ||
image, | ||
font | ||
} from './lib/fields.js' | ||
import { | ||
text, | ||
link, | ||
richtext, | ||
url, | ||
video, | ||
embed, | ||
cta | ||
} from './lib/content-tab-fields.js' | ||
import * as styleTabFields from './lib/style-tab-fields.js' | ||
import * as fields from './lib/fields.js' | ||
import * as contentTabFields from './lib/content-tab-fields.js' | ||
|
||
/** | ||
* #### Module fields entry point | ||
* @ignore | ||
* @constant | ||
*/ | ||
const moduleFields = { | ||
text, | ||
link, | ||
richtext, | ||
url, | ||
boolean, | ||
choice, | ||
number, | ||
color, | ||
icon, | ||
image, | ||
font, | ||
alignment, | ||
spacing, | ||
gradient, | ||
backgroundimage, | ||
border, | ||
textalignment, | ||
video, | ||
embed, | ||
cta | ||
...contentTabFields, | ||
...styleTabFields, | ||
...fields | ||
} | ||
|
||
/** | ||
* #### Theme fields entry point | ||
* @ignore | ||
* @constant | ||
*/ | ||
*/ | ||
const themeFields = { | ||
boolean, | ||
choice, | ||
number, | ||
color, | ||
image, | ||
font, | ||
spacing, | ||
border | ||
...fields, | ||
...styleTabFields.spacing, | ||
...styleTabFields.border | ||
} | ||
|
||
export { moduleFields, themeFields, group, styleGroup, init, writeJson } | ||
export { moduleFields, themeFields, group, styleGroup, init } |
Oops, something went wrong.