@civicactions/cmsds-open-data-components 3.0.0-alpha.2 → 3.0.0-alpha.20

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 (78) hide show
  1. package/README.md +20 -0
  2. package/dist/main.css +153 -35
  3. package/dist/main.css.map +1 -1
  4. package/dist/main.js +2770 -1928
  5. package/dist/main.js.map +1 -1
  6. package/dist/types.d.ts +174 -136
  7. package/dist/types.d.ts.map +1 -1
  8. package/package.json +12 -9
  9. package/lib/assets/frequencyMap.js +0 -22
  10. package/lib/assets/icons/close.js +0 -33
  11. package/lib/assets/icons/close.jsx +0 -24
  12. package/lib/assets/icons/copy.js +0 -33
  13. package/lib/assets/icons/copy.jsx +0 -23
  14. package/lib/assets/icons/download.js +0 -33
  15. package/lib/assets/icons/download.jsx +0 -23
  16. package/lib/assets/icons/settings.js +0 -34
  17. package/lib/assets/icons/settings.jsx +0 -24
  18. package/lib/assets/images/CMSGovLogo-O.png +0 -0
  19. package/lib/assets/images/CMSgov@2x-white-O.png +0 -0
  20. package/lib/assets/metadataMapping.js +0 -161
  21. package/lib/assets/metadataMapping.jsx +0 -110
  22. package/lib/commands/index.js +0 -7
  23. package/lib/commands/templates/footer.js +0 -61
  24. package/lib/commands/templates/header.js +0 -84
  25. package/lib/commands/templates/page_not_found.js +0 -14
  26. package/lib/components/ApiDocumentation/index.js +0 -24
  27. package/lib/components/Breadcrumb/index.js +0 -47
  28. package/lib/components/DataTableDensity/datatabledensity.test.js +0 -30
  29. package/lib/components/DataTableDensity/index.js +0 -47
  30. package/lib/components/DataTableRowChanger/datatablerowchanger.test.js +0 -49
  31. package/lib/components/DataTableRowChanger/index.js +0 -46
  32. package/lib/components/DatasetAdditionalInformation/index.js +0 -59
  33. package/lib/components/DatasetDownloads/datasetdownloads.test.js +0 -30
  34. package/lib/components/DatasetDownloads/index.js +0 -34
  35. package/lib/components/DatasetSearchFacets/dataset_search_facets.test.js +0 -103
  36. package/lib/components/DatasetSearchFacets/index.js +0 -104
  37. package/lib/components/DatasetSearchListItem/datasetsearchlistitem.test.js +0 -44
  38. package/lib/components/DatasetSearchListItem/index.js +0 -86
  39. package/lib/components/DatasetTags/datasettags.test.js +0 -40
  40. package/lib/components/DatasetTags/index.js +0 -38
  41. package/lib/components/Hero/index.js +0 -92
  42. package/lib/components/ManageColumns/index.js +0 -36
  43. package/lib/components/NavBar/index.js +0 -55
  44. package/lib/components/NavLink/index.js +0 -60
  45. package/lib/components/NavLink/navlink.test.js +0 -35
  46. package/lib/components/Pagination/index.js +0 -263
  47. package/lib/components/Pagination/pagination.test.js +0 -541
  48. package/lib/components/ResourceConditionField/ResourceConditionalField.test.js +0 -20
  49. package/lib/components/ResourceConditionField/index.js +0 -246
  50. package/lib/components/ResourceFilter/index.js +0 -174
  51. package/lib/components/ResourceFilter/resourcefilter.test.js +0 -440
  52. package/lib/components/ResourceFooter/index.js +0 -34
  53. package/lib/components/ResourceHeader/index.js +0 -149
  54. package/lib/components/ResourceInformation/index.js +0 -37
  55. package/lib/components/ResourcePreview/index.js +0 -139
  56. package/lib/components/SearchModal/index.js +0 -116
  57. package/lib/components/SubMenu/index.js +0 -86
  58. package/lib/components/TransformedDate/index.js +0 -34
  59. package/lib/components/useAddLoginLink/index.js +0 -44
  60. package/lib/components/useScrollToTop/index.js +0 -22
  61. package/lib/index.js +0 -247
  62. package/lib/templates/APIPage/index.js +0 -30
  63. package/lib/templates/Dataset/DatasetBody.js +0 -189
  64. package/lib/templates/Dataset/index.js +0 -83
  65. package/lib/templates/DatasetSearch/datasetsearch.test.js +0 -122
  66. package/lib/templates/DatasetSearch/index.js +0 -356
  67. package/lib/templates/DrupalPage/index.js +0 -37
  68. package/lib/templates/FilteredResource/FilteredResourceBody.js +0 -160
  69. package/lib/templates/FilteredResource/QueryBuilder.js +0 -235
  70. package/lib/templates/FilteredResource/QueryRow.js +0 -175
  71. package/lib/templates/FilteredResource/QueryTitle.js +0 -89
  72. package/lib/templates/FilteredResource/functions.js +0 -142
  73. package/lib/templates/FilteredResource/index.js +0 -95
  74. package/lib/templates/Footer/footer.test.js +0 -48
  75. package/lib/templates/Footer/index.js +0 -366
  76. package/lib/templates/PageNotFound/index.js +0 -25
  77. package/lib/templates/header/index.js +0 -112
  78. package/lib/templates/mobile_header/index.js +0 -199
package/dist/types.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { PropsWithChildren } from "react";
1
2
  interface NavbarProps {
2
3
  links: Array<any>;
3
4
  menuName: string;
@@ -24,7 +25,7 @@ declare namespace NavLink {
24
25
  }
25
26
  }
