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
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/hash.svg?react
|
|
4
|
+
var SvgHash = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-hash",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("line", {
|
|
20
|
+
x1: 4,
|
|
21
|
+
x2: 20,
|
|
22
|
+
y1: 9,
|
|
23
|
+
y2: 9
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ jsx("line", {
|
|
26
|
+
x1: 4,
|
|
27
|
+
x2: 20,
|
|
28
|
+
y1: 15,
|
|
29
|
+
y2: 15
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ jsx("line", {
|
|
32
|
+
x1: 10,
|
|
33
|
+
x2: 8,
|
|
34
|
+
y1: 3,
|
|
35
|
+
y2: 21
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ jsx("line", {
|
|
38
|
+
x1: 16,
|
|
39
|
+
x2: 14,
|
|
40
|
+
y1: 3,
|
|
41
|
+
y2: 21
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
});
|
|
45
|
+
var ForwardRef = forwardRef(SvgHash);
|
|
46
|
+
//#endregion
|
|
47
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/letter-text.svg?react
|
|
4
|
+
var SvgLetterText = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-letter-text",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("path", { d: "M15 5h6" }),
|
|
20
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12h6" }),
|
|
21
|
+
/* @__PURE__ */ jsx("path", { d: "M3 19h18" }),
|
|
22
|
+
/* @__PURE__ */ jsx("path", { d: "m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12" }),
|
|
23
|
+
/* @__PURE__ */ jsx("path", { d: "M3.92 10h6.16" })
|
|
24
|
+
]
|
|
25
|
+
});
|
|
26
|
+
var ForwardRef = forwardRef(SvgLetterText);
|
|
27
|
+
//#endregion
|
|
28
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/rows-3.svg?react
|
|
4
|
+
var SvgRows3 = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-rows-3",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("rect", {
|
|
20
|
+
width: 18,
|
|
21
|
+
height: 18,
|
|
22
|
+
x: 3,
|
|
23
|
+
y: 3,
|
|
24
|
+
rx: 2
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsx("path", { d: "M21 9H3" }),
|
|
27
|
+
/* @__PURE__ */ jsx("path", { d: "M21 15H3" })
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
var ForwardRef = forwardRef(SvgRows3);
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ForwardRef as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { forwardRef } from "react";
|
|
2
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../node_modules/lucide-static/icons/toggle-right.svg?react
|
|
4
|
+
var SvgToggleRight = (props, ref) => /* @__PURE__ */ jsxs("svg", {
|
|
5
|
+
className: "lucide lucide-toggle-right",
|
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
+
width: "1em",
|
|
8
|
+
height: "1em",
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
fill: "none",
|
|
11
|
+
stroke: "currentColor",
|
|
12
|
+
strokeWidth: 2,
|
|
13
|
+
strokeLinecap: "round",
|
|
14
|
+
strokeLinejoin: "round",
|
|
15
|
+
"aria-hidden": "true",
|
|
16
|
+
ref,
|
|
17
|
+
...props,
|
|
18
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
19
|
+
cx: 15,
|
|
20
|
+
cy: 12,
|
|
21
|
+
r: 3
|
|
22
|
+
}), /* @__PURE__ */ jsx("rect", {
|
|
23
|
+
width: 20,
|
|
24
|
+
height: 14,
|
|
25
|
+
x: 2,
|
|
26
|
+
y: 5,
|
|
27
|
+
rx: 7
|
|
28
|
+
})]
|
|
29
|
+
});
|
|
30
|
+
var ForwardRef = forwardRef(SvgToggleRight);
|
|
31
|
+
//#endregion
|
|
32
|
+
export { ForwardRef as default };
|
|
@@ -63,6 +63,37 @@ var en_default = {
|
|
|
63
63
|
"environment.primary": "Primary",
|
|
64
64
|
"environment.sandbox": "Sandbox",
|
|
65
65
|
"field.clearValue": "Clear",
|
|
66
|
+
"fieldGroup.boolean.title": "Boolean",
|
|
67
|
+
"fieldGroup.color.title": "Color",
|
|
68
|
+
"fieldGroup.datetime.title": "Date and time",
|
|
69
|
+
"fieldGroup.json.title": "JSON",
|
|
70
|
+
"fieldGroup.location.title": "Location",
|
|
71
|
+
"fieldGroup.media.title": "Media",
|
|
72
|
+
"fieldGroup.number.title": "Number",
|
|
73
|
+
"fieldGroup.reference.title": "Links",
|
|
74
|
+
"fieldGroup.rich_text.title": "Modular Content",
|
|
75
|
+
"fieldGroup.seo.title": "SEO",
|
|
76
|
+
"fieldGroup.text.title": "Text",
|
|
77
|
+
"fieldType.boolean": "Boolean",
|
|
78
|
+
"fieldType.color": "Color",
|
|
79
|
+
"fieldType.date": "Date",
|
|
80
|
+
"fieldType.date_time": "DateTime",
|
|
81
|
+
"fieldType.file": "Single asset",
|
|
82
|
+
"fieldType.float": "Floating-point number",
|
|
83
|
+
"fieldType.gallery": "Asset gallery",
|
|
84
|
+
"fieldType.integer": "Integer number",
|
|
85
|
+
"fieldType.json": "JSON",
|
|
86
|
+
"fieldType.lat_lon": "Geolocation",
|
|
87
|
+
"fieldType.link": "Single link",
|
|
88
|
+
"fieldType.links": "Multiple links",
|
|
89
|
+
"fieldType.rich_text": "Modular Content (multiple blocks)",
|
|
90
|
+
"fieldType.seo": "SEO and Social",
|
|
91
|
+
"fieldType.single_block": "Modular Content (single block)",
|
|
92
|
+
"fieldType.slug": "Slug",
|
|
93
|
+
"fieldType.string": "Single-line string",
|
|
94
|
+
"fieldType.structured_text": "Structured Text",
|
|
95
|
+
"fieldType.text": "Multiple-paragraph text",
|
|
96
|
+
"fieldType.video": "External video",
|
|
66
97
|
"filterBuilder.add": "Add filter",
|
|
67
98
|
"filterBuilder.addMenu": "Choose what to filter by",
|
|
68
99
|
"filterBuilder.argument": "{argument} of {field}",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** A key of a text of ui-public, as in `locales/en.json` */
|
|
2
|
-
export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.empty.description' | 'admin.listDetail.panel.empty.title' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'audioPlayer.pause' | 'audioPlayer.play' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dateTimeInput.calendar' | 'dateTimeInput.currentMonth' | 'dateTimeInput.nextMonth' | 'dateTimeInput.openCalendar' | 'dateTimeInput.previousMonth' | 'dateTimeInput.time' | 'dateTimeInput.timezone' | 'dateTimeRangeInput.apply' | 'dateTimeRangeInput.custom' | 'dateTimeRangeInput.end' | 'dateTimeRangeInput.endTime' | 'dateTimeRangeInput.from' | 'dateTimeRangeInput.start' | 'dateTimeRangeInput.startTime' | 'dateTimeRangeInput.until' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'filterBuilder.add' | 'filterBuilder.addMenu' | 'filterBuilder.argument' | 'filterBuilder.clear' | 'filterBuilder.condition' | 'filterBuilder.empty' | 'filterBuilder.field' | 'filterBuilder.operator' | 'filterBuilder.remove' | 'filterBuilder.value' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'recordRow.fallbackTitle' | 'recordRow.loading' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'uploadCard.fallbackTitle' | 'uploadCard.loading' | 'uploadPreview.encodingVideo' | 'usage.meterLabel' | 'userType.account' | 'userType.apiToken' | 'userType.organization' | 'userType.siteInvitation' | 'userType.ssoUser' | 'userType.user' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
|
|
2
|
+
export type UiTextKey = 'MultipleSelectionActionBar.changeSelection' | 'MultipleSelectionActionBar.deselectAll' | 'a11y.filterToggle' | 'a11y.pagination.goToPage' | 'a11y.pagination.label' | 'a11y.pagination.next' | 'a11y.pagination.perPage' | 'a11y.pagination.previous' | 'a11y.selectInput.remove' | 'a11y.table.selectAll' | 'actionGroups.general' | 'actionGroups.list' | 'activityLog.noResults.description' | 'activityLog.noResults.title' | 'admin.listDetail.panel.close' | 'admin.listDetail.panel.empty.description' | 'admin.listDetail.panel.empty.title' | 'admin.listDetail.panel.failed.text' | 'admin.listDetail.panel.failed.title' | 'admin.listDetail.panel.loading' | 'admin.listPresets.all' | 'audioPlayer.pause' | 'audioPlayer.play' | 'blankSlate.documentation' | 'clipboard.copied' | 'clipboard.copy' | 'clipboard.copyId' | 'clipboard.open' | 'date.today' | 'dateTimeInput.calendar' | 'dateTimeInput.currentMonth' | 'dateTimeInput.nextMonth' | 'dateTimeInput.openCalendar' | 'dateTimeInput.previousMonth' | 'dateTimeInput.time' | 'dateTimeInput.timezone' | 'dateTimeRangeInput.apply' | 'dateTimeRangeInput.custom' | 'dateTimeRangeInput.end' | 'dateTimeRangeInput.endTime' | 'dateTimeRangeInput.from' | 'dateTimeRangeInput.start' | 'dateTimeRangeInput.startTime' | 'dateTimeRangeInput.until' | 'dropdown.search' | 'dropdown.selectOption' | 'editorToolbar.addImage' | 'editorToolbar.addTable' | 'editorToolbar.alignCenter' | 'editorToolbar.alignJustify' | 'editorToolbar.alignLeft' | 'editorToolbar.alignRight' | 'editorToolbar.closeFullscreen' | 'editorToolbar.indent' | 'editorToolbar.label' | 'editorToolbar.openFullscreen' | 'editorToolbar.outdent' | 'editorToolbar.redo' | 'editorToolbar.source' | 'editorToolbar.undo' | 'environment.primary' | 'environment.sandbox' | 'field.clearValue' | 'fieldGroup.boolean.title' | 'fieldGroup.color.title' | 'fieldGroup.datetime.title' | 'fieldGroup.json.title' | 'fieldGroup.location.title' | 'fieldGroup.media.title' | 'fieldGroup.number.title' | 'fieldGroup.reference.title' | 'fieldGroup.rich_text.title' | 'fieldGroup.seo.title' | 'fieldGroup.text.title' | 'fieldType.boolean' | 'fieldType.color' | 'fieldType.date' | 'fieldType.date_time' | 'fieldType.file' | 'fieldType.float' | 'fieldType.gallery' | 'fieldType.integer' | 'fieldType.json' | 'fieldType.lat_lon' | 'fieldType.link' | 'fieldType.links' | 'fieldType.rich_text' | 'fieldType.seo' | 'fieldType.single_block' | 'fieldType.slug' | 'fieldType.string' | 'fieldType.structured_text' | 'fieldType.text' | 'fieldType.video' | 'filterBuilder.add' | 'filterBuilder.addMenu' | 'filterBuilder.argument' | 'filterBuilder.clear' | 'filterBuilder.condition' | 'filterBuilder.empty' | 'filterBuilder.field' | 'filterBuilder.operator' | 'filterBuilder.remove' | 'filterBuilder.value' | 'form.localizedField' | 'form.optional' | 'form.password.hide' | 'form.password.show' | 'framedImage.enlarged' | 'fullTextQuery.close' | 'fullTextQuery.placeholder' | 'hotkeys.closeModal' | 'hotkeys.closePopover' | 'hotkeys.filterList' | 'idText.label' | 'imageMetadata.analyzingUpload' | 'imageMetadata.cancelUpload' | 'imageMetadata.noMetadata' | 'imageMetadata.uploadInProgress' | 'item.shortStatus.draft' | 'item.shortStatus.new' | 'item.shortStatus.published' | 'item.shortStatus.updated' | 'itemTable.columns.available' | 'itemTable.columns.displayed' | 'itemTable.columns.hide' | 'keyValueList.value' | 'listFilter.noResults.description' | 'listFilter.noResults.title' | 'messages.confirm.defaultCancel' | 'modal.close' | 'pagination.next' | 'pagination.previous' | 'pagination.show' | 'recordRow.fallbackTitle' | 'recordRow.loading' | 'selectInput.create' | 'selectInput.loading' | 'selectInput.noOptions' | 'settingsMenu.needsAttention' | 'settingsMenu.opensNewTab' | 'shortcut.or' | 'shortcut.then' | 'shortcutsPanel.close' | 'shortcutsPanel.noResults' | 'shortcutsPanel.title' | 'sidebar.actions' | 'sidebar.hide' | 'sidebar.keepOpen' | 'sidebar.show' | 'sidebar.toggleLeft' | 'sidebar.toggleRight' | 'sidebarEditMode.reorder' | 'slate.slash.blockquote.title' | 'slate.toolbarButton.bulletedList' | 'slate.toolbarButton.code' | 'slate.toolbarButton.emphasis' | 'slate.toolbarButton.link' | 'slate.toolbarButton.numberedList' | 'slate.toolbarButton.strikethrough' | 'slate.toolbarButton.strong' | 'spinner.label' | 'splitButton.moreActions' | 'table.row.loading' | 'tableList.removeRow' | 'toolbar.goBack' | 'toolbar.help' | 'toolbar.learnMore' | 'upload.threatDetected' | 'uploadCard.fallbackTitle' | 'uploadCard.loading' | 'uploadPreview.encodingVideo' | 'usage.meterLabel' | 'userType.account' | 'userType.apiToken' | 'userType.organization' | 'userType.siteInvitation' | 'userType.ssoUser' | 'userType.user' | 'validityTriangle.current' | 'validityTriangle.invalidVersion' | 'validityTriangle.published';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextMessage } from '../Message.js';
|
|
3
|
+
import { type FieldType } from '../utils/fieldTypes.js';
|
|
4
|
+
export type FieldTypeAvatarProps = {
|
|
5
|
+
/** The `field_type` of the field, as the CMA gives it, for example `"rich_text"` */
|
|
6
|
+
fieldType: FieldType | (string & {});
|
|
7
|
+
/** The side of the square in pixels, for example 32 in the image of an EntityRow */
|
|
8
|
+
size: number;
|
|
9
|
+
/**
|
|
10
|
+
* The name for the screen readers. Use it only when no text near the
|
|
11
|
+
* avatar says the type of the field. Without it, the screen readers do
|
|
12
|
+
* not read the avatar.
|
|
13
|
+
*/
|
|
14
|
+
ariaLabel?: TextMessage;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The icon of the group of a field type, on the colors of the group, as
|
|
18
|
+
* DatoCMS shows a field type. A type that the component does not know
|
|
19
|
+
* gets a generic icon on the neutral surface.
|
|
20
|
+
*/
|
|
21
|
+
declare function FieldTypeAvatar({ fieldType, size, ariaLabel }: FieldTypeAvatarProps): React.JSX.Element;
|
|
22
|
+
export default FieldTypeAvatar;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FieldGroup, Generic } from "../../icons/index.js";
|
|
2
|
+
import IconAvatar from "./IconAvatar.js";
|
|
3
|
+
import { fieldGroupOf, fieldTypeSurface } from "../utils/fieldTypes.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
//#region ../ui-public/src/content/FieldTypeAvatar.tsx
|
|
7
|
+
var groupIcons = {
|
|
8
|
+
boolean: FieldGroup.BooleanGroupIcon,
|
|
9
|
+
color: FieldGroup.ColorGroupIcon,
|
|
10
|
+
datetime: FieldGroup.DatetimeGroupIcon,
|
|
11
|
+
json: FieldGroup.JsonGroupIcon,
|
|
12
|
+
location: FieldGroup.LocationGroupIcon,
|
|
13
|
+
media: FieldGroup.MediaGroupIcon,
|
|
14
|
+
number: FieldGroup.NumberGroupIcon,
|
|
15
|
+
reference: FieldGroup.ReferenceGroupIcon,
|
|
16
|
+
rich_text: FieldGroup.RichTextGroupIcon,
|
|
17
|
+
seo: FieldGroup.SeoGroupIcon,
|
|
18
|
+
text: FieldGroup.StructuredTextGroupIcon
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The icon of the group of a field type, on the colors of the group, as
|
|
22
|
+
* DatoCMS shows a field type. A type that the component does not know
|
|
23
|
+
* gets a generic icon on the neutral surface.
|
|
24
|
+
*/
|
|
25
|
+
function FieldTypeAvatar({ fieldType, size, ariaLabel }) {
|
|
26
|
+
const group = fieldGroupOf(fieldType);
|
|
27
|
+
return /* @__PURE__ */ jsx(IconAvatar, {
|
|
28
|
+
icon: group ? groupIcons[group] : Generic.CircleQuestionIcon,
|
|
29
|
+
size,
|
|
30
|
+
surface: fieldTypeSurface(fieldType),
|
|
31
|
+
ariaLabel
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { FieldTypeAvatar as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type FieldType } from '../utils/fieldTypes.js';
|
|
3
|
+
export type FieldTypeNameProps = {
|
|
4
|
+
/** The `field_type` of the field, as the CMA gives it, for example `"rich_text"` */
|
|
5
|
+
fieldType: FieldType | (string & {});
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Gives a function that returns the name of a field type as a string, in
|
|
9
|
+
* the language of the user. Use it when the name is a part of a string, for
|
|
10
|
+
* example the text of a tooltip. In JSX, use `FieldTypeName`. A type that
|
|
11
|
+
* the function does not know gives its `field_type` string.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useFieldTypeName(): (fieldType: FieldType | (string & {})) => string;
|
|
14
|
+
/**
|
|
15
|
+
* The name of a field type as text, in the language of the user. A type
|
|
16
|
+
* that the component does not know shows its `field_type` string.
|
|
17
|
+
*/
|
|
18
|
+
declare function FieldTypeName({ fieldType }: FieldTypeNameProps): React.JSX.Element;
|
|
19
|
+
export default FieldTypeName;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useTranslation } from "../i18n.js";
|
|
2
|
+
import { fieldTypeMessage } from "../utils/fieldTypes.js";
|
|
3
|
+
import { useCallback } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region ../ui-public/src/content/FieldTypeName.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Gives a function that returns the name of a field type as a string, in
|
|
8
|
+
* the language of the user. Use it when the name is a part of a string, for
|
|
9
|
+
* example the text of a tooltip. In JSX, use `FieldTypeName`. A type that
|
|
10
|
+
* the function does not know gives its `field_type` string.
|
|
11
|
+
*/
|
|
12
|
+
function useFieldTypeName() {
|
|
13
|
+
const { tm } = useTranslation();
|
|
14
|
+
return useCallback((fieldType) => tm(fieldTypeMessage(fieldType)), [tm]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The name of a field type as text, in the language of the user. A type
|
|
18
|
+
* that the component does not know shows its `field_type` string.
|
|
19
|
+
*/
|
|
20
|
+
function FieldTypeName({ fieldType }) {
|
|
21
|
+
const fieldTypeName = useFieldTypeName();
|
|
22
|
+
return /* @__PURE__ */ jsx(Fragment$1, { children: fieldTypeName(fieldType) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { FieldTypeName as default, useFieldTypeName };
|
|
@@ -13,7 +13,8 @@ export type IconAvatarSurface =
|
|
|
13
13
|
/**
|
|
14
14
|
* A surface and an ink from the data or from a context of tokens, for
|
|
15
15
|
* example `{ color: 'var(--color--field-group-media--surface)', ink:
|
|
16
|
-
* 'var(--color--field-group-media--ink)' }`
|
|
16
|
+
* 'var(--color--field-group-media--ink)' }`. `fieldTypeSurface` gives
|
|
17
|
+
* this pair for the group of a field type.
|
|
17
18
|
*/
|
|
18
19
|
| {
|
|
19
20
|
color: string;
|
|
@@ -43,9 +43,9 @@ export type PaneProps = PropsWithChildren<{
|
|
|
43
43
|
*/
|
|
44
44
|
mode?: {
|
|
45
45
|
/**
|
|
46
|
-
* Stops the mode. It runs when the user
|
|
47
|
-
*
|
|
48
|
-
*
|
|
46
|
+
* Stops the mode. It runs when the user clicks on the page out of the
|
|
47
|
+
* pane. Menus and dialogs are not in the page: a click there does not
|
|
48
|
+
* run it.
|
|
49
49
|
*/
|
|
50
50
|
onExit: () => void;
|
|
51
51
|
};
|
|
@@ -109,9 +109,9 @@ declare const _default: React.NamedExoticComponent<{
|
|
|
109
109
|
*/
|
|
110
110
|
mode?: {
|
|
111
111
|
/**
|
|
112
|
-
* Stops the mode. It runs when the user
|
|
113
|
-
*
|
|
114
|
-
*
|
|
112
|
+
* Stops the mode. It runs when the user clicks on the page out of the
|
|
113
|
+
* pane. Menus and dialogs are not in the page: a click there does not
|
|
114
|
+
* run it.
|
|
115
115
|
*/
|
|
116
116
|
onExit: () => void;
|
|
117
117
|
};
|
|
@@ -38,20 +38,23 @@ function Pane({ children, ariaLabel, className, busy, header, mode, slideUpToolb
|
|
|
38
38
|
}, [inMode]);
|
|
39
39
|
useEffect(() => {
|
|
40
40
|
if (!onExit) return;
|
|
41
|
+
let pressedOnPage = false;
|
|
41
42
|
const handlePointerDown = (event) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
if (
|
|
43
|
+
pressedOnPage = isOnPageOutOfPane(ref.current, event.target);
|
|
44
|
+
};
|
|
45
|
+
const handleClick = (event) => {
|
|
46
|
+
const clickedOnPage = pressedOnPage && isOnPageOutOfPane(ref.current, event.target);
|
|
47
|
+
pressedOnPage = false;
|
|
48
|
+
if (clickedOnPage) {
|
|
48
49
|
exitedByClickOutside.current = true;
|
|
49
50
|
onExit();
|
|
50
51
|
}
|
|
51
52
|
};
|
|
52
|
-
document.addEventListener("pointerdown", handlePointerDown);
|
|
53
|
+
document.addEventListener("pointerdown", handlePointerDown, true);
|
|
54
|
+
document.addEventListener("click", handleClick, true);
|
|
53
55
|
return () => {
|
|
54
|
-
document.removeEventListener("pointerdown", handlePointerDown);
|
|
56
|
+
document.removeEventListener("pointerdown", handlePointerDown, true);
|
|
57
|
+
document.removeEventListener("click", handleClick, true);
|
|
55
58
|
};
|
|
56
59
|
}, [onExit]);
|
|
57
60
|
return /* @__PURE__ */ jsx(PaneAriaLabelProvider, {
|
|
@@ -95,6 +98,12 @@ function Pane({ children, ariaLabel, className, busy, header, mode, slideUpToolb
|
|
|
95
98
|
})
|
|
96
99
|
});
|
|
97
100
|
}
|
|
101
|
+
function isOnPageOutOfPane(pane, target) {
|
|
102
|
+
if (!pane || !(target instanceof Node) || pane.contains(target)) return false;
|
|
103
|
+
let page = pane;
|
|
104
|
+
while (page.parentElement && page.parentElement !== document.body) page = page.parentElement;
|
|
105
|
+
return page.contains(target);
|
|
106
|
+
}
|
|
98
107
|
var Pane_default = Object.assign(React.memo(Pane), {
|
|
99
108
|
Header: PaneHeader_default,
|
|
100
109
|
FormHeader: FormHeader_default,
|
|
@@ -45,16 +45,29 @@ function SplitPane({ mode = "split", minSize: minSizeProp = 200, maxSize, size:
|
|
|
45
45
|
const showsRail = Boolean(collapse) && !collapse?.hideRail;
|
|
46
46
|
const [requestedMinSize, setRequestedMinSize] = useState();
|
|
47
47
|
const [isSizeAnimated, setSizeAnimated] = useState(false);
|
|
48
|
+
const [keptSize, setKeptSize] = useState();
|
|
49
|
+
const renderedSecondarySize = useRef(void 0);
|
|
50
|
+
const latestSizeProp = useRef(sizeProp);
|
|
51
|
+
latestSizeProp.current = sizeProp;
|
|
48
52
|
const requestMinSize = useCallback((minSize) => {
|
|
49
53
|
setRequestedMinSize(minSize);
|
|
50
|
-
|
|
54
|
+
if (minSize !== void 0) {
|
|
55
|
+
setSizeAnimated(true);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const rendered = renderedSecondarySize.current;
|
|
59
|
+
if (typeof rendered === "number" && rendered !== latestSizeProp.current) setKeptSize({
|
|
60
|
+
from: latestSizeProp.current,
|
|
61
|
+
size: rendered
|
|
62
|
+
});
|
|
51
63
|
}, []);
|
|
52
64
|
useEffect(() => {
|
|
53
65
|
if (!isSizeAnimated) return;
|
|
54
66
|
const timer = setTimeout(() => setSizeAnimated(false), SIZE_ANIMATION_DURATION);
|
|
55
67
|
return () => clearTimeout(timer);
|
|
56
68
|
}, [isSizeAnimated]);
|
|
57
|
-
const
|
|
69
|
+
const unrequestedSize = keptSize?.from === sizeProp ? keptSize.size : sizeProp;
|
|
70
|
+
const size = requestedMinSize !== void 0 && typeof unrequestedSize === "number" ? Math.max(unrequestedSize, requestedMinSize) : unrequestedSize;
|
|
58
71
|
const minSize = requestedMinSize !== void 0 && typeof minSizeProp === "number" ? Math.max(minSizeProp, requestedMinSize) : minSizeProp;
|
|
59
72
|
const isOverlayModeActive = useMemo(() => mode === "overlay", [mode]);
|
|
60
73
|
const isSecondaryDocked = !isSecondaryCollapsed && !isOverlayModeActive;
|
|
@@ -73,6 +86,7 @@ function SplitPane({ mode = "split", minSize: minSizeProp = 200, maxSize, size:
|
|
|
73
86
|
]);
|
|
74
87
|
const [dragSizes, setDragSizes] = useState();
|
|
75
88
|
const sizes = dragSizes?.from === baseSizes ? dragSizes.sizes : baseSizes;
|
|
89
|
+
renderedSecondarySize.current = isSecondaryDocked ? sizes[primaryPane === "left" ? 1 : 0] : size;
|
|
76
90
|
const currentSizes = useRef(sizes);
|
|
77
91
|
const isCollapsedByDrag = useRef(false);
|
|
78
92
|
const secondarySide = primaryPane === "left" ? "right" : "left";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { IconAvatarSurface } from '../content/IconAvatar.js';
|
|
2
|
+
import type { TextMessage } from '../Message.js';
|
|
3
|
+
/** The `field_type` of a field, as the CMA gives it */
|
|
4
|
+
export type FieldType = 'boolean' | 'color' | 'date' | 'date_time' | 'file' | 'float' | 'gallery' | 'integer' | 'json' | 'lat_lon' | 'link' | 'links' | 'rich_text' | 'seo' | 'single_block' | 'slug' | 'string' | 'structured_text' | 'text' | 'video';
|
|
5
|
+
/** A group of field types, as the "Add new field" menu of a model shows it */
|
|
6
|
+
export type FieldGroupName = 'text' | 'rich_text' | 'media' | 'datetime' | 'number' | 'boolean' | 'location' | 'color' | 'seo' | 'reference' | 'json';
|
|
7
|
+
/**
|
|
8
|
+
* The groups of field types, with their types, in the order of the "Add new
|
|
9
|
+
* field" menu of a model
|
|
10
|
+
*/
|
|
11
|
+
export declare const fieldTypeGroups: readonly {
|
|
12
|
+
readonly name: FieldGroupName;
|
|
13
|
+
readonly types: readonly FieldType[];
|
|
14
|
+
}[];
|
|
15
|
+
/** The group of a field type, or `undefined` for a type that it does not know */
|
|
16
|
+
export declare function fieldGroupOf(fieldType: string): FieldGroupName | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The name of a field type, for example `{ id: 'fieldType.rich_text' }`
|
|
19
|
+
* ("Modular Content (multiple blocks)"). For a type that it does not know,
|
|
20
|
+
* the `field_type` string.
|
|
21
|
+
*/
|
|
22
|
+
export declare function fieldTypeMessage(fieldType: string): TextMessage;
|
|
23
|
+
/** The name of a group of field types, for example `{ id: 'fieldGroup.media.title' }` ("Media") */
|
|
24
|
+
export declare function fieldGroupMessage(group: FieldGroupName): TextMessage;
|
|
25
|
+
/**
|
|
26
|
+
* The `surface` of an `IconAvatar` in the colors of the group of a field
|
|
27
|
+
* type, or `'muted'` for a type that it does not know
|
|
28
|
+
*/
|
|
29
|
+
export declare function fieldTypeSurface(fieldType: string): IconAvatarSurface;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
//#region ../ui-public/src/utils/fieldTypes.ts
|
|
2
|
+
/**
|
|
3
|
+
* The groups of field types, with their types, in the order of the "Add new
|
|
4
|
+
* field" menu of a model
|
|
5
|
+
*/
|
|
6
|
+
var fieldTypeGroups = [
|
|
7
|
+
{
|
|
8
|
+
name: "text",
|
|
9
|
+
types: [
|
|
10
|
+
"string",
|
|
11
|
+
"text",
|
|
12
|
+
"structured_text"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: "rich_text",
|
|
17
|
+
types: ["single_block", "rich_text"]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "media",
|
|
21
|
+
types: [
|
|
22
|
+
"file",
|
|
23
|
+
"gallery",
|
|
24
|
+
"video"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: "datetime",
|
|
29
|
+
types: ["date", "date_time"]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "number",
|
|
33
|
+
types: ["integer", "float"]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "boolean",
|
|
37
|
+
types: ["boolean"]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "location",
|
|
41
|
+
types: ["lat_lon"]
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: "color",
|
|
45
|
+
types: ["color"]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "seo",
|
|
49
|
+
types: ["slug", "seo"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "reference",
|
|
53
|
+
types: ["link", "links"]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: "json",
|
|
57
|
+
types: ["json"]
|
|
58
|
+
}
|
|
59
|
+
];
|
|
60
|
+
var groupOfType = new Map(fieldTypeGroups.flatMap((group) => group.types.map((type) => [type, group.name])));
|
|
61
|
+
function groupSurface(group) {
|
|
62
|
+
const slug = group.replace(/_/g, "-");
|
|
63
|
+
return {
|
|
64
|
+
color: `var(--color--field-group-${slug}--surface)`,
|
|
65
|
+
ink: `var(--color--field-group-${slug}--ink)`
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
var groupSurfaces = new Map(fieldTypeGroups.map((group) => [group.name, groupSurface(group.name)]));
|
|
69
|
+
/** The group of a field type, or `undefined` for a type that it does not know */
|
|
70
|
+
function fieldGroupOf(fieldType) {
|
|
71
|
+
return groupOfType.get(fieldType);
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* The name of a field type, for example `{ id: 'fieldType.rich_text' }`
|
|
75
|
+
* ("Modular Content (multiple blocks)"). For a type that it does not know,
|
|
76
|
+
* the `field_type` string.
|
|
77
|
+
*/
|
|
78
|
+
function fieldTypeMessage(fieldType) {
|
|
79
|
+
return groupOfType.has(fieldType) ? { id: `fieldType.${fieldType}` } : fieldType;
|
|
80
|
+
}
|
|
81
|
+
/** The name of a group of field types, for example `{ id: 'fieldGroup.media.title' }` ("Media") */
|
|
82
|
+
function fieldGroupMessage(group) {
|
|
83
|
+
return { id: `fieldGroup.${group}.title` };
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The `surface` of an `IconAvatar` in the colors of the group of a field
|
|
87
|
+
* type, or `'muted'` for a type that it does not know
|
|
88
|
+
*/
|
|
89
|
+
function fieldTypeSurface(fieldType) {
|
|
90
|
+
const group = groupOfType.get(fieldType);
|
|
91
|
+
return group && groupSurfaces.get(group) || "muted";
|
|
92
|
+
}
|
|
93
|
+
//#endregion
|
|
94
|
+
export { fieldGroupMessage, fieldGroupOf, fieldTypeGroups, fieldTypeMessage, fieldTypeSurface };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../ui-public/src/utils/fieldTypes.js";
|
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { forwardRef } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region ../ui-public/icons/custom/fieldgroup-boolean.svg?react
|
|
4
|
-
var SvgFieldgroupBoolean = (props, ref) => /* @__PURE__ */ jsx("svg", {
|
|
5
|
-
viewBox: "0 0 448 435",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
width: "1em",
|
|
8
|
-
height: "1em",
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
ref,
|
|
11
|
-
...props,
|
|
12
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
13
|
-
d: "M108.53 306c5.09 0 9.279-1.761 12.567-5.284 3.289-3.522 4.933-8.845 4.933-15.968V230.15l43.104-66.104c3.602-5.4 6.147-9.628 7.634-12.68 1.488-3.053 2.232-6.106 2.232-9.159 0-3.757-1.468-7.064-4.404-9.921-2.937-2.857-6.597-4.286-10.982-4.286-2.819 0-5.207.509-7.164 1.526-1.958 1.018-3.74 2.486-5.344 4.403a50.12 50.12 0 00-4.405 6.165 5110.64 5110.64 0 01-4.933 8.101l-32.533 52.25-32.181-52.25c-4.933-8.062-8.633-13.444-11.1-16.144-2.466-2.7-6.087-4.051-10.863-4.051-4.542 0-8.359 1.448-11.452 4.344-3.093 2.897-4.639 6.34-4.639 10.333 0 2.426.763 5.283 2.29 8.571 1.527 3.288 4.13 7.867 7.81 13.737l42.048 65.165v54.598c0 7.201 1.605 12.544 4.815 16.027 3.21 3.483 7.4 5.225 12.567 5.225zm87.39 0c3.194 0 5.628-.724 7.303-2.172 1.675-1.448 2.922-3.464 3.74-6.047.818-2.583 1.772-6.106 2.863-10.567l32.72-135.379c1.636-6.419 2.454-10.841 2.454-13.268 0-3.287-1.032-5.87-3.097-7.75-2.064-1.878-5.044-2.817-8.94-2.817-4.518 0-7.556 1.33-9.114 3.992-1.558 2.661-3.194 7.593-4.908 14.794l-32.604 135.379c-1.558 7.201-2.337 11.702-2.337 13.503 0 6.888 3.973 10.332 11.92 10.332zm194.302 0c12.519 0 18.778-7.554 18.778-22.661V147.96c0-6.653-1.447-11.643-4.342-14.97-2.895-3.327-6.846-4.99-11.854-4.99-4.85 0-8.704 1.663-11.56 4.99-2.855 3.327-4.283 8.317-4.283 14.97v102.386L309.949 148.9a1268.433 1268.433 0 00-5.458-8.572c-1.76-2.74-3.481-4.97-5.163-6.692a19.362 19.362 0 00-5.868-4.11c-2.23-1.017-4.91-1.526-8.04-1.526-3.99 0-7.706 1.115-11.149 3.346-3.442 2.231-5.907 5.108-7.393 8.63-1.252 3.21-1.878 7.632-1.878 13.268V286.04c0 6.496 1.487 11.447 4.46 14.852 2.973 3.405 6.924 5.108 11.853 5.108 4.773 0 8.685-1.683 11.736-5.049 3.051-3.366 4.577-8.336 4.577-14.911V185.18l65.37 100.273c1.877 2.74 3.755 5.42 5.632 8.042 1.878 2.623 3.912 4.912 6.103 6.87 2.19 1.956 4.538 3.385 7.042 4.285 2.503.9 5.32 1.35 8.45 1.35z",
|
|
14
|
-
fillRule: "nonzero"
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
forwardRef(SvgFieldgroupBoolean);
|
|
18
|
-
//#endregion
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { forwardRef } from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
//#region ../ui-public/icons/custom/fieldgroup-color.svg?react
|
|
4
|
-
var SvgFieldgroupColor = (props, ref) => /* @__PURE__ */ jsx("svg", {
|
|
5
|
-
viewBox: "0 0 448 435",
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
width: "1em",
|
|
8
|
-
height: "1em",
|
|
9
|
-
"aria-hidden": "true",
|
|
10
|
-
ref,
|
|
11
|
-
...props,
|
|
12
|
-
children: /* @__PURE__ */ jsx("path", {
|
|
13
|
-
d: "M56 399.736c29.823 0 54 7.222 54 16.132S85.823 432 56 432s-54-7.223-54-16.132c0-8.91 24.177-16.132 54-16.132zM370.467 66.84c19.712 19.591 19.909 51.224.59 71.05l-.59.597-13.763 13.676c7.393 7.34 7.393 19.25 0 26.591a18.93 18.93 0 01-13.38 5.508c-4.695 0-9.39-1.727-13.042-5.18l-.339-.328-3.71-3.685-198.329 197.06a30.546 30.546 0 01-19.64 8.788l-.505.027-6.848.3-15.081.666h-.013L61.065 383c-.124.006-.234.006-.345.006-2.046 0-4.017-.8-5.459-2.24A7.698 7.698 0 0153 375.294l.006-.293 2.082-46.387v-.037l.124-2.736a23.006 23.006 0 016.45-14.95l.33-.334 51.608-51.284h.013l148.676-147.74-4.459-4.433c-7.394-7.34-7.394-19.251 0-26.59 7.304-7.257 19.08-7.345 26.491-.263l.27.262 13.763-13.675c19.922-19.783 52.204-19.777 72.113.007zM229.49 175.823l-126.1 129.266h-.007l-23.662 23.588a10.599 10.599 0 00-3.109 7.03l-.056 1.258v.018l-.955 21.335c-.04.99.333 1.95 1.034 2.652a3.538 3.538 0 002.503 1.03c.05 0 .101 0 .158-.003l11.349-.5 6.92-.307 3.14-.138a13.986 13.986 0 009.237-4.055L262.555 208.78c9.13-9.099 9.13-23.852 0-32.954-9.129-9.1-23.93-9.102-33.065-.003z",
|
|
14
|
-
fillRule: "nonzero"
|
|
15
|
-
})
|
|
16
|
-
});
|
|
17
|
-
forwardRef(SvgFieldgroupColor);
|
|
18
|
-
//#endregion
|