| 1 |
import { __ } from "@wordpress/i18n"; |
| 2 |
|
| 3 |
// Dimension / border control-name constants (must be unique from one another). |
| 4 |
export const BOX_PADDING = "nxCdBoxPadding"; |
| 5 |
export const BOX_BORDER = "nxCdBoxBorder"; |
| 6 |
export const DIGITS_PADDING = "nxCdDigitsPadding"; |
| 7 |
export const DIGITS_BORDER = "nxCdDigitsBorder"; |
| 8 |
|
| 9 |
// The four time units, used to generate per-unit attributes / styles / markup. |
| 10 |
export const UNITS = ["days", "hours", "minutes", "seconds"]; |
| 11 |
|
| 12 |
export const COUNTDOWN_TYPES = [ |
| 13 |
{ label: __("Default (Due Date)", "notificationx"), value: "due_date" }, |
| 14 |
{ label: __("Evergreen Timer", "notificationx"), value: "evergreen" }, |
| 15 |
]; |
| 16 |
|
| 17 |
export const LAYOUT_OPTIONS = [ |
| 18 |
{ label: __("Grid View", "notificationx"), value: "grid" }, |
| 19 |
{ label: __("List View", "notificationx"), value: "list" }, |
| 20 |
]; |
| 21 |
|
| 22 |
export const LABEL_VIEW_OPTIONS = [ |
| 23 |
{ label: __("Block", "notificationx"), value: "nx-countdown-label-block" }, |
| 24 |
{ label: __("Inline", "notificationx"), value: "nx-countdown-label-inline" }, |
| 25 |
]; |
| 26 |
|
| 27 |
export const SEPARATOR_OPTIONS = [ |
| 28 |
{ label: __("Solid ( : )", "notificationx"), value: "solid" }, |
| 29 |
{ label: __("Dotted ( · )", "notificationx"), value: "dotted" }, |
| 30 |
]; |
| 31 |
|
| 32 |
export const ALIGN_OPTIONS = [ |
| 33 |
{ label: __("Left", "notificationx"), value: "left" }, |
| 34 |
{ label: __("Center", "notificationx"), value: "center" }, |
| 35 |
{ label: __("Right", "notificationx"), value: "right" }, |
| 36 |
]; |
| 37 |
|
| 38 |
export const EXPIRE_TYPES = [ |
| 39 |
{ label: __("None", "notificationx"), value: "none" }, |
| 40 |
{ label: __("Show Message", "notificationx"), value: "text" }, |
| 41 |
{ label: __("Redirect to URL", "notificationx"), value: "url" }, |
| 42 |
]; |
| 43 |
|