@funnest/charts-ui 0.10.3 → 0.10.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.
Files changed (2) hide show
  1. package/dist/index.js +34 -25
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -5858,8 +5858,11 @@ var CSS = (
5858
5858
  /* \u2500\u2500 Drawing tool groups \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
5859
5859
  .fnc-tool-group { position: relative; display: flex; }
5860
5860
  .fnc-tool-group[data-open='true'] { z-index: 30; }
5861
- /* The list opener: a corner mark at rest; on hover a tab slides out to the right of the
5862
- button (a bigger target, like the reference terminals). Touch screens always show the tab. */
5861
+ /* The list opener: a corner mark at rest. On hover the button and a tab on its right light up as
5862
+ one piece \u2014 the same background, the button's right corners squared where the tab joins it, no
5863
+ gap between them \u2014 and the tab shows a chevron. Every tool in the bar lights up on hover the same
5864
+ way. Touch screens always show the chevron (no hover). */
5865
+ .fnc-drawbar .fnc-btn:hover { background: var(--fnc-surface); }
5863
5866
  .fnc-tool-more {
5864
5867
  position: absolute;
5865
5868
  top: 0;
@@ -5870,35 +5873,41 @@ var CSS = (
5870
5873
  justify-content: flex-end;
5871
5874
  width: 12px;
5872
5875
  padding: 0 0 2px;
5873
- border-radius: 0 var(--fnc-radius) var(--fnc-radius) 0;
5874
5876
  color: var(--fnc-text-2);
5875
- transition: right 0.12s ease, width 0.12s ease, background 0.12s ease;
5876
5877
  }
5877
5878
  .fnc-tool-corner { display: flex; opacity: 0.7; }
5878
5879
  .fnc-tool-chevron { display: none; }
5879
5880
  .fnc-tool-chevron svg { width: 12px; height: 12px; }
5880
- .fnc-tool-group:hover .fnc-tool-more,
5881
- .fnc-tool-more[aria-expanded='true'],
5882
- .fnc-tool-more:focus-visible {
5883
- right: -13px;
5884
- width: 14px;
5885
- align-items: center;
5886
- justify-content: center;
5887
- padding: 0;
5888
- background: var(--fnc-surface);
5889
- color: var(--fnc-text);
5890
- box-shadow: 0 0 0 1px var(--fnc-border);
5891
- }
5892
- .fnc-tool-group:hover .fnc-tool-corner,
5893
- .fnc-tool-more[aria-expanded='true'] .fnc-tool-corner,
5894
- .fnc-tool-more:focus-visible .fnc-tool-corner { display: none; }
5895
- .fnc-tool-group:hover .fnc-tool-chevron,
5896
- .fnc-tool-more[aria-expanded='true'] .fnc-tool-chevron,
5897
- .fnc-tool-more:focus-visible .fnc-tool-chevron { display: flex; }
5898
- /* Once the list is open the tab has done its job: it fades out (clicking its spot still closes the list). */
5899
- .fnc-tool-group[data-open='true'] .fnc-tool-more { opacity: 0; }
5881
+ @media (hover: hover) {
5882
+ .fnc-tool-group:has(.fnc-tool-more):hover > .fnc-btn,
5883
+ .fnc-tool-group[data-open='true'] > .fnc-btn {
5884
+ background: var(--fnc-surface);
5885
+ border-top-right-radius: 0;
5886
+ border-bottom-right-radius: 0;
5887
+ }
5888
+ .fnc-tool-group:hover .fnc-tool-more,
5889
+ .fnc-tool-more[aria-expanded='true'],
5890
+ .fnc-tool-more:focus-visible {
5891
+ right: -14px;
5892
+ width: 14px;
5893
+ align-items: center;
5894
+ justify-content: center;
5895
+ padding: 0;
5896
+ border-radius: 0 var(--fnc-radius) var(--fnc-radius) 0;
5897
+ background: var(--fnc-surface);
5898
+ color: var(--fnc-text-2);
5899
+ }
5900
+ .fnc-tool-more:hover,
5901
+ .fnc-tool-more[aria-expanded='true'] { color: var(--fnc-text); }
5902
+ .fnc-tool-group:hover .fnc-tool-corner,
5903
+ .fnc-tool-more[aria-expanded='true'] .fnc-tool-corner,
5904
+ .fnc-tool-more:focus-visible .fnc-tool-corner { display: none; }
5905
+ .fnc-tool-group:hover .fnc-tool-chevron,
5906
+ .fnc-tool-more[aria-expanded='true'] .fnc-tool-chevron,
5907
+ .fnc-tool-more:focus-visible .fnc-tool-chevron { display: flex; }
5908
+ }
5900
5909
  @media (hover: none) {
5901
- .fnc-tool-more { right: -12px; width: 14px; align-items: center; justify-content: center; padding: 0; }
5910
+ .fnc-tool-more { right: -8px; width: 10px; align-items: center; justify-content: center; padding: 0; }
5902
5911
  .fnc-tool-corner { display: none; }
5903
5912
  .fnc-tool-chevron { display: flex; }
5904
5913
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnest/charts-ui",
3
- "version": "0.10.3",
3
+ "version": "0.10.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.10.3"
45
+ "@funnest/charts": "0.10.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "preact": "^11.2.0"