@indxsearch/systm 1.2.6 → 2.0.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 +54 -0
- package/dist/components/Button/Button.d.ts +10 -2
- package/dist/index.es.js +172 -156
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Indx Design System License
|
|
2
|
+
|
|
3
|
+
Version 1.0
|
|
4
|
+
|
|
5
|
+
Copyright (c) Indx
|
|
6
|
+
|
|
7
|
+
## 1. Grant of License
|
|
8
|
+
|
|
9
|
+
Subject to the terms of this license, permission is hereby granted to any
|
|
10
|
+
person obtaining a copy of this software and associated files (the "Software")
|
|
11
|
+
to use, copy, modify, and distribute the Software **for non-commercial purposes only**.
|
|
12
|
+
|
|
13
|
+
This includes:
|
|
14
|
+
- Personal projects
|
|
15
|
+
- Internal company use
|
|
16
|
+
- Educational use
|
|
17
|
+
- Open-source projects
|
|
18
|
+
- Evaluation and prototyping
|
|
19
|
+
|
|
20
|
+
## 2. Restrictions
|
|
21
|
+
|
|
22
|
+
You may **not**, without prior written permission from Indx:
|
|
23
|
+
|
|
24
|
+
- Sell, license, or sublicense the Software
|
|
25
|
+
- Use the Software as part of a commercial product or service that is sold,
|
|
26
|
+
licensed, or offered for a fee
|
|
27
|
+
- Use the Software to create or offer a competing product or service
|
|
28
|
+
- Redistribute the Software as part of a UI kit, design system, or theme
|
|
29
|
+
- Use the Software in a way that implies endorsement by Indx
|
|
30
|
+
|
|
31
|
+
## 3. Branding
|
|
32
|
+
|
|
33
|
+
This license does not grant permission to use Indx trademarks, logos,
|
|
34
|
+
or brand identifiers except as included within the Software for
|
|
35
|
+
non-commercial use.
|
|
36
|
+
|
|
37
|
+
## 4. Attribution
|
|
38
|
+
|
|
39
|
+
You must retain all copyright notices and this license in any copies
|
|
40
|
+
or substantial portions of the Software.
|
|
41
|
+
|
|
42
|
+
## 5. Disclaimer
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
47
|
+
|
|
48
|
+
## 6. Termination
|
|
49
|
+
|
|
50
|
+
This license is automatically terminated if you violate its terms.
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
For commercial licensing inquiries, please contact: licensing@indx.dev
|
|
@@ -3,11 +3,19 @@ interface IconProps {
|
|
|
3
3
|
size?: string | number;
|
|
4
4
|
color?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type ButtonBaseProps = {
|
|
7
7
|
size?: 'micro' | 'default' | 'large';
|
|
8
8
|
variant?: 'primary' | 'secondary' | 'ghost';
|
|
9
9
|
iconLeft?: React.ReactElement<IconProps>;
|
|
10
10
|
iconRight?: React.ReactElement<IconProps>;
|
|
11
11
|
className?: string;
|
|
12
|
-
}
|
|
12
|
+
};
|
|
13
|
+
type ButtonAsButton = ButtonBaseProps & Omit<React.ComponentProps<'button'>, keyof ButtonBaseProps> & {
|
|
14
|
+
href?: never;
|
|
15
|
+
};
|
|
16
|
+
type ButtonAsLink = ButtonBaseProps & Omit<React.ComponentProps<'a'>, keyof ButtonBaseProps> & {
|
|
17
|
+
href: string;
|
|
18
|
+
};
|
|
19
|
+
export type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
20
|
+
export declare function Button(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
13
21
|
export {};
|