@kushagradhawan/kookie-ui 0.1.25 → 0.1.26
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/components.css +18 -6
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/components/index.js.map +3 -3
- package/dist/cjs/components/user-card.d.ts +12 -0
- package/dist/cjs/components/user-card.d.ts.map +1 -0
- package/dist/cjs/components/user-card.js +2 -0
- package/dist/cjs/components/user-card.js.map +7 -0
- package/dist/cjs/components/user-card.props.d.ts +63 -0
- package/dist/cjs/components/user-card.props.d.ts.map +1 -0
- package/dist/cjs/components/user-card.props.js +2 -0
- package/dist/cjs/components/user-card.props.js.map +7 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/components/index.js.map +3 -3
- package/dist/esm/components/user-card.d.ts +12 -0
- package/dist/esm/components/user-card.d.ts.map +1 -0
- package/dist/esm/components/user-card.js +2 -0
- package/dist/esm/components/user-card.js.map +7 -0
- package/dist/esm/components/user-card.props.d.ts +63 -0
- package/dist/esm/components/user-card.props.d.ts.map +1 -0
- package/dist/esm/components/user-card.props.js +2 -0
- package/dist/esm/components/user-card.props.js.map +7 -0
- package/package.json +1 -1
- package/src/components/_internal/base-menu.css +5 -5
- package/src/components/image.css +1 -1
- package/src/components/index.css +1 -0
- package/src/components/index.tsx +1 -0
- package/src/components/user-card.css +29 -0
- package/src/components/user-card.props.tsx +45 -0
- package/src/components/user-card.tsx +102 -0
- package/src/styles/tokens/transition.css +5 -5
- package/styles.css +23 -11
- package/tokens/base.css +5 -5
- package/tokens.css +5 -5
package/components.css
CHANGED
|
@@ -6182,7 +6182,7 @@
|
|
|
6182
6182
|
color: var(--gray-a8);
|
|
6183
6183
|
cursor: default;
|
|
6184
6184
|
}
|
|
6185
|
-
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
6185
|
+
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
6186
6186
|
color: var(--gray-a10);
|
|
6187
6187
|
}
|
|
6188
6188
|
.rt-BaseMenuItem:where([data-disabled], [data-highlighted]) :where(.rt-BaseMenuShortcut), .rt-BaseMenuSubTrigger:where([data-state='open']) :where(.rt-BaseMenuShortcut) {
|
|
@@ -6227,7 +6227,7 @@
|
|
|
6227
6227
|
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text) {
|
|
6228
6228
|
color: inherit !important;
|
|
6229
6229
|
}
|
|
6230
|
-
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']) {
|
|
6230
|
+
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
6231
6231
|
color: inherit !important;
|
|
6232
6232
|
}
|
|
6233
6233
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) {
|
|
@@ -6240,7 +6240,7 @@
|
|
|
6240
6240
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text) {
|
|
6241
6241
|
color: inherit !important;
|
|
6242
6242
|
}
|
|
6243
|
-
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']) {
|
|
6243
|
+
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
6244
6244
|
color: inherit !important;
|
|
6245
6245
|
}
|
|
6246
6246
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) {
|
|
@@ -6250,7 +6250,7 @@
|
|
|
6250
6250
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where(.rt-Text) {
|
|
6251
6251
|
color: inherit !important;
|
|
6252
6252
|
}
|
|
6253
|
-
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where([data-accent-color='gray']) {
|
|
6253
|
+
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
6254
6254
|
color: inherit !important;
|
|
6255
6255
|
}
|
|
6256
6256
|
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuSubTrigger) {
|
|
@@ -6297,7 +6297,7 @@
|
|
|
6297
6297
|
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]):where([data-panel-background='translucent']) {
|
|
6298
6298
|
background-color: var(--accent-a4);
|
|
6299
6299
|
}
|
|
6300
|
-
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
6300
|
+
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
6301
6301
|
color: var(--gray-11) !important;
|
|
6302
6302
|
}
|
|
6303
6303
|
.rt-ContextMenuContent {
|
|
@@ -7795,7 +7795,7 @@
|
|
|
7795
7795
|
display: block;
|
|
7796
7796
|
object-fit: var(--object-fit);
|
|
7797
7797
|
box-shadow: var(--box-shadow);
|
|
7798
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
7798
|
+
border-radius: max(var(--radius-4), min(var(--radius-full), var(--radius-6)));
|
|
7799
7799
|
transition: var(--transition-button);
|
|
7800
7800
|
}
|
|
7801
7801
|
.rt-Image:where(:any-link, button, label) {
|
|
@@ -15408,6 +15408,18 @@
|
|
|
15408
15408
|
.rt-TooltipArrow {
|
|
15409
15409
|
fill: var(--gray-12);
|
|
15410
15410
|
}
|
|
15411
|
+
.rt-UserCard:where(.rt-r-size-1) :where(.rt-Flex) {
|
|
15412
|
+
gap: var(--space-2);
|
|
15413
|
+
}
|
|
15414
|
+
.rt-UserCard:where(.rt-r-size-2) :where(.rt-Flex) {
|
|
15415
|
+
gap: var(--space-3);
|
|
15416
|
+
}
|
|
15417
|
+
.rt-UserCard:where(.rt-r-size-3) :where(.rt-Flex) {
|
|
15418
|
+
gap: var(--space-4);
|
|
15419
|
+
}
|
|
15420
|
+
.rt-UserCard:where(.rt-r-size-4) :where(.rt-Flex) {
|
|
15421
|
+
gap: var(--space-5);
|
|
15422
|
+
}
|
|
15411
15423
|
.radix-themes:where([data-is-root-theme='true']) {
|
|
15412
15424
|
position: relative;
|
|
15413
15425
|
z-index: 0;
|
|
@@ -58,6 +58,7 @@ export { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.j
|
|
|
58
58
|
export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
|
|
59
59
|
export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
|
|
60
60
|
export { Tooltip, type TooltipProps } from './tooltip.js';
|
|
61
|
+
export { UserCard, type UserCardProps } from './user-card.js';
|
|
61
62
|
export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
|
|
62
63
|
export * as Sidebar from './sidebar.js';
|
|
63
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","source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,YAAY,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var _=Object.create;var m=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var oo=Object.getOwnPropertyNames;var ro=Object.getPrototypeOf,eo=Object.prototype.hasOwnProperty;var to=(r,e)=>{for(var t in e)m(r,t,{get:e[t],enumerable:!0})},n=(r,e,t,f)=>{if(e&&typeof e=="object"||typeof e=="function")for(let x of oo(e))!eo.call(r,x)&&x!==t&&m(r,x,{get:()=>e[x],enumerable:!(f=$(e,x))||f.enumerable});return r};var o=(r,e,t)=>(t=r!=null?_(ro(r)):{},n(e||!r||!r.__esModule?m(t,"default",{value:r,enumerable:!0}):t,r)),po=r=>n(m({},"__esModule",{value:!0}),r);var so={};to(so,{AccessibleIcon:()=>P.AccessibleIcon,AlertDialog:()=>xo,AspectRatio:()=>y.AspectRatio,Avatar:()=>i.Avatar,Badge:()=>l.Badge,Blockquote:()=>c.Blockquote,Box:()=>d.Box,Button:()=>C.Button,Callout:()=>mo,Card:()=>T.Card,Checkbox:()=>g.Checkbox,CheckboxCards:()=>ao,CheckboxGroup:()=>fo,ChevronDownIcon:()=>p.ChevronDownIcon,Code:()=>S.Code,Container:()=>u.Container,ContextMenu:()=>no,DataList:()=>Po,Dialog:()=>yo,DropdownMenu:()=>io,Em:()=>h.Em,Flex:()=>I.Flex,Grid:()=>k.Grid,Heading:()=>B.Heading,HoverCard:()=>lo,IconButton:()=>b.IconButton,Image:()=>A.Image,Inset:()=>R.Inset,Kbd:()=>v.Kbd,Link:()=>D.Link,Popover:()=>co,Portal:()=>H.Portal,Progress:()=>w.Progress,Quote:()=>G.Quote,Radio:()=>F.Radio,RadioCards:()=>Co,RadioGroup:()=>To,Reset:()=>L.Reset,ScrollArea:()=>q.ScrollArea,Section:()=>E.Section,SegmentedControl:()=>go,Select:()=>So,Separator:()=>K.Separator,Sidebar:()=>Bo,Skeleton:()=>M.Skeleton,Slider:()=>Q.Slider,Slot:()=>a.Slot,Slottable:()=>a.Slottable,Spinner:()=>U.Spinner,Strong:()=>V.Strong,Switch:()=>z.Switch,TabNav:()=>uo,Table:()=>ho,Tabs:()=>Io,Text:()=>j.Text,TextArea:()=>N.TextArea,TextField:()=>ko,Theme:()=>s.Theme,ThemeContext:()=>s.ThemeContext,ThemePanel:()=>J.ThemePanel,ThickCheckIcon:()=>p.ThickCheckIcon,ThickChevronRightIcon:()=>p.ThickChevronRightIcon,ThickDividerHorizontalIcon:()=>p.ThickDividerHorizontalIcon,ToggleButton:()=>O.ToggleButton,ToggleIconButton:()=>W.ToggleIconButton,Tooltip:()=>X.Tooltip,UserCard:()=>Y.UserCard,VisuallyHidden:()=>Z.VisuallyHidden,useThemeContext:()=>s.useThemeContext});module.exports=po(so);var P=require("./accessible-icon.js"),xo=o(require("./alert-dialog.js")),y=require("./aspect-ratio.js"),i=require("./avatar.js"),l=require("./badge.js"),c=require("./blockquote.js"),d=require("./box.js"),C=require("./button.js"),mo=o(require("./callout.js")),T=require("./card.js"),ao=o(require("./checkbox-cards.js")),fo=o(require("./checkbox-group.js")),g=require("./checkbox.js"),S=require("./code.js"),u=require("./container.js"),no=o(require("./context-menu.js")),Po=o(require("./data-list.js")),yo=o(require("./dialog.js")),io=o(require("./dropdown-menu.js")),h=require("./em.js"),I=require("./flex.js"),k=require("./grid.js"),B=require("./heading.js"),lo=o(require("./hover-card.js")),b=require("./icon-button.js"),p=require("./icons.js"),A=require("./image.js"),R=require("./inset.js"),v=require("./kbd.js"),D=require("./link.js"),co=o(require("./popover.js")),H=require("./portal.js"),w=require("./progress.js"),G=require("./quote.js"),Co=o(require("./radio-cards.js")),To=o(require("./radio-group.js")),F=require("./radio.js"),L=require("./reset.js"),q=require("./scroll-area.js"),go=o(require("./segmented-control.js")),E=require("./section.js"),So=o(require("./select.js")),K=require("./separator.js"),M=require("./skeleton.js"),Q=require("./slider.js"),a=require("./slot.js"),U=require("./spinner.js"),V=require("./strong.js"),z=require("./switch.js"),uo=o(require("./tab-nav.js")),ho=o(require("./table.js")),Io=o(require("./tabs.js")),N=require("./text-area.js"),ko=o(require("./text-field.js")),j=require("./text.js"),J=require("./theme-panel.js"),s=require("./theme.js"),O=require("./toggle-button.js"),W=require("./toggle-icon-button.js"),X=require("./tooltip.js"),Y=require("./user-card.js"),Z=require("./visually-hidden.js"),Bo=o(require("./sidebar.js"));
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/index.tsx"],
|
|
4
|
-
"sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\nexport * as Sidebar from './sidebar.js';\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["components_exports", "__export", "AlertDialog", "Callout", "CheckboxCards", "CheckboxGroup", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "HoverCard", "Popover", "RadioCards", "RadioGroup", "SegmentedControl", "Select", "Sidebar", "TabNav", "Table", "Tabs", "TextField", "__toCommonJS", "import_accessible_icon", "import_aspect_ratio", "import_avatar", "import_badge", "import_blockquote", "import_box", "import_button", "import_card", "import_checkbox", "import_code", "import_container", "import_em", "import_flex", "import_grid", "import_heading", "import_icon_button", "import_icons", "import_image", "import_inset", "import_kbd", "import_link", "import_portal", "import_progress", "import_quote", "import_radio", "import_reset", "import_scroll_area", "import_section", "import_separator", "import_skeleton", "import_slider", "import_slot", "import_spinner", "import_strong", "import_switch", "import_text_area", "import_text", "import_theme_panel", "import_theme", "import_toggle_button", "import_toggle_icon_button", "import_tooltip", "import_visually_hidden"]
|
|
4
|
+
"sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { UserCard, type UserCardProps } from './user-card.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\nexport * as Sidebar from './sidebar.js';\n"],
|
|
5
|
+
"mappings": "kkBAAA,IAAAA,GAAA,GAAAC,GAAAD,GAAA,qDAAAE,GAAA,8IAAAC,GAAA,0DAAAC,GAAA,kBAAAC,GAAA,gGAAAC,GAAA,aAAAC,GAAA,WAAAC,GAAA,iBAAAC,GAAA,gFAAAC,GAAA,0GAAAC,GAAA,+FAAAC,GAAA,eAAAC,GAAA,yFAAAC,GAAA,WAAAC,GAAA,sCAAAC,GAAA,+JAAAC,GAAA,UAAAC,GAAA,SAAAC,GAAA,sDAAAC,GAAA,ibAAAC,GAAArB,IAAA,IAAAsB,EAAyD,gCACzDpB,GAA6B,gCAC7BqB,EAAmD,6BACnDC,EAAyC,uBACzCC,EAAuC,sBACvCC,EAAiD,2BACjDC,EAAmC,oBACnCC,EAAyC,uBACzCzB,GAAyB,2BACzB0B,EAAqC,qBACrCzB,GAA+B,kCAC/BC,GAA+B,kCAC/ByB,EAA6C,yBAC7CC,EAAqC,qBACrCC,EAA+C,0BAC/C1B,GAA6B,gCAC7BC,GAA0B,6BAC1BC,GAAwB,0BACxBC,GAA8B,iCAC9BwB,EAAiC,mBACjCC,EAAqC,qBACrCC,EAAqC,qBACrCC,EAA2C,wBAC3C1B,GAA2B,8BAC3B2B,EAAiD,4BACjDC,EAMO,sBACPC,EAAuC,sBACvCC,EAAuC,sBACvCC,EAAmC,oBACnCC,EAAqC,qBACrC/B,GAAyB,2BACzBgC,EAAyC,uBACzCC,EAA6C,yBAC7CC,EAAuC,sBACvCjC,GAA4B,+BAC5BC,GAA4B,+BAC5BiC,EAAuC,sBACvCC,EAAuC,sBACvCC,EAAiD,4BACjDlC,GAAkC,qCAClCmC,EAA2C,wBAC3ClC,GAAwB,0BACxBmC,EAA+C,0BAC/CC,EAA6C,yBAC7CC,EAAyC,uBACzCC,EAAgC,qBAChCC,EAA2C,wBAC3CC,EAAyC,uBACzCC,EAAyC,uBACzCvC,GAAwB,2BACxBC,GAAuB,yBACvBC,GAAsB,wBACtBsC,EAA6C,0BAC7CrC,GAA2B,8BAC3BsC,EAAqC,qBACrCC,EAAiD,4BACjDC,EAAsE,sBACtEC,EAAqD,8BACrDC,EAA6D,mCAC7DC,EAA2C,wBAC3CC,EAA6C,0BAC7CC,EAAyD,gCACzDjD,GAAyB",
|
|
6
|
+
"names": ["components_exports", "__export", "AlertDialog", "Callout", "CheckboxCards", "CheckboxGroup", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "HoverCard", "Popover", "RadioCards", "RadioGroup", "SegmentedControl", "Select", "Sidebar", "TabNav", "Table", "Tabs", "TextField", "__toCommonJS", "import_accessible_icon", "import_aspect_ratio", "import_avatar", "import_badge", "import_blockquote", "import_box", "import_button", "import_card", "import_checkbox", "import_code", "import_container", "import_em", "import_flex", "import_grid", "import_heading", "import_icon_button", "import_icons", "import_image", "import_inset", "import_kbd", "import_link", "import_portal", "import_progress", "import_quote", "import_radio", "import_reset", "import_scroll_area", "import_section", "import_separator", "import_skeleton", "import_slider", "import_slot", "import_spinner", "import_strong", "import_switch", "import_text_area", "import_text", "import_theme_panel", "import_theme", "import_toggle_button", "import_toggle_icon_button", "import_tooltip", "import_user_card", "import_visually_hidden"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { userCardPropDefs } from './user-card.props.js';
|
|
3
|
+
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
4
|
+
import type { MarginProps } from '../props/margin.props.js';
|
|
5
|
+
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
6
|
+
type UserCardOwnProps = GetPropDefTypes<typeof userCardPropDefs>;
|
|
7
|
+
interface UserCardProps extends ComponentPropsWithout<'div', RemovedProps>, MarginProps, UserCardOwnProps {
|
|
8
|
+
}
|
|
9
|
+
declare const UserCard: React.ForwardRefExoticComponent<UserCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { UserCard };
|
|
11
|
+
export type { UserCardProps };
|
|
12
|
+
//# sourceMappingURL=user-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-card.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAUxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,gBAAgB,GAAG,eAAe,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGjE,UAAU,aACR,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAChD,WAAW,EACX,gBAAgB;CAAG;AAEvB,QAAA,MAAM,QAAQ,sFAqEZ,CAAC;AAIH,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";"use client";var W=Object.create;var n=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var S=Object.getPrototypeOf,A=Object.prototype.hasOwnProperty;var V=(r,e)=>{for(var a in e)n(r,a,{get:e[a],enumerable:!0})},l=(r,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of O(e))!A.call(r,o)&&o!==a&&n(r,o,{get:()=>e[o],enumerable:!(s=G(e,o))||s.enumerable});return r};var f=(r,e,a)=>(a=r!=null?W(S(r)):{},l(e||!r||!r.__esModule?n(a,"default",{value:r,enumerable:!0}):a,r)),q=r=>l(n({},"__esModule",{value:!0}),r);var H={};V(H,{UserCard:()=>d});module.exports=q(H);var t=f(require("react")),u=f(require("classnames")),C=require("./user-card.props.js"),P=require("./avatar.js"),g=require("./card.js"),p=require("./text.js"),m=require("./flex.js"),y=require("../helpers/extract-props.js"),h=require("../helpers/get-subtree.js"),v=require("../props/margin.props.js"),x=require("./theme.js");const d=t.forwardRef((r,e)=>{const a=(0,x.useThemeContext)(),s=r.panelBackground??a.panelBackground,{asChild:o,children:z,className:U,src:k,fallback:T,name:B,description:c,avatarVariant:D,radius:w,color:M,panelBackground:I,flush:N,...b}=(0,y.extractProps)(r,C.userCardPropDefs,v.marginPropDefs),j={1:{avatar:"1",name:"1",description:"0"},2:{avatar:"2",name:"2",description:"1"},3:{avatar:"3",name:"3",description:"2"},4:{avatar:"4",name:"4",description:"3"}},E=r.size||"2",i=j[E],F=t.createElement(m.Flex,{align:"center",gap:"3"},t.createElement(P.Avatar,{size:i.avatar,variant:D,radius:w,src:k,fallback:T,color:M,highContrast:r.highContrast}),t.createElement(m.Flex,{direction:"column",gap:"0",style:{minWidth:0}},t.createElement(p.Text,{size:i.name,weight:"medium",truncate:!0},B),c&&t.createElement(p.Text,{size:i.description,color:"gray",truncate:!0},c)));return t.createElement(g.Card,{...b,asChild:o,size:r.size,variant:r.variant,panelBackground:s,flush:N,ref:e,className:(0,u.default)("rt-UserCard",U)},(0,h.getSubtree)({asChild:o,children:z},F))});d.displayName="UserCard";
|
|
2
|
+
//# sourceMappingURL=user-card.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/user-card.tsx"],
|
|
4
|
+
"sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { userCardPropDefs } from './user-card.props.js';\nimport { Avatar } from './avatar.js';\nimport { Card } from './card.js';\nimport { Text } from './text.js';\nimport { Flex } from './flex.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { getSubtree } from '../helpers/get-subtree.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { useThemeContext } from './theme.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype UserCardOwnProps = GetPropDefTypes<typeof userCardPropDefs>;\n\ntype UserCardElement = React.ElementRef<'div'>;\ninterface UserCardProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n MarginProps,\n UserCardOwnProps {}\n\nconst UserCard = React.forwardRef<UserCardElement, UserCardProps>((props, forwardedRef) => {\n const themeContext = useThemeContext();\n const resolvedPanelBackground = props.panelBackground ?? themeContext.panelBackground;\n\n const {\n asChild,\n children,\n className,\n src,\n fallback,\n name,\n description,\n avatarVariant,\n radius,\n color,\n panelBackground,\n flush,\n ...restProps\n } = extractProps(props, userCardPropDefs, marginPropDefs);\n\n // Size mappings for avatar and text\n const sizeMap = {\n '1': { avatar: '1', name: '1', description: '0' },\n '2': { avatar: '2', name: '2', description: '1' },\n '3': { avatar: '3', name: '3', description: '2' },\n '4': { avatar: '4', name: '4', description: '3' },\n } as const;\n\n const currentSize = props.size || '2';\n const sizes = sizeMap[currentSize as keyof typeof sizeMap];\n\n const content = (\n <Flex align=\"center\" gap=\"3\">\n <Avatar\n size={sizes.avatar as any}\n variant={avatarVariant}\n radius={radius}\n src={src}\n fallback={fallback!}\n color={color}\n highContrast={props.highContrast}\n />\n <Flex direction=\"column\" gap=\"0\" style={{ minWidth: 0 }}>\n <Text size={sizes.name as any} weight=\"medium\" truncate>\n {name}\n </Text>\n {description && (\n <Text size={sizes.description as any} color=\"gray\" truncate>\n {description}\n </Text>\n )}\n </Flex>\n </Flex>\n );\n\n return (\n <Card\n {...restProps}\n asChild={asChild}\n size={props.size}\n variant={props.variant}\n panelBackground={resolvedPanelBackground}\n flush={flush}\n ref={forwardedRef}\n className={classNames('rt-UserCard', className)}\n >\n {getSubtree({ asChild, children }, content)}\n </Card>\n );\n});\n\nUserCard.displayName = 'UserCard';\n\nexport { UserCard };\nexport type { UserCardProps };\n"],
|
|
5
|
+
"mappings": "ukBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAEA,IAAAI,EAAuB,oBACvBC,EAAuB,yBAEvBC,EAAiC,gCACjCC,EAAuB,uBACvBC,EAAqB,qBACrBC,EAAqB,qBACrBC,EAAqB,qBACrBC,EAA6B,uCAC7BC,EAA2B,qCAC3BC,EAA+B,oCAC/BC,EAAgC,sBAchC,MAAMZ,EAAWE,EAAM,WAA2C,CAACW,EAAOC,IAAiB,CACzF,MAAMC,KAAe,mBAAgB,EAC/BC,EAA0BH,EAAM,iBAAmBE,EAAa,gBAEhE,CACJ,QAAAE,EACA,SAAAC,EACA,UAAAC,EACA,IAAAC,EACA,SAAAC,EACA,KAAAC,EACA,YAAAC,EACA,cAAAC,EACA,OAAAC,EACA,MAAAC,EACA,gBAAAC,EACA,MAAAC,EACA,GAAGC,CACL,KAAI,gBAAahB,EAAO,mBAAkB,gBAAc,EAGlDiB,EAAU,CACd,EAAK,CAAE,OAAQ,IAAK,KAAM,IAAK,YAAa,GAAI,EAChD,EAAK,CAAE,OAAQ,IAAK,KAAM,IAAK,YAAa,GAAI,EAChD,EAAK,CAAE,OAAQ,IAAK,KAAM,IAAK,YAAa,GAAI,EAChD,EAAK,CAAE,OAAQ,IAAK,KAAM,IAAK,YAAa,GAAI,CAClD,EAEMC,EAAclB,EAAM,MAAQ,IAC5BmB,EAAQF,EAAQC,CAAmC,EAEnDE,EACJ/B,EAAA,cAAC,QAAK,MAAM,SAAS,IAAI,KACvBA,EAAA,cAAC,UACC,KAAM8B,EAAM,OACZ,QAASR,EACT,OAAQC,EACR,IAAKL,EACL,SAAUC,EACV,MAAOK,EACP,aAAcb,EAAM,aACtB,EACAX,EAAA,cAAC,QAAK,UAAU,SAAS,IAAI,IAAI,MAAO,CAAE,SAAU,CAAE,GACpDA,EAAA,cAAC,QAAK,KAAM8B,EAAM,KAAa,OAAO,SAAS,SAAQ,IACpDV,CACH,EACCC,GACCrB,EAAA,cAAC,QAAK,KAAM8B,EAAM,YAAoB,MAAM,OAAO,SAAQ,IACxDT,CACH,CAEJ,CACF,EAGF,OACErB,EAAA,cAAC,QACE,GAAG2B,EACJ,QAASZ,EACT,KAAMJ,EAAM,KACZ,QAASA,EAAM,QACf,gBAAiBG,EACjB,MAAOY,EACP,IAAKd,EACL,aAAW,EAAAoB,SAAW,cAAef,CAAS,MAE7C,cAAW,CAAE,QAAAF,EAAS,SAAAC,CAAS,EAAGe,CAAO,CAC5C,CAEJ,CAAC,EAEDjC,EAAS,YAAc",
|
|
6
|
+
"names": ["user_card_exports", "__export", "UserCard", "__toCommonJS", "React", "import_classnames", "import_user_card_props", "import_avatar", "import_card", "import_text", "import_flex", "import_extract_props", "import_get_subtree", "import_margin_props", "import_theme", "props", "forwardedRef", "themeContext", "resolvedPanelBackground", "asChild", "children", "className", "src", "fallback", "name", "description", "avatarVariant", "radius", "color", "panelBackground", "flush", "restProps", "sizeMap", "currentSize", "sizes", "content", "classNames"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const userCardPropDefs: {
|
|
2
|
+
panelBackground: {
|
|
3
|
+
type: "enum";
|
|
4
|
+
values: readonly ["solid", "translucent"];
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
flush: {
|
|
8
|
+
type: "boolean";
|
|
9
|
+
default: false;
|
|
10
|
+
};
|
|
11
|
+
highContrast: {
|
|
12
|
+
type: "boolean";
|
|
13
|
+
className: string;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
color: {
|
|
17
|
+
type: "enum";
|
|
18
|
+
values: readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"];
|
|
19
|
+
default: "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky";
|
|
20
|
+
};
|
|
21
|
+
radius: {
|
|
22
|
+
type: "enum";
|
|
23
|
+
values: readonly ["none", "small", "medium", "large", "full"];
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: "enum";
|
|
28
|
+
className: string;
|
|
29
|
+
values: readonly ["1", "2", "3", "4"];
|
|
30
|
+
default: "2";
|
|
31
|
+
responsive: true;
|
|
32
|
+
};
|
|
33
|
+
variant: {
|
|
34
|
+
type: "enum";
|
|
35
|
+
className: string;
|
|
36
|
+
values: readonly ["ghost", "surface", "classic"];
|
|
37
|
+
default: "surface";
|
|
38
|
+
};
|
|
39
|
+
src: {
|
|
40
|
+
type: "string";
|
|
41
|
+
};
|
|
42
|
+
fallback: {
|
|
43
|
+
type: "ReactNode";
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
type: "string";
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
description: {
|
|
51
|
+
type: "string";
|
|
52
|
+
};
|
|
53
|
+
avatarVariant: {
|
|
54
|
+
type: "enum";
|
|
55
|
+
values: readonly ["solid", "soft", "surface", "outline"];
|
|
56
|
+
default: "soft";
|
|
57
|
+
};
|
|
58
|
+
asChild: {
|
|
59
|
+
type: "boolean";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export { userCardPropDefs };
|
|
63
|
+
//# sourceMappingURL=user-card.props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-card.props.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.props.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(r,e)=>{for(var t in e)s(r,t,{get:e[t],enumerable:!0})},D=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of l(e))!d.call(r,a)&&a!==t&&s(r,a,{get:()=>e[a],enumerable:!(o=c(e,a))||o.enumerable});return r};var P=r=>D(s({},"__esModule",{value:!0}),r);var h={};m(h,{userCardPropDefs:()=>u});module.exports=P(h);var n=require("../props/as-child.prop.js"),p=require("../props/color.prop.js"),f=require("../props/high-contrast.prop.js"),i=require("../props/radius.prop.js");const v=["1","2","3","4"],y=["ghost","surface","classic"],g=["solid","soft","surface","outline"],b=["solid","translucent"],u={...n.asChildPropDef,size:{type:"enum",className:"rt-r-size",values:v,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:y,default:"surface"},src:{type:"string"},fallback:{type:"ReactNode",required:!0},name:{type:"string",required:!0},description:{type:"string"},avatarVariant:{type:"enum",values:g,default:"soft"},...i.radiusPropDef,...p.accentColorPropDef,...f.highContrastPropDef,panelBackground:{type:"enum",values:b,default:void 0},flush:{type:"boolean",default:!1}};
|
|
2
|
+
//# sourceMappingURL=user-card.props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/user-card.props.tsx"],
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { highContrastPropDef } from '../props/high-contrast.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['ghost', 'surface', 'classic'] as const;\nconst avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst userCardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n\n // Content props\n src: { type: 'string' },\n fallback: { type: 'ReactNode', required: true },\n name: { type: 'string', required: true },\n description: { type: 'string' },\n\n // Avatar styling\n avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },\n ...radiusPropDef,\n\n // Card styling\n ...accentColorPropDef,\n ...highContrastPropDef,\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n flush: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n src: PropDef<string>;\n fallback: PropDef<React.ReactNode>;\n name: PropDef<string>;\n description: PropDef<string>;\n avatarVariant: PropDef<(typeof avatarVariants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n flush: PropDef<boolean>;\n};\n\nexport { userCardPropDefs };\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA+B,qCAC/BC,EAAmC,kCACnCC,EAAoC,0CACpCC,EAA8B,mCAI9B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,QAAS,UAAW,SAAS,EACzCC,EAAiB,CAAC,QAAS,OAAQ,UAAW,SAAS,EACvDC,EAAmB,CAAC,QAAS,aAAa,EAE1CT,EAAmB,CACvB,GAAG,iBACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQM,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EAGvF,IAAK,CAAE,KAAM,QAAS,EACtB,SAAU,CAAE,KAAM,YAAa,SAAU,EAAK,EAC9C,KAAM,CAAE,KAAM,SAAU,SAAU,EAAK,EACvC,YAAa,CAAE,KAAM,QAAS,EAG9B,cAAe,CAAE,KAAM,OAAQ,OAAQC,EAAgB,QAAS,MAAO,EACvE,GAAG,gBAGH,GAAG,qBACH,GAAG,sBACH,gBAAiB,CAAE,KAAM,OAAQ,OAAQC,EAAkB,QAAS,MAAU,EAC9E,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,CAC3C",
|
|
6
|
+
"names": ["user_card_props_exports", "__export", "userCardPropDefs", "__toCommonJS", "import_as_child_prop", "import_color_prop", "import_high_contrast_prop", "import_radius_prop", "sizes", "variants", "avatarVariants", "panelBackgrounds"]
|
|
7
|
+
}
|
|
@@ -58,6 +58,7 @@ export { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.j
|
|
|
58
58
|
export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
|
|
59
59
|
export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
|
|
60
60
|
export { Tooltip, type TooltipProps } from './tooltip.js';
|
|
61
|
+
export { UserCard, type UserCardProps } from './user-card.js';
|
|
61
62
|
export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
|
|
62
63
|
export * as Sidebar from './sidebar.js';
|
|
63
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,WA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AAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{AccessibleIcon as e}from"./accessible-icon.js";import*as t from"./alert-dialog.js";import{AspectRatio as s}from"./aspect-ratio.js";import{Avatar as m}from"./avatar.js";import{Badge as f}from"./badge.js";import{Blockquote as P}from"./blockquote.js";import{Box as i}from"./box.js";import{Button as c}from"./button.js";import*as d from"./callout.js";import{Card as
|
|
1
|
+
import{AccessibleIcon as e}from"./accessible-icon.js";import*as t from"./alert-dialog.js";import{AspectRatio as s}from"./aspect-ratio.js";import{Avatar as m}from"./avatar.js";import{Badge as f}from"./badge.js";import{Blockquote as P}from"./blockquote.js";import{Box as i}from"./box.js";import{Button as c}from"./button.js";import*as d from"./callout.js";import{Card as T}from"./card.js";import*as g from"./checkbox-cards.js";import*as S from"./checkbox-group.js";import{Checkbox as h}from"./checkbox.js";import{Code as k}from"./code.js";import{Container as b}from"./container.js";import*as A from"./context-menu.js";import*as R from"./data-list.js";import*as v from"./dialog.js";import*as D from"./dropdown-menu.js";import{Em as w}from"./em.js";import{Flex as F}from"./flex.js";import{Grid as q}from"./grid.js";import{Heading as K}from"./heading.js";import*as M from"./hover-card.js";import{IconButton as U}from"./icon-button.js";import{ChevronDownIcon as z,ThickCheckIcon as N,ThickChevronRightIcon as j,ThickDividerHorizontalIcon as J}from"./icons.js";import{Image as W}from"./image.js";import{Inset as Y}from"./inset.js";import{Kbd as _}from"./kbd.js";import{Link as oo}from"./link.js";import*as ro from"./popover.js";import{Portal as to}from"./portal.js";import{Progress as so}from"./progress.js";import{Quote as mo}from"./quote.js";import*as ao from"./radio-cards.js";import*as fo from"./radio-group.js";import{Radio as Po}from"./radio.js";import{Reset as io}from"./reset.js";import{ScrollArea as co}from"./scroll-area.js";import*as Co from"./segmented-control.js";import{Section as go}from"./section.js";import*as So from"./select.js";import{Separator as ho}from"./separator.js";import{Skeleton as ko}from"./skeleton.js";import{Slider as bo}from"./slider.js";import{Slot as Ro,Slottable as vo}from"./slot.js";import{Spinner as Ho}from"./spinner.js";import{Strong as Go}from"./strong.js";import{Switch as Lo}from"./switch.js";import*as qo from"./tab-nav.js";import*as Eo from"./table.js";import*as Ko from"./tabs.js";import{TextArea as Qo}from"./text-area.js";import*as Uo from"./text-field.js";import{Text as zo}from"./text.js";import{ThemePanel as jo}from"./theme-panel.js";import{Theme as Oo,ThemeContext as Wo,useThemeContext as Xo}from"./theme.js";import{ToggleButton as Zo}from"./toggle-button.js";import{ToggleIconButton as $o}from"./toggle-icon-button.js";import{Tooltip as rr}from"./tooltip.js";import{UserCard as tr}from"./user-card.js";import{VisuallyHidden as sr}from"./visually-hidden.js";import*as xr from"./sidebar.js";export{e as AccessibleIcon,t as AlertDialog,s as AspectRatio,m as Avatar,f as Badge,P as Blockquote,i as Box,c as Button,d as Callout,T as Card,h as Checkbox,g as CheckboxCards,S as CheckboxGroup,z as ChevronDownIcon,k as Code,b as Container,A as ContextMenu,R as DataList,v as Dialog,D as DropdownMenu,w as Em,F as Flex,q as Grid,K as Heading,M as HoverCard,U as IconButton,W as Image,Y as Inset,_ as Kbd,oo as Link,ro as Popover,to as Portal,so as Progress,mo as Quote,Po as Radio,ao as RadioCards,fo as RadioGroup,io as Reset,co as ScrollArea,go as Section,Co as SegmentedControl,So as Select,ho as Separator,xr as Sidebar,ko as Skeleton,bo as Slider,Ro as Slot,vo as Slottable,Ho as Spinner,Go as Strong,Lo as Switch,qo as TabNav,Eo as Table,Ko as Tabs,zo as Text,Qo as TextArea,Uo as TextField,Oo as Theme,Wo as ThemeContext,jo as ThemePanel,N as ThickCheckIcon,j as ThickChevronRightIcon,J as ThickDividerHorizontalIcon,Zo as ToggleButton,$o as ToggleIconButton,rr as Tooltip,tr as UserCard,sr as VisuallyHidden,Xo as useThemeContext};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/components/index.tsx"],
|
|
4
|
-
"sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\nexport * as Sidebar from './sidebar.js';\n"],
|
|
5
|
-
"mappings": "AAAA,OAAS,kBAAAA,MAAgD,uBACzD,UAAYC,MAAiB,oBAC7B,OAAS,eAAAC,MAA0C,oBACnD,OAAS,UAAAC,MAAgC,cACzC,OAAS,SAAAC,MAA8B,aACvC,OAAS,cAAAC,MAAwC,kBACjD,OAAS,OAAAC,MAA0B,WACnC,OAAS,UAAAC,MAAgC,cACzC,UAAYC,MAAa,eACzB,OAAS,QAAAC,MAA4B,YACrC,UAAYC,MAAmB,sBAC/B,UAAYC,MAAmB,sBA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AC,OAA4C,qBACrD,OAAS,oBAAAC,OAAoD,0BAC7D,OAAS,WAAAC,OAAkC,eAC3C,OAAS,kBAAAC,OAAgD,uBACzD,UAAYC,OAAa",
|
|
6
|
-
"names": ["AccessibleIcon", "AlertDialog", "AspectRatio", "Avatar", "Badge", "Blockquote", "Box", "Button", "Callout", "Card", "CheckboxCards", "CheckboxGroup", "Checkbox", "Code", "Container", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "Em", "Flex", "Grid", "Heading", "HoverCard", "IconButton", "ChevronDownIcon", "ThickCheckIcon", "ThickChevronRightIcon", "ThickDividerHorizontalIcon", "Image", "Inset", "Kbd", "Link", "Popover", "Portal", "Progress", "Quote", "RadioCards", "RadioGroup", "Radio", "Reset", "ScrollArea", "SegmentedControl", "Section", "Select", "Separator", "Skeleton", "Slider", "Slot", "Slottable", "Spinner", "Strong", "Switch", "TabNav", "Table", "Tabs", "TextArea", "TextField", "Text", "ThemePanel", "Theme", "ThemeContext", "useThemeContext", "ToggleButton", "ToggleIconButton", "Tooltip", "VisuallyHidden", "Sidebar"]
|
|
4
|
+
"sourcesContent": ["export { AccessibleIcon, type AccessibleIconProps } from './accessible-icon.js';\nexport * as AlertDialog from './alert-dialog.js';\nexport { AspectRatio, type AspectRatioProps } from './aspect-ratio.js';\nexport { Avatar, type AvatarProps } from './avatar.js';\nexport { Badge, type BadgeProps } from './badge.js';\nexport { Blockquote, type BlockquoteProps } from './blockquote.js';\nexport { Box, type BoxProps } from './box.js';\nexport { Button, type ButtonProps } from './button.js';\nexport * as Callout from './callout.js';\nexport { Card, type CardProps } from './card.js';\nexport * as CheckboxCards from './checkbox-cards.js';\nexport * as CheckboxGroup from './checkbox-group.js';\nexport { Checkbox, type CheckboxProps } from './checkbox.js';\nexport { Code, type CodeProps } from './code.js';\nexport { Container, type ContainerProps } from './container.js';\nexport * as ContextMenu from './context-menu.js';\nexport * as DataList from './data-list.js';\nexport * as Dialog from './dialog.js';\nexport * as DropdownMenu from './dropdown-menu.js';\nexport { Em, type EmProps } from './em.js';\nexport { Flex, type FlexProps } from './flex.js';\nexport { Grid, type GridProps } from './grid.js';\nexport { Heading, type HeadingProps } from './heading.js';\nexport * as HoverCard from './hover-card.js';\nexport { IconButton, type IconButtonProps } from './icon-button.js';\nexport {\n type IconProps,\n ChevronDownIcon,\n ThickCheckIcon,\n ThickChevronRightIcon,\n ThickDividerHorizontalIcon,\n} from './icons.js';\nexport { Image, type ImageProps } from './image.js';\nexport { Inset, type InsetProps } from './inset.js';\nexport { Kbd, type KbdProps } from './kbd.js';\nexport { Link, type LinkProps } from './link.js';\nexport * as Popover from './popover.js';\nexport { Portal, type PortalProps } from './portal.js';\nexport { Progress, type ProgressProps } from './progress.js';\nexport { Quote, type QuoteProps } from './quote.js';\nexport * as RadioCards from './radio-cards.js';\nexport * as RadioGroup from './radio-group.js';\nexport { Radio, type RadioProps } from './radio.js';\nexport { Reset, type ResetProps } from './reset.js';\nexport { ScrollArea, type ScrollAreaProps } from './scroll-area.js';\nexport * as SegmentedControl from './segmented-control.js';\nexport { Section, type SectionProps } from './section.js';\nexport * as Select from './select.js';\nexport { Separator, type SeparatorProps } from './separator.js';\nexport { Skeleton, type SkeletonProps } from './skeleton.js';\nexport { Slider, type SliderProps } from './slider.js';\nexport { Slot, Slottable } from './slot.js';\nexport { Spinner, type SpinnerProps } from './spinner.js';\nexport { Strong, type StrongProps } from './strong.js';\nexport { Switch, type SwitchProps } from './switch.js';\nexport * as TabNav from './tab-nav.js';\nexport * as Table from './table.js';\nexport * as Tabs from './tabs.js';\nexport { TextArea, type TextAreaProps } from './text-area.js';\nexport * as TextField from './text-field.js';\nexport { Text, type TextProps } from './text.js';\nexport { ThemePanel, type ThemePanelProps } from './theme-panel.js';\nexport { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.js';\nexport { ToggleButton, type ToggleButtonProps } from './toggle-button.js';\nexport { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';\nexport { Tooltip, type TooltipProps } from './tooltip.js';\nexport { UserCard, type UserCardProps } from './user-card.js';\nexport { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';\nexport * as Sidebar from './sidebar.js';\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,kBAAAA,MAAgD,uBACzD,UAAYC,MAAiB,oBAC7B,OAAS,eAAAC,MAA0C,oBACnD,OAAS,UAAAC,MAAgC,cACzC,OAAS,SAAAC,MAA8B,aACvC,OAAS,cAAAC,MAAwC,kBACjD,OAAS,OAAAC,MAA0B,WACnC,OAAS,UAAAC,MAAgC,cACzC,UAAYC,MAAa,eACzB,OAAS,QAAAC,MAA4B,YACrC,UAAYC,MAAmB,sBAC/B,UAAYC,MAAmB,sBAC/B,OAAS,YAAAC,MAAoC,gBAC7C,OAAS,QAAAC,MAA4B,YACrC,OAAS,aAAAC,MAAsC,iBAC/C,UAAYC,MAAiB,oBAC7B,UAAYC,MAAc,iBAC1B,UAAYC,MAAY,cACxB,UAAYC,MAAkB,qBAC9B,OAAS,MAAAC,MAAwB,UACjC,OAAS,QAAAC,MAA4B,YACrC,OAAS,QAAAC,MAA4B,YACrC,OAAS,WAAAC,MAAkC,eAC3C,UAAYC,MAAe,kBAC3B,OAAS,cAAAC,MAAwC,mBACjD,OAEE,mBAAAC,EACA,kBAAAC,EACA,yBAAAC,EACA,8BAAAC,MACK,aACP,OAAS,SAAAC,MAA8B,aACvC,OAAS,SAAAC,MAA8B,aACvC,OAAS,OAAAC,MAA0B,WACnC,OAAS,QAAAC,OAA4B,YACrC,UAAYC,OAAa,eACzB,OAAS,UAAAC,OAAgC,cACzC,OAAS,YAAAC,OAAoC,gBAC7C,OAAS,SAAAC,OAA8B,aACvC,UAAYC,OAAgB,mBAC5B,UAAYC,OAAgB,mBAC5B,OAAS,SAAAC,OAA8B,aACvC,OAAS,SAAAC,OAA8B,aACvC,OAAS,cAAAC,OAAwC,mBACjD,UAAYC,OAAsB,yBAClC,OAAS,WAAAC,OAAkC,eAC3C,UAAYC,OAAY,cACxB,OAAS,aAAAC,OAAsC,iBAC/C,OAAS,YAAAC,OAAoC,gBAC7C,OAAS,UAAAC,OAAgC,cACzC,OAAS,QAAAC,GAAM,aAAAC,OAAiB,YAChC,OAAS,WAAAC,OAAkC,eAC3C,OAAS,UAAAC,OAAgC,cACzC,OAAS,UAAAC,OAAgC,cACzC,UAAYC,OAAY,eACxB,UAAYC,OAAW,aACvB,UAAYC,OAAU,YACtB,OAAS,YAAAC,OAAoC,iBAC7C,UAAYC,OAAe,kBAC3B,OAAS,QAAAC,OAA4B,YACrC,OAAS,cAAAC,OAAwC,mBACjD,OAAS,SAAAC,GAAO,gBAAAC,GAA+B,mBAAAC,OAAuB,aACtE,OAAS,gBAAAC,OAA4C,qBACrD,OAAS,oBAAAC,OAAoD,0BAC7D,OAAS,WAAAC,OAAkC,eAC3C,OAAS,YAAAC,OAAoC,iBAC7C,OAAS,kBAAAC,OAAgD,uBACzD,UAAYC,OAAa",
|
|
6
|
+
"names": ["AccessibleIcon", "AlertDialog", "AspectRatio", "Avatar", "Badge", "Blockquote", "Box", "Button", "Callout", "Card", "CheckboxCards", "CheckboxGroup", "Checkbox", "Code", "Container", "ContextMenu", "DataList", "Dialog", "DropdownMenu", "Em", "Flex", "Grid", "Heading", "HoverCard", "IconButton", "ChevronDownIcon", "ThickCheckIcon", "ThickChevronRightIcon", "ThickDividerHorizontalIcon", "Image", "Inset", "Kbd", "Link", "Popover", "Portal", "Progress", "Quote", "RadioCards", "RadioGroup", "Radio", "Reset", "ScrollArea", "SegmentedControl", "Section", "Select", "Separator", "Skeleton", "Slider", "Slot", "Slottable", "Spinner", "Strong", "Switch", "TabNav", "Table", "Tabs", "TextArea", "TextField", "Text", "ThemePanel", "Theme", "ThemeContext", "useThemeContext", "ToggleButton", "ToggleIconButton", "Tooltip", "UserCard", "VisuallyHidden", "Sidebar"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { userCardPropDefs } from './user-card.props.js';
|
|
3
|
+
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
4
|
+
import type { MarginProps } from '../props/margin.props.js';
|
|
5
|
+
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
6
|
+
type UserCardOwnProps = GetPropDefTypes<typeof userCardPropDefs>;
|
|
7
|
+
interface UserCardProps extends ComponentPropsWithout<'div', RemovedProps>, MarginProps, UserCardOwnProps {
|
|
8
|
+
}
|
|
9
|
+
declare const UserCard: React.ForwardRefExoticComponent<UserCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export { UserCard };
|
|
11
|
+
export type { UserCardProps };
|
|
12
|
+
//# sourceMappingURL=user-card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-card.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAUxD,OAAO,KAAK,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,KAAK,gBAAgB,GAAG,eAAe,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGjE,UAAU,aACR,SAAQ,qBAAqB,CAAC,KAAK,EAAE,YAAY,CAAC,EAChD,WAAW,EACX,gBAAgB;CAAG;AAEvB,QAAA,MAAM,QAAQ,sFAqEZ,CAAC;AAIH,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import*as r from"react";import k from"classnames";import{userCardPropDefs as T}from"./user-card.props.js";import{Avatar as B}from"./avatar.js";import{Card as D}from"./card.js";import{Text as s}from"./text.js";import{Flex as n}from"./flex.js";import{extractProps as w}from"../helpers/extract-props.js";import{getSubtree as M}from"../helpers/get-subtree.js";import{marginPropDefs as N}from"../props/margin.props.js";import{useThemeContext as b}from"./theme.js";const i=r.forwardRef((e,p)=>{const m=b(),d=e.panelBackground??m.panelBackground,{asChild:o,children:c,className:l,src:f,fallback:u,name:C,description:t,avatarVariant:P,radius:g,color:y,panelBackground:j,flush:h,...v}=w(e,T,N),x={1:{avatar:"1",name:"1",description:"0"},2:{avatar:"2",name:"2",description:"1"},3:{avatar:"3",name:"3",description:"2"},4:{avatar:"4",name:"4",description:"3"}},z=e.size||"2",a=x[z],U=r.createElement(n,{align:"center",gap:"3"},r.createElement(B,{size:a.avatar,variant:P,radius:g,src:f,fallback:u,color:y,highContrast:e.highContrast}),r.createElement(n,{direction:"column",gap:"0",style:{minWidth:0}},r.createElement(s,{size:a.name,weight:"medium",truncate:!0},C),t&&r.createElement(s,{size:a.description,color:"gray",truncate:!0},t)));return r.createElement(D,{...v,asChild:o,size:e.size,variant:e.variant,panelBackground:d,flush:h,ref:p,className:k("rt-UserCard",l)},M({asChild:o,children:c},U))});i.displayName="UserCard";export{i as UserCard};
|
|
2
|
+
//# sourceMappingURL=user-card.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/user-card.tsx"],
|
|
4
|
+
"sourcesContent": ["'use client';\n\nimport * as React from 'react';\nimport classNames from 'classnames';\n\nimport { userCardPropDefs } from './user-card.props.js';\nimport { Avatar } from './avatar.js';\nimport { Card } from './card.js';\nimport { Text } from './text.js';\nimport { Flex } from './flex.js';\nimport { extractProps } from '../helpers/extract-props.js';\nimport { getSubtree } from '../helpers/get-subtree.js';\nimport { marginPropDefs } from '../props/margin.props.js';\nimport { useThemeContext } from './theme.js';\n\nimport type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';\nimport type { MarginProps } from '../props/margin.props.js';\nimport type { GetPropDefTypes } from '../props/prop-def.js';\n\ntype UserCardOwnProps = GetPropDefTypes<typeof userCardPropDefs>;\n\ntype UserCardElement = React.ElementRef<'div'>;\ninterface UserCardProps\n extends ComponentPropsWithout<'div', RemovedProps>,\n MarginProps,\n UserCardOwnProps {}\n\nconst UserCard = React.forwardRef<UserCardElement, UserCardProps>((props, forwardedRef) => {\n const themeContext = useThemeContext();\n const resolvedPanelBackground = props.panelBackground ?? themeContext.panelBackground;\n\n const {\n asChild,\n children,\n className,\n src,\n fallback,\n name,\n description,\n avatarVariant,\n radius,\n color,\n panelBackground,\n flush,\n ...restProps\n } = extractProps(props, userCardPropDefs, marginPropDefs);\n\n // Size mappings for avatar and text\n const sizeMap = {\n '1': { avatar: '1', name: '1', description: '0' },\n '2': { avatar: '2', name: '2', description: '1' },\n '3': { avatar: '3', name: '3', description: '2' },\n '4': { avatar: '4', name: '4', description: '3' },\n } as const;\n\n const currentSize = props.size || '2';\n const sizes = sizeMap[currentSize as keyof typeof sizeMap];\n\n const content = (\n <Flex align=\"center\" gap=\"3\">\n <Avatar\n size={sizes.avatar as any}\n variant={avatarVariant}\n radius={radius}\n src={src}\n fallback={fallback!}\n color={color}\n highContrast={props.highContrast}\n />\n <Flex direction=\"column\" gap=\"0\" style={{ minWidth: 0 }}>\n <Text size={sizes.name as any} weight=\"medium\" truncate>\n {name}\n </Text>\n {description && (\n <Text size={sizes.description as any} color=\"gray\" truncate>\n {description}\n </Text>\n )}\n </Flex>\n </Flex>\n );\n\n return (\n <Card\n {...restProps}\n asChild={asChild}\n size={props.size}\n variant={props.variant}\n panelBackground={resolvedPanelBackground}\n flush={flush}\n ref={forwardedRef}\n className={classNames('rt-UserCard', className)}\n >\n {getSubtree({ asChild, children }, content)}\n </Card>\n );\n});\n\nUserCard.displayName = 'UserCard';\n\nexport { UserCard };\nexport type { UserCardProps };\n"],
|
|
5
|
+
"mappings": "aAEA,UAAYA,MAAW,QACvB,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ACpDV,CACH,EACCC,GACCtB,EAAA,cAACK,EAAA,CAAK,KAAM0B,EAAM,YAAoB,MAAM,OAAO,SAAQ,IACxDT,CACH,CAEJ,CACF,EAGF,OACEtB,EAAA,cAACI,EAAA,CACE,GAAGwB,EACJ,QAASZ,EACT,KAAMJ,EAAM,KACZ,QAASA,EAAM,QACf,gBAAiBG,EACjB,MAAOY,EACP,IAAKd,EACL,UAAWZ,EAAW,cAAeiB,CAAS,GAE7CV,EAAW,CAAE,QAAAQ,EAAS,SAAAC,CAAS,EAAGe,CAAO,CAC5C,CAEJ,CAAC,EAEDrB,EAAS,YAAc",
|
|
6
|
+
"names": ["React", "classNames", "userCardPropDefs", "Avatar", "Card", "Text", "Flex", "extractProps", "getSubtree", "marginPropDefs", "useThemeContext", "UserCard", "props", "forwardedRef", "themeContext", "resolvedPanelBackground", "asChild", "children", "className", "src", "fallback", "name", "description", "avatarVariant", "radius", "color", "panelBackground", "flush", "restProps", "sizeMap", "currentSize", "sizes", "content"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
declare const userCardPropDefs: {
|
|
2
|
+
panelBackground: {
|
|
3
|
+
type: "enum";
|
|
4
|
+
values: readonly ["solid", "translucent"];
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
flush: {
|
|
8
|
+
type: "boolean";
|
|
9
|
+
default: false;
|
|
10
|
+
};
|
|
11
|
+
highContrast: {
|
|
12
|
+
type: "boolean";
|
|
13
|
+
className: string;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
color: {
|
|
17
|
+
type: "enum";
|
|
18
|
+
values: readonly ["gray", "gold", "bronze", "brown", "yellow", "amber", "orange", "tomato", "red", "ruby", "crimson", "pink", "plum", "purple", "violet", "iris", "indigo", "blue", "cyan", "teal", "jade", "green", "grass", "lime", "mint", "sky"];
|
|
19
|
+
default: "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky";
|
|
20
|
+
};
|
|
21
|
+
radius: {
|
|
22
|
+
type: "enum";
|
|
23
|
+
values: readonly ["none", "small", "medium", "large", "full"];
|
|
24
|
+
default: undefined;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: "enum";
|
|
28
|
+
className: string;
|
|
29
|
+
values: readonly ["1", "2", "3", "4"];
|
|
30
|
+
default: "2";
|
|
31
|
+
responsive: true;
|
|
32
|
+
};
|
|
33
|
+
variant: {
|
|
34
|
+
type: "enum";
|
|
35
|
+
className: string;
|
|
36
|
+
values: readonly ["ghost", "surface", "classic"];
|
|
37
|
+
default: "surface";
|
|
38
|
+
};
|
|
39
|
+
src: {
|
|
40
|
+
type: "string";
|
|
41
|
+
};
|
|
42
|
+
fallback: {
|
|
43
|
+
type: "ReactNode";
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
name: {
|
|
47
|
+
type: "string";
|
|
48
|
+
required: true;
|
|
49
|
+
};
|
|
50
|
+
description: {
|
|
51
|
+
type: "string";
|
|
52
|
+
};
|
|
53
|
+
avatarVariant: {
|
|
54
|
+
type: "enum";
|
|
55
|
+
values: readonly ["solid", "soft", "surface", "outline"];
|
|
56
|
+
default: "soft";
|
|
57
|
+
};
|
|
58
|
+
asChild: {
|
|
59
|
+
type: "boolean";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export { userCardPropDefs };
|
|
63
|
+
//# sourceMappingURL=user-card.props.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-card.props.d.ts","sourceRoot":"","sources":["../../../src/components/user-card.props.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BrB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{asChildPropDef as e}from"../props/as-child.prop.js";import{accentColorPropDef as r}from"../props/color.prop.js";import{highContrastPropDef as a}from"../props/high-contrast.prop.js";import{radiusPropDef as t}from"../props/radius.prop.js";const s=["1","2","3","4"],o=["ghost","surface","classic"],n=["solid","soft","surface","outline"],p=["solid","translucent"],f={...e,size:{type:"enum",className:"rt-r-size",values:s,default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:o,default:"surface"},src:{type:"string"},fallback:{type:"ReactNode",required:!0},name:{type:"string",required:!0},description:{type:"string"},avatarVariant:{type:"enum",values:n,default:"soft"},...t,...r,...a,panelBackground:{type:"enum",values:p,default:void 0},flush:{type:"boolean",default:!1}};export{f as userCardPropDefs};
|
|
2
|
+
//# sourceMappingURL=user-card.props.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/components/user-card.props.tsx"],
|
|
4
|
+
"sourcesContent": ["import { asChildPropDef } from '../props/as-child.prop.js';\nimport { accentColorPropDef } from '../props/color.prop.js';\nimport { highContrastPropDef } from '../props/high-contrast.prop.js';\nimport { radiusPropDef } from '../props/radius.prop.js';\n\nimport type { PropDef } from '../props/prop-def.js';\n\nconst sizes = ['1', '2', '3', '4'] as const;\nconst variants = ['ghost', 'surface', 'classic'] as const;\nconst avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;\nconst panelBackgrounds = ['solid', 'translucent'] as const;\n\nconst userCardPropDefs = {\n ...asChildPropDef,\n size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },\n variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },\n\n // Content props\n src: { type: 'string' },\n fallback: { type: 'ReactNode', required: true },\n name: { type: 'string', required: true },\n description: { type: 'string' },\n\n // Avatar styling\n avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },\n ...radiusPropDef,\n\n // Card styling\n ...accentColorPropDef,\n ...highContrastPropDef,\n panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },\n flush: { type: 'boolean', default: false },\n} satisfies {\n size: PropDef<(typeof sizes)[number]>;\n variant: PropDef<(typeof variants)[number]>;\n src: PropDef<string>;\n fallback: PropDef<React.ReactNode>;\n name: PropDef<string>;\n description: PropDef<string>;\n avatarVariant: PropDef<(typeof avatarVariants)[number]>;\n panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;\n flush: PropDef<boolean>;\n};\n\nexport { userCardPropDefs };\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,kBAAAA,MAAsB,4BAC/B,OAAS,sBAAAC,MAA0B,yBACnC,OAAS,uBAAAC,MAA2B,iCACpC,OAAS,iBAAAC,MAAqB,0BAI9B,MAAMC,EAAQ,CAAC,IAAK,IAAK,IAAK,GAAG,EAC3BC,EAAW,CAAC,QAAS,UAAW,SAAS,EACzCC,EAAiB,CAAC,QAAS,OAAQ,UAAW,SAAS,EACvDC,EAAmB,CAAC,QAAS,aAAa,EAE1CC,EAAmB,CACvB,GAAGR,EACH,KAAM,CAAE,KAAM,OAAQ,UAAW,YAAa,OAAQI,EAAO,QAAS,IAAK,WAAY,EAAK,EAC5F,QAAS,CAAE,KAAM,OAAQ,UAAW,aAAc,OAAQC,EAAU,QAAS,SAAU,EAGvF,IAAK,CAAE,KAAM,QAAS,EACtB,SAAU,CAAE,KAAM,YAAa,SAAU,EAAK,EAC9C,KAAM,CAAE,KAAM,SAAU,SAAU,EAAK,EACvC,YAAa,CAAE,KAAM,QAAS,EAG9B,cAAe,CAAE,KAAM,OAAQ,OAAQC,EAAgB,QAAS,MAAO,EACvE,GAAGH,EAGH,GAAGF,EACH,GAAGC,EACH,gBAAiB,CAAE,KAAM,OAAQ,OAAQK,EAAkB,QAAS,MAAU,EAC9E,MAAO,CAAE,KAAM,UAAW,QAAS,EAAM,CAC3C",
|
|
6
|
+
"names": ["asChildPropDef", "accentColorPropDef", "highContrastPropDef", "radiusPropDef", "sizes", "variants", "avatarVariants", "panelBackgrounds", "userCardPropDefs"]
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -290,7 +290,7 @@
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
/* Ensure gray text appears muted in non-highlighted state */
|
|
293
|
-
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
293
|
+
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
294
294
|
color: var(--gray-a10);
|
|
295
295
|
}
|
|
296
296
|
.rt-BaseMenuItem:where([data-disabled], [data-highlighted]),
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
/* Also target any element with data-accent-color="gray" */
|
|
364
|
-
& :where([data-accent-color='gray']) {
|
|
364
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
365
365
|
color: inherit !important;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
@@ -380,7 +380,7 @@
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
/* Also target any element with data-accent-color="gray" in high contrast */
|
|
383
|
-
& :where([data-accent-color='gray']) {
|
|
383
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
384
384
|
color: inherit !important;
|
|
385
385
|
}
|
|
386
386
|
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
color: inherit !important;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
& :where([data-accent-color='gray']) {
|
|
395
|
+
& :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
396
396
|
color: inherit !important;
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -467,7 +467,7 @@
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
/* In soft variant, improve contrast for gray text while maintaining hierarchy */
|
|
470
|
-
& :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
470
|
+
& :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
471
471
|
color: var(--gray-11) !important;
|
|
472
472
|
}
|
|
473
473
|
}
|
package/src/components/image.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
display: block;
|
|
7
7
|
object-fit: var(--object-fit);
|
|
8
8
|
box-shadow: var(--box-shadow);
|
|
9
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
9
|
+
border-radius: max(var(--radius-4), min(var(--radius-full), var(--radius-6)));
|
|
10
10
|
transition: var(--transition-button);
|
|
11
11
|
}
|
|
12
12
|
|
package/src/components/index.css
CHANGED
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
@import './text-field.css';
|
|
54
54
|
@import './theme-panel.css';
|
|
55
55
|
@import './tooltip.css';
|
|
56
|
+
@import './user-card.css';
|
|
56
57
|
|
|
57
58
|
.radix-themes:where([data-is-root-theme='true']) {
|
|
58
59
|
/* Create a new stacking context on the root `Theme` so layered components work out of the box */
|
package/src/components/index.tsx
CHANGED
|
@@ -64,5 +64,6 @@ export { Theme, ThemeContext, type ThemeProps, useThemeContext } from './theme.j
|
|
|
64
64
|
export { ToggleButton, type ToggleButtonProps } from './toggle-button.js';
|
|
65
65
|
export { ToggleIconButton, type ToggleIconButtonProps } from './toggle-icon-button.js';
|
|
66
66
|
export { Tooltip, type TooltipProps } from './tooltip.js';
|
|
67
|
+
export { UserCard, type UserCardProps } from './user-card.js';
|
|
67
68
|
export { VisuallyHidden, type VisuallyHiddenProps } from './visually-hidden.js';
|
|
68
69
|
export * as Sidebar from './sidebar.js';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* UserCard component styles */
|
|
2
|
+
.rt-UserCard {
|
|
3
|
+
/* Base styles inherited from Card */
|
|
4
|
+
|
|
5
|
+
/* Size-specific gap adjustments */
|
|
6
|
+
&:where(.rt-r-size-1) {
|
|
7
|
+
& :where(.rt-Flex) {
|
|
8
|
+
gap: var(--space-2);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where(.rt-r-size-2) {
|
|
13
|
+
& :where(.rt-Flex) {
|
|
14
|
+
gap: var(--space-3);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where(.rt-r-size-3) {
|
|
19
|
+
& :where(.rt-Flex) {
|
|
20
|
+
gap: var(--space-4);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where(.rt-r-size-4) {
|
|
25
|
+
& :where(.rt-Flex) {
|
|
26
|
+
gap: var(--space-5);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { asChildPropDef } from '../props/as-child.prop.js';
|
|
2
|
+
import { accentColorPropDef } from '../props/color.prop.js';
|
|
3
|
+
import { highContrastPropDef } from '../props/high-contrast.prop.js';
|
|
4
|
+
import { radiusPropDef } from '../props/radius.prop.js';
|
|
5
|
+
|
|
6
|
+
import type { PropDef } from '../props/prop-def.js';
|
|
7
|
+
|
|
8
|
+
const sizes = ['1', '2', '3', '4'] as const;
|
|
9
|
+
const variants = ['ghost', 'surface', 'classic'] as const;
|
|
10
|
+
const avatarVariants = ['solid', 'soft', 'surface', 'outline'] as const;
|
|
11
|
+
const panelBackgrounds = ['solid', 'translucent'] as const;
|
|
12
|
+
|
|
13
|
+
const userCardPropDefs = {
|
|
14
|
+
...asChildPropDef,
|
|
15
|
+
size: { type: 'enum', className: 'rt-r-size', values: sizes, default: '2', responsive: true },
|
|
16
|
+
variant: { type: 'enum', className: 'rt-variant', values: variants, default: 'surface' },
|
|
17
|
+
|
|
18
|
+
// Content props
|
|
19
|
+
src: { type: 'string' },
|
|
20
|
+
fallback: { type: 'ReactNode', required: true },
|
|
21
|
+
name: { type: 'string', required: true },
|
|
22
|
+
description: { type: 'string' },
|
|
23
|
+
|
|
24
|
+
// Avatar styling
|
|
25
|
+
avatarVariant: { type: 'enum', values: avatarVariants, default: 'soft' },
|
|
26
|
+
...radiusPropDef,
|
|
27
|
+
|
|
28
|
+
// Card styling
|
|
29
|
+
...accentColorPropDef,
|
|
30
|
+
...highContrastPropDef,
|
|
31
|
+
panelBackground: { type: 'enum', values: panelBackgrounds, default: undefined },
|
|
32
|
+
flush: { type: 'boolean', default: false },
|
|
33
|
+
} satisfies {
|
|
34
|
+
size: PropDef<(typeof sizes)[number]>;
|
|
35
|
+
variant: PropDef<(typeof variants)[number]>;
|
|
36
|
+
src: PropDef<string>;
|
|
37
|
+
fallback: PropDef<React.ReactNode>;
|
|
38
|
+
name: PropDef<string>;
|
|
39
|
+
description: PropDef<string>;
|
|
40
|
+
avatarVariant: PropDef<(typeof avatarVariants)[number]>;
|
|
41
|
+
panelBackground: PropDef<(typeof panelBackgrounds)[number] | undefined>;
|
|
42
|
+
flush: PropDef<boolean>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { userCardPropDefs };
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
|
|
6
|
+
import { userCardPropDefs } from './user-card.props.js';
|
|
7
|
+
import { Avatar } from './avatar.js';
|
|
8
|
+
import { Card } from './card.js';
|
|
9
|
+
import { Text } from './text.js';
|
|
10
|
+
import { Flex } from './flex.js';
|
|
11
|
+
import { extractProps } from '../helpers/extract-props.js';
|
|
12
|
+
import { getSubtree } from '../helpers/get-subtree.js';
|
|
13
|
+
import { marginPropDefs } from '../props/margin.props.js';
|
|
14
|
+
import { useThemeContext } from './theme.js';
|
|
15
|
+
|
|
16
|
+
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
17
|
+
import type { MarginProps } from '../props/margin.props.js';
|
|
18
|
+
import type { GetPropDefTypes } from '../props/prop-def.js';
|
|
19
|
+
|
|
20
|
+
type UserCardOwnProps = GetPropDefTypes<typeof userCardPropDefs>;
|
|
21
|
+
|
|
22
|
+
type UserCardElement = React.ElementRef<'div'>;
|
|
23
|
+
interface UserCardProps
|
|
24
|
+
extends ComponentPropsWithout<'div', RemovedProps>,
|
|
25
|
+
MarginProps,
|
|
26
|
+
UserCardOwnProps {}
|
|
27
|
+
|
|
28
|
+
const UserCard = React.forwardRef<UserCardElement, UserCardProps>((props, forwardedRef) => {
|
|
29
|
+
const themeContext = useThemeContext();
|
|
30
|
+
const resolvedPanelBackground = props.panelBackground ?? themeContext.panelBackground;
|
|
31
|
+
|
|
32
|
+
const {
|
|
33
|
+
asChild,
|
|
34
|
+
children,
|
|
35
|
+
className,
|
|
36
|
+
src,
|
|
37
|
+
fallback,
|
|
38
|
+
name,
|
|
39
|
+
description,
|
|
40
|
+
avatarVariant,
|
|
41
|
+
radius,
|
|
42
|
+
color,
|
|
43
|
+
panelBackground,
|
|
44
|
+
flush,
|
|
45
|
+
...restProps
|
|
46
|
+
} = extractProps(props, userCardPropDefs, marginPropDefs);
|
|
47
|
+
|
|
48
|
+
// Size mappings for avatar and text
|
|
49
|
+
const sizeMap = {
|
|
50
|
+
'1': { avatar: '1', name: '1', description: '0' },
|
|
51
|
+
'2': { avatar: '2', name: '2', description: '1' },
|
|
52
|
+
'3': { avatar: '3', name: '3', description: '2' },
|
|
53
|
+
'4': { avatar: '4', name: '4', description: '3' },
|
|
54
|
+
} as const;
|
|
55
|
+
|
|
56
|
+
const currentSize = props.size || '2';
|
|
57
|
+
const sizes = sizeMap[currentSize as keyof typeof sizeMap];
|
|
58
|
+
|
|
59
|
+
const content = (
|
|
60
|
+
<Flex align="center" gap="3">
|
|
61
|
+
<Avatar
|
|
62
|
+
size={sizes.avatar as any}
|
|
63
|
+
variant={avatarVariant}
|
|
64
|
+
radius={radius}
|
|
65
|
+
src={src}
|
|
66
|
+
fallback={fallback!}
|
|
67
|
+
color={color}
|
|
68
|
+
highContrast={props.highContrast}
|
|
69
|
+
/>
|
|
70
|
+
<Flex direction="column" gap="0" style={{ minWidth: 0 }}>
|
|
71
|
+
<Text size={sizes.name as any} weight="medium" truncate>
|
|
72
|
+
{name}
|
|
73
|
+
</Text>
|
|
74
|
+
{description && (
|
|
75
|
+
<Text size={sizes.description as any} color="gray" truncate>
|
|
76
|
+
{description}
|
|
77
|
+
</Text>
|
|
78
|
+
)}
|
|
79
|
+
</Flex>
|
|
80
|
+
</Flex>
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<Card
|
|
85
|
+
{...restProps}
|
|
86
|
+
asChild={asChild}
|
|
87
|
+
size={props.size}
|
|
88
|
+
variant={props.variant}
|
|
89
|
+
panelBackground={resolvedPanelBackground}
|
|
90
|
+
flush={flush}
|
|
91
|
+
ref={forwardedRef}
|
|
92
|
+
className={classNames('rt-UserCard', className)}
|
|
93
|
+
>
|
|
94
|
+
{getSubtree({ asChild, children }, content)}
|
|
95
|
+
</Card>
|
|
96
|
+
);
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
UserCard.displayName = 'UserCard';
|
|
100
|
+
|
|
101
|
+
export { UserCard };
|
|
102
|
+
export type { UserCardProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.radix-themes {
|
|
2
2
|
/* Duration tokens */
|
|
3
|
-
--duration-1:
|
|
4
|
-
--duration-2:
|
|
5
|
-
--duration-3:
|
|
6
|
-
--duration-4:
|
|
7
|
-
--duration-5:
|
|
3
|
+
--duration-1: 75ms; /* Micro interactions */
|
|
4
|
+
--duration-2: 125ms; /* Fast transitions */
|
|
5
|
+
--duration-3: 175ms; /* Standard transitions */
|
|
6
|
+
--duration-4: 225ms; /* Slower transitions */
|
|
7
|
+
--duration-5: 325ms; /* Slow animations */
|
|
8
8
|
|
|
9
9
|
/* Easing tokens */
|
|
10
10
|
--ease-1: ease-out; /* Fast start, slow end */
|
package/styles.css
CHANGED
|
@@ -4572,11 +4572,11 @@
|
|
|
4572
4572
|
--space-7: calc(40px * var(--scaling));
|
|
4573
4573
|
--space-8: calc(48px * var(--scaling));
|
|
4574
4574
|
--space-9: calc(64px * var(--scaling));
|
|
4575
|
-
--duration-1:
|
|
4576
|
-
--duration-2:
|
|
4577
|
-
--duration-3:
|
|
4578
|
-
--duration-4:
|
|
4579
|
-
--duration-5:
|
|
4575
|
+
--duration-1: 75ms;
|
|
4576
|
+
--duration-2: 125ms;
|
|
4577
|
+
--duration-3: 175ms;
|
|
4578
|
+
--duration-4: 225ms;
|
|
4579
|
+
--duration-5: 325ms;
|
|
4580
4580
|
--ease-1: ease-out;
|
|
4581
4581
|
--ease-2: ease-in-out;
|
|
4582
4582
|
--ease-3: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -11080,7 +11080,7 @@
|
|
|
11080
11080
|
color: var(--gray-a8);
|
|
11081
11081
|
cursor: default;
|
|
11082
11082
|
}
|
|
11083
|
-
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
11083
|
+
.rt-BaseMenuItem :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
11084
11084
|
color: var(--gray-a10);
|
|
11085
11085
|
}
|
|
11086
11086
|
.rt-BaseMenuItem:where([data-disabled], [data-highlighted]) :where(.rt-BaseMenuShortcut), .rt-BaseMenuSubTrigger:where([data-state='open']) :where(.rt-BaseMenuShortcut) {
|
|
@@ -11125,7 +11125,7 @@
|
|
|
11125
11125
|
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text) {
|
|
11126
11126
|
color: inherit !important;
|
|
11127
11127
|
}
|
|
11128
|
-
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']) {
|
|
11128
|
+
.rt-BaseMenuContent:where(.rt-variant-solid) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
11129
11129
|
color: inherit !important;
|
|
11130
11130
|
}
|
|
11131
11131
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) {
|
|
@@ -11138,7 +11138,7 @@
|
|
|
11138
11138
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text) {
|
|
11139
11139
|
color: inherit !important;
|
|
11140
11140
|
}
|
|
11141
|
-
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']) {
|
|
11141
|
+
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
11142
11142
|
color: inherit !important;
|
|
11143
11143
|
}
|
|
11144
11144
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) {
|
|
@@ -11148,7 +11148,7 @@
|
|
|
11148
11148
|
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where(.rt-Text) {
|
|
11149
11149
|
color: inherit !important;
|
|
11150
11150
|
}
|
|
11151
|
-
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where([data-accent-color='gray']) {
|
|
11151
|
+
.rt-BaseMenuContent:where(.rt-variant-solid):where(.rt-high-contrast) :where(.rt-BaseMenuItem[data-highlighted]):where([data-accent-color]) :where([data-accent-color='gray']:not(.rt-Badge)) {
|
|
11152
11152
|
color: inherit !important;
|
|
11153
11153
|
}
|
|
11154
11154
|
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuSubTrigger) {
|
|
@@ -11195,7 +11195,7 @@
|
|
|
11195
11195
|
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]):where([data-panel-background='translucent']) {
|
|
11196
11196
|
background-color: var(--accent-a4);
|
|
11197
11197
|
}
|
|
11198
|
-
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']) {
|
|
11198
|
+
.rt-BaseMenuContent:where(.rt-variant-soft) :where(.rt-BaseMenuItem[data-highlighted]) :where(.rt-Text[data-accent-color='gray'], [data-accent-color='gray']:not(.rt-Badge)) {
|
|
11199
11199
|
color: var(--gray-11) !important;
|
|
11200
11200
|
}
|
|
11201
11201
|
.rt-ContextMenuContent {
|
|
@@ -12693,7 +12693,7 @@
|
|
|
12693
12693
|
display: block;
|
|
12694
12694
|
object-fit: var(--object-fit);
|
|
12695
12695
|
box-shadow: var(--box-shadow);
|
|
12696
|
-
border-radius: max(var(--radius-4), var(--radius-full));
|
|
12696
|
+
border-radius: max(var(--radius-4), min(var(--radius-full), var(--radius-6)));
|
|
12697
12697
|
transition: var(--transition-button);
|
|
12698
12698
|
}
|
|
12699
12699
|
.rt-Image:where(:any-link, button, label) {
|
|
@@ -20306,6 +20306,18 @@
|
|
|
20306
20306
|
.rt-TooltipArrow {
|
|
20307
20307
|
fill: var(--gray-12);
|
|
20308
20308
|
}
|
|
20309
|
+
.rt-UserCard:where(.rt-r-size-1) :where(.rt-Flex) {
|
|
20310
|
+
gap: var(--space-2);
|
|
20311
|
+
}
|
|
20312
|
+
.rt-UserCard:where(.rt-r-size-2) :where(.rt-Flex) {
|
|
20313
|
+
gap: var(--space-3);
|
|
20314
|
+
}
|
|
20315
|
+
.rt-UserCard:where(.rt-r-size-3) :where(.rt-Flex) {
|
|
20316
|
+
gap: var(--space-4);
|
|
20317
|
+
}
|
|
20318
|
+
.rt-UserCard:where(.rt-r-size-4) :where(.rt-Flex) {
|
|
20319
|
+
gap: var(--space-5);
|
|
20320
|
+
}
|
|
20309
20321
|
.radix-themes:where([data-is-root-theme='true']) {
|
|
20310
20322
|
position: relative;
|
|
20311
20323
|
z-index: 0;
|
package/tokens/base.css
CHANGED
|
@@ -1101,11 +1101,11 @@
|
|
|
1101
1101
|
--space-7: calc(40px * var(--scaling));
|
|
1102
1102
|
--space-8: calc(48px * var(--scaling));
|
|
1103
1103
|
--space-9: calc(64px * var(--scaling));
|
|
1104
|
-
--duration-1:
|
|
1105
|
-
--duration-2:
|
|
1106
|
-
--duration-3:
|
|
1107
|
-
--duration-4:
|
|
1108
|
-
--duration-5:
|
|
1104
|
+
--duration-1: 75ms;
|
|
1105
|
+
--duration-2: 125ms;
|
|
1106
|
+
--duration-3: 175ms;
|
|
1107
|
+
--duration-4: 225ms;
|
|
1108
|
+
--duration-5: 325ms;
|
|
1109
1109
|
--ease-1: ease-out;
|
|
1110
1110
|
--ease-2: ease-in-out;
|
|
1111
1111
|
--ease-3: cubic-bezier(0.4, 0, 0.2, 1);
|
package/tokens.css
CHANGED
|
@@ -4516,11 +4516,11 @@
|
|
|
4516
4516
|
--space-7: calc(40px * var(--scaling));
|
|
4517
4517
|
--space-8: calc(48px * var(--scaling));
|
|
4518
4518
|
--space-9: calc(64px * var(--scaling));
|
|
4519
|
-
--duration-1:
|
|
4520
|
-
--duration-2:
|
|
4521
|
-
--duration-3:
|
|
4522
|
-
--duration-4:
|
|
4523
|
-
--duration-5:
|
|
4519
|
+
--duration-1: 75ms;
|
|
4520
|
+
--duration-2: 125ms;
|
|
4521
|
+
--duration-3: 175ms;
|
|
4522
|
+
--duration-4: 225ms;
|
|
4523
|
+
--duration-5: 325ms;
|
|
4524
4524
|
--ease-1: ease-out;
|
|
4525
4525
|
--ease-2: ease-in-out;
|
|
4526
4526
|
--ease-3: cubic-bezier(0.4, 0, 0.2, 1);
|