@cmdniels/uikit 2.2.1 → 2.2.2
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.
|
@@ -2,7 +2,7 @@ import Button from "../../components/button/Button";
|
|
|
2
2
|
import inputGroupButtonVariants from "./inputGroupButtonVariants";
|
|
3
3
|
import type { VariantProps } from "class-variance-authority";
|
|
4
4
|
import type { ComponentProps } from "react";
|
|
5
|
-
export default function InputGroupButton({ className, type, variant, size, ...props }: Omit<ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
5
|
+
export default function InputGroupButton({ className, type, variant, size, tabIndex, ...props }: Omit<ComponentProps<typeof Button>, "size" | "type"> & VariantProps<typeof inputGroupButtonVariants> & {
|
|
6
6
|
type?: "button" | "submit" | "reset";
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
//# sourceMappingURL=InputGroupButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroupButton.d.ts","sourceRoot":"","sources":["../../../components/input-group/InputGroupButton.tsx"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACxC,SAAS,EACT,IAAe,EACf,OAAiB,EACjB,IAAW,EACX,GAAG,KAAK,EACR,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GACtD,YAAY,CAAC,OAAO,wBAAwB,CAAC,GAAG;IAC/C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC,
|
|
1
|
+
{"version":3,"file":"InputGroupButton.d.ts","sourceRoot":"","sources":["../../../components/input-group/InputGroupButton.tsx"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAElE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACxC,SAAS,EACT,IAAe,EACf,OAAiB,EACjB,IAAW,EACX,QAAa,EACb,GAAG,KAAK,EACR,EAAE,IAAI,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GACtD,YAAY,CAAC,OAAO,wBAAwB,CAAC,GAAG;IAC/C,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC,2CAWD"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import cn from "../../cn";
|
|
3
3
|
import Button from "../../components/button/Button";
|
|
4
4
|
import inputGroupButtonVariants from "./inputGroupButtonVariants";
|
|
5
|
-
export default function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs", ...props }) {
|
|
6
|
-
return (_jsx(Button, { type: type, "data-size": size, variant: variant, className: cn(inputGroupButtonVariants({ size }), className), ...props }));
|
|
5
|
+
export default function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs", tabIndex = -1, ...props }) {
|
|
6
|
+
return (_jsx(Button, { type: type, "data-size": size, tabIndex: tabIndex, variant: variant, className: cn(inputGroupButtonVariants({ size }), className), ...props }));
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=InputGroupButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputGroupButton.js","sourceRoot":"","sources":["../../../components/input-group/InputGroupButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAKlE,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACxC,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,IAAI,EACX,GAAG,KAAK,EAIP;IACD,OAAO,CACN,KAAC,MAAM,IACN,IAAI,EAAE,IAAI,eACC,IAAI,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,KACxD,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import cn from \"@/cn\";\nimport Button from \"@/components/button/Button\";\n\nimport inputGroupButtonVariants from \"./inputGroupButtonVariants\";\n\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { ComponentProps } from \"react\";\n\nexport default function InputGroupButton({\n\tclassName,\n\ttype = \"button\",\n\tvariant = \"ghost\",\n\tsize = \"xs\",\n\t...props\n}: Omit<ComponentProps<typeof Button>, \"size\" | \"type\"> &\n\tVariantProps<typeof inputGroupButtonVariants> & {\n\t\ttype?: \"button\" | \"submit\" | \"reset\";\n\t}) {\n\treturn (\n\t\t<Button\n\t\t\ttype={type}\n\t\t\tdata-size={size}\n\t\t\tvariant={variant}\n\t\t\tclassName={cn(inputGroupButtonVariants({ size }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"InputGroupButton.js","sourceRoot":"","sources":["../../../components/input-group/InputGroupButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAEhD,OAAO,wBAAwB,MAAM,4BAA4B,CAAC;AAKlE,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACxC,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,OAAO,EACjB,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,CAAC,CAAC,EACb,GAAG,KAAK,EAIP;IACD,OAAO,CACN,KAAC,MAAM,IACN,IAAI,EAAE,IAAI,eACC,IAAI,EACf,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,EAAE,CAAC,wBAAwB,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,SAAS,CAAC,KACxD,KAAK,GACR,CACF,CAAC;AACH,CAAC","sourcesContent":["import cn from \"@/cn\";\nimport Button from \"@/components/button/Button\";\n\nimport inputGroupButtonVariants from \"./inputGroupButtonVariants\";\n\nimport type { VariantProps } from \"class-variance-authority\";\nimport type { ComponentProps } from \"react\";\n\nexport default function InputGroupButton({\n\tclassName,\n\ttype = \"button\",\n\tvariant = \"ghost\",\n\tsize = \"xs\",\n\ttabIndex = -1,\n\t...props\n}: Omit<ComponentProps<typeof Button>, \"size\" | \"type\"> &\n\tVariantProps<typeof inputGroupButtonVariants> & {\n\t\ttype?: \"button\" | \"submit\" | \"reset\";\n\t}) {\n\treturn (\n\t\t<Button\n\t\t\ttype={type}\n\t\t\tdata-size={size}\n\t\t\ttabIndex={tabIndex}\n\t\t\tvariant={variant}\n\t\t\tclassName={cn(inputGroupButtonVariants({ size }), className)}\n\t\t\t{...props}\n\t\t/>\n\t);\n}\n"]}
|