export const WORKBENCH_TOOLBAR_CLASS = [ "op-workspace-topbar op-workspace-toolbar z-50 flex h-[var(--op-workspace-toolbar-height,44px)] min-h-0 min-w-0 items-center", "justify-between gap-0 border-b border-[var(--op-workspace-border-muted)] bg-[var(--op-workspace-surface)] px-0 py-0", "[grid-area:toolbar] backdrop-blur-[18px]", "[&_.op-workspace-toolbar-content]:h-full [&_.op-workspace-toolbar-group]:h-full", "[&_.op-workspace-toolbar-action]:!h-full [&_.op-workspace-toolbar-action]:!min-h-0 [&_.op-workspace-toolbar-action]:!rounded-none", "[&_.op-workspace-toolbar-action]:!w-[var(--op-workspace-toolbar-height,44px)] [&_.op-workspace-toolbar-action]:!min-w-[var(--op-workspace-toolbar-height,44px)] [&_.op-workspace-toolbar-action]:!max-w-[var(--op-workspace-toolbar-height,44px)]", "[&_[data-openpress-change-preview-trigger][data-openpress-toolbar-expanded=true]]:!w-auto", "[&_[data-openpress-change-preview-trigger][data-openpress-toolbar-expanded=true]]:!min-w-[var(--op-workspace-toolbar-height,44px)]", "[&_[data-openpress-change-preview-trigger][data-openpress-toolbar-expanded=true]]:!max-w-[min(34vw,180px)]", "[&_[data-openpress-workbench-present]]:!w-auto", "[&_[data-openpress-workbench-present]]:!min-w-[var(--op-workspace-toolbar-height,44px)]", "[&_[data-openpress-workbench-present]]:!max-w-[min(34vw,180px)]", "[&_.op-workspace-toolbar-action]:!border-y-0 [&_.op-workspace-toolbar-action]:!shadow-none", "max-[520px]:gap-0 max-[520px]:px-0", ].join(" "); export const TOOLBAR_CONTENT_CLASS = "op-workspace-toolbar-content flex min-w-0 flex-1 items-center justify-between gap-0"; export const TOOLBAR_GROUP_CLASS = "op-workspace-toolbar-group flex min-w-0 items-center gap-0"; export const TOOLBAR_RIGHT_GROUP_CLASS = `${TOOLBAR_GROUP_CLASS} op-workspace-toolbar-group-right justify-end`; export const TOOLBAR_PANEL_TOGGLE_CLASS = [ "op-ui-icon-button op-workspace-toolbar-panel-toggle inline-flex h-[30px] w-[30px] shrink-0 cursor-pointer items-center justify-center", "rounded-[var(--op-workspace-radius-sm)] border border-transparent bg-transparent p-0 text-[var(--op-workspace-text-muted)]", "transition-[color,transform] duration-150 hover:text-[var(--op-workspace-text)] active:translate-y-px [&_svg]:h-3.5 [&_svg]:w-3.5", ].join(" "); export const TOOLBAR_ACTION_CLASS = [ "op-ui-button op-ui-icon-button op-workspace-toolbar-action relative inline-flex h-[30px] w-[30px] min-w-[30px] max-w-[30px] cursor-pointer", "items-center justify-center gap-0 overflow-hidden rounded-[var(--op-workspace-radius-sm)] border border-transparent", "bg-transparent p-0 text-[11px] font-medium leading-none text-[var(--op-workspace-text-muted)] no-underline [font-family:inherit]", "whitespace-nowrap transition-[border-color,background,color,transform] duration-150", "[&:hover:not(:disabled)]:text-[var(--op-workspace-text)] [&:active:not(:disabled)]:translate-y-px", "disabled:cursor-progress disabled:text-[var(--op-workspace-text-muted)] disabled:opacity-[0.62]", "[&_svg]:h-[13px] [&_svg]:w-[13px] [&_svg]:shrink-0 [&_svg]:text-current", "[&_.op-workspace-pdf-status]:hidden [&_.op-workspace-pdf-status]:min-w-0 [&_.op-workspace-pdf-status]:max-w-[150px] [&_.op-workspace-pdf-status]:overflow-hidden [&_.op-workspace-pdf-status]:text-ellipsis [&_.op-workspace-pdf-status]:whitespace-nowrap [&_.op-workspace-pdf-status]:text-[10px]", "[&_.op-workspace-deploy-status]:hidden [&_.op-workspace-deploy-status]:min-w-0 [&_.op-workspace-deploy-status]:max-w-[150px] [&_.op-workspace-deploy-status]:overflow-hidden [&_.op-workspace-deploy-status]:text-ellipsis [&_.op-workspace-deploy-status]:whitespace-nowrap [&_.op-workspace-deploy-status]:text-[10px]", "[&_.op-workspace-edit-status]:hidden [&_.op-workspace-edit-status]:min-w-0 [&_.op-workspace-edit-status]:max-w-[150px] [&_.op-workspace-edit-status]:overflow-hidden [&_.op-workspace-edit-status]:text-ellipsis [&_.op-workspace-edit-status]:whitespace-nowrap [&_.op-workspace-edit-status]:text-[10px]", "[&_.op-workspace-inspector-status]:hidden [&_.op-workspace-inspector-status]:min-w-0 [&_.op-workspace-inspector-status]:max-w-[150px] [&_.op-workspace-inspector-status]:overflow-hidden [&_.op-workspace-inspector-status]:text-ellipsis [&_.op-workspace-inspector-status]:whitespace-nowrap [&_.op-workspace-inspector-status]:text-[10px]", "[&[data-openpress-toolbar-expanded=true]]:w-auto [&[data-openpress-toolbar-expanded=true]]:max-w-[min(34vw,300px)] [&[data-openpress-toolbar-expanded=true]]:gap-[7px] [&[data-openpress-toolbar-expanded=true]]:px-2.5", "max-[520px]:[&[data-openpress-toolbar-expanded=true]]:max-w-[min(34vw,132px)] max-[520px]:[&[data-openpress-toolbar-expanded=true]]:px-2", "[&[data-openpress-toolbar-expanded=true]_.op-workspace-toolbar-action-label]:inline-flex", "[&[data-openpress-toolbar-expanded=true]_.op-workspace-pdf-status]:inline-flex [&[data-openpress-toolbar-expanded=true]_.op-workspace-deploy-status]:inline-flex [&[data-openpress-toolbar-expanded=true]_.op-workspace-edit-status]:inline-flex [&[data-openpress-toolbar-expanded=true]_.op-workspace-inspector-status]:inline-flex", "[&[data-openpress-toolbar-active=true]]:border-[var(--op-workspace-accent-border)] [&[data-openpress-toolbar-active=true]]:bg-[var(--op-workspace-accent-surface)] [&[data-openpress-toolbar-active=true]]:text-[var(--op-workspace-accent)]", "[&[data-openpress-deploy-status=online]]:text-[var(--op-workspace-success)] [&[data-openpress-deploy-status=dirty]]:text-[var(--op-workspace-accent)] [&[data-openpress-deploy-status=deploying]]:text-[var(--op-workspace-accent)] [&[data-openpress-deploy-status=failed]]:text-[var(--op-workspace-danger)]", "[&[data-openpress-deploy-state=deploying]]:after:absolute [&[data-openpress-deploy-state=deploying]]:after:inset-[3px] [&[data-openpress-deploy-state=deploying]]:after:rounded-full [&[data-openpress-deploy-state=deploying]]:after:border [&[data-openpress-deploy-state=deploying]]:after:border-[color-mix(in_srgb,var(--op-workspace-warning)_36%,transparent)] [&[data-openpress-deploy-state=deploying]]:after:border-t-[var(--op-workspace-warning)] [&[data-openpress-deploy-state=deploying]]:after:content-[''] [&[data-openpress-deploy-state=deploying]]:after:animate-spin", "[&[data-openpress-deploy-state=deploying]_svg]:animate-pulse", ].join(" "); export const TOOLBAR_ACTION_PRIMARY_CLASS = [ TOOLBAR_ACTION_CLASS, "op-ui-button-primary op-workspace-toolbar-action-primary !w-auto !max-w-[min(34vw,300px)] !gap-[7px] !border-[var(--op-workspace-accent-border)] !bg-[var(--op-workspace-accent)] !px-3 !text-white", "shadow-[var(--op-workspace-shadow-floating)]", "[&_.op-workspace-toolbar-action-label]:inline-flex [&:hover:not(:disabled)]:!bg-[color-mix(in_srgb,var(--op-workspace-accent)_82%,white)] [&:hover:not(:disabled)]:!text-white", ].join(" "); export const TOOLBAR_ACTION_LABEL_CLASS = "op-workspace-toolbar-action-label hidden min-w-0 overflow-hidden text-ellipsis whitespace-nowrap"; export const TOOLBAR_SEPARATOR_CLASS = "op-ui-divider op-workspace-toolbar-separator block h-4 w-px shrink-0 rounded-[1px] bg-[var(--op-workspace-border-muted)]"; export const ZOOM_CONTROL_WRAP_CLASS = "op-workspace-zoom-control-wrap relative inline-flex"; export const ZOOM_CONTROL_CLASS = [ "op-ui-button op-workspace-zoom-control inline-flex h-[28px] max-w-[min(20vw,82px)] cursor-pointer items-center justify-center", "gap-[6px] overflow-hidden rounded-[calc(var(--op-workspace-radius-sm)-1px)] border border-transparent bg-transparent px-2 pr-2.5", "text-[10px] font-[650] leading-none text-[var(--op-workspace-text-muted)] [font-family:var(--op-workspace-font-mono)] whitespace-nowrap", "transition-[border-color,background,color,transform] duration-150 hover:text-[var(--op-workspace-text)] active:translate-y-px", "[&_svg]:h-[13px] [&_svg]:w-[13px] [&_svg]:shrink-0 [&_svg]:text-current", "[&[aria-expanded=true]]:border-[var(--op-workspace-border-strong)] [&[aria-expanded=true]]:bg-[var(--op-workspace-surface-muted)] [&[aria-expanded=true]]:text-[var(--op-workspace-text)]", "[&[data-openpress-toolbar-active=true]]:border-[var(--op-workspace-border-strong)] [&[data-openpress-toolbar-active=true]]:bg-[var(--op-workspace-surface-muted)] [&[data-openpress-toolbar-active=true]]:text-[var(--op-workspace-text)]", ].join(" "); export const ZOOM_CHEVRON_CLASS = "op-workspace-zoom-control-chevron !h-3 !w-3 opacity-70"; export const ZOOM_MENU_SECTION_CLASS = "op-workspace-zoom-menu-section grid gap-0.5"; export const EDIT_STATUS_TOOLBAR_CLASS = [ "op-workspace-edit-status op-workspace-edit-status--toolbar inline-flex min-h-6 max-w-[132px] items-center gap-1.5", "overflow-hidden text-ellipsis whitespace-nowrap rounded-[var(--op-workspace-radius-sm)] border border-[color-mix(in_srgb,var(--op-workspace-accent)_18%,transparent)]", "bg-[var(--op-workspace-accent-surface)] px-2 text-[10px] leading-none text-[var(--op-workspace-accent)]", "[&[data-openpress-edit-status=failed]]:text-[var(--op-workspace-danger)]", ].join(" "); export const EDIT_STATUS_SPINNER_CLASS = "op-workspace-edit-status__spinner h-[9px] w-[9px] shrink-0 animate-spin rounded-full border border-[color-mix(in_srgb,var(--op-workspace-warning)_32%,transparent)] border-t-[var(--op-workspace-warning)]"; export const INSPECTOR_STATUS_TOOLBAR_CLASS = [ "op-workspace-inspector-status block max-w-[180px] shrink overflow-hidden text-ellipsis whitespace-nowrap text-[10px]", "text-[var(--op-workspace-text-muted)] opacity-75", "[&[data-openpress-inspector-comment-status=failed]]:text-[var(--op-workspace-danger)]", "[&[data-openpress-inspector-comment-status=saved]]:text-[var(--op-workspace-success)]", ].join(" "); export const DEPLOY_STATUS_TOOLBAR_CLASS = [ "op-workspace-deploy-status op-workspace-deploy-status--toolbar inline-flex max-w-[86px] items-center gap-1.5 overflow-hidden", "text-ellipsis whitespace-nowrap text-[10px] font-medium leading-[1.3] tracking-[0.08em] text-[var(--op-workspace-text-muted)]", "[&[data-openpress-deploy-status=online]]:text-[var(--op-workspace-success)]", "[&[data-openpress-deploy-status=deploying]]:text-[var(--op-workspace-accent)]", "[&[data-openpress-deploy-status=dirty]]:text-[var(--op-workspace-accent)]", "[&[data-openpress-deploy-status=failed]]:text-[var(--op-workspace-danger)]", ].join(" "); export const TOOLBAR_DEPLOY_STATUS_DOT_CLASS = [ "op-workspace-deploy-status__dot inline-block h-[7px] w-[7px] shrink-0 rounded-full bg-[var(--op-workspace-text-muted)]", "shadow-[0_0_0_1px_rgb(255_255_255_/_12%)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=online]_&]:bg-[var(--op-workspace-success)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=online]_&]:shadow-[0_0_0_1px_color-mix(in_srgb,var(--op-workspace-success)_28%,transparent),0_0_14px_color-mix(in_srgb,var(--op-workspace-success)_18%,transparent)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=deploying]_&]:bg-[var(--op-workspace-warning)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=deploying]_&]:shadow-[0_0_0_1px_color-mix(in_srgb,var(--op-workspace-warning)_24%,transparent),0_0_14px_color-mix(in_srgb,var(--op-workspace-warning)_16%,transparent)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=dirty]_&]:bg-[var(--op-workspace-warning)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=dirty]_&]:shadow-[0_0_0_1px_color-mix(in_srgb,var(--op-workspace-warning)_24%,transparent),0_0_14px_color-mix(in_srgb,var(--op-workspace-warning)_16%,transparent)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=failed]_&]:bg-[var(--op-workspace-danger)]", "[.op-workspace-deploy-status[data-openpress-deploy-status=failed]_&]:shadow-[0_0_0_1px_color-mix(in_srgb,var(--op-workspace-danger)_24%,transparent),0_0_14px_color-mix(in_srgb,var(--op-workspace-danger)_16%,transparent)]", ].join(" ");