@codapet/design-system 0.2.7 → 0.2.9
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.mjs +16 -16
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +34 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -147,14 +147,14 @@ var buttonVariants = cva2(
|
|
|
147
147
|
variants: {
|
|
148
148
|
variant: {
|
|
149
149
|
primary: "bg-primary text-primary-foreground hover:bg-brand-dark active:bg-slate-800 ",
|
|
150
|
-
secondary: "bg-brand-subtle text-brand-vibrant hover:bg-
|
|
151
|
-
tertiary: "bg-
|
|
152
|
-
outline: "text-zinc-800 border bg-background hover:bg-
|
|
153
|
-
ghost: "text-zinc-800 hover:bg-
|
|
154
|
-
link: "text-primary underline-offset-4 hover:underline active:bg-surface-light",
|
|
155
|
-
destructive: "bg-
|
|
156
|
-
"destructive-secondary": "bg-
|
|
157
|
-
"destructive-tertiary": "bg-transparent border border-
|
|
150
|
+
secondary: "bg-brand-subtle text-brand-vibrant hover:bg-primary-surface-light border border-brand-light active:bg-icon-disabled hover:border-transparent active:border-transparent",
|
|
151
|
+
tertiary: "bg-gray-surface-light text-zinc-700 hover:bg-gray-surface-default border border-gray-stroke-light active:bg-zinc-400",
|
|
152
|
+
outline: "text-zinc-800 border border-gray-surface-default bg-background hover:bg-gray-surface-light hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 active:bg-gray-surface-default",
|
|
153
|
+
ghost: "text-zinc-800 hover:bg-gray-surface-light hover:text-accent-foreground dark:hover:bg-accent/50 active:bg-gray-surface-default",
|
|
154
|
+
link: "text-primary underline-offset-4 hover:underline hover:bg-primary-surface-subtle active:bg-primary-surface-light",
|
|
155
|
+
destructive: "bg-error-surface-default text-white hover:bg-red-800 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 active:bg-error-surface-dark",
|
|
156
|
+
"destructive-secondary": "bg-error-surface-light border border-error-stroke-light text-red-400 hover:border-error-surface-default focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 active:bg-red-100",
|
|
157
|
+
"destructive-tertiary": "bg-transparent border border-error-stroke-light text-red-400 hover:bg-red-50 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 active:bg-red-100"
|
|
158
158
|
},
|
|
159
159
|
size: {
|
|
160
160
|
md: "h-10 px-4 py-2 has-[>svg]:px-3 text-lg",
|
|
@@ -1208,9 +1208,9 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
// src/components/ui/checkbox.tsx
|
|
1211
|
-
import "react";
|
|
1212
1211
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1213
1212
|
import { CheckIcon } from "lucide-react";
|
|
1213
|
+
import "react";
|
|
1214
1214
|
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
1215
1215
|
function Checkbox({
|
|
1216
1216
|
className,
|
|
@@ -1221,7 +1221,7 @@ function Checkbox({
|
|
|
1221
1221
|
{
|
|
1222
1222
|
"data-slot": "checkbox",
|
|
1223
1223
|
className: cn(
|
|
1224
|
-
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-
|
|
1224
|
+
"peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:before:absolute focus-visible:before:-inset-[3px] focus:ring-offset-1 focus:ring-offset-brand-text-vibrant",
|
|
1225
1225
|
className
|
|
1226
1226
|
),
|
|
1227
1227
|
...props,
|
|
@@ -3048,9 +3048,9 @@ function Progress({
|
|
|
3048
3048
|
}
|
|
3049
3049
|
|
|
3050
3050
|
// src/components/ui/radio-group.tsx
|
|
3051
|
-
import "react";
|
|
3052
3051
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3053
3052
|
import { CircleIcon as CircleIcon4 } from "lucide-react";
|
|
3053
|
+
import "react";
|
|
3054
3054
|
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3055
3055
|
function RadioGroup4({
|
|
3056
3056
|
className,
|
|
@@ -3074,7 +3074,7 @@ function RadioGroupItem({
|
|
|
3074
3074
|
{
|
|
3075
3075
|
"data-slot": "radio-group-item",
|
|
3076
3076
|
className: cn(
|
|
3077
|
-
"border-input text-primary focus-visible:border-ring focus-visible:ring-
|
|
3077
|
+
"border-input text-primary focus-visible:border-ring focus-visible:ring-brand-text-vibrant aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:border-primary",
|
|
3078
3078
|
className
|
|
3079
3079
|
),
|
|
3080
3080
|
...props,
|
|
@@ -3082,8 +3082,8 @@ function RadioGroupItem({
|
|
|
3082
3082
|
RadioGroupPrimitive.Indicator,
|
|
3083
3083
|
{
|
|
3084
3084
|
"data-slot": "radio-group-indicator",
|
|
3085
|
-
className: "relative flex items-center justify-center",
|
|
3086
|
-
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-
|
|
3085
|
+
className: "relative flex items-center justify-center ",
|
|
3086
|
+
children: /* @__PURE__ */ jsx30(CircleIcon4, { className: "fill-white absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 " })
|
|
3087
3087
|
}
|
|
3088
3088
|
)
|
|
3089
3089
|
}
|
|
@@ -4267,8 +4267,8 @@ var Toaster = ({ ...props }) => {
|
|
|
4267
4267
|
};
|
|
4268
4268
|
|
|
4269
4269
|
// src/components/ui/switch.tsx
|
|
4270
|
-
import "react";
|
|
4271
4270
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
4271
|
+
import "react";
|
|
4272
4272
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
4273
4273
|
function Switch({
|
|
4274
4274
|
className,
|
|
@@ -4279,7 +4279,7 @@ function Switch({
|
|
|
4279
4279
|
{
|
|
4280
4280
|
"data-slot": "switch",
|
|
4281
4281
|
className: cn(
|
|
4282
|
-
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-
|
|
4282
|
+
"peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-brand-text-vibrant dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-2 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:ring-offset-1",
|
|
4283
4283
|
className
|
|
4284
4284
|
),
|
|
4285
4285
|
...props,
|