datocms-react-ui 4.0.0-next.7 → 4.0.0-next.8

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.
Files changed (37) hide show
  1. package/dist/FieldTypeAvatar.d.ts +2 -0
  2. package/dist/FieldTypeAvatar.js +2 -0
  3. package/dist/FieldTypeName.d.ts +2 -0
  4. package/dist/FieldTypeName.js +2 -0
  5. package/dist/styles.css +42 -34
  6. package/dist/ui-public/icons/index.js +285 -278
  7. package/dist/ui-public/icons/lucide/braces.js +22 -0
  8. package/dist/ui-public/icons/lucide/hash.js +47 -0
  9. package/dist/ui-public/icons/lucide/letter-text.js +28 -0
  10. package/dist/ui-public/icons/lucide/rows-3.js +32 -0
  11. package/dist/ui-public/icons/lucide/toggle-right.js +32 -0
  12. package/dist/ui-public/locales/en.js +31 -0
  13. package/dist/ui-public/src/UiTextKey.d.ts +1 -1
  14. package/dist/ui-public/src/content/FieldTypeAvatar.d.ts +22 -0
  15. package/dist/ui-public/src/content/FieldTypeAvatar.js +35 -0
  16. package/dist/ui-public/src/content/FieldTypeName.d.ts +19 -0
  17. package/dist/ui-public/src/content/FieldTypeName.js +25 -0
  18. package/dist/ui-public/src/content/IconAvatar.d.ts +2 -1
  19. package/dist/ui-public/src/layout/Pane/index.d.ts +6 -6
  20. package/dist/ui-public/src/layout/Pane/index.js +17 -8
  21. package/dist/ui-public/src/layout/SplitPane/index.js +16 -2
  22. package/dist/ui-public/src/utils/fieldTypes.d.ts +29 -0
  23. package/dist/ui-public/src/utils/fieldTypes.js +94 -0
  24. package/dist/utils/fieldTypes.d.ts +1 -0
  25. package/dist/utils/fieldTypes.js +2 -0
  26. package/package.json +1 -1
  27. package/dist/ui-public/icons/custom/fieldgroup-boolean.js +0 -18
  28. package/dist/ui-public/icons/custom/fieldgroup-color.js +0 -18
  29. package/dist/ui-public/icons/custom/fieldgroup-datetime.js +0 -49
  30. package/dist/ui-public/icons/custom/fieldgroup-json.js +0 -18
  31. package/dist/ui-public/icons/custom/fieldgroup-location.js +0 -19
  32. package/dist/ui-public/icons/custom/fieldgroup-media.js +0 -18
  33. package/dist/ui-public/icons/custom/fieldgroup-number.js +0 -18
  34. package/dist/ui-public/icons/custom/fieldgroup-reference.js +0 -18
  35. package/dist/ui-public/icons/custom/fieldgroup-rich_text.js +0 -18
  36. package/dist/ui-public/icons/custom/fieldgroup-seo.js +0 -22
  37. package/dist/ui-public/icons/custom/fieldgroup-structured_text.js +0 -61
