@developer_tribe/react-builder 1.0.1 → 1.0.3
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/AttributesEditor.d.ts +3 -1
- package/dist/DeviceMockFrame.d.ts +2 -1
- package/dist/RenderPage.d.ts +5 -3
- package/dist/attributes-editor/Field.d.ts +17 -0
- package/dist/attributes-editor/FieldInfoTooltip.d.ts +7 -0
- package/dist/attributes-editor/LayoutPreviewPicker.d.ts +12 -0
- package/dist/attributes-editor/SpecialCategorySection.d.ts +20 -0
- package/dist/attributes-editor/types.d.ts +14 -0
- package/dist/background.jpg +0 -0
- package/dist/build-components/BackgroundImage/BackgroundImage.d.ts +5 -0
- package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +44 -0
- package/dist/build-components/Button/Button.d.ts +1 -1
- package/dist/build-components/Button/ButtonProps.generated.d.ts +33 -1
- package/dist/build-components/Carousel/CarouselProps.generated.d.ts +34 -1
- package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +32 -0
- package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +32 -0
- package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +34 -1
- package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +34 -1
- package/dist/build-components/Image/ImageProps.generated.d.ts +32 -3
- package/dist/build-components/Onboard/OnboardProps.generated.d.ts +34 -1
- package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +32 -0
- package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +32 -0
- package/dist/build-components/OnboardDot/OnboardDot.d.ts +1 -1
- package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +29 -0
- package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +11 -5
- package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +32 -3
- package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +31 -3
- package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +32 -5
- package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +11 -5
- package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +11 -5
- package/dist/build-components/Text/TextProps.generated.d.ts +11 -5
- package/dist/build-components/View/ViewProps.generated.d.ts +10 -4
- package/dist/build-components/index.d.ts +2 -1
- package/dist/build-components/patterns.generated.d.ts +6288 -136
- package/dist/components/AttributesEditorPanel.d.ts +3 -4
- package/dist/components/Breadcrumb.d.ts +3 -1
- package/dist/components/Builder.d.ts +2 -1
- package/dist/components/BuilderButton.d.ts +9 -0
- package/dist/components/Checkbox.d.ts +17 -0
- package/dist/components/DeviceButton.d.ts +8 -0
- package/dist/components/DeviceNavigationBar.d.ts +10 -0
- package/dist/components/DeviceStatusBar.d.ts +9 -0
- package/dist/components/EditorHeader.d.ts +3 -8
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/mockOS/components/MockLaunchScreenComponent.d.ts +6 -0
- package/dist/mockOS/components/MockOSRouter.d.ts +8 -0
- package/dist/mockOS/components/PermissionModal.d.ts +9 -0
- package/dist/mockOS/context/MockOSContext.d.ts +36 -0
- package/dist/mockOS/hooks/useMockNavigation.d.ts +3 -0
- package/dist/mockOS/hooks/useMockPermission.d.ts +3 -0
- package/dist/mockOS/index.d.ts +9 -0
- package/dist/mockOS/managers/mockPermissionManager.d.ts +10 -0
- package/dist/mockOS/managers/navigationManager.d.ts +17 -0
- package/dist/modals/AddComponentModal.d.ts +8 -0
- package/dist/modals/ColorModal.d.ts +11 -0
- package/dist/modals/DeviceSelectorModal.d.ts +9 -0
- package/dist/modals/LocalicationModal.d.ts +8 -0
- package/dist/modals/Modal.d.ts +12 -0
- package/dist/modals/index.d.ts +5 -0
- package/dist/pages/ProjectPage.d.ts +3 -3
- package/dist/pages/tabs/BuilderPanel.d.ts +8 -0
- package/dist/pages/tabs/{DebugTab.d.ts → SideTool.d.ts} +2 -2
- package/dist/store.d.ts +7 -3
- package/dist/styles.css +1 -1
- package/dist/types/Project.d.ts +11 -0
- package/dist/utils/analyseNode.d.ts +1 -0
- package/dist/utils/extractTextStyle.d.ts +8 -1
- package/dist/utils/extractViewStyle.d.ts +8 -1
- package/dist/utils/parseColor.d.ts +7 -0
- package/dist/utils/patterns.d.ts +24 -0
- package/package.json +2 -1
- package/scripts/prebuild/utils/createGeneratedProps.js +11 -3
- package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +45 -6
- package/scripts/prebuild/utils/validatePatternJson.js +13 -5
- package/src/AttributesEditor.tsx +493 -310
- package/src/DeviceMockFrame.tsx +21 -37
- package/src/RenderPage.tsx +86 -7
- package/src/assets/images/android.svg +42 -42
- package/src/assets/images/apple.svg +15 -15
- package/src/attributes-editor/Field.tsx +669 -0
- package/src/attributes-editor/FieldInfoTooltip.tsx +49 -0
- package/src/attributes-editor/LayoutPreviewPicker.tsx +199 -0
- package/src/attributes-editor/SpecialCategorySection.tsx +285 -0
- package/src/attributes-editor/types.ts +30 -0
- package/src/build-components/BackgroundImage/BackgroundImage.tsx +87 -0
- package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +60 -0
- package/src/build-components/BackgroundImage/pattern.json +45 -0
- package/src/build-components/Button/Button.tsx +37 -2
- package/src/build-components/Button/ButtonProps.generated.ts +44 -1
- package/src/build-components/Button/pattern.json +31 -2
- package/src/build-components/Carousel/Carousel.tsx +39 -2
- package/src/build-components/Carousel/CarouselProps.generated.ts +46 -1
- package/src/build-components/Carousel/pattern.json +10 -0
- package/src/build-components/CarouselButtons/CarouselButtons.tsx +21 -2
- package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +43 -0
- package/src/build-components/CarouselButtons/pattern.json +22 -0
- package/src/build-components/CarouselDots/CarouselDots.tsx +49 -8
- package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +43 -0
- package/src/build-components/CarouselDots/pattern.json +15 -0
- package/src/build-components/CarouselItem/CarouselItem.tsx +21 -2
- package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +46 -1
- package/src/build-components/CarouselItem/pattern.json +7 -0
- package/src/build-components/CarouselProvider/CarouselProvider.tsx +21 -2
- package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +46 -1
- package/src/build-components/CarouselProvider/pattern.json +7 -0
- package/src/build-components/Image/Image.tsx +33 -2
- package/src/build-components/Image/ImageProps.generated.ts +43 -3
- package/src/build-components/Image/pattern.json +46 -3
- package/src/build-components/Onboard/Onboard.tsx +6 -1
- package/src/build-components/Onboard/OnboardProps.generated.ts +46 -1
- package/src/build-components/Onboard/pattern.json +11 -0
- package/src/build-components/OnboardButton/OnboardButton.tsx +54 -6
- package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +43 -0
- package/src/build-components/OnboardButton/pattern.json +71 -5
- package/src/build-components/OnboardButtons/OnboardButtons.tsx +33 -11
- package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +43 -0
- package/src/build-components/OnboardButtons/pattern.json +70 -4
- package/src/build-components/OnboardDot/OnboardDot.tsx +113 -4
- package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +29 -0
- package/src/build-components/OnboardDot/pattern.json +55 -2
- package/src/build-components/OnboardFooter/OnboardFooter.tsx +20 -4
- package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +11 -5
- package/src/build-components/OnboardFooter/pattern.json +58 -2
- package/src/build-components/OnboardImage/OnboardImage.tsx +49 -5
- package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +43 -3
- package/src/build-components/OnboardImage/pattern.json +21 -0
- package/src/build-components/OnboardItem/OnboardItem.tsx +17 -1
- package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +42 -3
- package/src/build-components/OnboardItem/pattern.json +38 -2
- package/src/build-components/OnboardProvider/OnboardProvider.tsx +52 -18
- package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +44 -5
- package/src/build-components/OnboardProvider/pattern.json +44 -5
- package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +11 -5
- package/src/build-components/OnboardSubtitle/pattern.json +7 -1
- package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +11 -5
- package/src/build-components/OnboardTitle/pattern.json +7 -1
- package/src/build-components/RenderNode.generated.tsx +3 -0
- package/src/build-components/Text/Text.tsx +34 -6
- package/src/build-components/Text/TextProps.generated.ts +11 -5
- package/src/build-components/Text/pattern.json +38 -2
- package/src/build-components/View/View.tsx +33 -6
- package/src/build-components/View/ViewProps.generated.ts +10 -4
- package/src/build-components/View/pattern.json +285 -19
- package/src/build-components/index.ts +5 -0
- package/src/build-components/patterns.generated.ts +6346 -143
- package/src/components/AttributesEditorPanel.tsx +17 -64
- package/src/components/Breadcrumb.tsx +37 -5
- package/src/components/Builder.tsx +311 -108
- package/src/components/BuilderButton.tsx +127 -0
- package/src/components/Checkbox.tsx +81 -0
- package/src/components/DeviceButton.tsx +39 -0
- package/src/components/DeviceNavigationBar.tsx +201 -0
- package/src/components/DeviceStatusBar.tsx +85 -0
- package/src/components/EditorHeader.tsx +26 -74
- package/src/index.ts +2 -2
- package/src/mockOS/components/MockLaunchScreenComponent.tsx +43 -0
- package/src/mockOS/components/MockOSRouter.tsx +123 -0
- package/src/mockOS/components/PermissionModal.tsx +270 -0
- package/src/mockOS/context/MockOSContext.tsx +179 -0
- package/src/mockOS/hooks/useMockNavigation.ts +11 -0
- package/src/mockOS/hooks/useMockPermission.ts +11 -0
- package/src/mockOS/index.ts +26 -0
- package/src/mockOS/managers/mockPermissionManager.ts +54 -0
- package/src/mockOS/managers/navigationManager.ts +91 -0
- package/src/modals/AddComponentModal.tsx +313 -0
- package/src/modals/ColorModal.tsx +425 -0
- package/src/modals/DeviceSelectorModal.tsx +57 -0
- package/src/modals/LocalicationModal.tsx +54 -0
- package/src/modals/Modal.tsx +57 -0
- package/src/modals/index.ts +5 -0
- package/src/pages/ProjectPage.tsx +307 -71
- package/src/pages/tabs/{BuilderTab.tsx → BuilderPanel.tsx} +13 -9
- package/src/pages/tabs/SideTool.tsx +259 -0
- package/src/size-matters/index.ts +27 -5
- package/src/store.ts +13 -5
- package/src/styles/base/_global.scss +404 -0
- package/src/styles/components/_attributes-editor.scss +273 -0
- package/src/styles/components/_editor-shell.scss +212 -0
- package/src/styles/components/_mockos-router.scss +140 -0
- package/src/styles/components/_ui-components.scss +183 -0
- package/src/styles/foundation/_colors.scss +8 -0
- package/src/styles/{_mixins.scss → foundation/_mixins.scss} +5 -4
- package/src/styles/{_reset.scss → foundation/_reset.scss} +5 -2
- package/src/styles/foundation/_sizes.scss +37 -0
- package/src/styles/foundation/_typography.scss +4 -0
- package/src/styles/foundation/_variables.scss +3 -0
- package/src/styles/index.scss +22 -136
- package/src/styles/layout/_builder.scss +124 -0
- package/src/styles/layout/_pages.scss +3 -0
- package/src/styles/modals/_add-component.scss +122 -0
- package/src/styles/modals/_color-modal.scss +159 -0
- package/src/styles/modals/_device-selector.scss +18 -0
- package/src/styles/modals/_localication-modal.scss +68 -0
- package/src/styles/modals/_modal-shell.scss +46 -0
- package/src/styles/utilities/_carousel.scss +125 -0
- package/src/types/Project.ts +14 -0
- package/src/types/images.d.ts +8 -0
- package/src/utils/analyseNode.ts +98 -0
- package/src/utils/extractTextStyle.ts +28 -10
- package/src/utils/extractViewStyle.ts +77 -9
- package/src/utils/parseColor.ts +43 -0
- package/src/utils/patterns.ts +33 -0
- package/dist/build-components/OnboardDot/OnboardExpandingDotProps.generated.d.ts +0 -10
- package/dist/pages/tabs/BuilderTab.d.ts +0 -9
- package/dist/pages/tabs/PreviewTab.d.ts +0 -3
- package/src/build-components/OnboardDot/OnboardExpandingDotProps.generated.ts +0 -20
- package/src/pages/tabs/DebugTab.tsx +0 -23
- package/src/pages/tabs/PreviewTab.tsx +0 -194
- package/src/styles/_variables.scss +0 -27
- package/src/styles/builder.scss +0 -60
- package/src/styles/components.scss +0 -88
- package/src/styles/editor.scss +0 -174
- package/src/styles/global.scss +0 -200
- package/src/styles/pages.scss +0 -2
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
@use '../foundation/colors' as colors;
|
|
2
|
+
@use '../foundation/sizes' as sizes;
|
|
3
|
+
@use '../foundation/mixins' as *;
|
|
4
|
+
|
|
5
|
+
.editor-tabs {
|
|
6
|
+
display: flex;
|
|
7
|
+
gap: 8px;
|
|
8
|
+
border-bottom: 1px solid #e5e7eb;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.editor-tab {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
border: 1px solid transparent;
|
|
14
|
+
border-top-left-radius: 4px;
|
|
15
|
+
border-top-right-radius: 4px;
|
|
16
|
+
color: colors.$textColor;
|
|
17
|
+
padding: 8px 12px;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.editor-tab__label {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
line-height: 1.2;
|
|
28
|
+
font-size: clamp(0.85rem, 0.9rem + 0.2vw, 1rem);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.editor-tab--active {
|
|
32
|
+
background: #fff;
|
|
33
|
+
border-color: #e5e7eb #e5e7eb #fff #e5e7eb;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.editor-panels {
|
|
37
|
+
padding: 12px;
|
|
38
|
+
&.editor-panels-debug {
|
|
39
|
+
padding: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.jer-editor-container {
|
|
43
|
+
padding-left: 0 !important;
|
|
44
|
+
padding-right: 0 !important;
|
|
45
|
+
}
|
|
46
|
+
.editor-panel {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.editor-panel--active {
|
|
51
|
+
display: block;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Editor utility header */
|
|
55
|
+
.editor-header {
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 12px;
|
|
59
|
+
padding: 0 sizes.$spaceComfy;
|
|
60
|
+
height: 60px;
|
|
61
|
+
background: colors.$canvasColor;
|
|
62
|
+
border-bottom: 1px solid colors.$borderColor;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.editor-header__title {
|
|
66
|
+
color: colors.$textColor;
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.editor-header__devices {
|
|
71
|
+
@include thin-scrollbar;
|
|
72
|
+
display: flex;
|
|
73
|
+
flex-direction: row;
|
|
74
|
+
align-items: stretch;
|
|
75
|
+
gap: 8px;
|
|
76
|
+
overflow: auto;
|
|
77
|
+
height: 60px;
|
|
78
|
+
padding: sizes.$spaceTight;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.editor-device-button {
|
|
82
|
+
position: relative;
|
|
83
|
+
min-width: 160px;
|
|
84
|
+
height: 100%;
|
|
85
|
+
border: 1px solid colors.$borderColor;
|
|
86
|
+
border-radius: 6px;
|
|
87
|
+
background: colors.$surfaceColor;
|
|
88
|
+
color: colors.$textColor;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
font-size: 12px;
|
|
91
|
+
&.editor-device-button--selected {
|
|
92
|
+
border-color: #000;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.editor-device-button img {
|
|
97
|
+
position: absolute;
|
|
98
|
+
bottom: 4px;
|
|
99
|
+
right: 4px;
|
|
100
|
+
width: 16px;
|
|
101
|
+
height: 16px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.editor-header__actions {
|
|
105
|
+
margin-left: auto; /* push actions to the far right */
|
|
106
|
+
display: flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
gap: 8px;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.editor-button {
|
|
112
|
+
display: inline-flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
height: 36px;
|
|
116
|
+
min-width: 120px; /* visible even without content */
|
|
117
|
+
padding: 0 12px;
|
|
118
|
+
border: 1px solid colors.$borderColor;
|
|
119
|
+
border-radius: 6px;
|
|
120
|
+
background: colors.$surfaceColor;
|
|
121
|
+
color: colors.$textColor;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.debug-button {
|
|
126
|
+
min-width: auto;
|
|
127
|
+
height: auto;
|
|
128
|
+
padding: 4px 12px;
|
|
129
|
+
font-size: 12px;
|
|
130
|
+
line-height: 1.2;
|
|
131
|
+
border-radius: 999px;
|
|
132
|
+
background: rgba(255, 255, 255, 0.95);
|
|
133
|
+
border-color: rgba(15, 23, 42, 0.15);
|
|
134
|
+
box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.debug-button:hover {
|
|
138
|
+
background: #fff;
|
|
139
|
+
border-color: rgba(15, 23, 42, 0.3);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.editor-button:disabled {
|
|
143
|
+
opacity: 0.6;
|
|
144
|
+
cursor: default;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Specific hooks for save buttons (kept empty for now) */
|
|
148
|
+
.editor-save-button,
|
|
149
|
+
.editor-save-previewconfig-button {
|
|
150
|
+
color: #000;
|
|
151
|
+
font-weight: 600;
|
|
152
|
+
font-size: 12px;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/* Builder add button */
|
|
156
|
+
.builder__add-button {
|
|
157
|
+
width: 100%;
|
|
158
|
+
margin-top: 12px;
|
|
159
|
+
min-height: 52px;
|
|
160
|
+
border-style: dashed;
|
|
161
|
+
border-color: #cbd5f5;
|
|
162
|
+
background: #f8fafc;
|
|
163
|
+
color: #0f172a;
|
|
164
|
+
font-weight: 600;
|
|
165
|
+
gap: 10px;
|
|
166
|
+
transition:
|
|
167
|
+
border-color 0.2s ease,
|
|
168
|
+
background 0.2s ease,
|
|
169
|
+
color 0.2s ease;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.builder__add-button-icon {
|
|
173
|
+
display: inline-flex;
|
|
174
|
+
width: 28px;
|
|
175
|
+
height: 28px;
|
|
176
|
+
border-radius: 999px;
|
|
177
|
+
align-items: center;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
background: #2563eb;
|
|
180
|
+
color: #fff;
|
|
181
|
+
font-size: 18px;
|
|
182
|
+
line-height: 1;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.builder__add-button:hover {
|
|
186
|
+
border-color: #94a3b8;
|
|
187
|
+
background: #eef2ff;
|
|
188
|
+
color: #111827;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.side-tool {
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
gap: sizes.$spaceTight;
|
|
195
|
+
padding: sizes.$spaceTight;
|
|
196
|
+
border-radius: 4px;
|
|
197
|
+
border: 1px solid colors.$borderColor;
|
|
198
|
+
font-size: 11px;
|
|
199
|
+
max-width: 220px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.side-tool select {
|
|
203
|
+
width: 100%;
|
|
204
|
+
font-size: 11px;
|
|
205
|
+
padding: 4px 6px;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.side-tool .debug-button {
|
|
209
|
+
border-radius: 0;
|
|
210
|
+
width: 100%;
|
|
211
|
+
justify-content: center;
|
|
212
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
.mockos-router {
|
|
2
|
+
width: 100%;
|
|
3
|
+
height: 100%;
|
|
4
|
+
position: relative;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// Screen Components
|
|
8
|
+
.mockos-screen {
|
|
9
|
+
width: 100%;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.mockos-screen--center {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mockos-screen--launchscreen {
|
|
21
|
+
background-color: #000000;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mockos-screen--home {
|
|
25
|
+
padding: 20px;
|
|
26
|
+
background-color: #f5f5f5;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.mockos-screen--onboard {
|
|
30
|
+
padding: 20px;
|
|
31
|
+
background-color: #ffffff;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.mockos-screen--subscription {
|
|
35
|
+
padding: 20px;
|
|
36
|
+
background-color: #ffffff;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Screen Content
|
|
40
|
+
.mockos-screen__title {
|
|
41
|
+
font-size: 32px;
|
|
42
|
+
font-weight: bold;
|
|
43
|
+
color: #000;
|
|
44
|
+
margin-bottom: 16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mockos-screen__subtitle {
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
color: #666;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mockos-screen__heading {
|
|
53
|
+
font-size: 24px;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
margin-bottom: 20px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mockos-screen__text {
|
|
59
|
+
font-size: 16px;
|
|
60
|
+
color: #333;
|
|
61
|
+
margin-bottom: 12px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.mockos-screen__plan {
|
|
65
|
+
padding: 16px;
|
|
66
|
+
border-radius: 8px;
|
|
67
|
+
text-align: center;
|
|
68
|
+
margin-bottom: 12px;
|
|
69
|
+
|
|
70
|
+
&--premium {
|
|
71
|
+
background-color: #007aff;
|
|
72
|
+
color: #fff;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--basic {
|
|
76
|
+
background-color: #e5e5e5;
|
|
77
|
+
color: #333;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// Launcher
|
|
82
|
+
.mockos-launcher {
|
|
83
|
+
width: 100%;
|
|
84
|
+
height: 100%;
|
|
85
|
+
padding: 40px 20px;
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.mockos-launcher__grid {
|
|
91
|
+
display: grid;
|
|
92
|
+
grid-template-columns: repeat(4, 1fr);
|
|
93
|
+
gap: 20px;
|
|
94
|
+
padding: 20px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.mockos-launcher__app {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 8px;
|
|
102
|
+
background: transparent;
|
|
103
|
+
border: none;
|
|
104
|
+
cursor: pointer;
|
|
105
|
+
padding: 8px;
|
|
106
|
+
border-radius: 12px;
|
|
107
|
+
transition: background-color 0.2s;
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:active {
|
|
114
|
+
transform: scale(0.95);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.mockos-launcher__app-icon {
|
|
119
|
+
width: 60px;
|
|
120
|
+
height: 60px;
|
|
121
|
+
border-radius: 13px;
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
|
|
124
|
+
|
|
125
|
+
svg {
|
|
126
|
+
width: 100%;
|
|
127
|
+
height: 100%;
|
|
128
|
+
display: block;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.mockos-launcher__app-name {
|
|
133
|
+
font-size: 12px;
|
|
134
|
+
color: #ffffff;
|
|
135
|
+
text-align: center;
|
|
136
|
+
max-width: 70px;
|
|
137
|
+
overflow: hidden;
|
|
138
|
+
text-overflow: ellipsis;
|
|
139
|
+
white-space: nowrap;
|
|
140
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@use '../foundation/colors' as colors;
|
|
2
|
+
@use '../foundation/sizes' as sizes;
|
|
3
|
+
@use '../foundation/mixins' as *;
|
|
4
|
+
|
|
5
|
+
.editor-controls {
|
|
6
|
+
display: grid;
|
|
7
|
+
grid-template-columns: auto 1fr;
|
|
8
|
+
gap: sizes.$spaceCozy;
|
|
9
|
+
padding: sizes.$spaceComfy;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.editor-section {
|
|
13
|
+
background: #fff;
|
|
14
|
+
border: 1px solid colors.$borderColor;
|
|
15
|
+
border-radius: sizes.$radiusRounded;
|
|
16
|
+
padding: sizes.$spaceComfy;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.form-row {
|
|
20
|
+
display: grid;
|
|
21
|
+
grid-template-columns: 160px 1fr;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: sizes.$spaceCozy;
|
|
24
|
+
margin-bottom: sizes.$spaceCozy;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.form-actions {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: sizes.$spaceCozy;
|
|
30
|
+
margin-top: sizes.$spaceComfy;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.btn {
|
|
34
|
+
padding: 8px 12px;
|
|
35
|
+
border-radius: 8px;
|
|
36
|
+
border: 1px solid colors.$borderColor;
|
|
37
|
+
background: #fff;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
transition:
|
|
40
|
+
background 0.2s ease,
|
|
41
|
+
box-shadow 0.2s ease;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
background: #f9fafb;
|
|
45
|
+
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Inputs */
|
|
50
|
+
.input {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
height: 32px;
|
|
54
|
+
padding: 0 8px;
|
|
55
|
+
border: 1px solid colors.$borderColor;
|
|
56
|
+
border-radius: sizes.$radiusRounded;
|
|
57
|
+
background: #fff;
|
|
58
|
+
color: colors.$textColor;
|
|
59
|
+
font: inherit;
|
|
60
|
+
outline: none;
|
|
61
|
+
transition:
|
|
62
|
+
border-color 0.15s ease,
|
|
63
|
+
box-shadow 0.15s ease;
|
|
64
|
+
|
|
65
|
+
&:focus {
|
|
66
|
+
border-color: darken(colors.$borderColor, 8%);
|
|
67
|
+
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.input--color {
|
|
72
|
+
padding: 0;
|
|
73
|
+
width: 40px;
|
|
74
|
+
height: 28px;
|
|
75
|
+
border-radius: 6px;
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
|
|
78
|
+
&::-webkit-color-swatch-wrapper {
|
|
79
|
+
padding: 0;
|
|
80
|
+
}
|
|
81
|
+
&::-webkit-color-swatch {
|
|
82
|
+
border: none;
|
|
83
|
+
border-radius: 4px;
|
|
84
|
+
}
|
|
85
|
+
&::-moz-color-swatch {
|
|
86
|
+
border: none;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Checkbox */
|
|
92
|
+
.builder-checkbox {
|
|
93
|
+
display: inline-flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
gap: 4px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.builder-checkbox__label {
|
|
99
|
+
display: inline-flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 10px;
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
color: colors.$textColor;
|
|
104
|
+
font-weight: 600;
|
|
105
|
+
position: relative;
|
|
106
|
+
user-select: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.builder-checkbox__native {
|
|
110
|
+
position: absolute;
|
|
111
|
+
opacity: 0;
|
|
112
|
+
pointer-events: none;
|
|
113
|
+
width: 1px;
|
|
114
|
+
height: 1px;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.builder-checkbox__control {
|
|
118
|
+
width: 20px;
|
|
119
|
+
height: 20px;
|
|
120
|
+
border-radius: 6px;
|
|
121
|
+
border: 2px solid colors.$borderColor;
|
|
122
|
+
background: #fff;
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
transition:
|
|
127
|
+
background 0.2s ease,
|
|
128
|
+
border-color 0.2s ease,
|
|
129
|
+
box-shadow 0.2s ease,
|
|
130
|
+
transform 0.2s ease;
|
|
131
|
+
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
|
|
132
|
+
|
|
133
|
+
&::after {
|
|
134
|
+
content: '';
|
|
135
|
+
width: 6px;
|
|
136
|
+
height: 12px;
|
|
137
|
+
border-right: 2px solid transparent;
|
|
138
|
+
border-bottom: 2px solid transparent;
|
|
139
|
+
transform: rotate(45deg) scale(0);
|
|
140
|
+
transform-origin: center;
|
|
141
|
+
transition:
|
|
142
|
+
transform 0.2s ease,
|
|
143
|
+
border-color 0.2s ease;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.builder-checkbox__label:hover .builder-checkbox__control {
|
|
148
|
+
transform: translateY(-1px);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.builder-checkbox__native:focus-visible + .builder-checkbox__control {
|
|
152
|
+
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.builder-checkbox__native:checked + .builder-checkbox__control {
|
|
156
|
+
background: linear-gradient(135deg, #1f2937, #4f46e5);
|
|
157
|
+
border-color: transparent;
|
|
158
|
+
box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.builder-checkbox__native:checked + .builder-checkbox__control::after {
|
|
162
|
+
border-color: #fff;
|
|
163
|
+
transform: rotate(45deg) scale(1);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.builder-checkbox__text {
|
|
167
|
+
font-size: 14px;
|
|
168
|
+
line-height: 1.4;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.builder-checkbox__helper {
|
|
172
|
+
font-size: 12px;
|
|
173
|
+
color: #6b7280;
|
|
174
|
+
margin-left: 30px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.builder-checkbox--disabled {
|
|
178
|
+
opacity: 0.6;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.builder-checkbox--disabled .builder-checkbox__label {
|
|
182
|
+
cursor: not-allowed;
|
|
183
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@use './
|
|
1
|
+
@use './colors' as colors;
|
|
2
|
+
@use './sizes' as sizes;
|
|
2
3
|
@mixin center-content {
|
|
3
4
|
display: flex;
|
|
4
5
|
align-items: center;
|
|
@@ -6,9 +7,9 @@
|
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
@mixin card {
|
|
9
|
-
background:
|
|
10
|
-
border: 1px solid
|
|
11
|
-
border-radius:
|
|
10
|
+
background: colors.$surfaceColor;
|
|
11
|
+
border: 1px solid colors.$borderColor;
|
|
12
|
+
border-radius: sizes.$radiusSoft;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
@mixin thin-scrollbar {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use './colors' as colors;
|
|
2
|
+
@use './typography' as type;
|
|
3
|
+
|
|
1
4
|
*,
|
|
2
5
|
*::before,
|
|
3
6
|
*::after {
|
|
@@ -11,8 +14,8 @@ body,
|
|
|
11
14
|
padding: 0;
|
|
12
15
|
}
|
|
13
16
|
body {
|
|
14
|
-
background:
|
|
15
|
-
|
|
17
|
+
background: colors.$surfaceColor;
|
|
18
|
+
font-family: type.$bodyFont;
|
|
16
19
|
-webkit-font-smoothing: antialiased;
|
|
17
20
|
-moz-osx-font-smoothing: grayscale;
|
|
18
21
|
overflow: hidden; /* Prevent page scroll; panels will handle their own scroll */
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* Library sizing scale (spacing, radii, shadow) stays centralized. */
|
|
2
|
+
$spaceTight: 4px;
|
|
3
|
+
$spaceSnug: 6px;
|
|
4
|
+
$spaceCompact: 8px;
|
|
5
|
+
$spaceInset: 10px;
|
|
6
|
+
$spaceCozy: 12px;
|
|
7
|
+
$spaceComfy: 16px;
|
|
8
|
+
$spaceRelaxed: 20px;
|
|
9
|
+
$spaceRoomy: 24px;
|
|
10
|
+
|
|
11
|
+
$radiusSoft: 4px;
|
|
12
|
+
$radiusMid: 6px;
|
|
13
|
+
$radiusRounded: 8px;
|
|
14
|
+
$radiusPill: 12px;
|
|
15
|
+
|
|
16
|
+
$borderWidthHairline: 1px;
|
|
17
|
+
$outlineWidthFocus: 2px;
|
|
18
|
+
|
|
19
|
+
$cardShadow: 0 10px 30px rgba(0, 0, 0, 0.12);
|
|
20
|
+
$shadowTooltip: 0 6px 16px rgba(0, 0, 0, 0.2);
|
|
21
|
+
|
|
22
|
+
$fontSizeXs: 11px;
|
|
23
|
+
$fontSizeSm: 12px;
|
|
24
|
+
$fontSizeSmPlus: 13px;
|
|
25
|
+
$fontSizeBase: 14px;
|
|
26
|
+
$fontSizeLg: 18px;
|
|
27
|
+
|
|
28
|
+
$letterSpacingTight: 0.5px;
|
|
29
|
+
|
|
30
|
+
$controlHeightMd: 36px;
|
|
31
|
+
$buttonHeight: 40px;
|
|
32
|
+
$dimensionSelectMinWidth: 60px;
|
|
33
|
+
$dimensionSelectWidth: 72px;
|
|
34
|
+
$dimensionSizeGridMin: 140px;
|
|
35
|
+
$dimensionSizeGridMax: 220px;
|
|
36
|
+
|
|
37
|
+
$zIndexRaised: 20;
|