@ogc-maps/storybook-components 0.5.2 → 0.5.3

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 (35) hide show
  1. package/dist/{Legend-BMrkY-rw.js → Legend-TTWWpWDT.js} +21 -18
  2. package/dist/components/LayerEditor/LayerEditor.d.ts.map +1 -1
  3. package/dist/components/Legend/Legend.d.ts.map +1 -1
  4. package/dist/components/Legend/index.js +1 -1
  5. package/dist/components/StyleEditor/PropertyField.d.ts +9 -0
  6. package/dist/components/StyleEditor/PropertyField.d.ts.map +1 -0
  7. package/dist/components/StyleEditor/PropertyGroup.d.ts +11 -0
  8. package/dist/components/StyleEditor/PropertyGroup.d.ts.map +1 -0
  9. package/dist/components/StyleEditor/StyleEditor.d.ts +3 -2
  10. package/dist/components/StyleEditor/StyleEditor.d.ts.map +1 -1
  11. package/dist/components/StyleEditor/StylePreview.d.ts +5 -0
  12. package/dist/components/StyleEditor/StylePreview.d.ts.map +1 -0
  13. package/dist/components/StyleEditor/index.d.ts +1 -1
  14. package/dist/components/StyleEditor/index.d.ts.map +1 -1
  15. package/dist/components/StyleEditor/propertyMetadata.d.ts +16 -0
  16. package/dist/components/StyleEditor/propertyMetadata.d.ts.map +1 -0
  17. package/dist/components/StyleEditor/propertyRegistry.d.ts +4 -0
  18. package/dist/components/StyleEditor/propertyRegistry.d.ts.map +1 -0
  19. package/dist/components/admin/CollapsibleSection.d.ts +8 -0
  20. package/dist/components/admin/CollapsibleSection.d.ts.map +1 -0
  21. package/dist/components/admin/index.d.ts +2 -0
  22. package/dist/components/admin/index.d.ts.map +1 -1
  23. package/dist/index-DoToolWp.js +2959 -0
  24. package/dist/main.js +1146 -973
  25. package/dist/schemas/config.d.ts +2896 -23
  26. package/dist/schemas/config.d.ts.map +1 -1
  27. package/dist/schemas/index.js +3 -3
  28. package/dist/style.css +1 -1
  29. package/dist/types/index.d.ts +8 -2
  30. package/dist/types/index.d.ts.map +1 -1
  31. package/dist/types/index.js +28 -22
  32. package/dist/utils/queryableHelpers.d.ts +4 -3
  33. package/dist/utils/queryableHelpers.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/dist/index-Bw9lUiuL.js +0 -2860
