@civicactions/cmsds-open-data-components 3.1.10-alpha.4 → 3.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -2334,7 +2334,7 @@ const $6369abf590ca298f$var$QueryRow = ({ id: id, condition: condition, index: i
2334
2334
  /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Button), {
2335
2335
  variation: "ghost",
2336
2336
  size: "small",
2337
- className: "ds-u-margin-top--3 ds-u-padding-right--0",
2337
+ className: "ds-u-margin-top--6 ds-u-padding-right--0",
2338
2338
  "aria-label": "Delete filter",
2339
2339
  onClick: ()=>remove(index),
2340
2340
  children: /*#__PURE__*/ (0, $hgUW1$jsx)("span", {
@@ -2802,12 +2802,9 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
2802
2802
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
2803
2803
  className: "fa ds-u-color--primary ds-u-padding-right--1 ds-u-font-size--3xl fa-file-" + (fileFormat == "xlsx" ? "excel" : fileFormat)
2804
2804
  }),
2805
- /*#__PURE__*/ (0, $hgUW1$jsxs)("p", {
2805
+ /*#__PURE__*/ (0, $hgUW1$jsx)("p", {
2806
2806
  className: "ds-u-margin-top--0",
2807
- children: [
2808
- dist.data.title ? dist.data.title : title,
2809
- " (" + fileFormat.toUpperCase() + ")"
2810
- ]
2807
+ children: `${dist.data.title || title} (${fileFormat.toUpperCase()})`
2811
2808
  })
2812
2809
  ]
2813
2810
  }),
@@ -2819,7 +2816,7 @@ const $7357cc0f79f9c514$var$Resource = ({ distributions: distributions, resource
2819
2816
  order: sm ? "1" : "0",
2820
2817
  width: sm ? "100%" : "auto"
2821
2818
  },
2822
- "aria-label": "Download " + title + " " + fileFormat,
2819
+ "aria-label": `Download ${dist.data.title || title} ${fileFormat}`,
2823
2820
  className: "ds-c-button",
2824
2821
  children: [
2825
2822
  /*#__PURE__*/ (0, $hgUW1$jsx)("i", {
@@ -3064,9 +3061,8 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
3064
3061
  return /*#__PURE__*/ (0, $hgUW1$jsxs)("div", {
3065
3062
  children: [
3066
3063
  mobile && /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3067
- className: "ds-u-margin-bottom--3",
3064
+ className: "ds-u-margin-bottom--3 ds-l-col--12 ds-l-sm-col--6",
3068
3065
  children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3069
- className: "ds-l-col--12 ds-l-sm-col--6",
3070
3066
  labelClassName: "ds-u-margin-top--1 ds-u-sm-margin-top--0",
3071
3067
  options: sortOptions,
3072
3068
  label: "Sort",
@@ -3300,14 +3296,16 @@ const $a6e312940f7003ef$var$DatasetDictionaryTable = ({ datasetDictionary: datas
3300
3296
  name: "dc-data-dictionary-title",
3301
3297
  onChange: (e)=>setTitleFilter(e.target.value)
3302
3298
  }),
3303
- /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3299
+ /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3304
3300
  className: "ds-l-col--12 ds-l-sm-col--6",
3305
- labelClassName: "ds-u-margin-top--1 ds-u-sm-margin-top--0",
3306
- options: typeOptions,
3307
- label: "Type",
3308
- value: typeFilter,
3309
- name: "dc-data-dictionary-type",
3310
- onChange: (e)=>setTypeFilter(e.target.value)
3301
+ children: /*#__PURE__*/ (0, $hgUW1$jsx)((0, $hgUW1$Dropdown), {
3302
+ labelClassName: "ds-u-margin-top--1 ds-u-sm-margin-top--0",
3303
+ options: typeOptions,
3304
+ label: "Type",
3305
+ value: typeFilter,
3306
+ name: "dc-data-dictionary-type",
3307
+ onChange: (e)=>setTypeFilter(e.target.value)
3308
+ })
3311
3309
  }),
3312
3310
  /*#__PURE__*/ (0, $hgUW1$jsx)("div", {
3313
3311
  className: "ds-u-float--right ds-u-padding-y--2 ds-l-col--12 ds-u-display--flex ds-u-flex-wrap--wrap ds-u-justify-content--end",