@motech-development/breeze-ui 4.12.0 → 4.15.0
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/lib/index.d.ts +6 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +14301 -1954
- package/lib/index.js.map +1 -1
- package/lib/licenses/@internationalized/number/LICENSE +201 -0
- package/lib/licenses/@internationalized/string/LICENSE +201 -0
- package/lib/licenses/clsx/license +9 -0
- package/lib/licenses/react-aria/LICENSE +201 -0
- package/lib/licenses/react-aria-components/LICENSE +201 -0
- package/lib/licenses/react-stately/LICENSE +201 -0
- package/lib/licenses/use-sync-external-store/LICENSE +21 -0
- package/lib/motion/view-transitions.d.ts +4 -0
- package/lib/motion/view-transitions.d.ts.map +1 -1
- package/lib/overlays/OverlaySurface.d.ts +6 -1
- package/lib/overlays/OverlaySurface.d.ts.map +1 -1
- package/lib/patterns/AttachmentRow/AttachmentRow.d.ts +65 -0
- package/lib/patterns/AttachmentRow/AttachmentRow.d.ts.map +1 -0
- package/lib/patterns/DocumentViewer/DocumentViewer.d.ts +45 -0
- package/lib/patterns/DocumentViewer/DocumentViewer.d.ts.map +1 -0
- package/lib/patterns/DocumentViewer/pdf-renderer.d.ts +28 -0
- package/lib/patterns/DocumentViewer/pdf-renderer.d.ts.map +1 -0
- package/lib/patterns/FileDropZone/FileDropZone.d.ts +22 -0
- package/lib/patterns/FileDropZone/FileDropZone.d.ts.map +1 -0
- package/lib/primitives/Menu/Menu.d.ts +3 -1
- package/lib/primitives/Menu/Menu.d.ts.map +1 -1
- package/lib/provider/BreezeProvider.d.ts.map +1 -1
- package/lib/provider/en-GB.d.ts +34 -0
- package/lib/provider/en-GB.d.ts.map +1 -1
- package/lib/styles.css +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Adobe
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2019 Adobe
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -28,6 +28,10 @@ export type ViewTransitionParticipantOptions = Readonly<{
|
|
|
28
28
|
}>;
|
|
29
29
|
/** Runs an application-owned DOM commit inside an opted-in browser transition. */
|
|
30
30
|
export declare function startViewTransition(update: () => void | Promise<void>, requestedTypes: readonly ViewTransitionType[]): Promise<void>;
|
|
31
|
+
/** Waits for a Breeze-owned transition's animation, for staged content swaps. */
|
|
32
|
+
export declare function startViewTransitionAndWait(update: () => void | Promise<void>, requestedTypes: readonly ViewTransitionType[]): Promise<void>;
|
|
33
|
+
/** Resolves after the current transition, if any, has finished its animation. */
|
|
34
|
+
export declare function waitForCurrentViewTransition(): Promise<void>;
|
|
31
35
|
/** Declares a unique name that Breeze CSS grants only for its listed types. */
|
|
32
36
|
export declare function useViewTransitionParticipant<Element extends HTMLElement = HTMLElement>(participant: ViewTransitionParticipantOptions): RefCallback<Element>;
|
|
33
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-transitions.d.ts","sourceRoot":"","sources":["../../src/motion/view-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,OAAO,CAAC;AAQf,2DAA2D;AAC3D,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AA2B7E,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEpE,MAAM,MAAM,gCAAgC,GACxC,QAAQ,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACtC,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"view-transitions.d.ts","sourceRoot":"","sources":["../../src/motion/view-transitions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,OAAO,CAAC;AAQf,2DAA2D;AAC3D,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AA2B7E,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAKjB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEpE,MAAM,MAAM,gCAAgC,GACxC,QAAQ,CAAC;IACP,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,kBAAkB,EAAE,CAAC;CACtC,CAAC,GACF,QAAQ,CAAC;IACP,IAAI,EAAE,kBAAkB,CAAC;CAC1B,CAAC,CAAC;AA+JP,kFAAkF;AAClF,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAClC,cAAc,EAAE,SAAS,kBAAkB,EAAE,GAC5C,OAAO,CAAC,IAAI,CAAC,CAEf;AAED,iFAAiF;AACjF,wBAAsB,0BAA0B,CAC9C,MAAM,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAClC,cAAc,EAAE,SAAS,kBAAkB,EAAE,GAC5C,OAAO,CAAC,IAAI,CAAC,CAKf;AAED,iFAAiF;AACjF,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,IAAI,CAAC,CAU5D;AAwBD,+EAA+E;AAC/E,wBAAgB,4BAA4B,CAC1C,OAAO,SAAS,WAAW,GAAG,WAAW,EACzC,WAAW,EAAE,gCAAgC,GAAG,WAAW,CAAC,OAAO,CAAC,CA6FrE"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { OverlayKind, OverlayProps } from './overlay.types';
|
|
2
|
-
declare function OverlaySurface({ children, defaultOpen, dismissible, kind, onOpenChange, open: controlledOpen, placement, title, trigger, }: Readonly<Omit<OverlayProps, 'open' | 'defaultOpen' | 'onOpenChange'> & {
|
|
2
|
+
declare function OverlaySurface({ children, defaultOpen, dismissible, fullScreen, kind, onOpenChange, open: controlledOpen, placement, closingTransition, showHeader, viewerSurface, title, trigger, }: Readonly<Omit<OverlayProps, 'open' | 'defaultOpen' | 'onOpenChange' | 'trigger'> & {
|
|
3
3
|
open?: boolean;
|
|
4
4
|
defaultOpen?: boolean;
|
|
5
|
+
fullScreen?: boolean;
|
|
6
|
+
closingTransition?: boolean;
|
|
7
|
+
showHeader?: boolean;
|
|
8
|
+
viewerSurface?: boolean;
|
|
5
9
|
onOpenChange?: (open: boolean) => void;
|
|
6
10
|
kind: OverlayKind;
|
|
7
11
|
placement?: 'top' | 'bottom' | 'start' | 'end';
|
|
12
|
+
trigger?: string;
|
|
8
13
|
}>): import("react").JSX.Element;
|
|
9
14
|
export default OverlaySurface;
|
|
10
15
|
//# sourceMappingURL=OverlaySurface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverlaySurface.d.ts","sourceRoot":"","sources":["../../src/overlays/OverlaySurface.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"OverlaySurface.d.ts","sourceRoot":"","sources":["../../src/overlays/OverlaySurface.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAyCjE,iBAAS,cAAc,CAAC,EACtB,QAAQ,EACR,WAAmB,EACnB,WAAkB,EAClB,UAAkB,EAClB,IAAI,EACJ,YAAY,EACZ,IAAI,EAAE,cAAc,EACpB,SAAoB,EACpB,iBAAyB,EACzB,UAAiB,EACjB,aAAqB,EACrB,KAAK,EACL,OAAO,GACR,EAAE,QAAQ,CACT,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,aAAa,GAAG,cAAc,GAAG,SAAS,CAAC,GAAG;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CACF,+BAkYA;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { IconName } from '../../primitives/Icon/Icon';
|
|
2
|
+
/** The neutral visual category used to distinguish a photograph from a document. */
|
|
3
|
+
export type AttachmentRowFileType = 'document' | 'photo';
|
|
4
|
+
/** An app-owned action exposed from the attachment's overflow menu. */
|
|
5
|
+
export interface AttachmentRowAction {
|
|
6
|
+
/** Optional secondary explanation shown with the action label. */
|
|
7
|
+
description?: string;
|
|
8
|
+
/** Removes the action from keyboard interaction while unavailable. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Optional curated Breeze icon. */
|
|
11
|
+
icon?: IconName;
|
|
12
|
+
/** Stable action identifier. */
|
|
13
|
+
id: string;
|
|
14
|
+
/** Visible and accessible action label. */
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
interface AttachmentRowContentBaseProps {
|
|
18
|
+
/** Visible name of the attached file. */
|
|
19
|
+
filename: string;
|
|
20
|
+
/** Called when the direct Open action is activated. */
|
|
21
|
+
onOpen?: () => void;
|
|
22
|
+
/** Shared element name for a DocumentViewer that opens from this row. */
|
|
23
|
+
transitionName?: string;
|
|
24
|
+
/** File size in bytes, formatted for the Breeze provider locale. */
|
|
25
|
+
sizeBytes: number;
|
|
26
|
+
/** Visible attachment state, such as “Uploaded” or “Upload failed”. */
|
|
27
|
+
status: string;
|
|
28
|
+
/** Attachment content is available and displayed. */
|
|
29
|
+
loading?: false;
|
|
30
|
+
}
|
|
31
|
+
type AttachmentRowThumbnailProps = {
|
|
32
|
+
/** Distinguishes a document from a photograph. */
|
|
33
|
+
fileType: 'document';
|
|
34
|
+
/** Only photographs can provide an image thumbnail. */
|
|
35
|
+
thumbnailUrl?: never;
|
|
36
|
+
} | {
|
|
37
|
+
/** Distinguishes a document from a photograph. */
|
|
38
|
+
fileType: 'photo';
|
|
39
|
+
/** Optional image rendered as the photograph thumbnail. */
|
|
40
|
+
thumbnailUrl?: string;
|
|
41
|
+
};
|
|
42
|
+
type AttachmentRowActionsProps = {
|
|
43
|
+
/** App-owned actions require an activation callback. */
|
|
44
|
+
actions: AttachmentRowAction[];
|
|
45
|
+
/** Called with the selected app-owned menu action. */
|
|
46
|
+
onAction: (action: AttachmentRowAction) => void;
|
|
47
|
+
} | {
|
|
48
|
+
/** App-owned actions require an activation callback. */
|
|
49
|
+
actions?: never;
|
|
50
|
+
/** A callback is only used when actions are provided. */
|
|
51
|
+
onAction?: never;
|
|
52
|
+
};
|
|
53
|
+
type AttachmentRowContentProps = AttachmentRowContentBaseProps & AttachmentRowThumbnailProps & AttachmentRowActionsProps;
|
|
54
|
+
interface AttachmentRowLoadingProps {
|
|
55
|
+
/** Omits file content while its shape is unavailable. */
|
|
56
|
+
loading: true;
|
|
57
|
+
/** Shared element name used once this row has content. */
|
|
58
|
+
transitionName?: string;
|
|
59
|
+
}
|
|
60
|
+
/** Props for a neutral attached-file row or its owned loading placeholder. */
|
|
61
|
+
export type AttachmentRowProps = AttachmentRowContentProps | AttachmentRowLoadingProps;
|
|
62
|
+
/** Presents an attached file with a type thumbnail, readable state and actions. */
|
|
63
|
+
export declare function AttachmentRow(props: Readonly<AttachmentRowProps>): import("react").JSX.Element;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=AttachmentRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AttachmentRow.d.ts","sourceRoot":"","sources":["../../../src/patterns/AttachmentRow/AttachmentRow.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAgD3D,oFAAoF;AACpF,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,OAAO,CAAC;AAEzD,uEAAuE;AACvE,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oCAAoC;IACpC,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,6BAA6B;IACrC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,yEAAyE;IACzE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oEAAoE;IACpE,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,KAAK,2BAA2B,GAC5B;IACE,kDAAkD;IAClD,QAAQ,EAAE,UAAU,CAAC;IACrB,uDAAuD;IACvD,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB,GACD;IACE,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,2DAA2D;IAC3D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEN,KAAK,yBAAyB,GAC1B;IACE,wDAAwD;IACxD,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,sDAAsD;IACtD,QAAQ,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACjD,GACD;IACE,wDAAwD;IACxD,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CAAC;AAEN,KAAK,yBAAyB,GAAG,6BAA6B,GAC5D,2BAA2B,GAC3B,yBAAyB,CAAC;AAE5B,UAAU,yBAAyB;IACjC,yDAAyD;IACzD,OAAO,EAAE,IAAI,CAAC;IACd,0DAA0D;IAC1D,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,8EAA8E;AAC9E,MAAM,MAAM,kBAAkB,GAC1B,yBAAyB,GACzB,yBAAyB,CAAC;AA0H9B,mFAAmF;AACnF,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,+BA6HhE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** The content kind used to select the image, PDF or native frame renderer. */
|
|
2
|
+
export type DocumentViewerMediaType = 'document' | 'image' | 'pdf';
|
|
3
|
+
/** Optional PDF.js worker URL and auxiliary asset directories for PDF files. */
|
|
4
|
+
export interface DocumentViewerPdfAssets {
|
|
5
|
+
readonly cMapUrl?: string;
|
|
6
|
+
readonly standardFontDataUrl?: string;
|
|
7
|
+
/** URL emitted and hosted by the application for its installed PDF.js worker. */
|
|
8
|
+
readonly workerSrc?: string;
|
|
9
|
+
}
|
|
10
|
+
interface DocumentViewerBaseProps {
|
|
11
|
+
/** Name used for the download and the labelled viewer dialog. */
|
|
12
|
+
downloadName?: string;
|
|
13
|
+
/** Current open state controlled by the owning application. */
|
|
14
|
+
open: boolean;
|
|
15
|
+
/** Reports state changes requested by the viewer's actions. */
|
|
16
|
+
onOpenChange: (open: boolean) => void;
|
|
17
|
+
/** Called when the app-owned Replace toolbar action is activated. */
|
|
18
|
+
onReplace?: () => void;
|
|
19
|
+
/** Called when the app-owned Remove toolbar action is activated. */
|
|
20
|
+
onRemove?: () => void;
|
|
21
|
+
/** URL of the source image or document. */
|
|
22
|
+
src: string;
|
|
23
|
+
/** Visible title and accessible name for the viewer dialog. */
|
|
24
|
+
title: string;
|
|
25
|
+
/** Name shared with the AttachmentRow that opens this viewer. */
|
|
26
|
+
transitionName?: string;
|
|
27
|
+
}
|
|
28
|
+
type DocumentViewerMediaProps = {
|
|
29
|
+
mediaType: 'document' | 'image';
|
|
30
|
+
pdfAssets?: never;
|
|
31
|
+
} | {
|
|
32
|
+
mediaType: 'pdf';
|
|
33
|
+
/** Optional worker and auxiliary assets used to render the PDF. */
|
|
34
|
+
pdfAssets?: DocumentViewerPdfAssets;
|
|
35
|
+
};
|
|
36
|
+
/** Props for an attachment preview dialog with built-in reading controls. */
|
|
37
|
+
export type DocumentViewerProps = DocumentViewerBaseProps & DocumentViewerMediaProps;
|
|
38
|
+
/**
|
|
39
|
+
* Opens an image or document in a full-screen viewer with its own toolbar.
|
|
40
|
+
*
|
|
41
|
+
* @summary A modal attachment preview with lazy PDF rendering.
|
|
42
|
+
*/
|
|
43
|
+
export declare function DocumentViewer({ downloadName, mediaType, onOpenChange, onRemove, onReplace, open, pdfAssets, src, title, transitionName, }: Readonly<DocumentViewerProps>): import("react").JSX.Element;
|
|
44
|
+
export {};
|
|
45
|
+
//# sourceMappingURL=DocumentViewer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocumentViewer.d.ts","sourceRoot":"","sources":["../../../src/patterns/DocumentViewer/DocumentViewer.tsx"],"names":[],"mappings":"AA4EA,+EAA+E;AAC/E,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,OAAO,GAAG,KAAK,CAAC;AAEnE,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IACtC,iFAAiF;IACjF,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,uBAAuB;IAC/B,iEAAiE;IACjE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,IAAI,EAAE,OAAO,CAAC;IACd,+DAA+D;IAC/D,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,oEAAoE;IACpE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,2CAA2C;IAC3C,GAAG,EAAE,MAAM,CAAC;IACZ,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,KAAK,wBAAwB,GACzB;IACE,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IAChC,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,GACD;IACE,SAAS,EAAE,KAAK,CAAC;IACjB,mEAAmE;IACnE,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC;AAEN,6EAA6E;AAC7E,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,GACvD,wBAAwB,CAAC;AAwyC3B;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,SAAS,EACT,GAAG,EACH,KAAK,EACL,cAAc,GACf,EAAE,QAAQ,CAAC,mBAAmB,CAAC,+BA2R/B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { PDFDocumentProxy, TextLayer } from 'pdfjs-dist';
|
|
2
|
+
export interface PdfSession {
|
|
3
|
+
dispose: () => void;
|
|
4
|
+
document: PDFDocumentProxy;
|
|
5
|
+
textLayer: typeof TextLayer;
|
|
6
|
+
}
|
|
7
|
+
export interface PdfAssetOptions {
|
|
8
|
+
cMapUrl?: string;
|
|
9
|
+
standardFontDataUrl?: string;
|
|
10
|
+
workerSrc?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Loads PDF.js and its matching worker only after a PDF has been opened. */
|
|
13
|
+
export declare function loadPdfDocument(source: string, signal: AbortSignal, assets?: PdfAssetOptions): Promise<PdfSession>;
|
|
14
|
+
interface PdfPageRenderOptions {
|
|
15
|
+
readonly TextLayer: PdfSession['textLayer'];
|
|
16
|
+
readonly canvas: HTMLCanvasElement;
|
|
17
|
+
readonly document: PDFDocumentProxy;
|
|
18
|
+
readonly outputScale?: number;
|
|
19
|
+
readonly pageNumber: number;
|
|
20
|
+
readonly rotation: number;
|
|
21
|
+
readonly scale: number;
|
|
22
|
+
readonly signal: AbortSignal;
|
|
23
|
+
readonly textLayerContainer: HTMLDivElement;
|
|
24
|
+
}
|
|
25
|
+
/** Paints one PDF page into a canvas and its selectable text layer. */
|
|
26
|
+
export declare function renderPdfPage({ TextLayer, canvas, document, outputScale, pageNumber, rotation, scale, signal, textLayerContainer, }: PdfPageRenderOptions): Promise<void>;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=pdf-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdf-renderer.d.ts","sourceRoot":"","sources":["../../../src/patterns/DocumentViewer/pdf-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAI9D,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,EAAE,OAAO,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAoBD,6EAA6E;AAC7E,wBAAsB,eAAe,CACnC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,WAAW,EACnB,MAAM,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,UAAU,CAAC,CAmErB;AAED,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,QAAQ,CAAC,kBAAkB,EAAE,cAAc,CAAC;CAC7C;AAED,uEAAuE;AACvE,wBAAsB,aAAa,CAAC,EAClC,SAAS,EACT,MAAM,EACN,QAAQ,EACR,WAAe,EACf,UAAU,EACV,QAAQ,EACR,KAAK,EACL,MAAM,EACN,kBAAkB,GACnB,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAwEtC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Props for a file chooser that accepts files by drop or picker. */
|
|
2
|
+
export interface FileDropZoneProps {
|
|
3
|
+
/** Allowed file extensions and MIME types, in the native `accept` format. */
|
|
4
|
+
accept?: string;
|
|
5
|
+
/** Number of files already attached; used with `maxFiles` for total limits. */
|
|
6
|
+
currentFileCount?: number;
|
|
7
|
+
/** Visible, accessible name for the drop area. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Maximum size for one file, in bytes. */
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
/** Maximum total number of attached files, including `currentFileCount`. */
|
|
12
|
+
maxFiles?: number;
|
|
13
|
+
/** Reports only accepted files, without exposing a browser event. */
|
|
14
|
+
onFilesAdded: (files: readonly File[]) => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Accepts files through a drop area or an accessible file picker button.
|
|
18
|
+
*
|
|
19
|
+
* @summary A file picker and drop target with visible validation feedback.
|
|
20
|
+
*/
|
|
21
|
+
export declare function FileDropZone({ accept, currentFileCount, label, maxFiles, maxSize, onFilesAdded, }: Readonly<FileDropZoneProps>): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=FileDropZone.d.ts.map
|