@iota/apps-ui-kit 0.9.5 → 0.10.1
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 +18 -0
- package/dist/index.d.ts +55 -3
- package/dist/index.es.js +5697 -6536
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +36 -40
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -1
- package/package.json +14 -18
- package/src/lib/components/atoms/badge/Badge.tsx +4 -3
- package/src/lib/components/atoms/badge/badge.classes.ts +3 -0
- package/src/lib/components/atoms/badge/badge.enums.ts +1 -0
- package/src/lib/components/atoms/key-value-info/KeyValueInfo.tsx +1 -1
- package/src/lib/components/atoms/label-text/LabelText.tsx +1 -1
- package/src/lib/components/atoms/tooltip/Tooltip.tsx +2 -2
- package/src/lib/components/molecules/date-picker/DatePicker.tsx +412 -0
- package/src/lib/components/molecules/date-picker/date-picker.classes.ts +42 -0
- package/src/lib/components/molecules/date-picker/date-picker.constants.ts +23 -0
- package/src/lib/components/molecules/date-picker/date-picker.enums.ts +8 -0
- package/src/lib/components/molecules/date-picker/date-picker.helpers.ts +67 -0
- package/src/lib/components/molecules/date-picker/index.ts +5 -0
- package/src/lib/components/molecules/index.ts +1 -0
- package/src/lib/styles/components.css +89 -0
- package/src/lib/styles/variables/dark-variables.css +15 -0
- package/src/lib/styles/variables/light-variables.css +15 -0
- package/src/lib/styles/variables/names-variables.css +15 -0
- package/src/storybook/stories/design-tokens/{colors.stories.mdx → colors.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{icons.stories.mdx → icons.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{typeset.stories.mdx → typeset.mdx} +1 -1
- package/src/storybook/stories/design-tokens/{variable-spacing.stories.mdx → variable-spacing.mdx} +1 -1
- package/src/storybook/stories/molecules/DatePicker.stories.tsx +132 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @iota/apps-ui-kit
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e3f680f: update storybook version
|
|
8
|
+
|
|
9
|
+
## 0.10.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c1b33e9: add date picker component
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- e5a945f: Allow react components to be passed to LabelText
|
|
18
|
+
- 1ac779f: Add outlined type badge
|
|
19
|
+
- 5942eac: Tooltip can have links in text prop
|
|
20
|
+
|
|
3
21
|
## 0.9.5
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -214,6 +214,7 @@ export declare enum BadgeType {
|
|
|
214
214
|
PrimarySoft = "primary-soft",
|
|
215
215
|
Success = "success",
|
|
216
216
|
Warning = "warning",
|
|
217
|
+
Outlined = "outlined",
|
|
217
218
|
Error = "error"
|
|
218
219
|
}
|
|
219
220
|
|
|
@@ -554,6 +555,57 @@ declare interface CustomAssetDisplayProps {
|
|
|
554
555
|
renderAsset?: React.ReactNode;
|
|
555
556
|
}
|
|
556
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
|
+
|
|
557
609
|
export declare const Dialog: ({ open, onOpenChange, children, ...props }: React_2.ComponentPropsWithoutRef<typeof RadixDialog.Root>) => JSX_2.Element;
|
|
558
610
|
|
|
559
611
|
export declare const DialogBody: React_2.ForwardRefExoticComponent<Omit<React_2.DetailedHTMLProps<React_2.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -1001,7 +1053,7 @@ declare interface KeyValueProps {
|
|
|
1001
1053
|
/**
|
|
1002
1054
|
* The tooltip text.
|
|
1003
1055
|
*/
|
|
1004
|
-
tooltipText?:
|
|
1056
|
+
tooltipText?: ReactNode;
|
|
1005
1057
|
/**
|
|
1006
1058
|
* The supporting label of the KeyValue (optional).
|
|
1007
1059
|
*/
|
|
@@ -1067,7 +1119,7 @@ declare interface LabelTextProps {
|
|
|
1067
1119
|
/**
|
|
1068
1120
|
* The text of the LabelText.
|
|
1069
1121
|
*/
|
|
1070
|
-
text:
|
|
1122
|
+
text: React.ReactNode;
|
|
1071
1123
|
/**
|
|
1072
1124
|
* The tooltip position.
|
|
1073
1125
|
*/
|
|
@@ -1850,7 +1902,7 @@ export declare enum TooltipPosition {
|
|
|
1850
1902
|
}
|
|
1851
1903
|
|
|
1852
1904
|
declare interface TooltipProps {
|
|
1853
|
-
text:
|
|
1905
|
+
text: ReactNode;
|
|
1854
1906
|
position?: TooltipPosition;
|
|
1855
1907
|
maxWidth?: string;
|
|
1856
1908
|
offset?: number;
|