@placesapp/appy-ui 0.0.333 → 0.0.335

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
@@ -16,24 +16,6 @@ Make sure you have these peer dependencies installed:
16
16
  npm install react react-dom tailwindcss
17
17
  ```
18
18
 
19
- ### Optional Peer Dependencies
20
-
21
- Some components require additional packages:
22
-
23
- ```bash
24
- # For Calendar component
25
- npm install react-day-picker
26
-
27
- # For Carousel component
28
- npm install embla-carousel-react
29
-
30
- # For Chart components
31
- npm install recharts
32
-
33
- # For Form components
34
- npm install @tanstack/react-form
35
- ```
36
-
37
19
  ## Setup
38
20
 
39
21
  ### 1. CSS Configuration
package/dist/index.d.ts CHANGED
@@ -215,36 +215,17 @@ declare const ChartStyle: ({ id, config }: {
215
215
  config: ChartConfig;
216
216
  }) => react_jsx_runtime.JSX.Element | null;
217
217
  declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
218
- declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: Omit<React$1.ComponentProps<typeof RechartsPrimitive.Tooltip>, 'payload' | 'label' | 'labelFormatter' | 'formatter'> & React$1.ComponentProps<'div'> & {
218
+ declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & React$1.ComponentProps<'div'> & {
219
219
  hideLabel?: boolean;
220
220
  hideIndicator?: boolean;
221
221
  indicator?: 'line' | 'dot' | 'dashed';
222
222
  nameKey?: string;
223
223
  labelKey?: string;
224
- payload?: Array<{
225
- type?: string;
226
- name?: string;
227
- dataKey?: string;
228
- value?: number | string;
229
- color?: string;
230
- payload?: Record<string, unknown>;
231
- fill?: string;
232
- }>;
233
- label?: string;
234
- labelFormatter?: (value: React$1.ReactNode, payload: unknown[]) => React$1.ReactNode;
235
- formatter?: (value: unknown, name: unknown, item: unknown, index: number, payload: unknown) => React$1.ReactNode;
236
224
  }): react_jsx_runtime.JSX.Element | null;
237
225
  declare const ChartLegend: typeof RechartsPrimitive.Legend;
238
- declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<'div'> & {
226
+ declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
239
227
  hideIcon?: boolean;
240
228
  nameKey?: string;
241
- verticalAlign?: 'top' | 'bottom' | 'middle';
242
- payload?: Array<{
243
- type?: string;
244
- value?: string;
245
- dataKey?: string;
246
- color?: string;
247
- }>;
248
229
  }): react_jsx_runtime.JSX.Element | null;
249
230
 
250
231
  declare function Checkbox({ className, ...props }: Checkbox$1.Root.Props): react_jsx_runtime.JSX.Element;
package/dist/index.js CHANGED
@@ -1587,7 +1587,7 @@ function ChartTooltipContent({
1587
1587
  /* @__PURE__ */ jsx("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
1588
1588
  const key = `${nameKey || item.name || item.dataKey || "value"}`;
1589
1589
  const itemConfig = getPayloadConfigFromPayload(config, item, key);
1590
- const indicatorColor = color || item.payload?.fill || item.color;
1590
+ const indicatorColor = color || item.payload.fill || item.color;
1591
1591
  return /* @__PURE__ */ jsx(
1592
1592
  "div",
1593
1593
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@placesapp/appy-ui",
3
- "version": "0.0.333",
3
+ "version": "0.0.335",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -21,46 +21,26 @@
21
21
  "react-dom": ">=19",
22
22
  "tailwindcss": ">=4"
23
23
  },
24
- "peerDependenciesMeta": {
25
- "@tanstack/react-form": {
26
- "optional": true
27
- },
28
- "embla-carousel-react": {
29
- "optional": true
30
- },
31
- "recharts": {
32
- "optional": true
33
- },
34
- "react-day-picker": {
35
- "optional": true
36
- },
37
- "cmdk": {
38
- "optional": true
39
- },
40
- "tanstack-theme-kit": {
41
- "optional": true
42
- }
43
- },
44
24
  "dependencies": {
45
25
  "@base-ui/react": "^1.1.0",
46
26
  "@tabler/icons-react": "^3.31.0",
47
27
  "class-variance-authority": "^0.7.1",
48
28
  "clsx": "^2.1.1",
29
+ "cmdk": "^1.1.1",
30
+ "embla-carousel-react": "^8.6.0",
49
31
  "input-otp": "^1.4.2",
50
32
  "motion": "^12.4.7",
33
+ "react-day-picker": "^9.13.0",
51
34
  "react-resizable-panels": "^2.1.7",
35
+ "recharts": "^2.15.4",
52
36
  "sonner": "^2.0.1",
53
37
  "tailwind-merge": "^3.0.1",
38
+ "tanstack-theme-kit": "^0.2.1",
54
39
  "vaul": "^1.1.2"
55
40
  },
56
41
  "devDependencies": {
57
42
  "@types/react": "19.2.9",
58
43
  "@types/react-dom": "19.2.3",
59
- "cmdk": "^1.1.1",
60
- "embla-carousel-react": "^8.6.0",
61
- "react-day-picker": "^9.13.0",
62
- "recharts": "^3.7.0",
63
- "tanstack-theme-kit": "^0.2.1",
64
44
  "tsup": "^8.3.5",
65
45
  "typescript": "^5.7.3"
66
46
  },