@als-tp/als-react-ts-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +172 -0
- package/dist/als-react-ts-ui.cjs +21 -0
- package/dist/als-react-ts-ui.cjs.map +1 -0
- package/dist/als-react-ts-ui.css +1 -0
- package/dist/als-react-ts-ui.js +11369 -0
- package/dist/als-react-ts-ui.js.map +1 -0
- package/dist/components/ALSAccordion/index.d.ts +67 -0
- package/dist/components/ALSAccordion/index.d.ts.map +1 -0
- package/dist/components/ALSAlertDialog/index.d.ts +5 -0
- package/dist/components/ALSAlertDialog/index.d.ts.map +1 -0
- package/dist/components/ALSAutocomplete/index.d.ts +5 -0
- package/dist/components/ALSAutocomplete/index.d.ts.map +1 -0
- package/dist/components/ALSAvatar/index.d.ts +5 -0
- package/dist/components/ALSAvatar/index.d.ts.map +1 -0
- package/dist/components/ALSButton/index.d.ts +14 -0
- package/dist/components/ALSButton/index.d.ts.map +1 -0
- package/dist/components/ALSCheckbox/index.d.ts +5 -0
- package/dist/components/ALSCheckbox/index.d.ts.map +1 -0
- package/dist/components/ALSCheckboxGroup/index.d.ts +5 -0
- package/dist/components/ALSCheckboxGroup/index.d.ts.map +1 -0
- package/dist/components/ALSCollapsible/index.d.ts +5 -0
- package/dist/components/ALSCollapsible/index.d.ts.map +1 -0
- package/dist/components/ALSCombobox/index.d.ts +5 -0
- package/dist/components/ALSCombobox/index.d.ts.map +1 -0
- package/dist/components/ALSContextMenu/index.d.ts +5 -0
- package/dist/components/ALSContextMenu/index.d.ts.map +1 -0
- package/dist/components/ALSDialog/index.d.ts +79 -0
- package/dist/components/ALSDialog/index.d.ts.map +1 -0
- package/dist/components/ALSField/index.d.ts +5 -0
- package/dist/components/ALSField/index.d.ts.map +1 -0
- package/dist/components/ALSFieldset/index.d.ts +5 -0
- package/dist/components/ALSFieldset/index.d.ts.map +1 -0
- package/dist/components/ALSForm/index.d.ts +5 -0
- package/dist/components/ALSForm/index.d.ts.map +1 -0
- package/dist/components/ALSInput/index.d.ts +51 -0
- package/dist/components/ALSInput/index.d.ts.map +1 -0
- package/dist/components/ALSMenu/index.d.ts +5 -0
- package/dist/components/ALSMenu/index.d.ts.map +1 -0
- package/dist/components/ALSMenubar/index.d.ts +5 -0
- package/dist/components/ALSMenubar/index.d.ts.map +1 -0
- package/dist/components/ALSMeter/index.d.ts +5 -0
- package/dist/components/ALSMeter/index.d.ts.map +1 -0
- package/dist/components/ALSNavigationMenu/index.d.ts +5 -0
- package/dist/components/ALSNavigationMenu/index.d.ts.map +1 -0
- package/dist/components/ALSNumberField/index.d.ts +5 -0
- package/dist/components/ALSNumberField/index.d.ts.map +1 -0
- package/dist/components/ALSPopover/index.d.ts +50 -0
- package/dist/components/ALSPopover/index.d.ts.map +1 -0
- package/dist/components/ALSPreviewCard/index.d.ts +5 -0
- package/dist/components/ALSPreviewCard/index.d.ts.map +1 -0
- package/dist/components/ALSProgress/index.d.ts +5 -0
- package/dist/components/ALSProgress/index.d.ts.map +1 -0
- package/dist/components/ALSRadio/index.d.ts +5 -0
- package/dist/components/ALSRadio/index.d.ts.map +1 -0
- package/dist/components/ALSScrollArea/index.d.ts +5 -0
- package/dist/components/ALSScrollArea/index.d.ts.map +1 -0
- package/dist/components/ALSSelect/index.d.ts +41 -0
- package/dist/components/ALSSelect/index.d.ts.map +1 -0
- package/dist/components/ALSSeparator/index.d.ts +5 -0
- package/dist/components/ALSSeparator/index.d.ts.map +1 -0
- package/dist/components/ALSSlider/index.d.ts +5 -0
- package/dist/components/ALSSlider/index.d.ts.map +1 -0
- package/dist/components/ALSSwitch/index.d.ts +5 -0
- package/dist/components/ALSSwitch/index.d.ts.map +1 -0
- package/dist/components/ALSTabs/index.d.ts +5 -0
- package/dist/components/ALSTabs/index.d.ts.map +1 -0
- package/dist/components/ALSToast/index.d.ts +94 -0
- package/dist/components/ALSToast/index.d.ts.map +1 -0
- package/dist/components/ALSToggle/index.d.ts +5 -0
- package/dist/components/ALSToggle/index.d.ts.map +1 -0
- package/dist/components/ALSToggleGroup/index.d.ts +5 -0
- package/dist/components/ALSToggleGroup/index.d.ts.map +1 -0
- package/dist/components/ALSToolbar/index.d.ts +5 -0
- package/dist/components/ALSToolbar/index.d.ts.map +1 -0
- package/dist/components/ALSTooltip/index.d.ts +5 -0
- package/dist/components/ALSTooltip/index.d.ts.map +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/layout/MainLayout/index.d.ts +68 -0
- package/dist/layout/MainLayout/index.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Toast } from "@base-ui-components/react/toast";
|
|
3
|
+
export type ToastType = "success" | "error" | "warning" | "info" | "default";
|
|
4
|
+
interface ALSToastProviderProps {
|
|
5
|
+
/** Maximum number of toasts that can be displayed at once */
|
|
6
|
+
limit?: number;
|
|
7
|
+
/** Default timeout in ms before auto-dismiss (0 = no auto-dismiss) */
|
|
8
|
+
timeout?: number;
|
|
9
|
+
/** Global toast manager for use outside React components */
|
|
10
|
+
toastManager?: ReturnType<typeof Toast.createToastManager>;
|
|
11
|
+
/** Children */
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
interface ALSToastPortalProps {
|
|
15
|
+
/** Container element to portal into */
|
|
16
|
+
container?: HTMLElement | null;
|
|
17
|
+
/** Children */
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
interface ALSToastViewportProps {
|
|
21
|
+
/** Additional class name */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** Inline styles */
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
interface ALSToastRootProps {
|
|
27
|
+
/** The toast object to render (required) */
|
|
28
|
+
toast: any;
|
|
29
|
+
/** Direction(s) in which the toast can be swiped to dismiss */
|
|
30
|
+
swipeDirection?: "left" | "right" | "up" | "down" | ("left" | "right" | "up" | "down")[];
|
|
31
|
+
/** Additional class name */
|
|
32
|
+
className?: string;
|
|
33
|
+
/** Inline styles */
|
|
34
|
+
style?: React.CSSProperties;
|
|
35
|
+
/** Children */
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
}
|
|
38
|
+
interface ALSToastContentProps {
|
|
39
|
+
/** Additional class name */
|
|
40
|
+
className?: string;
|
|
41
|
+
/** Inline styles */
|
|
42
|
+
style?: React.CSSProperties;
|
|
43
|
+
/** Children */
|
|
44
|
+
children: React.ReactNode;
|
|
45
|
+
}
|
|
46
|
+
interface ALSToastTitleProps {
|
|
47
|
+
/** Additional class name */
|
|
48
|
+
className?: string;
|
|
49
|
+
/** Inline styles */
|
|
50
|
+
style?: React.CSSProperties;
|
|
51
|
+
/** Children */
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
interface ALSToastDescriptionProps {
|
|
55
|
+
/** Additional class name */
|
|
56
|
+
className?: string;
|
|
57
|
+
/** Inline styles */
|
|
58
|
+
style?: React.CSSProperties;
|
|
59
|
+
/** Children */
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
}
|
|
62
|
+
interface ALSToastActionProps {
|
|
63
|
+
/** Additional class name */
|
|
64
|
+
className?: string;
|
|
65
|
+
/** Inline styles */
|
|
66
|
+
style?: React.CSSProperties;
|
|
67
|
+
/** Children */
|
|
68
|
+
children?: React.ReactNode;
|
|
69
|
+
/** Click handler */
|
|
70
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
71
|
+
}
|
|
72
|
+
interface ALSToastCloseProps {
|
|
73
|
+
/** Additional class name */
|
|
74
|
+
className?: string;
|
|
75
|
+
/** Inline styles */
|
|
76
|
+
style?: React.CSSProperties;
|
|
77
|
+
/** Children (optional, defaults to X icon) */
|
|
78
|
+
children?: React.ReactNode;
|
|
79
|
+
}
|
|
80
|
+
export declare const ALSToast: {
|
|
81
|
+
Provider: React.FC<ALSToastProviderProps>;
|
|
82
|
+
Portal: React.FC<ALSToastPortalProps>;
|
|
83
|
+
Viewport: React.ForwardRefExoticComponent<ALSToastViewportProps & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
+
Root: React.ForwardRefExoticComponent<ALSToastRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
Content: React.ForwardRefExoticComponent<ALSToastContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
Title: React.ForwardRefExoticComponent<ALSToastTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
87
|
+
Description: React.ForwardRefExoticComponent<ALSToastDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
88
|
+
Action: React.ForwardRefExoticComponent<ALSToastActionProps & React.RefAttributes<HTMLButtonElement>>;
|
|
89
|
+
Close: React.ForwardRefExoticComponent<ALSToastCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
90
|
+
useToastManager: typeof Toast.useToastManager;
|
|
91
|
+
createToastManager: typeof Toast.createToastManager;
|
|
92
|
+
};
|
|
93
|
+
export type { ALSToastProviderProps, ALSToastPortalProps, ALSToastViewportProps, ALSToastRootProps, ALSToastContentProps, ALSToastTitleProps, ALSToastDescriptionProps, ALSToastActionProps, ALSToastCloseProps, };
|
|
94
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSToast/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAOxD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAM7E,UAAU,qBAAqB;IAC3B,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,OAAO,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,CAAC,SAAS,CAAC;CAC7B;AAsBD,UAAU,wBAAwB;IAC9B,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,eAAe;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AA2BD,UAAU,mBAAmB;IACzB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;CACxD;AA2BD,UAAU,kBAAkB;IACxB,4BAA4B;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB;IACpB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,8CAA8C;IAC9C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AA6CD,eAAO,MAAM,QAAQ;;;;;;;;;;;;CAYpB,CAAC;AAEF,YAAY,EACR,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,kBAAkB,GACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSToggle/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;CAE9B;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,2CAM9C;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSToggleGroup/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAmB;CAEnC;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,2CAMxD;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSToolbar/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;CAE/B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAMhD;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ALSTooltip/index.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,eAAe;CAE/B;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAMhD;AAED,eAAe,UAAU,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export * from './components/ALSAccordion';
|
|
2
|
+
export * from './components/ALSAlertDialog';
|
|
3
|
+
export * from './components/ALSAutocomplete';
|
|
4
|
+
export * from './components/ALSAvatar';
|
|
5
|
+
export * from './components/ALSButton';
|
|
6
|
+
export * from './components/ALSCheckbox';
|
|
7
|
+
export * from './components/ALSCheckboxGroup';
|
|
8
|
+
export * from './components/ALSCollapsible';
|
|
9
|
+
export * from './components/ALSCombobox';
|
|
10
|
+
export * from './components/ALSContextMenu';
|
|
11
|
+
export * from './components/ALSDialog';
|
|
12
|
+
export * from './components/ALSField';
|
|
13
|
+
export * from './components/ALSFieldset';
|
|
14
|
+
export * from './components/ALSForm';
|
|
15
|
+
export * from './components/ALSInput';
|
|
16
|
+
export * from './components/ALSMenu';
|
|
17
|
+
export * from './components/ALSMenubar';
|
|
18
|
+
export * from './components/ALSMeter';
|
|
19
|
+
export * from './components/ALSNavigationMenu';
|
|
20
|
+
export * from './components/ALSNumberField';
|
|
21
|
+
export * from './components/ALSPopover';
|
|
22
|
+
export * from './components/ALSPreviewCard';
|
|
23
|
+
export * from './components/ALSProgress';
|
|
24
|
+
export * from './components/ALSRadio';
|
|
25
|
+
export * from './components/ALSScrollArea';
|
|
26
|
+
export * from './components/ALSSelect';
|
|
27
|
+
export * from './components/ALSSeparator';
|
|
28
|
+
export * from './components/ALSSlider';
|
|
29
|
+
export * from './components/ALSSwitch';
|
|
30
|
+
export * from './components/ALSTabs';
|
|
31
|
+
export * from './components/ALSToast';
|
|
32
|
+
export * from './components/ALSToggle';
|
|
33
|
+
export * from './components/ALSToggleGroup';
|
|
34
|
+
export * from './components/ALSToolbar';
|
|
35
|
+
export * from './components/ALSTooltip';
|
|
36
|
+
export * from './layout/MainLayout';
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type AsidePosition = "left" | "right";
|
|
3
|
+
type HeaderBehavior = "fixed" | "sticky" | "relative";
|
|
4
|
+
type AsideVariant = "fixed" | "relative";
|
|
5
|
+
type FooterVariant = "fixed" | "sticky" | "relative";
|
|
6
|
+
interface MainLayoutProps {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
asidePosition?: AsidePosition;
|
|
10
|
+
}
|
|
11
|
+
interface MainLayoutHeaderProps {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
behavior?: HeaderBehavior;
|
|
15
|
+
scrollThreshold?: number;
|
|
16
|
+
elevated?: boolean;
|
|
17
|
+
transparent?: boolean;
|
|
18
|
+
height?: number | string;
|
|
19
|
+
}
|
|
20
|
+
interface MainLayoutAsideProps {
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
collapsed?: boolean;
|
|
24
|
+
hidden?: boolean;
|
|
25
|
+
variant?: AsideVariant;
|
|
26
|
+
width?: number | string;
|
|
27
|
+
collapsedWidth?: number | string;
|
|
28
|
+
resizable?: boolean;
|
|
29
|
+
minWidth?: number;
|
|
30
|
+
maxWidth?: number;
|
|
31
|
+
onWidthChange?: (width: number) => void;
|
|
32
|
+
overlay?: boolean;
|
|
33
|
+
onOverlayClose?: () => void;
|
|
34
|
+
/** Content to show when collapsed (icons only) */
|
|
35
|
+
collapsedContent?: React.ReactNode;
|
|
36
|
+
/** Animation duration in ms */
|
|
37
|
+
transitionDuration?: number;
|
|
38
|
+
/** Whether aside should span full viewport height */
|
|
39
|
+
fullHeight?: boolean;
|
|
40
|
+
}
|
|
41
|
+
interface MainLayoutMainProps {
|
|
42
|
+
children: React.ReactNode;
|
|
43
|
+
className?: string;
|
|
44
|
+
maxWidth?: number | string;
|
|
45
|
+
centered?: boolean;
|
|
46
|
+
padding?: "none" | "sm" | "md" | "lg" | "xl";
|
|
47
|
+
}
|
|
48
|
+
interface MainLayoutFooterProps {
|
|
49
|
+
children: React.ReactNode;
|
|
50
|
+
className?: string;
|
|
51
|
+
variant?: FooterVariant;
|
|
52
|
+
height?: number | string;
|
|
53
|
+
}
|
|
54
|
+
interface LayoutContextValue {
|
|
55
|
+
asidePosition: AsidePosition;
|
|
56
|
+
asideHidden: boolean;
|
|
57
|
+
asideCollapsed: boolean;
|
|
58
|
+
asideFullHeight: boolean;
|
|
59
|
+
headerBehavior: HeaderBehavior;
|
|
60
|
+
scrollY: number;
|
|
61
|
+
mainRef: React.RefObject<HTMLElement | null> | null;
|
|
62
|
+
registerAside: (collapsed: boolean, hidden: boolean, fullHeight: boolean) => void;
|
|
63
|
+
registerHeader: (behavior: HeaderBehavior) => void;
|
|
64
|
+
}
|
|
65
|
+
export declare const useLayout: () => LayoutContextValue;
|
|
66
|
+
export declare const MainLayout: any;
|
|
67
|
+
export type { MainLayoutProps, MainLayoutHeaderProps, MainLayoutAsideProps, MainLayoutMainProps, MainLayoutFooterProps, AsidePosition, HeaderBehavior, AsideVariant, FooterVariant, };
|
|
68
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/layout/MainLayout/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,C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oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,aAAa,GAChB,CAAC"}
|
package/dist/vite.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@als-tp/als-react-ts-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A comprehensive React TypeScript UI component library built with Base UI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"typescript",
|
|
8
|
+
"ui",
|
|
9
|
+
"components",
|
|
10
|
+
"base-ui",
|
|
11
|
+
"component-library"
|
|
12
|
+
],
|
|
13
|
+
"author": "ALS TP",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/als-tp/als-react-ts-ui.git"
|
|
18
|
+
},
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/als-tp/als-react-ts-ui/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/als-tp/als-react-ts-ui#readme",
|
|
23
|
+
"main": "./dist/als-react-ts-ui.cjs",
|
|
24
|
+
"module": "./dist/als-react-ts-ui.js",
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"import": "./dist/als-react-ts-ui.js",
|
|
30
|
+
"require": "./dist/als-react-ts-ui.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./styles": "./dist/als-react-ts-ui.css"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"README.md",
|
|
37
|
+
"LICENSE"
|
|
38
|
+
],
|
|
39
|
+
"type": "module",
|
|
40
|
+
"scripts": {
|
|
41
|
+
"dev": "vite",
|
|
42
|
+
"build": "tsc -b && vite build",
|
|
43
|
+
"build:lib": "vite build && tsc -p tsconfig.build.json --emitDeclarationOnly",
|
|
44
|
+
"lint": "eslint .",
|
|
45
|
+
"preview": "vite preview",
|
|
46
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
47
|
+
"storybook:build": "storybook build",
|
|
48
|
+
"storybook:serve": "storybook serve",
|
|
49
|
+
"build-storybook": "storybook build",
|
|
50
|
+
"prepublishOnly": "pnpm run build:lib"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@base-ui-components/react": "^1.0.0-beta.7",
|
|
54
|
+
"react": "^19.0.0",
|
|
55
|
+
"react-dom": "^19.0.0"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"clsx": "2.1.1",
|
|
59
|
+
"lucide-react": "0.555.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
63
|
+
"@eslint/js": "^9.39.1",
|
|
64
|
+
"@storybook/addon-a11y": "^10.1.0",
|
|
65
|
+
"@storybook/addon-docs": "^10.1.0",
|
|
66
|
+
"@storybook/addon-vitest": "^10.1.0",
|
|
67
|
+
"@storybook/react-vite": "10.1.0",
|
|
68
|
+
"@types/node": "^24.10.1",
|
|
69
|
+
"@types/react": "^19.2.5",
|
|
70
|
+
"@types/react-dom": "^19.2.3",
|
|
71
|
+
"@vitejs/plugin-react": "^5.1.1",
|
|
72
|
+
"@vitest/browser-playwright": "^4.0.14",
|
|
73
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
74
|
+
"@base-ui-components/react": "1.0.0-beta.7",
|
|
75
|
+
"react": "^19.2.0",
|
|
76
|
+
"react-dom": "^19.2.0",
|
|
77
|
+
"eslint": "^9.39.1",
|
|
78
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
79
|
+
"eslint-plugin-react-refresh": "^0.4.24",
|
|
80
|
+
"eslint-plugin-storybook": "^10.1.0",
|
|
81
|
+
"globals": "^16.5.0",
|
|
82
|
+
"playwright": "^1.57.0",
|
|
83
|
+
"storybook": "^10.1.0",
|
|
84
|
+
"typescript": "~5.9.3",
|
|
85
|
+
"typescript-eslint": "^8.46.4",
|
|
86
|
+
"vite": "^7.2.4",
|
|
87
|
+
"vitest": "^4.0.14"
|
|
88
|
+
}
|
|
89
|
+
}
|