@hexure/ui 1.1.0 → 1.1.2
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/README.md +68 -20
- package/dist/cjs/index.js +27 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +1 -1
- package/dist/cjs/types/components/Modal/Modal.d.ts +2 -2
- package/dist/cjs/types/components/Multiselect/MultiSelect.d.ts +1 -1
- package/dist/esm/index.js +27 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/Modal/Modal.d.ts +2 -2
- package/dist/esm/types/components/Multiselect/MultiSelect.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +8 -8
|
@@ -13,7 +13,7 @@ export interface ButtonProps extends AccessibleProps {
|
|
|
13
13
|
/** If enabled, the small button format will be used. */
|
|
14
14
|
small?: boolean;
|
|
15
15
|
/** Define which button type to display. By default the Primary button will be used. */
|
|
16
|
-
type?: 'primary' | 'secondary';
|
|
16
|
+
type?: 'primary' | 'secondary' | 'red';
|
|
17
17
|
}
|
|
18
18
|
declare const Button: FC<ButtonProps>;
|
|
19
19
|
export default Button;
|
|
@@ -9,8 +9,8 @@ interface ButtonProps {
|
|
|
9
9
|
}
|
|
10
10
|
export interface ModalProps extends AccessibleProps {
|
|
11
11
|
primaryButton: ButtonProps;
|
|
12
|
-
secondaryButton
|
|
13
|
-
tertiaryButton
|
|
12
|
+
secondaryButton?: ButtonProps;
|
|
13
|
+
tertiaryButton?: ButtonProps;
|
|
14
14
|
maxWidth?: string | number;
|
|
15
15
|
/** It is used to pass child nodes, string values and number as child components. */
|
|
16
16
|
children: ReactNode;
|
|
@@ -8,7 +8,7 @@ export interface MultiSelectProps extends AccessibleProps {
|
|
|
8
8
|
readOnly?: boolean;
|
|
9
9
|
displayCount?: number;
|
|
10
10
|
invalid?: boolean;
|
|
11
|
-
onChange: (e
|
|
11
|
+
onChange: (e: any) => void;
|
|
12
12
|
options?: OptionProps[];
|
|
13
13
|
selected: (string | number)[];
|
|
14
14
|
showSelectAll?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ interface ButtonProps$1 extends AccessibleProps {
|
|
|
79
79
|
/** If enabled, the small button format will be used. */
|
|
80
80
|
small?: boolean;
|
|
81
81
|
/** Define which button type to display. By default the Primary button will be used. */
|
|
82
|
-
type?: 'primary' | 'secondary';
|
|
82
|
+
type?: 'primary' | 'secondary' | 'red';
|
|
83
83
|
}
|
|
84
84
|
declare const Button: FC<ButtonProps$1>;
|
|
85
85
|
|
|
@@ -183,8 +183,8 @@ interface ButtonProps {
|
|
|
183
183
|
}
|
|
184
184
|
interface ModalProps extends AccessibleProps {
|
|
185
185
|
primaryButton: ButtonProps;
|
|
186
|
-
secondaryButton
|
|
187
|
-
tertiaryButton
|
|
186
|
+
secondaryButton?: ButtonProps;
|
|
187
|
+
tertiaryButton?: ButtonProps;
|
|
188
188
|
maxWidth?: string | number;
|
|
189
189
|
/** It is used to pass child nodes, string values and number as child components. */
|
|
190
190
|
children: ReactNode;
|
|
@@ -203,7 +203,7 @@ interface MultiSelectProps extends AccessibleProps {
|
|
|
203
203
|
readOnly?: boolean;
|
|
204
204
|
displayCount?: number;
|
|
205
205
|
invalid?: boolean;
|
|
206
|
-
onChange: (e
|
|
206
|
+
onChange: (e: any) => void;
|
|
207
207
|
options?: OptionProps$2[];
|
|
208
208
|
selected: (string | number)[];
|
|
209
209
|
showSelectAll?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hexure/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A library of shared UI components used within Hexure products.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"rollup": "rollup -c rollup.config.mjs",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"styled-components": "^5.3.6"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"react": "
|
|
78
|
-
"react-dom": "
|
|
79
|
-
"@mdi/font": "
|
|
80
|
-
"@mdi/js": "
|
|
81
|
-
"@mdi/react": "
|
|
82
|
-
"moment": "
|
|
83
|
-
"numeral": "
|
|
77
|
+
"react": ">=16.14.0",
|
|
78
|
+
"react-dom": ">=16.14.0",
|
|
79
|
+
"@mdi/font": ">=7.0.96",
|
|
80
|
+
"@mdi/js": ">=7.1.96",
|
|
81
|
+
"@mdi/react": ">=1.6.1",
|
|
82
|
+
"moment": ">=2.29.4",
|
|
83
|
+
"numeral": ">=2.0.6"
|
|
84
84
|
},
|
|
85
85
|
"repository": {
|
|
86
86
|
"type": "git",
|