widget-iccandle 0.0.17 → 0.0.18

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/README.md CHANGED
@@ -8,10 +8,10 @@ React components for the TradingView Charting Library: chart wrapper and selecto
8
8
 
9
9
  ### Props
10
10
 
11
- | Prop | Type | Description |
12
- |------|------|-------------|
13
- | `chartWidget` | `IChartingLibraryWidget \| null` | The TradingView chart widget instance (from the charting library). |
14
- | `children` | `ReactNode` | Content rendered above the scanner UI (e.g. the chart container). |
11
+ | Prop | Type | Description |
12
+ | ---------------- | ---------------------------------- | ---------------------------------------------------------------------------------------------------- |
13
+ | `chartWidget` | `IChartingLibraryWidget \| null` | The TradingView chart widget instance (from the charting library). |
14
+ | `children` | `ReactNode` | Content rendered above the scanner UI (e.g. the chart container). |
15
15
  | `submitCallback` | `(params: RequestPattern) => void` | Called when the user submits from the scanner (receives the request pattern for the selected range). |
16
16
 
17
17
  ### Usage
@@ -20,10 +20,12 @@ React components for the TradingView Charting Library: chart wrapper and selecto
20
20
  import { SelectorWidget } from "widget-iccandle"; // or from your path, e.g. "@/tradingview/selector-widget"
21
21
 
22
22
  function ChartWithScanner() {
23
- const [chartWidget, setChartWidget] = useState<IChartingLibraryWidget | null>(null);
23
+ const [chartWidget, setChartWidget] = useState<IChartingLibraryWidget | null>(
24
+ null,
25
+ );
24
26
 
25
27
  const handleSubmit = (params: RequestPattern) => {
26
- // Handle scanner submit (e.g. fetch key levels or candles for the selected range)
28
+ // Handle scanner submit (e.g. fetch candles for the selected range)
27
29
  };
28
30
 
29
31
  return (
@@ -0,0 +1,7 @@
1
+ import { type ReactNode } from "react";
2
+ import "./simple-tooltip.css";
3
+ export declare const SimpleTooltip: ({ text, children, }: {
4
+ text?: string;
5
+ children?: ReactNode;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=simple-tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple-tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/common/simple-tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,sBAAsB,CAAC;AAE9B,eAAO,MAAM,aAAa,GAAI,qBAG3B;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,4CAiBA,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { type VariantProps } from "class-variance-authority";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "custom" | null | undefined;
4
+ variant?: "link" | "custom" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
6
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
7
  asChild?: boolean;
@@ -6,5 +6,5 @@ export declare const Typography: import("react").ForwardRefExoticComponent<Varia
6
6
  children: ReactNode;
7
7
  component?: ElementType;
8
8
  className?: string;
9
- } & import("react").RefAttributes<HTMLHeadingElement | HTMLParagraphElement>>;
9
+ } & import("react").RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
10
10
  //# sourceMappingURL=typography.d.ts.map