@micromag/screen-title 0.4.17 → 0.4.18

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 (2) hide show
  1. package/es/index.d.ts +200 -29
  2. package/package.json +3 -3
package/es/index.d.ts CHANGED
@@ -1,9 +1,206 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HeadingElement, TextElement, BoxStyle, Label, Header, Footer, BackgroundElement } from '@micromag/core';
3
3
 
4
- declare function TitleWithBoxScreen(props: any): react_jsx_runtime.JSX.Element;
4
+ interface TitleScreenProps {
5
+ layout?: 'top' | 'middle' | 'bottom' | 'split' | 'split-top' | 'split-bottom';
6
+ title?: HeadingElement | null;
7
+ subtitle?: HeadingElement | null;
8
+ description?: TextElement | null;
9
+ boxStyle?: BoxStyle | null;
10
+ withSubtitle?: boolean;
11
+ withDescription?: boolean;
12
+ withBox?: boolean;
13
+ spacing?: number;
14
+ descriptionEmptyLabel?: Label;
15
+ header?: Header | null;
16
+ footer?: Footer | null;
17
+ background?: BackgroundElement | null;
18
+ current?: boolean;
19
+ active?: boolean;
20
+ transitionStagger?: number;
21
+ className?: string | null;
22
+ }
23
+ declare function TitleScreen({ layout, title, subtitle, description, boxStyle, withSubtitle, withDescription, withBox, spacing, descriptionEmptyLabel, header, footer, background, current, active, className, }: TitleScreenProps): react_jsx_runtime.JSX.Element;
24
+
25
+ interface TitleSubtitleCreditsScreenProps {
26
+ credits?: TextElement | null;
27
+ }
28
+ declare function TitleSubtitleCreditsScreen({ credits, ...props }: TitleSubtitleCreditsScreenProps): react_jsx_runtime.JSX.Element;
5
29
 
