@cnc-ti/layout-basic 8.3.7 → 8.3.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.css +8 -0
- package/dist/index.css.map +1 -1
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2650,14 +2650,14 @@ function cn(...inputs) {
|
|
|
2650
2650
|
// src/components/Button/index.tsx
|
|
2651
2651
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2652
2652
|
var buttonVariants = cva(
|
|
2653
|
-
"cnc-inline-flex cnc-items-center cnc-justify-center cnc-border cnc-whitespace-nowrap cnc-rounded-md cnc-text-sm cnc-font-medium cnc-ring-offset-background cnc-transition-colors focus-visible:cnc-outline-none focus-visible:cnc-ring-2 focus-visible:cnc-ring-ring focus-visible:cnc-ring-offset-2 disabled:cnc-pointer-events-none disabled:cnc-opacity-50",
|
|
2653
|
+
"cnc-inline-flex cnc-items-center cnc-justify-center cnc-border cnc-text-white cnc-whitespace-nowrap cnc-rounded-md cnc-text-sm cnc-font-medium cnc-ring-offset-background cnc-transition-colors focus-visible:cnc-outline-none focus-visible:cnc-ring-2 focus-visible:cnc-ring-ring focus-visible:cnc-ring-offset-2 disabled:cnc-pointer-events-none disabled:cnc-opacity-50",
|
|
2654
2654
|
{
|
|
2655
2655
|
variants: {
|
|
2656
2656
|
variant: {
|
|
2657
|
-
confirm: "cnc-
|
|
2658
|
-
create: "cnc-
|
|
2659
|
-
secondary: "cnc-
|
|
2660
|
-
danger: "cnc-
|
|
2657
|
+
confirm: "cnc-bg-brand-blue-400 cnc-border-brand-blue-500 hover:cnc-bg-brand-blue-400/90",
|
|
2658
|
+
create: "cnc-bg-brand-green-100 cnc-border-brand-green-200 hover:cnc-bg-brand-green-100/80",
|
|
2659
|
+
secondary: "cnc-bg-brand-gray-20 cnc-text-secondary-foreground hover:cnc-brightness-95",
|
|
2660
|
+
danger: "cnc-bg-brand-red-500 cnc-border-brand-red-600 hover:cnc-bg-brand-red-500/80",
|
|
2661
2661
|
outline: "cnc-border cnc-border-input cnc-text-brand-gray-200 cnc-bg-background cnc-shadow-sm hover:cnc-bg-brand-blue-50 hover:cnc-text-accent-foreground",
|
|
2662
2662
|
default: "cnc-bg-primary cnc-text-primary-foreground hover:cnc-bg-primary/90"
|
|
2663
2663
|
},
|
|
@@ -12843,14 +12843,13 @@ function Combobox({
|
|
|
12843
12843
|
const [open, setOpen] = React79.useState(false);
|
|
12844
12844
|
return /* @__PURE__ */ jsxs14(Popover3, { open, onOpenChange: setOpen, children: [
|
|
12845
12845
|
/* @__PURE__ */ jsx45(PopoverTrigger3, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
12846
|
-
|
|
12846
|
+
"button",
|
|
12847
12847
|
{
|
|
12848
|
-
variant: "outline",
|
|
12849
12848
|
role: "combobox",
|
|
12850
12849
|
"aria-expanded": open,
|
|
12851
|
-
className: "cnc-
|
|
12850
|
+
className: "cnc-h-10 cnc-px-4 cnc-py-2 cnc-inline-flex cnc-items-center cnc-justify-between cnc-border cnc-border-input cnc-text-brand-gray-200 cnc-bg-background cnc-shadow-sm hover:cnc-bg-brand-blue-50 hover:cnc-text-accent-foreground cnc-rounded-md cnc-text-sm cnc-font-medium cnc-ring-offset-background cnc-transition-colors focus-visible:cnc-outline-none focus-visible:cnc-ring-2 focus-visible:cnc-ring-ring focus-visible:cnc-ring-offset-2 disabled:cnc-pointer-events-none disabled:cnc-opacity-50 cnc-w-full",
|
|
12852
12851
|
children: [
|
|
12853
|
-
value ? options?.find((framework) => framework.value === value)?.label : placeholder,
|
|
12852
|
+
/* @__PURE__ */ jsx45("span", { className: "cnc-truncate cnc-flex-1 cnc-text-left", children: value ? options?.find((framework) => framework.value === value)?.label : placeholder }),
|
|
12854
12853
|
/* @__PURE__ */ jsx45(ChevronsUpDown, { className: "cnc-ml-2 cnc-h-4 cnc-w-4 cnc-shrink-0 cnc-opacity-50" })
|
|
12855
12854
|
]
|
|
12856
12855
|
}
|