@crediblemark/build 0.24.1 → 0.24.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.
@@ -6147,7 +6147,7 @@ var Layout = ({ children }) => {
6147
6147
  ]
6148
6148
  }
6149
6149
  ),
6150
- /* @__PURE__ */ jsx36(Canvas, {}),
6150
+ /* @__PURE__ */ jsx36("div", { className: getLayoutClassName("editor"), children: /* @__PURE__ */ jsx36(Canvas, {}) }),
6151
6151
  !hasDesktopFieldsPlugin && /* @__PURE__ */ jsx36(
6152
6152
  Sidebar,
6153
6153
  {
package/dist/index.css CHANGED
@@ -146,20 +146,35 @@
146
146
 
147
147
  /* bundle/index.css */
148
148
  .CredBuild {
149
- --cb-bg-base: #020617;
150
- --cb-bg-surface: #0f172a;
151
- --cb-bg-panel: #1e293b;
152
- --cb-gold: #fbbf24;
153
- --cb-gold-glow: rgba(251, 191, 36, 0.15);
154
- --cb-gold-faint: rgba(251, 191, 36, 0.05);
155
- --cb-silver: #f8fafc;
156
- --cb-silver-muted: #cbd5e1;
157
- --cb-border: rgba(248, 250, 252, 0.1);
158
149
  --credbuild-font-family: "Inter", sans-serif;
150
+ --cb-radius-m: 5px;
151
+ }
152
+ .CredBuild[data-theme=light] {
153
+ --cb-bg-base: #f8fafc;
154
+ --cb-bg-surface: #ffffff;
155
+ --cb-bg-panel: #f1f5f9;
156
+ --cb-gold: #d97706;
157
+ --cb-gold-glow: rgba(217, 119, 6, 0.1);
158
+ --cb-gold-faint: rgba(217, 119, 6, 0.05);
159
+ --cb-silver: #0f172a;
160
+ --cb-silver-muted: #64748b;
161
+ --cb-border: #e2e8f0;
162
+ }
163
+ .CredBuild[data-theme=dark] {
164
+ --cb-bg-base: #191919;
165
+ --cb-bg-surface: #202020;
166
+ --cb-bg-panel: #262626;
167
+ --cb-gold: #ffffff;
168
+ --cb-gold-glow: rgba(255, 255, 255, 0.1);
169
+ --cb-gold-faint: rgba(255, 255, 255, 0.05);
170
+ --cb-silver: #ffffff;
171
+ --cb-silver-muted: #a1a1aa;
172
+ --cb-border: #2f2f2f;
159
173
  }
160
174
  .CredBuild {
161
175
  background-color: var(--cb-bg-base) !important;
162
176
  color: var(--cb-silver) !important;
177
+ font-family: var(--credbuild-font-family) !important;
163
178
  }
164
179
  .CredBuildHeader {
165
180
  background: var(--cb-bg-base) !important;
@@ -167,8 +182,8 @@
167
182
  height: 48px !important;
168
183
  }
169
184
  .CredBuild svg {
170
- color: var(--cb-gold) !important;
171
- stroke: var(--cb-gold) !important;
185
+ color: currentColor !important;
186
+ stroke: currentColor !important;
172
187
  }
173
188
  .CredBuild h1,
174
189
  .CredBuild h2,
@@ -196,9 +211,6 @@
196
211
  .CredBuild button {
197
212
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
198
213
  }
199
- .CredBuild button:hover {
200
- filter: brightness(1.2);
201
- }
202
214
  [class*=Layout-left],
203
215
  [class*=Layout-right],
204
216
  [class*=Layout-header],
@@ -233,10 +245,11 @@
233
245
  background-color: var(--cb-bg-surface) !important;
234
246
  color: var(--cb-silver) !important;
235
247
  border: 1px solid var(--cb-border) !important;
248
+ padding: 4px 8px !important;
236
249
  }
237
250
  [class*=DrawerItem-draggable]:hover {
238
251
  border-color: var(--cb-gold) !important;
239
- background-color: var(--cb-gold-glow) !important;
252
+ background-color: var(--cb-gold-faint) !important;
240
253
  }
241
254
  [class*=DrawerItem-name] {
242
255
  color: var(--cb-silver) !important;
@@ -244,19 +257,26 @@
244
257
  }
245
258
  [class*=DrawerItem-icon] svg,
246
259
  [class*=DrawerItem-draggable] svg {
247
- color: var(--cb-gold) !important;
248
- stroke: var(--cb-gold) !important;
260
+ color: var(--cb-silver-muted) !important;
261
+ stroke: var(--cb-silver-muted) !important;
262
+ opacity: 0.7 !important;
263
+ }
264
+ [class*=DrawerItem-draggable]:hover svg {
265
+ color: var(--cb-silver) !important;
266
+ stroke: var(--cb-silver) !important;
249
267
  opacity: 1 !important;
250
268
  }
251
269
  [class*=ComponentList-title] {
252
- background-color: var(--cb-bg-panel) !important;
253
- color: var(--cb-gold) !important;
270
+ background-color: transparent !important;
271
+ color: var(--cb-silver-muted) !important;
254
272
  border-radius: 0 !important;
255
273
  margin-bottom: 2px !important;
256
- font-weight: 700 !important;
274
+ font-weight: 600 !important;
257
275
  letter-spacing: 0.05em !important;
258
276
  text-transform: uppercase !important;
259
277
  opacity: 1 !important;
278
+ padding: 8px 10px !important;
279
+ border-bottom: 1px solid var(--cb-border) !important;
260
280
  }
261
281
  [class*=ComponentList-title]:hover {
262
282
  background-color: var(--cb-gold-faint) !important;
@@ -267,10 +287,11 @@
267
287
  [class*=ExternalInput-input],
268
288
  [class*=Select-select] {
269
289
  background-color: var(--cb-bg-base) !important;
290
+ background: var(--cb-bg-base) !important;
270
291
  border: 1px solid var(--cb-border) !important;
271
292
  border-radius: var(--cb-radius-m) !important;
272
293
  color: var(--cb-silver) !important;
273
- padding: 8px 12px !important;
294
+ padding: 6px 10px !important;
274
295
  font-size: 12px !important;
275
296
  width: 100% !important;
276
297
  transition: all 0.2s ease !important;
@@ -290,8 +311,8 @@
290
311
  font-weight: 600 !important;
291
312
  text-transform: uppercase !important;
292
313
  letter-spacing: 0.05em !important;
293
- margin-top: 12px !important;
294
- margin-bottom: 8px !important;
314
+ margin-top: 6px !important;
315
+ margin-bottom: 4px !important;
295
316
  }
296
317
  [class*=SidebarSection] {
297
318
  border-bottom: 1px solid var(--cb-border) !important;
@@ -317,30 +338,8 @@
317
338
  border: 1px solid var(--cb-border) !important;
318
339
  border-radius: var(--cb-radius-m) !important;
319
340
  color: var(--cb-silver) !important;
320
- padding: 8px !important;
321
- margin-bottom: 4px !important;
322
- }
323
- .CredBuild [class*=Layout-right] div {
324
- background-image: none !important;
325
- }
326
- [class*=CredBuildHeader] {
327
- background-color: var(--cb-bg-base) !important;
328
- background: var(--cb-bg-base) !important;
329
- border-bottom: 1px solid var(--cb-border) !important;
330
- }
331
- [class*=Header-path],
332
- [class*=Header-title],
333
- [class*=Header-inner] * {
334
- color: var(--cb-gold) !important;
335
- font-weight: 600 !important;
336
- }
337
- [class*=Header] div,
338
- [class*=Header] button,
339
- [class*=Header] span {
340
- background-color: transparent !important;
341
- background: transparent !important;
342
- border-color: transparent !important;
343
- box-shadow: none !important;
341
+ padding: 6px !important;
342
+ margin-bottom: 3px !important;
344
343
  }
345
344
  [class*=Button--secondary] {
346
345
  background-color: var(--cb-bg-surface) !important;
@@ -370,66 +369,13 @@
370
369
  box-shadow: 0 0 15px var(--cb-gold-glow) !important;
371
370
  transform: translateY(-1px);
372
371
  }
373
- [class*=Header] svg,
374
- [class*=Header] svg * {
375
- color: var(--cb-gold) !important;
376
- stroke: var(--cb-gold) !important;
377
- fill: none !important;
378
- }
379
- [class*=Header-tools] > div,
380
- [class*=Header-rightActions] > div {
381
- background: transparent !important;
382
- }
383
- [class*=Drawer] input,
384
- [class*=ComponentList] input,
385
- [class*=Search] input {
386
- background-color: var(--cb-bg-base) !important;
387
- color: var(--cb-silver) !important;
388
- border: 1px solid var(--cb-border) !important;
389
- border-radius: var(--cb-radius-m) !important;
390
- padding: 10px 12px !important;
391
- font-size: 13px !important;
392
- transition: all 0.2s ease !important;
393
- }
394
- [class*=Drawer] input:focus {
395
- border-color: var(--cb-gold) !important;
396
- box-shadow: 0 0 10px var(--cb-gold-glow) !important;
397
- outline: none !important;
398
- }
399
- [class*=ComponentList-title] {
400
- color: var(--cb-gold) !important;
401
- text-transform: uppercase !important;
402
- font-weight: 700 !important;
403
- letter-spacing: 0.07em !important;
404
- opacity: 1 !important;
405
- padding: 12px !important;
406
- }
407
- [class*=ComponentList-title]:hover {
408
- background-color: var(--cb-gold-glow) !important;
409
- color: var(--cb-gold) !important;
410
- }
411
- [class*=ComponentList-titleIcon] svg {
412
- color: var(--cb-gold) !important;
413
- }
414
- [class*=DrawerItem] {
415
- margin-top: 0 !important;
416
- margin-bottom: 0 !important;
417
- border: none !important;
418
- border-bottom: none !important;
419
- }
420
- [class*=DrawerItem-name],
421
- [class*=DrawerItem] span,
422
- [class*=DrawerItem] div {
423
- background-color: transparent !important;
424
- background: transparent !important;
425
- }
426
- :root {
372
+ .CredBuild {
427
373
  --credbuild-color-azure-05: var(--cb-gold);
428
374
  --credbuild-color-azure-06: var(--cb-gold);
429
375
  --credbuild-color-azure-07: var(--cb-gold);
430
376
  --credbuild-color-azure-10: var(--cb-gold-glow);
431
377
  --credbuild-color-azure-11: var(--cb-gold-glow);
432
- --credbuild-color-white: var(--cb-silver);
378
+ --credbuild-color-white: var(--cb-bg-surface);
433
379
  --credbuild-color-grey-11: var(--cb-bg-surface);
434
380
  --credbuild-color-grey-10: var(--cb-border);
435
381
  --credbuild-color-grey-09: var(--cb-bg-base);
package/dist/index.js CHANGED
@@ -14872,7 +14872,7 @@ var Layout = ({ children }) => {
14872
14872
  ]
14873
14873
  }
14874
14874
  ),
14875
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}),
14875
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: getLayoutClassName("editor"), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}) }),
14876
14876
  !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14877
