@giddaa-housing/ui 3.4.0 → 3.5.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/css/generated/shared.css +1 -1
- package/dist/accordion.js +1 -1
- package/dist/activity-timeline.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/auth-layout.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/bullet-chart.js +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.js +2 -2
- package/dist/call-card.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.js +2 -2
- package/dist/chart.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/collapsible.js +1 -1
- package/dist/combobox-B7cKFJ9V.js +398 -0
- package/dist/combobox.d.ts +2 -2
- package/dist/combobox.js +1 -308
- package/dist/cta.js +1 -1
- package/dist/currency-selector.js +2 -2
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.js +1 -1
- package/dist/date-picker.d.ts +4 -3
- package/dist/date-picker.js +7 -17
- package/dist/details-card.js +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropzone.js +1 -1
- package/dist/editorial-card.js +2 -4
- package/dist/empty-state.js +1 -1
- package/dist/field.js +1 -1
- package/dist/file-upload.js +1 -1
- package/dist/filter.js +1 -1
- package/dist/footer.js +1 -1
- package/dist/funnel-chart.js +1 -1
- package/dist/gallery-indicator.js +1 -1
- package/dist/icons-C9JXR5Xv.d.ts +111 -0
- package/dist/icons.d.ts +2 -93
- package/dist/icons.js +37 -1
- package/dist/image.d.ts +59 -0
- package/dist/image.js +53 -0
- package/dist/infinite-scroll.js +3 -29
- package/dist/infotip.js +1 -1
- package/dist/input-group.js +1 -1
- package/dist/input-otp.js +1 -1
- package/dist/input.js +1 -1
- package/dist/item.js +1 -1
- package/dist/kpi-card.js +1 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.js +1 -1
- package/dist/list-item.js +1 -1
- package/dist/map-indicator.js +1 -1
- package/dist/match.js +1 -1
- package/dist/media-gallery-hero.js +6 -3
- package/dist/media-player.js +5 -13
- package/dist/message.js +2 -12
- package/dist/mobile-sidebar.js +1 -1
- package/dist/multi-step-form.js +2 -2
- package/dist/number-input.js +1 -1
- package/dist/page-header.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-input.js +1 -1
- package/dist/phone-input.js +11 -17
- package/dist/photo-gallery.js +6 -3
- package/dist/picker-CsnHtbe4.d.ts +14 -0
- package/dist/{picker-xSTzeYhc.js → picker-DmIiQKLJ.js} +2 -7
- package/dist/pie-chart.js +1 -1
- package/dist/popover-DSlPeH7x.d.ts +20 -0
- package/dist/popover.d.ts +1 -19
- package/dist/popover.js +1 -1
- package/dist/price-tag.d.ts +1 -1
- package/dist/price-tag.js +50 -22
- package/dist/progress.js +1 -1
- package/dist/property-listing-card.d.ts +63 -1
- package/dist/property-listing-card.js +97 -28
- package/dist/purchase-option-card.js +1 -1
- package/dist/radar-chart.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/review-block.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/scatter-chart.js +1 -1
- package/dist/scroll-spy.js +3 -3
- package/dist/search-input.js +1 -1
- package/dist/select.js +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.js +3 -16
- package/dist/skeleton.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/sonar.js +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +42 -2
- package/dist/switch.js +1 -1
- package/dist/table-card.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/testimonial-block.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/theme-switcher.js +1 -1
- package/dist/time-picker.d.ts +3 -2
- package/dist/time-picker.js +5 -7
- package/dist/toast.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/top-navbar.js +1 -1
- package/dist/tree-map.js +1 -1
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +33 -0
- package/dist/utils/format.d.ts +45 -0
- package/dist/utils/format.js +70 -0
- package/dist/utils/phone.d.ts +98 -0
- package/dist/utils/phone.js +93 -0
- package/dist/utils/use-intersection.d.ts +9 -0
- package/dist/utils/use-intersection.js +29 -0
- package/dist/utils/use-is-mobile.d.ts +5 -0
- package/dist/utils/use-is-mobile.js +16 -0
- package/dist/utils/use-reduced-motion.d.ts +5 -0
- package/dist/{use-reduced-motion-BDvOK14x.js → utils/use-reduced-motion.js} +2 -2
- package/dist/utils/use-uncontrolled.d.ts +11 -0
- package/dist/{use-uncontrolled-CLfM1XbB.js → utils/use-uncontrolled.js} +2 -2
- package/dist/video-player-dialog.d.ts +12 -2
- package/dist/video-player-dialog.js +47 -7
- package/dist/waterfall-chart.js +1 -1
- package/package.json +9 -1
- package/dist/cn-BI_4DMBf.js +0 -23
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ReactElement, ReactNode, SVGProps } from "react";
|
|
2
|
+
//#region src/icons.d.ts
|
|
3
|
+
type IconProps = Omit<SVGProps<SVGSVGElement>, "children"> & {
|
|
4
|
+
/** Square edge length applied to `width` and `height`. Defaults to `24`. */
|
|
5
|
+
size?: number | string;
|
|
6
|
+
};
|
|
7
|
+
type IconComponent = (props: IconProps) => ReactElement;
|
|
8
|
+
/**
|
|
9
|
+
* Bare SVG frame shared by every glyph. Exported so apps can draw a one-off
|
|
10
|
+
* icon that inherits the same sizing, stroke, and colour behaviour.
|
|
11
|
+
*/
|
|
12
|
+
declare function Icon({ name, size, strokeWidth, children, ...props }: IconProps & {
|
|
13
|
+
name?: string;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
declare function AlignCenter(props: IconProps): import("react").JSX.Element;
|
|
17
|
+
declare function AlignJustify(props: IconProps): import("react").JSX.Element;
|
|
18
|
+
declare function AlignLeft(props: IconProps): import("react").JSX.Element;
|
|
19
|
+
declare function AlignRight(props: IconProps): import("react").JSX.Element;
|
|
20
|
+
declare function ArrowDown(props: IconProps): import("react").JSX.Element;
|
|
21
|
+
declare function ArrowRight(props: IconProps): import("react").JSX.Element;
|
|
22
|
+
declare function ArrowUp(props: IconProps): import("react").JSX.Element;
|
|
23
|
+
declare function ArrowUpRight(props: IconProps): import("react").JSX.Element;
|
|
24
|
+
declare function Baseline(props: IconProps): import("react").JSX.Element;
|
|
25
|
+
declare function Bold(props: IconProps): import("react").JSX.Element;
|
|
26
|
+
declare function Calendar(props: IconProps): import("react").JSX.Element;
|
|
27
|
+
declare function Captions(props: IconProps): import("react").JSX.Element;
|
|
28
|
+
declare function CaptionsOff(props: IconProps): import("react").JSX.Element;
|
|
29
|
+
declare function Check(props: IconProps): import("react").JSX.Element;
|
|
30
|
+
declare function CheckCheck(props: IconProps): import("react").JSX.Element;
|
|
31
|
+
declare function ChevronDown(props: IconProps): import("react").JSX.Element;
|
|
32
|
+
declare function ChevronLeft(props: IconProps): import("react").JSX.Element;
|
|
33
|
+
declare function ChevronRight(props: IconProps): import("react").JSX.Element;
|
|
34
|
+
declare function ChevronUp(props: IconProps): import("react").JSX.Element;
|
|
35
|
+
declare function ChevronsUpDown(props: IconProps): import("react").JSX.Element;
|
|
36
|
+
declare function Clock(props: IconProps): import("react").JSX.Element;
|
|
37
|
+
declare function Code2(props: IconProps): import("react").JSX.Element;
|
|
38
|
+
declare function Eye(props: IconProps): import("react").JSX.Element;
|
|
39
|
+
declare function EyeOff(props: IconProps): import("react").JSX.Element;
|
|
40
|
+
declare function File(props: IconProps): import("react").JSX.Element;
|
|
41
|
+
declare function FileText(props: IconProps): import("react").JSX.Element;
|
|
42
|
+
/**
|
|
43
|
+
* Giddaa's own filter glyph — two solid sliders — rather than Lucide's hollow
|
|
44
|
+
* funnel. Filled artwork on a 14×12 grid, so like {@link Share} it overrides
|
|
45
|
+
* the frame's viewBox and stroke-based paint while keeping its square
|
|
46
|
+
* viewport, sizing and colour behaviour.
|
|
47
|
+
*/
|
|
48
|
+
declare function Filter(props: IconProps): import("react").JSX.Element;
|
|
49
|
+
declare function Fullscreen(props: IconProps): import("react").JSX.Element;
|
|
50
|
+
declare function Image(props: IconProps): import("react").JSX.Element;
|
|
51
|
+
declare function Info(props: IconProps): import("react").JSX.Element;
|
|
52
|
+
declare function Italic(props: IconProps): import("react").JSX.Element;
|
|
53
|
+
declare function Link2(props: IconProps): import("react").JSX.Element;
|
|
54
|
+
declare function List(props: IconProps): import("react").JSX.Element;
|
|
55
|
+
declare function ListOrdered(props: IconProps): import("react").JSX.Element;
|
|
56
|
+
declare function ListVideo(props: IconProps): import("react").JSX.Element;
|
|
57
|
+
declare function Loader(props: IconProps): import("react").JSX.Element;
|
|
58
|
+
declare function Loader2(props: IconProps): import("react").JSX.Element;
|
|
59
|
+
declare function Maximize(props: IconProps): import("react").JSX.Element;
|
|
60
|
+
declare function Maximize2(props: IconProps): import("react").JSX.Element;
|
|
61
|
+
declare function Menu(props: IconProps): import("react").JSX.Element;
|
|
62
|
+
declare function Mic(props: IconProps): import("react").JSX.Element;
|
|
63
|
+
declare function MicOff(props: IconProps): import("react").JSX.Element;
|
|
64
|
+
declare function Minimize(props: IconProps): import("react").JSX.Element;
|
|
65
|
+
declare function Minimize2(props: IconProps): import("react").JSX.Element;
|
|
66
|
+
declare function Minus(props: IconProps): import("react").JSX.Element;
|
|
67
|
+
declare function Monitor(props: IconProps): import("react").JSX.Element;
|
|
68
|
+
declare function Moon(props: IconProps): import("react").JSX.Element;
|
|
69
|
+
declare function MoreHorizontal(props: IconProps): import("react").JSX.Element;
|
|
70
|
+
declare function Pause(props: IconProps): import("react").JSX.Element;
|
|
71
|
+
declare function Phone(props: IconProps): import("react").JSX.Element;
|
|
72
|
+
declare function PictureInPicture2(props: IconProps): import("react").JSX.Element;
|
|
73
|
+
declare function Pin(props: IconProps): import("react").JSX.Element;
|
|
74
|
+
declare function Play(props: IconProps): import("react").JSX.Element;
|
|
75
|
+
declare function Plus(props: IconProps): import("react").JSX.Element;
|
|
76
|
+
declare function Quote(props: IconProps): import("react").JSX.Element;
|
|
77
|
+
declare function Redo2(props: IconProps): import("react").JSX.Element;
|
|
78
|
+
declare function RefreshCcw(props: IconProps): import("react").JSX.Element;
|
|
79
|
+
declare function Repeat2(props: IconProps): import("react").JSX.Element;
|
|
80
|
+
declare function RotateCcw(props: IconProps): import("react").JSX.Element;
|
|
81
|
+
declare function RotateCw(props: IconProps): import("react").JSX.Element;
|
|
82
|
+
declare function Search(props: IconProps): import("react").JSX.Element;
|
|
83
|
+
declare function SearchX(props: IconProps): import("react").JSX.Element;
|
|
84
|
+
declare function Send(props: IconProps): import("react").JSX.Element;
|
|
85
|
+
declare function Settings(props: IconProps): import("react").JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* Giddaa's own share glyph, not Lucide's — an arrow curving out of a tray
|
|
88
|
+
* rather than the three-node graph `Share2` draws.
|
|
89
|
+
*
|
|
90
|
+
* It is the one solid icon in the set, and its artwork is 20×16 rather than
|
|
91
|
+
* square, so it overrides the frame's viewBox and its stroke-based paint. The
|
|
92
|
+
* square viewport every other icon gets still applies: the glyph scales to fit
|
|
93
|
+
* inside it and keeps its proportions, so `size-5` next to a `size-5` Lucide
|
|
94
|
+
* icon reads at the same weight.
|
|
95
|
+
*/
|
|
96
|
+
declare function Share(props: IconProps): import("react").JSX.Element;
|
|
97
|
+
declare function SlidersHorizontal(props: IconProps): import("react").JSX.Element;
|
|
98
|
+
declare function Star(props: IconProps): import("react").JSX.Element;
|
|
99
|
+
declare function Sun(props: IconProps): import("react").JSX.Element;
|
|
100
|
+
declare function TriangleAlert(props: IconProps): import("react").JSX.Element;
|
|
101
|
+
declare function Underline(props: IconProps): import("react").JSX.Element;
|
|
102
|
+
declare function Undo2(props: IconProps): import("react").JSX.Element;
|
|
103
|
+
declare function UploadCloud(props: IconProps): import("react").JSX.Element;
|
|
104
|
+
declare function User(props: IconProps): import("react").JSX.Element;
|
|
105
|
+
declare function Video(props: IconProps): import("react").JSX.Element;
|
|
106
|
+
declare function Volume1(props: IconProps): import("react").JSX.Element;
|
|
107
|
+
declare function Volume2(props: IconProps): import("react").JSX.Element;
|
|
108
|
+
declare function VolumeX(props: IconProps): import("react").JSX.Element;
|
|
109
|
+
declare function X(props: IconProps): import("react").JSX.Element;
|
|
110
|
+
//#endregion
|
|
111
|
+
export { Phone as $, IconComponent as A, Loader2 as B, Eye as C, Video as Ct, Filter as D, X as Dt, FileText as E, VolumeX as Et, Link2 as F, MicOff as G, Maximize2 as H, List as I, Minus as J, Minimize as K, ListOrdered as L, Image as M, Info as N, Fullscreen as O, Italic as P, Pause as Q, ListVideo as R, Code2 as S, User as St, File as T, Volume2 as Tt, Menu as U, Maximize as V, Mic as W, Moon as X, Monitor as Y, MoreHorizontal as Z, ChevronLeft as _, Sun as _t, ArrowDown as a, Redo2 as at, ChevronsUpDown as b, Undo2 as bt, ArrowUpRight as c, RotateCcw as ct, Calendar as d, SearchX as dt, PictureInPicture2 as et, Captions as f, Send as ft, ChevronDown as g, Star as gt, CheckCheck as h, SlidersHorizontal as ht, AlignRight as i, Quote as it, IconProps as j, Icon as k, Baseline as l, RotateCw as lt, Check as m, Share as mt, AlignJustify as n, Play as nt, ArrowRight as o, RefreshCcw as ot, CaptionsOff as p, Settings as pt, Minimize2 as q, AlignLeft as r, Plus as rt, ArrowUp as s, Repeat2 as st, AlignCenter as t, Pin as tt, Bold as u, Search as ut, ChevronRight as v, TriangleAlert as vt, EyeOff as w, Volume1 as wt, Clock as x, UploadCloud as xt, ChevronUp as y, Underline as yt, Loader as z };
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,93 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type IconProps = Omit<SVGProps<SVGSVGElement>, "children"> & {
|
|
4
|
-
/** Square edge length applied to `width` and `height`. Defaults to `24`. */
|
|
5
|
-
size?: number | string;
|
|
6
|
-
};
|
|
7
|
-
type IconComponent = (props: IconProps) => ReactElement;
|
|
8
|
-
/**
|
|
9
|
-
* Bare SVG frame shared by every glyph. Exported so apps can draw a one-off
|
|
10
|
-
* icon that inherits the same sizing, stroke, and colour behaviour.
|
|
11
|
-
*/
|
|
12
|
-
declare function Icon({ name, size, strokeWidth, children, ...props }: IconProps & {
|
|
13
|
-
name?: string;
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}): import("react").JSX.Element;
|
|
16
|
-
declare function AlignCenter(props: IconProps): import("react").JSX.Element;
|
|
17
|
-
declare function AlignJustify(props: IconProps): import("react").JSX.Element;
|
|
18
|
-
declare function AlignLeft(props: IconProps): import("react").JSX.Element;
|
|
19
|
-
declare function AlignRight(props: IconProps): import("react").JSX.Element;
|
|
20
|
-
declare function ArrowDown(props: IconProps): import("react").JSX.Element;
|
|
21
|
-
declare function ArrowRight(props: IconProps): import("react").JSX.Element;
|
|
22
|
-
declare function ArrowUp(props: IconProps): import("react").JSX.Element;
|
|
23
|
-
declare function ArrowUpRight(props: IconProps): import("react").JSX.Element;
|
|
24
|
-
declare function Baseline(props: IconProps): import("react").JSX.Element;
|
|
25
|
-
declare function Bold(props: IconProps): import("react").JSX.Element;
|
|
26
|
-
declare function Calendar(props: IconProps): import("react").JSX.Element;
|
|
27
|
-
declare function Captions(props: IconProps): import("react").JSX.Element;
|
|
28
|
-
declare function CaptionsOff(props: IconProps): import("react").JSX.Element;
|
|
29
|
-
declare function Check(props: IconProps): import("react").JSX.Element;
|
|
30
|
-
declare function CheckCheck(props: IconProps): import("react").JSX.Element;
|
|
31
|
-
declare function ChevronDown(props: IconProps): import("react").JSX.Element;
|
|
32
|
-
declare function ChevronLeft(props: IconProps): import("react").JSX.Element;
|
|
33
|
-
declare function ChevronRight(props: IconProps): import("react").JSX.Element;
|
|
34
|
-
declare function ChevronUp(props: IconProps): import("react").JSX.Element;
|
|
35
|
-
declare function ChevronsUpDown(props: IconProps): import("react").JSX.Element;
|
|
36
|
-
declare function Clock(props: IconProps): import("react").JSX.Element;
|
|
37
|
-
declare function Code2(props: IconProps): import("react").JSX.Element;
|
|
38
|
-
declare function Eye(props: IconProps): import("react").JSX.Element;
|
|
39
|
-
declare function EyeOff(props: IconProps): import("react").JSX.Element;
|
|
40
|
-
declare function File(props: IconProps): import("react").JSX.Element;
|
|
41
|
-
declare function FileText(props: IconProps): import("react").JSX.Element;
|
|
42
|
-
declare function Fullscreen(props: IconProps): import("react").JSX.Element;
|
|
43
|
-
declare function Image(props: IconProps): import("react").JSX.Element;
|
|
44
|
-
declare function Info(props: IconProps): import("react").JSX.Element;
|
|
45
|
-
declare function Italic(props: IconProps): import("react").JSX.Element;
|
|
46
|
-
declare function Link2(props: IconProps): import("react").JSX.Element;
|
|
47
|
-
declare function List(props: IconProps): import("react").JSX.Element;
|
|
48
|
-
declare function ListOrdered(props: IconProps): import("react").JSX.Element;
|
|
49
|
-
declare function ListVideo(props: IconProps): import("react").JSX.Element;
|
|
50
|
-
declare function Loader(props: IconProps): import("react").JSX.Element;
|
|
51
|
-
declare function Loader2(props: IconProps): import("react").JSX.Element;
|
|
52
|
-
declare function Maximize(props: IconProps): import("react").JSX.Element;
|
|
53
|
-
declare function Maximize2(props: IconProps): import("react").JSX.Element;
|
|
54
|
-
declare function Menu(props: IconProps): import("react").JSX.Element;
|
|
55
|
-
declare function Mic(props: IconProps): import("react").JSX.Element;
|
|
56
|
-
declare function MicOff(props: IconProps): import("react").JSX.Element;
|
|
57
|
-
declare function Minimize(props: IconProps): import("react").JSX.Element;
|
|
58
|
-
declare function Minimize2(props: IconProps): import("react").JSX.Element;
|
|
59
|
-
declare function Minus(props: IconProps): import("react").JSX.Element;
|
|
60
|
-
declare function Monitor(props: IconProps): import("react").JSX.Element;
|
|
61
|
-
declare function Moon(props: IconProps): import("react").JSX.Element;
|
|
62
|
-
declare function MoreHorizontal(props: IconProps): import("react").JSX.Element;
|
|
63
|
-
declare function Pause(props: IconProps): import("react").JSX.Element;
|
|
64
|
-
declare function Phone(props: IconProps): import("react").JSX.Element;
|
|
65
|
-
declare function PictureInPicture2(props: IconProps): import("react").JSX.Element;
|
|
66
|
-
declare function Pin(props: IconProps): import("react").JSX.Element;
|
|
67
|
-
declare function Play(props: IconProps): import("react").JSX.Element;
|
|
68
|
-
declare function Plus(props: IconProps): import("react").JSX.Element;
|
|
69
|
-
declare function Quote(props: IconProps): import("react").JSX.Element;
|
|
70
|
-
declare function Redo2(props: IconProps): import("react").JSX.Element;
|
|
71
|
-
declare function RefreshCcw(props: IconProps): import("react").JSX.Element;
|
|
72
|
-
declare function Repeat2(props: IconProps): import("react").JSX.Element;
|
|
73
|
-
declare function RotateCcw(props: IconProps): import("react").JSX.Element;
|
|
74
|
-
declare function RotateCw(props: IconProps): import("react").JSX.Element;
|
|
75
|
-
declare function Search(props: IconProps): import("react").JSX.Element;
|
|
76
|
-
declare function SearchX(props: IconProps): import("react").JSX.Element;
|
|
77
|
-
declare function Send(props: IconProps): import("react").JSX.Element;
|
|
78
|
-
declare function Settings(props: IconProps): import("react").JSX.Element;
|
|
79
|
-
declare function SlidersHorizontal(props: IconProps): import("react").JSX.Element;
|
|
80
|
-
declare function Star(props: IconProps): import("react").JSX.Element;
|
|
81
|
-
declare function Sun(props: IconProps): import("react").JSX.Element;
|
|
82
|
-
declare function TriangleAlert(props: IconProps): import("react").JSX.Element;
|
|
83
|
-
declare function Underline(props: IconProps): import("react").JSX.Element;
|
|
84
|
-
declare function Undo2(props: IconProps): import("react").JSX.Element;
|
|
85
|
-
declare function UploadCloud(props: IconProps): import("react").JSX.Element;
|
|
86
|
-
declare function User(props: IconProps): import("react").JSX.Element;
|
|
87
|
-
declare function Video(props: IconProps): import("react").JSX.Element;
|
|
88
|
-
declare function Volume1(props: IconProps): import("react").JSX.Element;
|
|
89
|
-
declare function Volume2(props: IconProps): import("react").JSX.Element;
|
|
90
|
-
declare function VolumeX(props: IconProps): import("react").JSX.Element;
|
|
91
|
-
declare function X(props: IconProps): import("react").JSX.Element;
|
|
92
|
-
//#endregion
|
|
93
|
-
export { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowDown, ArrowRight, ArrowUp, ArrowUpRight, Baseline, Bold, Calendar, Captions, CaptionsOff, Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsUpDown, Clock, Code2, Eye, EyeOff, File, FileText, Fullscreen, Icon, type IconComponent, type IconProps, Image, Info, Italic, Link2, List, ListOrdered, ListVideo, Loader, Loader2, Maximize, Maximize2, Menu, Mic, MicOff, Minimize, Minimize2, Minus, Monitor, Moon, MoreHorizontal, Pause, Phone, PictureInPicture2, Pin, Play, Plus, Quote, Redo2, RefreshCcw, Repeat2, RotateCcw, RotateCw, Search, SearchX, Send, Settings, SlidersHorizontal, Star, Sun, TriangleAlert, Underline, Undo2, UploadCloud, User, Video, Volume1, Volume2, VolumeX, X };
|
|
1
|
+
import { $ as Phone, A as IconComponent, B as Loader2, C as Eye, Ct as Video, D as Filter, Dt as X, E as FileText, Et as VolumeX, F as Link2, G as MicOff, H as Maximize2, I as List, J as Minus, K as Minimize, L as ListOrdered, M as Image, N as Info, O as Fullscreen, P as Italic, Q as Pause, R as ListVideo, S as Code2, St as User, T as File, Tt as Volume2, U as Menu, V as Maximize, W as Mic, X as Moon, Y as Monitor, Z as MoreHorizontal, _ as ChevronLeft, _t as Sun, a as ArrowDown, at as Redo2, b as ChevronsUpDown, bt as Undo2, c as ArrowUpRight, ct as RotateCcw, d as Calendar, dt as SearchX, et as PictureInPicture2, f as Captions, ft as Send, g as ChevronDown, gt as Star, h as CheckCheck, ht as SlidersHorizontal, i as AlignRight, it as Quote, j as IconProps, k as Icon, l as Baseline, lt as RotateCw, m as Check, mt as Share, n as AlignJustify, nt as Play, o as ArrowRight, ot as RefreshCcw, p as CaptionsOff, pt as Settings, q as Minimize2, r as AlignLeft, rt as Plus, s as ArrowUp, st as Repeat2, t as AlignCenter, tt as Pin, u as Bold, ut as Search, v as ChevronRight, vt as TriangleAlert, w as EyeOff, wt as Volume1, x as Clock, xt as UploadCloud, y as ChevronUp, yt as Underline, z as Loader } from "./icons-C9JXR5Xv.js";
|
|
2
|
+
export { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowDown, ArrowRight, ArrowUp, ArrowUpRight, Baseline, Bold, Calendar, Captions, CaptionsOff, Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsUpDown, Clock, Code2, Eye, EyeOff, File, FileText, Filter, Fullscreen, Icon, type IconComponent, type IconProps, Image, Info, Italic, Link2, List, ListOrdered, ListVideo, Loader, Loader2, Maximize, Maximize2, Menu, Mic, MicOff, Minimize, Minimize2, Minus, Monitor, Moon, MoreHorizontal, Pause, Phone, PictureInPicture2, Pin, Play, Plus, Quote, Redo2, RefreshCcw, Repeat2, RotateCcw, RotateCw, Search, SearchX, Send, Settings, Share, SlidersHorizontal, Star, Sun, TriangleAlert, Underline, Undo2, UploadCloud, User, Video, Volume1, Volume2, VolumeX, X };
|
package/dist/icons.js
CHANGED
|
@@ -273,6 +273,22 @@ function FileText(props) {
|
|
|
273
273
|
]
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Giddaa's own filter glyph — two solid sliders — rather than Lucide's hollow
|
|
278
|
+
* funnel. Filled artwork on a 14×12 grid, so like {@link Share} it overrides
|
|
279
|
+
* the frame's viewBox and stroke-based paint while keeping its square
|
|
280
|
+
* viewport, sizing and colour behaviour.
|
|
281
|
+
*/
|
|
282
|
+
function Filter(props) {
|
|
283
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
284
|
+
name: "filter",
|
|
285
|
+
viewBox: "0 0 14 12",
|
|
286
|
+
fill: "currentColor",
|
|
287
|
+
stroke: "none",
|
|
288
|
+
...props,
|
|
289
|
+
children: /* @__PURE__ */ jsx("path", { d: "M.778 9.75h6.3C7.388 11.025 8.633 12 10.11 12a3.155 3.155 0 0 0 3.033-2.25h.078c.467 0 .778-.3.778-.75s-.311-.75-.778-.75h-.078C12.834 6.975 11.59 6 10.111 6a3.155 3.155 0 0 0-3.033 2.25h-6.3C.31 8.25 0 8.55 0 9s.311.75.778.75ZM10.11 7.5c.856 0 1.556.675 1.556 1.5s-.7 1.5-1.556 1.5c-.855 0-1.555-.675-1.555-1.5s.7-1.5 1.555-1.5ZM.778 3.75h.078C1.166 5.025 2.41 6 3.889 6a3.155 3.155 0 0 0 3.033-2.25h6.3c.467 0 .778-.3.778-.75s-.311-.75-.778-.75h-6.3C6.612.975 5.367 0 3.89 0A3.155 3.155 0 0 0 .856 2.25H.778C.31 2.25 0 2.55 0 3s.311.75.778.75Zm3.11-2.25c.856 0 1.556.675 1.556 1.5s-.7 1.5-1.555 1.5c-.856 0-1.556-.675-1.556-1.5s.7-1.5 1.556-1.5Z" })
|
|
290
|
+
});
|
|
291
|
+
}
|
|
276
292
|
function Fullscreen(props) {
|
|
277
293
|
return /* @__PURE__ */ jsxs(Icon, {
|
|
278
294
|
name: "fullscreen",
|
|
@@ -745,6 +761,26 @@ function Settings(props) {
|
|
|
745
761
|
})]
|
|
746
762
|
});
|
|
747
763
|
}
|
|
764
|
+
/**
|
|
765
|
+
* Giddaa's own share glyph, not Lucide's — an arrow curving out of a tray
|
|
766
|
+
* rather than the three-node graph `Share2` draws.
|
|
767
|
+
*
|
|
768
|
+
* It is the one solid icon in the set, and its artwork is 20×16 rather than
|
|
769
|
+
* square, so it overrides the frame's viewBox and its stroke-based paint. The
|
|
770
|
+
* square viewport every other icon gets still applies: the glyph scales to fit
|
|
771
|
+
* inside it and keeps its proportions, so `size-5` next to a `size-5` Lucide
|
|
772
|
+
* icon reads at the same weight.
|
|
773
|
+
*/
|
|
774
|
+
function Share(props) {
|
|
775
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
776
|
+
name: "share",
|
|
777
|
+
viewBox: "0 0 20 16",
|
|
778
|
+
fill: "currentColor",
|
|
779
|
+
stroke: "none",
|
|
780
|
+
...props,
|
|
781
|
+
children: /* @__PURE__ */ jsx("path", { d: "m19.707 7.372-8-7.112a1.044 1.044 0 0 0-.512-.243 1.117 1.117 0 0 0-.578.05.984.984 0 0 0-.448.328.82.82 0 0 0-.169.494v3.15c-2.732.226-5.27 1.348-7.12 3.15-1.85 1.8-2.877 4.15-2.88 6.589v1.333c0 .185.065.365.185.515.12.15.29.264.487.324.196.06.408.066.608.014.199-.052.375-.157.504-.302a11.337 11.337 0 0 1 3.536-2.505 12.566 12.566 0 0 1 4.351-1.094c.05-.005.175-.014.33-.023v3.071a.82.82 0 0 0 .168.494c.11.146.266.26.448.327.183.068.384.085.578.05.194-.033.372-.118.512-.242l8-7.112A.842.842 0 0 0 20 8a.842.842 0 0 0-.293-.628ZM12 12.966V11.11a.842.842 0 0 0-.293-.628 1.067 1.067 0 0 0-.707-.26c-.255 0-1.296.044-1.562.075-2.695.22-5.26 1.13-7.386 2.62.241-1.96 1.288-3.773 2.939-5.09C6.64 6.51 8.78 5.78 11 5.778c.264 0 .519-.094.706-.26a.842.842 0 0 0 .293-.63V3.036L17.586 8 12 12.966Z" })
|
|
782
|
+
});
|
|
783
|
+
}
|
|
748
784
|
function SlidersHorizontal(props) {
|
|
749
785
|
return /* @__PURE__ */ jsxs(Icon, {
|
|
750
786
|
name: "sliders-horizontal",
|
|
@@ -902,4 +938,4 @@ function X(props) {
|
|
|
902
938
|
});
|
|
903
939
|
}
|
|
904
940
|
//#endregion
|
|
905
|
-
export { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowDown, ArrowRight, ArrowUp, ArrowUpRight, Baseline, Bold, Calendar, Captions, CaptionsOff, Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsUpDown, Clock, Code2, Eye, EyeOff, File, FileText, Fullscreen, Icon, Image, Info, Italic, Link2, List, ListOrdered, ListVideo, Loader, Loader2, Maximize, Maximize2, Menu, Mic, MicOff, Minimize, Minimize2, Minus, Monitor, Moon, MoreHorizontal, Pause, Phone, PictureInPicture2, Pin, Play, Plus, Quote, Redo2, RefreshCcw, Repeat2, RotateCcw, RotateCw, Search, SearchX, Send, Settings, SlidersHorizontal, Star, Sun, TriangleAlert, Underline, Undo2, UploadCloud, User, Video, Volume1, Volume2, VolumeX, X };
|
|
941
|
+
export { AlignCenter, AlignJustify, AlignLeft, AlignRight, ArrowDown, ArrowRight, ArrowUp, ArrowUpRight, Baseline, Bold, Calendar, Captions, CaptionsOff, Check, CheckCheck, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, ChevronsUpDown, Clock, Code2, Eye, EyeOff, File, FileText, Filter, Fullscreen, Icon, Image, Info, Italic, Link2, List, ListOrdered, ListVideo, Loader, Loader2, Maximize, Maximize2, Menu, Mic, MicOff, Minimize, Minimize2, Minus, Monitor, Moon, MoreHorizontal, Pause, Phone, PictureInPicture2, Pin, Play, Plus, Quote, Redo2, RefreshCcw, Repeat2, RotateCcw, RotateCw, Search, SearchX, Send, Settings, Share, SlidersHorizontal, Star, Sun, TriangleAlert, Underline, Undo2, UploadCloud, User, Video, Volume1, Volume2, VolumeX, X };
|
package/dist/image.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
//#region src/image.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* What a custom image component is handed: every `<img>` prop, already merged
|
|
6
|
+
* — `src`, `alt`, the resolved `className`, and whatever the call site passed
|
|
7
|
+
* through. Typed as an `img` rather than the generic HTML attributes Base UI
|
|
8
|
+
* defaults to, so a render function can read `src` without a cast.
|
|
9
|
+
*/
|
|
10
|
+
type ImageRenderProps = React.ComponentPropsWithRef<"img">;
|
|
11
|
+
/** Carried into `data-slot`, and handed to a `render` function as its state. */
|
|
12
|
+
type ImageState = {
|
|
13
|
+
slot: string;
|
|
14
|
+
};
|
|
15
|
+
type ImageProps = useRender.ComponentProps<"img", ImageState, ImageRenderProps>;
|
|
16
|
+
/**
|
|
17
|
+
* A `ReactElement` to clone, or a function returning the element to render.
|
|
18
|
+
* `<Image render={<NextImage fill />} />` and
|
|
19
|
+
* `<Image render={(props) => <NextImage {...props} fill />} />` are both it.
|
|
20
|
+
*/
|
|
21
|
+
type ImageRender = ImageProps["render"];
|
|
22
|
+
/**
|
|
23
|
+
* Sets the image component for everything below it, so a Next.js or Gatsby
|
|
24
|
+
* app names its own `Image` once at the root rather than at every listing,
|
|
25
|
+
* gallery and thumbnail. A `render` passed to an individual image still wins.
|
|
26
|
+
*
|
|
27
|
+
* ```tsx
|
|
28
|
+
* // `NextImage` being this app's import of the framework's own component.
|
|
29
|
+
* <ImageProvider render={(props) => <NextImage {...props} fill sizes="100vw" />}>
|
|
30
|
+
* <App />
|
|
31
|
+
* </ImageProvider>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* The components that read this render photography — listings, galleries,
|
|
35
|
+
* posters. Ones whose `src` is made in the browser, like `FileUpload`'s
|
|
36
|
+
* `URL.createObjectURL` previews, stay on a plain `<img>`: an optimising
|
|
37
|
+
* loader has nothing to fetch from a `blob:` URL.
|
|
38
|
+
*/
|
|
39
|
+
declare function ImageProvider({ render, children }: {
|
|
40
|
+
render?: ImageRender;
|
|
41
|
+
children?: React.ReactNode;
|
|
42
|
+
}): React.JSX.Element;
|
|
43
|
+
/** The render a component should use: its own if given, else the provider's. */
|
|
44
|
+
declare function useImageRender(render?: ImageRender): import("@base-ui/react").ComponentRenderFn<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, ImageState> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* An `<img>` that can be swapped for someone else's image component, either
|
|
47
|
+
* one at a time through `render` or wholesale through `ImageProvider`.
|
|
48
|
+
*
|
|
49
|
+
* It adds nothing to a plain `<img>` otherwise — no sizing, no object-fit, no
|
|
50
|
+
* loading behaviour. `loading`, `fetchPriority`, `sizes`, `srcSet`, `decoding`
|
|
51
|
+
* and the rest pass straight through, which is the point: the call site knows
|
|
52
|
+
* whether a photo is above the fold and this does not.
|
|
53
|
+
*/
|
|
54
|
+
declare function Image({ render, slot, ...props }: Omit<ImageProps, "slot"> & {
|
|
55
|
+
/** Names the element in the DOM as `data-slot`, for styling and for tests. */
|
|
56
|
+
slot?: string;
|
|
57
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Image, type ImageProps, ImageProvider, type ImageRender, type ImageRenderProps, type ImageState, useImageRender };
|
package/dist/image.js
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useRender } from "@base-ui/react/use-render";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
//#region src/image.tsx
|
|
6
|
+
const ImageRenderContext = React.createContext(void 0);
|
|
7
|
+
/**
|
|
8
|
+
* Sets the image component for everything below it, so a Next.js or Gatsby
|
|
9
|
+
* app names its own `Image` once at the root rather than at every listing,
|
|
10
|
+
* gallery and thumbnail. A `render` passed to an individual image still wins.
|
|
11
|
+
*
|
|
12
|
+
* ```tsx
|
|
13
|
+
* // `NextImage` being this app's import of the framework's own component.
|
|
14
|
+
* <ImageProvider render={(props) => <NextImage {...props} fill sizes="100vw" />}>
|
|
15
|
+
* <App />
|
|
16
|
+
* </ImageProvider>
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* The components that read this render photography — listings, galleries,
|
|
20
|
+
* posters. Ones whose `src` is made in the browser, like `FileUpload`'s
|
|
21
|
+
* `URL.createObjectURL` previews, stay on a plain `<img>`: an optimising
|
|
22
|
+
* loader has nothing to fetch from a `blob:` URL.
|
|
23
|
+
*/
|
|
24
|
+
function ImageProvider({ render, children }) {
|
|
25
|
+
return /* @__PURE__ */ jsx(ImageRenderContext.Provider, {
|
|
26
|
+
value: render,
|
|
27
|
+
children
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/** The render a component should use: its own if given, else the provider's. */
|
|
31
|
+
function useImageRender(render) {
|
|
32
|
+
const inheritedRender = React.useContext(ImageRenderContext);
|
|
33
|
+
return render ?? inheritedRender;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* An `<img>` that can be swapped for someone else's image component, either
|
|
37
|
+
* one at a time through `render` or wholesale through `ImageProvider`.
|
|
38
|
+
*
|
|
39
|
+
* It adds nothing to a plain `<img>` otherwise — no sizing, no object-fit, no
|
|
40
|
+
* loading behaviour. `loading`, `fetchPriority`, `sizes`, `srcSet`, `decoding`
|
|
41
|
+
* and the rest pass straight through, which is the point: the call site knows
|
|
42
|
+
* whether a photo is above the fold and this does not.
|
|
43
|
+
*/
|
|
44
|
+
function Image({ render, slot = "image", ...props }) {
|
|
45
|
+
return useRender({
|
|
46
|
+
defaultTagName: "img",
|
|
47
|
+
render: useImageRender(render),
|
|
48
|
+
props,
|
|
49
|
+
state: { slot }
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { Image, ImageProvider, useImageRender };
|
package/dist/infinite-scroll.js
CHANGED
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Loader2 } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
|
+
import { useIntersection } from "./utils/use-intersection.js";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { createContext,
|
|
6
|
-
//#region src/lib/use-intersection.ts
|
|
7
|
-
function useIntersection(options) {
|
|
8
|
-
const [entry, setEntry] = useState(null);
|
|
9
|
-
const observer = useRef(null);
|
|
10
|
-
return {
|
|
11
|
-
ref: useCallback((element) => {
|
|
12
|
-
if (observer.current) {
|
|
13
|
-
observer.current.disconnect();
|
|
14
|
-
observer.current = null;
|
|
15
|
-
}
|
|
16
|
-
if (element === null) {
|
|
17
|
-
setEntry(null);
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
if (typeof IntersectionObserver === "undefined") {
|
|
21
|
-
setEntry(null);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
observer.current = new IntersectionObserver(([_entry]) => {
|
|
25
|
-
setEntry(_entry ?? null);
|
|
26
|
-
}, options);
|
|
27
|
-
observer.current.observe(element);
|
|
28
|
-
}, [options]),
|
|
29
|
-
entry
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
6
|
+
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
33
7
|
//#region src/infinite-scroll.tsx
|
|
34
8
|
const InfiniteScrollContext = createContext(null);
|
|
35
9
|
function useInfiniteScrollContext(consumer) {
|
package/dist/infotip.js
CHANGED
package/dist/input-group.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
3
|
import { SizeProvider } from "./size-context.js";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import { InputSizeProvider, useInputComponentSize } from "./input-size-context.js";
|
package/dist/input-otp.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Minus } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { InputSizeProvider, useInputComponentSize } from "./input-size-context.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
package/dist/input.js
CHANGED
package/dist/item.js
CHANGED
package/dist/kpi-card.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ArrowDown, ArrowUp, ArrowUpRight } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { Skeleton } from "./skeleton.js";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { mergeProps } from "@base-ui/react/merge-props";
|
package/dist/label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
//#region src/label.tsx
|
|
5
5
|
function Label({ className, children, withAsterisk = false, showOptionalText = false, ...props }) {
|
package/dist/line-chart.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
3
|
import { SizeProvider, useComponentSize } from "./size-context.js";
|
|
4
4
|
import { ChartContainer, cartesianAxisProps } from "./chart.js";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
package/dist/list-item.js
CHANGED
package/dist/map-indicator.js
CHANGED
package/dist/match.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ChevronDown } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { CircularProgress } from "./progress.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { cva } from "class-variance-authority";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Play } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { buttonVariants } from "./button.js";
|
|
5
5
|
import { Carousel, CarouselContent, CarouselItem, useCarousel } from "./carousel.js";
|
|
6
6
|
import { GalleryIndicator } from "./gallery-indicator.js";
|
|
7
|
+
import { Image } from "./image.js";
|
|
7
8
|
import { ReviewBlock } from "./review-block.js";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
import { cva } from "class-variance-authority";
|
|
@@ -42,7 +43,8 @@ function getMediaKey(image) {
|
|
|
42
43
|
return image.id ?? image.src ?? image.alt ?? "placeholder";
|
|
43
44
|
}
|
|
44
45
|
function MediaGalleryTile({ className, image, index, isDesktopTile, onMediaClick, renderMedia }) {
|
|
45
|
-
const content = renderMedia?.(image, index) ?? (image.src ? /* @__PURE__ */ jsx(
|
|
46
|
+
const content = renderMedia?.(image, index) ?? (image.src ? /* @__PURE__ */ jsx(Image, {
|
|
47
|
+
slot: "media-gallery-hero-image",
|
|
46
48
|
alt: image.alt ?? "",
|
|
47
49
|
className: "size-full object-cover",
|
|
48
50
|
draggable: false,
|
|
@@ -135,7 +137,8 @@ function MediaGalleryVideo({ alt = "", autoPlay, className, controls, label = "P
|
|
|
135
137
|
playsInline,
|
|
136
138
|
poster,
|
|
137
139
|
src
|
|
138
|
-
}) : poster ? /* @__PURE__ */ jsx(
|
|
140
|
+
}) : poster ? /* @__PURE__ */ jsx(Image, {
|
|
141
|
+
slot: "media-gallery-hero-poster",
|
|
139
142
|
alt,
|
|
140
143
|
className: "size-full object-cover",
|
|
141
144
|
draggable: false,
|
package/dist/media-player.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Captions, CaptionsOff, Maximize, Minimize, Pause, PictureInPicture2, Play, RefreshCcw, Repeat2, RotateCcw, RotateCw, Settings, TriangleAlert, Volume1, Volume2, VolumeX } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
5
|
+
import { formatDuration } from "./utils/format.js";
|
|
5
6
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
6
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
8
|
import * as React from "react";
|
|
@@ -35,15 +36,6 @@ function setRef(ref, value) {
|
|
|
35
36
|
}
|
|
36
37
|
if (ref) ref.current = value;
|
|
37
38
|
}
|
|
38
|
-
function formatTime(value) {
|
|
39
|
-
if (!Number.isFinite(value)) return "0:00";
|
|
40
|
-
const safeValue = Math.max(0, Math.floor(value ?? 0));
|
|
41
|
-
const hours = Math.floor(safeValue / 3600);
|
|
42
|
-
const minutes = Math.floor(safeValue % 3600 / 60);
|
|
43
|
-
const seconds = safeValue % 60;
|
|
44
|
-
if (hours > 0) return `${hours}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}`;
|
|
45
|
-
return `${minutes}:${String(seconds).padStart(2, "0")}`;
|
|
46
|
-
}
|
|
47
39
|
function formatRate(value) {
|
|
48
40
|
if (!value || value === 1) return "1x";
|
|
49
41
|
return `${Number.parseFloat(value.toFixed(2))}x`;
|
|
@@ -590,7 +582,7 @@ function MediaPlayerTime({ className, showDuration = true, ...props }) {
|
|
|
590
582
|
"data-slot": "media-player-time",
|
|
591
583
|
className: cn("inline-flex shrink-0 items-center px-1 text-gdt-sm font-medium tabular-nums text-fg-on-brand/80", className),
|
|
592
584
|
...props,
|
|
593
|
-
children: showDuration ? `${
|
|
585
|
+
children: showDuration ? `${formatDuration(currentTime)} / ${formatDuration(duration)}` : formatDuration(currentTime)
|
|
594
586
|
});
|
|
595
587
|
}
|
|
596
588
|
function MediaPlayerSeek({ className, disabled, onValueChange, "aria-label": ariaLabel, step = 5, withTime = true, ...props }) {
|
|
@@ -734,7 +726,7 @@ function MediaPlayerSeek({ className, disabled, onValueChange, "aria-label": ari
|
|
|
734
726
|
}) : null,
|
|
735
727
|
/* @__PURE__ */ jsx("span", {
|
|
736
728
|
className: cn("px-2.5 py-1 text-gdt-xs font-bold tabular-nums", (previewImage || previewChapter?.text) && "pt-0.5 pb-1.5"),
|
|
737
|
-
children:
|
|
729
|
+
children: formatDuration(previewValue)
|
|
738
730
|
})
|
|
739
731
|
]
|
|
740
732
|
}), portalContainer ?? document.body), /* @__PURE__ */ jsxs(Slider.Control, {
|
|
@@ -782,7 +774,7 @@ function MediaPlayerSeek({ className, disabled, onValueChange, "aria-label": ari
|
|
|
782
774
|
]
|
|
783
775
|
}), /* @__PURE__ */ jsx(Slider.Thumb, {
|
|
784
776
|
getAriaLabel: () => ariaLabel ?? "Media timeline",
|
|
785
|
-
getAriaValueText: (_formatted, value) => `${
|
|
777
|
+
getAriaValueText: (_formatted, value) => `${formatDuration(value)} of ${formatDuration(max)}`,
|
|
786
778
|
className: cn("group/seek-thumb size-[14px] rounded-full outline-none", "transition-[inset-inline-start] duration-200 ease-linear data-[dragging]:transition-none"),
|
|
787
779
|
children: /* @__PURE__ */ jsx("span", { className: cn("block size-full rounded-full border-2 border-surface-brand bg-surface-overlay shadow-2", "transition-[scale] duration-[var(--duration-motion-press)] ease-gdt-out group-data-[dragging]/seek-thumb:scale-125 motion-reduce:group-data-[dragging]/seek-thumb:scale-100", "group-has-[:focus-visible]/seek-thumb:[filter:drop-shadow(0_0_0.25rem_var(--color-line-focus))]") })
|
|
788
780
|
})]
|
package/dist/message.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { CheckCheck } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
|
+
import { formatTimestamp, toDateTimeAttribute } from "./utils/format.js";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
6
7
|
import { useRender } from "@base-ui/react/use-render";
|
|
@@ -13,17 +14,6 @@ function useMessageContext() {
|
|
|
13
14
|
if (!context) throw new Error("Message parts must be rendered inside <Message>.");
|
|
14
15
|
return context;
|
|
15
16
|
}
|
|
16
|
-
function toDateTimeAttribute(value) {
|
|
17
|
-
return value instanceof Date ? value.toISOString() : value;
|
|
18
|
-
}
|
|
19
|
-
function formatTimestamp(value) {
|
|
20
|
-
if (typeof value === "string") return value;
|
|
21
|
-
return value.toLocaleTimeString([], {
|
|
22
|
-
hour: "2-digit",
|
|
23
|
-
minute: "2-digit",
|
|
24
|
-
hour12: false
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
17
|
/** Styles the bubble itself — the surface inside `Message`, not `Message`'s root. */
|
|
28
18
|
const messageVariants = cva("relative flex w-fit min-w-0 flex-col shadow-1 *:data-[slot=message-media]:max-w-full", {
|
|
29
19
|
variants: {
|
package/dist/mobile-sidebar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { ChevronDown, Menu, X } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./collapsible.js";
|
|
5
5
|
import { Sheet, SheetBody, SheetClose, SheetContent, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./sheet.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|