@geowiki/design-system 0.16.7-dev.0 → 0.16.7-dev.1

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/index.d.ts CHANGED
@@ -1170,7 +1170,6 @@ interface H1BodyButtonProps {
1170
1170
  title: string;
1171
1171
  textBody?: string;
1172
1172
  button?: LinkButtonItem;
1173
- override_link_style?: boolean | true;
1174
1173
  }
1175
1174
  declare const H1BodyButton: (props: H1BodyButtonProps) => react_jsx_runtime.JSX.Element;
1176
1175
  interface H1BodyButtonWithAppProps {
package/dist/index.js CHANGED
@@ -16221,13 +16221,10 @@ var H1BodyButton = (props) => {
16221
16221
  var _a, _b;
16222
16222
  const isNeedParse = /<em|br>(.*?)<\/em|br>/g.test(props.title);
16223
16223
  const addLinksStyles = (text) => {
16224
- if (props.override_link_style) {
16225
- const textToAdd = " class='text-primary font-semibold'";
16226
- const regex = /(<a(?=[^>]*>))/g;
16227
- const modifiedText = text.replace(regex, `$1${textToAdd}`);
16228
- return modifiedText;
16229
- } else
16230
- return text;
16224
+ const textToAdd = " class='text-primary font-semibold'";
16225
+ const regex = /(<a(?=[^>]*>))/g;
16226
+ const modifiedText = text.replace(regex, `$1${textToAdd}`);
16227
+ return modifiedText;
16231
16228
  };
16232
16229
  return /* @__PURE__ */ (0, import_jsx_runtime141.jsxs)(
16233
16230
  "div",
@@ -16589,7 +16586,7 @@ var MapControlToolbar = ({
16589
16586
  };
16590
16587
  MapControlToolbar.displayName = "MapControlToolbar";
16591
16588
 
16592
- // src/components/Map/LayerSwitcher1.tsx
16589
+ // src/components/Map/LayerSwitcher.tsx
16593
16590
  var import_react57 = require("react");
16594
16591
 
16595
16592
  // src/components/DesignElements/Link/SimpleLink.tsx
@@ -17864,7 +17861,7 @@ var useMapLayerStore = create()((set2, get2) => ({
17864
17861
  setLayerOpacity: (layerOpacity) => set2({ layerOpacity })
17865
17862
  }));
17866
17863
 
17867
- // src/components/Map/LayerSwitcher1.tsx
17864
+ // src/components/Map/LayerSwitcher.tsx
17868
17865
  var import_react59 = require("react");
17869
17866
  var import_outline4 = require("@heroicons/react/24/outline");
17870
17867
  var import_lucide_react20 = require("lucide-react");
package/dist/index.mjs CHANGED
@@ -15880,13 +15880,10 @@ var H1BodyButton = (props) => {
15880
15880
  var _a, _b;
15881
15881
  const isNeedParse = /<em|br>(.*?)<\/em|br>/g.test(props.title);
15882
15882
  const addLinksStyles = (text) => {
15883
- if (props.override_link_style) {
15884
- const textToAdd = " class='text-primary font-semibold'";
15885
- const regex = /(<a(?=[^>]*>))/g;
15886
- const modifiedText = text.replace(regex, `$1${textToAdd}`);
15887
- return modifiedText;
15888
- } else
15889
- return text;
15883
+ const textToAdd = " class='text-primary font-semibold'";
15884
+ const regex = /(<a(?=[^>]*>))/g;
15885
+ const modifiedText = text.replace(regex, `$1${textToAdd}`);
15886
+ return modifiedText;
15890
15887
  };
15891
15888
  return /* @__PURE__ */ jsxs63(
15892
15889
  "div",
@@ -16248,7 +16245,7 @@ var MapControlToolbar = ({
16248
16245
  };
16249
16246
  MapControlToolbar.displayName = "MapControlToolbar";
16250
16247
 
16251
- // src/components/Map/LayerSwitcher1.tsx
16248
+ // src/components/Map/LayerSwitcher.tsx
16252
16249
  import { memo as memo3, useEffect as useEffect13, useCallback as useCallback7, useState as useState16 } from "react";
16253
16250
 
16254
16251
  // src/components/DesignElements/Link/SimpleLink.tsx
@@ -17523,7 +17520,7 @@ var useMapLayerStore = create()((set2, get2) => ({
17523
17520
  setLayerOpacity: (layerOpacity) => set2({ layerOpacity })
17524
17521
  }));
17525
17522
 
17526
- // src/components/Map/LayerSwitcher1.tsx
17523
+ // src/components/Map/LayerSwitcher.tsx
17527
17524
  import { Fragment as Fragment6 } from "react";
17528
17525
  import { XMarkIcon as XMarkIcon3 } from "@heroicons/react/24/outline";
17529
17526
  import { ChevronDown as ChevronDown5 } from "lucide-react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geowiki/design-system",
3
- "version": "0.16.7-dev.0",
3
+ "version": "0.16.7-dev.1",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [