demio-ui 1.0.26 → 1.0.27

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,10 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ children: React.ReactNode;
4
+ type?: 'hint' | 'error';
5
+ };
6
+ /**
7
+ * InputHint component documentation.
8
+ **/
9
+ declare function InputHint({ children, type }: Props): React.JSX.Element;
10
+ export default InputHint;
@@ -0,0 +1 @@
1
+ export { default } from './InputHint';
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  type Props = {
3
3
  htmlFor: string;
4
4
  children: React.ReactNode;
5
+ className?: string;
5
6
  };
6
- declare function Label({ htmlFor, children }: Props): React.JSX.Element;
7
+ declare function Label({ htmlFor, children, className }: Props): React.JSX.Element;
7
8
  export default Label;
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ type Props = {
3
+ items: {
4
+ id: string;
5
+ label: string;
6
+ value: string;
7
+ disabled?: boolean;
8
+ }[];
9
+ error?: string;
10
+ defaultValue?: string;
11
+ ariaLabel?: string;
12
+ hint?: string;
13
+ onChange?: (value: string) => void;
14
+ disabled?: boolean;
15
+ };
16
+ declare function RadioGroup({ items, error, defaultValue, ariaLabel, hint, onChange, disabled, ...props }: Props): React.JSX.Element;
17
+ export default RadioGroup;
@@ -0,0 +1 @@
1
+ export { default } from './RadioGroup';
package/dist/types.d.ts CHANGED
@@ -125,8 +125,9 @@ declare const SelectItemText: React__default.ForwardRefExoticComponent<SelectPri
125
125
  type Props$3 = {
126
126
  htmlFor: string;
127
127
  children: React__default.ReactNode;
128
+ className?: string;
128
129
  };
129
- declare function Label({ htmlFor, children }: Props$3): React__default.JSX.Element;
130
+ declare function Label({ htmlFor, children, className }: Props$3): React__default.JSX.Element;
130
131
 
131
132
  type Props$2 = {
132
133
  children: React__default.ReactNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "demio-ui",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "",
5
5
  "repository": {
6
6
  "type": "git",
@@ -48,6 +48,7 @@
48
48
  "@radix-ui/react-dialog": "^1.0.4",
49
49
  "@radix-ui/react-label": "^2.0.2",
50
50
  "@radix-ui/react-progress": "^1.0.3",
51
+ "@radix-ui/react-radio-group": "^1.1.3",
51
52
  "@radix-ui/react-select": "^1.2.2",
52
53
  "@radix-ui/react-switch": "^1.0.3",
53
54
  "@radix-ui/react-tabs": "^1.0.4",