6
- declare const _default: {
30
+ interface TitleWithBoxScreenProps {
31
+ [key: string]: unknown;
32
+ }
33
+ declare function TitleWithBoxScreen(props: TitleWithBoxScreenProps): react_jsx_runtime.JSX.Element;
34
+
35
+ declare const _default: ({
36
+ id: string;
37
+ type: string;
38
+ group: {
39
+ label: {
40
+ defaultMessage: string;
41
+ description: string;
42
+ };
43
+ order: number;
44
+ };
45
+ title: {
46
+ defaultMessage: string;
47
+ description: string;
48
+ };
49
+ component: typeof TitleScreen;
50
+ layouts: string[];
51
+ fields: ({
52
+ name: string;
53
+ type: string;
54
+ defaultValue: string;
55
+ label: {
56
+ defaultMessage: string;
57
+ description: string;
58
+ };
59
+ theme?: undefined;
60
+ } | {
61
+ name: string;
62
+ type: string;
63
+ theme: {
64
+ textStyle: string;
65
+ badge?: undefined;
66
+ callToAction?: undefined;
67
+ };
68
+ label: {
69
+ defaultMessage: string;
70
+ description: string;
71
+ };
72
+ defaultValue?: undefined;
73
+ } | {
74
+ name: string;
75
+ type: string;
76
+ label: {
77
+ defaultMessage: string;
78
+ description: string;
79
+ };
80
+ defaultValue?: undefined;
81
+ theme?: undefined;
82
+ } | {
83
+ name: string;
84
+ type: string;
85
+ label: {
86
+ defaultMessage: string;
87
+ description: string;
88
+ };
89
+ theme: {
90
+ badge: {
91
+ label: {
92
+ textStyle: string;
93
+ };
94
+ boxStyle: string;
95
+ };
96
+ textStyle?: undefined;
97
+ callToAction?: undefined;
98
+ };
99
+ defaultValue?: undefined;
100
+ } | {
101
+ name: string;
102
+ type: string;
103
+ label: {
104
+ defaultMessage: string;
105
+ description: string;
106
+ };
107
+ theme: {
108
+ callToAction: {
109
+ label: {
110
+ textStyle: string;
111
+ };
112
+ boxStyle: string;
113
+ };
114
+ textStyle?: undefined;
115
+ badge?: undefined;
116
+ };
117
+ defaultValue?: undefined;
118
+ })[];
119
+ } | {
120
+ id: string;
121
+ type: string;
122
+ group: {
123
+ label: {
124
+ defaultMessage: string;
125
+ description: string;
126
+ };
127
+ order: number;
128
+ };
129
+ title: {
130
+ defaultMessage: string;
131
+ description: string;
132
+ };
133
+ component: typeof TitleSubtitleCreditsScreen;
134
+ layouts: string[];
135
+ fields: ({
136
+ name: string;
137
+ type: string;
138
+ defaultValue: string;
139
+ label: {
140
+ defaultMessage: string;
141
+ description: string;
142
+ };
143
+ theme?: undefined;
144
+ } | {
145
+ name: string;
146
+ type: string;
147
+ theme: {
148
+ textStyle: string;
149
+ badge?: undefined;
150
+ callToAction?: undefined;
151
+ };
152
+ label: {
153
+ defaultMessage: string;
154
+ description: string;
155
+ };
156
+ defaultValue?: undefined;
157
+ } | {
158
+ name: string;
159
+ type: string;
160
+ label: {
161
+ defaultMessage: string;
162
+ description: string;
163
+ };
164
+ defaultValue?: undefined;
165
+ theme?: undefined;
166
+ } | {
167
+ name: string;
168
+ type: string;
169
+ label: {
170
+ defaultMessage: string;
171
+ description: string;
172
+ };
173
+ theme: {
174
+ badge: {
175
+ label: {
176
+ textStyle: string;
177
+ };
178
+ boxStyle: string;
179
+ };
180
+ textStyle?: undefined;
181
+ callToAction?: undefined;
182
+ };
183
+ defaultValue?: undefined;
184
+ } | {
185
+ name: string;
186
+ type: string;
187
+ label: {
188
+ defaultMessage: string;
189
+ description: string;
190
+ };
191
+ theme: {
192
+ callToAction: {
193
+ label: {
194
+ textStyle: string;
195
+ };
196
+ boxStyle: string;
197
+ };
198
+ textStyle?: undefined;
199
+ badge?: undefined;
200
+ };
201
+ defaultValue?: undefined;
202
+ })[];
203
+ } | {
7
204
  id: string;
8
205
  type: string;
9
206
  group: {
@@ -115,36 +312,10 @@ declare const _default: {
115
312
  isList?: undefined;
116
313
  fields?: undefined;
117
314
  })[];
118
- }[];
119
-
120
- interface TitleScreenProps {
121
- layout?: 'top' | 'middle' | 'bottom' | 'split' | 'split-top' | 'split-bottom';
122
- title?: HeadingElement | null;
123
- subtitle?: HeadingElement | null;
124
- description?: TextElement | null;
125
- boxStyle?: BoxStyle | null;
126
- withSubtitle?: boolean;
127
- withDescription?: boolean;
128
- withBox?: boolean;
129
- spacing?: number;
130
- descriptionEmptyLabel?: Label;
131
- header?: Header | null;
132
- footer?: Footer | null;
133
- background?: BackgroundElement | null;
134
- current?: boolean;
135
- active?: boolean;
136
- transitionStagger?: number;
137
- className?: string | null;
138
- }
139
- declare function TitleScreen({ layout, title, subtitle, description, boxStyle, withSubtitle, withDescription, withBox, spacing, descriptionEmptyLabel, header, footer, background, current, active, className, }: TitleScreenProps): react_jsx_runtime.JSX.Element;
315
+ })[];
140
316
 
141
317
  declare function TitleSubtitleScreen({ ...props }: {
142
318
  [x: string]: any;
143
319
  }): react_jsx_runtime.JSX.Element;
144
320
 
145
- interface TitleSubtitleCreditsScreenProps {
146
- credits?: TextElement | null;
147
- }
148
- declare function TitleSubtitleCreditsScreen({ credits, ...props }: TitleSubtitleCreditsScreenProps): react_jsx_runtime.JSX.Element;
149
-
150
321
  export { TitleScreen, TitleSubtitleCreditsScreen, TitleSubtitleScreen, _default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-title",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -67,7 +67,7 @@
67
67
  "@micromag/element-footer": "^0.4.17",
68
68
  "@micromag/element-header": "^0.4.17",
69
69
  "@micromag/element-heading": "^0.4.17",
70
- "@micromag/element-layout": "^0.4.17",
70
+ "@micromag/element-layout": "^0.4.18",
71
71
  "@micromag/element-text": "^0.4.17",
72
72
  "@micromag/transforms": "^0.4.17",
73
73
  "classnames": "^2.2.6",
@@ -79,6 +79,6 @@
79
79
  "access": "public",
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
- "gitHead": "d9c4b170763e7510eb07100538af44524ca9292c",
82
+ "gitHead": "3066e7aa469d2ab1bfcf106bcb5c3153a9636aca",
83
83
  "types": "es/index.d.ts"
84
84
  }