14877
  Sidebar,
14878
14878
  {
package/dist/index.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  registerOverlayPortal,
13
13
  useCredBuild,
14
14
  useGetCredBuild
15
- } from "./chunk-5H2KI7SK.mjs";
15
+ } from "./chunk-XUV5DF24.mjs";
16
16
  import "./chunk-FC3ZRBT2.mjs";
17
17
  import {
18
18
  setDeep
@@ -14872,7 +14872,7 @@ var Layout = ({ children }) => {
14872
14872
  ]
14873
14873
  }
14874
14874
  ),
14875
- /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}),
14875
+ /* @__PURE__ */ (0, import_jsx_runtime95.jsx)("div", { className: getLayoutClassName("editor"), children: /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(Canvas, {}) }),
14876
14876
  !hasDesktopFieldsPlugin && /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
14877
14877
  Sidebar,
14878
14878
  {
@@ -12,7 +12,7 @@ import {
12
12
  registerOverlayPortal,
13
13
  useCredBuild,
14
14
  useGetCredBuild
15
- } from "./chunk-5H2KI7SK.mjs";
15
+ } from "./chunk-XUV5DF24.mjs";
16
16
  import "./chunk-FC3ZRBT2.mjs";
17
17
  import {
18
18
  setDeep
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crediblemark/build",
3
- "version": "0.24.1",
3
+ "version": "0.24.3",
4
4
  "description": "The open-source visual editor for React",
5
5
  "author": "Rasyiqi Crediblemark",
6
6
  "repository": {