26
27
  export const NavBar: {
27
- ({ links, menuName, menuId, menuClasses, linkClasses, wrapLabel }: NavbarProps): JSX.Element;
28
+ ({ links, menuName, menuId, menuClasses, linkClasses, wrapLabel }: NavbarProps): import("react/jsx-runtime").JSX.Element;
28
29
  defaultProps: {
29
30
  wrapLabel: boolean;
30
31
  };
@@ -39,7 +40,7 @@ export { default } from "./PageNotFound";
39
40
  export function TransformedDate({ date, options }: {
40
41
  date: any;
41
42
  options: any;
42
- }): JSX.Element;
43
+ }): import("react/jsx-runtime").JSX.Element;
43
44
  declare namespace TransformedDate {
44
45
  namespace defaultProps {
45
46
  namespace options {
@@ -50,115 +51,77 @@ declare namespace TransformedDate {
50
51
  }
51
52
  }
52
53
  }
53
- export function DatasetSearchListItem({ item, updateFacets }: {
54
- item: any;
55
- updateFacets: any;
56
- }): JSX.Element;
57
- declare namespace DatasetSearchFacets {
58
- namespace defaultProps {
59
- const selectedFacets: never[];
60
- }
61
- namespace propTypes {
62
- const title: PropTypes.Validator<string>;
63
- const facets: PropTypes.Validator<(PropTypes.InferProps<{
64
- type: PropTypes.Validator<string>;
65
- name: PropTypes.Validator<string>;
66
- total: PropTypes.Validator<NonNullable<NonNullable<string | number | null | undefined>>>;
67
- }> | null | undefined)[]>;
68
- const onclickFunction: PropTypes.Validator<(...args: any[]) => any>;
69
- }
70
- }
54
+ type SearchItemProps = {
55
+ title: string;
56
+ modified: string;
57
+ description: string;
58
+ theme: string[];
59
+ identifier: string;
60
+ downloadUrl?: string | null;
61
+ largeFile: boolean;
62
+ };
63
+ export const DatasetSearchListItem: (props: SearchItemProps) => import("react/jsx-runtime").JSX.Element;
71
64
  export { default } from "./DatasetSearch";
65
+ type DistributionDataType = {
66
+ downloadURL: string;
67
+ format: string;
68
+ title: string;
69
+ mediaType: string;
70
+ mimeType: string;
71
+ "%Ref:downloadURL": DistributionType[];
72
+ };
73
+ type DistributionType = {
74
+ identifier: string;
75
+ data: DistributionDataType;
76
+ };
77
+ type ConditionType = {
78
+ operator: string;
79
+ property: string;
80
+ value: string | string[];
81
+ key?: string;
82
+ [key: string]: string | string[] | undefined;
83
+ };
84
+ type ColumnType = {
85
+ header: string;
86
+ accessor: string;
87
+ };
88
+ type SchemaType = {
89
+ [key: string]: {
90
+ fields: {
91
+ [key: string]: {
92
+ mysql_type: string;
93
+ description: string;
94
+ type: string;
95
+ };
96
+ };
97
+ };
98
+ };
99
+ type ResourceType = {
100
+ columns: Array<string>;
101
+ count: number;
102
+ limit: number;
103
+ offset: number;
104
+ loading: boolean;
105
+ conditions: Array<ConditionType>;
106
+ schema: SchemaType;
107
+ values: Array<Object>;
108
+ setLimit: Function;
109
+ setOffset: Function;
110
+ setSort: Function;
111
+ setConditions: Function;
112
+ setResource: Function;
113
+ setManual: Function;
114
+ };
72
115
  export { default } from "./useMetastoreDataset";
73
116
  export { default } from "./useDatastore";
74
- export function transformTableSortToQuerySort(sortArray: any): any[];
75
- export { default } from "./Datatable";
76
- export function ResourcePreview({ tablePadding, id, options, resource, defaultSort, customColumns, truncateCellHeader, columnSettings, columnWidths, customClasses, canResize, }: {
77
- tablePadding: any;
78
- id: any;
79
- options: any;
80
- resource: any;
81
- defaultSort: any;
82
- customColumns: any;
83
- truncateCellHeader: any;
84
- columnSettings: any;
85
- columnWidths: any;
86
- customClasses: any;
87
- canResize: any;
88
- }): JSX.Element;
89
- declare namespace ResourcePreview {
90
- namespace defaultProps {
91
- namespace options {
92
- const layout: string;
93
- const columnFilter: boolean;
94
- const columnSort: boolean;
95
- const columnResize: boolean;
96
- }
97
- const truncateCellHeader: boolean;
98
- const defaultSort: never[];
99
- const canResize: boolean;
100
- }
101
- }
102
- export { default } from "./DataTablePageResults";
103
- declare namespace DataTableDensity {
104
- namespace propTypes {
105
- const setTablePadding: PropTypes.Validator<(...args: any[]) => any>;
106
- }
107
- }
108
- declare namespace DataTableRowChanger {
109
- namespace defaultProps {
110
- const rowOptions: number[];
111
- }
112
- namespace propTypes {
113
- const rowOptions_1: PropTypes.Requireable<(number | null | undefined)[]>;
114
- export { rowOptions_1 as rowOptions };
115
- export const setLimit: PropTypes.Validator<(...args: any[]) => any>;
116
- }
117
- }
118
- export function ResourceHeader({ setTablePadding, id, distribution, includeFiltered, includeDensity, includeDownload, resource, tablePadding, downloadUrl, }: {
119
- setTablePadding: any;
120
- id: any;
121
- distribution: any;
122
- includeFiltered: any;
123
- includeDensity: any;
124
- includeDownload: any;
125
- resource: any;
126
- tablePadding: any;
127
- downloadUrl: any;
128
- }): JSX.Element;
129
- declare namespace DatasetTags {
130
- namespace propTypes {
131
- const keywords: PropTypes.Validator<(PropTypes.InferProps<{
132
- data: PropTypes.Validator<string>;
133
- identifier: PropTypes.Validator<string>;
134
- }> | null | undefined)[]>;
135
- }
136
- }
137
- export function buildRows(metadataMapping: any, datasetInfo: any): any[];
138
- export function ResourceFooter({ resource }: {
139
- resource: any;
140
- }): JSX.Element;
141
- export function buildCustomColHeaders(customHeaders: any, columns: any, schema: any): any;
142
- export function convertUTCToLocalDate(date: any): any;
143
- export function cleanText(value: any, operator: any): any;
144
- export function buildOperatorOptions(type: any): {
145
- label: string;
146
- value: string;
147
- }[];
148
- declare namespace DatasetBody {
149
- namespace propTypes {
150
- const id: PropTypes.Validator<string>;
151
- const dataset: PropTypes.Validator<object>;
152
- }
153
- }
154
117
  export declare namespace defaultMetadataMapping {
155
118
  function modified(data: any): {
156
119
  label: string;
157
- value: JSX.Element;
120
+ value: import("react/jsx-runtime").JSX.Element;
158
121
  }[];
159
122
  function issued(data: any): {
160
123
  label: string;
161
- value: JSX.Element;
124
+ value: import("react/jsx-runtime").JSX.Element;
162
125
  }[];
163
126
  function accrualPeriodicity(data: any): {
164
127
  label: string;
@@ -194,7 +157,7 @@ export declare namespace defaultMetadataMapping {
194
157
  }[];
195
158
  function license(data: any): {
196
159
  label: string;
197
- value: JSX.Element;
160
+ value: import("react/jsx-runtime").JSX.Element;
198
161
  }[];
199
162
  function accessLevel(data: any): {
200
163
  label: string;
@@ -202,7 +165,7 @@ export declare namespace defaultMetadataMapping {
202
165
  }[];
203
166
  function temporal(data: any): {
204
167
  label: string;
205
- value: JSX.Element;
168
+ value: import("react/jsx-runtime").JSX.Element;
206
169
  }[];
207
170
  function spatial(data: any): {
208
171
  label: string;
@@ -210,16 +173,36 @@ export declare namespace defaultMetadataMapping {
210
173
  }[];
211
174
  function references(data: any): {
212
175
  label: string;
213
- value: JSX.Element;
176
+ value: import("react/jsx-runtime").JSX.Element;
214
177
  }[];
215
178
  }
216
- declare namespace Dataset {
217
- namespace propTypes {
218
- const id: PropTypes.Validator<string>;
219
- const rootUrl: PropTypes.Validator<string>;
220
- }
221
- }
222
- export { default } from "./Dataset";
179
+ export function transformTableSortToQuerySort(sortArray: any): any[];
180
+ export function buildCustomColHeaders(customHeaders: any, columns: any, schema: any): any;
181
+ export function convertUTCToLocalDate(date: any): any;
182
+ export function cleanText(value: any, operator: any): any;
183
+ export function buildOperatorOptions(type: any): {
184
+ label: string;
185
+ value: string;
186
+ }[];
187
+ export { default } from "./DataTablePageResults";
188
+ export function QueryTitle({ conditions, schema, customColumns }: {
189
+ conditions: any;
190
+ schema: any;
191
+ customColumns: any;
192
+ }): import("react/jsx-runtime").JSX.Element;
193
+ export const DatasetTable: ({ id, distribution, resource, rootUrl, customColumns, jsonUrl }: {
194
+ id: string;
195
+ distribution: DistributionType;
196
+ resource: ResourceType;
197
+ rootUrl: string;
198
+ customColumns: Array<ColumnType>;
199
+ jsonUrl?: string | undefined;
200
+ }) => import("react/jsx-runtime").JSX.Element;
201
+ export function buildRows(metadataMapping: any, datasetInfo: any): any[];
202
+ export function ApiDocumentation({ endpoint }: {
203
+ endpoint: any;
204
+ }): import("react/jsx-runtime").JSX.Element;
205
+ export const Dataset: (props: any) => import("react/jsx-runtime").JSX.Element;
223
206
  declare namespace SearchModal {
224
207
  namespace defaultProps {
225
208
  const appNodeId: string;
@@ -288,7 +271,7 @@ export function Footer({ links, showEmail, emailTitle, emailBody, emailLink, ema
288
271
  hhsLogo: any;
289
272
  cmsLogo: any;
290
273
  trademarkContent: any;
291
- }): JSX.Element;
274
+ }): import("react/jsx-runtime").JSX.Element;
292
275
  declare namespace Footer {
293
276
  namespace defaultProps {
294
277
  const showEmail: boolean;
@@ -297,7 +280,7 @@ declare namespace Footer {
297
280
  const emailLink: string;
298
281
  const emailButton: string;
299
282
  const socialMediaLinks: null;
300
- const trademarkContent: JSX.Element;
283
+ const trademarkContent: import("react/jsx-runtime").JSX.Element;
301
284
  }
302
285
  namespace propTypes {
303
286
  const showEmail_1: PropTypes.Requireable<boolean>;
@@ -349,6 +332,31 @@ declare namespace Footer {
349
332
  export const cmsLogo: PropTypes.Validator<string>;
350
333
  }
351
334
  }
335
+ type DocumentationType = {
336
+ id: string;
337
+ application: string;
338
+ notes: string;
339
+ link: string;
340
+ linkText: string;
341
+ screenReaderOnlyText: string;
342
+ };
343
+ type SpecsAndLimitsProps = {
344
+ documentationList: Array<DocumentationType>;
345
+ };
346
+ export const SpecsAndLimits: {
347
+ (props: PropsWithChildren<SpecsAndLimitsProps>): import("react/jsx-runtime").JSX.Element;
348
+ defaultProps: {
349
+ documentationList: {
350
+ id: string;
351
+ application: string;
352
+ notes: string;
353
+ link: string;
354
+ linkText: string;
355
+ screenReaderOnlyText: string;
356
+ }[];
357
+ content: import("react/jsx-runtime").JSX.Element;
358
+ };
359
+ };
352
360
  export { default } from "./useSearchAPI";
353
361
  export function Hero({ title, description, searchUrl, searchKey, textfieldLabel, searchButtonText }: {
354
362
  title: any;
@@ -357,7 +365,7 @@ export function Hero({ title, description, searchUrl, searchKey, textfieldLabel,
357
365
  searchKey: any;
358
366
  textfieldLabel: any;
359
367
  searchButtonText: any;
360
- }): JSX.Element;
368
+ }): import("react/jsx-runtime").JSX.Element;
361
369
  declare namespace Hero {
362
370
  namespace defaultProps {
363
371
  const searchKey: string;
@@ -366,27 +374,62 @@ declare namespace Hero {
366
374
  const searchButtonText: string;
367
375
  }
368
376
  }
369
- export function ApiDocumentation({ endpoint }: {
370
- endpoint: any;
371
- }): JSX.Element;
372
- export function ResourceFilter({ id, filterOpen, setFilterOpen, defaultCondition, resource, includeSearchParams, }: {
377
+ declare namespace DataTableDensity {
378
+ namespace propTypes {
379
+ const setTablePadding: PropTypes.Validator<(...args: any[]) => any>;
380
+ }
381
+ }
382
+ declare namespace DataTableRowChanger {
383
+ namespace defaultProps {
384
+ const rowOptions: number[];
385
+ }
386
+ namespace propTypes {
387
+ const rowOptions_1: PropTypes.Requireable<(number | null | undefined)[]>;
388
+ export { rowOptions_1 as rowOptions };
389
+ export const setLimit: PropTypes.Validator<(...args: any[]) => any>;
390
+ }
391
+ }
392
+ export function ResourceHeader({ setTablePadding, id, distribution, includeFiltered, includeDensity, includeDownload, resource, tablePadding, downloadUrl, }: {
393
+ setTablePadding: any;
394
+ id: any;
395
+ distribution: any;
396
+ includeFiltered: any;
397
+ includeDensity: any;
398
+ includeDownload: any;
399
+ resource: any;
400
+ tablePadding: any;
401
+ downloadUrl: any;
402
+ }): import("react/jsx-runtime").JSX.Element;
403
+ export { default } from "./Datatable";
404
+ export function ResourcePreview({ tablePadding, id, options, resource, defaultSort, customColumns, truncateCellHeader, columnSettings, columnWidths, customClasses, canResize, }: {
405
+ tablePadding: any;
373
406
  id: any;
374
- filterOpen: any;
375
- setFilterOpen: any;
376
- defaultCondition: any;
407
+ options: any;
377
408
  resource: any;
378
- includeSearchParams: any;
379
- }): JSX.Element;
380
- declare namespace ResourceFilter {
409
+ defaultSort: any;
410
+ customColumns: any;
411
+ truncateCellHeader: any;
412
+ columnSettings: any;
413
+ columnWidths: any;
414
+ customClasses: any;
415
+ canResize: any;
416
+ }): import("react/jsx-runtime").JSX.Element;
417
+ declare namespace ResourcePreview {
381
418
  namespace defaultProps {
382
- namespace defaultCondition {
383
- const property: string;
384
- const value: string;
385
- const operator: string;
419
+ namespace options {
420
+ const layout: string;
421
+ const columnFilter: boolean;
422
+ const columnSort: boolean;
423
+ const columnResize: boolean;
386
424
  }
387
- const includeSearchParams: boolean;
425
+ const truncateCellHeader: boolean;
426
+ const defaultSort: never[];
427
+ const canResize: boolean;
388
428
  }
389
429
  }
430
+ export function ResourceFooter({ resource }: {
431
+ resource: any;
432
+ }): import("react/jsx-runtime").JSX.Element;
390
433
  declare namespace Breadcrumb {
391
434
  namespace propTypes {
392
435
  const currentPage: PropTypes.Validator<string>;
@@ -397,11 +440,6 @@ declare namespace Breadcrumb {
397
440
  }
398
441
  }
399
442
  export { default } from "./Breadcrumb";
400
- export function QueryTitle({ conditions, schema, customColumns }: {
401
- conditions: any;
402
- schema: any;
403
- customColumns: any;
404
- }): JSX.Element | "Add a filter";
405
443
  declare namespace QueryBuilder {
406
444
  namespace defaultProps {
407
445
  const includeSearchParams: boolean;
@@ -424,7 +462,7 @@ export function FilteredResource({ id, dist_id, location, apiDocPage, additional
424
462
  columnWidths: any;
425
463
  customTitle: any;
426
464
  rootUrl: any;
427
- }): JSX.Element;
465
+ }): import("react/jsx-runtime").JSX.Element;
428
466
  export function useAddLoginLink(hosts: any, menuItems: any, targetKey: any, loginLinkObj: any): any;
429
467
  export function useScrollToTop(): void;
430
468
 
@@ -1 +1 @@
1
- {"mappings":"AAAA;IACE,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;;;;;;;;;;;;;;;;;;AGFD,OAAA,MAAM;uEAA4E,WAAW;;;;CAuB5F,CAAC;;;;;;;;AO1BF;;;gBAOC;;;;;;;;;;;ACID;;;gBAwDC;;;;;;;;;;;;;;;;;;AWrED,qEAMC;;AK4BD;;;;;;;;;;;;gBAyDC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ASvED;;;;;;;;;;gBA0GC;;;;;;;;;AG1HD,yEAUC;ACXD;;gBAqBC;AElBD,0FAuBC;AAED,sDAOC;AAED,0DAOC;AAcD;;;IAyBC;;;;;;;;IGhFW;;;QAET;IACO;;;QAEP;IACmB;;;QAOnB;IACU;;;QAMV;IACW;;;QAEX;IACa;;;QASb;IACW;;;oBAIX;IACY;;;oBAIZ;IACM;;;QAaN;IACQ;;;QAaR;IACQ;;;QAER;IACY;;;QAEZ;IAES;;;QAIT;IACQ;;;QAER;IACW;;;QAeX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AUrGH;;;;;;;;;;;gBAkVC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGrVD;;;;;;;gBA4CC;;;;;;;;;AC5CD;;gBAMC;AGLD;;;;;;;gBAwIC;;;;;;;;;;;;;;;;;;;;;AIzID;;;;iCAuDC;;;;;;;;;;;AGrDD;;;;;;;;;;;;gBA0EC;AC9ED,oGAYC;ACXD,uCAKC","sources":["src/src/components/NavBar/Navbar.types.ts","src/src/components/NavLink/index.jsx","src/src/components/SubMenu/index.jsx","src/src/components/NavBar/Navbar.tsx","src/src/components/NavBar/index.ts","src/src/templates/APIPage/APIPage.jsx","src/src/templates/APIPage/index.jsx","src/src/templates/PageNotFound/PageNotFound.jsx","src/src/templates/PageNotFound/index.jsx","src/src/utilities/QueryProvider/QueryProvider.jsx","src/src/components/TransformedDate/index.jsx","src/src/components/DatasetSearchListItem/index.jsx","src/src/components/DatasetSearchFacets/index.jsx","src/src/services/useSearchAPI/helpers.js","src/src/templates/DatasetSearch/DatasetSearch.jsx","src/src/templates/DatasetSearch/index.jsx","src/src/services/useMetastoreDataset/useMetastoreDataset.jsx","src/src/services/useMetastoreDataset/index.jsx","src/src/services/useDatastore/fetch.js","src/src/services/useDatastore/useDatastore.jsx","src/src/services/useDatastore/index.js","src/src/services/useDatastore/transformConditions.js","src/src/services/useDatastore/transformSorts.js","src/src/components/Datatable/TruncatedResizeableTHead.jsx","src/src/components/Datatable/FixedSizeTHead.jsx","src/src/components/Datatable/Datatable.jsx","src/src/components/Datatable/index.js","src/src/components/ResourcePreview/index.jsx","src/src/components/DataTablePageResults/DataTablePageResults.tsx","src/src/components/DataTablePageResults/index.js","src/src/components/DataTableDensity/index.jsx","src/src/components/ManageColumns/index.jsx","src/src/components/DataTableRowChanger/index.jsx","src/src/assets/icons/download.jsx","src/src/assets/icons/copy.jsx","src/src/assets/icons/settings.jsx","src/src/components/ResourceHeader/index.jsx","src/src/components/DatasetTags/index.jsx","src/src/components/DatasetDownloads/index.jsx","src/src/components/DatasetAdditionalInformation/index.jsx","src/src/components/ResourceFooter/index.jsx","src/src/components/ResourceInformation/index.jsx","src/src/templates/FilteredResource/functions.js","src/src/templates/Dataset/DatasetBody.jsx","src/src/assets/frequencyMap.js","src/src/assets/metadataMapping.jsx","src/src/templates/Dataset/Dataset.jsx","src/src/templates/Dataset/index.jsx","src/src/components/SearchModal/index.jsx","src/src/components/DesktopHeader/DesktopHeader.jsx","src/src/components/DesktopHeader/index.jsx","src/src/components/MobileHeader/MobileHeader.jsx","src/src/components/MobileHeader/index.jsx","src/src/templates/Header/Header.jsx","src/src/templates/Header/index.js","src/src/templates/Footer/index.jsx","src/src/services/useSearchAPI/useSearchAPI.jsx","src/src/services/useSearchAPI/index.jsx","src/src/components/Hero/index.jsx","src/src/components/ApiDocumentation/index.jsx","src/src/assets/icons/close.jsx","src/src/components/ResourceConditionField/index.jsx","src/src/components/ResourceFilter/index.jsx","src/src/components/Breadcrumb/Breadcrumb.jsx","src/src/components/Breadcrumb/index.jsx","src/src/templates/FilteredResource/QueryRow.jsx","src/src/templates/FilteredResource/QueryTitle.jsx","src/src/templates/FilteredResource/QueryBuilder.jsx","src/src/templates/FilteredResource/FilteredResourceBody.jsx","src/src/templates/FilteredResource/index.jsx","src/src/components/useAddLoginLink/index.jsx","src/src/components/useScrollToTop/index.jsx","src/src/index.ts","src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"// Components\nexport { default as NavBar } from './components/NavBar';\n\n\n// Templates\nexport { default as APIPage } from './templates/APIPage';\nexport { default as PageNotFound } from './templates/PageNotFound';\nexport { default as DatasetSearch } from './templates/DatasetSearch';\nexport { default as Dataset } from './templates/Dataset';\nexport { default as Header } from './templates/Header';\nexport { default as Footer } from './templates/Footer';\n\n// Services\nexport { default as useSearchAPI } from './services/useSearchAPI';\nexport { default as useDatastore } from './services/useDatastore';\nexport { transformTableSortToQuerySort } from './services/useDatastore/transformSorts';\n\n// export { default as NavLink } from './components/NavLink';\n// export { default as DatasetTags } from './components/DatasetTags';\n// export { default as DatasetDownloads } from './components/DatasetDownloads';\nexport { default as Hero } from './components/Hero';\n// export { default as SearchModal } from './components/SearchModal';\nexport { default as DatasetSearchListItem } from './components/DatasetSearchListItem';\n// export { default as SubMenu } from './components/SubMenu';\nexport { default as ApiDocumentation } from './components/ApiDocumentation';\n// export { default as ResourceConditionField } from './components/ResourceConditionField';\nexport { default as ResourceFilter } from './components/ResourceFilter';\nexport { default as ResourceHeader } from './components/ResourceHeader';\nexport { default as ResourcePreview } from './components/ResourcePreview';\nexport { default as ResourceFooter } from './components/ResourceFooter';\nexport { default as Breadcrumb } from './components/Breadcrumb';\nexport { default as TransformedDate } from './components/TransformedDate';\nexport { default as DataTable } from './components/Datatable';\nexport { buildRows } from './components/DatasetAdditionalInformation';\n\n// Templates\n// export { default as Dataset } from './templates/Dataset';\n// export { default as DatasetSearch } from './templates/DatasetSearch';\n// export { default as DrupalPage } from './templates/DrupalPage';\n// export { default as Header } from './templates/header';\n// export { default as MobileHeader } from './templates/mobile_header';\n\nexport { default as FilteredResource } from './templates/FilteredResource';\n// export { default as QueryBuilder } from './templates/FilteredResource/QueryBuilder';\nexport { default as QueryTitle } from './templates/FilteredResource/QueryTitle';\nexport { buildOperatorOptions, convertUTCToLocalDate, cleanText, buildCustomColHeaders } from './templates/FilteredResource/functions';\n// export { default as APIPage } from './templates/APIPage';\n\n// Hooks\nexport { default as useAddLoginLink } from './components/useAddLoginLink';\nexport { default as useScrollToTop } from './components/useScrollToTop';\nexport { default as useMetastoreDataset } from './services/useMetastoreDataset';\n\n// Assets\n// export { default as frequencyMap } from './assets/frequencyMap';\nexport { defaultMetadataMapping } from './assets/metadataMapping';\n\nexport { default as DataTablePageResults } from './components/DataTablePageResults';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
1
+ {"mappings":"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","sources":["src/src/components/NavBar/Navbar.types.ts","src/src/components/NavLink/index.jsx","src/src/components/SubMenu/index.jsx","src/src/components/NavBar/Navbar.tsx","src/src/components/NavBar/index.ts","src/src/templates/APIPage/APIPage.jsx","src/src/templates/APIPage/index.jsx","src/src/templates/PageNotFound/PageNotFound.jsx","src/src/templates/PageNotFound/index.jsx","src/src/utilities/QueryProvider/QueryProvider.jsx","src/src/components/LargeFileDialog/index.tsx","src/src/assets/icons/searchItem.tsx","src/src/components/TransformedDate/index.jsx","src/src/components/DatasetSearchListItem/index.tsx","src/src/types/search.ts","src/src/components/DatasetSearchFacets/index.tsx","src/src/components/LargeFileInfo/index.tsx","src/src/components/SearchButton/index.tsx","src/src/components/PageHeader/index.tsx","src/src/services/useSearchAPI/helpers.ts","src/src/templates/DatasetSearch/DatasetSearch.tsx","src/src/templates/DatasetSearch/index.jsx","src/src/types/dataset.ts","src/src/services/useMetastoreDataset/useMetastoreDataset.tsx","src/src/services/useMetastoreDataset/index.jsx","src/src/services/useDatastore/fetch.js","src/src/services/useDatastore/useDatastore.jsx","src/src/services/useDatastore/index.js","src/src/assets/frequencyMap.js","src/src/assets/metadataMapping.jsx","src/src/components/Datatable/TruncatedResizeableTHead.jsx","src/src/components/Datatable/FixedSizeTHead.jsx","src/src/components/Datatable/Datatable.jsx","src/src/services/useDatastore/transformSorts.js","src/src/templates/FilteredResource/functions.js","src/src/components/DataTablePageResults/DataTablePageResults.tsx","src/src/components/DataTablePageResults/index.js","src/src/components/DatatableHeader/index.tsx","src/src/templates/FilteredResource/QueryTitle.jsx","src/src/components/QueryRow/index.tsx","src/src/components/QueryBuilder/index.tsx","src/src/components/DatasetTableTab/index.tsx","src/src/components/DatasetAdditionalInformation/index.jsx","src/src/components/ResourceInformation/index.tsx","src/src/components/Resource/index.tsx","src/src/components/DatasetOverviewTab/index.tsx","src/src/components/ApiDocumentation/index.jsx","src/src/components/DatasetAPITab/index.tsx","src/src/components/DatasetDataDictionaryTab/index.tsx","src/src/templates/Dataset/index.tsx","src/src/components/SearchModal/index.jsx","src/src/components/DesktopHeader/DesktopHeader.jsx","src/src/components/DesktopHeader/index.jsx","src/src/components/MobileHeader/MobileHeader.jsx","src/src/components/MobileHeader/index.jsx","src/src/templates/Header/Header.jsx","src/src/templates/Header/index.js","src/src/templates/Footer/index.jsx","src/src/templates/SpecsAndLimits/DocumentationTable.jsx","src/src/templates/SpecsAndLimits/documentationData.js","src/src/templates/SpecsAndLimits/index.tsx","src/src/services/useSearchAPI/useSearchAPI.jsx","src/src/services/useSearchAPI/index.jsx","src/src/components/Hero/index.jsx","src/src/components/DataTableDensity/index.jsx","src/src/components/ManageColumns/index.jsx","src/src/components/DataTableRowChanger/index.jsx","src/src/assets/icons/download.jsx","src/src/assets/icons/copy.jsx","src/src/assets/icons/settings.jsx","src/src/components/ResourceHeader/index.jsx","src/src/services/useDatastore/transformConditions.js","src/src/components/Datatable/index.js","src/src/components/ResourcePreview/index.jsx","src/src/components/ResourceFooter/index.jsx","src/src/components/Breadcrumb/Breadcrumb.jsx","src/src/components/Breadcrumb/index.jsx","src/src/assets/icons/close.jsx","src/src/templates/FilteredResource/QueryRow.jsx","src/src/templates/FilteredResource/QueryBuilder.jsx","src/src/templates/FilteredResource/FilteredResourceBody.jsx","src/src/templates/FilteredResource/index.jsx","src/src/components/useAddLoginLink/index.jsx","src/src/components/useScrollToTop/index.jsx","src/src/index.ts","src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"// Components\nexport { default as NavBar } from './components/NavBar';\n\n\n// Templates\nexport { default as APIPage } from './templates/APIPage';\nexport { default as PageNotFound } from './templates/PageNotFound';\nexport { default as DatasetSearch } from './templates/DatasetSearch';\nexport { default as Dataset } from './templates/Dataset';\nexport { default as DatasetTable } from './components/DatasetTableTab';\nexport { default as Header } from './templates/Header';\nexport { default as Footer } from './templates/Footer';\nexport { default as SpecsAndLimits } from './templates/SpecsAndLimits';\n\n// Services\nexport { default as useSearchAPI } from './services/useSearchAPI';\nexport { default as useDatastore } from './services/useDatastore';\nexport { transformTableSortToQuerySort } from './services/useDatastore/transformSorts';\n\n// export { default as NavLink } from './components/NavLink';\n// export { default as DatasetTags } from './components/DatasetTags';\n// export { default as DatasetDownloads } from './components/DatasetDownloads';\nexport { default as Hero } from './components/Hero';\n// export { default as SearchModal } from './components/SearchModal';\nexport { default as DatasetSearchListItem } from './components/DatasetSearchListItem';\n// export { default as SubMenu } from './components/SubMenu';\nexport { default as ApiDocumentation } from './components/ApiDocumentation';\nexport { default as ResourceHeader } from './components/ResourceHeader';\nexport { default as ResourcePreview } from './components/ResourcePreview';\nexport { default as ResourceFooter } from './components/ResourceFooter';\nexport { default as Breadcrumb } from './components/Breadcrumb';\nexport { default as TransformedDate } from './components/TransformedDate';\nexport { default as DataTable } from './components/Datatable';\nexport { buildRows } from './components/DatasetAdditionalInformation';\n\nexport { default as FilteredResource } from './templates/FilteredResource';\n// export { default as QueryBuilder } from './templates/FilteredResource/QueryBuilder';\nexport { default as QueryTitle } from './templates/FilteredResource/QueryTitle';\nexport { buildOperatorOptions, convertUTCToLocalDate, cleanText, buildCustomColHeaders } from './templates/FilteredResource/functions';\n// export { default as APIPage } from './templates/APIPage';\n\n// Hooks\nexport { default as useAddLoginLink } from './components/useAddLoginLink';\nexport { default as useScrollToTop } from './components/useScrollToTop';\nexport { default as useMetastoreDataset } from './services/useMetastoreDataset';\n\n// Assets\n// export { default as frequencyMap } from './assets/frequencyMap';\nexport { defaultMetadataMapping } from './assets/metadataMapping';\n\nexport { default as DataTablePageResults } from './components/DataTablePageResults';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@civicactions/cmsds-open-data-components",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.20",
4
4
  "description": "Components for the open data catalog frontend using CMS Design System",
5
5
  "main": "dist/main.js",
6
6
  "source": "src/index.ts",
@@ -17,31 +17,34 @@
17
17
  "license": "GPL-3.0",
18
18
  "dependencies": {
19
19
  "@popperjs/core": "^2.11.6",
20
- "@tanstack/react-query": "^4.24.4",
20
+ "@tanstack/react-query": "^5.14.1",
21
21
  "@tanstack/react-table": "^8.7.9",
22
22
  "axios": "^1.3.2",
23
23
  "dompurify": "^3.0.5",
24
24
  "prop-types": "^15.8.1",
25
- "qs": "^6.11.0",
25
+ "qs": "^6.11.2",
26
26
  "react-datepicker": "^4.10.0",
27
27
  "react-popper": "^2.3.0",
28
- "react-query": "^3.39.3",
29
28
  "react-responsive": "^9.0.2",
30
29
  "react-router-dom": "^6.8.0",
31
30
  "react-text-truncate": "^0.19.0",
32
- "swagger-ui-react": "^4.15.5"
31
+ "swagger-ui-react": "^5.11.2"
33
32
  },
34
33
  "devDependencies": {
35
34
  "@babel/preset-env": "^7.22.5",
36
35
  "@babel/preset-react": "^7.22.5",
36
+ "@babel/preset-typescript": "^7.22.11",
37
37
  "@parcel/packager-ts": "^2.8.3",
38
38
  "@parcel/transformer-sass": "^2.8.3",
39
39
  "@parcel/transformer-typescript-types": "^2.8.3",
40
40
  "@storybook/react": "^7.0.22",
41
- "@testing-library/dom": "^8.20.0",
42
- "@testing-library/jest-dom": "^5.16.5",
41
+ "@testing-library/dom": "^9.3.3",
42
+ "@testing-library/jest-dom": "^6.1.3",
43
43
  "@testing-library/react": "^14.0.0",
44
44
  "@testing-library/user-event": "^14.4.3",
45
+ "@types/dompurify": "^3.0.3",
46
+ "@types/react": "^18.2.0",
47
+ "@types/react-datepicker": "^4.19.5",
45
48
  "core-js": "^3.27.2",
46
49
  "css-loader": "^6.7.3",
47
50
  "jest": "29.5.0",
@@ -61,7 +64,7 @@
61
64
  "extends": "react-app"
62
65
  },
63
66
  "peerDependencies": {
64
- "@cmsgov/design-system": "^6.0.0",
67
+ "@cmsgov/design-system": "^8.0.3",
65
68
  "react": "^18.2.0",
66
69
  "react-dom": "^18.2.0"
67
70
  },
@@ -69,4 +72,4 @@
69
72
  "lib",
70
73
  "dist"
71
74
  ]
72
- }
75
+ }
@@ -1,22 +0,0 @@
1
- export const frequencyMap = {
2
- 'R/P10Y': { name: 'Decennial' },
3
- 'R/P4Y': { name: 'Quadrennial' },
4
- 'R/P1Y': { name: 'Annual' },
5
- 'R/P2M': { name: 'Bimonthly' },
6
- 'R/P3.5D': { name: 'Semiweekly' },
7
- 'R/P1D': { name: 'Daily' },
8
- 'R/P2W': { name: 'Biweekly' },
9
- 'R/P6M': { name: 'Semiannual' },
10
- 'R/P2Y': { name: 'Biennial' },
11
- 'R/P3Y': { name: 'Triennial' },
12
- 'R/P0.33W': { name: 'Three times a week' },
13
- 'R/P0.33M': { name: 'Three times a month' },
14
- 'R/PT1S': { name: 'Continuously updated' },
15
- 'R/P1M': { name: 'Monthly' },
16
- 'R/P3M': { name: 'Quarterly' },
17
- 'R/P0.5M': { name: 'Semimonthly' },
18
- 'R/P4M': { name: 'Three times a year' },
19
- 'R/P1W': { name: 'Weekly' },
20
- 'R/PT1H': { name: 'Hourly' },
21
- irregular: { name: 'Irregular' },
22
- };
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var CloseIcon = function CloseIcon() {
13
- return /*#__PURE__*/_react["default"].createElement("svg", {
14
- width: "15px",
15
- height: "15px",
16
- viewBox: "0 0 15 15",
17
- version: "1.1",
18
- xmlns: "http://www.w3.org/2000/svg",
19
- xmlnsXlink: "http://www.w3.org/1999/xlink"
20
- }, /*#__PURE__*/_react["default"].createElement("title", null, "Close Icon"), /*#__PURE__*/_react["default"].createElement("desc", null, "Created with Sketch."), /*#__PURE__*/_react["default"].createElement("g", {
21
- stroke: "none",
22
- strokeWidth: "1",
23
- fill: "none",
24
- fillRule: "evenodd"
25
- }, /*#__PURE__*/_react["default"].createElement("path", {
26
- d: "M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z",
27
- fill: "#000000",
28
- fillRule: "nonzero"
29
- })));
30
- };
31
-
32
- var _default = CloseIcon;
33
- exports["default"] = _default;
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
-
3
- const CloseIcon = () => (
4
- <svg
5
- width="15px"
6
- height="15px"
7
- viewBox="0 0 15 15"
8
- version="1.1"
9
- xmlns="http://www.w3.org/2000/svg"
10
- xmlnsXlink="http://www.w3.org/1999/xlink"
11
- >
12
- <title>Close Icon</title>
13
- <desc>Created with Sketch.</desc>
14
- <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
15
- <path
16
- d="M14.6467778,11.2126037 C14.8818403,11.4476661 15,11.7342663 15,12.0711472 C15,12.4080282 14.8818403,12.6946283 14.6467778,12.9296908 L12.9296908,14.6467778 C12.6933713,14.8830973 12.4067711,15.001257 12.0698902,15.001257 C11.7342663,15.001257 11.4476661,14.8830973 11.2126037,14.6467778 L7.49937149,10.9348026 L3.7873963,14.6467778 C3.55233386,14.8830973 3.26573368,15.001257 2.92885276,15.001257 C2.59197184,15.001257 2.30662868,14.8830973 2.07030923,14.6467778 L0.353222157,12.9296908 C0.116902707,12.6946283 0,12.4080282 0,12.0711472 C0,11.7342663 0.116902707,11.4476661 0.353222157,11.2126037 L4.06519735,7.50062851 L0.353222157,3.78865331 C0.116902707,3.55233386 0,3.2669907 0,2.92885276 C0,2.59322886 0.116902707,2.30662868 0.353222157,2.07156624 L2.07030923,0.353222157 C2.30662868,0.118159725 2.59197184,0 2.92885276,0 C3.26573368,0 3.55233386,0.118159725 3.7873963,0.353222157 L7.49937149,4.06519735 L11.2126037,0.353222157 C11.4476661,0.118159725 11.7342663,0 12.0698902,0 C12.4067711,0 12.6933713,0.118159725 12.9296908,0.353222157 L14.6467778,2.07156624 C14.8818403,2.30662868 15,2.59322886 15,2.92885276 C15,3.2669907 14.8818403,3.55233386 14.6467778,3.78865331 L10.9348026,7.50062851 L14.6467778,11.2126037 Z"
17
- fill="#000000"
18
- fillRule="nonzero"
19
- ></path>
20
- </g>
21
- </svg>
22
- );
23
-
24
- export default CloseIcon;
@@ -1,33 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var CopyIcon = function CopyIcon() {
13
- return /*#__PURE__*/_react["default"].createElement("svg", {
14
- width: "15px",
15
- height: "15px",
16
- viewBox: "0 0 512 512",
17
- version: "1.1",
18
- xmlns: "http://www.w3.org/2000/svg",
19
- xmlnsXlink: "http://www.w3.org/1999/xlink"
20
- }, /*#__PURE__*/_react["default"].createElement("title", null, "Copy Icon"), /*#__PURE__*/_react["default"].createElement("g", {
21
- stroke: "none",
22
- strokeWidth: "1",
23
- fill: "none",
24
- fillRule: "evenodd"
25
- }, /*#__PURE__*/_react["default"].createElement("path", {
26
- fill: "#112E51",
27
- fillRule: "nonzero",
28
- d: "M384 96L384 0h-112c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48H464c26.51 0 48-21.49 48-48V128h-95.1C398.4 128 384 113.6 384 96zM416 0v96h96L416 0zM192 352V128h-144c-26.51 0-48 21.49-48 48v288c0 26.51 21.49 48 48 48h192c26.51 0 48-21.49 48-48L288 416h-32C220.7 416 192 387.3 192 352z"
29
- })));
30
- };
31
-
32
- var _default = CopyIcon;
33
- exports["default"] = _default;