@luxfi/ui 8.2.12 → 8.3.0
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/dist/3d-carousel.d.ts +2 -1
- package/dist/3d-carousel.d.ts.map +1 -1
- package/dist/3d-marquee.cjs +635 -607
- package/dist/3d-marquee.js +635 -607
- package/dist/animated-background.cjs +643 -615
- package/dist/animated-background.js +643 -615
- package/dist/animated-beam.cjs +634 -606
- package/dist/animated-beam.js +634 -606
- package/dist/animated-icon.cjs +672 -625
- package/dist/animated-icon.js +672 -625
- package/dist/animated-list.cjs +794 -663
- package/dist/animated-list.js +794 -663
- package/dist/animated-number.cjs +644 -616
- package/dist/animated-number.js +644 -616
- package/dist/animated-testimonials.cjs +668 -621
- package/dist/animated-testimonials.js +668 -621
- package/dist/animated-text.cjs +675 -628
- package/dist/animated-text.js +675 -628
- package/dist/animated-tooltip.cjs +668 -621
- package/dist/animated-tooltip.js +668 -621
- package/dist/apple-cards-carousel.cjs +676 -629
- package/dist/apple-cards-carousel.js +676 -629
- package/dist/apple-hello-effect.cjs +634 -606
- package/dist/apple-hello-effect.js +634 -606
- package/dist/calendar.cjs +2 -37
- package/dist/calendar.d.ts +11 -1
- package/dist/calendar.d.ts.map +1 -1
- package/dist/calendar.js +3 -38
- package/dist/dock.cjs +645 -617
- package/dist/dock.js +645 -617
- package/dist/image-zoom.d.ts +3 -2
- package/dist/image-zoom.d.ts.map +1 -1
- package/dist/input-otp.d.ts +4 -2
- package/dist/input-otp.d.ts.map +1 -1
- package/dist/pulse-animation.cjs +636 -608
- package/dist/pulse-animation.js +636 -608
- package/dist/resizable.cjs +4 -24
- package/dist/resizable.d.ts +12 -12
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js +4 -4
- package/dist/reveal-animation.cjs +639 -611
- package/dist/reveal-animation.js +639 -611
- package/package.json +39 -39
- package/src/3d-carousel.tsx +2 -2
- package/src/calendar.tsx +12 -43
- package/src/image-zoom.tsx +2 -2
- package/src/resizable.tsx +7 -7
- package/src/table.tsx +9 -9
- package/tokens.css +21 -0
package/dist/calendar.cjs
CHANGED
|
@@ -5,47 +5,12 @@ var reactDayPicker = require('react-day-picker');
|
|
|
5
5
|
var ui = require('@hanzo/ui');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
|
-
function Calendar({
|
|
9
|
-
className,
|
|
10
|
-
classNames,
|
|
11
|
-
showOutsideDays = true,
|
|
12
|
-
...props
|
|
13
|
-
}) {
|
|
8
|
+
function Calendar({ className, showOutsideDays = true, ...props }) {
|
|
14
9
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
10
|
reactDayPicker.DayPicker,
|
|
16
11
|
{
|
|
17
12
|
showOutsideDays,
|
|
18
|
-
className: ui.cn("
|
|
19
|
-
classNames: {
|
|
20
|
-
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
21
|
-
month: "space-y-4",
|
|
22
|
-
caption: "flex justify-center pt-1 relative items-center",
|
|
23
|
-
caption_label: "text-sm font-medium",
|
|
24
|
-
nav: "space-x-1 flex items-center",
|
|
25
|
-
nav_button: ui.cn(
|
|
26
|
-
ui.buttonVariants({ variant: "outline" }),
|
|
27
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
28
|
-
),
|
|
29
|
-
nav_button_previous: "absolute left-1",
|
|
30
|
-
nav_button_next: "absolute right-1",
|
|
31
|
-
table: "w-full border-collapse space-y-1",
|
|
32
|
-
head_row: "flex",
|
|
33
|
-
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
34
|
-
row: "flex w-full mt-2",
|
|
35
|
-
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
36
|
-
day: ui.cn(
|
|
37
|
-
ui.buttonVariants({ variant: "ghost" }),
|
|
38
|
-
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
39
|
-
),
|
|
40
|
-
day_range_end: "day-range-end",
|
|
41
|
-
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
42
|
-
day_today: "bg-accent text-accent-foreground",
|
|
43
|
-
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
44
|
-
day_disabled: "text-muted-foreground opacity-50",
|
|
45
|
-
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
46
|
-
day_hidden: "invisible",
|
|
47
|
-
...classNames
|
|
48
|
-
},
|
|
13
|
+
className: ui.cn("lux-calendar", className),
|
|
49
14
|
...props
|
|
50
15
|
}
|
|
51
16
|
);
|
package/dist/calendar.d.ts
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { DayPicker } from "react-day-picker";
|
|
3
3
|
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* The month grid, styled by `.lux-calendar` in tokens.css.
|
|
6
|
+
*
|
|
7
|
+
* react-day-picker names every part it renders — `rdp-day`, `rdp-selected`,
|
|
8
|
+
* `rdp-outside` — so the rules go on those, and the component stays the one
|
|
9
|
+
* line it should be. Restating them here as a `classNames` table means keeping
|
|
10
|
+
* a copy of somebody else's element names, which is how this drifted: the table
|
|
11
|
+
* still spelled the v8 names after v9 renamed them, so the styling was gone and
|
|
12
|
+
* only the type error said so.
|
|
13
|
+
*/
|
|
14
|
+
declare function Calendar({ className, showOutsideDays, ...props }: CalendarProps): React.JSX.Element;
|
|
5
15
|
declare namespace Calendar {
|
|
6
16
|
var displayName: string;
|
|
7
17
|
}
|
package/dist/calendar.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../src/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAI5C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAA;AAElE;;;;;;;;;GASG;AACH,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,eAAsB,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,qBAQ/E;kBARQ,QAAQ;;;AAWjB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
package/dist/calendar.js
CHANGED
|
@@ -1,49 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { DayPicker } from 'react-day-picker';
|
|
3
|
-
import { cn
|
|
3
|
+
import { cn } from '@hanzo/ui';
|
|
4
4
|
import { jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
|
-
function Calendar({
|
|
7
|
-
className,
|
|
8
|
-
classNames,
|
|
9
|
-
showOutsideDays = true,
|
|
10
|
-
...props
|
|
11
|
-
}) {
|
|
6
|
+
function Calendar({ className, showOutsideDays = true, ...props }) {
|
|
12
7
|
return /* @__PURE__ */ jsx(
|
|
13
8
|
DayPicker,
|
|
14
9
|
{
|
|
15
10
|
showOutsideDays,
|
|
16
|
-
className: cn("
|
|
17
|
-
classNames: {
|
|
18
|
-
months: "flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",
|
|
19
|
-
month: "space-y-4",
|
|
20
|
-
caption: "flex justify-center pt-1 relative items-center",
|
|
21
|
-
caption_label: "text-sm font-medium",
|
|
22
|
-
nav: "space-x-1 flex items-center",
|
|
23
|
-
nav_button: cn(
|
|
24
|
-
buttonVariants({ variant: "outline" }),
|
|
25
|
-
"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"
|
|
26
|
-
),
|
|
27
|
-
nav_button_previous: "absolute left-1",
|
|
28
|
-
nav_button_next: "absolute right-1",
|
|
29
|
-
table: "w-full border-collapse space-y-1",
|
|
30
|
-
head_row: "flex",
|
|
31
|
-
head_cell: "text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",
|
|
32
|
-
row: "flex w-full mt-2",
|
|
33
|
-
cell: "h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",
|
|
34
|
-
day: cn(
|
|
35
|
-
buttonVariants({ variant: "ghost" }),
|
|
36
|
-
"h-9 w-9 p-0 font-normal aria-selected:opacity-100"
|
|
37
|
-
),
|
|
38
|
-
day_range_end: "day-range-end",
|
|
39
|
-
day_selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
|
|
40
|
-
day_today: "bg-accent text-accent-foreground",
|
|
41
|
-
day_outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
|
|
42
|
-
day_disabled: "text-muted-foreground opacity-50",
|
|
43
|
-
day_range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
|
|
44
|
-
day_hidden: "invisible",
|
|
45
|
-
...classNames
|
|
46
|
-
},
|
|
11
|
+
className: cn("lux-calendar", className),
|
|
47
12
|
...props
|
|
48
13
|
}
|
|
49
14
|
);
|