singularity-components 0.1.75 → 0.1.76

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/main.cjs CHANGED
@@ -5,8 +5,8 @@ var React = require('react');
5
5
  var clsx2 = require('clsx');
6
6
  var tailwindMerge = require('tailwind-merge');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
- var reactSlot = require('@radix-ui/react-slot');
9
8
  var classVarianceAuthority = require('class-variance-authority');
9
+ var reactSlot = require('@radix-ui/react-slot');
10
10
  var reactSpinners = require('react-spinners');
11
11
 
12
12
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
@@ -19989,6 +19989,64 @@ function AccordionContent({
19989
19989
  }
19990
19990
  );
19991
19991
  }
19992
+ var alertVariants = classVarianceAuthority.cva(
19993
+ "sg:relative sg:w-full sg:rounded-lg sg:border sg:px-4 sg:py-3 sg:text-sm sg:grid sg:has-[>svg]:grid-cols-[calc(var(--sg-spacing)*4)_1fr] sg:grid-cols-[0_1fr] sg:has-[>svg]:gap-x-3 sg:gap-y-0.5 sg:items-start sg:[&>svg]:size-4 sg:[&>svg]:translate-y-0.5 sg:[&>svg]:text-current",
19994
+ {
19995
+ variants: {
19996
+ variant: {
19997
+ default: "sg:bg-card sg:text-card-foreground",
19998
+ destructive: "sg:text-destructive sg:bg-card sg:[&>svg]:text-current sg:*:data-[slot=alert-description]:text-destructive/90"
19999
+ }
20000
+ },
20001
+ defaultVariants: {
20002
+ variant: "default"
20003
+ }
20004
+ }
20005
+ );
20006
+ function Alert({
20007
+ className,
20008
+ variant,
20009
+ ...props
20010
+ }) {
20011
+ return /* @__PURE__ */ jsxRuntime.jsx(
20012
+ "div",
20013
+ {
20014
+ "data-slot": "alert",
20015
+ role: "alert",
20016
+ className: cn(alertVariants({ variant }), className),
20017
+ ...props
20018
+ }
20019
+ );
20020
+ }
20021
+ function AlertTitle({ className, ...props }) {
20022
+ return /* @__PURE__ */ jsxRuntime.jsx(
20023
+ "div",
20024
+ {
20025
+ "data-slot": "alert-title",
20026
+ className: cn(
20027
+ "sg:col-start-2 sg:line-clamp-1 sg:min-h-4 sg:font-medium sg:tracking-tight",
20028
+ className
20029
+ ),
20030
+ ...props
20031
+ }
20032
+ );
20033
+ }
20034
+ function AlertDescription({
20035
+ className,
20036
+ ...props
20037
+ }) {
20038
+ return /* @__PURE__ */ jsxRuntime.jsx(
20039
+ "div",
20040
+ {
20041
+ "data-slot": "alert-description",
20042
+ className: cn(
20043
+ "sg:text-muted-foreground sg:col-start-2 sg:grid sg:justify-items-start sg:gap-1 sg:text-sm sg:[&_p]:leading-relaxed",
20044
+ className
20045
+ ),
20046
+ ...props
20047
+ }
20048
+ );
20049
+ }
19992
20050
  var badgeVariants = classVarianceAuthority.cva(
19993
20051
  "sg:inline-flex sg:items-center sg:justify-center sg:rounded-md sg:border sg:px-2 sg:py-0.5 sg:text-xs sg:font-medium sg:w-fit sg:whitespace-nowrap sg:shrink-0 [&>svg]:sg:size-3 sg:gap-1 [&>svg]:sg:pointer-events-none focus-visible:sg:border-ring focus-visible:sg:ring-ring/50 focus-visible:sg:ring-[3px] aria-invalid:sg:ring-destructive/20 dark:aria-invalid:sg:ring-destructive/40 aria-invalid:sg:border-destructive sg:transition-[color,box-shadow] sg:overflow-hidden",
19994
20052
  {
@@ -33254,6 +33312,9 @@ exports.Accordion = Accordion;
33254
33312
  exports.AccordionContent = AccordionContent;
33255
33313
  exports.AccordionItem = AccordionItem;
33256
33314
  exports.AccordionTrigger = AccordionTrigger;
33315
+ exports.Alert = Alert;
33316
+ exports.AlertDescription = AlertDescription;
33317
+ exports.AlertTitle = AlertTitle;
33257
33318
  exports.Badge = Badge2;
33258
33319
  exports.Button = Button;
33259
33320
  exports.Heading = Heading7;