@navikt/ds-react 1.5.9-next.1 → 2.0.0-next.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/_docs.json +414 -23
- package/esm/accordion/Accordion.d.ts +17 -0
- package/esm/accordion/AccordionContent.d.ts +10 -0
- package/esm/accordion/AccordionHeader.d.ts +10 -0
- package/esm/accordion/AccordionItem.d.ts +26 -0
- package/esm/accordion/index.d.ts +1 -0
- package/esm/alert/Alert.d.ts +31 -0
- package/esm/alert/index.d.ts +2 -0
- package/esm/button/Button.d.ts +39 -0
- package/esm/button/index.d.ts +2 -0
- package/esm/chat/Bubble.d.ts +22 -0
- package/esm/chat/Chat.d.ts +38 -0
- package/esm/chat/index.d.ts +1 -0
- package/esm/chips/Chips.d.ts +17 -0
- package/esm/chips/Removable.d.ts +23 -0
- package/esm/chips/Toggle.d.ts +13 -0
- package/esm/chips/index.d.ts +1 -0
- package/esm/date/DateInput.d.ts +25 -0
- package/esm/date/datepicker/DatePicker.d.ts +90 -0
- package/esm/date/datepicker/DatePickerStandalone.d.ts +12 -0
- package/esm/date/datepicker/DayButton.d.ts +3 -0
- package/esm/date/datepicker/Head.d.ts +3 -0
- package/esm/date/datepicker/caption/Caption.d.ts +4 -0
- package/esm/date/datepicker/caption/DropdownCaption.d.ts +4 -0
- package/esm/date/datepicker/caption/index.d.ts +2 -0
- package/esm/date/hooks/index.d.ts +8 -0
- package/esm/date/hooks/useDateInputContext.d.ts +18 -0
- package/esm/date/hooks/useDatepicker.d.ts +63 -0
- package/esm/date/hooks/useMonthPicker.d.ts +58 -0
- package/esm/date/hooks/useRangeDatepicker.d.ts +53 -0
- package/esm/date/hooks/useSharedMonthContext.d.ts +21 -0
- package/esm/date/index.d.ts +6 -0
- package/esm/date/monthpicker/MonthButton.d.ts +11 -0
- package/esm/date/monthpicker/MonthCaption.d.ts +3 -0
- package/esm/date/monthpicker/MonthPicker.d.ts +85 -0
- package/esm/date/monthpicker/MonthPickerStandalone.d.ts +11 -0
- package/esm/date/monthpicker/MonthSelector.d.ts +3 -0
- package/esm/date/utils/check-dates.d.ts +4 -0
- package/esm/date/utils/dates-disabled.d.ts +1 -0
- package/esm/date/utils/format-date.d.ts +1 -0
- package/esm/date/utils/get-dates.d.ts +2 -0
- package/esm/date/utils/get-initial-year.d.ts +5 -0
- package/esm/date/utils/index.d.ts +10 -0
- package/esm/date/utils/is-match.d.ts +4 -0
- package/esm/date/utils/labels.d.ts +6 -0
- package/esm/date/utils/locale.d.ts +2 -0
- package/esm/date/utils/navigation.d.ts +2 -0
- package/esm/date/utils/parse-date.d.ts +3 -0
- package/esm/form/ConfirmationPanel.d.ts +22 -0
- package/esm/form/Fieldset/Fieldset.d.ts +42 -0
- package/esm/form/Fieldset/index.d.ts +1 -0
- package/esm/form/Fieldset/useFieldset.d.ts +14 -0
- package/esm/form/Select.d.ts +26 -0
- package/esm/form/Switch.d.ts +27 -0
- package/esm/form/TextField.d.ts +31 -0
- package/esm/form/Textarea.d.ts +48 -0
- package/esm/form/checkbox/Checkbox.d.ts +36 -0
- package/esm/form/checkbox/CheckboxGroup.d.ts +28 -0
- package/esm/form/checkbox/index.d.ts +2 -0
- package/esm/form/checkbox/useCheckbox.d.ts +21 -0
- package/esm/form/error-summary/ErrorSummary.d.ts +27 -0
- package/esm/form/error-summary/ErrorSummaryItem.d.ts +11 -0
- package/esm/form/error-summary/index.d.ts +2 -0
- package/esm/form/index.d.ts +10 -0
- package/esm/form/radio/Radio.d.ts +18 -0
- package/esm/form/radio/RadioGroup.d.ts +38 -0
- package/esm/form/radio/index.d.ts +2 -0
- package/esm/form/radio/useRadio.d.ts +23 -0
- package/esm/form/search/Search.d.ts +57 -0
- package/esm/form/search/SearchButton.d.ts +11 -0
- package/esm/form/search/index.d.ts +1 -0
- package/esm/form/useFormField.d.ts +44 -0
- package/esm/grid/Cell.d.ts +26 -0
- package/esm/grid/ContentContainer.d.ts +9 -0
- package/esm/grid/Grid.d.ts +9 -0
- package/esm/grid/index.d.ts +3 -0
- package/esm/guide-panel/Guide.d.ts +14 -0
- package/esm/guide-panel/GuidePanel.d.ts +18 -0
- package/esm/guide-panel/Illustration.d.ts +7 -0
- package/esm/guide-panel/index.d.ts +3 -0
- package/esm/help-text/HelpText.d.ts +17 -0
- package/esm/help-text/index.d.ts +2 -0
- package/esm/index.d.ts +27 -0
- package/esm/link/Link.d.ts +10 -0
- package/esm/link/index.d.ts +2 -0
- package/esm/link-panel/LinkPanel.d.ts +22 -0
- package/esm/link-panel/LinkPanelDescription.d.ts +7 -0
- package/esm/link-panel/LinkPanelTitle.d.ts +8 -0
- package/esm/link-panel/index.d.ts +2 -0
- package/esm/loader/Loader.d.ts +26 -0
- package/esm/loader/index.d.ts +2 -0
- package/esm/modal/Modal.d.ts +59 -0
- package/esm/modal/ModalContent.d.ts +10 -0
- package/esm/modal/index.d.ts +2 -0
- package/esm/pagination/Pagination.d.ts +53 -0
- package/esm/pagination/PaginationItem.d.ts +22 -0
- package/esm/pagination/index.d.ts +1 -0
- package/esm/panel/Panel.d.ts +16 -0
- package/esm/panel/index.d.ts +2 -0
- package/esm/popover/Popover.d.ts +47 -0
- package/esm/popover/PopoverContent.d.ts +10 -0
- package/esm/popover/index.d.ts +2 -0
- package/esm/provider/Provider.d.ts +20 -0
- package/esm/provider/index.d.ts +1 -0
- package/esm/read-more/ReadMore.d.ts +28 -0
- package/esm/read-more/index.d.ts +2 -0
- package/esm/stepper/Step.d.ts +28 -0
- package/esm/stepper/Stepper.d.ts +41 -0
- package/esm/stepper/index.d.ts +1 -0
- package/esm/table/Body.d.ts +7 -0
- package/esm/table/ColumnHeader.d.ts +17 -0
- package/esm/table/DataCell.d.ts +12 -0
- package/esm/table/ExpandableRow.d.ts +41 -0
- package/esm/table/Header.d.ts +7 -0
- package/esm/table/HeaderCell.d.ts +13 -0
- package/esm/table/Row.d.ts +17 -0
- package/esm/table/Table.d.ts +49 -0
- package/esm/table/index.d.ts +8 -0
- package/esm/tabs/Tab.d.ts +19 -0
- package/esm/tabs/TabList.d.ts +10 -0
- package/esm/tabs/TabPanel.d.ts +14 -0
- package/esm/tabs/Tabs.d.ts +52 -0
- package/esm/tabs/index.d.ts +4 -0
- package/esm/tag/Tag.d.ts +14 -0
- package/esm/tag/index.d.ts +1 -0
- package/esm/toggle-group/ToggleGroup.d.ts +38 -0
- package/esm/toggle-group/ToggleItem.d.ts +14 -0
- package/esm/toggle-group/index.d.ts +2 -0
- package/esm/tooltip/Tooltip.d.ts +53 -0
- package/esm/tooltip/index.d.ts +1 -0
- package/esm/typography/BodyLong.d.ts +19 -0
- package/esm/typography/BodyShort.d.ts +19 -0
- package/esm/typography/Detail.d.ts +23 -0
- package/esm/typography/ErrorMessage.d.ts +19 -0
- package/esm/typography/Heading.d.ts +24 -0
- package/esm/typography/Ingress.d.ts +14 -0
- package/esm/typography/Label.d.ts +19 -0
- package/esm/typography/index.d.ts +7 -0
- package/esm/util/AnimateHeight.d.ts +10 -0
- package/esm/util/OverridableComponent.d.ts +7 -0
- package/esm/util/TextareaAutoSize.d.ts +14 -0
- package/esm/util/debounce.d.ts +4 -0
- package/esm/util/index.d.ts +13 -0
- package/esm/util/mergeRefs.d.ts +2 -0
- package/esm/util/useId.d.ts +7 -0
- package/package.json +2 -2
package/_docs.json
CHANGED
|
@@ -920,6 +920,239 @@
|
|
|
920
920
|
}
|
|
921
921
|
}
|
|
922
922
|
},
|
|
923
|
+
{
|
|
924
|
+
"filePath": "src/chips/Chips.tsx",
|
|
925
|
+
"displayName": "Chips",
|
|
926
|
+
"props": {
|
|
927
|
+
"size": {
|
|
928
|
+
"defaultValue": {
|
|
929
|
+
"value": "\"medium\""
|
|
930
|
+
},
|
|
931
|
+
"description": "Changes padding and font-sizes",
|
|
932
|
+
"name": "size",
|
|
933
|
+
"parent": {
|
|
934
|
+
"fileName": "src/chips/Chips.tsx",
|
|
935
|
+
"name": "ChipsProps"
|
|
936
|
+
},
|
|
937
|
+
"declarations": [
|
|
938
|
+
{
|
|
939
|
+
"fileName": "src/chips/Chips.tsx",
|
|
940
|
+
"name": "ChipsProps"
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
"required": false,
|
|
944
|
+
"type": {
|
|
945
|
+
"name": "\"medium\" | \"small\""
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"className": {
|
|
949
|
+
"defaultValue": null,
|
|
950
|
+
"description": "",
|
|
951
|
+
"name": "className",
|
|
952
|
+
"parent": {
|
|
953
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
954
|
+
"name": "HTMLAttributes"
|
|
955
|
+
},
|
|
956
|
+
"declarations": [
|
|
957
|
+
{
|
|
958
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
959
|
+
"name": "HTMLAttributes"
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
"required": false,
|
|
963
|
+
"type": {
|
|
964
|
+
"name": "string"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
"ref": {
|
|
968
|
+
"defaultValue": null,
|
|
969
|
+
"description": "",
|
|
970
|
+
"name": "ref",
|
|
971
|
+
"parent": {
|
|
972
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
973
|
+
"name": "RefAttributes"
|
|
974
|
+
},
|
|
975
|
+
"declarations": [
|
|
976
|
+
{
|
|
977
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
978
|
+
"name": "RefAttributes"
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
"required": false,
|
|
982
|
+
"type": {
|
|
983
|
+
"name": "Ref<HTMLUListElement>"
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
"filePath": "src/chips/Removable.tsx",
|
|
990
|
+
"displayName": "RemovableChips",
|
|
991
|
+
"props": {
|
|
992
|
+
"variant": {
|
|
993
|
+
"defaultValue": {
|
|
994
|
+
"value": "\"action\""
|
|
995
|
+
},
|
|
996
|
+
"description": "Chip-variants",
|
|
997
|
+
"name": "variant",
|
|
998
|
+
"parent": {
|
|
999
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1000
|
+
"name": "RemovableChipsProps"
|
|
1001
|
+
},
|
|
1002
|
+
"declarations": [
|
|
1003
|
+
{
|
|
1004
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1005
|
+
"name": "RemovableChipsProps"
|
|
1006
|
+
}
|
|
1007
|
+
],
|
|
1008
|
+
"required": false,
|
|
1009
|
+
"type": {
|
|
1010
|
+
"name": "\"action\" | \"neutral\""
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
"removeLabel": {
|
|
1014
|
+
"defaultValue": {
|
|
1015
|
+
"value": "\"slett filter\""
|
|
1016
|
+
},
|
|
1017
|
+
"description": "Replaces label read for screen-readers",
|
|
1018
|
+
"name": "removeLabel",
|
|
1019
|
+
"parent": {
|
|
1020
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1021
|
+
"name": "RemovableChipsProps"
|
|
1022
|
+
},
|
|
1023
|
+
"declarations": [
|
|
1024
|
+
{
|
|
1025
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1026
|
+
"name": "RemovableChipsProps"
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
"required": false,
|
|
1030
|
+
"type": {
|
|
1031
|
+
"name": "string"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"onDelete": {
|
|
1035
|
+
"defaultValue": null,
|
|
1036
|
+
"description": "Click callback",
|
|
1037
|
+
"name": "onDelete",
|
|
1038
|
+
"parent": {
|
|
1039
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1040
|
+
"name": "RemovableChipsProps"
|
|
1041
|
+
},
|
|
1042
|
+
"declarations": [
|
|
1043
|
+
{
|
|
1044
|
+
"fileName": "src/chips/Removable.tsx",
|
|
1045
|
+
"name": "RemovableChipsProps"
|
|
1046
|
+
}
|
|
1047
|
+
],
|
|
1048
|
+
"required": false,
|
|
1049
|
+
"type": {
|
|
1050
|
+
"name": "(() => void)"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
"className": {
|
|
1054
|
+
"defaultValue": null,
|
|
1055
|
+
"description": "",
|
|
1056
|
+
"name": "className",
|
|
1057
|
+
"parent": {
|
|
1058
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1059
|
+
"name": "HTMLAttributes"
|
|
1060
|
+
},
|
|
1061
|
+
"declarations": [
|
|
1062
|
+
{
|
|
1063
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1064
|
+
"name": "HTMLAttributes"
|
|
1065
|
+
}
|
|
1066
|
+
],
|
|
1067
|
+
"required": false,
|
|
1068
|
+
"type": {
|
|
1069
|
+
"name": "string"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"ref": {
|
|
1073
|
+
"defaultValue": null,
|
|
1074
|
+
"description": "",
|
|
1075
|
+
"name": "ref",
|
|
1076
|
+
"parent": {
|
|
1077
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1078
|
+
"name": "RefAttributes"
|
|
1079
|
+
},
|
|
1080
|
+
"declarations": [
|
|
1081
|
+
{
|
|
1082
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1083
|
+
"name": "RefAttributes"
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
"required": false,
|
|
1087
|
+
"type": {
|
|
1088
|
+
"name": "Ref<HTMLButtonElement>"
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"filePath": "src/chips/Toggle.tsx",
|
|
1095
|
+
"displayName": "ToggleChips",
|
|
1096
|
+
"props": {
|
|
1097
|
+
"selected": {
|
|
1098
|
+
"defaultValue": null,
|
|
1099
|
+
"description": "Toggles aria-pressed and visual-changes",
|
|
1100
|
+
"name": "selected",
|
|
1101
|
+
"parent": {
|
|
1102
|
+
"fileName": "src/chips/Toggle.tsx",
|
|
1103
|
+
"name": "ToggleChipsProps"
|
|
1104
|
+
},
|
|
1105
|
+
"declarations": [
|
|
1106
|
+
{
|
|
1107
|
+
"fileName": "src/chips/Toggle.tsx",
|
|
1108
|
+
"name": "ToggleChipsProps"
|
|
1109
|
+
}
|
|
1110
|
+
],
|
|
1111
|
+
"required": false,
|
|
1112
|
+
"type": {
|
|
1113
|
+
"name": "boolean"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
"className": {
|
|
1117
|
+
"defaultValue": null,
|
|
1118
|
+
"description": "",
|
|
1119
|
+
"name": "className",
|
|
1120
|
+
"parent": {
|
|
1121
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1122
|
+
"name": "HTMLAttributes"
|
|
1123
|
+
},
|
|
1124
|
+
"declarations": [
|
|
1125
|
+
{
|
|
1126
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1127
|
+
"name": "HTMLAttributes"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
"required": false,
|
|
1131
|
+
"type": {
|
|
1132
|
+
"name": "string"
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"ref": {
|
|
1136
|
+
"defaultValue": null,
|
|
1137
|
+
"description": "",
|
|
1138
|
+
"name": "ref",
|
|
1139
|
+
"parent": {
|
|
1140
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1141
|
+
"name": "RefAttributes"
|
|
1142
|
+
},
|
|
1143
|
+
"declarations": [
|
|
1144
|
+
{
|
|
1145
|
+
"fileName": "nfm/node_modules/@types/react/index.d.ts",
|
|
1146
|
+
"name": "RefAttributes"
|
|
1147
|
+
}
|
|
1148
|
+
],
|
|
1149
|
+
"required": false,
|
|
1150
|
+
"type": {
|
|
1151
|
+
"name": "Ref<HTMLButtonElement>"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
923
1156
|
{
|
|
924
1157
|
"filePath": "src/date/DateInput.tsx",
|
|
925
1158
|
"displayName": "DatePickerInput",
|
|
@@ -6419,28 +6652,9 @@
|
|
|
6419
6652
|
"filePath": "src/tag/Tag.tsx",
|
|
6420
6653
|
"displayName": "Tag",
|
|
6421
6654
|
"props": {
|
|
6422
|
-
"children": {
|
|
6423
|
-
"defaultValue": null,
|
|
6424
|
-
"description": "Tag label",
|
|
6425
|
-
"name": "children",
|
|
6426
|
-
"parent": {
|
|
6427
|
-
"fileName": "src/tag/Tag.tsx",
|
|
6428
|
-
"name": "TagProps"
|
|
6429
|
-
},
|
|
6430
|
-
"declarations": [
|
|
6431
|
-
{
|
|
6432
|
-
"fileName": "src/tag/Tag.tsx",
|
|
6433
|
-
"name": "TagProps"
|
|
6434
|
-
}
|
|
6435
|
-
],
|
|
6436
|
-
"required": true,
|
|
6437
|
-
"type": {
|
|
6438
|
-
"name": "ReactNode"
|
|
6439
|
-
}
|
|
6440
|
-
},
|
|
6441
6655
|
"variant": {
|
|
6442
6656
|
"defaultValue": null,
|
|
6443
|
-
"description": "Changes
|
|
6657
|
+
"description": "Changes visual profile of tag",
|
|
6444
6658
|
"name": "variant",
|
|
6445
6659
|
"parent": {
|
|
6446
6660
|
"fileName": "src/tag/Tag.tsx",
|
|
@@ -6454,14 +6668,14 @@
|
|
|
6454
6668
|
],
|
|
6455
6669
|
"required": true,
|
|
6456
6670
|
"type": {
|
|
6457
|
-
"name": "\"warning\" | \"error\" | \"info\" | \"success\""
|
|
6671
|
+
"name": "\"warning\" | \"warning-filled\" | \"error\" | \"error-filled\" | \"info\" | \"info-filled\" | \"success\" | \"success-filled\" | \"neutral\" | \"neutral-filled\" | \"alt1\" | \"alt1-filled\" | \"alt2\" | \"alt2-filled\" | \"alt3\" | \"alt3-filled\""
|
|
6458
6672
|
}
|
|
6459
6673
|
},
|
|
6460
6674
|
"size": {
|
|
6461
6675
|
"defaultValue": {
|
|
6462
6676
|
"value": "medium"
|
|
6463
6677
|
},
|
|
6464
|
-
"description": "
|
|
6678
|
+
"description": "",
|
|
6465
6679
|
"name": "size",
|
|
6466
6680
|
"parent": {
|
|
6467
6681
|
"fileName": "src/tag/Tag.tsx",
|
|
@@ -6475,7 +6689,7 @@
|
|
|
6475
6689
|
],
|
|
6476
6690
|
"required": false,
|
|
6477
6691
|
"type": {
|
|
6478
|
-
"name": "\"medium\" | \"small\""
|
|
6692
|
+
"name": "\"medium\" | \"small\" | \"xsmall\""
|
|
6479
6693
|
}
|
|
6480
6694
|
},
|
|
6481
6695
|
"className": {
|
|
@@ -8698,6 +8912,25 @@
|
|
|
8698
8912
|
"name": "Date"
|
|
8699
8913
|
}
|
|
8700
8914
|
},
|
|
8915
|
+
"defaultMonth": {
|
|
8916
|
+
"defaultValue": null,
|
|
8917
|
+
"description": "Default shown month",
|
|
8918
|
+
"name": "defaultMonth",
|
|
8919
|
+
"parent": {
|
|
8920
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
8921
|
+
"name": "UseDatepickerOptions"
|
|
8922
|
+
},
|
|
8923
|
+
"declarations": [
|
|
8924
|
+
{
|
|
8925
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
8926
|
+
"name": "UseDatepickerOptions"
|
|
8927
|
+
}
|
|
8928
|
+
],
|
|
8929
|
+
"required": false,
|
|
8930
|
+
"type": {
|
|
8931
|
+
"name": "Date"
|
|
8932
|
+
}
|
|
8933
|
+
},
|
|
8701
8934
|
"required": {
|
|
8702
8935
|
"defaultValue": null,
|
|
8703
8936
|
"description": "Make selection of Date required",
|
|
@@ -8736,6 +8969,46 @@
|
|
|
8736
8969
|
"name": "((val?: Date) => void)"
|
|
8737
8970
|
}
|
|
8738
8971
|
},
|
|
8972
|
+
"inputFormat": {
|
|
8973
|
+
"defaultValue": {
|
|
8974
|
+
"value": "\"dd.MM.yyyy\""
|
|
8975
|
+
},
|
|
8976
|
+
"description": "Input-format",
|
|
8977
|
+
"name": "inputFormat",
|
|
8978
|
+
"parent": {
|
|
8979
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
8980
|
+
"name": "UseDatepickerOptions"
|
|
8981
|
+
},
|
|
8982
|
+
"declarations": [
|
|
8983
|
+
{
|
|
8984
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
8985
|
+
"name": "UseDatepickerOptions"
|
|
8986
|
+
}
|
|
8987
|
+
],
|
|
8988
|
+
"required": false,
|
|
8989
|
+
"type": {
|
|
8990
|
+
"name": "string"
|
|
8991
|
+
}
|
|
8992
|
+
},
|
|
8993
|
+
"onValidate": {
|
|
8994
|
+
"defaultValue": null,
|
|
8995
|
+
"description": "validation-callback",
|
|
8996
|
+
"name": "onValidate",
|
|
8997
|
+
"parent": {
|
|
8998
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
8999
|
+
"name": "UseDatepickerOptions"
|
|
9000
|
+
},
|
|
9001
|
+
"declarations": [
|
|
9002
|
+
{
|
|
9003
|
+
"fileName": "src/date/hooks/useDatepicker.tsx",
|
|
9004
|
+
"name": "UseDatepickerOptions"
|
|
9005
|
+
}
|
|
9006
|
+
],
|
|
9007
|
+
"required": false,
|
|
9008
|
+
"type": {
|
|
9009
|
+
"name": "((val: DateValidationT) => void)"
|
|
9010
|
+
}
|
|
9011
|
+
},
|
|
8739
9012
|
"locale": {
|
|
8740
9013
|
"defaultValue": {
|
|
8741
9014
|
"value": "\"nb\" (norsk bokmål)"
|
|
@@ -8879,6 +9152,65 @@
|
|
|
8879
9152
|
"name": "((date?: Date) => void)"
|
|
8880
9153
|
}
|
|
8881
9154
|
},
|
|
9155
|
+
"inputFormat": {
|
|
9156
|
+
"defaultValue": {
|
|
9157
|
+
"value": "\"MMMM yyyy\""
|
|
9158
|
+
},
|
|
9159
|
+
"description": "Input-format",
|
|
9160
|
+
"name": "inputFormat",
|
|
9161
|
+
"parent": {
|
|
9162
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9163
|
+
"name": "UseMonthPickerOptions"
|
|
9164
|
+
},
|
|
9165
|
+
"declarations": [
|
|
9166
|
+
{
|
|
9167
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9168
|
+
"name": "UseMonthPickerOptions"
|
|
9169
|
+
}
|
|
9170
|
+
],
|
|
9171
|
+
"required": false,
|
|
9172
|
+
"type": {
|
|
9173
|
+
"name": "string"
|
|
9174
|
+
}
|
|
9175
|
+
},
|
|
9176
|
+
"onValidate": {
|
|
9177
|
+
"defaultValue": null,
|
|
9178
|
+
"description": "validation-callback",
|
|
9179
|
+
"name": "onValidate",
|
|
9180
|
+
"parent": {
|
|
9181
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9182
|
+
"name": "UseMonthPickerOptions"
|
|
9183
|
+
},
|
|
9184
|
+
"declarations": [
|
|
9185
|
+
{
|
|
9186
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9187
|
+
"name": "UseMonthPickerOptions"
|
|
9188
|
+
}
|
|
9189
|
+
],
|
|
9190
|
+
"required": false,
|
|
9191
|
+
"type": {
|
|
9192
|
+
"name": "((val: MonthValidationT) => void)"
|
|
9193
|
+
}
|
|
9194
|
+
},
|
|
9195
|
+
"defaultYear": {
|
|
9196
|
+
"defaultValue": null,
|
|
9197
|
+
"description": "Default shown year",
|
|
9198
|
+
"name": "defaultYear",
|
|
9199
|
+
"parent": {
|
|
9200
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9201
|
+
"name": "UseMonthPickerOptions"
|
|
9202
|
+
},
|
|
9203
|
+
"declarations": [
|
|
9204
|
+
{
|
|
9205
|
+
"fileName": "src/date/hooks/useMonthPicker.tsx",
|
|
9206
|
+
"name": "UseMonthPickerOptions"
|
|
9207
|
+
}
|
|
9208
|
+
],
|
|
9209
|
+
"required": false,
|
|
9210
|
+
"type": {
|
|
9211
|
+
"name": "Date"
|
|
9212
|
+
}
|
|
9213
|
+
},
|
|
8882
9214
|
"locale": {
|
|
8883
9215
|
"defaultValue": {
|
|
8884
9216
|
"value": "\"nb\" (norsk bokmål)"
|
|
@@ -9020,6 +9352,25 @@
|
|
|
9020
9352
|
"name": "((val?: DateRange) => void)"
|
|
9021
9353
|
}
|
|
9022
9354
|
},
|
|
9355
|
+
"onValidate": {
|
|
9356
|
+
"defaultValue": null,
|
|
9357
|
+
"description": "validation-callback",
|
|
9358
|
+
"name": "onValidate",
|
|
9359
|
+
"parent": {
|
|
9360
|
+
"fileName": "src/date/hooks/useRangeDatepicker.tsx",
|
|
9361
|
+
"name": "UseRangeDatepickerOptions"
|
|
9362
|
+
},
|
|
9363
|
+
"declarations": [
|
|
9364
|
+
{
|
|
9365
|
+
"fileName": "src/date/hooks/useRangeDatepicker.tsx",
|
|
9366
|
+
"name": "UseRangeDatepickerOptions"
|
|
9367
|
+
}
|
|
9368
|
+
],
|
|
9369
|
+
"required": false,
|
|
9370
|
+
"type": {
|
|
9371
|
+
"name": "((val: RangeValidationT) => void)"
|
|
9372
|
+
}
|
|
9373
|
+
},
|
|
9023
9374
|
"locale": {
|
|
9024
9375
|
"defaultValue": {
|
|
9025
9376
|
"value": "\"nb\" (norsk bokmål)"
|
|
@@ -9119,6 +9470,25 @@
|
|
|
9119
9470
|
"name": "boolean"
|
|
9120
9471
|
}
|
|
9121
9472
|
},
|
|
9473
|
+
"defaultMonth": {
|
|
9474
|
+
"defaultValue": null,
|
|
9475
|
+
"description": "Default shown month",
|
|
9476
|
+
"name": "defaultMonth",
|
|
9477
|
+
"parent": {
|
|
9478
|
+
"fileName": "react/src/date/hooks/useDatepicker.tsx",
|
|
9479
|
+
"name": "UseDatepickerOptions"
|
|
9480
|
+
},
|
|
9481
|
+
"declarations": [
|
|
9482
|
+
{
|
|
9483
|
+
"fileName": "react/src/date/hooks/useDatepicker.tsx",
|
|
9484
|
+
"name": "UseDatepickerOptions"
|
|
9485
|
+
}
|
|
9486
|
+
],
|
|
9487
|
+
"required": false,
|
|
9488
|
+
"type": {
|
|
9489
|
+
"name": "Date"
|
|
9490
|
+
}
|
|
9491
|
+
},
|
|
9122
9492
|
"required": {
|
|
9123
9493
|
"defaultValue": null,
|
|
9124
9494
|
"description": "Make selection of Date required",
|
|
@@ -9137,6 +9507,27 @@
|
|
|
9137
9507
|
"type": {
|
|
9138
9508
|
"name": "boolean"
|
|
9139
9509
|
}
|
|
9510
|
+
},
|
|
9511
|
+
"inputFormat": {
|
|
9512
|
+
"defaultValue": {
|
|
9513
|
+
"value": "\"dd.MM.yyyy\""
|
|
9514
|
+
},
|
|
9515
|
+
"description": "Input-format",
|
|
9516
|
+
"name": "inputFormat",
|
|
9517
|
+
"parent": {
|
|
9518
|
+
"fileName": "react/src/date/hooks/useDatepicker.tsx",
|
|
9519
|
+
"name": "UseDatepickerOptions"
|
|
9520
|
+
},
|
|
9521
|
+
"declarations": [
|
|
9522
|
+
{
|
|
9523
|
+
"fileName": "react/src/date/hooks/useDatepicker.tsx",
|
|
9524
|
+
"name": "UseDatepickerOptions"
|
|
9525
|
+
}
|
|
9526
|
+
],
|
|
9527
|
+
"required": false,
|
|
9528
|
+
"type": {
|
|
9529
|
+
"name": "string"
|
|
9530
|
+
}
|
|
9140
9531
|
}
|
|
9141
9532
|
}
|
|
9142
9533
|
},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { AccordionItemType } from "./AccordionItem";
|
|
3
|
+
import { AccordionContentType } from "./AccordionContent";
|
|
4
|
+
import { AccordionHeaderType } from "./AccordionHeader";
|
|
5
|
+
interface AccordionComponent extends React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>> {
|
|
6
|
+
Item: AccordionItemType;
|
|
7
|
+
Header: AccordionHeaderType;
|
|
8
|
+
Content: AccordionContentType;
|
|
9
|
+
}
|
|
10
|
+
export interface AccordionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
11
|
+
/**
|
|
12
|
+
* Instances of Accordion.Item
|
|
13
|
+
*/
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const Accordion: AccordionComponent;
|
|
17
|
+
export default Accordion;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Content inside Accordion.Content
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare type AccordionContentType = React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const AccordionContent: AccordionContentType;
|
|
10
|
+
export default AccordionContent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AccordionHeaderProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Text inside Accordion.Header
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare type AccordionHeaderType = React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const AccordionHeader: AccordionHeaderType;
|
|
10
|
+
export default AccordionHeader;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Content in Accordion.Item
|
|
5
|
+
* Should include one Accordion.Header and one Accordion.Content
|
|
6
|
+
*/
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Controlled open-state
|
|
10
|
+
* Using this removes automatic control of open-state
|
|
11
|
+
*/
|
|
12
|
+
open?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Defaults the accordion to open if not controlled
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare type AccordionItemType = React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
export interface AccordionItemContextProps {
|
|
21
|
+
open: boolean;
|
|
22
|
+
toggleOpen: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare const AccordionItemContext: React.Context<AccordionItemContextProps | null>;
|
|
25
|
+
declare const AccordionItem: AccordionItemType;
|
|
26
|
+
export default AccordionItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AccordionProps, default as Accordion } from "./Accordion";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Alert content
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Changes colors and icon usage when changed
|
|
9
|
+
*/
|
|
10
|
+
variant: "error" | "warning" | "info" | "success";
|
|
11
|
+
/**
|
|
12
|
+
* Changes padding and font-sizes
|
|
13
|
+
* @default medium
|
|
14
|
+
*/
|
|
15
|
+
size?: "medium" | "small";
|
|
16
|
+
/**
|
|
17
|
+
* Removes border-radius
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
fullWidth?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Removes background from Alert
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
inline?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface AlertContextProps {
|
|
28
|
+
size: "medium" | "small";
|
|
29
|
+
}
|
|
30
|
+
export declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export default Alert;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { OverridableComponent } from "../";
|
|
3
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Button content
|
|
6
|
+
*/
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Changes design and interaction-visuals
|
|
10
|
+
* @default "primary"
|
|
11
|
+
*/
|
|
12
|
+
variant?: "primary" | "secondary" | "tertiary" | "danger";
|
|
13
|
+
/**
|
|
14
|
+
* Changes padding, height and font-size
|
|
15
|
+
* @default medium
|
|
16
|
+
*/
|
|
17
|
+
size?: "medium" | "small" | "xsmall";
|
|
18
|
+
/**
|
|
19
|
+
* Prevent the user from interacting with the button: it cannot be pressed or focused.
|
|
20
|
+
* @note Avoid using if possible for accessibility purposes
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Replaces button content with a Loader component, keeps width
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
loading?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Button Icon
|
|
30
|
+
*/
|
|
31
|
+
icon?: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* Icon position in Button
|
|
34
|
+
* @default "left"
|
|
35
|
+
*/
|
|
36
|
+
iconPosition?: "left" | "right";
|
|
37
|
+
}
|
|
38
|
+
export declare const Button: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
39
|
+
export default Button;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from "react";
|
|
2
|
+
export interface BubbleProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Bubble text
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* name/sender on bubble
|
|
9
|
+
*/
|
|
10
|
+
name?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Timestamp for sent message
|
|
13
|
+
*/
|
|
14
|
+
timestamp?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Background color on bubble
|
|
17
|
+
*/
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare type BubbleType = React.ForwardRefExoticComponent<BubbleProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
declare const Bubble: BubbleType;
|
|
22
|
+
export default Bubble;
|