newspack-components 2.2.1 → 3.0.0-alpha.2
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/babel.config.js +25 -0
- package/copy-styles.js +2 -10
- package/dist/{cjs/accordion → accordion}/index.js +17 -13
- package/dist/{cjs/accordion → accordion}/style.scss +7 -3
- package/dist/{cjs/action-card → action-card}/index.js +39 -43
- package/dist/{esm/action-card → action-card}/style.scss +9 -9
- package/dist/{cjs/autocomplete-tokenfield → autocomplete-tokenfield}/index.js +67 -29
- package/dist/{esm/autocomplete-tokenfield → autocomplete-tokenfield}/style.scss +14 -8
- package/dist/{cjs/autocomplete-with-suggestions → autocomplete-with-suggestions}/index.js +61 -73
- package/dist/{esm/autocomplete-with-suggestions → autocomplete-with-suggestions}/style.scss +9 -17
- package/dist/button/index.js +51 -0
- package/{src/button/index.js → dist/button/index.tsx} +12 -5
- package/dist/{cjs/button → button}/style.scss +1 -1
- package/dist/{cjs/button-card → button-card}/index.js +9 -10
- package/dist/{cjs/button-card → button-card}/style.scss +19 -13
- package/dist/{cjs/card → card}/index.js +4 -5
- package/dist/{esm/card → card}/style.scss +1 -1
- package/dist/{cjs/category-autocomplete → category-autocomplete}/index.js +51 -53
- package/dist/{esm/category-autocomplete → category-autocomplete}/style.scss +2 -2
- package/dist/{cjs/color-picker → color-picker}/index.js +14 -16
- package/dist/{cjs/color-picker → color-picker}/style.scss +3 -3
- package/dist/consts.js +7 -0
- package/dist/{cjs/custom-select-control → custom-select-control}/index.js +4 -5
- package/dist/{cjs/custom-select-control → custom-select-control}/style.scss +11 -10
- package/dist/{cjs/date-range-picker → date-range-picker}/index.js +9 -11
- package/dist/{cjs/date-range-picker → date-range-picker}/style.scss +6 -6
- package/dist/{cjs/footer → footer}/index.js +33 -36
- package/dist/{cjs/footer → footer}/style.scss +1 -1
- package/dist/{cjs/form-token-field → form-token-field}/index.js +6 -7
- package/dist/{esm/form-token-field → form-token-field}/style.scss +1 -1
- package/dist/{cjs/global-notices → global-notices}/index.js +4 -5
- package/dist/grid/index.js +44 -0
- package/dist/grid/index.tsx +34 -0
- package/dist/{cjs/grid → grid}/style.scss +9 -9
- package/dist/{cjs/handoff → handoff}/index.js +73 -71
- package/dist/{cjs/handoff-message → handoff-message}/index.js +5 -3
- package/dist/hooks/index.js +29 -0
- package/{src/hooks/index.js → dist/hooks/index.ts} +1 -1
- package/dist/{cjs/hooks → hooks}/useObjectState.js +2 -3
- package/dist/{cjs/hooks → hooks}/useObjectState.test.js +9 -9
- package/dist/{cjs/hooks → hooks}/useOnClickOutside.js +1 -2
- package/dist/hooks/usePrompt.js +47 -0
- package/{src/hooks/usePrompt.js → dist/hooks/usePrompt.ts} +4 -8
- package/dist/image-upload/index.js +148 -0
- package/dist/{cjs/image-upload → image-upload}/index.test.js +13 -6
- package/dist/{esm/image-upload → image-upload}/style.scss +5 -5
- package/dist/{cjs/index.js → index.js} +1 -1
- package/dist/{cjs/info-button → info-button}/index.js +6 -7
- package/dist/{cjs/modal → modal}/index.js +4 -5
- package/dist/{esm/modal → modal}/style.scss +5 -5
- package/dist/{cjs/newspack-icon → newspack-icon}/index.js +5 -6
- package/dist/{cjs/newspack-icon → newspack-icon}/style.scss +1 -1
- package/dist/{cjs/newspack-logo → newspack-logo}/index.js +5 -6
- package/dist/{cjs/newspack-logo → newspack-logo}/style.scss +1 -1
- package/dist/{cjs/notice → notice}/index.js +12 -10
- package/dist/{cjs/notice → notice}/style.scss +11 -11
- package/dist/patrons-logo/index.js +77 -0
- package/dist/plugin-installer/index.js +297 -0
- package/dist/{cjs/plugin-installer → plugin-installer}/style.scss +1 -1
- package/dist/{cjs/plugin-settings → plugin-settings}/SettingsSection.js +13 -13
- package/dist/plugin-settings/index.js +228 -0
- package/dist/{cjs/plugin-settings → plugin-settings}/style.scss +1 -1
- package/dist/plugin-toggle/README.md +53 -0
- package/dist/plugin-toggle/index.js +222 -0
- package/dist/{esm/plugin-toggle → plugin-toggle}/style.scss +1 -1
- package/dist/{cjs/popover → popover}/index.js +4 -5
- package/dist/{cjs/popover → popover}/style.scss +7 -7
- package/dist/{cjs/position-control → position-control}/index.js +33 -32
- package/dist/{cjs/position-control → position-control}/style.scss +8 -8
- package/dist/{cjs/progress-bar → progress-bar}/index.js +9 -10
- package/dist/{cjs/progress-bar → progress-bar}/index.test.js +16 -16
- package/dist/{cjs/progress-bar → progress-bar}/style.scss +2 -2
- package/dist/proxied-imports/router.js +15 -0
- package/dist/{cjs/radio-control → radio-control}/index.js +4 -5
- package/dist/{cjs/radio-control → radio-control}/style.scss +3 -3
- package/dist/{cjs/section-header → section-header}/index.js +20 -21
- package/dist/{esm/section-header → section-header}/style.scss +5 -1
- package/dist/{cjs/select-control → select-control}/ButtonGroupControl.js +17 -19
- package/dist/{cjs/select-control → select-control}/GroupedSelectControl.js +32 -35
- package/dist/{cjs/select-control → select-control}/index.js +7 -8
- package/dist/{cjs/select-control → select-control}/style.scss +4 -4
- package/dist/settings/MinMaxSetting.js +60 -0
- package/dist/{cjs/settings → settings}/SettingsCard.js +14 -16
- package/dist/settings/SettingsSection.js +33 -0
- package/dist/{cjs/settings → settings}/index.js +3 -4
- package/dist/{cjs/settings → settings}/style.scss +15 -2
- package/dist/sortable-newsletter-list-control/index.js +135 -0
- package/dist/sortable-newsletter-list-control/style.scss +45 -0
- package/dist/{cjs/steps-list → steps-list}/index.js +5 -6
- package/dist/{esm/steps-list → steps-list}/style.scss +2 -2
- package/dist/{cjs/steps-list-item → steps-list-item}/index.js +6 -7
- package/dist/{cjs/steps-list-item → steps-list-item}/style.scss +5 -5
- package/dist/{cjs/style-card → style-card}/index.js +21 -19
- package/dist/{esm/style-card → style-card}/style.scss +4 -4
- package/dist/{esm/style.scss → style.scss} +14 -2
- package/dist/{cjs/tabbed-navigation → tabbed-navigation}/index.js +16 -19
- package/dist/{cjs/tabbed-navigation → tabbed-navigation}/style.scss +4 -4
- package/dist/text-control/index.js +76 -0
- package/dist/text-control/index.tsx +71 -0
- package/dist/utils/index.js +36 -0
- package/dist/{cjs/waiting → waiting}/index.js +4 -5
- package/dist/web-preview/index.js +191 -0
- package/dist/{cjs/web-preview → web-preview}/style.scss +5 -5
- package/dist/with-wizard/index.js +328 -0
- package/dist/{esm/with-wizard → with-wizard}/style.scss +44 -22
- package/dist/{cjs/with-wizard-screen → with-wizard-screen}/index.js +40 -43
- package/dist/{esm/with-wizard-screen → with-wizard-screen}/style.scss +7 -7
- package/dist/{cjs/wizard → wizard}/components/WizardError.js +16 -17
- package/dist/{cjs/wizard → wizard}/index.js +44 -46
- package/dist/{cjs/wizard → wizard}/store/index.js +37 -38
- package/dist/{cjs/wizard → wizard}/store/utils.js +1 -4
- package/package.json +16 -14
- package/shared/scss/_mixins.scss +2 -2
- package/src/accordion/index.js +4 -1
- package/src/accordion/style.scss +7 -3
- package/src/action-card/style.scss +9 -9
- package/src/autocomplete-tokenfield/index.js +48 -15
- package/src/autocomplete-tokenfield/style.scss +14 -8
- package/src/autocomplete-with-suggestions/index.js +59 -62
- package/src/autocomplete-with-suggestions/style.scss +9 -17
- package/src/button/index.tsx +48 -0
- package/src/button/style.scss +1 -1
- package/src/button-card/style.scss +19 -13
- package/src/card/style.scss +1 -1
- package/src/category-autocomplete/style.scss +2 -2
- package/src/color-picker/style.scss +3 -3
- package/src/consts.js +0 -2
- package/src/custom-select-control/style.scss +11 -10
- package/src/date-range-picker/style.scss +6 -6
- package/src/footer/index.js +7 -7
- package/src/footer/style.scss +1 -1
- package/src/form-token-field/style.scss +1 -1
- package/src/grid/index.tsx +34 -0
- package/src/grid/style.scss +9 -9
- package/src/handoff/index.js +7 -6
- package/src/handoff-message/index.js +3 -1
- package/src/hooks/index.ts +15 -0
- package/src/hooks/usePrompt.ts +46 -0
- package/src/image-upload/index.js +5 -5
- package/src/image-upload/index.test.js +6 -1
- package/src/image-upload/style.scss +5 -5
- package/src/modal/style.scss +5 -5
- package/src/newspack-icon/style.scss +1 -1
- package/src/newspack-logo/style.scss +1 -1
- package/src/notice/index.js +1 -1
- package/src/notice/style.scss +11 -11
- package/src/patrons-logo/index.js +4 -1
- package/src/plugin-installer/index.js +7 -7
- package/src/plugin-installer/style.scss +1 -1
- package/src/plugin-settings/index.js +1 -1
- package/src/plugin-settings/style.scss +1 -1
- package/src/plugin-toggle/index.js +13 -12
- package/src/plugin-toggle/style.scss +1 -1
- package/src/popover/style.scss +7 -7
- package/src/position-control/index.js +63 -64
- package/src/position-control/style.scss +8 -8
- package/src/progress-bar/style.scss +2 -2
- package/src/radio-control/style.scss +3 -3
- package/src/section-header/index.js +3 -3
- package/src/section-header/style.scss +5 -1
- package/src/select-control/GroupedSelectControl.js +1 -1
- package/src/select-control/style.scss +4 -4
- package/src/settings/MinMaxSetting.js +8 -6
- package/src/settings/style.scss +15 -2
- package/src/sortable-newsletter-list-control/index.js +137 -0
- package/src/sortable-newsletter-list-control/style.scss +45 -0
- package/src/steps-list/style.scss +2 -2
- package/src/steps-list-item/style.scss +5 -5
- package/src/style-card/index.js +11 -5
- package/src/style-card/style.scss +4 -4
- package/src/style.scss +14 -2
- package/src/tabbed-navigation/style.scss +4 -4
- package/src/text-control/index.tsx +65 -0
- package/src/web-preview/index.js +6 -6
- package/src/web-preview/style.scss +5 -5
- package/src/with-wizard/index.js +4 -4
- package/src/with-wizard/style.scss +44 -22
- package/src/with-wizard-screen/index.js +1 -1
- package/src/with-wizard-screen/style.scss +7 -7
- package/src/wizard/components/WizardError.js +1 -1
- package/src/wizard/index.js +3 -3
- package/src/wizard/store/index.js +9 -2
- package/dist/cjs/action-card/style.scss +0 -483
- package/dist/cjs/autocomplete-tokenfield/style.scss +0 -43
- package/dist/cjs/autocomplete-with-suggestions/style.scss +0 -171
- package/dist/cjs/button/index.js +0 -57
- package/dist/cjs/card/style.scss +0 -168
- package/dist/cjs/category-autocomplete/style.scss +0 -34
- package/dist/cjs/consts.js +0 -12
- package/dist/cjs/form-token-field/style.scss +0 -37
- package/dist/cjs/grid/index.js +0 -54
- package/dist/cjs/hooks/index.js +0 -26
- package/dist/cjs/hooks/usePrompt.js +0 -52
- package/dist/cjs/image-upload/index.js +0 -144
- package/dist/cjs/image-upload/style.scss +0 -103
- package/dist/cjs/modal/style.scss +0 -56
- package/dist/cjs/patrons-logo/index.js +0 -82
- package/dist/cjs/plugin-installer/index.js +0 -299
- package/dist/cjs/plugin-settings/index.js +0 -222
- package/dist/cjs/plugin-toggle/index.js +0 -222
- package/dist/cjs/plugin-toggle/style.scss +0 -20
- package/dist/cjs/proxied-imports/router.js +0 -15
- package/dist/cjs/section-header/style.scss +0 -41
- package/dist/cjs/settings/MinMaxSetting.js +0 -57
- package/dist/cjs/settings/SettingsSection.js +0 -37
- package/dist/cjs/steps-list/style.scss +0 -11
- package/dist/cjs/style-card/style.scss +0 -94
- package/dist/cjs/style.scss +0 -43
- package/dist/cjs/text-control/index.js +0 -71
- package/dist/cjs/utils/index.js +0 -40
- package/dist/cjs/web-preview/index.js +0 -189
- package/dist/cjs/with-wizard/index.js +0 -318
- package/dist/cjs/with-wizard/style.scss +0 -260
- package/dist/cjs/with-wizard-screen/style.scss +0 -160
- package/dist/esm/accordion/index.js +0 -38
- package/dist/esm/accordion/style.scss +0 -27
- package/dist/esm/action-card/index.js +0 -222
- package/dist/esm/autocomplete-tokenfield/index.js +0 -223
- package/dist/esm/autocomplete-with-suggestions/index.js +0 -289
- package/dist/esm/button/index.js +0 -48
- package/dist/esm/button/style.scss +0 -11
- package/dist/esm/button-card/index.js +0 -65
- package/dist/esm/button-card/style.scss +0 -174
- package/dist/esm/card/index.js +0 -43
- package/dist/esm/category-autocomplete/index.js +0 -185
- package/dist/esm/color-picker/index.js +0 -61
- package/dist/esm/color-picker/style.scss +0 -37
- package/dist/esm/consts.js +0 -3
- package/dist/esm/custom-select-control/index.js +0 -37
- package/dist/esm/custom-select-control/style.scss +0 -92
- package/dist/esm/date-range-picker/index.js +0 -32
- package/dist/esm/date-range-picker/style.scss +0 -148
- package/dist/esm/footer/index.js +0 -105
- package/dist/esm/footer/style.scss +0 -82
- package/dist/esm/form-token-field/index.js +0 -50
- package/dist/esm/global-notices/index.js +0 -30
- package/dist/esm/grid/index.js +0 -45
- package/dist/esm/grid/style.scss +0 -166
- package/dist/esm/handoff/index.js +0 -177
- package/dist/esm/handoff-message/index.js +0 -45
- package/dist/esm/hooks/index.js +0 -17
- package/dist/esm/hooks/useObjectState.js +0 -31
- package/dist/esm/hooks/useObjectState.test.js +0 -83
- package/dist/esm/hooks/useOnClickOutside.js +0 -31
- package/dist/esm/hooks/usePrompt.js +0 -43
- package/dist/esm/image-upload/index.js +0 -141
- package/dist/esm/image-upload/index.test.js +0 -28
- package/dist/esm/index.js +0 -47
- package/dist/esm/info-button/index.js +0 -42
- package/dist/esm/info-button/style.scss +0 -18
- package/dist/esm/modal/index.js +0 -39
- package/dist/esm/newspack-icon/index.js +0 -50
- package/dist/esm/newspack-icon/style.scss +0 -26
- package/dist/esm/newspack-logo/index.js +0 -46
- package/dist/esm/newspack-logo/style.scss +0 -30
- package/dist/esm/notice/index.js +0 -67
- package/dist/esm/notice/style.scss +0 -111
- package/dist/esm/patrons-logo/index.js +0 -76
- package/dist/esm/plugin-installer/index.js +0 -295
- package/dist/esm/plugin-installer/style.scss +0 -72
- package/dist/esm/plugin-settings/SettingsSection.js +0 -136
- package/dist/esm/plugin-settings/index.js +0 -217
- package/dist/esm/plugin-settings/style.scss +0 -7
- package/dist/esm/plugin-toggle/index.js +0 -217
- package/dist/esm/popover/index.js +0 -41
- package/dist/esm/popover/style.scss +0 -161
- package/dist/esm/position-control/index.js +0 -109
- package/dist/esm/position-control/style.scss +0 -66
- package/dist/esm/progress-bar/index.js +0 -69
- package/dist/esm/progress-bar/index.test.js +0 -110
- package/dist/esm/progress-bar/style.scss +0 -42
- package/dist/esm/proxied-imports/router.js +0 -8
- package/dist/esm/radio-control/index.js +0 -37
- package/dist/esm/radio-control/style.scss +0 -92
- package/dist/esm/section-header/index.js +0 -68
- package/dist/esm/select-control/ButtonGroupControl.js +0 -54
- package/dist/esm/select-control/GroupedSelectControl.js +0 -84
- package/dist/esm/select-control/index.js +0 -51
- package/dist/esm/select-control/style.scss +0 -108
- package/dist/esm/settings/MinMaxSetting.js +0 -53
- package/dist/esm/settings/SettingsCard.js +0 -39
- package/dist/esm/settings/SettingsSection.js +0 -30
- package/dist/esm/settings/index.js +0 -9
- package/dist/esm/settings/style.scss +0 -106
- package/dist/esm/steps-list/index.js +0 -43
- package/dist/esm/steps-list-item/index.js +0 -48
- package/dist/esm/steps-list-item/style.scss +0 -47
- package/dist/esm/style-card/index.js +0 -76
- package/dist/esm/tabbed-navigation/index.js +0 -56
- package/dist/esm/tabbed-navigation/style.scss +0 -86
- package/dist/esm/text-control/index.js +0 -66
- package/dist/esm/text-control/style.scss +0 -32
- package/dist/esm/utils/index.js +0 -32
- package/dist/esm/waiting/index.js +0 -44
- package/dist/esm/waiting/style.scss +0 -27
- package/dist/esm/web-preview/index.js +0 -184
- package/dist/esm/web-preview/style.scss +0 -155
- package/dist/esm/with-wizard/index.js +0 -313
- package/dist/esm/with-wizard-screen/index.js +0 -116
- package/dist/esm/wizard/components/WizardError.js +0 -69
- package/dist/esm/wizard/index.js +0 -126
- package/dist/esm/wizard/store/index.js +0 -155
- package/dist/esm/wizard/store/utils.js +0 -17
- package/src/grid/index.js +0 -44
- package/src/text-control/index.js +0 -56
- /package/dist/{cjs/info-button → info-button}/style.scss +0 -0
- /package/dist/{cjs/text-control → text-control}/style.scss +0 -0
- /package/dist/{cjs/waiting → waiting}/style.scss +0 -0
|
@@ -1,483 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Action Card
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use 'sass:color';
|
|
6
|
-
@use '~@wordpress/base-styles/colors' as wp-colors;
|
|
7
|
-
|
|
8
|
-
.newspack-card.newspack-action-card {
|
|
9
|
-
padding: 0;
|
|
10
|
-
border-color: wp-colors.$gray-300;
|
|
11
|
-
|
|
12
|
-
// Clickable
|
|
13
|
-
|
|
14
|
-
&.newspack-card--is-clickable {
|
|
15
|
-
transition: box-shadow 125ms ease-in-out;
|
|
16
|
-
|
|
17
|
-
&:hover {
|
|
18
|
-
box-shadow: 0 4px 8px rgba( black, 0.08 );
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Status
|
|
23
|
-
|
|
24
|
-
&.newspack-card__is-disabled,
|
|
25
|
-
&.newspack-card__is-primary,
|
|
26
|
-
&.newspack-card__is-secondary,
|
|
27
|
-
&.newspack-card__is-supported,
|
|
28
|
-
&.newspack-card__is-unsupported {
|
|
29
|
-
box-shadow: inset 4px 0 0 wp-colors.$gray-100;
|
|
30
|
-
|
|
31
|
-
.newspack-action-card__region-top {
|
|
32
|
-
padding-left: 28px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.newspack-card__is-primary {
|
|
37
|
-
box-shadow: inset 4px 0 0 var( --wp-admin-theme-color );
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.newspack-card__is-secondary {
|
|
41
|
-
box-shadow: inset 4px 0 0 wp-colors.$alert-yellow;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.newspack-card__is-supported {
|
|
45
|
-
box-shadow: inset 4px 0 0 wp-colors.$alert-green;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&.newspack-card__is-unsupported {
|
|
49
|
-
box-shadow: inset 4px 0 0 wp-colors.$alert-red;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Small
|
|
53
|
-
&.is-small {
|
|
54
|
-
.newspack-action-card__region-top {
|
|
55
|
-
padding: 8px 16px;
|
|
56
|
-
|
|
57
|
-
.components-toggle-control {
|
|
58
|
-
margin-bottom: 16px;
|
|
59
|
-
|
|
60
|
-
@media screen and ( min-width: 744px ) {
|
|
61
|
-
margin-bottom: 0;
|
|
62
|
-
margin-right: 16px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
h2 {
|
|
68
|
-
font-size: 14px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
p,
|
|
72
|
-
.newspack-action-card__region-right,
|
|
73
|
-
.newspack-action-card__primary_button {
|
|
74
|
-
font-size: 12px;
|
|
75
|
-
line-height: 16px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
code {
|
|
79
|
-
padding: 0 4px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
& + & {
|
|
83
|
-
margin-top: -16px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
&.mv0 {
|
|
87
|
-
border-left-color: wp-colors.$gray-300;
|
|
88
|
-
border-radius: 0;
|
|
89
|
-
border-right-color: wp-colors.$gray-300;
|
|
90
|
-
|
|
91
|
-
&:first-of-type {
|
|
92
|
-
border-top-color: wp-colors.$gray-300;
|
|
93
|
-
border-top-left-radius: 3px;
|
|
94
|
-
border-top-right-radius: 3px;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&:last-of-type {
|
|
98
|
-
border-bottom-color: wp-colors.$gray-300;
|
|
99
|
-
border-bottom-left-radius: 3px;
|
|
100
|
-
border-bottom-right-radius: 3px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
& + & {
|
|
104
|
-
margin-top: -1px;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
&.newspack-card__is-disabled,
|
|
109
|
-
&.newspack-card__is-primary,
|
|
110
|
-
&.newspack-card__is-secondary,
|
|
111
|
-
&.newspack-card__is-supported,
|
|
112
|
-
&.newspack-card__is-unsupported {
|
|
113
|
-
.newspack-action-card__region-top {
|
|
114
|
-
padding-left: 20px;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Medium
|
|
120
|
-
|
|
121
|
-
&.is-medium {
|
|
122
|
-
.newspack-action-card__region-top {
|
|
123
|
-
padding: 16px;
|
|
124
|
-
|
|
125
|
-
.components-toggle-control {
|
|
126
|
-
margin-bottom: 16px;
|
|
127
|
-
|
|
128
|
-
@media screen and ( min-width: 744px ) {
|
|
129
|
-
margin-bottom: 0;
|
|
130
|
-
margin-right: 16px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.newspack-action-card__region-left {
|
|
136
|
-
margin-bottom: 16px;
|
|
137
|
-
|
|
138
|
-
@media screen and ( min-width: 744px ) {
|
|
139
|
-
margin-bottom: 0;
|
|
140
|
-
margin-right: 16px;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.newspack-action-card__region-children {
|
|
145
|
-
padding: 0 32px 32px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// Nested children
|
|
150
|
-
|
|
151
|
-
&.newspack-card--has-children {
|
|
152
|
-
.newspack-action-card {
|
|
153
|
-
&:first-child {
|
|
154
|
-
margin-top: 32px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
+ .newspack-action-card {
|
|
158
|
-
margin-top: 16px !important;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
&:last-child {
|
|
162
|
-
margin-bottom: 0;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
// Has grey header
|
|
168
|
-
|
|
169
|
-
&.newspack-card--has-grey-header {
|
|
170
|
-
overflow: hidden;
|
|
171
|
-
|
|
172
|
-
&.newspack-card--has-children {
|
|
173
|
-
.newspack-action-card__region-top {
|
|
174
|
-
border-bottom: 1px solid wp-colors.$gray-300;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.is-small > .newspack-action-card__region-top {
|
|
178
|
-
padding-bottom: 8px;
|
|
179
|
-
padding-top: 8px;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.newspack-action-card__region-top {
|
|
184
|
-
background-color: rgba( black, 0.025 );
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.newspack-action-card__region-center {
|
|
188
|
-
p {
|
|
189
|
-
color: color.adjust( wp-colors.$gray-700, $lightness: -0.75% );
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&.newspack-card--has-white-header {
|
|
195
|
-
.newspack-action-card__region-top {
|
|
196
|
-
background-color: transparent;
|
|
197
|
-
border: none !important;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// Indent
|
|
202
|
-
|
|
203
|
-
&.newspack-card--indent {
|
|
204
|
-
margin-left: 56px;
|
|
205
|
-
position: relative;
|
|
206
|
-
|
|
207
|
-
&::before {
|
|
208
|
-
border: 0 solid wp-colors.$gray-300;
|
|
209
|
-
border-left-width: 1px;
|
|
210
|
-
border-bottom-width: 1px;
|
|
211
|
-
border-radius: 0 0 0 2px;
|
|
212
|
-
content: '';
|
|
213
|
-
display: block;
|
|
214
|
-
position: absolute;
|
|
215
|
-
inset: -17px 100% 50% -28px;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Typography
|
|
220
|
-
|
|
221
|
-
h2,
|
|
222
|
-
p:not( [class*='components-base-control'] ) {
|
|
223
|
-
margin: 0;
|
|
224
|
-
max-width: 100%;
|
|
225
|
-
width: 100%;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
h2 {
|
|
229
|
-
align-items: center;
|
|
230
|
-
display: flex;
|
|
231
|
-
flex-wrap: wrap;
|
|
232
|
-
margin-right: -8px;
|
|
233
|
-
|
|
234
|
-
.newspack-action-card__title {
|
|
235
|
-
margin-right: 8px;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
a {
|
|
239
|
-
color: inherit;
|
|
240
|
-
text-decoration: none;
|
|
241
|
-
|
|
242
|
-
&:active,
|
|
243
|
-
&:focus,
|
|
244
|
-
&:hover {
|
|
245
|
-
color: var( --wp-admin-theme-color );
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Regions
|
|
251
|
-
|
|
252
|
-
.newspack-action-card__region {
|
|
253
|
-
align-items: center;
|
|
254
|
-
display: flex;
|
|
255
|
-
justify-content: space-between;
|
|
256
|
-
margin: 0;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.newspack-action-card__region-top {
|
|
260
|
-
padding: 24px;
|
|
261
|
-
display: block;
|
|
262
|
-
|
|
263
|
-
@media screen and ( min-width: 744px ) {
|
|
264
|
-
display: flex;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
// Toggle Control
|
|
268
|
-
.components-toggle-control {
|
|
269
|
-
margin-bottom: 24px;
|
|
270
|
-
margin-top: 0;
|
|
271
|
-
|
|
272
|
-
@media screen and ( min-width: 744px ) {
|
|
273
|
-
margin-bottom: 0;
|
|
274
|
-
margin-right: 24px;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
.components-base-control__field {
|
|
278
|
-
margin-bottom: 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.components-form-toggle {
|
|
282
|
-
display: flex;
|
|
283
|
-
margin: 0;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.newspack-action-card__region-children {
|
|
289
|
-
padding: 0 24px 24px;
|
|
290
|
-
|
|
291
|
-
&__inner {
|
|
292
|
-
padding-top: 32px;
|
|
293
|
-
|
|
294
|
-
> *:first-child {
|
|
295
|
-
margin-top: 0 !important;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
> *:last-child {
|
|
299
|
-
margin-bottom: 0 !important;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.newspack-section-header {
|
|
304
|
-
margin: 32px 0 16px;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.newspack-card,
|
|
308
|
-
.newspack-checkbox-control,
|
|
309
|
-
.newspack-grid,
|
|
310
|
-
.newspack-text-control,
|
|
311
|
-
.newspack-toggle-control {
|
|
312
|
-
margin: 16px 0;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.newspack-action-card__region-left {
|
|
317
|
-
margin-bottom: 24px;
|
|
318
|
-
|
|
319
|
-
@media screen and ( min-width: 744px ) {
|
|
320
|
-
margin-bottom: 0;
|
|
321
|
-
margin-right: 24px;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.newspack-action-card__region-center {
|
|
326
|
-
align-items: flex-start;
|
|
327
|
-
flex: 1 1 auto;
|
|
328
|
-
flex-wrap: wrap;
|
|
329
|
-
|
|
330
|
-
.newspack-grid {
|
|
331
|
-
width: 100%;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
p {
|
|
335
|
-
color: wp-colors.$gray-700;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.newspack-action-card__region-right {
|
|
340
|
-
align-items: flex-start;
|
|
341
|
-
flex: 0 0 auto;
|
|
342
|
-
flex-direction: column;
|
|
343
|
-
margin-top: 24px;
|
|
344
|
-
text-align: right;
|
|
345
|
-
|
|
346
|
-
@media screen and ( min-width: 744px ) {
|
|
347
|
-
align-items: flex-end;
|
|
348
|
-
flex-direction: column;
|
|
349
|
-
margin-left: 24px;
|
|
350
|
-
margin-top: 0;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
> * {
|
|
354
|
-
text-align: inherit;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
.newspack-action-card__secondary_button {
|
|
358
|
-
margin-top: 8px;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
// Waiting
|
|
363
|
-
|
|
364
|
-
.newspack-action-card__container {
|
|
365
|
-
display: flex;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// Notifications
|
|
369
|
-
|
|
370
|
-
.newspack-action-card__notification {
|
|
371
|
-
.newspack-notice {
|
|
372
|
-
margin: 0;
|
|
373
|
-
|
|
374
|
-
&__heading {
|
|
375
|
-
margin-top: 0;
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
&.newspack-action-card__region-children {
|
|
380
|
-
.newspack-notice {
|
|
381
|
-
margin-top: 32px;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
// Image
|
|
387
|
-
|
|
388
|
-
.newspack-action-card__image {
|
|
389
|
-
background-position: center;
|
|
390
|
-
background-repeat: no-repeat;
|
|
391
|
-
background-size: cover;
|
|
392
|
-
border-radius: 50%;
|
|
393
|
-
height: 48px;
|
|
394
|
-
width: 48px;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
// Icon
|
|
398
|
-
|
|
399
|
-
.newspack_plugin-installer__icon {
|
|
400
|
-
margin: 0;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
// Badge
|
|
404
|
-
|
|
405
|
-
.newspack-action-card__badge {
|
|
406
|
-
background: wp-colors.$gray-100;
|
|
407
|
-
border-radius: 2px;
|
|
408
|
-
color: wp-colors.$gray-900;
|
|
409
|
-
display: block;
|
|
410
|
-
flex: 0 0 auto;
|
|
411
|
-
font-size: 10px;
|
|
412
|
-
font-weight: bold;
|
|
413
|
-
line-height: 1.4;
|
|
414
|
-
margin: 0 8px 0 0;
|
|
415
|
-
padding: 2px 8px;
|
|
416
|
-
text-transform: uppercase;
|
|
417
|
-
|
|
418
|
-
+ .newspack-action-card__badge {
|
|
419
|
-
margin-left: -4px;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
// Description Card
|
|
424
|
-
|
|
425
|
-
&.newspack-description-card {
|
|
426
|
-
font-style: italic;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
// Expandable card children
|
|
430
|
-
|
|
431
|
-
&.is-expandable {
|
|
432
|
-
.newspack-action-card__title .components-button.is-link {
|
|
433
|
-
color: inherit;
|
|
434
|
-
font-size: inherit;
|
|
435
|
-
font-weight: inherit;
|
|
436
|
-
text-decoration: inherit;
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
.newspack-action-card__region-children {
|
|
440
|
-
border-top: 1px solid wp-colors.$gray-100;
|
|
441
|
-
padding-top: 24px;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
&.is-medium .newspack-action-card__region-children {
|
|
445
|
-
padding-top: 32px;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
&.has-checkbox {
|
|
449
|
-
.newspack-action-card__region-children {
|
|
450
|
-
padding-left: 72px;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
&.is-small .newspack-action-card__region-children {
|
|
454
|
-
padding-left: 64px;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
&.is-medium .newspack-action-card__region-children {
|
|
458
|
-
padding-left: 56px;
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
// Action content with multiple buttons
|
|
464
|
-
&.has-action-content .newspack-action-card__region-right {
|
|
465
|
-
flex-direction: row;
|
|
466
|
-
|
|
467
|
-
.components-button + .components-button {
|
|
468
|
-
margin-left: 8px;
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
// Multiple Cards
|
|
473
|
-
|
|
474
|
-
& + & {
|
|
475
|
-
margin-top: -16px;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.newspack-card {
|
|
480
|
-
.newspack-card.newspack-action-card {
|
|
481
|
-
border: 1px solid wp-colors.$gray-200;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Autocomplete Token Field
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use '~@wordpress/base-styles/colors' as wp-colors;
|
|
6
|
-
|
|
7
|
-
.newspack-autocomplete-tokenfield {
|
|
8
|
-
position: relative;
|
|
9
|
-
|
|
10
|
-
.components-spinner {
|
|
11
|
-
margin: 8px;
|
|
12
|
-
position: absolute;
|
|
13
|
-
right: 0;
|
|
14
|
-
top: calc( 1.4em + 8px );
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Workaround for hard-coded help text in FormTokenField. */
|
|
18
|
-
.components-form-token-field {
|
|
19
|
-
> .components-form-token-field__help {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
> .components-form-token-field__token-text {
|
|
24
|
-
align-items: center;
|
|
25
|
-
display: flex;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.newspack-autocomplete-tokenfield__help {
|
|
30
|
-
color: wp-colors.$gray-700;
|
|
31
|
-
font-size: inherit;
|
|
32
|
-
margin-top: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.components-form-token-field__suggestions-list {
|
|
36
|
-
margin-left: 0;
|
|
37
|
-
padding-left: 0;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.components-button:focus:not( :disabled ) {
|
|
41
|
-
box-shadow: inset 0 0 0 var( --wp-admin-border-width-focus ) var( --wp-admin-theme-color );
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Styles for AutocompleteWithSuggestions component.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use '~@wordpress/base-styles/colors' as wp-colors;
|
|
6
|
-
|
|
7
|
-
.newspack-autocomplete-with-suggestions {
|
|
8
|
-
width: 100%;
|
|
9
|
-
|
|
10
|
-
&.hide-help {
|
|
11
|
-
> .components-base-control,
|
|
12
|
-
> .newspack-autocomplete-tokenfield,
|
|
13
|
-
> .newspack-autocomplete-with-suggestions__search-suggestions,
|
|
14
|
-
> .newspack-autocomplete-with-suggestions__search-suggestions-multiselect {
|
|
15
|
-
margin-top: 16px;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.components-spinner {
|
|
20
|
-
margin: 8px;
|
|
21
|
-
right: 0;
|
|
22
|
-
top: calc( 1.4em + 8px );
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.components-select-control__input {
|
|
26
|
-
max-width: none;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.components-input-control__backdrop {
|
|
30
|
-
border-color: wp-colors.$gray-700 !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.newspack-autocomplete-with-suggestions__label,
|
|
34
|
-
.components-form-token-field__label,
|
|
35
|
-
.components-input-control__label,
|
|
36
|
-
.components-checkbox-control__label {
|
|
37
|
-
color: wp-colors.$gray-900 !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__suggestions-spinner {
|
|
41
|
-
background: wp-colors.$gray-100;
|
|
42
|
-
border: 1px solid wp-colors.$gray-700;
|
|
43
|
-
border-radius: 2px;
|
|
44
|
-
cursor: progress;
|
|
45
|
-
margin: 16px 0;
|
|
46
|
-
padding: 32px;
|
|
47
|
-
|
|
48
|
-
.components-spinner {
|
|
49
|
-
display: block;
|
|
50
|
-
margin: 0 auto;
|
|
51
|
-
position: relative;
|
|
52
|
-
right: auto;
|
|
53
|
-
top: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.newspack-autocomplete-tokenfield__help {
|
|
58
|
-
font-size: inherit;
|
|
59
|
-
margin-bottom: 8px !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.components-form-token-field {
|
|
63
|
-
&__input-container {
|
|
64
|
-
border-color: wp-colors.$gray-700;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&__suggestions-list {
|
|
68
|
-
border-top-color: wp-colors.$gray-700;
|
|
69
|
-
margin: 4px -4px -2px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
&__suggestion {
|
|
73
|
-
padding: 8px;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
p.newspack-autocomplete-with-suggestions__label {
|
|
78
|
-
font-size: inherit;
|
|
79
|
-
margin: 0 0 8px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__selected-items {
|
|
83
|
-
border-bottom: 1px solid wp-colors.$gray-700;
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
gap: 8px;
|
|
87
|
-
margin-bottom: 16px;
|
|
88
|
-
padding-bottom: 12px;
|
|
89
|
-
|
|
90
|
-
p.newspack-autocomplete-with-suggestions__label {
|
|
91
|
-
flex: 0 0 100%;
|
|
92
|
-
margin: 0;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
&__selected-item-button.components-button.is-tertiary {
|
|
97
|
-
background-color: wp-colors.$gray-300;
|
|
98
|
-
border-radius: 2px;
|
|
99
|
-
color: wp-colors.$gray-900;
|
|
100
|
-
font-size: 13px;
|
|
101
|
-
height: auto;
|
|
102
|
-
margin: 0;
|
|
103
|
-
padding-left: 8px;
|
|
104
|
-
padding-right: 8px;
|
|
105
|
-
|
|
106
|
-
&::after {
|
|
107
|
-
content: '✕';
|
|
108
|
-
margin-left: 8px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&:hover {
|
|
112
|
-
box-shadow: none;
|
|
113
|
-
color: black;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&__search-suggestions,
|
|
118
|
-
&__search-suggestions-multiselect {
|
|
119
|
-
border-radius: 2px;
|
|
120
|
-
border: 1px solid wp-colors.$gray-700;
|
|
121
|
-
max-height: 178px;
|
|
122
|
-
overflow-x: visible;
|
|
123
|
-
overflow-y: auto;
|
|
124
|
-
padding: 8px 8px 0;
|
|
125
|
-
|
|
126
|
-
.components-button {
|
|
127
|
-
display: block;
|
|
128
|
-
line-height: normal;
|
|
129
|
-
margin: auto;
|
|
130
|
-
|
|
131
|
-
&.is-link {
|
|
132
|
-
color: wp-colors.$gray-900;
|
|
133
|
-
padding: 8px;
|
|
134
|
-
text-decoration: none;
|
|
135
|
-
width: 100%;
|
|
136
|
-
|
|
137
|
-
&:active:not( :disabled ),
|
|
138
|
-
&:hover:not( :disabled ) {
|
|
139
|
-
background: wp-colors.$gray-900;
|
|
140
|
-
background: var( --wp-admin-theme-color );
|
|
141
|
-
color: white;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
&.is-secondary {
|
|
145
|
-
margin-bottom: 8px;
|
|
146
|
-
margin-top: 8px;
|
|
147
|
-
width: 100%;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&__search-suggestions {
|
|
153
|
-
border-radius: 2px;
|
|
154
|
-
border: 1px solid wp-colors.$gray-700;
|
|
155
|
-
padding: 0;
|
|
156
|
-
|
|
157
|
-
.components-button {
|
|
158
|
-
line-height: normal;
|
|
159
|
-
|
|
160
|
-
&:focus:not( :disabled ) {
|
|
161
|
-
border-radius: 0;
|
|
162
|
-
box-shadow: inset 0 0 0 1.5px wp-colors.$gray-900;
|
|
163
|
-
box-shadow: inset 0 0 0 var( --wp-admin-border-width-focus ) var( --wp-admin-theme-color );
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&.is-secondary {
|
|
167
|
-
width: calc( 100% - 16px );
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|