@eightshift/frontend-libs-tailwind 1.5.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/package.json +11 -18
- package/blocks/init/assets/application-admin.js +0 -10
- package/blocks/init/assets/application.js +0 -13
- package/blocks/init/assets/fonts/fraunces-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/fraunces-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-italic-latin.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin-extended.woff2 +0 -0
- package/blocks/init/assets/fonts/noto-sans-latin.woff2 +0 -0
- package/blocks/init/assets/images/index.js +0 -5
- package/blocks/init/assets/scripts/application-admin.js +0 -7
- package/blocks/init/assets/scripts/application.js +0 -3
- package/blocks/init/assets/scripts/theme-colors.js +0 -39
- package/blocks/init/assets/styles/application-admin.css +0 -6
- package/blocks/init/assets/styles/application.css +0 -3
- package/blocks/init/src/Blocks/assets/application-blocks-editor.js +0 -14
- package/blocks/init/src/Blocks/assets/application-blocks-frontend.js +0 -13
- package/blocks/init/src/Blocks/assets/application-blocks.js +0 -9
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-editor.js +0 -65
- package/blocks/init/src/Blocks/assets/scripts/application-blocks-frontend.js +0 -24
- package/blocks/init/src/Blocks/assets/scripts/link-section-editor.js +0 -262
- package/blocks/init/src/Blocks/assets/scripts/shared.js +0 -25
- package/blocks/init/src/Blocks/assets/styles/application-blocks-editor.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/application-blocks-frontend.css +0 -9
- package/blocks/init/src/Blocks/assets/styles/application-blocks.css +0 -1
- package/blocks/init/src/Blocks/assets/styles/editor/editor-overrides.css +0 -15
- package/blocks/init/src/Blocks/assets/styles/fonts.css +0 -90
- package/blocks/init/src/Blocks/assets/styles/tailwind.css +0 -30
- package/blocks/init/src/Blocks/components/admin-theme-options/admin-theme-options.php +0 -20
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/index.js +0 -36
- package/blocks/init/src/Blocks/components/admin-theme-options/assets-admin/pages/parts.js +0 -56
- package/blocks/init/src/Blocks/components/admin-theme-options/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/button/assets/index.js +0 -22
- package/blocks/init/src/Blocks/components/button/button.php +0 -88
- package/blocks/init/src/Blocks/components/button/components/button-editor.js +0 -36
- package/blocks/init/src/Blocks/components/button/components/button-options.js +0 -134
- package/blocks/init/src/Blocks/components/button/manifest.json +0 -302
- package/blocks/init/src/Blocks/components/card/card.php +0 -42
- package/blocks/init/src/Blocks/components/card/components/card-editor.js +0 -43
- package/blocks/init/src/Blocks/components/card/components/card-options.js +0 -55
- package/blocks/init/src/Blocks/components/card/manifest.json +0 -111
- package/blocks/init/src/Blocks/components/head/head.php +0 -52
- package/blocks/init/src/Blocks/components/head/manifest.json +0 -17
- package/blocks/init/src/Blocks/components/heading/components/heading-editor.js +0 -26
- package/blocks/init/src/Blocks/components/heading/components/heading-options.js +0 -62
- package/blocks/init/src/Blocks/components/heading/heading.php +0 -45
- package/blocks/init/src/Blocks/components/heading/manifest.json +0 -76
- package/blocks/init/src/Blocks/components/hero/components/hero-editor.js +0 -42
- package/blocks/init/src/Blocks/components/hero/components/hero-options.js +0 -100
- package/blocks/init/src/Blocks/components/hero/hero.php +0 -45
- package/blocks/init/src/Blocks/components/hero/manifest.json +0 -96
- package/blocks/init/src/Blocks/components/icon/components/icon-editor.js +0 -23
- package/blocks/init/src/Blocks/components/icon/components/icon-options.js +0 -65
- package/blocks/init/src/Blocks/components/icon/icon.php +0 -53
- package/blocks/init/src/Blocks/components/icon/manifest.json +0 -1238
- package/blocks/init/src/Blocks/components/image/components/image-editor.js +0 -64
- package/blocks/init/src/Blocks/components/image/components/image-options.js +0 -111
- package/blocks/init/src/Blocks/components/image/image.php +0 -68
- package/blocks/init/src/Blocks/components/image/manifest.json +0 -125
- package/blocks/init/src/Blocks/components/list/components/list-editor.js +0 -30
- package/blocks/init/src/Blocks/components/list/components/list-options.js +0 -62
- package/blocks/init/src/Blocks/components/list/list.php +0 -32
- package/blocks/init/src/Blocks/components/list/manifest.json +0 -127
- package/blocks/init/src/Blocks/components/load-more/assets/index.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/assets/load-more.js +0 -146
- package/blocks/init/src/Blocks/components/load-more/components/load-more-editor.js +0 -14
- package/blocks/init/src/Blocks/components/load-more/components/load-more-options.js +0 -19
- package/blocks/init/src/Blocks/components/load-more/load-more.php +0 -47
- package/blocks/init/src/Blocks/components/load-more/manifest.json +0 -39
- package/blocks/init/src/Blocks/components/modal/assets/index.js +0 -27
- package/blocks/init/src/Blocks/components/modal/manifest.json +0 -48
- package/blocks/init/src/Blocks/components/modal/modal.php +0 -46
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-editor.js +0 -38
- package/blocks/init/src/Blocks/components/paragraph/components/paragraph-options.js +0 -48
- package/blocks/init/src/Blocks/components/paragraph/manifest.json +0 -81
- package/blocks/init/src/Blocks/components/paragraph/paragraph.php +0 -33
- package/blocks/init/src/Blocks/components/post-header/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/post-header/post-header.php +0 -24
- package/blocks/init/src/Blocks/components/quote/components/quote-editor.js +0 -53
- package/blocks/init/src/Blocks/components/quote/components/quote-options.js +0 -29
- package/blocks/init/src/Blocks/components/quote/manifest.json +0 -47
- package/blocks/init/src/Blocks/components/quote/quote.php +0 -49
- package/blocks/init/src/Blocks/components/share/assets/index.js +0 -39
- package/blocks/init/src/Blocks/components/share/components/share-editor.js +0 -28
- package/blocks/init/src/Blocks/components/share/components/share-options.js +0 -112
- package/blocks/init/src/Blocks/components/share/manifest.json +0 -72
- package/blocks/init/src/Blocks/components/share/share.php +0 -69
- package/blocks/init/src/Blocks/components/tracking-before-body-end/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-before-body-end/tracking-before-body-end.php +0 -9
- package/blocks/init/src/Blocks/components/tracking-head/manifest.json +0 -5
- package/blocks/init/src/Blocks/components/tracking-head/tracking-head.php +0 -9
- package/blocks/init/src/Blocks/components/video/components/video-editor.js +0 -74
- package/blocks/init/src/Blocks/components/video/components/video-options.js +0 -279
- package/blocks/init/src/Blocks/components/video/manifest.json +0 -120
- package/blocks/init/src/Blocks/components/video/video.php +0 -70
- package/blocks/init/src/Blocks/custom/accordion/accordion-block.js +0 -15
- package/blocks/init/src/Blocks/custom/accordion/accordion.php +0 -28
- package/blocks/init/src/Blocks/custom/accordion/assets/index.js +0 -37
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/accordion/components/accordion-options.js +0 -18
- package/blocks/init/src/Blocks/custom/accordion/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item-block.js +0 -19
- package/blocks/init/src/Blocks/custom/accordion-item/accordion-item.php +0 -46
- package/blocks/init/src/Blocks/custom/accordion-item/components/accordion-item-editor.js +0 -60
- package/blocks/init/src/Blocks/custom/accordion-item/manifest.json +0 -69
- package/blocks/init/src/Blocks/custom/button/button-block.js +0 -13
- package/blocks/init/src/Blocks/custom/button/button.php +0 -11
- package/blocks/init/src/Blocks/custom/button/components/button-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/button/components/button-options.js +0 -12
- package/blocks/init/src/Blocks/custom/button/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/card/card-block.js +0 -13
- package/blocks/init/src/Blocks/custom/card/card.php +0 -11
- package/blocks/init/src/Blocks/custom/card/components/card-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/card/components/card-options.js +0 -15
- package/blocks/init/src/Blocks/custom/card/manifest.json +0 -18
- package/blocks/init/src/Blocks/custom/carousel/assets/index.js +0 -46
- package/blocks/init/src/Blocks/custom/carousel/assets/navigation.js +0 -31
- package/blocks/init/src/Blocks/custom/carousel/assets/pagination.js +0 -40
- package/blocks/init/src/Blocks/custom/carousel/carousel-block.js +0 -21
- package/blocks/init/src/Blocks/custom/carousel/carousel.php +0 -61
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-editor.js +0 -25
- package/blocks/init/src/Blocks/custom/carousel/components/carousel-options.js +0 -47
- package/blocks/init/src/Blocks/custom/carousel/manifest.json +0 -130
- package/blocks/init/src/Blocks/custom/column/column-block.js +0 -21
- package/blocks/init/src/Blocks/custom/column/column-hooks.js +0 -32
- package/blocks/init/src/Blocks/custom/column/column.php +0 -21
- package/blocks/init/src/Blocks/custom/column/components/column-editor.js +0 -22
- package/blocks/init/src/Blocks/custom/column/components/column-options.js +0 -580
- package/blocks/init/src/Blocks/custom/column/manifest.json +0 -625
- package/blocks/init/src/Blocks/custom/columns/columns-block.js +0 -20
- package/blocks/init/src/Blocks/custom/columns/columns.php +0 -21
- package/blocks/init/src/Blocks/custom/columns/components/columns-editor.js +0 -81
- package/blocks/init/src/Blocks/custom/columns/components/columns-options.js +0 -104
- package/blocks/init/src/Blocks/custom/columns/manifest.json +0 -581
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-editor.js +0 -28
- package/blocks/init/src/Blocks/custom/featured-content/components/featured-content-options.js +0 -248
- package/blocks/init/src/Blocks/custom/featured-content/featured-content-block.js +0 -13
- package/blocks/init/src/Blocks/custom/featured-content/featured-content.php +0 -139
- package/blocks/init/src/Blocks/custom/featured-content/manifest.json +0 -131
- package/blocks/init/src/Blocks/custom/featured-content/partials/cards.php +0 -39
- package/blocks/init/src/Blocks/custom/group/components/group-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/group/group-block.js +0 -14
- package/blocks/init/src/Blocks/custom/group/group.php +0 -10
- package/blocks/init/src/Blocks/custom/group/manifest.json +0 -32
- package/blocks/init/src/Blocks/custom/heading/components/heading-editor.js +0 -15
- package/blocks/init/src/Blocks/custom/heading/components/heading-options.js +0 -38
- package/blocks/init/src/Blocks/custom/heading/heading-block.js +0 -13
- package/blocks/init/src/Blocks/custom/heading/heading-transforms.js +0 -26
- package/blocks/init/src/Blocks/custom/heading/heading.php +0 -15
- package/blocks/init/src/Blocks/custom/heading/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/hero/components/hero-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/hero/components/hero-options.js +0 -14
- package/blocks/init/src/Blocks/custom/hero/hero-block.js +0 -13
- package/blocks/init/src/Blocks/custom/hero/hero.php +0 -11
- package/blocks/init/src/Blocks/custom/hero/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/image/components/image-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/image/components/image-options.js +0 -14
- package/blocks/init/src/Blocks/custom/image/image-block.js +0 -13
- package/blocks/init/src/Blocks/custom/image/image.php +0 -11
- package/blocks/init/src/Blocks/custom/image/manifest.json +0 -33
- package/blocks/init/src/Blocks/custom/list/components/list-editor.js +0 -14
- package/blocks/init/src/Blocks/custom/list/components/list-options.js +0 -39
- package/blocks/init/src/Blocks/custom/list/list-block.js +0 -13
- package/blocks/init/src/Blocks/custom/list/list.php +0 -15
- package/blocks/init/src/Blocks/custom/list/manifest.json +0 -58
- package/blocks/init/src/Blocks/custom/map/assets/index.js +0 -20
- package/blocks/init/src/Blocks/custom/map/assets/map-controller.js +0 -41
- package/blocks/init/src/Blocks/custom/map/assets/utils.js +0 -161
- package/blocks/init/src/Blocks/custom/map/components/map-components.js +0 -403
- package/blocks/init/src/Blocks/custom/map/components/map-editor.js +0 -56
- package/blocks/init/src/Blocks/custom/map/components/map-options.js +0 -550
- package/blocks/init/src/Blocks/custom/map/manifest.json +0 -79
- package/blocks/init/src/Blocks/custom/map/map-block.js +0 -13
- package/blocks/init/src/Blocks/custom/map/map.php +0 -52
- package/blocks/init/src/Blocks/custom/map/styles.css +0 -2
- package/blocks/init/src/Blocks/custom/modal/components/modal-editor.js +0 -90
- package/blocks/init/src/Blocks/custom/modal/manifest.json +0 -51
- package/blocks/init/src/Blocks/custom/modal/modal-block.js +0 -14
- package/blocks/init/src/Blocks/custom/modal/modal.php +0 -20
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-editor.js +0 -17
- package/blocks/init/src/Blocks/custom/paragraph/components/paragraph-options.js +0 -38
- package/blocks/init/src/Blocks/custom/paragraph/manifest.json +0 -82
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-block.js +0 -13
- package/blocks/init/src/Blocks/custom/paragraph/paragraph-transforms.js +0 -46
- package/blocks/init/src/Blocks/custom/paragraph/paragraph.php +0 -15
- package/blocks/init/src/Blocks/custom/quote/components/quote-editor.js +0 -12
- package/blocks/init/src/Blocks/custom/quote/components/quote-options.js +0 -14
- package/blocks/init/src/Blocks/custom/quote/manifest.json +0 -17
- package/blocks/init/src/Blocks/custom/quote/quote-block.js +0 -13
- package/blocks/init/src/Blocks/custom/quote/quote.php +0 -13
- package/blocks/init/src/Blocks/custom/share/components/share-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/share/components/share-options.js +0 -12
- package/blocks/init/src/Blocks/custom/share/manifest.json +0 -19
- package/blocks/init/src/Blocks/custom/share/share-block.js +0 -13
- package/blocks/init/src/Blocks/custom/share/share.php +0 -11
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-editor.js +0 -57
- package/blocks/init/src/Blocks/custom/site-footer/components/site-footer-options.js +0 -106
- package/blocks/init/src/Blocks/custom/site-footer/manifest.json +0 -73
- package/blocks/init/src/Blocks/custom/site-footer/site-footer-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-footer/site-footer.php +0 -74
- package/blocks/init/src/Blocks/custom/site-navigation/assets/index.js +0 -9
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-editor.js +0 -42
- package/blocks/init/src/Blocks/custom/site-navigation/components/site-navigation-options.js +0 -73
- package/blocks/init/src/Blocks/custom/site-navigation/manifest.json +0 -77
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation-block.js +0 -13
- package/blocks/init/src/Blocks/custom/site-navigation/site-navigation.php +0 -99
- package/blocks/init/src/Blocks/custom/table-of-contents/assets/index.js +0 -58
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-editor.js +0 -38
- package/blocks/init/src/Blocks/custom/table-of-contents/components/table-of-contents-options.js +0 -32
- package/blocks/init/src/Blocks/custom/table-of-contents/manifest.json +0 -48
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents-block.js +0 -13
- package/blocks/init/src/Blocks/custom/table-of-contents/table-of-contents.php +0 -31
- package/blocks/init/src/Blocks/custom/video/components/video-editor.js +0 -6
- package/blocks/init/src/Blocks/custom/video/components/video-options.js +0 -12
- package/blocks/init/src/Blocks/custom/video/manifest.json +0 -29
- package/blocks/init/src/Blocks/custom/video/video-block.js +0 -13
- package/blocks/init/src/Blocks/custom/video/video.php +0 -22
- package/blocks/init/src/Blocks/manifest.json +0 -32
- package/blocks/init/src/Blocks/variations/card-simple/manifest.json +0 -17
- package/blocks/init/src/Blocks/wrapper/components/wrapper-editor.js +0 -12
- package/blocks/init/src/Blocks/wrapper/components/wrapper-options.js +0 -364
- package/blocks/init/src/Blocks/wrapper/manifest.json +0 -459
- package/blocks/init/src/Blocks/wrapper/styles-editor.css +0 -13
- package/blocks/init/src/Blocks/wrapper/styles.css +0 -19
- package/blocks/init/src/Blocks/wrapper/wrapper.js +0 -27
- package/blocks/init/src/Blocks/wrapper/wrapper.php +0 -34
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Font definitions
|
|
3
|
-
Font files are split by charset to optimize loading.
|
|
4
|
-
|
|
5
|
-
Fonts used are from Google Fonts.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/* Fraunces Italic - Latin extended */
|
|
9
|
-
@font-face {
|
|
10
|
-
font-family: 'Fraunces';
|
|
11
|
-
font-style: italic;
|
|
12
|
-
font-weight: 100 900;
|
|
13
|
-
font-display: swap;
|
|
14
|
-
src: url('../../../../assets/fonts/fraunces-italic-latin-extended.woff2') format('woff2');
|
|
15
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Fraunces Italic - Latin */
|
|
19
|
-
@font-face {
|
|
20
|
-
font-family: 'Fraunces';
|
|
21
|
-
font-style: italic;
|
|
22
|
-
font-weight: 100 900;
|
|
23
|
-
font-display: swap;
|
|
24
|
-
src: url('../../../../assets/fonts/fraunces-italic-latin.woff2') format('woff2');
|
|
25
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Fraunces - Latin extended */
|
|
29
|
-
@font-face {
|
|
30
|
-
font-family: 'Fraunces';
|
|
31
|
-
font-style: normal;
|
|
32
|
-
font-weight: 100 900;
|
|
33
|
-
font-display: swap;
|
|
34
|
-
src: url('../../../../assets/fonts/fraunces-latin-extended.woff2') format('woff2');
|
|
35
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/* Fraunces - Latin */
|
|
39
|
-
@font-face {
|
|
40
|
-
font-family: 'Fraunces';
|
|
41
|
-
font-style: normal;
|
|
42
|
-
font-weight: 100 900;
|
|
43
|
-
font-display: swap;
|
|
44
|
-
src: url('../../../../assets/fonts/fraunces-latin.woff2') format('woff2');
|
|
45
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/* Noto Sans Italic - Latin extended */
|
|
49
|
-
@font-face {
|
|
50
|
-
font-family: 'Noto Sans';
|
|
51
|
-
font-style: italic;
|
|
52
|
-
font-weight: 100 900;
|
|
53
|
-
font-stretch: 62.5% 100%;
|
|
54
|
-
font-display: swap;
|
|
55
|
-
src: url('../../../../assets/fonts/noto-sans-italic-latin-extended.woff2') format('woff2');
|
|
56
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Noto Sans Italic - Latin */
|
|
60
|
-
@font-face {
|
|
61
|
-
font-family: 'Noto Sans';
|
|
62
|
-
font-style: italic;
|
|
63
|
-
font-weight: 100 900;
|
|
64
|
-
font-stretch: 62.5% 100%;
|
|
65
|
-
font-display: swap;
|
|
66
|
-
src: url('../../../../assets/fonts/noto-sans-italic-latin.woff2') format('woff2');
|
|
67
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* Noto Sans - Latin extended */
|
|
71
|
-
@font-face {
|
|
72
|
-
font-family: 'Noto Sans';
|
|
73
|
-
font-style: normal;
|
|
74
|
-
font-weight: 100 900;
|
|
75
|
-
font-stretch: 62.5% 100%;
|
|
76
|
-
font-display: swap;
|
|
77
|
-
src: url('../../../../assets/fonts/noto-sans-latin-extended.woff2') format('woff2');
|
|
78
|
-
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Noto Sans - Latin */
|
|
82
|
-
@font-face {
|
|
83
|
-
font-family: 'Noto Sans';
|
|
84
|
-
font-style: normal;
|
|
85
|
-
font-weight: 100 900;
|
|
86
|
-
font-stretch: 62.5% 100%;
|
|
87
|
-
font-display: swap;
|
|
88
|
-
src: url('../../../../assets/fonts/noto-sans-latin.woff2') format('woff2');
|
|
89
|
-
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
90
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/* stylelint-disable at-rule-no-unknown */
|
|
2
|
-
@tailwind base;
|
|
3
|
-
@tailwind components;
|
|
4
|
-
@tailwind utilities;
|
|
5
|
-
|
|
6
|
-
@layer utilities {
|
|
7
|
-
.font-soft-0 {
|
|
8
|
-
font-variation-settings: 'SOFT' 0, 'WONK' 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.font-soft-25 {
|
|
12
|
-
font-variation-settings: 'SOFT' 25, 'WONK' 0;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.font-soft-50 {
|
|
16
|
-
font-variation-settings: 'SOFT' 50, 'WONK' 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.font-soft-100 {
|
|
20
|
-
font-variation-settings: 'SOFT' 100, 'WONK' 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.wp-admin-bar-offset {
|
|
24
|
-
@apply wp-logged-in-mobile:top-[46px] wp-logged-in:top-[32px];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.wp-admin-bar-pt {
|
|
28
|
-
@apply wp-logged-in-mobile:pt-[46px] wp-logged-in:pt-[32px];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Theme options settings screen component template.
|
|
5
|
-
*
|
|
6
|
-
* @package %g_namespace%
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
use %g_namespace%\ThemeOptions\ThemeOptions;
|
|
10
|
-
use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
|
|
11
|
-
|
|
12
|
-
$manifest = Helpers::getManifestByDir(__DIR__);
|
|
13
|
-
$patterns = wp_json_encode(ThemeOptions::getPatterns());
|
|
14
|
-
?>
|
|
15
|
-
|
|
16
|
-
<input type="hidden" id="es-pattern-data" value="<?php echo esc_attr($patterns); ?>">
|
|
17
|
-
|
|
18
|
-
<div class="wrap" id="es-theme-options">
|
|
19
|
-
<?php echo esc_html__('Loading...', '%g_textdomain%'); ?>
|
|
20
|
-
</div>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import domReady from '@wordpress/dom-ready';
|
|
2
|
-
import { __ } from '@wordpress/i18n';
|
|
3
|
-
import { createRoot } from '@wordpress/element';
|
|
4
|
-
import { ThemeOptionsPage } from '@eightshift/frontend-libs-tailwind/scripts';
|
|
5
|
-
import { Parts } from './pages/parts';
|
|
6
|
-
import { Tabs, TabList, Tab, TabPanel } from '@eightshift/ui-components';
|
|
7
|
-
import { icons } from '@eightshift/ui-components/icons';
|
|
8
|
-
|
|
9
|
-
domReady(() => {
|
|
10
|
-
const rootElement = document.getElementById('es-theme-options');
|
|
11
|
-
|
|
12
|
-
if (!rootElement) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const root = createRoot(rootElement);
|
|
17
|
-
const patterns = JSON.parse(document.getElementById('es-pattern-data')?.value ?? '[]');
|
|
18
|
-
|
|
19
|
-
root.render(
|
|
20
|
-
<ThemeOptionsPage>
|
|
21
|
-
<Tabs>
|
|
22
|
-
<TabList>
|
|
23
|
-
<Tab
|
|
24
|
-
icon={icons.wrench}
|
|
25
|
-
label={__('Parts', '%g_textdomain%')}
|
|
26
|
-
/>
|
|
27
|
-
</TabList>
|
|
28
|
-
<TabPanel>
|
|
29
|
-
<Parts patterns={patterns} />
|
|
30
|
-
</TabPanel>
|
|
31
|
-
</Tabs>
|
|
32
|
-
</ThemeOptionsPage>,
|
|
33
|
-
);
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
// https://developer.wordpress.org/news/2024/03/26/how-to-use-wordpress-react-components-for-plugin-pages/
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { __ } from '@wordpress/i18n';
|
|
2
|
-
import { Select, OptionsPanel, OptionsPanelSection, Spacer } from '@eightshift/ui-components';
|
|
3
|
-
import { icons } from '@eightshift/ui-components/icons';
|
|
4
|
-
import { useContext } from '@wordpress/element';
|
|
5
|
-
import { EsThemeOptionsContext } from '@eightshift/frontend-libs-tailwind/scripts';
|
|
6
|
-
|
|
7
|
-
export const Parts = ({ patterns }) => {
|
|
8
|
-
const { settings, updateSettings, isLoading } = useContext(EsThemeOptionsContext);
|
|
9
|
-
|
|
10
|
-
return (
|
|
11
|
-
<OptionsPanel>
|
|
12
|
-
<OptionsPanelSection>
|
|
13
|
-
<Select
|
|
14
|
-
label={__('Header', '%g_textdomain%')}
|
|
15
|
-
icon={icons.header}
|
|
16
|
-
value={settings?.header}
|
|
17
|
-
onChange={(value) => updateSettings({ header: value })}
|
|
18
|
-
options={patterns}
|
|
19
|
-
className='es-uic-w-48'
|
|
20
|
-
disabled={isLoading}
|
|
21
|
-
simpleValue
|
|
22
|
-
clearable
|
|
23
|
-
inline
|
|
24
|
-
/>
|
|
25
|
-
|
|
26
|
-
<Select
|
|
27
|
-
label={__('Footer', '%g_textdomain%')}
|
|
28
|
-
icon={icons.footer}
|
|
29
|
-
value={settings?.footer}
|
|
30
|
-
onChange={(value) => updateSettings({ footer: value })}
|
|
31
|
-
options={patterns}
|
|
32
|
-
className='es-uic-w-48'
|
|
33
|
-
disabled={isLoading}
|
|
34
|
-
simpleValue
|
|
35
|
-
clearable
|
|
36
|
-
inline
|
|
37
|
-
/>
|
|
38
|
-
|
|
39
|
-
<Spacer size='s' />
|
|
40
|
-
|
|
41
|
-
<Select
|
|
42
|
-
label={__('404 page', '%g_textdomain%')}
|
|
43
|
-
icon={icons.emptyCircle}
|
|
44
|
-
value={settings?.fourOhFour}
|
|
45
|
-
onChange={(value) => updateSettings({ fourOhFour: value })}
|
|
46
|
-
options={patterns}
|
|
47
|
-
className='es-uic-w-48'
|
|
48
|
-
disabled={isLoading}
|
|
49
|
-
simpleValue
|
|
50
|
-
clearable
|
|
51
|
-
inline
|
|
52
|
-
/>
|
|
53
|
-
</OptionsPanelSection>
|
|
54
|
-
</OptionsPanel>
|
|
55
|
-
);
|
|
56
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import domReady from '@wordpress/dom-ready';
|
|
2
|
-
|
|
3
|
-
domReady(() => {
|
|
4
|
-
const elements = document.querySelectorAll('.button[href^="#"]');
|
|
5
|
-
|
|
6
|
-
if (!elements.length) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
elements.forEach((element) => {
|
|
11
|
-
element.addEventListener('click', (event) => {
|
|
12
|
-
event.preventDefault();
|
|
13
|
-
const target = document.querySelector(event.currentTarget.getAttribute('href'));
|
|
14
|
-
|
|
15
|
-
window.scrollTo({
|
|
16
|
-
top: target.offsetTop,
|
|
17
|
-
left: 0,
|
|
18
|
-
behavior: 'smooth',
|
|
19
|
-
});
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
});
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Button component template.
|
|
5
|
-
*
|
|
6
|
-
* @package %g_namespace%
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
use %g_namespace_vendor_prefix%\EightshiftLibs\Helpers\Helpers;
|
|
10
|
-
|
|
11
|
-
$manifest = Helpers::getManifestByDir(__DIR__);
|
|
12
|
-
|
|
13
|
-
$buttonUse = Helpers::checkAttr('buttonUse', $attributes, $manifest);
|
|
14
|
-
|
|
15
|
-
if (!$buttonUse) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
$additionalClass = $attributes['additionalClass'] ?? '';
|
|
20
|
-
$additionalAttributes = $attributes['additionalAttributes'] ?? [];
|
|
21
|
-
$buttonId = Helpers::checkAttr('buttonId', $attributes, $manifest);
|
|
22
|
-
$buttonType = Helpers::checkAttr('buttonType', $attributes, $manifest);
|
|
23
|
-
|
|
24
|
-
$buttonUrl = Helpers::checkAttr('buttonUrl', $attributes, $manifest);
|
|
25
|
-
$buttonIsNewTab = Helpers::checkAttr('buttonIsNewTab', $attributes, $manifest);
|
|
26
|
-
|
|
27
|
-
$buttonContent = Helpers::checkAttr('buttonContent', $attributes, $manifest);
|
|
28
|
-
|
|
29
|
-
$buttonAriaLabel = Helpers::checkAttr('buttonAriaLabel', $attributes, $manifest);
|
|
30
|
-
|
|
31
|
-
$buttonIconUse = Helpers::checkAttr('buttonIconUse', $attributes, $manifest);
|
|
32
|
-
|
|
33
|
-
$buttonAttrs = [];
|
|
34
|
-
|
|
35
|
-
if (!$buttonIconUse && empty($buttonContent)) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (!empty($additionalAttributes)) {
|
|
40
|
-
$buttonAttrs = $additionalAttributes;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
if (!empty($buttonUrl)) {
|
|
44
|
-
$buttonAttrs['href'] = $buttonUrl;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
if ($buttonIsNewTab) {
|
|
48
|
-
$buttonAttrs['target'] = '_blank';
|
|
49
|
-
$buttonAttrs['rel'] = 'noopener noreferrer';
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (!empty($buttonId)) {
|
|
53
|
-
$buttonAttrs['id'] = $buttonId;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (!empty($buttonAriaLabel)) {
|
|
57
|
-
$buttonAttrs['aria-label'] = $buttonAriaLabel;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
$buttonAttrs['class'] = Helpers::tailwindClasses('base', $attributes, $manifest, 'button', $additionalClass);
|
|
61
|
-
|
|
62
|
-
$buttonTag = !empty($buttonUrl) ? 'a' : 'button';
|
|
63
|
-
|
|
64
|
-
if (empty($buttonUrl) && !empty($buttonType)) {
|
|
65
|
-
$buttonAttrs['type'] = $buttonType;
|
|
66
|
-
}
|
|
67
|
-
?>
|
|
68
|
-
|
|
69
|
-
<<?php echo $buttonTag; // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped ?>
|
|
70
|
-
<?php
|
|
71
|
-
foreach ($buttonAttrs as $key => $value) {
|
|
72
|
-
if (empty($key) && empty($value)) {
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped
|
|
77
|
-
echo "{$key}=" . '"' . esc_attr($value) . '"';
|
|
78
|
-
}
|
|
79
|
-
?>
|
|
80
|
-
>
|
|
81
|
-
<?php
|
|
82
|
-
echo Helpers::render('icon', Helpers::props('icon', $attributes));
|
|
83
|
-
?>
|
|
84
|
-
|
|
85
|
-
<?php if (!empty($buttonContent)) { ?>
|
|
86
|
-
<span><?php echo esc_html($buttonContent); ?></span>
|
|
87
|
-
<?php } ?>
|
|
88
|
-
</<?php echo $buttonTag; // phpcs:ignore Eightshift.Security.HelpersEscape.OutputNotEscaped ?>>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { __ } from '@wordpress/i18n';
|
|
2
|
-
import { RichText } from '@wordpress/block-editor';
|
|
3
|
-
import { checkAttr, getAttrKey, tailwindClasses, props } from '@eightshift/frontend-libs-tailwind/scripts';
|
|
4
|
-
import { IconEditor } from '../../icon/components/icon-editor';
|
|
5
|
-
import manifest from './../manifest.json';
|
|
6
|
-
|
|
7
|
-
export const ButtonEditor = (attributes) => {
|
|
8
|
-
const { componentClass } = manifest;
|
|
9
|
-
|
|
10
|
-
const { setAttributes, additionalClass, placeholder = __('Add content', '%g_textdomain%') } = attributes;
|
|
11
|
-
|
|
12
|
-
const buttonContent = checkAttr('buttonContent', attributes, manifest);
|
|
13
|
-
const buttonUse = checkAttr('buttonUse', attributes, manifest);
|
|
14
|
-
|
|
15
|
-
if (!buttonUse) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return (
|
|
20
|
-
<div className={tailwindClasses(attributes, manifest, additionalClass)}>
|
|
21
|
-
<IconEditor
|
|
22
|
-
{...props('icon', attributes, {
|
|
23
|
-
blockClass: componentClass,
|
|
24
|
-
})}
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
<RichText
|
|
28
|
-
placeholder={placeholder}
|
|
29
|
-
value={buttonContent}
|
|
30
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonContent', attributes, manifest)]: value })}
|
|
31
|
-
keepPlaceholderOnFocus
|
|
32
|
-
allowedFormats={[]}
|
|
33
|
-
/>
|
|
34
|
-
</div>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { __ } from '@wordpress/i18n';
|
|
2
|
-
import {
|
|
3
|
-
getOption,
|
|
4
|
-
checkAttr,
|
|
5
|
-
getAttrKey,
|
|
6
|
-
props,
|
|
7
|
-
getOptions,
|
|
8
|
-
wpSearchRoute,
|
|
9
|
-
getHiddenOptions,
|
|
10
|
-
} from '@eightshift/frontend-libs-tailwind/scripts';
|
|
11
|
-
import { IconOptions } from '../../icon/components/icon-options';
|
|
12
|
-
import {
|
|
13
|
-
ButtonGroup,
|
|
14
|
-
ColorPicker,
|
|
15
|
-
ComponentToggle,
|
|
16
|
-
HStack,
|
|
17
|
-
InputField,
|
|
18
|
-
LinkInput,
|
|
19
|
-
OptionSelect,
|
|
20
|
-
Spacer,
|
|
21
|
-
Toggle,
|
|
22
|
-
} from '@eightshift/ui-components';
|
|
23
|
-
import { icons } from '@eightshift/ui-components/icons';
|
|
24
|
-
import { upperFirst } from '@eightshift/ui-components/utilities';
|
|
25
|
-
import manifest from './../manifest.json';
|
|
26
|
-
|
|
27
|
-
export const ButtonOptions = (attributes) => {
|
|
28
|
-
const { setAttributes, hideOptions, ...rest } = attributes;
|
|
29
|
-
|
|
30
|
-
const hiddenOptions = getHiddenOptions(hideOptions);
|
|
31
|
-
|
|
32
|
-
const buttonId = checkAttr('buttonId', attributes, manifest);
|
|
33
|
-
const buttonAriaLabel = checkAttr('buttonAriaLabel', attributes, manifest);
|
|
34
|
-
const buttonUrl = checkAttr('buttonUrl', attributes, manifest);
|
|
35
|
-
const buttonIsAnchor = checkAttr('buttonIsAnchor', attributes, manifest);
|
|
36
|
-
const buttonIsNewTab = checkAttr('buttonIsNewTab', attributes, manifest);
|
|
37
|
-
const buttonVariant = checkAttr('buttonVariant', attributes, manifest);
|
|
38
|
-
const buttonColor = checkAttr('buttonColor', attributes, manifest);
|
|
39
|
-
const buttonUse = checkAttr('buttonUse', attributes, manifest);
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<ComponentToggle
|
|
43
|
-
label={manifest.title}
|
|
44
|
-
icon={icons.buttonOutline}
|
|
45
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonUse', attributes, manifest)]: value })}
|
|
46
|
-
useComponent={buttonUse}
|
|
47
|
-
{...rest}
|
|
48
|
-
>
|
|
49
|
-
<HStack hidden={hiddenOptions?.variant && hiddenOptions?.color && hiddenOptions?.icon}>
|
|
50
|
-
<ButtonGroup hidden={hiddenOptions?.variant && hiddenOptions?.color}>
|
|
51
|
-
<OptionSelect
|
|
52
|
-
aria-label={__('Style', '%g_textdomain%')}
|
|
53
|
-
value={buttonVariant}
|
|
54
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonVariant', attributes, manifest)]: value })}
|
|
55
|
-
options={getOption('buttonVariant', attributes, manifest)}
|
|
56
|
-
type='menu'
|
|
57
|
-
hidden={hiddenOptions?.variant}
|
|
58
|
-
/>
|
|
59
|
-
|
|
60
|
-
<ColorPicker
|
|
61
|
-
aria-label={__('Color', '%g_textdomain%')}
|
|
62
|
-
value={buttonColor}
|
|
63
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonColor', attributes, manifest)]: value })}
|
|
64
|
-
colors={getOption(`buttonColor${upperFirst(buttonVariant)}`, attributes, manifest, true)}
|
|
65
|
-
hidden={hiddenOptions?.color}
|
|
66
|
-
/>
|
|
67
|
-
</ButtonGroup>
|
|
68
|
-
|
|
69
|
-
<IconOptions
|
|
70
|
-
{...props('icon', attributes, {
|
|
71
|
-
options: getOptions(attributes, manifest),
|
|
72
|
-
})}
|
|
73
|
-
hidden={hiddenOptions?.icon}
|
|
74
|
-
hideOptions='size'
|
|
75
|
-
design='compactLabel'
|
|
76
|
-
/>
|
|
77
|
-
</HStack>
|
|
78
|
-
|
|
79
|
-
<Spacer hidden={hiddenOptions?.link} />
|
|
80
|
-
|
|
81
|
-
<LinkInput
|
|
82
|
-
icon={buttonIsAnchor ? icons.globeAnchor : icons.globe}
|
|
83
|
-
url={buttonUrl}
|
|
84
|
-
onChange={({ url, isAnchor }) => {
|
|
85
|
-
setAttributes({
|
|
86
|
-
[getAttrKey('buttonUrl', attributes, manifest)]: url,
|
|
87
|
-
[getAttrKey('buttonIsAnchor', attributes, manifest)]: isAnchor ?? false,
|
|
88
|
-
});
|
|
89
|
-
}}
|
|
90
|
-
fetchSuggestions={wpSearchRoute}
|
|
91
|
-
hidden={hiddenOptions?.link}
|
|
92
|
-
/>
|
|
93
|
-
|
|
94
|
-
<Toggle
|
|
95
|
-
icon={icons.newTab}
|
|
96
|
-
label={__('Open in new tab', '%g_textdomain%')}
|
|
97
|
-
checked={buttonIsNewTab}
|
|
98
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonIsNewTab', attributes, manifest)]: value })}
|
|
99
|
-
hidden={hiddenOptions?.link || hiddenOptions?.newTab}
|
|
100
|
-
/>
|
|
101
|
-
|
|
102
|
-
<Spacer hidden={hiddenOptions?.ariaLabel} />
|
|
103
|
-
<Spacer
|
|
104
|
-
icon={icons.a11y}
|
|
105
|
-
text={__('Accessibility', '%g_textdomain%')}
|
|
106
|
-
border
|
|
107
|
-
hidden={hiddenOptions?.ariaLabel}
|
|
108
|
-
/>
|
|
109
|
-
<InputField
|
|
110
|
-
icon={icons.ariaLabel}
|
|
111
|
-
label={__('ARIA label', '%g_textdomain%')}
|
|
112
|
-
value={buttonAriaLabel}
|
|
113
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonAriaLabel', attributes, manifest)]: value })}
|
|
114
|
-
help={__('Description of the button.', '%g_textdomain%')}
|
|
115
|
-
hidden={hiddenOptions?.ariaLabel}
|
|
116
|
-
/>
|
|
117
|
-
|
|
118
|
-
<Spacer hidden={hiddenOptions?.uniqueId} />
|
|
119
|
-
<Spacer
|
|
120
|
-
icon={icons.pointerHand}
|
|
121
|
-
text={__('Advanced', '%g_textdomain%')}
|
|
122
|
-
border
|
|
123
|
-
hidden={hiddenOptions?.uniqueId}
|
|
124
|
-
/>
|
|
125
|
-
<InputField
|
|
126
|
-
icon={icons.id}
|
|
127
|
-
label={__('Unique identifier', '%g_textdomain%')}
|
|
128
|
-
value={buttonId}
|
|
129
|
-
onChange={(value) => setAttributes({ [getAttrKey('buttonId', attributes, manifest)]: value })}
|
|
130
|
-
hidden={hiddenOptions?.uniqueId}
|
|
131
|
-
/>
|
|
132
|
-
</ComponentToggle>
|
|
133
|
-
);
|
|
134
|
-
};
|