@funnest/charts-ui 0.11.5 → 0.11.6

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.
@@ -1,7 +1,7 @@
1
1
  import type { WidgetContext } from '../context.js';
2
2
  /**
3
3
  * Right-click menu on the chart (mouse only): undo/redo, the host's own items
4
- * (`contextMenuItems`), a horizontal line at the clicked price, reset and settings.
4
+ * (`contextMenuItems`), go to date, lock chart, reset and settings.
5
5
  */
6
6
  export declare function ContextMenu({ ctx }: {
7
7
  ctx: WidgetContext;
package/dist/i18n.d.ts CHANGED
@@ -76,6 +76,24 @@ export declare const STRINGS: {
76
76
  scalePercentLong: string;
77
77
  scaleIndexed: string;
78
78
  scaleIndexedShort: string;
79
+ settingsChart: string;
80
+ settingBackground: string;
81
+ bgSolid: string;
82
+ bgGradient: string;
83
+ bgGradientBottom: string;
84
+ settingGridColor: string;
85
+ settingPaneBorder: string;
86
+ settingCrosshair: string;
87
+ settingAxisText: string;
88
+ settingAxisBg: string;
89
+ settingUpBody: string;
90
+ settingDownBody: string;
91
+ settingUpBorder: string;
92
+ settingDownBorder: string;
93
+ settingUpWick: string;
94
+ settingDownWick: string;
95
+ settingVolumeUp: string;
96
+ settingVolumeDown: string;
79
97
  settingsTabLook: string;
80
98
  settingsTabMotion: string;
81
99
  settingsWatermark: string;
@@ -387,6 +405,24 @@ export declare const STRINGS: {
387
405
  scalePercentLong: string;
388
406
  scaleIndexed: string;
389
407
  scaleIndexedShort: string;
408
+ settingsChart: string;
409
+ settingBackground: string;
410
+ bgSolid: string;
411
+ bgGradient: string;
412
+ bgGradientBottom: string;
413
+ settingGridColor: string;
414
+ settingPaneBorder: string;
415
+ settingCrosshair: string;
416
+ settingAxisText: string;
417
+ settingAxisBg: string;
418
+ settingUpBody: string;
419
+ settingDownBody: string;
420
+ settingUpBorder: string;
421
+ settingDownBorder: string;
422
+ settingUpWick: string;
423
+ settingDownWick: string;
424
+ settingVolumeUp: string;
425
+ settingVolumeDown: string;
390
426
  settingsTabLook: string;
391
427
  settingsTabMotion: string;
392
428
  settingsWatermark: string;
package/dist/index.js CHANGED
@@ -511,6 +511,24 @@ var STRINGS = {
511
511
  scalePercentLong: "\uD37C\uC13C\uD2B8",
512
512
  scaleIndexed: "100 \uAE30\uC900",
513
513
  scaleIndexedShort: "100",
514
+ settingsChart: "\uCC28\uD2B8",
515
+ settingBackground: "\uBC30\uACBD",
516
+ bgSolid: "\uB2E8\uC0C9",
517
+ bgGradient: "\uADF8\uB77C\uB370\uC774\uC158",
518
+ bgGradientBottom: "\uBC30\uACBD \uC544\uB798\uCABD",
519
+ settingGridColor: "\uACA9\uC790",
520
+ settingPaneBorder: "\uCC3D \uAD6C\uBD84\uC120",
521
+ settingCrosshair: "\uD06C\uB85C\uC2A4\uD5E4\uC5B4",
522
+ settingAxisText: "\uCD95 \uD14D\uC2A4\uD2B8",
523
+ settingAxisBg: "\uCD95 \uBC30\uACBD",
524
+ settingUpBody: "\uC0C1\uC2B9 \uCE94\uB4E4",
525
+ settingDownBody: "\uD558\uB77D \uCE94\uB4E4",
526
+ settingUpBorder: "\uC0C1\uC2B9 \uD14C\uB450\uB9AC",
527
+ settingDownBorder: "\uD558\uB77D \uD14C\uB450\uB9AC",
528
+ settingUpWick: "\uC0C1\uC2B9 \uAF2C\uB9AC",
529
+ settingDownWick: "\uD558\uB77D \uAF2C\uB9AC",
530
+ settingVolumeUp: "\uC0C1\uC2B9 \uAC70\uB798\uB7C9",
531
+ settingVolumeDown: "\uD558\uB77D \uAC70\uB798\uB7C9",
514
532
  settingsTabLook: "\uBAA8\uC2B5",
515
533
  settingsTabMotion: "\uC560\uB2C8\uBA54\uC774\uC158",
516
534
  settingsWatermark: "\uC6CC\uD130\uB9C8\uD06C",
@@ -824,6 +842,24 @@ var STRINGS = {
824
842
  scalePercentLong: "Percent",
825
843
  scaleIndexed: "Indexed to 100",
826
844
  scaleIndexedShort: "100",
845
+ settingsChart: "Chart",
846
+ settingBackground: "Background",
847
+ bgSolid: "Solid",
848
+ bgGradient: "Gradient",
849
+ bgGradientBottom: "Background bottom",
850
+ settingGridColor: "Grid",
851
+ settingPaneBorder: "Pane separators",
852
+ settingCrosshair: "Crosshair",
853
+ settingAxisText: "Axis text",
854
+ settingAxisBg: "Axis background",
855
+ settingUpBody: "Up candles",
856
+ settingDownBody: "Down candles",
857
+ settingUpBorder: "Up borders",
858
+ settingDownBorder: "Down borders",
859
+ settingUpWick: "Up wicks",
860
+ settingDownWick: "Down wicks",
861
+ settingVolumeUp: "Up volume",
862
+ settingVolumeDown: "Down volume",
827
863
  settingsTabLook: "Appearance",
828
864
  settingsTabMotion: "Animation",
829
865
  settingsWatermark: "Watermark",
@@ -2915,6 +2951,7 @@ import {
2915
2951
  CHART_THEMES,
2916
2952
  DEFAULT_CHART_SETTINGS,
2917
2953
  matchChartTheme,
2954
+ themeSettings,
2918
2955
  resolutionToMs as resolutionToMs2
2919
2956
  } from "@funnest/charts";
2920
2957
  function toHex(color) {
@@ -2951,6 +2988,25 @@ var MOTION_ROWS = [
2951
2988
  { key: "priceAnimation", label: "settingPriceAnimation", hint: "hintPriceAnimation" },
2952
2989
  { key: "drawOnLoad", label: "settingDrawOnLoad", hint: "hintDrawOnLoad" }
2953
2990
  ];
2991
+ var CHART_COLORS = [
2992
+ { key: "gridColor", label: "settingGridColor", shown: (p3) => p3.grid },
2993
+ { key: "paneBorderColor", label: "settingPaneBorder", shown: (p3) => p3.border },
2994
+ { key: "crosshairColor", label: "settingCrosshair", shown: (p3) => p3.crosshair },
2995
+ { key: "axisTextColor", label: "settingAxisText", shown: (p3) => p3.axisText },
2996
+ { key: "axisBackground", label: "settingAxisBg", shown: (p3) => p3.axisBackground }
2997
+ ];
2998
+ var CANDLE_COLORS = [
2999
+ { key: "upColor", label: "settingUpBody", shown: (p3) => p3.up },
3000
+ { key: "downColor", label: "settingDownBody", shown: (p3) => p3.down },
3001
+ { key: "upBorderColor", label: "settingUpBorder", shown: (p3) => p3.upBorder },
3002
+ { key: "downBorderColor", label: "settingDownBorder", shown: (p3) => p3.downBorder },
3003
+ { key: "upWickColor", label: "settingUpWick", shown: (p3) => p3.upWick },
3004
+ { key: "downWickColor", label: "settingDownWick", shown: (p3) => p3.downWick }
3005
+ ];
3006
+ var VOLUME_COLORS = [
3007
+ { key: "volumeUpColor", label: "settingVolumeUp", shown: (p3) => p3.volumeUp, seeThrough: true },
3008
+ { key: "volumeDownColor", label: "settingVolumeDown", shown: (p3) => p3.volumeDown, seeThrough: true }
3009
+ ];
2954
3010
  var SCALES = [
2955
3011
  { mode: "normal", label: "scaleNormal" },
2956
3012
  { mode: "percent", label: "scalePercentLong" },
@@ -2969,6 +3025,12 @@ function SettingsDialog({ ctx }) {
2969
3025
  const set = (patch) => ctx.chart.setSettings(patch);
2970
3026
  const themeColor = (name) => toHex(getComputedStyle(ctx.root).getPropertyValue(name).trim());
2971
3027
  const currentTheme = matchChartTheme(settings);
3028
+ const palette = ctx.chart.paletteInUse;
3029
+ const colorRow = ({ key, label, shown: shown2, seeThrough }) => /* @__PURE__ */ a3("div", { class: "fnc-row fnc-color-row", children: [
3030
+ /* @__PURE__ */ a3("span", { class: "fnc-toggle-label", children: t3[label] }),
3031
+ settings[key] && /* @__PURE__ */ a3("button", { type: "button", class: "fnc-color-reset", title: t3.followTheme, "aria-label": `${t3[label]} ${t3.followTheme}`, onClick: () => set({ [key]: null }), children: /* @__PURE__ */ a3(ResetIcon, {}) }),
3032
+ /* @__PURE__ */ a3(Swatch, { label: t3[label], color: toHex(shown2(palette)), seeThrough, onPick: (c3) => set({ [key]: c3 }) })
3033
+ ] });
2972
3034
  const tabs = [
2973
3035
  ["look", t3.settingsTabLook],
2974
3036
  ["scale", t3.settingsScale],
@@ -3001,7 +3063,7 @@ function SettingsDialog({ ctx }) {
3001
3063
  const grid = c3.gridColor ?? themeColor("--fnc-border");
3002
3064
  const up = c3.upColor ?? themeColor("--fnc-up");
3003
3065
  const down = c3.downColor ?? themeColor("--fnc-down");
3004
- return /* @__PURE__ */ a3("button", { type: "button", role: "radio", class: "fnc-theme", "aria-checked": currentTheme?.id === theme.id, onClick: () => set({ ...c3 }), children: [
3066
+ return /* @__PURE__ */ a3("button", { type: "button", role: "radio", class: "fnc-theme", "aria-checked": currentTheme?.id === theme.id, onClick: () => set(themeSettings(theme)), children: [
3005
3067
  /* @__PURE__ */ a3("svg", { class: "fnc-theme-swatch", viewBox: "0 0 56 36", "aria-hidden": "true", children: [
3006
3068
  /* @__PURE__ */ a3("rect", { x: "0.5", y: "0.5", width: "55", height: "35", rx: "5", fill: bg, stroke: grid }),
3007
3069
  /* @__PURE__ */ a3("path", { d: "M4 12h48M4 24h48", stroke: grid }),
@@ -3013,12 +3075,41 @@ function SettingsDialog({ ctx }) {
3013
3075
  /* @__PURE__ */ a3("span", { children: theme.name[locale === "en" ? "en" : "ko"] })
3014
3076
  ] });
3015
3077
  }) }),
3078
+ /* @__PURE__ */ a3("div", { class: "fnc-section", children: t3.settingsChart }),
3079
+ /* @__PURE__ */ a3("div", { class: "fnc-row fnc-color-row", children: [
3080
+ /* @__PURE__ */ a3("span", { class: "fnc-toggle-label", children: t3.settingBackground }),
3081
+ (settings.background || settings.backgroundBottom || settings.backgroundStyle !== "solid") && /* @__PURE__ */ a3(
3082
+ "button",
3083
+ {
3084
+ type: "button",
3085
+ class: "fnc-color-reset",
3086
+ title: t3.followTheme,
3087
+ "aria-label": `${t3.settingBackground} ${t3.followTheme}`,
3088
+ onClick: () => set({ background: null, backgroundBottom: null, backgroundStyle: "solid" }),
3089
+ children: /* @__PURE__ */ a3(ResetIcon, {})
3090
+ }
3091
+ ),
3092
+ /* @__PURE__ */ a3(
3093
+ "select",
3094
+ {
3095
+ class: "fnc-settings-select",
3096
+ "aria-label": t3.settingBackground,
3097
+ value: settings.backgroundStyle,
3098
+ onChange: (e3) => set({ backgroundStyle: e3.currentTarget.value }),
3099
+ children: [
3100
+ /* @__PURE__ */ a3("option", { value: "solid", children: t3.bgSolid }),
3101
+ /* @__PURE__ */ a3("option", { value: "gradient", children: t3.bgGradient })
3102
+ ]
3103
+ }
3104
+ ),
3105
+ /* @__PURE__ */ a3(Swatch, { label: t3.settingBackground, color: toHex(palette.background), onPick: (c3) => set({ background: c3 }) }),
3106
+ settings.backgroundStyle === "gradient" && /* @__PURE__ */ a3(Swatch, { label: t3.bgGradientBottom, color: toHex(palette.backgroundBottom ?? palette.background), onPick: (c3) => set({ backgroundBottom: c3 }) })
3107
+ ] }),
3108
+ CHART_COLORS.map(colorRow),
3016
3109
  /* @__PURE__ */ a3("div", { class: "fnc-section", children: t3.settingsCandles }),
3017
- ["upColor", "downColor"].map((key) => /* @__PURE__ */ a3("label", { class: "fnc-row", children: [
3018
- /* @__PURE__ */ a3("span", { class: "fnc-row-label fnc-row-label-wide", children: key === "upColor" ? t3.settingUpColor : t3.settingDownColor }),
3019
- /* @__PURE__ */ a3("input", { type: "color", class: "fnc-color", value: settings[key] ?? themeColor(key === "upColor" ? "--fnc-up" : "--fnc-down"), onInput: (e3) => set({ [key]: e3.currentTarget.value }) }),
3020
- settings[key] && /* @__PURE__ */ a3("button", { type: "button", class: "fnc-link", onClick: () => set({ [key]: null }), children: t3.followTheme })
3021
- ] })),
3110
+ CANDLE_COLORS.map(colorRow),
3111
+ /* @__PURE__ */ a3("div", { class: "fnc-section", children: t3.settingVolume }),
3112
+ VOLUME_COLORS.map(colorRow),
3022
3113
  /* @__PURE__ */ a3("div", { class: "fnc-section", children: t3.settingsGrid }),
3023
3114
  toggles(GRID)
3024
3115
  ] }),
@@ -3106,6 +3197,12 @@ function usePageLayer(anchor, settings) {
3106
3197
  }, [layer, settings]);
3107
3198
  return layer;
3108
3199
  }
3200
+ function Swatch({ label, color, seeThrough, onPick }) {
3201
+ return /* @__PURE__ */ a3("label", { class: seeThrough ? "fnc-swatch-pick is-see-through" : "fnc-swatch-pick", title: label, children: [
3202
+ /* @__PURE__ */ a3("span", { style: { background: color } }),
3203
+ /* @__PURE__ */ a3("input", { type: "color", "aria-label": label, value: color, onInput: (e3) => onPick(e3.currentTarget.value) })
3204
+ ] });
3205
+ }
3109
3206
  function Info({ text }) {
3110
3207
  return /* @__PURE__ */ a3("span", { class: "fnc-info", tabIndex: 0, role: "img", "aria-label": text, onClick: (e3) => e3.preventDefault(), children: [
3111
3208
  /* @__PURE__ */ a3("svg", { width: "18", height: "18", viewBox: "0 0 18 18", "aria-hidden": "true", children: [
@@ -4234,10 +4331,7 @@ function Toolbar({ ctx }) {
4234
4331
  import { browserLocale, createChart } from "@funnest/charts";
4235
4332
 
4236
4333
  // src/components/overlay.tsx
4237
- import { formatCompact, formatPrice as formatPrice4 } from "@funnest/charts";
4238
-
4239
- // src/components/context-menu.tsx
4240
- import { formatPrice as formatPrice2 } from "@funnest/charts";
4334
+ import { formatCompact, formatPrice as formatPrice3 } from "@funnest/charts";
4241
4335
 
4242
4336
  // src/components/menu-icon.tsx
4243
4337
  function Glyph({ children }) {
@@ -4322,8 +4416,6 @@ function ContextMenu({ ctx }) {
4322
4416
  if (!target) return null;
4323
4417
  const mac = /Mac|iPhone|iPad/.test(navigator.platform);
4324
4418
  const mod = mac ? "\u2318" : "Ctrl+";
4325
- const price = target.price;
4326
- const precision = s3.symbol?.pricePrecision ?? 2;
4327
4419
  const extra = ctx.contextMenuItems?.({ ...target, chart: ctx.chart }) ?? [];
4328
4420
  const items = [
4329
4421
  { label: t3.undo, icon: "undo", shortcut: `${mod}Z`, disabled: !s3.canUndo, onSelect: () => ctx.chart.undo() },
@@ -4331,21 +4423,10 @@ function ContextMenu({ ctx }) {
4331
4423
  "separator",
4332
4424
  ...extra.length ? [...extra, "separator"] : []
4333
4425
  ];
4334
- if (price !== null) {
4335
- const time = target.time ?? ctx.chart.bars[ctx.chart.bars.length - 1]?.time ?? Date.now();
4336
- items.push({
4337
- label: t3.horizontalAt.replace("{price}", formatPrice2(price, precision)),
4338
- icon: "line",
4339
- onSelect: () => ctx.chart.addDrawing({ type: "horizontal", points: [{ time, price }] })
4340
- });
4341
- }
4342
- const { zoomAnimation, scrollInertia, lockView, lockRatio } = ctx.chart.settings;
4343
- const smooth = zoomAnimation && scrollInertia;
4426
+ const { lockView } = ctx.chart.settings;
4344
4427
  items.push(
4345
4428
  { label: t3.goToDateMore, icon: "date", onSelect: () => ctx.store.set({ dialog: { kind: "goToDate" } }) },
4346
- { label: t3.smoothScroll, icon: "smooth", checked: smooth, onSelect: () => ctx.chart.setSettings({ smoothScroll: !smooth }) },
4347
4429
  { label: t3.lockView, icon: "lock", checked: lockView, onSelect: () => ctx.chart.setSettings({ lockView: !lockView }) },
4348
- { label: t3.lockRatio, icon: "ratio", checked: lockRatio, onSelect: () => ctx.chart.setSettings({ lockRatio: !lockRatio }) },
4349
4430
  "separator",
4350
4431
  { label: t3.resetChart, icon: "reset", disabled: lockView, onSelect: () => ctx.chart.resetView() },
4351
4432
  { label: t3.chartSettingsMore, icon: "settings", onSelect: () => ctx.store.set({ dialog: { kind: "chartSettings" } }) }
@@ -4374,7 +4455,7 @@ function ContextMenu({ ctx }) {
4374
4455
  }
4375
4456
 
4376
4457
  // src/components/price-axis-plus.tsx
4377
- import { formatPrice as formatPrice3 } from "@funnest/charts";
4458
+ import { formatPrice as formatPrice2 } from "@funnest/charts";
4378
4459
  function PriceAxisPlus({ ctx }) {
4379
4460
  const s3 = useStore(ctx.store);
4380
4461
  const t3 = stringsOf(s3);
@@ -4411,7 +4492,7 @@ function PriceAxisPlus({ ctx }) {
4411
4492
  const items = open ? [
4412
4493
  ...ctx.priceAxisActions({ price, chart: ctx.chart }),
4413
4494
  {
4414
- label: t3.horizontalAt.replace("{price}", formatPrice3(price, precision)),
4495
+ label: t3.horizontalAt.replace("{price}", formatPrice2(price, precision)),
4415
4496
  icon: "line",
4416
4497
  onSelect: () => {
4417
4498
  const time = ctx.chart.bars[ctx.chart.bars.length - 1]?.time ?? Date.now();
@@ -4629,7 +4710,7 @@ function Legend({ ctx }) {
4629
4710
  const bars = ctx.chart.bars;
4630
4711
  const bar = hover?.bar ?? bars[bars.length - 1];
4631
4712
  const prev = hover ? hover.prev : bars[bars.length - 2];
4632
- const fmt = (p3) => formatPrice4(p3, s3.symbol.pricePrecision);
4713
+ const fmt = (p3) => formatPrice3(p3, s3.symbol.pricePrecision);
4633
4714
  let values = null;
4634
4715
  if (bar && (ctx.legendValues === "always" || hover)) {
4635
4716
  const cls = dirClass(bar.close - bar.open);
@@ -6225,12 +6306,41 @@ var CSS = (
6225
6306
  .fnc-dialog.fnc-settings-dialog { width: min(940px, calc(100% - 32px)); height: min(660px, 100%); max-height: none; }
6226
6307
  .fnc-settings-body { display: flex; flex: 1; min-height: 0; }
6227
6308
  .fnc-settings-side { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; border-right: 1px solid var(--fnc-border); }
6228
- /* The tabs as wide as their words (the pill hugs the label), from the left: the first word starts
6229
- where the sections' titles (\uD14C\uB9C8, \uCE94\uB4E4\u2026) do \u2014 the row has the form's side padding, and the first
6230
- pill reaches left by its own padding. */
6231
- .fnc-settings-side .fnc-settings-tabs { flex: none; gap: 4px; padding: 10px 20px; }
6232
- .fnc-settings-tabs .fnc-tab { display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0 14px; }
6233
- .fnc-settings-tabs .fnc-tab:first-child { margin-left: -14px; }
6309
+ /* Tabs as words with a line under the chosen one (nothing reaches past the words): the row has
6310
+ the form's side padding, so the first word starts where the sections' titles (\uD14C\uB9C8, \uCC28\uD2B8\u2026) do. */
6311
+ .fnc-settings-side .fnc-settings-tabs { flex: none; gap: 22px; padding: 0 20px; }
6312
+ .fnc-settings-tabs .fnc-tab { display: inline-flex; align-items: center; flex: none; height: 46px; padding: 0; border-radius: 0; font-size: 14px; }
6313
+ .fnc-settings-tabs .fnc-tab[aria-selected='true'] { background: none; color: var(--fnc-text); box-shadow: inset 0 -2px 0 var(--fnc-text); }
6314
+ /* Settings rows packed like a list; section titles (\uD14C\uB9C8, \uCC28\uD2B8, \uCE94\uB4E4\u2026) in the text color, set apart. */
6315
+ .fnc-root .fnc-dialog form.fnc-settings-form { gap: 2px; }
6316
+ .fnc-settings-form .fnc-section { margin: 14px 0 4px; color: var(--fnc-text); font-size: 13px; font-weight: 700; }
6317
+ .fnc-settings-form .fnc-section:first-child { margin-top: 0; }
6318
+ .fnc-settings-form .fnc-toggle-row { min-height: 40px; }
6319
+ .fnc-settings-form .fnc-themes, .fnc-settings-form .fnc-settings-seg { margin-bottom: 4px; }
6320
+ /* Color rows: the name, then (when changed) back-to-theme, then the square. */
6321
+ .fnc-color-row { gap: 8px; min-height: 40px; }
6322
+ .fnc-color-reset { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; color: var(--fnc-text-2); }
6323
+ .fnc-color-reset:hover { background: var(--fnc-surface); color: var(--fnc-text); }
6324
+ .fnc-color-reset svg { width: 16px; height: 16px; }
6325
+ .fnc-swatch-pick { position: relative; display: inline-flex; flex: none; width: 26px; height: 26px; border-radius: 7px; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1px var(--fnc-border); }
6326
+ .fnc-swatch-pick > span { position: absolute; inset: 3px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(127 127 127 / 0.25); }
6327
+ .fnc-swatch-pick.is-see-through { background: repeating-conic-gradient(#8885 0% 25%, transparent 0% 50%) 50% / 8px 8px; }
6328
+ .fnc-swatch-pick.is-see-through > span { opacity: 0.35; }
6329
+ .fnc-swatch-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
6330
+ .fnc-swatch-pick:focus-within { outline: 2px solid var(--fnc-accent); outline-offset: 2px; }
6331
+ .fnc-settings-select {
6332
+ height: 32px;
6333
+ padding: 0 28px 0 12px;
6334
+ border: 0;
6335
+ border-radius: 8px;
6336
+ background: var(--fnc-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
6337
+ color: var(--fnc-text);
6338
+ font: inherit;
6339
+ font-size: 13px;
6340
+ font-weight: 600;
6341
+ appearance: none;
6342
+ cursor: pointer;
6343
+ }
6234
6344
  .fnc-root .fnc-dialog form.fnc-settings-form { flex: 1; min-height: 0; overflow-y: auto; }
6235
6345
  .fnc-settings-preview { display: flex; flex-direction: column; gap: 8px; flex: 1.2 1 0; min-width: 0; padding: 20px; }
6236
6346
  .fnc-settings-preview-chart { position: relative; flex: 1; min-height: 160px; border: 1px solid var(--fnc-border); border-radius: 12px; overflow: hidden; }
@@ -6239,9 +6349,8 @@ var CSS = (
6239
6349
  .fnc-backdrop:has(> .fnc-settings-dialog) { padding: 0; align-items: stretch; }
6240
6350
  .fnc-dialog.fnc-settings-dialog { width: 100%; height: 100%; border-radius: 0; }
6241
6351
  .fnc-settings-dialog .fnc-dialog-head { height: 44px; }
6242
- .fnc-settings-side .fnc-settings-tabs { padding: 6px 16px; }
6243
- .fnc-settings-tabs .fnc-tab { padding: 0 12px; }
6244
- .fnc-settings-tabs .fnc-tab:first-child { margin-left: -12px; }
6352
+ .fnc-settings-side .fnc-settings-tabs { gap: 18px; padding: 0 16px; }
6353
+ .fnc-settings-tabs .fnc-tab { height: 38px; }
6245
6354
  .fnc-settings-preview { padding: 8px 12px; }
6246
6355
  .fnc-settings-preview .fnc-section, .fnc-settings-preview .fnc-toggle-hint { display: none; }
6247
6356
  .fnc-settings-preview-chart .fnc-ranges { display: none; }
@@ -6304,9 +6413,8 @@ var CSS = (
6304
6413
  .fnc-settings-preview-chart { flex: none; height: clamp(170px, 34dvh, 280px); min-height: 0; }
6305
6414
  .fnc-settings-preview-chart .fnc-ranges { display: none; }
6306
6415
  .fnc-settings-side { flex: 1; min-height: 0; border-right: 0; }
6307
- .fnc-settings-side .fnc-settings-tabs { padding: 8px 20px; }
6308
- .fnc-settings-tabs .fnc-tab { padding: 0 12px; }
6309
- .fnc-settings-tabs .fnc-tab:first-child { margin-left: -12px; }
6416
+ .fnc-settings-side .fnc-settings-tabs { gap: 18px; padding: 0 20px; }
6417
+ .fnc-settings-tabs .fnc-tab { height: 42px; }
6310
6418
  .fnc-form-actions.fnc-settings-actions { padding: 8px 16px; }
6311
6419
  }
6312
6420
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnest/charts-ui",
3
- "version": "0.11.5",
3
+ "version": "0.11.6",
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.11.5"
45
+ "@funnest/charts": "0.11.6"
46
46
  },
47
47
  "devDependencies": {
48
48
  "preact": "^11.2.0"