@developer_tribe/react-builder 1.0.5 → 1.0.7
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/dist/build-components/index.d.ts +1 -2
- package/dist/build-components/patterns.generated.d.ts +0 -383
- package/dist/components/BottomBar.d.ts +12 -0
- package/dist/components/LoadingComponent.d.ts +1 -0
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.native.cjs.js +1 -1
- package/dist/index.native.cjs.js.map +1 -1
- package/dist/index.native.esm.js +4 -4
- package/dist/index.native.esm.js.map +1 -1
- package/dist/modals/ScreenColorsModal.d.ts +8 -0
- package/dist/modals/index.d.ts +1 -0
- package/dist/pages/ProjectPage.d.ts +3 -2
- package/dist/styles.css +1 -1
- package/dist/utils/nodeTree.d.ts +5 -0
- package/package.json +5 -2
- package/src/build-components/RenderNode.generated.tsx +0 -7
- package/src/build-components/index.ts +0 -5
- package/src/build-components/patterns.generated.ts +0 -399
- package/src/components/BottomBar.tsx +242 -0
- package/src/components/LoadingComponent.tsx +10 -0
- package/src/index.ts +2 -1
- package/src/modals/ScreenColorsModal.tsx +121 -0
- package/src/modals/index.ts +1 -0
- package/src/pages/ProjectPage.tsx +72 -163
- package/src/styles/base/_global.scss +25 -20
- package/src/styles/components/_attributes-editor.scss +26 -24
- package/src/styles/components/_bottom-bar.scss +101 -0
- package/src/styles/components/_editor-shell.scss +19 -18
- package/src/styles/components/_mockos-router.scss +16 -14
- package/src/styles/components/_ui-components.scss +14 -15
- package/src/styles/foundation/_colors.scss +28 -8
- package/src/styles/foundation/_mixins.scss +1 -1
- package/src/styles/foundation/_sizes.scss +4 -2
- package/src/styles/index.scss +1 -0
- package/src/styles/layout/_builder.scss +1 -1
- package/src/styles/modals/_add-component.scss +2 -2
- package/src/styles/modals/_color-modal.scss +2 -2
- package/src/styles/modals/_modal-shell.scss +1 -1
- package/src/utils/nodeTree.ts +99 -0
- package/dist/build-components/PaywallSubscriButton/PaywallSubscriButton.d.ts +0 -5
- package/dist/build-components/PaywallSubscriButton/PaywallSubscriButtonProps.generated.d.ts +0 -50
- package/src/build-components/PaywallSubscriButton/PaywallSubscriButton.tsx +0 -10
- package/src/build-components/PaywallSubscriButton/PaywallSubscriButtonProps.generated.ts +0 -77
- package/src/build-components/PaywallSubscriButton/pattern.json +0 -27
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AppConfig } from '../types/PreviewConfig';
|
|
2
|
+
type ScreenColorsModalProps = {
|
|
3
|
+
appConfig: AppConfig;
|
|
4
|
+
onChange: (next: AppConfig) => void;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function ScreenColorsModal({ appConfig, onChange, onClose, }: ScreenColorsModalProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/dist/modals/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export { DeviceSelectorModal } from './DeviceSelectorModal';
|
|
|
4
4
|
export { ColorModal } from './ColorModal';
|
|
5
5
|
export { IconPickerModal } from './IconPickerModal';
|
|
6
6
|
export { LocalicationModal } from './LocalicationModal';
|
|
7
|
+
export { ScreenColorsModal } from './ScreenColorsModal';
|
|
7
8
|
export { MockableFeatureModal } from './MockableFeatureModal';
|
|
8
9
|
export { ProductEditModal } from './ProductEditModal';
|
|
9
10
|
export { ProductPresetsModal } from './ProductPresetsModal';
|
|
@@ -7,6 +7,7 @@ export type ProjectPageProps = {
|
|
|
7
7
|
appConfig?: AppConfig;
|
|
8
8
|
logLevel?: LogLevel;
|
|
9
9
|
projectColors?: ProjectColors;
|
|
10
|
-
|
|
10
|
+
onSaveProjectColors?: (colors: ProjectColors) => void;
|
|
11
|
+
name?: string;
|
|
11
12
|
};
|
|
12
|
-
export declare function ProjectPage({ project, appConfig, onSaveProject, logLevel, projectColors, name, }: ProjectPageProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function ProjectPage({ project, appConfig, onSaveProject, logLevel, projectColors, onSaveProjectColors, name, }: ProjectPageProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,*::before,*::after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}button{font-family:inherit}input,button{font-size:100%}p{margin:0;padding:0}html,body,#root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif}.editor-container{height:100vh;width:100%;display:flex;overflow:hidden}.app-main{flex:1 1 auto;background:#f3f4f6}.page-bg{background:#f3f4f6}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:16px}.btn-add{height:120px;border:2px dashed #6b7280;border-radius:8px;background:#fff;cursor:pointer;font-weight:600;color:#111827;transition:border-color .2s ease,transform .1s ease,box-shadow .2s ease;box-shadow:0 1px 2px rgba(0,0,0,.04)}.btn-add:hover{border-color:hsl(220,8.9361702128%,36.0784313725%);transform:translateY(-1px);box-shadow:0 6px 16px rgba(0,0,0,.1)}.split-left{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,0)}.split-left::-webkit-scrollbar{width:8px;height:4px}.split-left{flex:1 1 10%;min-width:200px;border-right:1px solid #e5e7eb;overflow:auto}.split-right{position:relative;display:flex;flex-direction:column;flex:1 1 45%;width:100%;height:auto;max-height:calc(100vh - 120px);overflow:auto;padding:16px;background-size:cover;background-position:center;background-repeat:repeat;background-size:500px auto}.split-right>*{position:relative;z-index:1}.split-third{flex:1 1 25%;border-right:1px solid #e5e7eb;overflow:auto;overflow-x:hidden;max-height:calc(100vh - 120px)}.stage{background:#fff;border:1px solid #e5e7eb;border-radius:4px;align-self:center;border:1px solid hsl(220,13.0434782609%,80.9803921569%);box-shadow:0 18px 50px rgba(0,0,0,.16),0 6px 16px rgba(0,0,0,.1);overflow:hidden}.stage .scroll-container::-webkit-scrollbar{width:8px;height:8px}.stage .scroll-container::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.stage .scroll-container::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:8px}.stage .scroll-container{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,0)}.rb-node-selected{border:1px solid #2684ff}.app-header{position:sticky;top:0;z-index:10;background:#fff;border-bottom:1px solid #e5e7eb;height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.app-header a{color:#111827;text-decoration:none}.app-header__brand{font-weight:700}.app-header__nav{display:flex;gap:16px}.warning{color:#ef4444;font-size:12px;font-weight:600;margin-bottom:16px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#6b7280}.breadcrumb__back{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:none;color:#111827;font-weight:600;cursor:pointer;transition:color .2s ease}.breadcrumb__back:hover,.breadcrumb__back:focus-visible{color:#2563eb;outline:none}.breadcrumb__back-icon{font-size:14px;line-height:1}.breadcrumb__list{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:8px}.breadcrumb__item{display:inline-flex;align-items:center}.breadcrumb__item--clickable{cursor:pointer}.breadcrumb__separator{color:#e5e7eb;margin:0 4px}.breadcrumb__link{color:#111827;text-decoration:none}.breadcrumb__link:hover{text-decoration:underline}.breadcrumb__current{color:#6b7280}.device-status-bar{position:relative;z-index:100}.device-navigation-bar{position:relative;z-index:100}.mobile-panel-toggle{display:none;padding:0 16px 12px;gap:8px}.mobile-panel-toggle__button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;color:#111827;font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.mobile-panel-toggle__button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.mobile-panel-toggle__button--active{background:#111827;color:#fff;border-color:#111827;box-shadow:0 6px 16px rgba(0,0,0,.15)}.mobile-panel-toggle__icon{width:18px;height:12px;display:inline-flex}.mobile-panel-toggle__icon svg{width:100%;height:100%}.mobile-panel-toggle__label{line-height:1}.split-panel__close{display:none;position:absolute;top:12px;right:12px;border:none;border-radius:8px;background:rgba(0,0,0,.7);color:#fff;padding:6px 16px;font-weight:600;cursor:pointer;z-index:5}.editor-container__overlay{display:none}@media(max-width: 1000px){.editor-container{position:relative;min-height:calc(100vh - 60px);flex-direction:column}.split-left,.split-third{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:#f3f4f6;box-shadow:0 25px 60px rgba(0,0,0,.15);transition:transform .3s ease,opacity .3s ease;opacity:0;pointer-events:none;z-index:4}.split-left{transform:translate3d(-100%, 0, 0)}.split-third{transform:translate3d(100%, 0, 0)}.split-left.is-open,.split-third.is-open{opacity:1;pointer-events:auto;transform:translate3d(0, 0, 0)}.split-right{flex:1 1 auto;min-width:0;min-height:calc(100vh - 120px);padding:16px;padding-bottom:120px;position:relative}.mobile-panel-toggle{display:flex}.split-panel__close{display:inline-flex}.editor-container__overlay{display:block;position:absolute;inset:0;background:rgba(17,24,39,.35);border:none;padding:0;margin:0;cursor:pointer;z-index:3}}@media(max-width: 900px){.split-right__controls{top:12px;z-index:5;padding-bottom:12px}.split-right__controls .side-tool{width:100%}}.screen-preview{position:relative;width:100%;height:100%}.rb-loading-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;background:hsla(0,0%,100%,.55);backdrop-filter:blur(1px)}.rb-loading{position:relative;top:-20%;width:min(320px,70vw);max-width:360px;opacity:.95}.builder{display:flex;flex-direction:column;gap:12px}.builder__breadcrumbs{display:flex;flex-direction:row;gap:8px}.builder__breadcrumb{color:#6b7280;font-size:12px}.builder__current{font-weight:600}.builder__list{display:flex;flex-wrap:wrap;gap:8px}.builder__list-item{flex:1 1 220px;min-width:220px}.builder__button{position:relative;display:flex;align-items:stretch}.builder__button>.builder__button-link{flex:1;min-width:0;display:flex;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:4px;height:40px;line-height:37px;padding:0 4px;margin:0;background:#2563eb;color:#fff;font-size:clamp(11px,1.3vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.builder__sort-controls{display:flex;flex-direction:column;gap:4px}.builder__sort-button{width:32px;height:18px;border:none;border-radius:4px;background:#f3f4f6;color:#6b7280;font-size:14px;cursor:pointer;line-height:1;box-shadow:inset 0 0 0 1px #e5e7eb;padding:0}.builder__sort-button:disabled{opacity:.4;cursor:not-allowed}.builder__button-condition{position:absolute;bottom:-10px;font-size:8px}.builder__node{background:#fff;border:1px solid #e5e7eb;border-radius:4px;padding:6px}.builder__node-type{margin:0 0 8px 0;font-weight:600}.builder__children{position:relative;display:flex;flex-direction:column;gap:16px}.builder__children>:not(:first-child){margin-left:16px}.builder__children::before{content:"";position:absolute;left:6px;top:24px;bottom:0;width:1px;background:#e5e7eb}.builder__text,.builder__placeholder{color:#6b7280;font-size:12px}.editor-controls{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:16px}.editor-section{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px}.form-row{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:12px;margin-bottom:12px}.form-actions{display:flex;gap:12px;margin-top:16px}.btn{padding:8px 12px;border-radius:8px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;transition:background .2s ease,box-shadow .2s ease}.btn:hover{background:#f9fafb;box-shadow:0 6px 16px rgba(0,0,0,.06)}.input{display:inline-flex;align-items:center;height:32px;padding:0 8px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#111827;font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.input:focus{border-color:hsl(220,13.0434782609%,82.9803921569%);box-shadow:0 0 0 3px rgba(0,0,0,.04)}.input--color{padding:0;width:40px;height:28px;border-radius:6px;cursor:pointer}.input--color::-webkit-color-swatch-wrapper{padding:0}.input--color::-webkit-color-swatch{border:none;border-radius:4px}.input--color::-moz-color-swatch{border:none;border-radius:4px}.builder-checkbox{display:inline-flex;flex-direction:column;gap:4px}.builder-checkbox__label{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:#111827;font-weight:600;position:relative;user-select:none}.builder-checkbox__native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.builder-checkbox__control{width:20px;height:20px;border-radius:6px;border:2px solid #e5e7eb;background:#fff;display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;box-shadow:0 2px 6px rgba(15,23,42,.12)}.builder-checkbox__control::after{content:"";width:6px;height:12px;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0);transform:rotate(45deg) scale(0);transform-origin:center;transition:transform .2s ease,border-color .2s ease}.builder-checkbox__label:hover .builder-checkbox__control{transform:translateY(-1px)}.builder-checkbox__native:focus-visible+.builder-checkbox__control{box-shadow:0 0 0 3px rgba(79,70,229,.3)}.builder-checkbox__native:checked+.builder-checkbox__control{background:linear-gradient(135deg, #1f2937, #4f46e5);border-color:rgba(0,0,0,0);box-shadow:0 6px 14px rgba(79,70,229,.35)}.builder-checkbox__native:checked+.builder-checkbox__control::after{border-color:#fff;transform:rotate(45deg) scale(1)}.builder-checkbox__text{font-size:14px;line-height:1.4}.builder-checkbox__helper{font-size:12px;color:#6b7280;margin-left:30px}.builder-checkbox--disabled{opacity:.6}.builder-checkbox--disabled .builder-checkbox__label{cursor:not-allowed}.editor-tabs{display:flex;gap:8px;border-bottom:1px solid #e5e7eb}.editor-tab{cursor:pointer;border:1px solid rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px;color:#111827;padding:8px 12px;display:inline-flex;align-items:center;white-space:nowrap}.editor-tab__label{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.2;font-size:clamp(.85rem,.9rem + .2vw,1rem)}.editor-tab--active{background:#fff;border-color:#e5e7eb #e5e7eb #fff #e5e7eb}.editor-panels{padding:12px}.editor-panels.editor-panels-debug{padding:0}.jer-editor-container{padding-left:0 !important;padding-right:0 !important}.editor-panel{display:none}.editor-panel--active{display:block}.editor-header{display:flex;align-items:center;gap:12px;padding:0 16px;height:60px;background:#f3f4f6;border-bottom:1px solid #e5e7eb}.editor-header__title{color:#111827;font-weight:600}.editor-header__devices{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,0)}.editor-header__devices::-webkit-scrollbar{width:8px;height:4px}.editor-header__devices{display:flex;flex-direction:row;align-items:stretch;gap:8px;overflow:auto;height:60px;padding:4px}.editor-device-button{position:relative;min-width:160px;height:100%;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#111827;cursor:pointer;font-size:12px}.editor-device-button.editor-device-button--selected{border-color:#000}.editor-device-button img{position:absolute;bottom:4px;right:4px;width:16px;height:16px}.editor-header__actions{margin-left:auto;display:flex;align-items:center;gap:8px}.editor-button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:120px;padding:0 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;color:#111827;cursor:pointer}.debug-button{min-width:auto;height:auto;padding:4px 12px;font-size:12px;line-height:1.2;border-radius:999px;background:hsla(0,0%,100%,.95);border-color:rgba(15,23,42,.15);box-shadow:0 2px 4px rgba(15,23,42,.08)}.debug-button:hover{background:#fff;border-color:rgba(15,23,42,.3)}.editor-button:disabled{opacity:.6;cursor:default}.editor-save-button,.editor-save-previewconfig-button{color:#000;font-weight:600;font-size:12px}.builder__add-button{width:100%;margin-top:12px;min-height:52px;border-style:dashed;border-color:#cbd5f5;background:#f8fafc;color:#0f172a;font-weight:600;gap:10px;transition:border-color .2s ease,background .2s ease,color .2s ease}.builder__add-button-icon{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:#2563eb;color:#fff;font-size:18px;line-height:1}.builder__add-button:hover{border-color:#94a3b8;background:#eef2ff;color:#111827}.side-tool-container{position:absolute;top:0;left:0;z-index:5}.side-tool select{width:100%;font-size:11px;padding:4px 6px}.side-tool .debug-button{border-radius:0;width:100%;justify-content:center}.attributes-editor__component-meta{margin-bottom:20px;padding:12px 16px;border-radius:8px;border:1px solid #eee;background:#f8f8f8}.attributes-editor__component-title,.attributes-editor__field-label{margin:0;font-weight:700}.attributes-editor__component-title{font-size:18px;text-transform:capitalize}.attributes-editor__component-description{margin:6px 0 0;font-size:14px;color:#555}.attributes-editor__tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.attributes-editor__tab-button{padding:6px 12px;border-radius:6px;border:1px solid #ddd;background:#fff;color:#222;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease}.attributes-editor__tab-button:disabled{opacity:.4;cursor:default}.attributes-editor__tab-button--active{background:#222;color:#fff}.attributes-editor__field-wrapper{position:relative;margin-bottom:16px;display:flex;flex-direction:column;gap:4px;width:100%}.attributes-editor__field-wrapper--boolean{flex-direction:row;align-items:center;gap:8px}.attributes-editor__field-label{font-size:14px}.attributes-editor__empty-state{padding:8px;opacity:.7}.attributes-editor__size-grid{display:grid;gap:12px;grid-template-columns:repeat(2, minmax(0, 1fr))}@media(max-width: 1400px){.attributes-editor__size-grid{grid-template-columns:minmax(0, 1fr)}}.attributes-editor__size-grid-item{min-width:0}.attributes-editor__size-field{display:flex;gap:6px;align-items:center;width:100%}.attributes-editor__size-field-input{flex:1;min-width:0;height:36px;line-height:36px}.attributes-editor__size-field-select{flex:0 0 72px;min-width:60px;height:36px;line-height:36px;padding-inline:6px}.attributes-editor__mockable{margin-bottom:16px;padding:12px 16px;border-radius:8px;border:1px solid #eee;background:#fff}.attributes-editor__mockable-title{margin:0 0 8px 0;font-weight:700}.attributes-editor__mockable-table{width:100%;border-collapse:collapse}.attributes-editor__mockable-row+.attributes-editor__mockable-row{border-top:1px solid #eee}.attributes-editor__mockable-name{padding:8px 0;font-weight:600;text-transform:capitalize}.attributes-editor__mockable-action{padding:8px 0;text-align:right}.field-info-tooltip{position:relative}.field-info-tooltip__trigger{position:absolute;top:0;right:0;font-size:11px;line-height:1.2;color:#666;cursor:pointer;font-weight:600;white-space:nowrap;text-transform:uppercase;letter-spacing:.5px;background:rgba(0,0,0,0);border:none;padding:0;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.field-info-tooltip__trigger:focus-visible{outline:2px solid rgba(17,24,39,.4);outline-offset:2px}.field-info-tooltip__bubble{position:absolute;top:50%;right:100%;transform:translate(-8px, -50%);background:#111;color:#fff;padding:6px 10px;border-radius:4px;font-size:12px;line-height:1.4;width:220px;text-align:left;box-shadow:0 6px 16px rgba(0,0,0,.2);z-index:20;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.field-info-tooltip__bubble--visible{opacity:1;transform:translate(-12px, -50%)}.special-category-section{border:1px solid #e0e0e0;border-radius:8px;padding:12px;margin-bottom:16px;background:#fdfdfd}.special-category-section__header{display:flex;justify-content:space-between;align-items:center;gap:8px}.special-category-section__title{margin:0;font-weight:700}.special-category-section__toggle{border:1px solid #ddd;background:#fff;color:#222;border-radius:4px;padding:4px 10px;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease,border-color .15s ease}.special-category-section__toggle[data-active=true]{background:#222;color:#fff;border-color:#222}.special-category-section__description{margin:8px 0 0;color:#666;font-size:13px;padding-bottom:16px}.special-category-section__fields{display:grid;gap:8px;margin-top:12px}.special-category-section__fields--box{grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-areas:"top top" "left right" "bottom bottom"}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=top]){grid-area:top}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=left]){grid-area:left}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=right]){grid-area:right}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=bottom]){grid-area:bottom}@media(max-width: 1400px){.special-category-section__fields--box{grid-template-columns:minmax(0, 1fr);grid-template-areas:"top" "left" "right" "bottom"}}.special-category-section__field{min-width:0}.special-category-section__placeholder{margin-top:8px;font-style:italic;opacity:.7}.mockos-router{width:100%;height:100%;position:relative}.mockos-screen{width:100%;height:100%}.mockos-screen--center{display:flex;flex-direction:column;align-items:center;justify-content:center}.mockos-screen--launchscreen{background-color:#000}.mockos-screen--home{padding:20px;background-color:#f5f5f5}.mockos-screen--onboard{padding:20px;background-color:#fff}.mockos-screen--subscription{padding:20px;background-color:#fff}.mockos-screen__title{font-size:32px;font-weight:bold;color:#000;margin-bottom:16px}.mockos-screen__subtitle{font-size:16px;color:#666}.mockos-screen__heading{font-size:24px;font-weight:bold;margin-bottom:20px}.mockos-screen__text{font-size:16px;color:#333;margin-bottom:12px}.mockos-screen__plan{padding:16px;border-radius:8px;text-align:center;margin-bottom:12px}.mockos-screen__plan--premium{background-color:#007aff;color:#fff}.mockos-screen__plan--basic{background-color:#e5e5e5;color:#333}.mockos-launcher{width:100%;height:100%;padding:40px 20px;display:flex;flex-direction:column}.mockos-launcher__grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px}.mockos-launcher__app{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(0,0,0,0);border:none;cursor:pointer;padding:8px;border-radius:12px;transition:background-color .2s}.mockos-launcher__app:hover{background-color:hsla(0,0%,100%,.1)}.mockos-launcher__app:active{transform:scale(0.95)}.mockos-launcher__app-icon{width:60px;height:60px;border-radius:13px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.3)}.mockos-launcher__app-icon svg{width:100%;height:100%;display:block}.mockos-launcher__app-name{font-size:12px;color:#fff;text-align:center;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal{position:fixed;inset:0;z-index:10000}.modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.4);z-index:0}.modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12);width:min(960px,100vw - 40px);max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;z-index:1}.modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid #e5e7eb;gap:12px}.modal__title{margin:0;font-size:16px;font-weight:700}.add-component-modal{display:flex;flex-direction:column;height:100%}.add-component-modal__body{flex:1;overflow-y:auto;padding-bottom:24px}.add-component-modal__section{padding:0 24px;margin-bottom:24px}.add-component-modal__section:first-of-type{margin-top:24px}.add-component-modal__section-title{font-size:16px;font-weight:600;margin-bottom:12px}.add-component-modal__toggle{display:flex;align-items:center;gap:12px;margin:0 24px 24px;padding:12px 0;font-weight:500;user-select:none}.add-component-modal__toggle input{width:18px;height:18px}.add-component-modal__group{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 10px 20px rgba(15,23,42,.05)}.add-component-modal__group-title{font-size:14px;font-weight:600;color:#6b7280;margin-bottom:12px}.add-component-modal__grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.add-component-modal__card{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid #e5e7eb;border-radius:10px;background:#f3f4f6;cursor:pointer;text-align:left;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;color:inherit}.add-component-modal__card:hover{border-color:#2563eb;box-shadow:0 10px 25px rgba(37,99,235,.15);transform:translateY(-2px)}.add-component-modal__thumbnail{width:100%;aspect-ratio:4/3;border-radius:8px;background:#f3f4f6;border:1px dashed #e5e7eb;display:flex;align-items:center;justify-content:center;color:#2563eb;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.add-component-modal__title{font-weight:600;color:#111827}.add-component-modal__empty{margin:12px 0;padding:16px;border:1px dashed #e5e7eb;border-radius:10px;color:#6b7280;font-size:14px;text-align:center}.device-selector-modal{padding-bottom:24px}.device-selector-modal__grid{padding:24px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.device-selector-modal__grid .editor-device-button{height:80px;min-width:unset}.color-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.color-modal__selected{display:flex;align-items:center;justify-content:space-between;background:#f3f4f6;border-radius:8px;padding:12px 16px}.color-modal__selected-info{display:flex;align-items:center;gap:12px}.color-modal__selected-preview{width:32px;height:32px;border-radius:6px;border:1px solid rgba(0,0,0,.1)}.color-modal__selected-label{margin:0;font-size:12px;color:#6b7280}.color-modal__selected-value{margin:0;font-weight:600}.color-modal__toggle{display:flex;flex-direction:column;gap:6px;padding:0 8px}.color-modal__toggle-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#111827;cursor:pointer}.color-modal__toggle-input{width:16px;height:16px;accent-color:#2563eb}.color-modal__toggle-description{margin:0;font-size:12px;color:#6b7280}.color-modal__link-button{border:none;background:none;color:#2563eb;font-weight:600;font-size:13px;cursor:pointer;padding:4px 8px}.color-modal__add-color{position:relative;display:inline-flex;align-items:center}.color-modal__add-color-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0;margin:0}.color-section{display:flex;flex-direction:column;gap:8px}.color-section__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.color-section__title{margin:0;font-weight:600}.color-section__swatches{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:8px}.color-section__empty{margin:0;font-size:12px;color:#6b7280}.color-modal__swatch{border:1px solid #e5e7eb;border-radius:8px;padding:8px;background:#fff;display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.color-modal__swatch--active{border-color:#111827;box-shadow:0 0 0 1px #111827 inset}.color-modal__swatch-preview{width:100%;height:32px;border-radius:6px}.color-modal__swatch-preview--light{border:1px solid rgba(0,0,0,.1)}.color-modal__swatch-label{font-size:12px;font-weight:600;color:#111827}.color-modal__swatch-value{font-size:11px;color:#6b7280}.color-modal__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0}.localication-modal__content{width:calc(100vw - 32px);height:calc(100vh - 32px);max-width:1600px;max-height:calc(100vh - 32px);padding:0;display:flex;flex-direction:column}.localication-modal__header{padding:16px 24px;border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:16px}.localication-modal__header-main{flex:1;display:flex;flex-direction:column;gap:4px}.localication-modal__description{margin:0;font-size:13px;color:#6b7280}.localication-modal__body{flex:1;min-height:0;padding:24px;display:flex;flex-direction:column;gap:16px;overflow:auto}.localication-modal__editor{flex:1;min-height:0;overflow:auto;border:1px solid #e5e7eb;border-radius:8px;background:#f3f4f6}.localication-modal__json-editor{height:100%;width:100%;display:block;padding:12px;overflow:auto}.modal--scrollable .localication-modal__content{overflow:hidden}.modal--scrollable .localication-modal__body{overflow:auto}.mockable-feature-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.mockable-feature-modal__body{min-height:120px}.product-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-edit-modal__body{display:flex;flex-direction:column;gap:12px}.product-edit-modal__textarea{min-height:90px;padding:8px;resize:vertical}.product-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-presets-modal__body{display:flex;flex-direction:column;gap:16px}.product-presets-modal__section-title{margin:0;font-weight:700}.product-presets-modal__muted{margin:6px 0 0;opacity:.7}.product-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.product-presets-modal__card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}.product-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.product-presets-modal__card-title{margin:0;font-weight:700}.product-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.product-presets-modal__card-list{margin:0;padding-left:18px}.product-presets-modal__card-item{font-size:12px;word-break:break-word}.product-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.benefit-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-edit-modal__body{display:flex;flex-direction:column;gap:12px}.benefit-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-presets-modal__body{display:flex;flex-direction:column;gap:16px}.benefit-presets-modal__section-title{margin:0;font-weight:700}.benefit-presets-modal__muted{margin:6px 0 0;opacity:.7}.benefit-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.benefit-presets-modal__card{border:1px solid #e5e7eb;border-radius:12px;padding:12px;background:#fff;display:flex;flex-direction:column;gap:8px}.benefit-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.benefit-presets-modal__card-title{margin:0;font-weight:700}.benefit-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.benefit-presets-modal__card-list{margin:0;padding-left:18px}.benefit-presets-modal__card-item{font-size:12px;word-break:break-word}.benefit-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.embla{max-width:48rem;margin:auto;--slide-height: 19rem;--slide-spacing: 1rem;--slide-size: 70%}.embla__viewport{overflow:hidden}.embla__container{display:flex;touch-action:pan-y pinch-zoom}.embla__slide{transform:translate3d(0, 0, 0);min-width:0;padding-left:var(--slide-spacing);flex:0 0 100%}.embla__slide__number{box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);border-radius:1.8rem;font-size:4rem;font-weight:600;display:flex;align-items:center;justify-content:center;height:var(--slide-height);user-select:none}.embla__controls{display:grid;grid-template-columns:auto 1fr;justify-content:space-between;gap:1.2rem;margin-top:1.8rem}.embla__buttons{display:grid;grid-template-columns:repeat(2, 1fr);gap:.6rem;align-items:center}.embla__button{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);width:3.6rem;height:3.6rem;z-index:1;border-radius:50%;color:var(--text-body);display:flex;align-items:center;justify-content:center}.embla__button:disabled{color:var(--detail-high-contrast)}.embla__button__svg{width:35%;height:35%}.embla__dots{flex-wrap:wrap;margin-right:0;height:50px;margin:0 auto}.embla__dot{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);--embla-dot-color: var(--detail-medium-contrast);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;width:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);height:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);display:flex;align-items:center;border-radius:50%}.embla__dot:after{background-color:var(--embla-dot-color);width:var(--embla-dot-size, 1.4rem);height:var(--embla-dot-size, 1.4rem);border-radius:50%;display:flex;align-items:center;content:""}.embla__dot--selected{--embla-dot-color: var(--text-body)}.carousel-provider{height:100%}.embla{height:100%}.embla__viewport{height:100%;display:flex;flex-direction:column}.embla__container{flex:1}
|
|
1
|
+
*,*::before,*::after{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0}body{background:hsl(var(--card, 0 0% 100%));font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden}button{font-family:inherit}input,button{font-size:100%}p{margin:0;padding:0}html,body,#root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif}.editor-container{height:100vh;width:100%;display:flex;overflow:hidden}.app-main{flex:1 1 auto;background:hsl(var(--background, 220 14.3% 95.9%))}.page-bg{background:hsl(var(--background, 220 14.3% 95.9%))}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));gap:16px}.btn-add{height:120px;border:2px dashed hsl(var(--muted-foreground, 220 8.9% 46.1%));border-radius:8px;background:hsl(var(--card, 0 0% 100%));cursor:pointer;font-weight:600;color:hsl(var(--foreground, 220.9 39.3% 11%));transition:border-color .2s ease,transform .1s ease,box-shadow .2s ease;box-shadow:0 1px 2px hsl(var(--foreground, 220.9 39.3% 11%)/0.04)}.btn-add:hover{border-color:hsl(var(--muted-foreground, 220 8.9% 46.1%));transform:translateY(-1px);box-shadow:0 6px 16px hsl(var(--foreground, 220.9 39.3% 11%)/0.1)}.split-left{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, 220.9 39.3% 11%)/0.25) rgba(0,0,0,0)}.split-left::-webkit-scrollbar{width:8px;height:4px}.split-left{flex:1 1 10%;min-width:200px;border-right:1px solid hsl(var(--border, 220 13% 91%));overflow:auto}.split-right{position:relative;display:flex;flex-direction:column;flex:1 1 45%;width:100%;height:auto;max-height:calc(100vh - 120px);overflow:auto;padding:16px;background-image:var(--rb-canvas-bg, none);background-size:cover;background-position:center;background-repeat:repeat;background-size:500px auto}.split-right>*{position:relative;z-index:1}.dark .split-right{--rb-canvas-bg: none !important}.split-third{flex:1 1 25%;border-right:1px solid hsl(var(--border, 220 13% 91%));overflow:auto;overflow-x:hidden;max-height:calc(100vh - 120px)}.stage{background:hsl(var(--card, 0 0% 100%));border:1px solid hsl(var(--border, 220 13% 91%));border-radius:4px;align-self:center;border:1px solid hsl(var(--border, 220 13% 91%));box-shadow:0 18px 50px hsl(var(--foreground, 220.9 39.3% 11%)/0.16),0 6px 16px hsl(var(--foreground, 220.9 39.3% 11%)/0.1);overflow:hidden}.stage .scroll-container::-webkit-scrollbar{width:8px;height:8px}.stage .scroll-container::-webkit-scrollbar-track{background:rgba(0,0,0,0)}.stage .scroll-container::-webkit-scrollbar-thumb{background:hsl(var(--foreground, 220.9 39.3% 11%)/0.25);border-radius:8px}.stage .scroll-container{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, 220.9 39.3% 11%)/0.25) rgba(0,0,0,0)}.rb-node-selected{border:1px solid hsl(var(--primary, 221.2 83.2% 53.3%))}.app-header{position:sticky;top:0;z-index:10;background:hsl(var(--card, 0 0% 100%));border-bottom:1px solid hsl(var(--border, 220 13% 91%));height:60px;padding:0 16px;display:flex;align-items:center;justify-content:space-between}.app-header a{color:hsl(var(--foreground, 220.9 39.3% 11%));text-decoration:none}.app-header__brand{font-weight:700}.app-header__nav{display:flex;gap:16px}.warning{color:hsl(var(--destructive, 0 84.2% 60.2%));font-size:12px;font-weight:600;margin-bottom:16px}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.breadcrumb__back{display:inline-flex;align-items:center;gap:4px;padding:0;border:none;background:none;color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600;cursor:pointer;transition:color .2s ease}.breadcrumb__back:hover,.breadcrumb__back:focus-visible{color:hsl(var(--primary, 221.2 83.2% 53.3%));outline:none}.breadcrumb__back-icon{font-size:14px;line-height:1}.breadcrumb__list{list-style:none;padding:0;margin:0;display:flex;align-items:center;gap:8px}.breadcrumb__item{display:inline-flex;align-items:center}.breadcrumb__item--clickable{cursor:pointer}.breadcrumb__separator{color:hsl(var(--border, 220 13% 91%));margin:0 4px}.breadcrumb__link{color:hsl(var(--foreground, 220.9 39.3% 11%));text-decoration:none}.breadcrumb__link:hover{text-decoration:underline}.breadcrumb__current{color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.device-status-bar{position:relative;z-index:100}.device-navigation-bar{position:relative;z-index:100}.mobile-panel-toggle{display:none;padding:0 16px 12px;gap:8px}.mobile-panel-toggle__button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:8px;border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600;cursor:pointer;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}.mobile-panel-toggle__button:focus-visible{outline:2px solid hsl(var(--primary, 221.2 83.2% 53.3%));outline-offset:2px}.mobile-panel-toggle__button--active{background:hsl(var(--foreground, 220.9 39.3% 11%));color:hsl(var(--card, 0 0% 100%));border-color:hsl(var(--foreground, 220.9 39.3% 11%));box-shadow:0 6px 16px hsl(var(--foreground, 220.9 39.3% 11%)/0.15)}.mobile-panel-toggle__icon{width:18px;height:12px;display:inline-flex}.mobile-panel-toggle__icon svg{width:100%;height:100%}.mobile-panel-toggle__label{line-height:1}.split-panel__close{display:none;position:absolute;top:12px;right:12px;border:none;border-radius:8px;background:hsl(var(--foreground, 220.9 39.3% 11%)/0.7);color:hsl(var(--card, 0 0% 100%));padding:6px 16px;font-weight:600;cursor:pointer;z-index:5}.editor-container__overlay{display:none}@media(max-width: 1000px){.editor-container{position:relative;min-height:calc(100vh - 60px);flex-direction:column}.split-left,.split-third{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;background:hsl(var(--background, 220 14.3% 95.9%));box-shadow:0 25px 60px hsl(var(--foreground, 220.9 39.3% 11%)/0.15);transition:transform .3s ease,opacity .3s ease;opacity:0;pointer-events:none;z-index:4}.split-left{transform:translate3d(-100%, 0, 0)}.split-third{transform:translate3d(100%, 0, 0)}.split-left.is-open,.split-third.is-open{opacity:1;pointer-events:auto;transform:translate3d(0, 0, 0)}.split-right{flex:1 1 auto;min-width:0;min-height:calc(100vh - 120px);padding:16px;padding-bottom:120px;position:relative}.mobile-panel-toggle{display:flex}.split-panel__close{display:inline-flex}.editor-container__overlay{display:block;position:absolute;inset:0;background:hsl(var(--foreground, 220.9 39.3% 11%)/0.35);border:none;padding:0;margin:0;cursor:pointer;z-index:3}}@media(max-width: 900px){.split-right__controls{top:12px;z-index:5;padding-bottom:12px}.split-right__controls .side-tool{width:100%}}.screen-preview{position:relative;width:100%;height:100%}.rb-loading-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;pointer-events:none;background:hsl(var(--card, 0 0% 100%)/0.55);backdrop-filter:blur(1px)}.rb-loading{position:relative;top:-20%;width:min(320px,70vw);max-width:360px;opacity:.95}.builder{display:flex;flex-direction:column;gap:12px}.builder__breadcrumbs{display:flex;flex-direction:row;gap:8px}.builder__breadcrumb{color:hsl(var(--muted-foreground, 220 8.9% 46.1%));font-size:12px}.builder__current{font-weight:600}.builder__list{display:flex;flex-wrap:wrap;gap:8px}.builder__list-item{flex:1 1 220px;min-width:220px}.builder__button{position:relative;display:flex;align-items:stretch}.builder__button>.builder__button-link{flex:1;min-width:0;display:flex;align-items:center;background:hsl(var(--card, 0 0% 100%));border:1px solid hsl(var(--border, 220 13% 91%));border-radius:4px;height:40px;line-height:37px;padding:0 4px;margin:0;background:hsl(var(--primary, 221.2 83.2% 53.3%));color:hsl(var(--card, 0 0% 100%));font-size:clamp(11px,1.3vw,13px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.builder__sort-controls{display:flex;flex-direction:column;gap:4px}.builder__sort-button{width:32px;height:18px;border:none;border-radius:4px;background:hsl(var(--background, 220 14.3% 95.9%));color:hsl(var(--muted-foreground, 220 8.9% 46.1%));font-size:14px;cursor:pointer;line-height:1;box-shadow:inset 0 0 0 1px hsl(var(--border, 220 13% 91%));padding:0}.builder__sort-button:disabled{opacity:.4;cursor:not-allowed}.builder__button-condition{position:absolute;bottom:-10px;font-size:8px}.builder__node{background:hsl(var(--card, 0 0% 100%));border:1px solid hsl(var(--border, 220 13% 91%));border-radius:4px;padding:6px}.builder__node-type{margin:0 0 8px 0;font-weight:600}.builder__children{position:relative;display:flex;flex-direction:column;gap:16px}.builder__children>:not(:first-child){margin-left:16px}.builder__children::before{content:"";position:absolute;left:6px;top:24px;bottom:0;width:1px;background:hsl(var(--border, 220 13% 91%))}.builder__text,.builder__placeholder{color:hsl(var(--muted-foreground, 220 8.9% 46.1%));font-size:12px}.editor-controls{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:16px}.editor-section{background:hsl(var(--card, 0 0% 100%));border:1px solid hsl(var(--border, 220 13% 91%));border-radius:8px;padding:16px}.form-row{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:12px;margin-bottom:12px}.form-actions{display:flex;gap:12px;margin-top:16px}.btn{padding:8px 12px;border-radius:8px;border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%));cursor:pointer;transition:background .2s ease,box-shadow .2s ease}.btn:hover{background:hsl(var(--background, 220 14.3% 95.9%));box-shadow:0 6px 16px hsl(var(--foreground, 220.9 39.3% 11%)/0.06)}.input{display:inline-flex;align-items:center;height:32px;padding:0 8px;border:1px solid hsl(var(--border, 220 13% 91%));border-radius:8px;background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.input:focus{border-color:hsl(var(--border, 220 13% 91%));box-shadow:0 0 0 3px hsl(var(--foreground, 220.9 39.3% 11%)/0.04)}.input--color{padding:0;width:40px;height:28px;border-radius:6px;cursor:pointer}.input--color::-webkit-color-swatch-wrapper{padding:0}.input--color::-webkit-color-swatch{border:none;border-radius:4px}.input--color::-moz-color-swatch{border:none;border-radius:4px}.builder-checkbox{display:inline-flex;flex-direction:column;gap:4px}.builder-checkbox__label{display:inline-flex;align-items:center;gap:10px;cursor:pointer;color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600;position:relative;user-select:none}.builder-checkbox__native{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.builder-checkbox__control{width:20px;height:20px;border-radius:6px;border:2px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%));display:inline-flex;align-items:center;justify-content:center;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .2s ease;box-shadow:0 2px 6px hsl(var(--foreground, 220.9 39.3% 11%)/0.12)}.builder-checkbox__control::after{content:"";width:6px;height:12px;border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0);transform:rotate(45deg) scale(0);transform-origin:center;transition:transform .2s ease,border-color .2s ease}.builder-checkbox__label:hover .builder-checkbox__control{transform:translateY(-1px)}.builder-checkbox__native:focus-visible+.builder-checkbox__control{box-shadow:0 0 0 3px hsl(var(--primary, 221.2 83.2% 53.3%)/0.3)}.builder-checkbox__native:checked+.builder-checkbox__control{background:linear-gradient(135deg, hsl(var(--foreground, 220.9 39.3% 11%)), hsl(var(--primary, 221.2 83.2% 53.3%)));border-color:rgba(0,0,0,0);box-shadow:0 6px 14px hsl(var(--primary, 221.2 83.2% 53.3%)/0.35)}.builder-checkbox__native:checked+.builder-checkbox__control::after{border-color:hsl(var(--card, 0 0% 100%));transform:rotate(45deg) scale(1)}.builder-checkbox__text{font-size:14px;line-height:1.4}.builder-checkbox__helper{font-size:12px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));margin-left:30px}.builder-checkbox--disabled{opacity:.6}.builder-checkbox--disabled .builder-checkbox__label{cursor:not-allowed}.editor-tabs{display:flex;gap:8px;border-bottom:1px solid hsl(var(--border, 220 13% 91%))}.editor-tab{cursor:pointer;border:1px solid rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px;color:hsl(var(--foreground, 220.9 39.3% 11%));padding:8px 12px;display:inline-flex;align-items:center;white-space:nowrap}.editor-tab__label{display:inline-flex;align-items:center;white-space:nowrap;line-height:1.2;font-size:clamp(.85rem,.9rem + .2vw,1rem)}.editor-tab--active{background:hsl(var(--card, 0 0% 100%));border-color:hsl(var(--border, 220 13% 91%)) hsl(var(--border, 220 13% 91%)) hsl(var(--card, 0 0% 100%)) hsl(var(--border, 220 13% 91%))}.editor-panels{padding:12px}.editor-panels.editor-panels-debug{padding:0}.jer-editor-container{padding-left:0 !important;padding-right:0 !important}.editor-panel{display:none}.editor-panel--active{display:block}.editor-header{display:flex;align-items:center;gap:12px;padding:0 16px;height:60px;background:hsl(var(--background, 220 14.3% 95.9%));border-bottom:1px solid hsl(var(--border, 220 13% 91%))}.editor-header__title{color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600}.editor-header__devices{scrollbar-width:thin;scrollbar-color:hsl(var(--foreground, 220.9 39.3% 11%)/0.25) rgba(0,0,0,0)}.editor-header__devices::-webkit-scrollbar{width:8px;height:4px}.editor-header__devices{display:flex;flex-direction:row;align-items:stretch;gap:8px;overflow:auto;height:60px;padding:4px}.editor-device-button{position:relative;min-width:160px;height:100%;border:1px solid hsl(var(--border, 220 13% 91%));border-radius:6px;background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));cursor:pointer;font-size:12px}.editor-device-button.editor-device-button--selected{border-color:hsl(var(--foreground, 220.9 39.3% 11%))}.editor-device-button img{position:absolute;bottom:4px;right:4px;width:16px;height:16px}.editor-header__actions{margin-left:auto;display:flex;align-items:center;gap:8px}.editor-button{display:inline-flex;align-items:center;justify-content:center;height:36px;min-width:120px;padding:0 12px;border:1px solid hsl(var(--border, 220 13% 91%));border-radius:6px;background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));cursor:pointer}.debug-button{min-width:auto;height:auto;padding:4px 12px;font-size:12px;line-height:1.2;border-radius:999px;background:hsl(var(--card, 0 0% 100%)/0.95);border-color:hsl(var(--foreground, 220.9 39.3% 11%)/0.15);box-shadow:0 2px 4px hsl(var(--foreground, 220.9 39.3% 11%)/0.08)}.debug-button:hover{background:hsl(var(--card, 0 0% 100%));border-color:hsl(var(--foreground, 220.9 39.3% 11%)/0.3)}.editor-button:disabled{opacity:.6;cursor:default}.editor-save-button,.editor-save-previewconfig-button{color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600;font-size:12px}.builder__add-button{width:100%;margin-top:12px;min-height:52px;border-style:dashed;border-color:hsl(var(--border, 220 13% 91%));background:hsl(var(--background, 220 14.3% 95.9%));color:hsl(var(--foreground, 220.9 39.3% 11%));font-weight:600;gap:10px;transition:border-color .2s ease,background .2s ease,color .2s ease}.builder__add-button-icon{display:inline-flex;width:28px;height:28px;border-radius:999px;align-items:center;justify-content:center;background:hsl(var(--primary, 221.2 83.2% 53.3%));color:hsl(var(--card, 0 0% 100%));font-size:18px;line-height:1}.builder__add-button:hover{border-color:hsl(var(--border, 220 13% 91%));background:hsl(var(--background, 220 14.3% 95.9%));color:hsl(var(--foreground, 220.9 39.3% 11%))}.side-tool-container{position:absolute;top:0;left:0;z-index:5}.side-tool select{width:100%;font-size:11px;padding:4px 6px}.side-tool .debug-button{border-radius:0;width:100%;justify-content:center}.attributes-editor__component-meta{margin-bottom:20px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--background, 220 14.3% 95.9%))}.attributes-editor__component-title,.attributes-editor__field-label{margin:0;font-weight:700}.attributes-editor__component-title{font-size:18px;text-transform:capitalize}.attributes-editor__component-description{margin:6px 0 0;font-size:14px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.attributes-editor__tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.attributes-editor__tab-button{padding:6px 12px;border-radius:6px;border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease}.attributes-editor__tab-button:disabled{opacity:.4;cursor:default}.attributes-editor__tab-button--active{background:hsl(var(--foreground, 220.9 39.3% 11%));color:hsl(var(--card, 0 0% 100%))}.attributes-editor__field-wrapper{position:relative;margin-bottom:16px;display:flex;flex-direction:column;gap:4px;width:100%}.attributes-editor__field-wrapper--boolean{flex-direction:row;align-items:center;gap:8px}.attributes-editor__field-label{font-size:14px}.attributes-editor__empty-state{padding:8px;opacity:.7}.attributes-editor__size-grid{display:grid;gap:12px;grid-template-columns:repeat(2, minmax(0, 1fr))}@media(max-width: 1400px){.attributes-editor__size-grid{grid-template-columns:minmax(0, 1fr)}}.attributes-editor__size-grid-item{min-width:0}.attributes-editor__size-field{display:flex;gap:6px;align-items:center;width:100%}.attributes-editor__size-field-input{flex:1;min-width:0;height:36px;line-height:36px}.attributes-editor__size-field-select{flex:0 0 72px;min-width:60px;height:36px;line-height:36px;padding-inline:6px}.attributes-editor__mockable{margin-bottom:16px;padding:12px 16px;border-radius:8px;border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%))}.attributes-editor__mockable-title{margin:0 0 8px 0;font-weight:700}.attributes-editor__mockable-table{width:100%;border-collapse:collapse}.attributes-editor__mockable-row+.attributes-editor__mockable-row{border-top:1px solid hsl(var(--border, 220 13% 91%))}.attributes-editor__mockable-name{padding:8px 0;font-weight:600;text-transform:capitalize}.attributes-editor__mockable-action{padding:8px 0;text-align:right}.field-info-tooltip{position:relative}.field-info-tooltip__trigger{position:absolute;top:0;right:0;font-size:11px;line-height:1.2;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));cursor:pointer;font-weight:600;white-space:nowrap;text-transform:uppercase;letter-spacing:.5px;background:rgba(0,0,0,0);border:none;padding:0;font-family:inherit;display:inline-flex;align-items:center;gap:4px}.field-info-tooltip__trigger:focus-visible{outline:2px solid hsl(var(--foreground, 220.9 39.3% 11%)/0.4);outline-offset:2px}.field-info-tooltip__bubble{position:absolute;top:50%;right:100%;transform:translate(-8px, -50%);background:hsl(var(--foreground, 220.9 39.3% 11%));color:hsl(var(--card, 0 0% 100%));padding:6px 10px;border-radius:4px;font-size:12px;line-height:1.4;width:220px;text-align:left;box-shadow:0 6px 16px hsl(var(--foreground, 220.9 39.3% 11%)/0.2);z-index:20;opacity:0;pointer-events:none;transition:opacity .15s ease,transform .15s ease}.field-info-tooltip__bubble--visible{opacity:1;transform:translate(-12px, -50%)}.special-category-section{border:1px solid hsl(var(--border, 220 13% 91%));border-radius:8px;padding:12px;margin-bottom:16px;background:hsl(var(--card, 0 0% 100%))}.special-category-section__header{display:flex;justify-content:space-between;align-items:center;gap:8px}.special-category-section__title{margin:0;font-weight:700}.special-category-section__toggle{border:1px solid hsl(var(--border, 220 13% 91%));background:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));border-radius:4px;padding:4px 10px;cursor:pointer;font-weight:600;transition:background .15s ease,color .15s ease,border-color .15s ease}.special-category-section__toggle[data-active=true]{background:hsl(var(--foreground, 220.9 39.3% 11%));color:hsl(var(--card, 0 0% 100%));border-color:hsl(var(--foreground, 220.9 39.3% 11%))}.special-category-section__description{margin:8px 0 0;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));font-size:13px;padding-bottom:16px}.special-category-section__fields{display:grid;gap:8px;margin-top:12px}.special-category-section__fields--box{grid-template-columns:repeat(2, minmax(0, 1fr));grid-template-areas:"top top" "left right" "bottom bottom"}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=top]){grid-area:top}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=left]){grid-area:left}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=right]){grid-area:right}.special-category-section__fields--box>.field-info-tooltip:has([data-field-slot=bottom]){grid-area:bottom}@media(max-width: 1400px){.special-category-section__fields--box{grid-template-columns:minmax(0, 1fr);grid-template-areas:"top" "left" "right" "bottom"}}.special-category-section__field{min-width:0}.special-category-section__placeholder{margin-top:8px;font-style:italic;opacity:.7}.mockos-router{width:100%;height:100%;position:relative}.mockos-screen{width:100%;height:100%}.mockos-screen--center{display:flex;flex-direction:column;align-items:center;justify-content:center}.mockos-screen--launchscreen{background-color:hsl(var(--foreground, 220.9 39.3% 11%))}.mockos-screen--home{padding:20px;background-color:hsl(var(--background, 220 14.3% 95.9%))}.mockos-screen--onboard{padding:20px;background-color:hsl(var(--card, 0 0% 100%))}.mockos-screen--subscription{padding:20px;background-color:hsl(var(--card, 0 0% 100%))}.mockos-screen__title{font-size:32px;font-weight:bold;color:hsl(var(--foreground, 220.9 39.3% 11%));margin-bottom:16px}.mockos-screen__subtitle{font-size:16px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.mockos-screen__heading{font-size:24px;font-weight:bold;margin-bottom:20px}.mockos-screen__text{font-size:16px;color:hsl(var(--foreground, 220.9 39.3% 11%));margin-bottom:12px}.mockos-screen__plan{padding:16px;border-radius:8px;text-align:center;margin-bottom:12px}.mockos-screen__plan--premium{background-color:hsl(var(--primary, 221.2 83.2% 53.3%));color:hsl(var(--card, 0 0% 100%))}.mockos-screen__plan--basic{background-color:hsl(var(--background, 220 14.3% 95.9%));color:hsl(var(--foreground, 220.9 39.3% 11%))}.mockos-launcher{width:100%;height:100%;padding:40px 20px;display:flex;flex-direction:column}.mockos-launcher__grid{display:grid;grid-template-columns:repeat(4, 1fr);gap:20px;padding:20px}.mockos-launcher__app{display:flex;flex-direction:column;align-items:center;gap:8px;background:rgba(0,0,0,0);border:none;cursor:pointer;padding:8px;border-radius:12px;transition:background-color .2s}.mockos-launcher__app:hover{background-color:hsl(var(--card, 0 0% 100%)/0.1)}.mockos-launcher__app:active{transform:scale(0.95)}.mockos-launcher__app-icon{width:60px;height:60px;border-radius:13px;overflow:hidden;box-shadow:0 2px 8px hsl(var(--foreground, 220.9 39.3% 11%)/0.3)}.mockos-launcher__app-icon svg{width:100%;height:100%;display:block}.mockos-launcher__app-name{font-size:12px;color:hsl(var(--card, 0 0% 100%));text-align:center;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rb-bottom-bar{position:fixed;left:50%;transform:translateX(-66%);bottom:10px;z-index:200;height:50px;border-radius:24px;background-color:hsl(var(--card, 0 0% 100%));color:hsl(var(--foreground, 220.9 39.3% 11%));display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0 10px;gap:10px;border:1px solid hsl(var(--border, 220 13% 91%));box-shadow:0 8px 20px hsl(var(--foreground, 220.9 39.3% 11%)/0.08)}.rb-bottom-bar__button{appearance:none;border:none;background:rgba(0,0,0,0);padding:8px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.rb-bottom-bar__button.is-active{color:hsl(var(--primary, 221.2 83.2% 53.3%));background:hsl(var(--primary, 221.2 83.2% 53.3%));background:color-mix(in srgb, hsl(var(--primary, 221.2 83.2% 53.3%)), transparent 92%);box-shadow:0 0 18px hsl(var(--primary, 221.2 83.2% 53.3%)/0.28)}.rb-bottom-bar__button--preview.is-active{box-shadow:0 0 0 3px hsl(var(--primary, 221.2 83.2% 53.3%)/0.18),0 0 26px hsl(var(--primary, 221.2 83.2% 53.3%)/0.35)}.rb-bottom-bar__button:focus-visible{outline:none;box-shadow:0 0 0 3px hsl(var(--primary, 221.2 83.2% 53.3%)/0.18),0 0 18px hsl(var(--primary, 221.2 83.2% 53.3%)/0.22)}.rb-bottom-bar__button+.rb-bottom-bar__button{border-left:1px solid hsl(var(--border, 220 13% 91%));padding-left:14px;margin-left:4px}.rb-bottom-bar__button--rtl{gap:6px;padding-right:10px}.rb-bottom-bar__rtl-text{font-size:12px;font-weight:700;letter-spacing:.3px;color:hsl(var(--foreground, 220.9 39.3% 11%))}.rb-bottom-bar__spacer{flex:1 1 auto}.rb-bottom-bar__langs{display:inline-flex;align-items:center;gap:0;color:hsl(var(--foreground, 220.9 39.3% 11%))}.rb-bottom-bar__lang{appearance:none;border:none;background:rgba(0,0,0,0);padding:6px 6px;cursor:pointer;font-size:12px;font-weight:700;text-transform:lowercase;color:inherit}.rb-bottom-bar__lang.is-active{color:hsl(var(--primary, 221.2 83.2% 53.3%));text-shadow:0 0 12px hsl(var(--primary, 221.2 83.2% 53.3%)/0.25)}.rb-bottom-bar__lang+.rb-bottom-bar__lang{border-left:1px solid hsl(var(--border, 220 13% 91%));margin-left:8px;padding-left:14px}.modal{position:fixed;inset:0;z-index:10000}.modal__overlay{position:absolute;inset:0;background:hsl(var(--foreground, 220.9 39.3% 11%)/0.4);z-index:0}.modal__content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);background:hsl(var(--card, 0 0% 100%));border-radius:12px;box-shadow:0 10px 30px hsl(var(--foreground, 220.9 39.3% 11%)/0.12);width:min(960px,100vw - 40px);max-height:calc(100vh - 120px);display:flex;flex-direction:column;overflow:hidden;z-index:1}.modal__header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid hsl(var(--border, 220 13% 91%));gap:12px}.modal__title{margin:0;font-size:16px;font-weight:700}.add-component-modal{display:flex;flex-direction:column;height:100%}.add-component-modal__body{flex:1;overflow-y:auto;padding-bottom:24px}.add-component-modal__section{padding:0 24px;margin-bottom:24px}.add-component-modal__section:first-of-type{margin-top:24px}.add-component-modal__section-title{font-size:16px;font-weight:600;margin-bottom:12px}.add-component-modal__toggle{display:flex;align-items:center;gap:12px;margin:0 24px 24px;padding:12px 0;font-weight:500;user-select:none}.add-component-modal__toggle input{width:18px;height:18px}.add-component-modal__group{background:hsl(var(--card, 0 0% 100%));border:1px solid hsl(var(--border, 220 13% 91%));border-radius:12px;padding:16px;margin-bottom:12px;box-shadow:0 10px 20px hsl(var(--foreground, 220.9 39.3% 11%)/0.05)}.add-component-modal__group-title{font-size:14px;font-weight:600;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));margin-bottom:12px}.add-component-modal__grid{padding:16px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.add-component-modal__card{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid hsl(var(--border, 220 13% 91%));border-radius:10px;background:hsl(var(--background, 220 14.3% 95.9%));cursor:pointer;text-align:left;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;color:inherit}.add-component-modal__card:hover{border-color:hsl(var(--primary, 221.2 83.2% 53.3%));box-shadow:0 10px 25px hsl(var(--primary, 221.2 83.2% 53.3%)/0.15);transform:translateY(-2px)}.add-component-modal__thumbnail{width:100%;aspect-ratio:4/3;border-radius:8px;background:hsl(var(--background, 220 14.3% 95.9%));border:1px dashed hsl(var(--border, 220 13% 91%));display:flex;align-items:center;justify-content:center;color:hsl(var(--primary, 221.2 83.2% 53.3%));font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.add-component-modal__title{font-weight:600;color:hsl(var(--foreground, 220.9 39.3% 11%))}.add-component-modal__empty{margin:12px 0;padding:16px;border:1px dashed hsl(var(--border, 220 13% 91%));border-radius:10px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%));font-size:14px;text-align:center}.device-selector-modal{padding-bottom:24px}.device-selector-modal__grid{padding:24px;display:grid;grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));gap:12px;overflow:auto}.device-selector-modal__grid .editor-device-button{height:80px;min-width:unset}.color-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.color-modal__selected{display:flex;align-items:center;justify-content:space-between;background:hsl(var(--background, 220 14.3% 95.9%));border-radius:8px;padding:12px 16px}.color-modal__selected-info{display:flex;align-items:center;gap:12px}.color-modal__selected-preview{width:32px;height:32px;border-radius:6px;border:1px solid hsl(var(--foreground, 220.9 39.3% 11%)/0.1)}.color-modal__selected-label{margin:0;font-size:12px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.color-modal__selected-value{margin:0;font-weight:600}.color-modal__toggle{display:flex;flex-direction:column;gap:6px;padding:0 8px}.color-modal__toggle-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:hsl(var(--foreground, 220.9 39.3% 11%));cursor:pointer}.color-modal__toggle-input{width:16px;height:16px;accent-color:hsl(var(--primary, 221.2 83.2% 53.3%))}.color-modal__toggle-description{margin:0;font-size:12px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.color-modal__link-button{border:none;background:none;color:hsl(var(--primary, 221.2 83.2% 53.3%));font-weight:600;font-size:13px;cursor:pointer;padding:4px 8px}.color-modal__add-color{position:relative;display:inline-flex;align-items:center}.color-modal__add-color-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;border:0;padding:0;margin:0}.color-section{display:flex;flex-direction:column;gap:8px}.color-section__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.color-section__title{margin:0;font-weight:600}.color-section__swatches{display:grid;grid-template-columns:repeat(auto-fill, minmax(120px, 1fr));gap:8px}.color-section__empty{margin:0;font-size:12px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.color-modal__swatch{border:1px solid hsl(var(--border, 220 13% 91%));border-radius:8px;padding:8px;background:hsl(var(--card, 0 0% 100%));display:flex;flex-direction:column;gap:6px;text-align:left;cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease}.color-modal__swatch--active{border-color:hsl(var(--foreground, 220.9 39.3% 11%));box-shadow:0 0 0 1px hsl(var(--foreground, 220.9 39.3% 11%)) inset}.color-modal__swatch-preview{width:100%;height:32px;border-radius:6px}.color-modal__swatch-preview--light{border:1px solid hsl(var(--foreground, 220.9 39.3% 11%)/0.1)}.color-modal__swatch-label{font-size:12px;font-weight:600;color:hsl(var(--foreground, 220.9 39.3% 11%))}.color-modal__swatch-value{font-size:11px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.color-modal__input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;opacity:0}.localication-modal__content{width:calc(100vw - 32px);height:calc(100vh - 32px);max-width:1600px;max-height:calc(100vh - 32px);padding:0;display:flex;flex-direction:column}.localication-modal__header{padding:16px 24px;border-bottom:1px solid hsl(var(--border, 220 13% 91%));display:flex;align-items:center;gap:16px}.localication-modal__header-main{flex:1;display:flex;flex-direction:column;gap:4px}.localication-modal__description{margin:0;font-size:13px;color:hsl(var(--muted-foreground, 220 8.9% 46.1%))}.localication-modal__body{flex:1;min-height:0;padding:24px;display:flex;flex-direction:column;gap:16px;overflow:auto}.localication-modal__editor{flex:1;min-height:0;overflow:auto;border:1px solid hsl(var(--border, 220 13% 91%));border-radius:8px;background:hsl(var(--background, 220 14.3% 95.9%))}.localication-modal__json-editor{height:100%;width:100%;display:block;padding:12px;overflow:auto}.modal--scrollable .localication-modal__content{overflow:hidden}.modal--scrollable .localication-modal__body{overflow:auto}.mockable-feature-modal{width:min(520px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.mockable-feature-modal__body{min-height:120px}.product-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-edit-modal__body{display:flex;flex-direction:column;gap:12px}.product-edit-modal__textarea{min-height:90px;padding:8px;resize:vertical}.product-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.product-presets-modal__body{display:flex;flex-direction:column;gap:16px}.product-presets-modal__section-title{margin:0;font-weight:700}.product-presets-modal__muted{margin:6px 0 0;opacity:.7}.product-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.product-presets-modal__card{border:1px solid hsl(var(--border, 220 13% 91%));border-radius:12px;padding:12px;background:hsl(var(--card, 0 0% 100%));display:flex;flex-direction:column;gap:8px}.product-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.product-presets-modal__card-title{margin:0;font-weight:700}.product-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.product-presets-modal__card-list{margin:0;padding-left:18px}.product-presets-modal__card-item{font-size:12px;word-break:break-word}.product-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.benefit-edit-modal{width:min(640px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-edit-modal__body{display:flex;flex-direction:column;gap:12px}.benefit-presets-modal{width:min(960px,100vw - 32px);max-height:90vh;padding:24px;display:flex;flex-direction:column;gap:16px;overflow-y:auto}.benefit-presets-modal__body{display:flex;flex-direction:column;gap:16px}.benefit-presets-modal__section-title{margin:0;font-weight:700}.benefit-presets-modal__muted{margin:6px 0 0;opacity:.7}.benefit-presets-modal__grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));gap:12px;margin-top:12px}.benefit-presets-modal__card{border:1px solid hsl(var(--border, 220 13% 91%));border-radius:12px;padding:12px;background:hsl(var(--card, 0 0% 100%));display:flex;flex-direction:column;gap:8px}.benefit-presets-modal__card-header{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.benefit-presets-modal__card-title{margin:0;font-weight:700}.benefit-presets-modal__card-count{margin:0;opacity:.7;font-size:12px}.benefit-presets-modal__card-list{margin:0;padding-left:18px}.benefit-presets-modal__card-item{font-size:12px;word-break:break-word}.benefit-presets-modal__actions{display:flex;gap:8px;margin-top:8px}.embla{max-width:48rem;margin:auto;--slide-height: 19rem;--slide-spacing: 1rem;--slide-size: 70%}.embla__viewport{overflow:hidden}.embla__container{display:flex;touch-action:pan-y pinch-zoom}.embla__slide{transform:translate3d(0, 0, 0);min-width:0;padding-left:var(--slide-spacing);flex:0 0 100%}.embla__slide__number{box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);border-radius:1.8rem;font-size:4rem;font-weight:600;display:flex;align-items:center;justify-content:center;height:var(--slide-height);user-select:none}.embla__controls{display:grid;grid-template-columns:auto 1fr;justify-content:space-between;gap:1.2rem;margin-top:1.8rem}.embla__buttons{display:grid;grid-template-columns:repeat(2, 1fr);gap:.6rem;align-items:center}.embla__button{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;box-shadow:inset 0 0 0 .2rem var(--detail-medium-contrast);width:3.6rem;height:3.6rem;z-index:1;border-radius:50%;color:var(--text-body);display:flex;align-items:center;justify-content:center}.embla__button:disabled{color:var(--detail-high-contrast)}.embla__button__svg{width:35%;height:35%}.embla__dots{flex-wrap:wrap;margin-right:0;height:50px;margin:0 auto}.embla__dot{-webkit-tap-highlight-color:rgba(var(--text-high-contrast-rgb-value), 0.5);-webkit-appearance:none;appearance:none;background-color:rgba(0,0,0,0);--embla-dot-color: var(--detail-medium-contrast);touch-action:manipulation;display:inline-flex;text-decoration:none;cursor:pointer;border:0;padding:0;margin:0;width:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);height:max(2.6rem,var(--embla-dot-size, 1.4rem) + 1.2rem);display:flex;align-items:center;border-radius:50%}.embla__dot:after{background-color:var(--embla-dot-color);width:var(--embla-dot-size, 1.4rem);height:var(--embla-dot-size, 1.4rem);border-radius:50%;display:flex;align-items:center;content:""}.embla__dot--selected{--embla-dot-color: var(--text-body)}.carousel-provider{height:100%}.embla{height:100%}.embla__viewport{height:100%;display:flex;flex-direction:column}.embla__container{flex:1}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Node, NodeData } from '../types/Node';
|
|
2
|
+
export declare function deleteNodeFromTree(root: Node, target: Node): Node;
|
|
3
|
+
export declare function isNodeRecord(node: Node): node is NodeData;
|
|
4
|
+
export declare function nodeHasChild(parent: NodeData, potentialChild: Node): boolean;
|
|
5
|
+
export declare function findNodeByKey(root: Node, key?: string): Node | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@developer_tribe/react-builder",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"restricted": true,
|
|
@@ -22,7 +22,10 @@
|
|
|
22
22
|
"./native": {
|
|
23
23
|
"types": "./dist/index.native.d.ts",
|
|
24
24
|
"default": "./dist/index.native.cjs.js"
|
|
25
|
-
}
|
|
25
|
+
},
|
|
26
|
+
"./dist/styles.css": "./dist/styles.css",
|
|
27
|
+
"./dist/background.jpg": "./dist/background.jpg",
|
|
28
|
+
"./dist/types/PreviewConfig": "./dist/types/PreviewConfig.d.ts"
|
|
26
29
|
},
|
|
27
30
|
"files": [
|
|
28
31
|
"dist",
|
|
@@ -37,7 +37,6 @@ import type { PaywallBackgroundComponentProps } from './PaywallBackground/Paywal
|
|
|
37
37
|
import type { PaywallCloseButtonComponentProps } from './PaywallCloseButton/PaywallCloseButtonProps.generated';
|
|
38
38
|
import type { PaywallOptionsComponentProps } from './PaywallOptions/PaywallOptionsProps.generated';
|
|
39
39
|
import type { PaywallProviderComponentProps } from './PaywallProvider/PaywallProviderProps.generated';
|
|
40
|
-
import type { PaywallSubscriButtonComponentProps } from './PaywallSubscriButton/PaywallSubscriButtonProps.generated';
|
|
41
40
|
import type { PaywallSubscribeButtonComponentProps } from './PaywallSubscribeButton/PaywallSubscribeButtonProps.generated';
|
|
42
41
|
import type { RadioButtonComponentProps } from './RadioButton/RadioButtonProps.generated';
|
|
43
42
|
import type { TextComponentProps } from './Text/TextProps.generated';
|
|
@@ -66,7 +65,6 @@ import PaywallBackground from './PaywallBackground/PaywallBackground';
|
|
|
66
65
|
import PaywallCloseButton from './PaywallCloseButton/PaywallCloseButton';
|
|
67
66
|
import PaywallOptions from './PaywallOptions/PaywallOptions';
|
|
68
67
|
import PaywallProvider from './PaywallProvider/PaywallProvider';
|
|
69
|
-
import PaywallSubscriButton from './PaywallSubscriButton/PaywallSubscriButton';
|
|
70
68
|
import PaywallSubscribeButton from './PaywallSubscribeButton/PaywallSubscribeButton';
|
|
71
69
|
import RadioButton from './RadioButton/RadioButton';
|
|
72
70
|
import Text from './Text/Text';
|
|
@@ -97,9 +95,6 @@ type BuilderNode =
|
|
|
97
95
|
| (PaywallCloseButtonComponentProps['node'] & { type: 'PaywallCloseButton' })
|
|
98
96
|
| (PaywallOptionsComponentProps['node'] & { type: 'PaywallOptions' })
|
|
99
97
|
| (PaywallProviderComponentProps['node'] & { type: 'PaywallProvider' })
|
|
100
|
-
| (PaywallSubscriButtonComponentProps['node'] & {
|
|
101
|
-
type: 'PaywallSubscriButton';
|
|
102
|
-
})
|
|
103
98
|
| (PaywallSubscribeButtonComponentProps['node'] & {
|
|
104
99
|
type: 'PaywallSubscribeButton';
|
|
105
100
|
})
|
|
@@ -185,8 +180,6 @@ function RenderNode({ node }: { node: Node }) {
|
|
|
185
180
|
return <PaywallOptions node={normalizedNode} />;
|
|
186
181
|
case 'PaywallProvider':
|
|
187
182
|
return <PaywallProvider node={normalizedNode} />;
|
|
188
|
-
case 'PaywallSubscriButton':
|
|
189
|
-
return <PaywallSubscriButton node={normalizedNode} />;
|
|
190
183
|
case 'PaywallSubscribeButton':
|
|
191
184
|
return <PaywallSubscribeButton node={normalizedNode} />;
|
|
192
185
|
case 'RadioButton':
|
|
@@ -29,7 +29,6 @@ export const allcomponentNames = [
|
|
|
29
29
|
'PaywallCloseButton',
|
|
30
30
|
'PaywallOptions',
|
|
31
31
|
'PaywallProvider',
|
|
32
|
-
'PaywallSubscriButton',
|
|
33
32
|
'PaywallSubscribeButton',
|
|
34
33
|
'RadioButton',
|
|
35
34
|
'Text',
|
|
@@ -132,10 +131,6 @@ export type {
|
|
|
132
131
|
PaywallProviderPropsGenerated,
|
|
133
132
|
PaywallProviderComponentProps,
|
|
134
133
|
} from './PaywallProvider/PaywallProviderProps.generated';
|
|
135
|
-
export type {
|
|
136
|
-
PaywallSubscriButtonPropsGenerated,
|
|
137
|
-
PaywallSubscriButtonComponentProps,
|
|
138
|
-
} from './PaywallSubscriButton/PaywallSubscriButtonProps.generated';
|
|
139
134
|
export type {
|
|
140
135
|
PaywallSubscribeButtonPropsGenerated,
|
|
141
136
|
PaywallSubscribeButtonComponentProps,
|