@@ -0,0 +1,2 @@
1
+ export * from "./ui-public/src/content/FieldTypeAvatar.js";
2
+ export { default } from "./ui-public/src/content/FieldTypeAvatar.js";
@@ -0,0 +1,2 @@
1
+ import FieldTypeAvatar from "./ui-public/src/content/FieldTypeAvatar.js";
2
+ export { FieldTypeAvatar as default };
@@ -0,0 +1,2 @@
1
+ export * from "./ui-public/src/content/FieldTypeName.js";
2
+ export { default } from "./ui-public/src/content/FieldTypeName.js";
@@ -0,0 +1,2 @@
1
+ import FieldTypeName, { useFieldTypeName } from "./ui-public/src/content/FieldTypeName.js";
2
+ export { FieldTypeName as default, useFieldTypeName };
package/dist/styles.css CHANGED
@@ -4229,11 +4229,19 @@ span.SidebarTree__node__toggle {
4229
4229
  /* The icon is centered with the margins, not with flex: the box of the
4230
4230
  caller can set the display of the square (the image of an EntityRow
4231
4231
  makes it a block), and the icon stays at the center. */
4232
+ /* The icon fills 55% of a large square. In a small square (20px in a
4233
+ menu or in a line of text) 55% is too small to read, thus the icon
4234
+ gets at least 14px and keeps a 3px margin on each side. */
4232
4235
  svg {
4236
+ --Avatar-glyph-size: min(
4237
+ calc(var(--Avatar-icon-size) - 6px),
4238
+ max(55%, 14px)
4239
+ );
4240
+
4233
4241
  position: absolute;
4234
4242
  inset: 0;
4235
- width: 55%;
4236
- height: 55%;
4243
+ width: var(--Avatar-glyph-size);
4244
+ height: var(--Avatar-glyph-size);
4237
4245
  margin: auto;
4238
4246
  color: var(--Avatar-ink);
4239
4247
  }
@@ -4247,75 +4255,75 @@ span.SidebarTree__node__toggle {
4247
4255
  a pale surface and a saturated ink. Dark mode has a deep surface and a
4248
4256
  light ink. */
4249
4257
  .Avatar__initials--hue-1 {
4250
- --Avatar-surface: #fff8d6;
4251
- --Avatar-ink: #998100;
4258
+ --Avatar-surface: #f8f1cf;
4259
+ --Avatar-ink: #796501;
4252
4260
 
4253
4261
  [data-color-scheme="dark"] & {
4254
- --Avatar-surface: #2d2500;
4255
- --Avatar-ink: #e6c840;
4262
+ --Avatar-surface: #292101;
4263
+ --Avatar-ink: #d4b625;
4256
4264
  }
4257
4265
  }
4258
4266
  .Avatar__initials--hue-2 {
4259
- --Avatar-surface: #defce2;
4260
- --Avatar-ink: #1d9f2f;
4267
+ --Avatar-surface: #dcf9e0;
4268
+ --Avatar-ink: #01781a;
4261
4269
 
4262
4270
  [data-color-scheme="dark"] & {
4263
- --Avatar-surface: #003909;
4264
- --Avatar-ink: #72d980;
4271
+ --Avatar-surface: #002b05;
4272
+ --Avatar-ink: #68d077;
4265
4273
  }
4266
4274
  }
4267
4275
  .Avatar__initials--hue-3 {
4268
- --Avatar-surface: #e5fbf9;
4269
- --Avatar-ink: #38ada3;
4276
+ --Avatar-surface: #e0f5f3;
4277
+ --Avatar-ink: #02736c;
4270
4278
 
4271
4279
  [data-color-scheme="dark"] & {
4272
- --Avatar-surface: #00322f;
4273
- --Avatar-ink: #70d9d2;
4280
+ --Avatar-surface: #012826;
4281
+ --Avatar-ink: #60cac3;
4274
4282
  }
4275
4283
  }
4276
4284
  .Avatar__initials--hue-4 {
4277
- --Avatar-surface: #ddecfc;
4278
- --Avatar-ink: #1b5899;
4285
+ --Avatar-surface: #e5f2ff;
4286
+ --Avatar-ink: #2d68ab;
4279
4287
 
4280
4288
  [data-color-scheme="dark"] & {
4281
- --Avatar-surface: #00183d;
4282
- --Avatar-ink: #7db2f2;
4289
+ --Avatar-surface: #052046;
4290
+ --Avatar-ink: #85bafb;
4283
4291
  }
4284
4292
  }
4285
4293
  .Avatar__initials--hue-5 {
4286
- --Avatar-surface: #e2e2fa;
4287
- --Avatar-ink: #38388d;
4294
+ --Avatar-surface: #eeeefe;
4295
+ --Avatar-ink: #585db6;
4288
4296
 
4289
4297
  [data-color-scheme="dark"] & {
4290
- --Avatar-surface: #11113d;
4291
- --Avatar-ink: #9a9ae8;
4298
+ --Avatar-surface: #191b48;
4299
+ --Avatar-ink: #aeaffe;
4292
4300
  }
4293
4301
  }
4294
4302
  .Avatar__initials--hue-6 {
4295
- --Avatar-surface: #fef0e2;
4296
- --Avatar-ink: #d76f0e;
4303
+ --Avatar-surface: #fceee0;
4304
+ --Avatar-ink: #a15002;
4297
4305
 
4298
4306
  [data-color-scheme="dark"] & {
4299
- --Avatar-surface: #3a1e00;
4300
- --Avatar-ink: #f5b96a;
4307
+ --Avatar-surface: #341a00;
4308
+ --Avatar-ink: #e7ab5c;
4301
4309
  }
4302
4310
  }
4303
4311
  .Avatar__initials--hue-7 {
4304
- --Avatar-surface: #fde5e3;
4305
- --Avatar-ink: #c82b1d;
4312
+ --Avatar-surface: #ffebe9;
4313
+ --Avatar-ink: #c42719;
4306
4314
 
4307
4315
  [data-color-scheme="dark"] & {
4308
- --Avatar-surface: #3d0a06;
4309
- --Avatar-ink: #f4a9a3;
4316
+ --Avatar-surface: #400d08;
4317
+ --Avatar-ink: #eda29c;
4310
4318
  }
4311
4319
  }
4312
4320
  .Avatar__initials--hue-8 {
4313
- --Avatar-surface: #f8dffa;
4314
- --Avatar-ink: #7e2e86;
4321
+ --Avatar-surface: #fde8ff;
4322
+ --Avatar-ink: #95459d;
4315
4323
 
4316
4324
  [data-color-scheme="dark"] & {
4317
- --Avatar-surface: #280030;
4318
- --Avatar-ink: #de9de6;
4325
+ --Avatar-surface: #350b3d;
4326
+ --Avatar-ink: #df9ee7;
4319
4327
  }
4320
4328
  }
4321
4329
  .Avatar--small {