@openzeppelin/ui-components 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -169,12 +169,12 @@ declare namespace Calendar {
169
169
  }
170
170
  //#endregion
171
171
  //#region src/components/ui/card.d.ts
172
- /** Card container component with rounded borders and shadow. */
172
+ /** Card container component with rounded borders. */
173
173
  declare function Card({
174
174
  className,
175
175
  ...props
176
176
  }: React.ComponentProps<'div'>): JSX.Element;
177
- /** Card header section for title and description. */
177
+ /** Card header section for title and description. Provides top padding for the card. */
178
178
  declare function CardHeader({
179
179
  className,
180
180
  ...props
@@ -189,12 +189,12 @@ declare function CardDescription({
189
189
  className,
190
190
  ...props
191
191
  }: React.ComponentProps<'div'>): JSX.Element;
192
- /** Card content area with horizontal padding. */
192
+ /** Card content area with horizontal padding, top spacing, and bottom padding. */
193
193
  declare function CardContent({
194
194
  className,
195
195
  ...props
196
196
  }: React.ComponentProps<'div'>): JSX.Element;
197
- /** Card footer with flex alignment for actions. */
197
+ /** Card footer with flex alignment for actions, top spacing, and bottom padding. */
198
198
  declare function CardFooter({
199
199
  className,
200
200
  ...props
@@ -2409,4 +2409,4 @@ declare const Toaster: ({
2409
2409
  }: ToasterProps) => JSX.Element;
2410
2410
  //#endregion
2411
2411
  export { AccessibilityProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, AddressDisplay, AddressField, Alert, AlertDescription, AlertTitle, AmountField, AmountFieldProps, ArrayField, ArrayFieldProps, ArrayObjectField, ArrayObjectFieldProps, Banner, BaseField, BaseFieldProps, BigIntField, BigIntFieldProps, BooleanField, BooleanFieldProps, Button, ButtonProps, BytesField, BytesFieldProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type DateRange, DateRangePicker, DateRangePickerProps, DateTimeField, DateTimeFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateProps, EnumField, EnumFieldProps, EnumFieldValue, EnumMetadata, EnumVariant, ErrorMessage, ExternalLink, FileUploadField, FileUploadFieldProps, Footer, FooterProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GroupedSelectOption, Header, HeaderProps, INTEGER_HTML_PATTERN, INTEGER_INPUT_PATTERN, INTEGER_PATTERN, Input, InputProps, Label, LoadingButton, LoadingButtonProps, MapEntryRow, MapField, MapFieldProps, MidnightIcon, NetworkError, NetworkErrorNotificationProvider, NetworkErrorType, NetworkIcon, NetworkIconProps, NetworkSelector, NetworkSelectorProps, NetworkStatusBadge, NumberField, NumberFieldProps, ObjectField, ObjectFieldProps, OptionGroup, PasswordField, PasswordFieldProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioField, RadioFieldProps, RadioGroup, RadioGroupItem, RadioOption, RelayerDetailsCard, RelayerDetailsCardProps, Select, SelectContent, SelectField, SelectFieldProps, SelectGroup, SelectGroupedField, SelectGroupedFieldProps, SelectItem, SelectLabel, SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarButton, SidebarButtonProps, SidebarLayout, SidebarLayoutProps, SidebarSection, SidebarSectionProps, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, Textarea, TextareaProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UrlField, ViewContractStateButton, buttonVariants, computeChildTouched, createFocusManager, createValidationResult, formatValidationError, getAccessibilityProps, getDescribedById, getErrorMessage, getValidationStateClasses, getWidthClasses, handleEscapeKey, handleKeyboardEvent, handleNumericKeys, handleToggleKeys, handleValidationError, hasFieldError, isDuplicateMapKey, useDuplicateKeyIndexes, useMapFieldSync, useNetworkErrorAwareAdapter, useNetworkErrorReporter, useNetworkErrors, validateField, validateMapEntries, validateMapStructure };
2412
- //# sourceMappingURL=index-DfQJGBqH.d.cts.map
2412
+ //# sourceMappingURL=index-mhkE-hOZ.d.cts.map
package/dist/index.d.ts CHANGED
@@ -169,12 +169,12 @@ declare namespace Calendar {
169
169
  }
170
170
  //#endregion
171
171
  //#region src/components/ui/card.d.ts
172
- /** Card container component with rounded borders and shadow. */
172
+ /** Card container component with rounded borders. */
173
173
  declare function Card({
174
174
  className,
175
175
  ...props
176
176
  }: React.ComponentProps<'div'>): JSX.Element;
177
- /** Card header section for title and description. */
177
+ /** Card header section for title and description. Provides top padding for the card. */
178
178
  declare function CardHeader({
179
179
  className,
180
180
  ...props
@@ -189,12 +189,12 @@ declare function CardDescription({
189
189
  className,
190
190
  ...props
191
191
  }: React.ComponentProps<'div'>): JSX.Element;
192
- /** Card content area with horizontal padding. */
192
+ /** Card content area with horizontal padding, top spacing, and bottom padding. */
193
193
  declare function CardContent({
194
194
  className,
195
195
  ...props
196
196
  }: React.ComponentProps<'div'>): JSX.Element;
197
- /** Card footer with flex alignment for actions. */
197
+ /** Card footer with flex alignment for actions, top spacing, and bottom padding. */
198
198
  declare function CardFooter({
199
199
  className,
200
200
  ...props
@@ -2409,4 +2409,4 @@ declare const Toaster: ({
2409
2409
  }: ToasterProps) => JSX.Element;
2410
2410
  //#endregion
2411
2411
  export { AccessibilityProps, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, AddressDisplay, AddressField, Alert, AlertDescription, AlertTitle, AmountField, AmountFieldProps, ArrayField, ArrayFieldProps, ArrayObjectField, ArrayObjectFieldProps, Banner, BaseField, BaseFieldProps, BigIntField, BigIntFieldProps, BooleanField, BooleanFieldProps, Button, ButtonProps, BytesField, BytesFieldProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, type DateRange, DateRangePicker, DateRangePickerProps, DateTimeField, DateTimeFieldProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateProps, EnumField, EnumFieldProps, EnumFieldValue, EnumMetadata, EnumVariant, ErrorMessage, ExternalLink, FileUploadField, FileUploadFieldProps, Footer, FooterProps, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GroupedSelectOption, Header, HeaderProps, INTEGER_HTML_PATTERN, INTEGER_INPUT_PATTERN, INTEGER_PATTERN, Input, InputProps, Label, LoadingButton, LoadingButtonProps, MapEntryRow, MapField, MapFieldProps, MidnightIcon, NetworkError, NetworkErrorNotificationProvider, NetworkErrorType, NetworkIcon, NetworkIconProps, NetworkSelector, NetworkSelectorProps, NetworkStatusBadge, NumberField, NumberFieldProps, ObjectField, ObjectFieldProps, OptionGroup, PasswordField, PasswordFieldProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioField, RadioFieldProps, RadioGroup, RadioGroupItem, RadioOption, RelayerDetailsCard, RelayerDetailsCardProps, Select, SelectContent, SelectField, SelectFieldProps, SelectGroup, SelectGroupedField, SelectGroupedFieldProps, SelectItem, SelectLabel, SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SidebarButton, SidebarButtonProps, SidebarLayout, SidebarLayoutProps, SidebarSection, SidebarSectionProps, Tabs, TabsContent, TabsList, TabsTrigger, TextAreaField, TextAreaFieldProps, TextField, TextFieldProps, Textarea, TextareaProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UrlField, ViewContractStateButton, buttonVariants, computeChildTouched, createFocusManager, createValidationResult, formatValidationError, getAccessibilityProps, getDescribedById, getErrorMessage, getValidationStateClasses, getWidthClasses, handleEscapeKey, handleKeyboardEvent, handleNumericKeys, handleToggleKeys, handleValidationError, hasFieldError, isDuplicateMapKey, useDuplicateKeyIndexes, useMapFieldSync, useNetworkErrorAwareAdapter, useNetworkErrorReporter, useNetworkErrors, validateField, validateMapEntries, validateMapStructure };
2412
- //# sourceMappingURL=index-DDdy06qO.d.ts.map
2412
+ //# sourceMappingURL=index-B4RKqEg8.d.ts.map
package/dist/index.js CHANGED
@@ -217,7 +217,7 @@ function getWidthClasses(width) {
217
217
  const accordionItemVariants = cva("", {
218
218
  variants: { variant: {
219
219
  default: "border-b",
220
- card: "mb-3 rounded-lg border bg-card shadow-sm overflow-hidden"
220
+ card: "mb-3 rounded-lg border bg-card overflow-hidden"
221
221
  } },
222
222
  defaultVariants: { variant: "default" }
223
223
  });
@@ -525,19 +525,19 @@ Calendar.displayName = "Calendar";
525
525
 
526
526
  //#endregion
527
527
  //#region src/components/ui/card.tsx
528
- /** Card container component with rounded borders and shadow. */
528
+ /** Card container component with rounded borders. */
529
529
  function Card({ className, ...props }) {
530
530
  return /* @__PURE__ */ jsx("div", {
531
531
  "data-slot": "card",
532
- className: cn("bg-card text-card-foreground flex flex-col rounded-xl border py-6 shadow-sm", className),
532
+ className: cn("bg-card text-card-foreground flex flex-col rounded-xl border", className),
533
533
  ...props
534
534
  });
535
535
  }
536
- /** Card header section for title and description. */
536
+ /** Card header section for title and description. Provides top padding for the card. */
537
537
  function CardHeader({ className, ...props }) {
538
538
  return /* @__PURE__ */ jsx("div", {
539
539
  "data-slot": "card-header",
540
- className: cn("flex flex-col gap-1.5 px-6", className),
540
+ className: cn("flex flex-col gap-1.5 px-6 pt-6", className),
541
541
  ...props
542
542
  });
543
543
  }
@@ -557,19 +557,19 @@ function CardDescription({ className, ...props }) {
557
557
  ...props
558
558
  });
559
559
  }
560
- /** Card content area with horizontal padding. */
560
+ /** Card content area with horizontal padding, top spacing, and bottom padding. */
561
561
  function CardContent({ className, ...props }) {
562
562
  return /* @__PURE__ */ jsx("div", {
563
563
  "data-slot": "card-content",
564
- className: cn("px-6", className),
564
+ className: cn("px-6 pt-4 pb-6", className),
565
565
  ...props
566
566
  });
567
567
  }
568
- /** Card footer with flex alignment for actions. */
568
+ /** Card footer with flex alignment for actions, top spacing, and bottom padding. */
569
569
  function CardFooter({ className, ...props }) {
570
570
  return /* @__PURE__ */ jsx("div", {
571
571
  "data-slot": "card-footer",
572
- className: cn("flex items-center px-6", className),
572
+ className: cn("flex items-center px-6 pt-4 pb-6", className),
573
573
  ...props
574
574
  });
575
575
  }