@als-tp/als-react-ts-ui 0.6.1 → 0.8.1

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,39 @@
1
+ import React from "react";
2
+ export type ALSFileitemSize = "sm" | "md" | "lg";
3
+ export type ALSFileitemVariant = "default" | "subtle" | "ghost";
4
+ export type ALSFileitemFileKind = "auto" | "code" | "text" | "image" | "video" | "audio" | "pdf" | "json" | "spreadsheet" | "archive" | "generic";
5
+ export interface ALSFileitemProps extends React.HTMLAttributes<HTMLDivElement> {
6
+ /** Primary text (e.g. "index.stories.tsx") */
7
+ name: string;
8
+ /** Secondary text (e.g. "TypeScript") */
9
+ meta?: string;
10
+ /**
11
+ * Optional MIME type to improve icon selection (e.g. "image/png")
12
+ * If not provided, we infer from extension.
13
+ */
14
+ mime?: string;
15
+ /**
16
+ * Icon selection mode:
17
+ * - "auto": infer from mime/ext
18
+ * - others: force a specific kind
19
+ */
20
+ kind?: ALSFileitemFileKind;
21
+ /** Optional custom icon (overrides kind/auto) */
22
+ icon?: React.ReactNode;
23
+ /** Visual variant */
24
+ variant?: ALSFileitemVariant;
25
+ /** Size */
26
+ size?: ALSFileitemSize;
27
+ /** If true, shows a remove/close button */
28
+ removable?: boolean;
29
+ /** Accessible label for remove button */
30
+ removeLabel?: string;
31
+ /** Called when user clicks the item (container) */
32
+ onItemClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
33
+ /** Called when user clicks the remove button */
34
+ onRemove?: (event: React.MouseEvent<HTMLButtonElement>) => void;
35
+ /** Disabled state */
36
+ disabled?: boolean;
37
+ }
38
+ export declare const ALSFileitem: React.ForwardRefExoticComponent<ALSFileitemProps & React.RefAttributes<HTMLDivElement>>;
39
+ //# sourceMappingURL=ALSFileitem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ALSFileitem.d.ts","sourceRoot":"","sources":["../../../src/components/ALSFileitem/ALSFileitem.tsx"],"names":[],"mappings":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item } from "./ALSFileitem";
2
+ import type { ALSFileitemProps } from "./ALSFileitem";
3
+ export { ALSFileitem };
4
+ export type { ALSFileitemProps };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSFileitem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC"}