@payloadcms/ui 3.0.0-beta.77 → 3.0.0-beta.78
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/elements/AppHeader/index.scss +5 -3
- package/dist/elements/Card/index.scss +3 -3
- package/dist/elements/Collapsible/index.scss +4 -1
- package/dist/elements/DeleteDocument/index.scss +1 -0
- package/dist/elements/DeleteMany/index.scss +1 -0
- package/dist/elements/DocumentControls/index.scss +18 -7
- package/dist/elements/DuplicateDocument/index.scss +1 -0
- package/dist/elements/EditMany/index.scss +4 -10
- package/dist/elements/GenerateConfirmation/index.scss +1 -0
- package/dist/elements/ListControls/index.scss +14 -5
- package/dist/elements/ListDrawer/index.scss +4 -4
- package/dist/elements/Localizer/LocalizerLabel/index.d.ts.map +1 -1
- package/dist/elements/Localizer/LocalizerLabel/index.js +5 -4
- package/dist/elements/Localizer/LocalizerLabel/index.js.map +1 -1
- package/dist/elements/Localizer/LocalizerLabel/index.scss +6 -0
- package/dist/elements/PublishMany/index.scss +1 -0
- package/dist/elements/Status/index.scss +1 -0
- package/dist/elements/StayLoggedIn/index.scss +1 -0
- package/dist/elements/StepNav/index.scss +1 -1
- package/dist/elements/Table/DefaultCell/fields/Array/index.js +1 -1
- package/dist/elements/Table/DefaultCell/fields/Array/index.js.map +1 -1
- package/dist/elements/UnpublishMany/index.scss +1 -0
- package/dist/exports/client/index.js +7 -7
- package/dist/exports/client/index.js.map +3 -3
- package/dist/fields/Blocks/SectionTitle/index.scss +12 -2
- package/dist/fields/Blocks/index.scss +1 -0
- package/dist/providers/DocumentInfo/index.js +15 -15
- package/dist/providers/DocumentInfo/index.js.map +1 -1
- package/dist/scss/app.scss +4 -4
- package/dist/scss/type.scss +1 -0
- package/dist/scss/vars.scss +1 -1
- package/dist/styles.css +1 -1
- package/package.json +5 -5
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
height: 100%;
|
|
58
58
|
flex-grow: 1;
|
|
59
59
|
justify-content: space-between;
|
|
60
|
-
|
|
60
|
+
width: 100%;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&__account {
|
|
@@ -90,12 +90,14 @@
|
|
|
90
90
|
align-items: center;
|
|
91
91
|
flex-grow: 1;
|
|
92
92
|
overflow: hidden;
|
|
93
|
+
width: 100%;
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
&__step-nav-wrapper {
|
|
96
|
-
flex:
|
|
97
|
+
flex-grow: 0;
|
|
97
98
|
overflow: auto;
|
|
98
99
|
display: flex;
|
|
100
|
+
width: 100%;
|
|
99
101
|
|
|
100
102
|
&::-webkit-scrollbar {
|
|
101
103
|
display: none;
|
|
@@ -156,7 +158,7 @@
|
|
|
156
158
|
}
|
|
157
159
|
|
|
158
160
|
@include small-break {
|
|
159
|
-
&__localizer {
|
|
161
|
+
&__localizer.localizer {
|
|
160
162
|
right: base(2);
|
|
161
163
|
}
|
|
162
164
|
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
gap: base(0.8);
|
|
18
18
|
|
|
19
19
|
&__title {
|
|
20
|
-
@extend %
|
|
20
|
+
@extend %h5;
|
|
21
21
|
letter-spacing: 0;
|
|
22
22
|
font-weight: 600;
|
|
23
|
-
line-height: base(
|
|
23
|
+
line-height: base(0.8);
|
|
24
24
|
width: 100%;
|
|
25
|
-
margin: 0;
|
|
25
|
+
margin: base(0.1) 0;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&__actions {
|
|
@@ -17,9 +17,10 @@
|
|
|
17
17
|
gap: base(0.2);
|
|
18
18
|
border-top-right-radius: $style-radius-m;
|
|
19
19
|
border-top-left-radius: $style-radius-m;
|
|
20
|
+
width: 100%;
|
|
20
21
|
|
|
21
22
|
& > * {
|
|
22
|
-
z-index:
|
|
23
|
+
z-index: 1;
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
&:has(.collapsible__drag) {
|
|
@@ -87,6 +88,8 @@
|
|
|
87
88
|
left: 0;
|
|
88
89
|
pointer-events: none;
|
|
89
90
|
width: 100%;
|
|
91
|
+
overflow: hidden;
|
|
92
|
+
max-width: 100%;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
&__header-wrap--has-drag-handle {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
position: relative;
|
|
25
25
|
width: 100%;
|
|
26
26
|
display: flex;
|
|
27
|
-
align-items:
|
|
27
|
+
align-items: space-between;
|
|
28
28
|
gap: var(--base);
|
|
29
29
|
padding-bottom: 1px;
|
|
30
30
|
z-index: 4;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
align-items: center;
|
|
37
37
|
flex-grow: 1;
|
|
38
38
|
overflow: hidden;
|
|
39
|
+
padding: base(0.8) 0;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
&__meta {
|
|
@@ -46,6 +47,10 @@
|
|
|
46
47
|
gap: var(--base);
|
|
47
48
|
margin: 0;
|
|
48
49
|
width: 100%;
|
|
50
|
+
|
|
51
|
+
& button {
|
|
52
|
+
margin: 0;
|
|
53
|
+
}
|
|
49
54
|
}
|
|
50
55
|
|
|
51
56
|
&__list-item {
|
|
@@ -64,6 +69,7 @@
|
|
|
64
69
|
white-space: nowrap;
|
|
65
70
|
margin: 0;
|
|
66
71
|
font-weight: 600;
|
|
72
|
+
line-height: base(1.2);
|
|
67
73
|
}
|
|
68
74
|
|
|
69
75
|
&__label {
|
|
@@ -141,7 +147,7 @@
|
|
|
141
147
|
// The timestamps and meta can scroll past
|
|
142
148
|
// The same container needs to the sticky, though
|
|
143
149
|
// So we use a static height with a negative top equal to the meta height plus top padding
|
|
144
|
-
top:
|
|
150
|
+
top: base(-2.8);
|
|
145
151
|
padding-right: 0;
|
|
146
152
|
padding-left: 0;
|
|
147
153
|
|
|
@@ -154,8 +160,7 @@
|
|
|
154
160
|
&__content {
|
|
155
161
|
width: 100%;
|
|
156
162
|
overflow: auto;
|
|
157
|
-
|
|
158
|
-
|
|
163
|
+
padding-inline: base(2);
|
|
159
164
|
// this container has a fixed height
|
|
160
165
|
// this means the scrollbar (when present) overlaps the content
|
|
161
166
|
&::-webkit-scrollbar {
|
|
@@ -166,14 +171,13 @@
|
|
|
166
171
|
&__meta {
|
|
167
172
|
width: auto;
|
|
168
173
|
gap: calc(var(--base) / 2);
|
|
169
|
-
margin-left: var(--gutter-h);
|
|
170
174
|
|
|
171
175
|
&::after {
|
|
172
176
|
content: '';
|
|
173
177
|
display: block;
|
|
174
|
-
position:
|
|
178
|
+
position: absolute;
|
|
175
179
|
right: 0;
|
|
176
|
-
width:
|
|
180
|
+
width: base(0.8);
|
|
177
181
|
height: var(--base);
|
|
178
182
|
background: linear-gradient(to right, transparent, var(--theme-bg));
|
|
179
183
|
flex-shrink: 0;
|
|
@@ -183,6 +187,7 @@
|
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
&__controls-wrapper {
|
|
190
|
+
background-color: var(--theme-bg);
|
|
186
191
|
width: 100%;
|
|
187
192
|
transform: translate3d(0, 0, 0);
|
|
188
193
|
padding-right: var(--gutter-h);
|
|
@@ -215,4 +220,10 @@
|
|
|
215
220
|
}
|
|
216
221
|
}
|
|
217
222
|
}
|
|
223
|
+
|
|
224
|
+
@include small-break {
|
|
225
|
+
&__content {
|
|
226
|
+
padding-inline: base(0.8);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
218
229
|
}
|
|
@@ -63,17 +63,11 @@
|
|
|
63
63
|
height: base(1);
|
|
64
64
|
|
|
65
65
|
svg {
|
|
66
|
-
width: base(2
|
|
67
|
-
height: base(2
|
|
66
|
+
width: base(2);
|
|
67
|
+
height: base(2);
|
|
68
68
|
position: relative;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
[dir='rtl'] & {
|
|
74
|
-
right: base(-0.825);
|
|
75
|
-
}
|
|
76
|
-
top: base(-0.825);
|
|
69
|
+
inset-inline-start: base(-0.5);
|
|
70
|
+
top: base(-0.5);
|
|
77
71
|
|
|
78
72
|
.stroke {
|
|
79
73
|
stroke-width: 2px;
|
|
@@ -48,10 +48,22 @@
|
|
|
48
48
|
&__wrap {
|
|
49
49
|
flex-wrap: wrap;
|
|
50
50
|
background-color: unset;
|
|
51
|
+
padding: 0;
|
|
52
|
+
position: relative;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.icon--search {
|
|
56
|
+
position: absolute;
|
|
57
|
+
top: base(0.4);
|
|
58
|
+
inset-inline-start: base(0.4);
|
|
59
|
+
z-index: 1;
|
|
51
60
|
}
|
|
52
61
|
|
|
53
62
|
.search-filter {
|
|
54
63
|
width: 100%;
|
|
64
|
+
input {
|
|
65
|
+
padding: base(0.4) base(2);
|
|
66
|
+
}
|
|
55
67
|
}
|
|
56
68
|
|
|
57
69
|
&__buttons-wrap {
|
|
@@ -64,11 +76,8 @@
|
|
|
64
76
|
}
|
|
65
77
|
|
|
66
78
|
.pill {
|
|
67
|
-
padding: base(0.
|
|
68
|
-
|
|
69
|
-
svg {
|
|
70
|
-
margin-left: auto;
|
|
71
|
-
}
|
|
79
|
+
padding: base(0.2) base(0.2) base(0.2) base(0.4);
|
|
80
|
+
justify-content: space-between;
|
|
72
81
|
}
|
|
73
82
|
}
|
|
74
83
|
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
height: base(1);
|
|
66
66
|
|
|
67
67
|
svg {
|
|
68
|
-
width: base(2
|
|
69
|
-
height: base(2
|
|
68
|
+
width: base(2);
|
|
69
|
+
height: base(2);
|
|
70
70
|
position: relative;
|
|
71
|
-
|
|
72
|
-
top: base(-0.
|
|
71
|
+
inset-inline-start: base(-0.5);
|
|
72
|
+
top: base(-0.5);
|
|
73
73
|
|
|
74
74
|
.stroke {
|
|
75
75
|
stroke-width: 2px;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/Localizer/LocalizerLabel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/elements/Localizer/LocalizerLabel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,cAAc,CAAA;AAIrB,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAiBA,CAAA"}
|
|
@@ -18,16 +18,17 @@ export const LocalizerLabel = (props)=>{
|
|
|
18
18
|
className
|
|
19
19
|
].filter(Boolean).join(' '),
|
|
20
20
|
children: [
|
|
21
|
-
/*#__PURE__*/
|
|
21
|
+
/*#__PURE__*/ _jsxs("div", {
|
|
22
22
|
className: `${baseClass}__label`,
|
|
23
|
-
children:
|
|
23
|
+
children: [
|
|
24
|
+
`${t('general:locale')}:`,
|
|
25
|
+
" "
|
|
26
|
+
]
|
|
24
27
|
}),
|
|
25
|
-
" ",
|
|
26
28
|
/*#__PURE__*/ _jsx("span", {
|
|
27
29
|
className: `${baseClass}__current-label`,
|
|
28
30
|
children: `${getTranslation(locale.label, i18n)}`
|
|
29
31
|
}),
|
|
30
|
-
" ",
|
|
31
32
|
/*#__PURE__*/ _jsx(ChevronIcon, {
|
|
32
33
|
className: `${baseClass}__chevron`
|
|
33
34
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/elements/Localizer/LocalizerLabel/index.tsx"],"sourcesContent":["'use client'\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { ChevronIcon } from '../../../icons/Chevron/index.js'\nimport { useLocale } from '../../../providers/Locale/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport './index.scss'\n\nconst baseClass = 'localizer-button'\n\nexport const LocalizerLabel: React.FC<{\n ariaLabel?: string\n className?: string\n}> = (props) => {\n const { ariaLabel, className } = props\n const locale = useLocale()\n const { i18n, t } = useTranslation()\n\n return (\n <div\n aria-label={ariaLabel || t('general:locale')}\n className={[baseClass, className].filter(Boolean).join(' ')}\n >\n <div className={`${baseClass}__label`}>{`${t('general:locale')}:`}
|
|
1
|
+
{"version":3,"sources":["../../../../src/elements/Localizer/LocalizerLabel/index.tsx"],"sourcesContent":["'use client'\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { ChevronIcon } from '../../../icons/Chevron/index.js'\nimport { useLocale } from '../../../providers/Locale/index.js'\nimport { useTranslation } from '../../../providers/Translation/index.js'\nimport './index.scss'\n\nconst baseClass = 'localizer-button'\n\nexport const LocalizerLabel: React.FC<{\n ariaLabel?: string\n className?: string\n}> = (props) => {\n const { ariaLabel, className } = props\n const locale = useLocale()\n const { i18n, t } = useTranslation()\n\n return (\n <div\n aria-label={ariaLabel || t('general:locale')}\n className={[baseClass, className].filter(Boolean).join(' ')}\n >\n <div className={`${baseClass}__label`}>{`${t('general:locale')}:`} </div>\n <span className={`${baseClass}__current-label`}>\n {`${getTranslation(locale.label, i18n)}`}\n </span>\n <ChevronIcon className={`${baseClass}__chevron`} />\n </div>\n )\n}\n"],"names":["getTranslation","React","ChevronIcon","useLocale","useTranslation","baseClass","LocalizerLabel","props","ariaLabel","className","locale","i18n","t","div","aria-label","filter","Boolean","join","span","label"],"mappings":"AAAA;;AACA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,WAAW,QAAO;AAEzB,SAASC,WAAW,QAAQ,kCAAiC;AAC7D,SAASC,SAAS,QAAQ,qCAAoC;AAC9D,SAASC,cAAc,QAAQ,0CAAyC;AACxE,OAAO,eAAc;AAErB,MAAMC,YAAY;AAElB,OAAO,MAAMC,iBAGR,CAACC;IACJ,MAAM,EAAEC,SAAS,EAAEC,SAAS,EAAE,GAAGF;IACjC,MAAMG,SAASP;IACf,MAAM,EAAEQ,IAAI,EAAEC,CAAC,EAAE,GAAGR;IAEpB,qBACE,MAACS;QACCC,cAAYN,aAAaI,EAAE;QAC3BH,WAAW;YAACJ;YAAWI;SAAU,CAACM,MAAM,CAACC,SAASC,IAAI,CAAC;;0BAEvD,MAACJ;gBAAIJ,WAAW,CAAC,EAAEJ,UAAU,OAAO,CAAC;;oBAAG,CAAC,EAAEO,EAAE,kBAAkB,CAAC,CAAC;oBAAC;;;0BAClE,KAACM;gBAAKT,WAAW,CAAC,EAAEJ,UAAU,eAAe,CAAC;0BAC3C,CAAC,EAAEL,eAAeU,OAAOS,KAAK,EAAER,MAAM,CAAC;;0BAE1C,KAACT;gBAAYO,WAAW,CAAC,EAAEJ,UAAU,SAAS,CAAC;;;;AAGrD,EAAC"}
|
|
@@ -5,12 +5,18 @@
|
|
|
5
5
|
align-items: center;
|
|
6
6
|
white-space: nowrap;
|
|
7
7
|
display: flex;
|
|
8
|
+
padding-inline-start: base(0.4);
|
|
9
|
+
padding-inline-end: base(0.1);
|
|
10
|
+
gap: 0;
|
|
11
|
+
background-color: var(--theme-elevation-100);
|
|
12
|
+
border-radius: var(--style-radius-s);
|
|
8
13
|
|
|
9
14
|
&__label {
|
|
10
15
|
color: var(--theme-elevation-500);
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
&__chevron {
|
|
19
|
+
padding: base(0.1);
|
|
14
20
|
.stroke {
|
|
15
21
|
stroke: currentColor;
|
|
16
22
|
}
|
|
@@ -6,7 +6,7 @@ import { useTranslation } from '../../../../../providers/Translation/index.js';
|
|
|
6
6
|
export const ArrayCell = ({ cellData, labels })=>{
|
|
7
7
|
const { i18n } = useTranslation();
|
|
8
8
|
const arrayFields = cellData ?? [];
|
|
9
|
-
const label = `${arrayFields.length} ${getTranslation(labels?.plural || i18n.t('general:rows'), i18n)}`;
|
|
9
|
+
const label = arrayFields.length === 1 ? `${arrayFields.length} ${getTranslation(labels?.singular || i18n.t('general:rows'), i18n)}` : `${arrayFields.length} ${getTranslation(labels?.plural || i18n.t('general:rows'), i18n)}`;
|
|
10
10
|
return /*#__PURE__*/ _jsx("span", {
|
|
11
11
|
children: label
|
|
12
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/elements/Table/DefaultCell/fields/Array/index.tsx"],"sourcesContent":["'use client'\nimport type { CellComponentProps, DefaultCellComponentProps } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { useTranslation } from '../../../../../providers/Translation/index.js'\n\nexport interface ArrayCellProps extends DefaultCellComponentProps<Record<string, unknown>[]> {\n labels: CellComponentProps['labels']\n}\n\nexport const ArrayCell: React.FC<ArrayCellProps> = ({ cellData, labels }) => {\n const { i18n } = useTranslation()\n\n const arrayFields = cellData ?? []\n\n const label
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/elements/Table/DefaultCell/fields/Array/index.tsx"],"sourcesContent":["'use client'\nimport type { CellComponentProps, DefaultCellComponentProps } from 'payload'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport React from 'react'\n\nimport { useTranslation } from '../../../../../providers/Translation/index.js'\n\nexport interface ArrayCellProps extends DefaultCellComponentProps<Record<string, unknown>[]> {\n labels: CellComponentProps['labels']\n}\n\nexport const ArrayCell: React.FC<ArrayCellProps> = ({ cellData, labels }) => {\n const { i18n } = useTranslation()\n\n const arrayFields = cellData ?? []\n\n const label =\n arrayFields.length === 1\n ? `${arrayFields.length} ${getTranslation(labels?.singular || i18n.t('general:rows'), i18n)}`\n : `${arrayFields.length} ${getTranslation(labels?.plural || i18n.t('general:rows'), i18n)}`\n\n return <span>{label}</span>\n}\n"],"names":["getTranslation","React","useTranslation","ArrayCell","cellData","labels","i18n","arrayFields","label","length","singular","t","plural","span"],"mappings":"AAAA;;AAGA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,OAAOC,WAAW,QAAO;AAEzB,SAASC,cAAc,QAAQ,gDAA+C;AAM9E,OAAO,MAAMC,YAAsC,CAAC,EAAEC,QAAQ,EAAEC,MAAM,EAAE;IACtE,MAAM,EAAEC,IAAI,EAAE,GAAGJ;IAEjB,MAAMK,cAAcH,YAAY,EAAE;IAElC,MAAMI,QACJD,YAAYE,MAAM,KAAK,IACnB,CAAC,EAAEF,YAAYE,MAAM,CAAC,CAAC,EAAET,eAAeK,QAAQK,YAAYJ,KAAKK,CAAC,CAAC,iBAAiBL,MAAM,CAAC,GAC3F,CAAC,EAAEC,YAAYE,MAAM,CAAC,CAAC,EAAET,eAAeK,QAAQO,UAAUN,KAAKK,CAAC,CAAC,iBAAiBL,MAAM,CAAC;IAE/F,qBAAO,KAACO;kBAAML;;AAChB,EAAC"}
|