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,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies
|
|
3
|
-
*/
|
|
4
|
-
import { BaseControl } from '@wordpress/components';
|
|
5
|
-
import { __ as alias__ } from '@wordpress/i18n';
|
|
6
|
-
const __ = alias__;
|
|
7
|
-
import { Icon, chevronDown } from '@wordpress/icons';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* External dependencies
|
|
11
|
-
*/
|
|
12
|
-
import classnames from 'classnames';
|
|
13
|
-
import find from 'lodash/find';
|
|
14
|
-
import some from 'lodash/some';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Internal dependencies
|
|
18
|
-
*/
|
|
19
|
-
import { hooks } from '..';
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* SelectControl with optgroup support
|
|
23
|
-
*/
|
|
24
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
26
|
-
export default function GroupedSelectControl(_ref) {
|
|
27
|
-
let {
|
|
28
|
-
help,
|
|
29
|
-
label,
|
|
30
|
-
onChange,
|
|
31
|
-
optgroups = [],
|
|
32
|
-
className,
|
|
33
|
-
hideLabelFromVision,
|
|
34
|
-
...props
|
|
35
|
-
} = _ref;
|
|
36
|
-
const onChangeValue = event => {
|
|
37
|
-
const {
|
|
38
|
-
value
|
|
39
|
-
} = event.target;
|
|
40
|
-
const optgroup = find(optgroups, group => some(group.options, ['value', value]));
|
|
41
|
-
onChange(value, optgroup);
|
|
42
|
-
};
|
|
43
|
-
const id = hooks.useUniqueId('group-select');
|
|
44
|
-
return _jsx(BaseControl, {
|
|
45
|
-
label: label,
|
|
46
|
-
hideLabelFromVision: hideLabelFromVision,
|
|
47
|
-
id: id,
|
|
48
|
-
help: help,
|
|
49
|
-
className: classnames(className, 'components-select-control'),
|
|
50
|
-
children: _jsxs("div", {
|
|
51
|
-
className: "relative",
|
|
52
|
-
children: [_jsxs("select", {
|
|
53
|
-
id: id,
|
|
54
|
-
className: "components-select-control__input",
|
|
55
|
-
onChange: onChangeValue,
|
|
56
|
-
"aria-describedby": !!help ? `${id}__help` : undefined,
|
|
57
|
-
...props,
|
|
58
|
-
children: [_jsx("option", {
|
|
59
|
-
value: "",
|
|
60
|
-
children: __('-- Select --', 'newspack')
|
|
61
|
-
}), optgroups.map((_ref2, optgroupIndex) => {
|
|
62
|
-
let {
|
|
63
|
-
label: optgroupLabel,
|
|
64
|
-
options
|
|
65
|
-
} = _ref2;
|
|
66
|
-
return _jsx("optgroup", {
|
|
67
|
-
label: optgroupLabel,
|
|
68
|
-
children: options.map((option, optionIndex) => _jsx("option", {
|
|
69
|
-
value: option.value,
|
|
70
|
-
disabled: option.disabled,
|
|
71
|
-
children: option.label
|
|
72
|
-
}, `${option.label}-${option.value}-${optionIndex}`))
|
|
73
|
-
}, optgroupIndex);
|
|
74
|
-
})]
|
|
75
|
-
}), _jsx("div", {
|
|
76
|
-
className: "components-select-control__arrow-wrapper",
|
|
77
|
-
children: _jsx(Icon, {
|
|
78
|
-
icon: chevronDown,
|
|
79
|
-
size: 18
|
|
80
|
-
})
|
|
81
|
-
})]
|
|
82
|
-
})
|
|
83
|
-
});
|
|
84
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Select Control
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* WordPress dependencies
|
|
7
|
-
*/
|
|
8
|
-
import { SelectControl as BaseComponent } from '@wordpress/components';
|
|
9
|
-
import { Component } from '@wordpress/element';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* External dependencies
|
|
13
|
-
*/
|
|
14
|
-
import classNames from 'classnames';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Internal dependencies
|
|
18
|
-
*/
|
|
19
|
-
import './style.scss';
|
|
20
|
-
import GroupedSelectControl from './GroupedSelectControl';
|
|
21
|
-
import ButtonGroupControl from './ButtonGroupControl';
|
|
22
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
23
|
-
class SelectControl extends Component {
|
|
24
|
-
/**
|
|
25
|
-
* Render.
|
|
26
|
-
*/
|
|
27
|
-
render() {
|
|
28
|
-
const {
|
|
29
|
-
className,
|
|
30
|
-
optgroups,
|
|
31
|
-
buttonOptions,
|
|
32
|
-
buttonSmall,
|
|
33
|
-
...otherProps
|
|
34
|
-
} = this.props;
|
|
35
|
-
const classes = classNames('newspack-select-control', optgroups && 'newspack-grouped-select-control', buttonOptions && 'newspack-buttons-select-control', className);
|
|
36
|
-
return _jsx("div", {
|
|
37
|
-
className: classes,
|
|
38
|
-
children: optgroups ? _jsx(GroupedSelectControl, {
|
|
39
|
-
optgroups: optgroups,
|
|
40
|
-
...otherProps
|
|
41
|
-
}) : buttonOptions ? _jsx(ButtonGroupControl, {
|
|
42
|
-
buttonOptions: buttonOptions,
|
|
43
|
-
buttonSmall: buttonSmall,
|
|
44
|
-
...otherProps
|
|
45
|
-
}) : _jsx(BaseComponent, {
|
|
46
|
-
...otherProps
|
|
47
|
-
})
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
export default SelectControl;
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Select Control
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
@use '~@wordpress/base-styles/colors' as wp-colors;
|
|
6
|
-
|
|
7
|
-
.components-select-control {
|
|
8
|
-
&__input {
|
|
9
|
-
max-width: 100% !important;
|
|
10
|
-
|
|
11
|
-
&[multiple] {
|
|
12
|
-
height: auto !important;
|
|
13
|
-
min-height: 70px !important;
|
|
14
|
-
padding: 0 !important;
|
|
15
|
-
|
|
16
|
-
+ .components-input-control__suffix {
|
|
17
|
-
display: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
option {
|
|
21
|
-
min-height: 1.4em;
|
|
22
|
-
padding: 8px;
|
|
23
|
-
|
|
24
|
-
&:checked {
|
|
25
|
-
background: var( --wp-admin-theme-color );
|
|
26
|
-
color: white;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.components-base-control__field {
|
|
33
|
-
width: 100%;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.components-input-control__label {
|
|
37
|
-
line-height: inherit;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Grouped
|
|
42
|
-
|
|
43
|
-
.newspack-grouped-select-control {
|
|
44
|
-
position: relative;
|
|
45
|
-
|
|
46
|
-
.components-select-control {
|
|
47
|
-
&__input {
|
|
48
|
-
appearance: none;
|
|
49
|
-
background: transparent;
|
|
50
|
-
border: 1px solid wp-colors.$gray-700;
|
|
51
|
-
border-radius: 2px;
|
|
52
|
-
box-shadow: none !important;
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
display: block;
|
|
55
|
-
font-size: inherit;
|
|
56
|
-
margin: 0;
|
|
57
|
-
max-width: 100%;
|
|
58
|
-
outline: none;
|
|
59
|
-
padding: 0 24px 0 7px;
|
|
60
|
-
width: 100%;
|
|
61
|
-
|
|
62
|
-
&:hover {
|
|
63
|
-
color: inherit;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:focus {
|
|
67
|
-
border-color: var( --wp-admin-theme-color-darker-10 ) !important;
|
|
68
|
-
box-shadow: inset 0 0 0 1px var( --wp-admin-theme-color-darker-10 ) !important;
|
|
69
|
-
color: inherit;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&__arrow-wrapper {
|
|
74
|
-
align-items: center;
|
|
75
|
-
display: flex;
|
|
76
|
-
height: 24px;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
margin-top: -12px;
|
|
79
|
-
position: absolute;
|
|
80
|
-
right: 1px;
|
|
81
|
-
top: 50%;
|
|
82
|
-
width: 24px;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// Buttons
|
|
88
|
-
|
|
89
|
-
.newspack-buttons-select-control {
|
|
90
|
-
.components-base-control__label {
|
|
91
|
-
display: inline-flex;
|
|
92
|
-
margin-bottom: 8px;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.components-button-group {
|
|
96
|
-
display: flex;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&.icon-only {
|
|
100
|
-
.components-button {
|
|
101
|
-
align-items: center;
|
|
102
|
-
height: 36px;
|
|
103
|
-
justify-content: center;
|
|
104
|
-
padding: 0 !important;
|
|
105
|
-
width: 36px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WordPress dependencies.
|
|
3
|
-
*/
|
|
4
|
-
import { __ as alias__ } from '@wordpress/i18n';
|
|
5
|
-
const __ = alias__;
|
|
6
|
-
import { CheckboxControl } from '@wordpress/components';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Internal dependencies.
|
|
10
|
-
*/
|
|
11
|
-
import { TextControl } from '../';
|
|
12
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "@emotion/react/jsx-runtime";
|
|
15
|
-
const MinMaxSetting = _ref => {
|
|
16
|
-
let {
|
|
17
|
-
min,
|
|
18
|
-
max,
|
|
19
|
-
onChangeMin,
|
|
20
|
-
onChangeMax,
|
|
21
|
-
minPlaceholder,
|
|
22
|
-
maxPlaceholder
|
|
23
|
-
} = _ref;
|
|
24
|
-
return _jsxs(_Fragment, {
|
|
25
|
-
children: [_jsxs("div", {
|
|
26
|
-
className: "newspack-settings__min-max",
|
|
27
|
-
children: [_jsx(CheckboxControl, {
|
|
28
|
-
checked: min > 0,
|
|
29
|
-
onChange: value => onChangeMin(value ? 1 : 0),
|
|
30
|
-
label: __('Min', 'newspack')
|
|
31
|
-
}), _jsx(TextControl, {
|
|
32
|
-
"data-testid": "min-articles-input",
|
|
33
|
-
type: "number",
|
|
34
|
-
value: min,
|
|
35
|
-
placeholder: minPlaceholder,
|
|
36
|
-
onChange: value => onChangeMin(value > 0 ? value : 0)
|
|
37
|
-
})]
|
|
38
|
-
}), _jsxs("div", {
|
|
39
|
-
className: "newspack-settings__min-max",
|
|
40
|
-
children: [_jsx(CheckboxControl, {
|
|
41
|
-
checked: max > 0,
|
|
42
|
-
onChange: value => onChangeMax(value ? min || 1 : 0),
|
|
43
|
-
label: __('Max', 'newspack')
|
|
44
|
-
}), _jsx(TextControl, {
|
|
45
|
-
type: "number",
|
|
46
|
-
value: max,
|
|
47
|
-
placeholder: maxPlaceholder,
|
|
48
|
-
onChange: value => onChangeMax(value > 0 ? value : 0)
|
|
49
|
-
})]
|
|
50
|
-
})]
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
export default MinMaxSetting;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* External dependencies.
|
|
3
|
-
*/
|
|
4
|
-
import classnames from 'classnames';
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Internal dependencies.
|
|
8
|
-
*/
|
|
9
|
-
import { Grid, ActionCard } from '../';
|
|
10
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
11
|
-
const SettingsCard = _ref => {
|
|
12
|
-
let {
|
|
13
|
-
children,
|
|
14
|
-
className,
|
|
15
|
-
columns,
|
|
16
|
-
gutter,
|
|
17
|
-
noBorder,
|
|
18
|
-
rowGap,
|
|
19
|
-
...props
|
|
20
|
-
} = _ref;
|
|
21
|
-
const classes = classnames('newspack-settings__card', noBorder && 'newspack-settings__no-border', className);
|
|
22
|
-
return _jsx(ActionCard, {
|
|
23
|
-
...props,
|
|
24
|
-
className: classes,
|
|
25
|
-
notificationLevel: "info",
|
|
26
|
-
noBorder: noBorder,
|
|
27
|
-
children: _jsx(Grid, {
|
|
28
|
-
columns: columns,
|
|
29
|
-
gutter: gutter,
|
|
30
|
-
rowGap: rowGap,
|
|
31
|
-
children: children
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
SettingsCard.defaultProps = {
|
|
36
|
-
columns: 3,
|
|
37
|
-
gutter: 32
|
|
38
|
-
};
|
|
39
|
-
export default SettingsCard;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal dependencies.
|
|
3
|
-
*/
|
|
4
|
-
import { Grid, InfoButton } from '../';
|
|
5
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
7
|
-
const SettingSection = _ref => {
|
|
8
|
-
let {
|
|
9
|
-
title,
|
|
10
|
-
description,
|
|
11
|
-
children
|
|
12
|
-
} = _ref;
|
|
13
|
-
return _jsxs(Grid, {
|
|
14
|
-
columns: 1,
|
|
15
|
-
gutter: 8,
|
|
16
|
-
className: "newspack-settings__section",
|
|
17
|
-
children: [_jsxs("div", {
|
|
18
|
-
className: "newspack-settings__section__title",
|
|
19
|
-
children: [_jsx("span", {
|
|
20
|
-
children: title
|
|
21
|
-
}), description && _jsx(InfoButton, {
|
|
22
|
-
text: description
|
|
23
|
-
})]
|
|
24
|
-
}), _jsx("div", {
|
|
25
|
-
className: "newspack-settings__section__content",
|
|
26
|
-
children: children
|
|
27
|
-
})]
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
export default SettingSection;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.newspack-settings {
|
|
2
|
-
&__card {
|
|
3
|
-
&.newspack-card.newspack-action-card {
|
|
4
|
-
.newspack-action-card__region-top {
|
|
5
|
-
padding: 32px 32px 16px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.newspack-action-card__region-children {
|
|
9
|
-
padding: 0 32px 32px;
|
|
10
|
-
|
|
11
|
-
> .newspack-grid {
|
|
12
|
-
margin: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.newspack-action-card__notification {
|
|
17
|
-
padding-bottom: 16px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.newspack-form-token-field {
|
|
22
|
-
margin: 0;
|
|
23
|
-
|
|
24
|
-
.components-form-token-field {
|
|
25
|
-
width: 100%;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.newspack-settings__section {
|
|
30
|
-
&__title {
|
|
31
|
-
align-items: center;
|
|
32
|
-
display: flex;
|
|
33
|
-
margin: 0;
|
|
34
|
-
|
|
35
|
-
span {
|
|
36
|
-
line-height: 24px;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
&__content {
|
|
40
|
-
> div {
|
|
41
|
-
margin: 0;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
justify-content: space-between;
|
|
45
|
-
flex-wrap: wrap;
|
|
46
|
-
> *:not( [class*='help'], [class*='label'] ) {
|
|
47
|
-
margin: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
.newspack-text-control,
|
|
51
|
-
.newspack-checkbox-control {
|
|
52
|
-
margin: 0 !important;
|
|
53
|
-
}
|
|
54
|
-
.newspack-select-control {
|
|
55
|
-
.components-base-control {
|
|
56
|
-
width: 100%;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
.newspack-settings__min-max {
|
|
62
|
-
gap: 8px;
|
|
63
|
-
|
|
64
|
-
.newspack-checkbox-control {
|
|
65
|
-
flex: 0 0 auto;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.newspack-text-control {
|
|
69
|
-
flex: 1 1 auto;
|
|
70
|
-
|
|
71
|
-
.components-text-control__input {
|
|
72
|
-
text-align: right;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
+ .newspack-settings__min-max {
|
|
77
|
-
margin-top: 16px !important;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&__no-border {
|
|
83
|
-
&.newspack-card.newspack-action-card {
|
|
84
|
-
border: 0;
|
|
85
|
-
|
|
86
|
-
.newspack-action-card__region-top,
|
|
87
|
-
.newspack-action-card__region-children {
|
|
88
|
-
padding-left: 0;
|
|
89
|
-
padding-right: 0;
|
|
90
|
-
padding-top: 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.newspack-action-card__region-children {
|
|
94
|
-
padding-bottom: 0;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.newspack-action-card__notification {
|
|
98
|
-
padding-bottom: 16px;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
& + & {
|
|
102
|
-
margin-top: 64px;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Steps List
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* WordPress dependencies.
|
|
7
|
-
*/
|
|
8
|
-
import { Component } from '@wordpress/element';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal dependencies.
|
|
12
|
-
*/
|
|
13
|
-
import { StepsListItem } from '../';
|
|
14
|
-
import './style.scss';
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* External dependencies.
|
|
18
|
-
*/
|
|
19
|
-
import classnames from 'classnames';
|
|
20
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
21
|
-
class StepsList extends Component {
|
|
22
|
-
/**
|
|
23
|
-
* Render
|
|
24
|
-
*/
|
|
25
|
-
render() {
|
|
26
|
-
const {
|
|
27
|
-
className,
|
|
28
|
-
stepsListItems,
|
|
29
|
-
narrowList,
|
|
30
|
-
style = {}
|
|
31
|
-
} = this.props;
|
|
32
|
-
const classes = classnames('steps-list', className, narrowList && 'steps-list__narrow-list');
|
|
33
|
-
return _jsx("div", {
|
|
34
|
-
className: classes,
|
|
35
|
-
style: style,
|
|
36
|
-
children: stepsListItems.map((listItem, index) => _jsx(StepsListItem, {
|
|
37
|
-
listItemCount: index + 1,
|
|
38
|
-
listItemText: listItem
|
|
39
|
-
}, index))
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
export default StepsList;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Steps List Item
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* WordPress dependencies.
|
|
7
|
-
*/
|
|
8
|
-
import { Component } from '@wordpress/element';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Internal dependencies.
|
|
12
|
-
*/
|
|
13
|
-
import './style.scss';
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* External dependencies.
|
|
17
|
-
*/
|
|
18
|
-
import classnames from 'classnames';
|
|
19
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
21
|
-
class StepsListItem extends Component {
|
|
22
|
-
/**
|
|
23
|
-
* Render
|
|
24
|
-
*/
|
|
25
|
-
render() {
|
|
26
|
-
const {
|
|
27
|
-
className,
|
|
28
|
-
listItemCount,
|
|
29
|
-
listItemText,
|
|
30
|
-
style = {}
|
|
31
|
-
} = this.props;
|
|
32
|
-
const classes = classnames('steps-list-item', className);
|
|
33
|
-
return _jsxs("div", {
|
|
34
|
-
className: classes,
|
|
35
|
-
style: style,
|
|
36
|
-
children: [_jsx("div", {
|
|
37
|
-
className: "steps-list-item__number",
|
|
38
|
-
children: listItemCount
|
|
39
|
-
}), _jsx("div", {
|
|
40
|
-
className: "steps-list-item__content",
|
|
41
|
-
dangerouslySetInnerHTML: {
|
|
42
|
-
__html: listItemText
|
|
43
|
-
}
|
|
44
|
-
})]
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
export default StepsListItem;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@use '../../../shared/scss/colors';
|
|
2
|
-
@use '~@wordpress/base-styles/colors' as wp-colors;
|
|
3
|
-
|
|
4
|
-
.steps-list-item {
|
|
5
|
-
align-items: center;
|
|
6
|
-
display: grid;
|
|
7
|
-
grid-template-columns: 28px auto;
|
|
8
|
-
gap: 24px;
|
|
9
|
-
position: relative;
|
|
10
|
-
|
|
11
|
-
&::before {
|
|
12
|
-
border: 1px solid #F0F0F0;
|
|
13
|
-
bottom: -16px;
|
|
14
|
-
content: '';
|
|
15
|
-
display: block;
|
|
16
|
-
left: 14px;
|
|
17
|
-
position: absolute;
|
|
18
|
-
top: -16px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&:first-child::before {
|
|
22
|
-
top: 50%;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&:last-child::before {
|
|
26
|
-
bottom: 50%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
+ .steps-list-item {
|
|
30
|
-
margin-top: 32px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&__number {
|
|
34
|
-
align-items: center;
|
|
35
|
-
background: #fff;
|
|
36
|
-
border: 1px solid currentcolor;
|
|
37
|
-
border-radius: 100%;
|
|
38
|
-
color: colors.$primary-500;
|
|
39
|
-
display: flex;
|
|
40
|
-
height: 28px;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
outline: 8px solid #fff;
|
|
43
|
-
position: relative;
|
|
44
|
-
width: 28px;
|
|
45
|
-
z-index: 2;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Style Card
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* WordPress dependencies.
|
|
7
|
-
*/
|
|
8
|
-
import { Component } from '@wordpress/element';
|
|
9
|
-
import { __ as alias__ } from '@wordpress/i18n';
|
|
10
|
-
const __ = alias__;
|
|
11
|
-
import { Button } from '@wordpress/components';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Internal dependencies
|
|
15
|
-
*/
|
|
16
|
-
import { WebPreview } from '../';
|
|
17
|
-
import './style.scss';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* External dependencies
|
|
21
|
-
*/
|
|
22
|
-
import classnames from 'classnames';
|
|
23
|
-
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
24
|
-
import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
25
|
-
class StyleCard extends Component {
|
|
26
|
-
/**
|
|
27
|
-
* Render.
|
|
28
|
-
*/
|
|
29
|
-
render() {
|
|
30
|
-
const {
|
|
31
|
-
ariaLabel,
|
|
32
|
-
className,
|
|
33
|
-
cardTitle,
|
|
34
|
-
url,
|
|
35
|
-
image,
|
|
36
|
-
imageType,
|
|
37
|
-
isActive,
|
|
38
|
-
onClick,
|
|
39
|
-
id
|
|
40
|
-
} = this.props;
|
|
41
|
-
const classes = classnames('newspack-style-card', isActive && 'newspack-style-card__is-active', className);
|
|
42
|
-
return _jsxs("div", {
|
|
43
|
-
className: classes,
|
|
44
|
-
id: id,
|
|
45
|
-
children: [_jsxs("div", {
|
|
46
|
-
className: "newspack-style-card__image",
|
|
47
|
-
children: [imageType === 'html' ? _jsx("div", {
|
|
48
|
-
dangerouslySetInnerHTML: image
|
|
49
|
-
}) : _jsx("img", {
|
|
50
|
-
src: image,
|
|
51
|
-
alt: cardTitle + ' ' + __('Thumbnail', 'newspack')
|
|
52
|
-
}), _jsxs("div", {
|
|
53
|
-
className: "newspack-style-card__actions",
|
|
54
|
-
children: [isActive ? _jsx("span", {
|
|
55
|
-
className: "newspack-style-card__actions__badge",
|
|
56
|
-
children: __('Selected', 'newspack')
|
|
57
|
-
}) : _jsx(Button, {
|
|
58
|
-
variant: "link",
|
|
59
|
-
onClick: onClick,
|
|
60
|
-
"aria-label": ariaLabel ? ariaLabel : __('Select', 'newspack') + ' ' + cardTitle,
|
|
61
|
-
tabIndex: "0",
|
|
62
|
-
children: __('Select', 'newspack')
|
|
63
|
-
}), url && _jsx(WebPreview, {
|
|
64
|
-
url: url,
|
|
65
|
-
label: __('View Demo', 'newspack'),
|
|
66
|
-
variant: "link"
|
|
67
|
-
})]
|
|
68
|
-
})]
|
|
69
|
-
}), cardTitle && _jsx("div", {
|
|
70
|
-
className: "newspack-style-card__title",
|
|
71
|
-
children: cardTitle
|
|
72
|
-
})]
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export default StyleCard;
|