@iota/apps-ui-kit 0.9.4 → 0.10.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 CHANGED
@@ -1,5 +1,25 @@
1
1
  # @iota/apps-ui-kit
2
2
 
3
+ ## 0.10.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c1b33e9: add date picker component
8
+
9
+ ### Patch Changes
10
+
11
+ - e5a945f: Allow react components to be passed to LabelText
12
+ - 1ac779f: Add outlined type badge
13
+ - 5942eac: Tooltip can have links in text prop
14
+
15
+ ## 0.9.5
16
+
17
+ ### Patch Changes
18
+
19
+ - e19cf85: add badge size property
20
+ - Updated dependencies [ced5c54]
21
+ - @iota/apps-ui-icons@0.7.5
22
+
3
23
  ## 0.9.4
4
24
 
5
25
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -186,7 +186,7 @@ export declare interface AssetMediaRendererProps extends VideoProps {
186
186
  showFallback?: boolean;
187
187
  }
188
188
 
189
- export declare function Badge({ type, label }: BadgeProps): React.JSX.Element;
189
+ export declare function Badge({ type, label, size }: BadgeProps): React.JSX.Element;
190
190
 
191
191
  declare interface BadgeProps {
192
192
  /**
@@ -197,6 +197,15 @@ declare interface BadgeProps {
197
197
  * The label of the badge.
198
198
  */
199
199
  label?: string;
200
+ /**
201
+ * The size of the badge
202
+ */
203
+ size?: BadgeSize;
204
+ }
205
+
206
+ export declare enum BadgeSize {
207
+ Medium = "medium",
208
+ Small = "small"
200
209
  }
201
210
 
202
211
  export declare enum BadgeType {
@@ -205,6 +214,7 @@ export declare enum BadgeType {
205
214
  PrimarySoft = "primary-soft",
206
215
  Success = "success",
207
216
  Warning = "warning",
217
+ Outlined = "outlined",
208
218
  Error = "error"
209
219
  }
210
220
 
@@ -545,6 +555,57 @@ declare interface CustomAssetDisplayProps {
545
555
  renderAsset?: React.ReactNode;
546
556
  }
547
557
 
558
+ export declare function DatePicker({ value, onChange, minDate, maxDate, dateFormat, label, caption, errorMessage, disabled, placeholder, }: DatePickerProps): React.JSX.Element;
559
+
560
+ export declare enum DatePickerFormat {
561
+ DayMonthYear = "DD/MM/YYYY",
562
+ MonthDayYear = "MM/DD/YYYY",
563
+ YearMonthDay = "YYYY/MM/DD"
564
+ }
565
+
566
+ export declare interface DatePickerProps {
567
+ /**
568
+ * The currently selected date value.
569
+ */
570
+ value?: Date;
571
+ /**
572
+ * Callback fired when the user selects a date.
573
+ */
574
+ onChange?: (date: Date) => void;
575
+ /**
576
+ * The earliest selectable date (inclusive).
577
+ */
578
+ minDate?: Date;
579
+ /**
580
+ * The latest selectable date (inclusive).
581
+ */
582
+ maxDate?: Date;
583
+ /**
584
+ * Controls how the selected date is displayed in the trigger field.
585
+ */
586
+ dateFormat?: DatePickerFormat;
587
+ /**
588
+ * The field label shown above the trigger.
589
+ */
590
+ label?: string;
591
+ /**
592
+ * Caption text shown below the trigger.
593
+ */
594
+ caption?: string;
595
+ /**
596
+ * Error message; overrides caption when set.
597
+ */
598
+ errorMessage?: string;
599
+ /**
600
+ * Whether the field is disabled.
601
+ */
602
+ disabled?: boolean;
603
+ /**
604
+ * Placeholder text shown when no date is selected.
605
+ */
606
+ placeholder?: string;
607
+ }
608
+
548
609
  export declare const Dialog: ({ open, onOpenChange, children, ...props }: React_2.ComponentPropsWithoutRef<typeof RadixDialog.Root>) => JSX_2.Element;
549
610
 
550
611
  export declare const DialogBody: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
@@ -992,7 +1053,7 @@ declare interface KeyValueProps {
992
1053
  /**
993
1054
  * The tooltip text.
994
1055
  */
995
- tooltipText?: string;
1056
+ tooltipText?: ReactNode;
996
1057
  /**
997
1058
  * The supporting label of the KeyValue (optional).
998
1059
  */
@@ -1058,7 +1119,7 @@ declare interface LabelTextProps {
1058
1119
  /**
1059
1120
  * The text of the LabelText.
1060
1121
  */
1061
- text: string;
1122
+ text: React.ReactNode;
1062
1123
  /**
1063
1124
  * The tooltip position.
1064
1125
  */
@@ -1841,7 +1902,7 @@ export declare enum TooltipPosition {
1841
1902
  }
1842
1903
 
1843
1904
  declare interface TooltipProps {
1844
- text: string;
1905
+ text: ReactNode;
1845
1906
  position?: TooltipPosition;
1846
1907
  maxWidth?: string;
1847
1908
  offset?: number;