@dep-dio/dio-designsystem 0.4.0 → 0.6.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/dist/components/Divider/Divider.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +16 -0
- package/dist/react.d.ts +3 -1
- package/dist/react.js +3503 -2703
- package/dist/react.js.map +4 -4
- package/dist/styles/main.css +31 -4
- package/dist/theme-colors.d.ts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/web-components/ToTopOfPage/DioToTopOfPage.d.ts +2 -0
- package/dist/web.js +112 -15
- package/dist/web.js.map +2 -2
- package/package.json +14 -14
|
@@ -3,7 +3,7 @@ export type DropdownProps = DsDropdownProps;
|
|
|
3
3
|
declare function DropdownRoot({ className, children, ...props }: DropdownProps): import("react").JSX.Element;
|
|
4
4
|
export declare const Dropdown: typeof DropdownRoot & {
|
|
5
5
|
TriggerContext: {
|
|
6
|
-
({ children
|
|
6
|
+
({ children }: import("@digdir/designsystemet-react").DropdownTriggerContextProps): import("react").JSX.Element;
|
|
7
7
|
displayName: string;
|
|
8
8
|
};
|
|
9
9
|
Trigger: import("react").ForwardRefExoticComponent<import("@digdir/designsystemet-react").PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type FileUploadProps as DsFileUploadProps } from "@digdir/designsystemet-react";
|
|
2
|
+
export interface FileUploadProps extends DsFileUploadProps {
|
|
3
|
+
controlClassName?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
isValid?: boolean;
|
|
8
|
+
isValidationVisible?: boolean;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
controlDescription1?: string;
|
|
11
|
+
controlDescription2?: string;
|
|
12
|
+
buttonText?: string;
|
|
13
|
+
requiredMessage?: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function FileUpload({ className, controlClassName, label, description, controlDescription1, controlDescription2, buttonText, id, isValid, errorMessage, isValidationVisible, isRequired, requiredMessage, value, onChange, ...props }: FileUploadProps): import("react").JSX.Element;
|
package/dist/react.d.ts
CHANGED
|
@@ -8,12 +8,14 @@ export { Checkbox, type CheckboxProps } from "./components/Checkbox/Checkbox";
|
|
|
8
8
|
export { CheckboxFieldset, type CheckboxFieldsetProps, } from "./components/Checkbox/CheckboxFieldset";
|
|
9
9
|
export { ControlGroup, type ControlGroupProps } from "./components/ControlGroup/ControlGroup";
|
|
10
10
|
export { Details, type DetailsProps } from "./components/Details/Details";
|
|
11
|
+
export { Divider } from "./components/Divider/Divider";
|
|
11
12
|
export { Dialog, type DialogProps } from "./components/Dialog/Dialog";
|
|
12
13
|
export { Dropdown, type DropdownProps } from "./components/Dropdown/Dropdown";
|
|
13
14
|
export { ErrorSummary, type ErrorSummaryItem, type ErrorSummaryProps, } from "./components/ErrorSummary/ErrorSummary";
|
|
14
15
|
export { FeedbackBanner, type FeedbackBannerProps, } from "./components/FeedbackBanner/FeedbackBanner";
|
|
16
|
+
export { FileUpload, type FileUploadProps } from "./components/FileUpload/FileUpload";
|
|
15
17
|
export { Form, type FormProps } from "./components/Form/Form";
|
|
16
|
-
export { DEFAULT_REQUIRED_MESSAGE, Label, type LabelProps
|
|
18
|
+
export { DEFAULT_REQUIRED_MESSAGE, Label, type LabelProps } from "./components/Label/Label";
|
|
17
19
|
export { LinkList, type LinkListItem, type LinkListProps } from "./components/LinkList/LinkList";
|
|
18
20
|
export { NavigationalLink, type NavigationalLinkProps, } from "./components/NavigationalLink/NavigationalLink";
|
|
19
21
|
export { Pagination, type PaginationProps } from "./components/Pagination/Pagination";
|