@brightlocal/ui-components 3.3.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/AI_USAGE.md +22 -3
- package/README.md +177 -109
- package/component-meta.json +1307 -113
- package/dist/alert-dialog.cjs +1 -1
- package/dist/alert-dialog.d.ts +13 -2
- package/dist/alert-dialog.d.ts.map +1 -1
- package/dist/alert-dialog.js +4 -3
- package/dist/banner.cjs +1 -1
- package/dist/banner.d.ts +47 -11
- package/dist/banner.d.ts.map +1 -1
- package/dist/banner.js +156 -79
- package/dist/blocks/empty-state.cjs +1 -1
- package/dist/blocks/empty-state.d.ts +40 -5
- package/dist/blocks/empty-state.d.ts.map +1 -1
- package/dist/blocks/empty-state.js +59 -52
- package/dist/blocks/input-list.cjs +1 -1
- package/dist/blocks/input-list.d.ts +1 -0
- package/dist/blocks/input-list.d.ts.map +1 -1
- package/dist/blocks/input-list.js +39 -39
- package/dist/blocks/sidebar.cjs +1 -1
- package/dist/blocks/sidebar.d.ts +12 -6
- package/dist/blocks/sidebar.d.ts.map +1 -1
- package/dist/blocks/sidebar.js +64 -63
- package/dist/button.cjs +1 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +47 -43
- package/dist/card.cjs +1 -1
- package/dist/card.d.ts +12 -0
- package/dist/card.d.ts.map +1 -1
- package/dist/card.js +115 -97
- package/dist/chart.cjs +6 -6
- package/dist/chart.d.ts +6 -10
- package/dist/chart.d.ts.map +1 -1
- package/dist/chart.js +281 -296
- package/dist/combobox.cjs +3 -3
- package/dist/combobox.d.ts.map +1 -1
- package/dist/combobox.js +430 -343
- package/dist/command.cjs +1 -1
- package/dist/command.d.ts +23 -2
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +212 -207
- package/dist/count-indicator.cjs +1 -0
- package/dist/count-indicator.d.ts +85 -0
- package/dist/count-indicator.d.ts.map +1 -0
- package/dist/count-indicator.js +72 -0
- package/dist/data-table.cjs +1 -1
- package/dist/data-table.d.ts +101 -11
- package/dist/data-table.d.ts.map +1 -1
- package/dist/data-table.js +593 -523
- package/dist/description-list.cjs +1 -0
- package/dist/description-list.d.ts +142 -0
- package/dist/description-list.d.ts.map +1 -0
- package/dist/description-list.js +173 -0
- package/dist/dialog.cjs +1 -1
- package/dist/dialog.d.ts +26 -3
- package/dist/dialog.d.ts.map +1 -1
- package/dist/dialog.js +62 -47
- package/dist/drawer.cjs +1 -1
- package/dist/drawer.d.ts +8 -4
- package/dist/drawer.d.ts.map +1 -1
- package/dist/drawer.js +37 -38
- package/dist/file-upload.cjs +1 -0
- package/dist/file-upload.d.ts +546 -0
- package/dist/file-upload.d.ts.map +1 -0
- package/dist/file-upload.js +1103 -0
- package/dist/global-layout.cjs +1 -1
- package/dist/global-layout.d.ts +7 -2
- package/dist/global-layout.d.ts.map +1 -1
- package/dist/global-layout.js +52 -52
- package/dist/hooks/use-file-dropzone.cjs +1 -0
- package/dist/hooks/use-file-dropzone.d.ts +75 -0
- package/dist/hooks/use-file-dropzone.d.ts.map +1 -0
- package/dist/hooks/use-file-dropzone.js +133 -0
- package/dist/hover-card.cjs +1 -1
- package/dist/hover-card.d.ts +29 -16
- package/dist/hover-card.d.ts.map +1 -1
- package/dist/hover-card.js +153 -36
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +681 -623
- package/dist/input-chip.cjs +1 -1
- package/dist/input-chip.d.ts +30 -1
- package/dist/input-chip.d.ts.map +1 -1
- package/dist/input-chip.js +131 -115
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.d.ts +37 -2
- package/dist/input-group.d.ts.map +1 -1
- package/dist/input-group.js +131 -114
- package/dist/input-password.cjs +1 -1
- package/dist/input-password.js +6 -6
- package/dist/lib/empty-canvas.cjs +1 -1
- package/dist/lib/empty-canvas.d.ts +27 -1
- package/dist/lib/empty-canvas.d.ts.map +1 -1
- package/dist/lib/empty-canvas.js +27 -23
- package/dist/lib/empty-chip.cjs +1 -1
- package/dist/lib/empty-chip.d.ts +19 -2
- package/dist/lib/empty-chip.d.ts.map +1 -1
- package/dist/lib/empty-chip.js +14 -9
- package/dist/lib/field-aria.cjs +1 -1
- package/dist/lib/field-aria.d.ts +4 -4
- package/dist/lib/field-aria.d.ts.map +1 -1
- package/dist/lib/field-aria.js +7 -5
- package/dist/lib/media-viewer-content.cjs +1 -1
- package/dist/lib/media-viewer-content.js +1 -1
- package/dist/lib/motion.cjs +1 -1
- package/dist/lib/motion.js +15 -10
- package/dist/lib/table-internal.cjs +1 -1
- package/dist/lib/table-internal.d.ts +19 -0
- package/dist/lib/table-internal.d.ts.map +1 -1
- package/dist/lib/table-internal.js +22 -7
- package/dist/list.cjs +1 -1
- package/dist/list.d.ts +230 -40
- package/dist/list.d.ts.map +1 -1
- package/dist/list.js +301 -66
- package/dist/logo-mark.cjs +1 -1
- package/dist/logo-mark.d.ts +18 -2
- package/dist/logo-mark.d.ts.map +1 -1
- package/dist/logo-mark.js +159 -79
- package/dist/media-empty.cjs +1 -1
- package/dist/media-empty.d.ts +50 -7
- package/dist/media-empty.d.ts.map +1 -1
- package/dist/media-empty.js +14 -13
- package/dist/media-viewer.cjs +1 -1
- package/dist/media-viewer.js +6 -6
- package/dist/multi-select-filter.cjs +1 -1
- package/dist/multi-select-filter.d.ts.map +1 -1
- package/dist/multi-select-filter.js +92 -101
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.d.ts +11 -0
- package/dist/pagination.d.ts.map +1 -1
- package/dist/pagination.js +17 -17
- package/dist/relative-date.d.ts +6 -0
- package/dist/relative-date.d.ts.map +1 -1
- package/dist/resizable.d.ts +1 -1
- package/dist/result-count.cjs +1 -1
- package/dist/result-count.d.ts +13 -16
- package/dist/result-count.d.ts.map +1 -1
- package/dist/result-count.js +24 -33
- package/dist/route-progress.cjs +1 -1
- package/dist/route-progress.js +24 -23
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.d.ts +22 -3
- package/dist/sheet.d.ts.map +1 -1
- package/dist/sheet.js +152 -125
- package/dist/single-select-filter.cjs +1 -1
- package/dist/single-select-filter.d.ts.map +1 -1
- package/dist/single-select-filter.js +67 -76
- package/dist/table.cjs +1 -1
- package/dist/table.d.ts.map +1 -1
- package/dist/table.js +77 -76
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.d.ts +39 -3
- package/dist/tabs.d.ts.map +1 -1
- package/dist/tabs.js +127 -76
- package/dist/textarea.cjs +1 -1
- package/dist/textarea.d.ts +34 -0
- package/dist/textarea.d.ts.map +1 -1
- package/dist/textarea.js +115 -19
- package/dist/tooltip.cjs +1 -1
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js +137 -131
- package/dist/typography-text.cjs +1 -1
- package/dist/typography-text.d.ts +6 -2
- package/dist/typography-text.d.ts.map +1 -1
- package/dist/typography-text.js +14 -13
- package/package.json +2 -3
- package/src/blocks/empty-state.tsx +108 -48
- package/src/blocks/input-list.tsx +15 -9
- package/src/blocks/sidebar.tsx +39 -16
- package/src/components/alert-dialog.tsx +18 -2
- package/src/components/banner.tsx +247 -68
- package/src/components/button.tsx +27 -10
- package/src/components/card.tsx +89 -7
- package/src/components/chart.tsx +47 -67
- package/src/components/combobox.tsx +221 -12
- package/src/components/command.tsx +83 -37
- package/src/components/count-indicator.tsx +188 -0
- package/src/components/data-table.tsx +506 -159
- package/src/components/description-list.tsx +445 -0
- package/src/components/dialog.tsx +74 -5
- package/src/components/drawer.tsx +52 -32
- package/src/components/file-upload.tsx +2574 -0
- package/src/components/global-layout.tsx +18 -5
- package/src/components/hover-card.tsx +395 -65
- package/src/components/input-chip.tsx +67 -2
- package/src/components/input-group.tsx +89 -6
- package/src/components/list.tsx +720 -72
- package/src/components/logo-mark.tsx +109 -25
- package/src/components/media-empty.tsx +62 -7
- package/src/components/multi-select-filter.tsx +9 -16
- package/src/components/pagination.tsx +15 -2
- package/src/components/relative-date.tsx +6 -0
- package/src/components/result-count.tsx +27 -54
- package/src/components/sheet.tsx +86 -8
- package/src/components/single-select-filter.tsx +9 -16
- package/src/components/table.tsx +16 -1
- package/src/components/tabs.tsx +223 -41
- package/src/components/textarea.tsx +271 -4
- package/src/components/tooltip.tsx +29 -2
- package/src/components/typography-text.tsx +7 -2
- package/src/hooks/use-file-dropzone.ts +325 -0
- package/src/index.ts +4 -0
- package/src/lib/empty-canvas.tsx +47 -20
- package/src/lib/empty-chip.tsx +38 -3
- package/src/lib/field-aria.tsx +11 -6
- package/src/lib/table-internal.ts +38 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";const h=require("./_virtual/_rolldown/runtime.cjs");let t=require("react");t=h.__toESM(t,1);let d=require("@brightlocal/ui-components/lib/utils"),n=require("react/jsx-runtime"),u=require("class-variance-authority");var c=t.createContext({layout:"inline",align:"start",autoTerm:!1}),f=(0,u.cva)("min-w-0",{variants:{layout:{inline:"flex flex-col",stacked:"flex flex-col",responsive:"flex flex-col",container:"flex flex-col",grid:"grid grid-cols-[repeat(auto-fill,minmax(8rem,1fr))] gap-x-6 gap-y-4"},divided:{true:["divide-border divide-y","[&>[data-slot=description-list-item]]:py-3","[&>[data-slot=description-list-item]:first-child]:pt-0","[&>[data-slot=description-list-item]:last-child]:pb-0"],false:""}},compoundVariants:[{layout:"inline",divided:!1,className:"gap-3"},{layout:"stacked",divided:!1,className:"gap-3"},{layout:"responsive",divided:!1,className:"gap-3"},{layout:"container",divided:!1,className:"gap-3"}],defaultVariants:{layout:"inline",divided:!1}}),N=(0,u.cva)("flex min-w-0",{variants:{layout:{inline:"flex-row items-baseline gap-4",stacked:"flex-col gap-1",responsive:"flex-col gap-1 sm:flex-row sm:items-baseline sm:gap-4",container:"flex-col gap-1 @md:flex-row @md:items-baseline @md:gap-4",grid:"flex-col gap-1"}},defaultVariants:{layout:"inline"}}),k=(0,u.cva)("text-muted-foreground text-body-sm shrink-0",{variants:{layout:{inline:"w-(--dl-term-width)",stacked:"",responsive:"sm:w-(--dl-term-width)",container:"@md:w-(--dl-term-width)",grid:""}},defaultVariants:{layout:"inline"}}),T={inline:"grid grid-cols-[max-content_1fr] gap-x-4",responsive:"sm:grid sm:grid-cols-[max-content_1fr] sm:gap-x-4",container:"@md:grid @md:grid-cols-[max-content_1fr] @md:gap-x-4"},j={inline:"col-span-2 grid grid-cols-subgrid",responsive:"sm:col-span-2 sm:grid sm:grid-cols-subgrid",container:"@md:col-span-2 @md:grid @md:grid-cols-subgrid"},I=["inline","responsive","container"],x=t.forwardRef(({className:a,style:r,layout:e="inline",termWidth:s=128,align:i="start",divided:l=!1,dataHook:o,trackingEl:m,trackingLabel:D,...L},b)=>{const p=I.includes(e)&&!(i==="end"&&e==="inline")&&s==="auto",_=t.useMemo(()=>({layout:e,align:i,autoTerm:p}),[e,i,p]);return(0,n.jsx)(c.Provider,{value:_,children:(0,n.jsx)("dl",{ref:b,className:(0,d.cn)(f({layout:e,divided:e==="grid"?!1:l}),p&&T[e],a),"data-align":i,"data-hook":o,"data-layout":e,"data-slot":"description-list","data-tracking-el":m||"description-list","data-tracking-label":D,style:{...typeof s=="number"&&{"--dl-term-width":`${s}px`},...r},...L})})});x.displayName="DescriptionList";var g=t.forwardRef(({className:a,dataHook:r,...e},s)=>{const{layout:i,align:l,autoTerm:o}=t.useContext(c),m=l==="end"&&i==="inline";return(0,n.jsx)("div",{ref:s,className:(0,d.cn)(N({layout:i}),m&&"justify-between",o&&j[i],a),"data-hook":r,"data-slot":"description-list-item",...e})});g.displayName="DescriptionListItem";var v=t.forwardRef(({className:a,dataHook:r,...e},s)=>{const{layout:i,align:l,autoTerm:o}=t.useContext(c);return(0,n.jsx)("dt",{ref:s,className:(0,d.cn)(k({layout:l==="end"||o?"stacked":i}),a),"data-hook":r,"data-slot":"description-list-term",...e})});v.displayName="DescriptionListTerm";var y=t.forwardRef(({className:a,color:r="foreground",dataHook:e,...s},i)=>{const{layout:l,align:o}=t.useContext(c);return(0,n.jsx)("dd",{ref:i,className:(0,d.cn)("text-body-sm min-w-0 flex-1 break-words",r==="muted"?"text-muted-foreground":"text-foreground",o==="end"&&l==="inline"&&"text-right tabular-nums",a),"data-hook":e,"data-slot":"description-list-details",...s})});y.displayName="DescriptionListDetails";var w=t.forwardRef(({className:a,icon:r,children:e,...s},i)=>(0,n.jsxs)("span",{ref:i,className:(0,d.cn)("inline-flex max-w-full items-center gap-2 align-bottom [&_svg:not([class*='size-'])]:size-4",a),"data-slot":"description-list-icon-text",...s,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"inline-flex size-4 shrink-0 items-center justify-center",children:r}),(0,n.jsx)("span",{className:"min-w-0",children:e})]}));w.displayName="DescriptionListIconText";exports.DescriptionList=x;exports.DescriptionListDetails=y;exports.DescriptionListIconText=w;exports.DescriptionListItem=g;exports.DescriptionListTerm=v;exports.descriptionListVariants=f;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* How each term sits against its value.
|
|
4
|
+
* - `inline` — term column beside the value, every value starts on the same line
|
|
5
|
+
* - `stacked` — term above the value
|
|
6
|
+
* - `responsive` — stacked below the `sm` breakpoint, inline from `sm` up
|
|
7
|
+
* - `container` — stacked until the nearest `@container` is `@md` (28rem) wide,
|
|
8
|
+
* for lists in narrow panels on wide screens
|
|
9
|
+
* - `grid` — stacked items flowing into as many columns as fit (facts, plan limits)
|
|
10
|
+
*/
|
|
11
|
+
export type DescriptionListLayout = "inline" | "stacked" | "responsive" | "container" | "grid";
|
|
12
|
+
/**
|
|
13
|
+
* Where the value sits in an `inline` row (other layouts ignore it).
|
|
14
|
+
* - `start` — values line up in a column after the term
|
|
15
|
+
* - `end` — values pushed to the row's end (receipts, totals, counts)
|
|
16
|
+
*/
|
|
17
|
+
export type DescriptionListAlign = "start" | "end";
|
|
18
|
+
declare const descriptionListVariants: (props?: ({
|
|
19
|
+
layout?: "grid" | "inline" | "container" | "stacked" | "responsive" | null | undefined;
|
|
20
|
+
divided?: boolean | null | undefined;
|
|
21
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
22
|
+
/**
|
|
23
|
+
* Props for the DescriptionList root.
|
|
24
|
+
* Extends native `<dl>` props with layout options and testing/analytics attributes.
|
|
25
|
+
*/
|
|
26
|
+
export interface DescriptionListProps extends React.ComponentProps<"dl"> {
|
|
27
|
+
/**
|
|
28
|
+
* Data hook for automated testing (required).
|
|
29
|
+
* @example "review-details", "plan-limits"
|
|
30
|
+
*/
|
|
31
|
+
dataHook: string;
|
|
32
|
+
/**
|
|
33
|
+
* Tracking element identifier for analytics.
|
|
34
|
+
* @default "description-list"
|
|
35
|
+
*/
|
|
36
|
+
trackingEl?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Tracking label for analytics context.
|
|
39
|
+
*/
|
|
40
|
+
trackingLabel?: string;
|
|
41
|
+
/**
|
|
42
|
+
* How each term sits against its value.
|
|
43
|
+
* @default "inline"
|
|
44
|
+
*/
|
|
45
|
+
layout?: DescriptionListLayout;
|
|
46
|
+
/**
|
|
47
|
+
* Width of the term column when the term sits beside its value. A number is
|
|
48
|
+
* pixels; `"auto"` sizes the column to the longest term.
|
|
49
|
+
* Ignored by `stacked` and `grid`, and by `align="end"` on `inline`.
|
|
50
|
+
* @default 128
|
|
51
|
+
*/
|
|
52
|
+
termWidth?: number | "auto";
|
|
53
|
+
/**
|
|
54
|
+
* Where the value sits in an `inline` row. `end` pushes values to the row's
|
|
55
|
+
* end, for receipts and totals; other layouts ignore it.
|
|
56
|
+
* @default "start"
|
|
57
|
+
*/
|
|
58
|
+
align?: DescriptionListAlign;
|
|
59
|
+
/**
|
|
60
|
+
* Draw a hairline between items. Not used by the `grid` layout.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
divided?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Label-and-value pairs describing one record: the details of a review, the
|
|
67
|
+
* read view of a settings card, a receipt. Renders a semantic `<dl>`.
|
|
68
|
+
*
|
|
69
|
+
* For several records compared by the same attributes, use Table instead.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```tsx
|
|
73
|
+
* <DescriptionList dataHook="review-details">
|
|
74
|
+
* <DescriptionListItem>
|
|
75
|
+
* <DescriptionListTerm>Source</DescriptionListTerm>
|
|
76
|
+
* <DescriptionListDetails>Google</DescriptionListDetails>
|
|
77
|
+
* </DescriptionListItem>
|
|
78
|
+
* </DescriptionList>
|
|
79
|
+
* ```
|
|
80
|
+
*/
|
|
81
|
+
declare const DescriptionList: React.ForwardRefExoticComponent<Omit<DescriptionListProps, "ref"> & React.RefAttributes<HTMLDListElement>>;
|
|
82
|
+
/**
|
|
83
|
+
* Props for DescriptionListItem — one term and its value.
|
|
84
|
+
*/
|
|
85
|
+
export interface DescriptionListItemProps extends React.ComponentProps<"div"> {
|
|
86
|
+
/**
|
|
87
|
+
* Data hook for automated testing.
|
|
88
|
+
*/
|
|
89
|
+
dataHook?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* One term and its value. Renders a `<div>`, the grouping element HTML allows
|
|
93
|
+
* inside a `<dl>`.
|
|
94
|
+
*/
|
|
95
|
+
declare const DescriptionListItem: React.ForwardRefExoticComponent<Omit<DescriptionListItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
/**
|
|
97
|
+
* Props for DescriptionListTerm — the label.
|
|
98
|
+
*/
|
|
99
|
+
export interface DescriptionListTermProps extends React.ComponentProps<"dt"> {
|
|
100
|
+
/**
|
|
101
|
+
* Data hook for automated testing.
|
|
102
|
+
*/
|
|
103
|
+
dataHook?: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* The label of a pair. Muted, `text-body-sm`.
|
|
107
|
+
*/
|
|
108
|
+
declare const DescriptionListTerm: React.ForwardRefExoticComponent<Omit<DescriptionListTermProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
109
|
+
/**
|
|
110
|
+
* Props for DescriptionListDetails — the value.
|
|
111
|
+
*/
|
|
112
|
+
export interface DescriptionListDetailsProps extends React.ComponentProps<"dd"> {
|
|
113
|
+
/**
|
|
114
|
+
* Data hook for automated testing.
|
|
115
|
+
*/
|
|
116
|
+
dataHook?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Text colour of the value. Use `muted` for an empty value ("Not set").
|
|
119
|
+
* @default "foreground"
|
|
120
|
+
*/
|
|
121
|
+
color?: "foreground" | "muted";
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The value of a pair: text, a Badge, a Rating, a Link or an icon with text.
|
|
125
|
+
* Long values wrap.
|
|
126
|
+
*/
|
|
127
|
+
declare const DescriptionListDetails: React.ForwardRefExoticComponent<Omit<DescriptionListDetailsProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
128
|
+
/**
|
|
129
|
+
* Props for DescriptionListIconText — an icon or logo beside a text value.
|
|
130
|
+
*/
|
|
131
|
+
export interface DescriptionListIconTextProps extends React.ComponentProps<"span"> {
|
|
132
|
+
/**
|
|
133
|
+
* The icon or logo, sized to 16px.
|
|
134
|
+
*/
|
|
135
|
+
icon: React.ReactNode;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* An icon or logo beside a text value, such as a review source and its name.
|
|
139
|
+
*/
|
|
140
|
+
declare const DescriptionListIconText: React.ForwardRefExoticComponent<Omit<DescriptionListIconTextProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
141
|
+
export { DescriptionList, DescriptionListItem, DescriptionListTerm, DescriptionListDetails, DescriptionListIconText, descriptionListVariants, };
|
|
142
|
+
//# sourceMappingURL=description-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description-list.d.ts","sourceRoot":"","sources":["../../src/components/description-list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAC/B,QAAQ,GAAG,SAAS,GAAG,Y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,GAAG,OAAO,CAAC;CAChC;AAED;;;GAGG;AACH,QAAA,MAAM,sBAAsB,8GAqB1B,CAAC;AAOH;;GAEG;AACH,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC;IAChF;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,QAAA,MAAM,uBAAuB,mHAqB3B,CAAC;AAOH,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,GACxB,CAAC"}
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { cn as d } from "@brightlocal/ui-components/lib/utils";
|
|
4
|
+
import { jsx as o, jsxs as y } from "react/jsx-runtime";
|
|
5
|
+
import { cva as f } from "class-variance-authority";
|
|
6
|
+
var c = a.createContext({
|
|
7
|
+
layout: "inline",
|
|
8
|
+
align: "start",
|
|
9
|
+
autoTerm: !1
|
|
10
|
+
}), w = f("min-w-0", {
|
|
11
|
+
variants: {
|
|
12
|
+
layout: {
|
|
13
|
+
inline: "flex flex-col",
|
|
14
|
+
stacked: "flex flex-col",
|
|
15
|
+
responsive: "flex flex-col",
|
|
16
|
+
container: "flex flex-col",
|
|
17
|
+
grid: "grid grid-cols-[repeat(auto-fill,minmax(8rem,1fr))] gap-x-6 gap-y-4"
|
|
18
|
+
},
|
|
19
|
+
divided: {
|
|
20
|
+
true: [
|
|
21
|
+
"divide-border divide-y",
|
|
22
|
+
"[&>[data-slot=description-list-item]]:py-3",
|
|
23
|
+
"[&>[data-slot=description-list-item]:first-child]:pt-0",
|
|
24
|
+
"[&>[data-slot=description-list-item]:last-child]:pb-0"
|
|
25
|
+
],
|
|
26
|
+
false: ""
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
compoundVariants: [
|
|
30
|
+
{
|
|
31
|
+
layout: "inline",
|
|
32
|
+
divided: !1,
|
|
33
|
+
className: "gap-3"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
layout: "stacked",
|
|
37
|
+
divided: !1,
|
|
38
|
+
className: "gap-3"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
layout: "responsive",
|
|
42
|
+
divided: !1,
|
|
43
|
+
className: "gap-3"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
layout: "container",
|
|
47
|
+
divided: !1,
|
|
48
|
+
className: "gap-3"
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
defaultVariants: {
|
|
52
|
+
layout: "inline",
|
|
53
|
+
divided: !1
|
|
54
|
+
}
|
|
55
|
+
}), b = f("flex min-w-0", {
|
|
56
|
+
variants: { layout: {
|
|
57
|
+
inline: "flex-row items-baseline gap-4",
|
|
58
|
+
stacked: "flex-col gap-1",
|
|
59
|
+
responsive: "flex-col gap-1 sm:flex-row sm:items-baseline sm:gap-4",
|
|
60
|
+
container: "flex-col gap-1 @md:flex-row @md:items-baseline @md:gap-4",
|
|
61
|
+
grid: "flex-col gap-1"
|
|
62
|
+
} },
|
|
63
|
+
defaultVariants: { layout: "inline" }
|
|
64
|
+
}), N = f("text-muted-foreground text-body-sm shrink-0", {
|
|
65
|
+
variants: { layout: {
|
|
66
|
+
inline: "w-(--dl-term-width)",
|
|
67
|
+
stacked: "",
|
|
68
|
+
responsive: "sm:w-(--dl-term-width)",
|
|
69
|
+
container: "@md:w-(--dl-term-width)",
|
|
70
|
+
grid: ""
|
|
71
|
+
} },
|
|
72
|
+
defaultVariants: { layout: "inline" }
|
|
73
|
+
}), h = {
|
|
74
|
+
inline: "grid grid-cols-[max-content_1fr] gap-x-4",
|
|
75
|
+
responsive: "sm:grid sm:grid-cols-[max-content_1fr] sm:gap-x-4",
|
|
76
|
+
container: "@md:grid @md:grid-cols-[max-content_1fr] @md:gap-x-4"
|
|
77
|
+
}, D = {
|
|
78
|
+
inline: "col-span-2 grid grid-cols-subgrid",
|
|
79
|
+
responsive: "sm:col-span-2 sm:grid sm:grid-cols-subgrid",
|
|
80
|
+
container: "@md:col-span-2 @md:grid @md:grid-cols-subgrid"
|
|
81
|
+
}, L = [
|
|
82
|
+
"inline",
|
|
83
|
+
"responsive",
|
|
84
|
+
"container"
|
|
85
|
+
], k = a.forwardRef(({ className: s, style: r, layout: e = "inline", termWidth: t = 128, align: i = "start", divided: n = !1, dataHook: l, trackingEl: m, trackingLabel: g, ...u }, x) => {
|
|
86
|
+
const p = L.includes(e) && !(i === "end" && e === "inline") && t === "auto", v = a.useMemo(() => ({
|
|
87
|
+
layout: e,
|
|
88
|
+
align: i,
|
|
89
|
+
autoTerm: p
|
|
90
|
+
}), [
|
|
91
|
+
e,
|
|
92
|
+
i,
|
|
93
|
+
p
|
|
94
|
+
]);
|
|
95
|
+
return /* @__PURE__ */ o(c.Provider, {
|
|
96
|
+
value: v,
|
|
97
|
+
children: /* @__PURE__ */ o("dl", {
|
|
98
|
+
ref: x,
|
|
99
|
+
className: d(w({
|
|
100
|
+
layout: e,
|
|
101
|
+
divided: e === "grid" ? !1 : n
|
|
102
|
+
}), p && h[e], s),
|
|
103
|
+
"data-align": i,
|
|
104
|
+
"data-hook": l,
|
|
105
|
+
"data-layout": e,
|
|
106
|
+
"data-slot": "description-list",
|
|
107
|
+
"data-tracking-el": m || "description-list",
|
|
108
|
+
"data-tracking-label": g,
|
|
109
|
+
style: {
|
|
110
|
+
...typeof t == "number" && { "--dl-term-width": `${t}px` },
|
|
111
|
+
...r
|
|
112
|
+
},
|
|
113
|
+
...u
|
|
114
|
+
})
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
k.displayName = "DescriptionList";
|
|
118
|
+
var T = a.forwardRef(({ className: s, dataHook: r, ...e }, t) => {
|
|
119
|
+
const { layout: i, align: n, autoTerm: l } = a.useContext(c), m = n === "end" && i === "inline";
|
|
120
|
+
return /* @__PURE__ */ o("div", {
|
|
121
|
+
ref: t,
|
|
122
|
+
className: d(b({ layout: i }), m && "justify-between", l && D[i], s),
|
|
123
|
+
"data-hook": r,
|
|
124
|
+
"data-slot": "description-list-item",
|
|
125
|
+
...e
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
T.displayName = "DescriptionListItem";
|
|
129
|
+
var I = a.forwardRef(({ className: s, dataHook: r, ...e }, t) => {
|
|
130
|
+
const { layout: i, align: n, autoTerm: l } = a.useContext(c);
|
|
131
|
+
return /* @__PURE__ */ o("dt", {
|
|
132
|
+
ref: t,
|
|
133
|
+
className: d(N({ layout: n === "end" || l ? "stacked" : i }), s),
|
|
134
|
+
"data-hook": r,
|
|
135
|
+
"data-slot": "description-list-term",
|
|
136
|
+
...e
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
I.displayName = "DescriptionListTerm";
|
|
140
|
+
var C = a.forwardRef(({ className: s, color: r = "foreground", dataHook: e, ...t }, i) => {
|
|
141
|
+
const { layout: n, align: l } = a.useContext(c);
|
|
142
|
+
return /* @__PURE__ */ o("dd", {
|
|
143
|
+
ref: i,
|
|
144
|
+
className: d("text-body-sm min-w-0 flex-1 break-words", r === "muted" ? "text-muted-foreground" : "text-foreground", l === "end" && n === "inline" && "text-right tabular-nums", s),
|
|
145
|
+
"data-hook": e,
|
|
146
|
+
"data-slot": "description-list-details",
|
|
147
|
+
...t
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
C.displayName = "DescriptionListDetails";
|
|
151
|
+
var V = a.forwardRef(({ className: s, icon: r, children: e, ...t }, i) => /* @__PURE__ */ y("span", {
|
|
152
|
+
ref: i,
|
|
153
|
+
className: d("inline-flex max-w-full items-center gap-2 align-bottom [&_svg:not([class*='size-'])]:size-4", s),
|
|
154
|
+
"data-slot": "description-list-icon-text",
|
|
155
|
+
...t,
|
|
156
|
+
children: [/* @__PURE__ */ o("span", {
|
|
157
|
+
"aria-hidden": "true",
|
|
158
|
+
className: "inline-flex size-4 shrink-0 items-center justify-center",
|
|
159
|
+
children: r
|
|
160
|
+
}), /* @__PURE__ */ o("span", {
|
|
161
|
+
className: "min-w-0",
|
|
162
|
+
children: e
|
|
163
|
+
})]
|
|
164
|
+
}));
|
|
165
|
+
V.displayName = "DescriptionListIconText";
|
|
166
|
+
export {
|
|
167
|
+
k as DescriptionList,
|
|
168
|
+
C as DescriptionListDetails,
|
|
169
|
+
V as DescriptionListIconText,
|
|
170
|
+
T as DescriptionListItem,
|
|
171
|
+
I as DescriptionListTerm,
|
|
172
|
+
w as descriptionListVariants
|
|
173
|
+
};
|
package/dist/dialog.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const
|
|
1
|
+
"use client";const c=require("./_virtual/_rolldown/runtime.cjs");let l=require("react");l=c.__toESM(l,1);let w=require("@brightlocal/icons"),s=require("@brightlocal/ui-components/lib/utils"),o=require("react/jsx-runtime"),j=require("@brightlocal/ui-components/hooks/use-overlay-pointer-lock"),i=require("@radix-ui/react-dialog");i=c.__toESM(i,1);let k=require("@brightlocal/ui-components/scroll-area");var u=i.Root;u.displayName="Dialog";var m=l.forwardRef(({dataHook:a,...e},t)=>(0,o.jsx)(i.Trigger,{ref:t,"data-slot":"dialog-trigger",...a!=null&&{"data-hook":a},...e}));m.displayName="DialogTrigger";function n({...a}){return(0,o.jsx)(i.Portal,{...a})}n.displayName="DialogPortal";var f=l.forwardRef(({...a},e)=>(0,o.jsx)(i.Close,{ref:e,"data-slot":"dialog-close",...a}));f.displayName="DialogClose";var g=l.forwardRef(({className:a,...e},t)=>(0,o.jsx)(i.Overlay,{ref:t,className:(0,s.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=open]:duration-slow fixed inset-0 z-50 bg-black/50 ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in",a),"data-slot":"dialog-overlay",...e}));g.displayName="DialogOverlay";var C=(0,s.cn)("bg-background text-foreground border-card-border fixed inset-x-0 top-[50%] z-50 mx-auto w-min max-w-[min(64rem,100%-2rem)] min-w-[min(32rem,100%-2rem)] translate-y-[-50%] rounded-xl border p-8 shadow-lg","flex max-h-[85svh] flex-col gap-8 overflow-y-auto","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:duration-slow ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in"),x=l.forwardRef(({className:a,children:e,dataHook:t,trackingEl:r,trackingLabel:d,closeLabel:b,...h},N)=>((0,j.useOverlayPointerLock)(),(0,o.jsxs)(n,{children:[(0,o.jsx)(g,{}),(0,o.jsxs)(i.Content,{ref:N,className:(0,s.cn)(C,a),"data-hook":t,"data-slot":"dialog-content","data-tracking-el":r,"data-tracking-label":d,...h,children:[e,(0,o.jsxs)(i.Close,{className:"ring-offset-background focus-visible:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground duration-fast absolute top-8 right-8 rounded-xs opacity-70 outline-hidden transition-opacity ease-out hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[(0,o.jsx)(w.X,{}),(0,o.jsx)("span",{className:"sr-only",children:b??"Close"})]})]})]})));x.displayName="DialogContent";var p=l.forwardRef(({className:a,...e},t)=>(0,o.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col gap-2 text-center sm:text-left",a),"data-slot":"dialog-header",...e}));p.displayName="DialogHeader";var _=l.forwardRef(({className:a,children:e,dataHook:t,...r},d)=>(0,o.jsx)(k.ScrollArea,{ref:d,className:(0,s.cn)("-mx-8 flex min-h-0 flex-1 flex-col","[&>[data-slot=scroll-area-viewport]]:focus-visible:shadow-[inset_0_0_0_var(--ds-spread-xs)_var(--color-outline)]",a),"data-slot":"dialog-body",dataHook:t??"dialog-body",...r,children:(0,o.jsx)("div",{className:"px-7","data-slot":"dialog-body-content",children:e})}));_.displayName="DialogBody";var D=l.forwardRef(({className:a,...e},t)=>(0,o.jsx)("div",{ref:t,className:(0,s.cn)("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),"data-slot":"dialog-footer",...e}));D.displayName="DialogFooter";var v=l.forwardRef(({className:a,dataHook:e,...t},r)=>(0,o.jsx)(i.Title,{ref:r,className:(0,s.cn)("text-heading-section",a),"data-hook":e,"data-slot":"dialog-title",...t}));v.displayName="DialogTitle";var y=l.forwardRef(({className:a,dataHook:e,...t},r)=>(0,o.jsx)(i.Description,{ref:r,className:(0,s.cn)("text-body-sm text-muted-foreground",a),"data-hook":e,"data-slot":"dialog-description",...t}));y.displayName="DialogDescription";exports.Dialog=u;exports.DialogBody=_;exports.DialogClose=f;exports.DialogContent=x;exports.DialogDescription=y;exports.DialogFooter=D;exports.DialogHeader=p;exports.DialogOverlay=g;exports.DialogPortal=n;exports.DialogTitle=v;exports.DialogTrigger=m;
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ScrollArea } from './scroll-area';
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
4
|
/**
|
|
@@ -61,7 +62,12 @@ interface DialogContentProps extends React.ComponentProps<typeof DialogPrimitive
|
|
|
61
62
|
}
|
|
62
63
|
/**
|
|
63
64
|
* DialogContent - The main dialog content container
|
|
64
|
-
* @description Contains the dialog's content including header, body, and
|
|
65
|
+
* @description Contains the dialog's content including header, body, and
|
|
66
|
+
* footer. The width follows the content: at least 512px, with text wrapping
|
|
67
|
+
* at 512px, and growing up to 1024px for content with its own width, such as
|
|
68
|
+
* a table or an image. A viewport narrower than that keeps a 16px gutter on
|
|
69
|
+
* each side. The height is capped at 85svh; wrap tall content in
|
|
70
|
+
* `DialogBody` so it scrolls between the header and footer.
|
|
65
71
|
*/
|
|
66
72
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
67
73
|
/**
|
|
@@ -69,6 +75,23 @@ declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogContentP
|
|
|
69
75
|
* @description Groups the title and description at the top of the dialog
|
|
70
76
|
*/
|
|
71
77
|
declare const DialogHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
78
|
+
/**
|
|
79
|
+
* Props for the DialogBody component
|
|
80
|
+
*/
|
|
81
|
+
interface DialogBodyProps extends Omit<React.ComponentProps<typeof ScrollArea>, "dataHook"> {
|
|
82
|
+
/**
|
|
83
|
+
* Data hook for automated testing
|
|
84
|
+
* @default "dialog-body"
|
|
85
|
+
*/
|
|
86
|
+
dataHook?: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* DialogBody - The scrollable region between DialogHeader and DialogFooter.
|
|
90
|
+
* @description Takes the height left inside the 85svh cap and scrolls long
|
|
91
|
+
* content with DS scrollbars in a keyboard-focusable viewport, while the
|
|
92
|
+
* header, footer and close button stay in view.
|
|
93
|
+
*/
|
|
94
|
+
declare const DialogBody: React.ForwardRefExoticComponent<Omit<DialogBodyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
72
95
|
/**
|
|
73
96
|
* DialogFooter - Container for dialog action buttons.
|
|
74
97
|
* @description Groups action buttons at the bottom of the dialog
|
|
@@ -104,6 +127,6 @@ interface DialogDescriptionProps extends React.ComponentProps<typeof DialogPrimi
|
|
|
104
127
|
* @description Renders an accessible description for the dialog
|
|
105
128
|
*/
|
|
106
129
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
107
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
108
|
-
export type { DialogContentProps, DialogDescriptionProps, DialogTitleProps, DialogTriggerProps, };
|
|
130
|
+
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
131
|
+
export type { DialogBodyProps, DialogContentProps, DialogDescriptionProps, DialogTitleProps, DialogTriggerProps, };
|
|
109
132
|
//# sourceMappingURL=dialog.d.ts.map
|
package/dist/dialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAI1D,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE;;;GAGG;AACH,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAGpC;;GAEG;AACH,UAAU,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CACvD,OAAO,eAAe,CAAC,OAAO,CAC/B;IACC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,QAAA,MAAM,aAAa,2GAUjB,CAAC;AAGH;;;GAGG;AACH,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,MAAM,CAAC,qBAErD;kBAJQ,YAAY;;;AAOrB;;;GAGG;AACH,QAAA,MAAM,WAAW,kKAKf,CAAC;AAGH;;;GAGG;AACH,QAAA,MAAM,aAAa,8JAajB,CAAC;AAqBH;;GAEG;AACH,UAAU,kBAAmB,SA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BAAsB,EACtB,gBAAgB,EAChB,kBAAkB,GACnB,CAAC"}
|
package/dist/dialog.js
CHANGED
|
@@ -1,92 +1,107 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
2
|
+
import * as i from "react";
|
|
3
3
|
import { X as u } from "@brightlocal/icons";
|
|
4
4
|
import { cn as r } from "@brightlocal/ui-components/lib/utils";
|
|
5
|
-
import { jsx as
|
|
5
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
6
6
|
import { useOverlayPointerLock as v } from "@brightlocal/ui-components/hooks/use-overlay-pointer-lock";
|
|
7
|
-
import * as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
import * as l from "@radix-ui/react-dialog";
|
|
8
|
+
import { ScrollArea as x } from "@brightlocal/ui-components/scroll-area";
|
|
9
|
+
var y = l.Root;
|
|
10
|
+
y.displayName = "Dialog";
|
|
11
|
+
var D = i.forwardRef(({ dataHook: a, ...e }, o) => /* @__PURE__ */ t(l.Trigger, {
|
|
12
|
+
ref: o,
|
|
12
13
|
"data-slot": "dialog-trigger",
|
|
13
14
|
...a != null && { "data-hook": a },
|
|
14
15
|
...e
|
|
15
16
|
}));
|
|
16
|
-
|
|
17
|
-
function
|
|
18
|
-
return /* @__PURE__ */
|
|
17
|
+
D.displayName = "DialogTrigger";
|
|
18
|
+
function g({ ...a }) {
|
|
19
|
+
return /* @__PURE__ */ t(l.Portal, { ...a });
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
var
|
|
21
|
+
g.displayName = "DialogPortal";
|
|
22
|
+
var N = i.forwardRef(({ ...a }, e) => /* @__PURE__ */ t(l.Close, {
|
|
22
23
|
ref: e,
|
|
23
24
|
"data-slot": "dialog-close",
|
|
24
25
|
...a
|
|
25
26
|
}));
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
ref:
|
|
27
|
+
N.displayName = "DialogClose";
|
|
28
|
+
var m = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t(l.Overlay, {
|
|
29
|
+
ref: o,
|
|
29
30
|
className: r("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=open]:duration-slow fixed inset-0 z-50 bg-black/50 ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in", a),
|
|
30
31
|
"data-slot": "dialog-overlay",
|
|
31
32
|
...e
|
|
32
33
|
}));
|
|
33
|
-
|
|
34
|
-
var
|
|
34
|
+
m.displayName = "DialogOverlay";
|
|
35
|
+
var b = r("bg-background text-foreground border-card-border fixed inset-x-0 top-[50%] z-50 mx-auto w-min max-w-[min(64rem,100%-2rem)] min-w-[min(32rem,100%-2rem)] translate-y-[-50%] rounded-xl border p-8 shadow-lg", "flex max-h-[85svh] flex-col gap-8 overflow-y-auto", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=open]:duration-slow ease-out data-[state=closed]:duration-250 data-[state=closed]:ease-in"), h = i.forwardRef(({ className: a, children: e, dataHook: o, trackingEl: s, trackingLabel: d, closeLabel: c, ...f }, p) => (v(), /* @__PURE__ */ n(g, { children: [/* @__PURE__ */ t(m, {}), /* @__PURE__ */ n(l.Content, {
|
|
35
36
|
ref: p,
|
|
36
|
-
className: r(
|
|
37
|
-
"data-hook":
|
|
37
|
+
className: r(b, a),
|
|
38
|
+
"data-hook": o,
|
|
38
39
|
"data-slot": "dialog-content",
|
|
39
40
|
"data-tracking-el": s,
|
|
40
|
-
"data-tracking-label":
|
|
41
|
-
...
|
|
42
|
-
children: [e, /* @__PURE__ */
|
|
41
|
+
"data-tracking-label": d,
|
|
42
|
+
...f,
|
|
43
|
+
children: [e, /* @__PURE__ */ n(l.Close, {
|
|
43
44
|
className: "ring-offset-background focus-visible:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground duration-fast absolute top-8 right-8 rounded-xs opacity-70 outline-hidden transition-opacity ease-out hover:opacity-100 focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
45
|
+
children: [/* @__PURE__ */ t(u, {}), /* @__PURE__ */ t("span", {
|
|
45
46
|
className: "sr-only",
|
|
46
|
-
children:
|
|
47
|
+
children: c ?? "Close"
|
|
47
48
|
})]
|
|
48
49
|
})]
|
|
49
50
|
})] })));
|
|
50
|
-
|
|
51
|
-
var
|
|
52
|
-
ref:
|
|
51
|
+
h.displayName = "DialogContent";
|
|
52
|
+
var w = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t("div", {
|
|
53
|
+
ref: o,
|
|
53
54
|
className: r("flex flex-col gap-2 text-center sm:text-left", a),
|
|
54
55
|
"data-slot": "dialog-header",
|
|
55
56
|
...e
|
|
56
57
|
}));
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
ref:
|
|
58
|
+
w.displayName = "DialogHeader";
|
|
59
|
+
var k = i.forwardRef(({ className: a, children: e, dataHook: o, ...s }, d) => /* @__PURE__ */ t(x, {
|
|
60
|
+
ref: d,
|
|
61
|
+
className: r("-mx-8 flex min-h-0 flex-1 flex-col", "[&>[data-slot=scroll-area-viewport]]:focus-visible:shadow-[inset_0_0_0_var(--ds-spread-xs)_var(--color-outline)]", a),
|
|
62
|
+
"data-slot": "dialog-body",
|
|
63
|
+
dataHook: o ?? "dialog-body",
|
|
64
|
+
...s,
|
|
65
|
+
children: /* @__PURE__ */ t("div", {
|
|
66
|
+
className: "px-7",
|
|
67
|
+
"data-slot": "dialog-body-content",
|
|
68
|
+
children: e
|
|
69
|
+
})
|
|
70
|
+
}));
|
|
71
|
+
k.displayName = "DialogBody";
|
|
72
|
+
var R = i.forwardRef(({ className: a, ...e }, o) => /* @__PURE__ */ t("div", {
|
|
73
|
+
ref: o,
|
|
60
74
|
className: r("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", a),
|
|
61
75
|
"data-slot": "dialog-footer",
|
|
62
76
|
...e
|
|
63
77
|
}));
|
|
64
|
-
|
|
65
|
-
var
|
|
78
|
+
R.displayName = "DialogFooter";
|
|
79
|
+
var C = i.forwardRef(({ className: a, dataHook: e, ...o }, s) => /* @__PURE__ */ t(l.Title, {
|
|
66
80
|
ref: s,
|
|
67
81
|
className: r("text-heading-section", a),
|
|
68
82
|
"data-hook": e,
|
|
69
83
|
"data-slot": "dialog-title",
|
|
70
|
-
...
|
|
84
|
+
...o
|
|
71
85
|
}));
|
|
72
|
-
|
|
73
|
-
var
|
|
86
|
+
C.displayName = "DialogTitle";
|
|
87
|
+
var _ = i.forwardRef(({ className: a, dataHook: e, ...o }, s) => /* @__PURE__ */ t(l.Description, {
|
|
74
88
|
ref: s,
|
|
75
89
|
className: r("text-body-sm text-muted-foreground", a),
|
|
76
90
|
"data-hook": e,
|
|
77
91
|
"data-slot": "dialog-description",
|
|
78
|
-
...
|
|
92
|
+
...o
|
|
79
93
|
}));
|
|
80
|
-
|
|
94
|
+
_.displayName = "DialogDescription";
|
|
81
95
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
N as
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
96
|
+
y as Dialog,
|
|
97
|
+
k as DialogBody,
|
|
98
|
+
N as DialogClose,
|
|
99
|
+
h as DialogContent,
|
|
100
|
+
_ as DialogDescription,
|
|
101
|
+
R as DialogFooter,
|
|
102
|
+
w as DialogHeader,
|
|
103
|
+
m as DialogOverlay,
|
|
104
|
+
g as DialogPortal,
|
|
105
|
+
C as DialogTitle,
|
|
106
|
+
D as DialogTrigger
|
|
92
107
|
};
|
package/dist/drawer.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";const
|
|
1
|
+
"use client";const N=require("./_virtual/_rolldown/runtime.cjs");let o=require("react");o=N.__toESM(o,1);let d=require("@brightlocal/ui-components/lib/utils"),a=require("react/jsx-runtime"),t=require("vaul");function n({...r}){return(0,a.jsx)(t.Drawer.Root,{"data-slot":"drawer",...r})}n.displayName="Drawer";function s({...r}){return(0,a.jsx)(t.Drawer.Trigger,{"data-slot":"drawer-trigger",...r})}s.displayName="DrawerTrigger";function i({...r}){return(0,a.jsx)(t.Drawer.Portal,{...r})}i.displayName="DrawerPortal";function w({...r}){return(0,a.jsx)(t.Drawer.Close,{"data-slot":"drawer-close",...r})}w.displayName="DrawerClose";function l({className:r,...e}){return(0,a.jsx)(t.Drawer.Overlay,{className:(0,d.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",r),"data-slot":"drawer-overlay",...e})}l.displayName="DrawerOverlay";var c=o.forwardRef(({className:r,children:e,dataHook:f,trackingEl:p,trackingLabel:g,fullHeight:h,...b},y)=>(0,a.jsxs)(i,{children:[(0,a.jsx)(l,{}),(0,a.jsxs)(t.Drawer.Content,{ref:y,className:(0,d.cn)("group/drawer-content bg-background border-border fixed z-50 flex h-auto flex-col","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:rounded-b-[10px] data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:rounded-t-[10px] data-[vaul-drawer-direction=bottom]:border-t",h?"data-[vaul-drawer-direction=bottom]:max-h-[100svh] data-[vaul-drawer-direction=top]:max-h-[100svh]":"data-[vaul-drawer-direction=bottom]:max-h-[80svh] data-[vaul-drawer-direction=top]:max-h-[80svh]","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",r),"data-hook":f,"data-slot":"drawer-content","data-tracking-el":p,"data-tracking-label":g,...b,children:[(0,a.jsx)("div",{className:"bg-muted mx-auto mt-4 hidden h-2 w-[120px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),e]})]}));c.displayName="DrawerContent";function u({className:r,...e}){return(0,a.jsx)("div",{className:(0,d.cn)("flex w-full shrink-0 flex-col gap-1.5 p-4 text-center sm:text-left",r),"data-slot":"drawer-header",...e})}u.displayName="DrawerHeader";function m({className:r,...e}){return(0,a.jsx)("div",{className:(0,d.cn)("min-h-0 w-full flex-1 overflow-x-hidden overflow-y-auto px-4","mt-4 group-has-[[data-slot=drawer-header]]/drawer-content:mt-0",r),"data-slot":"drawer-body",...e})}m.displayName="DrawerBody";function D({className:r,...e}){return(0,a.jsx)("div",{className:(0,d.cn)("mt-auto flex w-full shrink-0 flex-col gap-2 p-4",r),"data-slot":"drawer-footer",...e})}D.displayName="DrawerFooter";function x({className:r,...e}){return(0,a.jsx)(t.Drawer.Title,{className:(0,d.cn)("text-foreground text-heading-section",r),"data-slot":"drawer-title",...e})}x.displayName="DrawerTitle";function v({className:r,...e}){return(0,a.jsx)(t.Drawer.Description,{className:(0,d.cn)("text-body-sm text-muted-foreground",r),"data-slot":"drawer-description",...e})}v.displayName="DrawerDescription";exports.Drawer=n;exports.DrawerBody=m;exports.DrawerClose=w;exports.DrawerContent=c;exports.DrawerDescription=v;exports.DrawerFooter=D;exports.DrawerHeader=u;exports.DrawerOverlay=l;exports.DrawerPortal=i;exports.DrawerTitle=x;exports.DrawerTrigger=s;
|
package/dist/drawer.d.ts
CHANGED
|
@@ -60,15 +60,19 @@ type DrawerContentProps = React.ComponentProps<typeof DrawerPrimitive.Content> &
|
|
|
60
60
|
* Tracking label for analytics context
|
|
61
61
|
*/
|
|
62
62
|
trackingLabel?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Expand the drawer to the full viewport height (100svh) instead of the
|
|
65
|
+
* default 80svh cap. Use for mobile filter sheets or other tall content
|
|
66
|
+
* that needs the entire screen.
|
|
67
|
+
* @default false
|
|
68
|
+
*/
|
|
69
|
+
fullHeight?: boolean;
|
|
63
70
|
};
|
|
64
71
|
/**
|
|
65
72
|
* DrawerContent - The main drawer content container
|
|
66
73
|
* @description Contains the drawer's content including header, body, and footer
|
|
67
74
|
*/
|
|
68
|
-
declare
|
|
69
|
-
declare namespace DrawerContent {
|
|
70
|
-
var displayName: string;
|
|
71
|
-
}
|
|
75
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
72
76
|
/**
|
|
73
77
|
* DrawerHeader - Container for drawer title and description.
|
|
74
78
|
* @description Groups the title and description at the top of the drawer
|
package/dist/drawer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAC;AAIjD;;GAEG;AACH,KAAK,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAErE;;;GAGG;AACH,iBAAS,MAAM,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,qBAExC;kBAFQ,MAAM;;;AAKf;;;GAGG;AACH,iBAAS,aAAa,CAAC,EACrB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,qBAEtD;kBA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