@datum-cloud/datum-ui 0.1.0 → 0.2.0-alpha.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/dist/chunk-CtajNgzt.mjs +36 -0
- package/dist/close.icon-DgjsP0sw.mjs +23 -0
- package/dist/close.icon-DgjsP0sw.mjs.map +1 -0
- package/dist/components/index.d.mts +27 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/components/index.mjs +252 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/datum.provider-CsG2KNNc.d.mts +30 -0
- package/dist/datum.provider-CsG2KNNc.d.mts.map +1 -0
- package/dist/datum.provider-D6VMjSV0.mjs +38 -0
- package/dist/datum.provider-D6VMjSV0.mjs.map +1 -0
- package/dist/fonts/AllianceNo1-Medium.ttf +0 -0
- package/dist/fonts/AllianceNo1-Regular.ttf +0 -0
- package/dist/fonts/AllianceNo1-SemiBold.ttf +0 -0
- package/dist/fonts/FTRegolaNeue-Medium.woff2 +0 -0
- package/dist/fonts/FTRegolaNeue-Regular.woff2 +0 -0
- package/dist/fonts/FTRegolaNeue-Semibold.woff2 +0 -0
- package/dist/hooks/index.d.mts +3 -0
- package/dist/hooks/index.mjs +5 -0
- package/dist/icon-wrapper-BTllM5Re.mjs +62 -0
- package/dist/icon-wrapper-BTllM5Re.mjs.map +1 -0
- package/dist/icons/index.d.mts +3 -0
- package/dist/icons/index.mjs +5 -0
- package/dist/index-DH2XEEjO.d.mts +3995 -0
- package/dist/index-DH2XEEjO.d.mts.map +1 -0
- package/dist/index.d.mts +29 -50
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +251 -3479
- package/dist/index.mjs.map +1 -0
- package/dist/providers/index.d.mts +3 -0
- package/dist/providers/index.mjs +4 -0
- package/dist/spinner.icon-q9zisVlw.d.mts +46 -0
- package/dist/spinner.icon-q9zisVlw.d.mts.map +1 -0
- package/dist/style.css +7096 -0
- package/dist/style.css.map +1 -0
- package/dist/theme-script-B_TkiYs4.mjs +8841 -0
- package/dist/theme-script-B_TkiYs4.mjs.map +1 -0
- package/dist/theme.provider-DpFLwtHe.mjs +135 -0
- package/dist/theme.provider-DpFLwtHe.mjs.map +1 -0
- package/dist/types-BoL47uxV.d.mts +34 -0
- package/dist/types-BoL47uxV.d.mts.map +1 -0
- package/dist/use-copy-to-clipboard-D5U8bWsn.mjs +117 -0
- package/dist/use-copy-to-clipboard-D5U8bWsn.mjs.map +1 -0
- package/dist/use-debounce-BYB-jPeX.mjs +25 -0
- package/dist/use-debounce-BYB-jPeX.mjs.map +1 -0
- package/dist/use-debounce-Dg9zNz9U.d.mts +19 -0
- package/dist/use-debounce-Dg9zNz9U.d.mts.map +1 -0
- package/dist/utils/index.d.mts +3 -0
- package/dist/utils/index.mjs +4 -0
- package/package.json +129 -50
- package/LICENSE +0 -21
- package/README.md +0 -42
- package/dist/index.d.ts +0 -52
- package/dist/index.js +0 -3529
- package/src/styles/custom.css +0 -27
- package/src/styles/fonts.css +0 -51
- package/src/styles/root.css +0 -28
- package/src/styles/themes/alpha.css +0 -421
- package/src/styles/tokens/brand-tokens.css +0 -57
- package/src/styles/tokens/figma-tokens.css +0 -624
package/README.md
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# @datum-cloud/datum-ui
|
|
2
|
-
|
|
3
|
-
A React component library by Datum.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @datum-cloud/datum-ui
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Local Development
|
|
12
|
-
|
|
13
|
-
From this folder
|
|
14
|
-
```bun link```
|
|
15
|
-
|
|
16
|
-
From your project folder
|
|
17
|
-
```bun link @datum-cloud/datum-ui```
|
|
18
|
-
|
|
19
|
-
## Usage
|
|
20
|
-
|
|
21
|
-
Import components and the base styles in your app entry point:
|
|
22
|
-
|
|
23
|
-
```tsx
|
|
24
|
-
// Import styles once at the root of your app
|
|
25
|
-
import "@datum-cloud/datum-ui/styles";
|
|
26
|
-
|
|
27
|
-
// Import components
|
|
28
|
-
import { Button } from "@datum-cloud/datum-ui";
|
|
29
|
-
|
|
30
|
-
export default function App() {
|
|
31
|
-
return <Button type="primary">Click me</Button>;
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Peer Dependencies
|
|
36
|
-
|
|
37
|
-
- **React 18+** (required)
|
|
38
|
-
- **react-router ^7.0.0** (optional — only needed if you use routing-aware components)
|
|
39
|
-
|
|
40
|
-
## License
|
|
41
|
-
|
|
42
|
-
MIT
|
package/dist/index.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
-
import * as React$1 from 'react';
|
|
3
|
-
import { VariantProps } from 'class-variance-authority';
|
|
4
|
-
import { LinkProps } from 'react-router';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import { LucideProps, LucideIcon } from 'lucide-react';
|
|
7
|
-
export { cn } from '@repo/shadcn/lib/utils';
|
|
8
|
-
|
|
9
|
-
declare const buttonVariants: (props?: ({
|
|
10
|
-
type?: "primary" | "secondary" | "tertiary" | "quaternary" | "warning" | "danger" | "success" | null | undefined;
|
|
11
|
-
theme?: "link" | "solid" | "light" | "outline" | "borderless" | null | undefined;
|
|
12
|
-
size?: "icon" | "link" | "small" | "xs" | "default" | "large" | null | undefined;
|
|
13
|
-
block?: boolean | null | undefined;
|
|
14
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
|
-
interface ButtonProps extends Omit<React$1.ButtonHTMLAttributes<HTMLButtonElement>, 'type'>, VariantProps<typeof buttonVariants> {
|
|
16
|
-
asChild?: boolean;
|
|
17
|
-
loading?: boolean;
|
|
18
|
-
icon?: React$1.ReactNode;
|
|
19
|
-
iconPosition?: 'left' | 'right';
|
|
20
|
-
loadingIcon?: React$1.ReactNode;
|
|
21
|
-
htmlType?: 'button' | 'submit' | 'reset';
|
|
22
|
-
}
|
|
23
|
-
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
|
|
25
|
-
interface LinkButtonProps extends Omit<LinkProps, 'type'>, VariantProps<typeof buttonVariants> {
|
|
26
|
-
icon?: React$1.ReactNode;
|
|
27
|
-
iconPosition?: 'left' | 'right';
|
|
28
|
-
}
|
|
29
|
-
declare const LinkButton: React$1.ForwardRefExoticComponent<LinkButtonProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
30
|
-
|
|
31
|
-
type IconProps = LucideProps & {
|
|
32
|
-
icon: LucideIcon;
|
|
33
|
-
};
|
|
34
|
-
declare function Icon({ icon: IconComponent, strokeWidth, absoluteStrokeWidth, size, ...props }: IconProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
|
|
36
|
-
declare const spinnerVariants: (props?: ({
|
|
37
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "9xl" | null | undefined;
|
|
38
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
39
|
-
interface SpinnerIconProps extends React.SVGProps<SVGSVGElement>, VariantProps<typeof spinnerVariants> {
|
|
40
|
-
/** Color of the track (background circle) */
|
|
41
|
-
trackClassName?: string;
|
|
42
|
-
/** Color of the spinning indicator */
|
|
43
|
-
indicatorClassName?: string;
|
|
44
|
-
}
|
|
45
|
-
declare const SpinnerIcon: ({ size, className, trackClassName, indicatorClassName, ...props }: SpinnerIconProps) => react_jsx_runtime.JSX.Element;
|
|
46
|
-
|
|
47
|
-
declare const CloseIcon: ({ className, fill, }: {
|
|
48
|
-
className?: string;
|
|
49
|
-
fill?: string;
|
|
50
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
51
|
-
|
|
52
|
-
export { Button, type ButtonProps, CloseIcon, Icon, LinkButton, type LinkButtonProps, SpinnerIcon, type SpinnerIconProps, buttonVariants };
|