infinity-ui-elements 1.9.7 → 1.9.8

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.
@@ -0,0 +1,40 @@
1
+ import * as React from "react";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ declare const chipVariants: (props?: ({
4
+ intent?: "primary" | "positive" | "negative" | null | undefined;
5
+ selection?: "light" | "default" | "intense" | null | undefined;
6
+ size?: "medium" | "large" | "small" | "xsmall" | null | undefined;
7
+ isDisabled?: boolean | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
9
+ export interface ChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color">, VariantProps<typeof chipVariants> {
10
+ /**
11
+ * Chip visual intent (drives semantic colors).
12
+ */
13
+ intent?: "primary" | "positive" | "negative";
14
+ /**
15
+ * Chip selection styling.
16
+ * - default: neutral chip with intent-colored focus
17
+ * - light: subtle tinted fill + outline
18
+ * - intense: solid fill
19
+ */
20
+ selection?: "default" | "light" | "intense";
21
+ /**
22
+ * Chip size.
23
+ */
24
+ size?: "xsmall" | "small" | "medium" | "large";
25
+ /**
26
+ * Whether chip is disabled.
27
+ */
28
+ isDisabled?: boolean;
29
+ /**
30
+ * Optional leading element (e.g. icon).
31
+ */
32
+ leadingComponent?: React.ReactNode;
33
+ /**
34
+ * Optional trailing element (e.g. icon / counter / close).
35
+ */
36
+ trailingComponent?: React.ReactNode;
37
+ }
38
+ declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLButtonElement>>;
39
+ export { Chip, chipVariants };
40
+ //# sourceMappingURL=Chip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,YAAY;;;;;mFAqKjB,CAAC;AAEF,MAAM,WAAW,SACf,SAAQ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC,EAClE,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC;;OAEG;IACH,MAAM,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;IAC7C;;;;;OAKG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC/C;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC;AAED,QAAA,MAAM,IAAI,qFA6CT,CAAC;AAIF,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import { Chip } from "./Chip";
3
+ declare const meta: Meta<typeof Chip>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof Chip>;
6
+ export declare const Default: Story;
7
+ export declare const WithIcons: Story;
8
+ export declare const Sizes: Story;
9
+ export declare const Disabled: Story;
10
+ export declare const AllVariants: Story;
11
+ export declare const Playground: Story;
12
+ //# sourceMappingURL=Chip.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chip.stories.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/Chip.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAG9B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAgD3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAkCvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KASnB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAiDzB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAexB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Chip, chipVariants } from "./Chip";
2
+ export type { ChipProps } from "./Chip";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Chip/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC5C,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC"}