@ogc-maps/storybook-components 0.12.3 → 0.13.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.
@@ -0,0 +1,26 @@
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ function s({
3
+ icon: e,
4
+ label: i = "Export",
5
+ onExport: o,
6
+ loading: r = !1,
7
+ disabled: u = !1,
8
+ className: m = ""
9
+ }) {
10
+ const a = u || r;
11
+ return /* @__PURE__ */ t(
12
+ "button",
13
+ {
14
+ type: "button",
15
+ title: i,
16
+ "aria-label": i,
17
+ className: `mapui:flex mapui:items-center mapui:justify-center mapui:w-10 mapui:h-10 mapui:bg-white mapui:rounded mapui:shadow-md mapui:transition-colors ${a ? "mapui:cursor-not-allowed mapui:opacity-50" : "mapui:cursor-pointer hover:mapui:bg-gray-50"} ${m}`.trim(),
18
+ disabled: a,
19
+ onClick: o,
20
+ children: /* @__PURE__ */ t(e, { size: 20, className: "mapui:text-gray-700" })
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ s as E
26
+ };
@@ -1,8 +1,15 @@
1
1
  export interface ExportButtonProps {
2
+ /** Icon component to display (e.g., LuDownload from react-icons/lu) */
3
+ icon: React.ComponentType<{
4
+ size?: number;
5
+ className?: string;
6
+ }>;
7
+ /** Accessible label for the button (shown as tooltip/aria-label) */
8
+ label?: string;
2
9
  onExport: () => void;
3
10
  loading?: boolean;
4
11
  disabled?: boolean;
5
12
  className?: string;
6
13
  }
7
- export declare function ExportButton({ onExport, loading, disabled, className, }: ExportButtonProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function ExportButton({ icon: Icon, label, onExport, loading, disabled, className, }: ExportButtonProps): import("react/jsx-runtime").JSX.Element;
8
15
  //# sourceMappingURL=ExportButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExportButton.d.ts","sourceRoot":"","sources":["../../../src/components/ExportButton/ExportButton.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,SAAc,GACf,EAAE,iBAAiB,2CAoBnB"}
1
+ {"version":3,"file":"ExportButton.d.ts","sourceRoot":"","sources":["../../../src/components/ExportButton/ExportButton.tsx"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,uEAAuE;IACvE,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjE,oEAAoE;IACpE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EAAE,IAAI,EACV,KAAgB,EAChB,QAAQ,EACR,OAAe,EACf,QAAgB,EAChB,SAAc,GACf,EAAE,iBAAiB,2CAmBnB"}
@@ -1,4 +1,4 @@
1
- import { E as r } from "../../ExportButton-BsNrOvRE.js";
1
+ import { E as r } from "../../ExportButton-Ck1dESnc.js";
2
2
  export {
3
3
  r as ExportButton
4
4
  };