@funnest/charts-ui 0.7.3 → 0.7.5

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/i18n.d.ts CHANGED
@@ -21,6 +21,8 @@ export declare const STRINGS: {
21
21
  volume: string;
22
22
  chartType: string;
23
23
  candles: string;
24
+ hollowCandles: string;
25
+ heikinAshi: string;
24
26
  line: string;
25
27
  area: string;
26
28
  drawingTools: string;
@@ -185,6 +187,8 @@ export declare const STRINGS: {
185
187
  volume: string;
186
188
  chartType: string;
187
189
  candles: string;
190
+ hollowCandles: string;
191
+ heikinAshi: string;
188
192
  line: string;
189
193
  area: string;
190
194
  drawingTools: string;
package/dist/icons.d.ts CHANGED
@@ -18,6 +18,8 @@ export declare const FibonacciIcon: () => import("preact").JSX.Element;
18
18
  export declare const TrashIcon: () => import("preact").JSX.Element;
19
19
  export declare const PencilIcon: () => import("preact").JSX.Element;
20
20
  export declare const CandlesIcon: () => import("preact").JSX.Element;
21
+ export declare const HollowCandlesIcon: () => import("preact").JSX.Element;
22
+ export declare const HeikinAshiIcon: () => import("preact").JSX.Element;
21
23
  export declare const LineChartIcon: () => import("preact").JSX.Element;
22
24
  export declare const AreaChartIcon: () => import("preact").JSX.Element;
23
25
  export declare const IndicatorIcon: () => import("preact").JSX.Element;
package/dist/index.js CHANGED
@@ -447,6 +447,8 @@ var STRINGS = {
447
447
  volume: "\uAC70\uB798\uB7C9",
448
448
  chartType: "\uCC28\uD2B8 \uC885\uB958",
449
449
  candles: "\uCE94\uB4E4",
450
+ hollowCandles: "\uC18D \uBE48 \uCE94\uB4E4",
451
+ heikinAshi: "\uD558\uC774\uD0A8\uC544\uC2DC",
450
452
  line: "\uB77C\uC778",
451
453
  area: "\uC601\uC5ED",
452
454
  drawingTools: "\uADF8\uB9AC\uAE30 \uB3C4\uAD6C",
@@ -613,6 +615,8 @@ var STRINGS = {
613
615
  volume: "Vol",
614
616
  chartType: "Chart type",
615
617
  candles: "Candles",
618
+ hollowCandles: "Hollow candles",
619
+ heikinAshi: "Heikin Ashi",
616
620
  line: "Line",
617
621
  area: "Area",
618
622
  drawingTools: "Drawing tools",
@@ -836,6 +840,17 @@ var CandlesIcon = () => /* @__PURE__ */ a3(Icon, { children: [
836
840
  /* @__PURE__ */ a3("rect", { x: "4.5", y: "6", width: "4", height: "6", rx: "0.8", fill: "currentColor" }),
837
841
  /* @__PURE__ */ a3("rect", { x: "11.5", y: "8", width: "4", height: "5", rx: "0.8" })
838
842
  ] });
843
+ var HollowCandlesIcon = () => /* @__PURE__ */ a3(Icon, { children: [
844
+ /* @__PURE__ */ a3("path", { d: "M6.5 3.5v2.5M6.5 12v4.5M13.5 3.5v4.5M13.5 13v3.5" }),
845
+ /* @__PURE__ */ a3("rect", { x: "4.5", y: "6", width: "4", height: "6", rx: "0.8" }),
846
+ /* @__PURE__ */ a3("rect", { x: "11.5", y: "8", width: "4", height: "5", rx: "0.8", fill: "currentColor" })
847
+ ] });
848
+ var HeikinAshiIcon = () => /* @__PURE__ */ a3(Icon, { children: [
849
+ /* @__PURE__ */ a3("path", { d: "M5 4v12M10 3v12M15 5v11" }),
850
+ /* @__PURE__ */ a3("rect", { x: "3.3", y: "7", width: "3.4", height: "5", rx: "0.7", fill: "currentColor" }),
851
+ /* @__PURE__ */ a3("rect", { x: "8.3", y: "5.5", width: "3.4", height: "6", rx: "0.7", fill: "currentColor" }),
852
+ /* @__PURE__ */ a3("rect", { x: "13.3", y: "7.5", width: "3.4", height: "5", rx: "0.7" })
853
+ ] });
839
854
  var LineChartIcon = () => /* @__PURE__ */ a3(Icon, { children: /* @__PURE__ */ a3("path", { d: "M3 14l4.5-5 3.5 3 6-7" }) });
840
855
  var AreaChartIcon = () => /* @__PURE__ */ a3(Icon, { children: [
841
856
  /* @__PURE__ */ a3("path", { d: "M3 14l4.5-5 3.5 3 6-7" }),
@@ -2460,6 +2475,8 @@ function LayoutGlyph({ id }) {
2460
2475
  // src/components/tools-menu.tsx
2461
2476
  var TYPES = [
2462
2477
  { type: "candles", label: "candles", icon: CandlesIcon },
2478
+ { type: "hollow", label: "hollowCandles", icon: HollowCandlesIcon },
2479
+ { type: "heikin", label: "heikinAshi", icon: HeikinAshiIcon },
2463
2480
  { type: "line", label: "line", icon: LineChartIcon },
2464
2481
  { type: "area", label: "area", icon: AreaChartIcon }
2465
2482
  ];
@@ -2572,7 +2589,7 @@ function ToolsMenu({ ctx }) {
2572
2589
  ),
2573
2590
  open && /* @__PURE__ */ a3("div", { class: "fnc-menu fnc-tools-menu", role: "menu", "aria-label": t3.tools, ref: menuRef, children: [
2574
2591
  /* @__PURE__ */ a3("div", { class: "fnc-tools-section", children: t3.chartType }),
2575
- /* @__PURE__ */ a3("div", { class: "fnc-seg fnc-tools-seg", role: "radiogroup", "aria-label": t3.chartType, children: TYPES.map(({ type, label, icon: Icon2 }) => /* @__PURE__ */ a3(
2592
+ /* @__PURE__ */ a3("div", { class: "fnc-seg fnc-tools-seg", role: "radiogroup", "aria-label": t3.chartType, "data-count": TYPES.length, children: TYPES.map(({ type, label, icon: Icon2 }) => /* @__PURE__ */ a3(
2576
2593
  "button",
2577
2594
  {
2578
2595
  type: "button",
@@ -4186,6 +4203,8 @@ var CSS = (
4186
4203
  .fnc-tools-menu { width: 300px; padding: 8px; gap: 2px; max-height: 72vh; overflow-y: auto; }
4187
4204
  .fnc-tools-section { padding: 8px 6px 6px; font-size: 12px; font-weight: 700; color: var(--fnc-text-2); }
4188
4205
  .fnc-tools-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 2px 4px; }
4206
+ .fnc-tools-seg[data-count="5"] { display: grid; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 2px; }
4207
+ .fnc-tools-seg[data-count="5"] button { flex-direction: column; gap: 2px; height: auto; min-height: 40px; padding: 5px 4px; font-size: 12px; white-space: normal; word-break: keep-all; text-align: center; line-height: 1.25; }
4189
4208
  .fnc-tools-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; padding: 0 6px; }
4190
4209
  .fnc-tools-seg svg { width: 16px; height: 16px; flex: none; }
4191
4210
  .fnc-tools-layouts { display: flex; flex-direction: column; gap: 2px; padding: 0 2px 4px; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnest/charts-ui",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
5
5
  "keywords": [
6
6
  "chart",
@@ -42,7 +42,7 @@
42
42
  "NOTICE"
43
43
  ],
44
44
  "dependencies": {
45
- "@funnest/charts": "0.7.3"
45
+ "@funnest/charts": "0.7.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "preact": "^11.2.0"