@kystverket/styrbord 1.0.11 → 1.0.13
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/main.js +966 -950
- package/dist/main.umd.cjs +7 -7
- package/dist/src/components/designsystemet/Tag/Tag.d.ts +6 -0
- package/dist/src/components/designsystemet/Tag/Tag.stories.d.ts +17 -0
- package/dist/src/components/kystverket/DateTimePicker/DateTimePicker.d.ts +4 -1
- package/dist/src/components/kystverket/DateTimePicker/Datepicker.stories.d.ts +3 -0
- package/dist/src/components/kystverket/Datepicker/Datepicker.d.ts +3 -1
- package/dist/src/components/kystverket/Datepicker/Datepicker.stories.d.ts +3 -0
- package/dist/src/main.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Tag, TagProps } from '~/main';
|
|
2
|
+
import type { StoryFn, StoryObj } from '@storybook/react';
|
|
3
|
+
type Story = StoryObj<typeof Tag>;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: ({ bordered, className, ...props }: TagProps) => React.JSX.Element;
|
|
7
|
+
parameters: {
|
|
8
|
+
customStyles: {
|
|
9
|
+
justifyContent: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
14
|
+
export declare const Preview: Story;
|
|
15
|
+
export declare const Sizes: StoryFn<typeof Tag>;
|
|
16
|
+
export declare const Colors: StoryFn<typeof Tag>;
|
|
17
|
+
export declare const Borders: StoryFn<typeof Tag>;
|
|
@@ -5,9 +5,12 @@ export interface DateTimePickerProps {
|
|
|
5
5
|
dateTimeFormat?: string;
|
|
6
6
|
description?: string;
|
|
7
7
|
error?: string;
|
|
8
|
+
onBlur?: () => void;
|
|
8
9
|
value: Date | undefined;
|
|
9
10
|
timeInputLabel?: string;
|
|
10
11
|
onChange?: (date: Date | undefined) => void;
|
|
11
12
|
showCalendarIcon?: boolean;
|
|
13
|
+
minDate?: Date;
|
|
14
|
+
maxDate?: Date;
|
|
12
15
|
}
|
|
13
|
-
export declare const DateTimePicker: ({ value, onChange, dateTimeFormat, timeInputLabel, showCalendarIcon, ...props }: DateTimePickerProps) => React.JSX.Element;
|
|
16
|
+
export declare const DateTimePicker: ({ value, onChange, dateTimeFormat, timeInputLabel, showCalendarIcon, minDate, maxDate, ...props }: DateTimePickerProps) => React.JSX.Element;
|
|
@@ -17,3 +17,6 @@ export declare const Required: Story;
|
|
|
17
17
|
export declare const WithoutDescription: Story;
|
|
18
18
|
export declare const WithValue: Story;
|
|
19
19
|
export declare const WithError: Story;
|
|
20
|
+
export declare const WithMinDate: Story;
|
|
21
|
+
export declare const WithMaxDate: Story;
|
|
22
|
+
export declare const WithMinAndMaxDate: Story;
|
|
@@ -9,5 +9,7 @@ export interface DatepickerProps {
|
|
|
9
9
|
value: Date | undefined;
|
|
10
10
|
onChange?: (date: Date | undefined) => void;
|
|
11
11
|
showCalendarIcon?: boolean;
|
|
12
|
+
minDate?: Date;
|
|
13
|
+
maxDate?: Date;
|
|
12
14
|
}
|
|
13
|
-
export declare const Datepicker: ({ value, onChange, dateFormat, showCalendarIcon, ...props }: DatepickerProps) => React.JSX.Element;
|
|
15
|
+
export declare const Datepicker: ({ value, onChange, dateFormat, showCalendarIcon, minDate, maxDate, ...props }: DatepickerProps) => React.JSX.Element;
|
|
@@ -17,3 +17,6 @@ export declare const Optional: Story;
|
|
|
17
17
|
export declare const OptionalText: Story;
|
|
18
18
|
export declare const Required: Story;
|
|
19
19
|
export declare const WithError: Story;
|
|
20
|
+
export declare const WithMinDate: Story;
|
|
21
|
+
export declare const WithMaxDate: Story;
|
|
22
|
+
export declare const WithMinAndMaxDate: Story;
|
package/dist/src/main.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export { Select } from './components/designsystemet/Select/Select';
|
|
|
49
49
|
export type { SelectProps, SelectOption } from './components/designsystemet/Select/Select';
|
|
50
50
|
export { default as Tabs } from './components/designsystemet/Tabs/Tabs';
|
|
51
51
|
export type { TabsProps } from './components/designsystemet/Tabs/Tabs';
|
|
52
|
+
export { default as Tag } from './components/designsystemet/Tag/Tag';
|
|
53
|
+
export type { TagProps } from './components/designsystemet/Tag/Tag';
|
|
52
54
|
export { Link } from './components/designsystemet/Link/Link';
|
|
53
55
|
export type { LinkProps } from './components/designsystemet/Link/Link';
|
|
54
56
|
export { default as Table } from './components/designsystemet/Table/Table';
|