@iota/apps-ui-kit 0.7.2 → 0.8.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/CHANGELOG.md +30 -0
- package/dist/index.d.ts +18 -4
- package/dist/index.es.js +555 -541
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +8 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -6
- package/src/lib/components/atoms/button/Button.tsx +48 -38
- package/src/lib/components/atoms/radio-button/RadioButton.tsx +52 -12
- package/src/lib/components/molecules/account/Account.tsx +41 -38
- package/src/lib/components/molecules/visual-asset-card/VisualAssetCard.tsx +5 -3
- package/src/lib/index.ts +0 -1
- package/src/lib/styles/base.css +7 -0
- package/src/storybook/stories/atoms/RadioButton.stories.tsx +19 -0
- package/src/lib/utils/format.ts +0 -8
- package/src/lib/utils/index.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 147c97e: Update repository URLs.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [147c97e]
|
|
12
|
+
- @iota/apps-ui-icons@0.6.0
|
|
13
|
+
|
|
14
|
+
## 0.7.4
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- f1c52c0: Add description and supporting label for RadioButton
|
|
19
|
+
- ffc8261: add ref to Button component
|
|
20
|
+
- abfff2a: remove format from ui-kit
|
|
21
|
+
- Updated dependencies [83fd8ac]
|
|
22
|
+
- @iota/apps-ui-icons@0.5.0
|
|
23
|
+
|
|
24
|
+
## 0.7.3
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- 6bfb900: Avoid overflowing situations in components
|
|
29
|
+
- 6ce4a20: improve components for names compatibility
|
|
30
|
+
- Updated dependencies [65fafe4]
|
|
31
|
+
- @iota/apps-ui-icons@0.4.2
|
|
32
|
+
|
|
3
33
|
## 0.7.2
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ export declare interface BaseInputProps extends InputWrapperProps {
|
|
|
265
265
|
isVisibilityToggleEnabled?: boolean;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
export declare
|
|
268
|
+
export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLButtonElement>>;
|
|
269
269
|
|
|
270
270
|
export declare enum ButtonHtmlType {
|
|
271
271
|
Button = "button",
|
|
@@ -1250,13 +1250,29 @@ declare interface PlaceholderProps {
|
|
|
1250
1250
|
|
|
1251
1251
|
declare type PropsFromButtonElement = Omit<React.HTMLProps<HTMLButtonElement>, 'type'>;
|
|
1252
1252
|
|
|
1253
|
-
export declare function RadioButton({ label, isChecked, isDisabled, onChange, }: RadioButtonProps): React.JSX.Element;
|
|
1253
|
+
export declare function RadioButton({ id, name, label, supportingLabel, body, isChecked, isDisabled, onChange, }: RadioButtonProps): React.JSX.Element;
|
|
1254
1254
|
|
|
1255
1255
|
declare interface RadioButtonProps {
|
|
1256
|
+
/**
|
|
1257
|
+
* The id of the radio button.
|
|
1258
|
+
*/
|
|
1259
|
+
id?: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* The name of the radio button.
|
|
1262
|
+
*/
|
|
1263
|
+
name?: string;
|
|
1256
1264
|
/**
|
|
1257
1265
|
* The label of the radio button.
|
|
1258
1266
|
*/
|
|
1259
1267
|
label: string;
|
|
1268
|
+
/**
|
|
1269
|
+
* Supporting text for the label.
|
|
1270
|
+
*/
|
|
1271
|
+
supportingLabel?: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* The body text of the radio button.
|
|
1274
|
+
*/
|
|
1275
|
+
body?: string;
|
|
1260
1276
|
/**
|
|
1261
1277
|
* The state of the radio button.
|
|
1262
1278
|
*/
|
|
@@ -1846,8 +1862,6 @@ declare interface TooltipProps {
|
|
|
1846
1862
|
closeDelay?: number;
|
|
1847
1863
|
}
|
|
1848
1864
|
|
|
1849
|
-
export declare function truncate(value: string, startLength?: number, endLength?: number): string;
|
|
1850
|
-
|
|
1851
1865
|
export declare const uiKitResponsivePreset: Config;
|
|
1852
1866
|
|
|
1853
1867
|
export declare const uiKitStaticPreset: Config;
|