@funnest/charts-ui 0.11.36 → 0.11.38

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 +16 -36
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4645,10 +4645,9 @@ var CSS = (
4645
4645
  /* \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 */
4646
4646
  .fnc-tool-group { position: relative; display: flex; }
4647
4647
  .fnc-tool-group[data-open='true'] { z-index: 30; }
4648
- /* The list opener: a corner mark at rest. On hover the button and a tab on its right light up as
4649
- one piece \u2014 the same background, the button's right corners squared where the tab joins it, no
4650
- gap between them \u2014 and the tab shows a chevron. Every tool in the bar lights up on hover the same
4651
- way. Touch screens always show the chevron (no hover). */
4648
+ /* The list opener: a corner mark on the group's button (a click on it opens the list; a mouse
4649
+ resting on the group opens it too). Every tool in the bar lights up on hover the same way.
4650
+ Touch screens show a chevron instead (no hover to open with). */
4652
4651
  .fnc-drawbar .fnc-btn:hover { background: var(--fnc-surface); }
4653
4652
  .fnc-tool-more {
4654
4653
  position: absolute;
@@ -4665,33 +4664,14 @@ var CSS = (
4665
4664
  .fnc-tool-corner { display: flex; opacity: 0.7; }
4666
4665
  .fnc-tool-chevron { display: none; }
4667
4666
  .fnc-tool-chevron svg { width: 12px; height: 12px; }
4667
+ /* A mouse opens a group's list by resting on it (hover-open.ts): no tab or chevron grows out on
4668
+ hover \u2014 the corner mark stays (a group; a click on it keeps the list open), the button stays lit
4669
+ while its list is open. */
4668
4670
  @media (hover: hover) {
4669
- .fnc-tool-group:has(.fnc-tool-more):hover > .fnc-btn,
4670
- .fnc-tool-group[data-open='true'] > .fnc-btn {
4671
- background: var(--fnc-surface);
4672
- border-top-right-radius: 0;
4673
- border-bottom-right-radius: 0;
4674
- }
4671
+ .fnc-tool-group[data-open='true'] > .fnc-btn { background: var(--fnc-surface); }
4675
4672
  .fnc-tool-group:hover .fnc-tool-more,
4676
- .fnc-tool-more[aria-expanded='true'],
4677
- .fnc-tool-more:focus-visible {
4678
- right: -14px;
4679
- width: 14px;
4680
- align-items: center;
4681
- justify-content: center;
4682
- padding: 0;
4683
- border-radius: 0 var(--fnc-radius) var(--fnc-radius) 0;
4684
- background: var(--fnc-surface);
4685
- color: var(--fnc-text-2);
4686
- }
4687
- .fnc-tool-more:hover,
4688
4673
  .fnc-tool-more[aria-expanded='true'] { color: var(--fnc-text); }
4689
- .fnc-tool-group:hover .fnc-tool-corner,
4690
- .fnc-tool-more[aria-expanded='true'] .fnc-tool-corner,
4691
- .fnc-tool-more:focus-visible .fnc-tool-corner { display: none; }
4692
- .fnc-tool-group:hover .fnc-tool-chevron,
4693
- .fnc-tool-more[aria-expanded='true'] .fnc-tool-chevron,
4694
- .fnc-tool-more:focus-visible .fnc-tool-chevron { display: flex; }
4674
+ .fnc-tool-more:focus-visible { outline: 2px solid var(--fnc-accent); outline-offset: 1px; border-radius: 3px; }
4695
4675
  }
4696
4676
  @media (hover: none) {
4697
4677
  .fnc-tool-more { right: -8px; width: 10px; align-items: center; justify-content: center; padding: 0; }
@@ -5047,14 +5027,14 @@ var CSS = (
5047
5027
  .fnc-color-btn { box-shadow: inset 0 0 0 3px var(--fnc-bg); }
5048
5028
  .fnc-part { gap: 10px; }
5049
5029
 
5050
- /* \uC790\uC11D \uC138\uAE30: two lines each (name, what it does). */
5051
- .fnc-magnet-item { align-items: flex-start; white-space: normal; }
5052
- .fnc-magnet-item > svg { flex: none; margin-top: 2px; }
5053
- .fnc-magnet-item > span { display: flex; flex-direction: column; gap: 2px; }
5054
- .fnc-magnet-item b { font-weight: 600; }
5055
- .fnc-magnet-item small { font-size: 12px; color: var(--fnc-text-2); }
5056
- .fnc-magnet-menu { min-width: 260px; }
5057
- .fnc-tool-menu .fnc-magnet-item { white-space: normal; }
5030
+ /* \uC790\uC11D \uC138\uAE30: two lines each (name, what it does) \u2014 the row grows to hold them. */
5031
+ .fnc-magnet-menu { width: max-content; min-width: 240px; }
5032
+ .fnc-tool-menu .fnc-magnet-item { height: auto; padding: 9px 10px; align-items: flex-start; gap: 10px; white-space: normal; }
5033
+ .fnc-magnet-item > svg { flex: none; margin-top: 1px; }
5034
+ .fnc-magnet-item > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
5035
+ .fnc-magnet-item b { font-size: 14px; font-weight: 600; line-height: 20px; color: var(--fnc-text); }
5036
+ .fnc-magnet-item small { font-size: 12px; line-height: 17px; color: var(--fnc-text-2); white-space: nowrap; }
5037
+ .fnc-magnet-item + .fnc-magnet-item { margin-top: 2px; }
5058
5038
  `
5059
5039
  );
5060
5040
  var STYLE_ID = "fnc-styles";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funnest/charts-ui",
3
- "version": "0.11.36",
3
+ "version": "0.11.38",
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.36"
45
+ "@funnest/charts": "0.11.38"
46
46
  },
47
47
  "devDependencies": {
48
48
  "preact": "^11.2.0"