@@ -1,4 +1,4 @@
1
- import { jsxs as m, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as m, jsx as a } from "react/jsx-runtime";
2
2
  function t(i) {
3
3
  switch (i.type) {
4
4
  case "fill":
@@ -7,6 +7,8 @@ function t(i) {
7
7
  return i.paint["line-color"];
8
8
  case "circle":
9
9
  return i.paint["circle-color"];
10
+ case "symbol":
11
+ return i.paint["text-color"] ?? i.paint["icon-color"] ?? "#000000";
10
12
  }
11
13
  }
12
14
  function o(i) {
@@ -16,6 +18,7 @@ function o(i) {
16
18
  case "line":
17
19
  return "line";
18
20
  case "circle":
21
+ case "symbol":
19
22
  return "circle";
20
23
  }
21
24
  }
@@ -30,19 +33,19 @@ function d(i) {
30
33
  }
31
34
  function s({ color: i, shape: p }) {
32
35
  const n = p ?? "square";
33
- return n === "circle" ? /* @__PURE__ */ e(
36
+ return n === "circle" ? /* @__PURE__ */ a(
34
37
  "span",
35
38
  {
36
39
  className: "mapui:inline-block mapui:h-3 mapui:w-3 mapui:rounded-full mapui:shrink-0",
37
40
  style: { backgroundColor: i }
38
41
  }
39
- ) : n === "line" ? /* @__PURE__ */ e(
42
+ ) : n === "line" ? /* @__PURE__ */ a(
40
43
  "span",
41
44
  {
42
45
  className: "mapui:inline-block mapui:h-0.5 mapui:w-4 mapui:rounded-full mapui:shrink-0",
43
46
  style: { backgroundColor: i }
44
47
  }
45
- ) : /* @__PURE__ */ e(
48
+ ) : /* @__PURE__ */ a(
46
49
  "span",
47
50
  {
48
51
  className: "mapui:inline-block mapui:h-3 mapui:w-3 mapui:rounded-sm mapui:shrink-0",
@@ -50,45 +53,45 @@ function s({ color: i, shape: p }) {
50
53
  }
51
54
  );
52
55
  }
53
- function g({ layers: i, visibleLayerIds: p, className: n }) {
54
- const r = i.filter((a) => p.includes(a.id)).map((a) => {
56
+ function b({ layers: i, visibleLayerIds: p, className: n }) {
57
+ const r = i.filter((e) => p.includes(e.id)).map((e) => {
55
58
  var u;
56
- const l = ((u = a.legend) == null ? void 0 : u.entries) ?? d(a);
57
- return l ? { layer: a, entries: l } : null;
59
+ const l = ((u = e.legend) == null ? void 0 : u.entries) ?? d(e);
60
+ return l ? { layer: e, entries: l } : null;
58
61
  }).filter(Boolean);
59
62
  return r.length === 0 ? null : /* @__PURE__ */ m(
60
63
  "div",
61
64
  {
62
65
  className: `mapui:rounded-lg mapui:bg-white mapui:p-3 mapui:shadow-md mapui:text-sm${n ? ` ${n}` : ""}`,
63
66
  children: [
64
- /* @__PURE__ */ e("h3", { className: "mapui:m-0 mapui:mb-2 mapui:text-xs mapui:font-semibold mapui:uppercase mapui:tracking-wide mapui:text-gray-500", children: "Legend" }),
65
- /* @__PURE__ */ e("ul", { className: "mapui:m-0 mapui:list-none mapui:space-y-2 mapui:p-0", children: r.map(({ layer: a, entries: l }) => /* @__PURE__ */ e("li", { children: l.length === 1 ? /* @__PURE__ */ m("div", { className: "mapui:flex mapui:items-center mapui:gap-2 mapui:min-w-0", children: [
66
- /* @__PURE__ */ e(
67
+ /* @__PURE__ */ a("h3", { className: "mapui:m-0 mapui:mb-2 mapui:text-xs mapui:font-semibold mapui:uppercase mapui:tracking-wide mapui:text-gray-500", children: "Legend" }),
68
+ /* @__PURE__ */ a("ul", { className: "mapui:m-0 mapui:list-none mapui:space-y-2 mapui:p-0", children: r.map(({ layer: e, entries: l }) => /* @__PURE__ */ a("li", { children: l.length === 1 ? /* @__PURE__ */ m("div", { className: "mapui:flex mapui:items-center mapui:gap-2 mapui:min-w-0", children: [
69
+ /* @__PURE__ */ a(
67
70
  s,
68
71
  {
69
72
  color: l[0].color,
70
73
  shape: l[0].shape
71
74
  }
72
75
  ),
73
- /* @__PURE__ */ e("span", { className: "mapui:text-gray-700 mapui:truncate", children: l[0].label })
76
+ /* @__PURE__ */ a("span", { className: "mapui:text-gray-700 mapui:truncate", children: l[0].label })
74
77
  ] }) : /* @__PURE__ */ m("div", { children: [
75
- /* @__PURE__ */ e("div", { className: "mapui:mb-1 mapui:text-xs mapui:font-medium mapui:text-gray-600", children: a.label }),
76
- /* @__PURE__ */ e("ul", { className: "mapui:m-0 mapui:list-none mapui:space-y-1 mapui:p-0 mapui:pl-1", children: l.map((u, c) => /* @__PURE__ */ m(
78
+ /* @__PURE__ */ a("div", { className: "mapui:mb-1 mapui:text-xs mapui:font-medium mapui:text-gray-600", children: e.label }),
79
+ /* @__PURE__ */ a("ul", { className: "mapui:m-0 mapui:list-none mapui:space-y-1 mapui:p-0 mapui:pl-1", children: l.map((u, c) => /* @__PURE__ */ m(
77
80
  "li",
78
81
  {
79
82
  className: "mapui:flex mapui:items-center mapui:gap-2 mapui:min-w-0",
80
83
  children: [
81
- /* @__PURE__ */ e(s, { color: u.color, shape: u.shape }),
82
- /* @__PURE__ */ e("span", { className: "mapui:text-gray-700 mapui:truncate", children: u.label })
84
+ /* @__PURE__ */ a(s, { color: u.color, shape: u.shape }),
85
+ /* @__PURE__ */ a("span", { className: "mapui:text-gray-700 mapui:truncate", children: u.label })
83
86
  ]
84
87
  },
85
88
  `${u.label}-${c}`
86
89
  )) })
87
- ] }) }, a.id)) })
90
+ ] }) }, e.id)) })
88
91
  ]
89
92
  }
90
93
  );
91
94
  }
92
95
  export {
93
- g as L
96
+ b as L
94
97
  };
@@ -1 +1 @@
1
- {"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAqB,MAAM,aAAa,CAAC;AAehF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;CAClC;AA6BD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,gBAAgB,2CAwNlF"}
1
+ {"version":3,"file":"LayerEditor.d.ts","sourceRoot":"","sources":["../../../src/components/LayerEditor/LayerEditor.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAqB,MAAM,aAAa,CAAC;AAgBhF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,gBAAgB,EAAE,YAAY,EAAE,CAAC;CAClC;AAKD,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,gBAAgB,2CA4NlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/components/Legend/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmED,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,WAAW,kDA0DzE"}
1
+ {"version":3,"file":"Legend.d.ts","sourceRoot":"","sources":["../../../src/components/Legend/Legend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AAEzE,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsED,wBAAgB,MAAM,CAAC,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,EAAE,WAAW,kDA0DzE"}
@@ -1,4 +1,4 @@
1
- import { L as r } from "../../Legend-BMrkY-rw.js";
1
+ import { L as r } from "../../Legend-TTWWpWDT.js";
2
2
  export {
3
3
  r as Legend
4
4
  };
@@ -0,0 +1,9 @@
1
+ import { PropertyDefinition } from './propertyMetadata';
2
+ interface PropertyFieldProps {
3
+ def: PropertyDefinition;
4
+ value: unknown;
5
+ onChange: (key: string, value: unknown) => void;
6
+ }
7
+ export declare function PropertyField({ def, value, onChange }: PropertyFieldProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
9
+ //# sourceMappingURL=PropertyField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyField.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/PropertyField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAO7D,UAAU,kBAAkB;IAC1B,GAAG,EAAE,kBAAkB,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACjD;AAiLD,wBAAgB,aAAa,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CAiCzE"}
@@ -0,0 +1,11 @@
1
+ import { PropertyDefinition } from './propertyMetadata';
2
+ interface PropertyGroupProps {
3
+ title: string;
4
+ properties: PropertyDefinition[];
5
+ values: Record<string, unknown>;
6
+ onChange: (key: string, value: unknown) => void;
7
+ defaultOpen?: boolean;
8
+ }
9
+ export declare function PropertyGroup({ title, properties, values, onChange, defaultOpen, }: PropertyGroupProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=PropertyGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyGroup.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/PropertyGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAI7D,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,kBAAkB,EAAE,CAAC;IACjC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,QAAQ,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,MAAM,EACN,QAAQ,EACR,WAAmB,GACpB,EAAE,kBAAkB,2CAcpB"}
@@ -1,11 +1,12 @@
1
- import { StyleConfig, FillStyle, LineStyle, CircleStyle } from '../../types';
1
+ import { StyleConfig, FillStyle, LineStyle, CircleStyle, SymbolStyle } from '../../types';
2
2
  export interface StyleEditorProps {
3
3
  value: StyleConfig;
4
4
  onChange: (style: StyleConfig) => void;
5
- suggestedType?: 'fill' | 'line' | 'circle' | null;
5
+ suggestedType?: 'fill' | 'line' | 'circle' | 'symbol' | null;
6
6
  }
7
7
  export declare const defaultFill: FillStyle;
8
8
  export declare const defaultLine: LineStyle;
9
9
  export declare const defaultCircle: CircleStyle;
10
+ export declare const defaultSymbol: SymbolStyle;
10
11
  export declare function StyleEditor({ value, onChange, suggestedType }: StyleEditorProps): import("react/jsx-runtime").JSX.Element;
11
12
  //# sourceMappingURL=StyleEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyleEditor.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/StyleEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIlF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,IAAI,CAAC;CACnD;AAED,eAAO,MAAM,WAAW,EAAE,SAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,SAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAG3B,CAAC;AA4DF,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,gBAAgB,2CA0R/E"}
1
+ {"version":3,"file":"StyleEditor.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/StyleEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/F,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,IAAI,CAAC;CAC9D;AAED,eAAO,MAAM,WAAW,EAAE,SAGzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,SAGzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAG3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,WAI3B,CAAC;AAYF,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,EAAE,gBAAgB,2CAgH/E"}
@@ -0,0 +1,5 @@
1
+ import { StyleConfig } from '../../types';
2
+ export declare function StylePreview({ style }: {
3
+ style: StyleConfig;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=StylePreview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StylePreview.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/StylePreview.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,WAAW,CAAA;CAAE,2CAuE7D"}
@@ -1,3 +1,3 @@
1
- export { StyleEditor, defaultFill, defaultLine, defaultCircle } from './StyleEditor';
1
+ export { StyleEditor, defaultFill, defaultLine, defaultCircle, defaultSymbol } from './StyleEditor';
2
2
  export type { StyleEditorProps } from './StyleEditor';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACrF,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACpG,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,16 @@
1
+ export type EditorWidget = 'color' | 'opacity' | 'number' | 'boolean' | 'enum' | 'translate' | 'padding' | 'dasharray' | 'stringArray' | 'text';
2
+ export interface PropertyDefinition {
3
+ key: string;
4
+ label: string;
5
+ widget: EditorWidget;
6
+ group: string;
7
+ category: 'paint' | 'layout';
8
+ description?: string;
9
+ min?: number;
10
+ max?: number;
11
+ step?: number;
12
+ options?: string[];
13
+ /** Value set when the user enables an optional property. undefined means the property is required. */
14
+ enableDefault?: unknown;
15
+ }
16
+ //# sourceMappingURL=propertyMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertyMetadata.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/propertyMetadata.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,GACN,WAAW,GACX,SAAS,GACT,WAAW,GACX,aAAa,GACb,MAAM,CAAC;AAEX,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,YAAY,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,sGAAsG;IACtG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,4 @@
1
+ import { PropertyDefinition } from './propertyMetadata';
2
+ export declare function getPropertyRegistry(type: string): PropertyDefinition[];
3
+ export declare function groupProperties(defs: PropertyDefinition[]): Record<string, PropertyDefinition[]>;
4
+ //# sourceMappingURL=propertyRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"propertyRegistry.d.ts","sourceRoot":"","sources":["../../../src/components/StyleEditor/propertyRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AA6H7D,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAEtE;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,kBAAkB,EAAE,GACzB,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAOtC"}
@@ -0,0 +1,8 @@
1
+ export interface CollapsibleSectionProps {
2
+ title: string;
3
+ children: React.ReactNode;
4
+ defaultOpen?: boolean;
5
+ badge?: number;
6
+ }
7
+ export declare function CollapsibleSection({ title, children, defaultOpen, badge, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
8
+ //# sourceMappingURL=CollapsibleSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CollapsibleSection.d.ts","sourceRoot":"","sources":["../../../src/components/admin/CollapsibleSection.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,QAAQ,EACR,WAAmB,EACnB,KAAK,GACN,EAAE,uBAAuB,2CAsBzB"}
@@ -4,4 +4,6 @@ export { ColorPicker } from './ColorPicker';
4
4
  export type { ColorPickerProps } from './ColorPicker';
5
5
  export { ConfirmDialog } from './ConfirmDialog';
6
6
  export type { ConfirmDialogProps } from './ConfirmDialog';
7
+ export { CollapsibleSection } from './CollapsibleSection';
8
+ export type { CollapsibleSectionProps } from './CollapsibleSection';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,YAAY,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}