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.
- package/dist/FieldTypeAvatar.d.ts +2 -0
- package/dist/FieldTypeAvatar.js +2 -0
- package/dist/FieldTypeName.d.ts +2 -0
- package/dist/FieldTypeName.js +2 -0
- package/dist/styles.css +42 -34
- package/dist/ui-public/icons/index.js +285 -278
- package/dist/ui-public/icons/lucide/braces.js +22 -0
- package/dist/ui-public/icons/lucide/hash.js +47 -0
- package/dist/ui-public/icons/lucide/letter-text.js +28 -0
- package/dist/ui-public/icons/lucide/rows-3.js +32 -0
- package/dist/ui-public/icons/lucide/toggle-right.js +32 -0
- package/dist/ui-public/locales/en.js +31 -0
- package/dist/ui-public/src/UiTextKey.d.ts +1 -1
- package/dist/ui-public/src/content/FieldTypeAvatar.d.ts +22 -0
- package/dist/ui-public/src/content/FieldTypeAvatar.js +35 -0
- package/dist/ui-public/src/content/FieldTypeName.d.ts +19 -0
- package/dist/ui-public/src/content/FieldTypeName.js +25 -0
- package/dist/ui-public/src/content/IconAvatar.d.ts +2 -1
- package/dist/ui-public/src/layout/Pane/index.d.ts +6 -6
- package/dist/ui-public/src/layout/Pane/index.js +17 -8
- package/dist/ui-public/src/layout/SplitPane/index.js +16 -2
- package/dist/ui-public/src/utils/fieldTypes.d.ts +29 -0
- package/dist/ui-public/src/utils/fieldTypes.js +94 -0
- package/dist/utils/fieldTypes.d.ts +1 -0
- package/dist/utils/fieldTypes.js +2 -0
- package/package.json +1 -1
- package/dist/ui-public/icons/custom/fieldgroup-boolean.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-color.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-datetime.js +0 -49
- package/dist/ui-public/icons/custom/fieldgroup-json.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-location.js +0 -19
- package/dist/ui-public/icons/custom/fieldgroup-media.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-number.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-reference.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-rich_text.js +0 -18
- package/dist/ui-public/icons/custom/fieldgroup-seo.js +0 -22
- package/dist/ui-public/icons/custom/fieldgroup-structured_text.js +0 -61
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:
|
|
4236
|
-
height:
|
|
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: #
|
|
4251
|
-
--Avatar-ink: #
|
|
4258
|
+
--Avatar-surface: #f8f1cf;
|
|
4259
|
+
--Avatar-ink: #796501;
|
|
4252
4260
|
|
|
4253
4261
|
[data-color-scheme="dark"] & {
|
|
4254
|
-
--Avatar-surface: #
|
|
4255
|
-
--Avatar-ink: #
|
|
4262
|
+
--Avatar-surface: #292101;
|
|
4263
|
+
--Avatar-ink: #d4b625;
|
|
4256
4264
|
}
|
|
4257
4265
|
}
|
|
4258
4266
|
.Avatar__initials--hue-2 {
|
|
4259
|
-
--Avatar-surface: #
|
|
4260
|
-
--Avatar-ink: #
|
|
4267
|
+
--Avatar-surface: #dcf9e0;
|
|
4268
|
+
--Avatar-ink: #01781a;
|
|
4261
4269
|
|
|
4262
4270
|
[data-color-scheme="dark"] & {
|
|
4263
|
-
--Avatar-surface: #
|
|
4264
|
-
--Avatar-ink: #
|
|
4271
|
+
--Avatar-surface: #002b05;
|
|
4272
|
+
--Avatar-ink: #68d077;
|
|
4265
4273
|
}
|
|
4266
4274
|
}
|
|
4267
4275
|
.Avatar__initials--hue-3 {
|
|
4268
|
-
--Avatar-surface: #
|
|
4269
|
-
--Avatar-ink: #
|
|
4276
|
+
--Avatar-surface: #e0f5f3;
|
|
4277
|
+
--Avatar-ink: #02736c;
|
|
4270
4278
|
|
|
4271
4279
|
[data-color-scheme="dark"] & {
|
|
4272
|
-
--Avatar-surface: #
|
|
4273
|
-
--Avatar-ink: #
|
|
4280
|
+
--Avatar-surface: #012826;
|
|
4281
|
+
--Avatar-ink: #60cac3;
|
|
4274
4282
|
}
|
|
4275
4283
|
}
|
|
4276
4284
|
.Avatar__initials--hue-4 {
|
|
4277
|
-
--Avatar-surface: #
|
|
4278
|
-
--Avatar-ink: #
|
|
4285
|
+
--Avatar-surface: #e5f2ff;
|
|
4286
|
+
--Avatar-ink: #2d68ab;
|
|
4279
4287
|
|
|
4280
4288
|
[data-color-scheme="dark"] & {
|
|
4281
|
-
--Avatar-surface: #
|
|
4282
|
-
--Avatar-ink: #
|
|
4289
|
+
--Avatar-surface: #052046;
|
|
4290
|
+
--Avatar-ink: #85bafb;
|
|
4283
4291
|
}
|
|
4284
4292
|
}
|
|
4285
4293
|
.Avatar__initials--hue-5 {
|
|
4286
|
-
--Avatar-surface: #
|
|
4287
|
-
--Avatar-ink: #
|
|
4294
|
+
--Avatar-surface: #eeeefe;
|
|
4295
|
+
--Avatar-ink: #585db6;
|
|
4288
4296
|
|
|
4289
4297
|
[data-color-scheme="dark"] & {
|
|
4290
|
-
--Avatar-surface: #
|
|
4291
|
-
--Avatar-ink: #
|
|
4298
|
+
--Avatar-surface: #191b48;
|
|
4299
|
+
--Avatar-ink: #aeaffe;
|
|
4292
4300
|
}
|
|
4293
4301
|
}
|
|
4294
4302
|
.Avatar__initials--hue-6 {
|
|
4295
|
-
--Avatar-surface: #
|
|
4296
|
-
--Avatar-ink: #
|
|
4303
|
+
--Avatar-surface: #fceee0;
|
|
4304
|
+
--Avatar-ink: #a15002;
|
|
4297
4305
|
|
|
4298
4306
|
[data-color-scheme="dark"] & {
|
|
4299
|
-
--Avatar-surface: #
|
|
4300
|
-
--Avatar-ink: #
|
|
4307
|
+
--Avatar-surface: #341a00;
|
|
4308
|
+
--Avatar-ink: #e7ab5c;
|
|
4301
4309
|
}
|
|
4302
4310
|
}
|
|
4303
4311
|
.Avatar__initials--hue-7 {
|
|
4304
|
-
--Avatar-surface: #
|
|
4305
|
-
--Avatar-ink: #
|
|
4312
|
+
--Avatar-surface: #ffebe9;
|
|
4313
|
+
--Avatar-ink: #c42719;
|
|
4306
4314
|
|
|
4307
4315
|
[data-color-scheme="dark"] & {
|
|
4308
|
-
--Avatar-surface: #
|
|
4309
|
-
--Avatar-ink: #
|
|
4316
|
+
--Avatar-surface: #400d08;
|
|
4317
|
+
--Avatar-ink: #eda29c;
|
|
4310
4318
|
}
|
|
4311
4319
|
}
|
|
4312
4320
|
.Avatar__initials--hue-8 {
|
|
4313
|
-
--Avatar-surface: #
|
|
4314
|
-
--Avatar-ink: #
|
|
4321
|
+
--Avatar-surface: #fde8ff;
|
|
4322
|
+
--Avatar-ink: #95459d;
|
|
4315
4323
|
|
|
4316
4324
|
[data-color-scheme="dark"] & {
|
|
4317
|
-
--Avatar-surface: #
|
|
4318
|
-
--Avatar-ink: #
|
|
4325
|
+
--Avatar-surface: #350b3d;
|
|
4326
|
+
--Avatar-ink: #df9ee7;
|
|
4319
4327
|
}
|
|
4320
4328
|
}
|
|
4321
4329
|
.Avatar--small {
|