@bbl-digital/snorre 4.0.21 → 4.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bundle.js +117 -31
- package/esm/core/BoxedTable/TableBody/index.js +10 -0
- package/esm/core/BoxedTable/TableBody/styles.js +16 -0
- package/esm/core/Button/Button.stories.js +51 -49
- package/esm/core/Card/index.js +4 -3
- package/esm/core/Checkbox/index.js +32 -9
- package/esm/core/CollapseList/Item.js +4 -3
- package/esm/core/CollapseList/index.js +4 -3
- package/esm/core/Datepicker/Datepicker.stories.js +7 -6
- package/esm/core/DatepickerRange/DatepickerRange.stories.js +4 -3
- package/esm/core/Dropdown/index.js +0 -1
- package/esm/core/DropdownMenu/DropdownMenu.stories.js +34 -26
- package/esm/core/DropdownMenu/DropdownMenuOption.js +2 -0
- package/esm/core/DropdownMenu/index.js +16 -0
- package/esm/core/Editor/Editor.stories.js +31 -30
- package/esm/core/FileInput/index.js +7 -1
- package/esm/core/GoogleButton/GoogleButton.stories.js +4 -4
- package/esm/core/Header/Header.stories.js +42 -45
- package/esm/core/HighlightText/HighlightText.stories.js +11 -11
- package/esm/core/Image/index.js +19 -4
- package/esm/core/ImagePicker/ImagePicker.stories.js +2 -1
- package/esm/core/ImagePicker/index.js +4 -0
- package/esm/core/ImageViewer/index.js +15 -5
- package/esm/core/InfoButton/InfoButton.stories.js +23 -22
- package/esm/core/InfoButton/index.js +4 -0
- package/esm/core/Input/index.js +4 -0
- package/esm/core/private/ButtonOrLink.js +4 -3
- package/lib/core/Autocomplete/styles.d.ts +39 -1
- package/lib/core/Autocomplete/styles.d.ts.map +1 -1
- package/lib/core/Box/styles.d.ts +39 -1
- package/lib/core/Box/styles.d.ts.map +1 -1
- package/lib/core/BoxedTable/TableBody/index.d.ts +7 -0
- package/lib/core/BoxedTable/TableBody/index.d.ts.map +1 -0
- package/lib/core/BoxedTable/TableBody/index.js +10 -0
- package/lib/core/BoxedTable/TableBody/styles.d.ts +6 -0
- package/lib/core/BoxedTable/TableBody/styles.d.ts.map +1 -0
- package/lib/core/BoxedTable/TableBody/styles.js +16 -0
- package/lib/core/Button/Button.stories.d.ts +20 -63
- package/lib/core/Button/Button.stories.d.ts.map +1 -1
- package/lib/core/Button/Button.stories.js +51 -49
- package/lib/core/Button/index.d.ts +54 -3
- package/lib/core/Button/index.d.ts.map +1 -1
- package/lib/core/Card/index.d.ts +14 -15
- package/lib/core/Card/index.d.ts.map +1 -1
- package/lib/core/Card/index.js +4 -3
- package/lib/core/Checkbox/index.d.ts +3 -3
- package/lib/core/Checkbox/index.d.ts.map +1 -1
- package/lib/core/Checkbox/index.js +32 -9
- package/lib/core/CollapseList/Item.d.ts +1 -1
- package/lib/core/CollapseList/Item.d.ts.map +1 -1
- package/lib/core/CollapseList/Item.js +4 -3
- package/lib/core/CollapseList/index.d.ts +1 -1
- package/lib/core/CollapseList/index.d.ts.map +1 -1
- package/lib/core/CollapseList/index.js +4 -3
- package/lib/core/CollapseList/styles.d.ts +39 -1
- package/lib/core/CollapseList/styles.d.ts.map +1 -1
- package/lib/core/Datepicker/Datepicker.stories.d.ts +6 -6
- package/lib/core/Datepicker/Datepicker.stories.d.ts.map +1 -1
- package/lib/core/Datepicker/Datepicker.stories.js +7 -6
- package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts +6 -7
- package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts.map +1 -1
- package/lib/core/DatepickerRange/DatepickerRange.stories.js +4 -3
- package/lib/core/Dropdown/index.d.ts.map +1 -1
- package/lib/core/Dropdown/index.js +0 -1
- package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts +8 -15
- package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/lib/core/DropdownMenu/DropdownMenu.stories.js +34 -26
- package/lib/core/DropdownMenu/DropdownMenuOption.d.ts.map +1 -1
- package/lib/core/DropdownMenu/DropdownMenuOption.js +2 -0
- package/lib/core/DropdownMenu/index.d.ts.map +1 -1
- package/lib/core/DropdownMenu/index.js +16 -0
- package/lib/core/Editor/Editor.stories.d.ts +10 -23
- package/lib/core/Editor/Editor.stories.d.ts.map +1 -1
- package/lib/core/Editor/Editor.stories.js +31 -30
- package/lib/core/FileInput/index.d.ts +3 -1
- package/lib/core/FileInput/index.d.ts.map +1 -1
- package/lib/core/FileInput/index.js +7 -1
- package/lib/core/FileInput/styles.d.ts +39 -1
- package/lib/core/FileInput/styles.d.ts.map +1 -1
- package/lib/core/GoogleButton/GoogleButton.stories.d.ts +6 -7
- package/lib/core/GoogleButton/GoogleButton.stories.d.ts.map +1 -1
- package/lib/core/GoogleButton/GoogleButton.stories.js +4 -4
- package/lib/core/Header/Header.stories.d.ts +13 -35
- package/lib/core/Header/Header.stories.d.ts.map +1 -1
- package/lib/core/Header/Header.stories.js +42 -45
- package/lib/core/HighlightText/HighlightText.stories.d.ts +7 -11
- package/lib/core/HighlightText/HighlightText.stories.d.ts.map +1 -1
- package/lib/core/HighlightText/HighlightText.stories.js +11 -11
- package/lib/core/Image/index.d.ts +1 -0
- package/lib/core/Image/index.d.ts.map +1 -1
- package/lib/core/Image/index.js +19 -4
- package/lib/core/ImagePicker/ImagePicker.stories.d.ts +6 -17
- package/lib/core/ImagePicker/ImagePicker.stories.d.ts.map +1 -1
- package/lib/core/ImagePicker/ImagePicker.stories.js +2 -1
- package/lib/core/ImagePicker/index.d.ts.map +1 -1
- package/lib/core/ImagePicker/index.js +4 -0
- package/lib/core/ImageViewer/index.d.ts.map +1 -1
- package/lib/core/ImageViewer/index.js +15 -5
- package/lib/core/InfoButton/InfoButton.stories.d.ts +10 -23
- package/lib/core/InfoButton/InfoButton.stories.d.ts.map +1 -1
- package/lib/core/InfoButton/InfoButton.stories.js +23 -22
- package/lib/core/InfoButton/index.d.ts.map +1 -1
- package/lib/core/InfoButton/index.js +4 -0
- package/lib/core/InfoButton/styles.d.ts +39 -1
- package/lib/core/InfoButton/styles.d.ts.map +1 -1
- package/lib/core/Input/index.d.ts +1 -1
- package/lib/core/Input/index.d.ts.map +1 -1
- package/lib/core/Input/index.js +4 -0
- package/lib/core/private/ButtonOrLink.d.ts +46 -3
- package/lib/core/private/ButtonOrLink.d.ts.map +1 -1
- package/lib/core/private/ButtonOrLink.js +4 -3
- package/lib/layout/Footer/FooterButton/styles.d.ts +3 -3
- package/lib/layout/Footer/FooterLink/styles.d.ts +3 -3
- package/lib/layout/Menu/MenuTop/styles.d.ts +3 -3
- package/package.json +1 -1
- package/esm/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
- package/esm/core/CheckboxController/index.js +0 -22
- package/esm/core/Datepicker/yearMonthForm.js +0 -56
- package/esm/core/EditorOld/config.js +0 -69
- package/esm/core/EditorOld/index.js +0 -147
- package/esm/core/EditorOld/styles.js +0 -65
- package/esm/core/ImageCarousel/index.js +0 -70
- package/esm/core/ImageCarousel/styles.js +0 -58
- package/esm/enums/ModifierKey.js +0 -13
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +0 -7
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts.map +0 -1
- package/lib/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
- package/lib/core/CheckboxController/index.d.ts +0 -1
- package/lib/core/CheckboxController/index.d.ts.map +0 -1
- package/lib/core/CheckboxController/index.js +0 -22
- package/lib/core/Datepicker/yearMonthForm.d.ts +0 -10
- package/lib/core/Datepicker/yearMonthForm.d.ts.map +0 -1
- package/lib/core/Datepicker/yearMonthForm.js +0 -56
- package/lib/core/EditorOld/config.d.ts +0 -56
- package/lib/core/EditorOld/config.d.ts.map +0 -1
- package/lib/core/EditorOld/config.js +0 -69
- package/lib/core/EditorOld/index.d.ts +0 -39
- package/lib/core/EditorOld/index.d.ts.map +0 -1
- package/lib/core/EditorOld/index.js +0 -147
- package/lib/core/EditorOld/styles.d.ts +0 -23
- package/lib/core/EditorOld/styles.d.ts.map +0 -1
- package/lib/core/EditorOld/styles.js +0 -65
- package/lib/core/ImageCarousel/index.d.ts +0 -11
- package/lib/core/ImageCarousel/index.d.ts.map +0 -1
- package/lib/core/ImageCarousel/index.js +0 -70
- package/lib/core/ImageCarousel/styles.d.ts +0 -26
- package/lib/core/ImageCarousel/styles.d.ts.map +0 -1
- package/lib/core/ImageCarousel/styles.js +0 -58
- package/lib/enums/ModifierKey.d.ts +0 -12
- package/lib/enums/ModifierKey.d.ts.map +0 -1
- package/lib/enums/ModifierKey.js +0 -13
@@ -1,10 +1,11 @@
|
|
1
1
|
import DatepickerRange from '.';
|
2
2
|
import { jsx as _jsx } from "react/jsx-runtime";
|
3
|
-
|
3
|
+
const meta = {
|
4
4
|
title: 'Core/DatepickerRange',
|
5
5
|
component: DatepickerRange
|
6
6
|
};
|
7
|
-
export
|
7
|
+
export default meta;
|
8
|
+
export const Default = {
|
8
9
|
render: () => /*#__PURE__*/_jsx("div", {
|
9
10
|
style: {
|
10
11
|
height: '600px'
|
@@ -17,5 +18,5 @@ export const DatepickerRangeDefault = {
|
|
17
18
|
}
|
18
19
|
})
|
19
20
|
}),
|
20
|
-
name: '
|
21
|
+
name: 'Default'
|
21
22
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Dropdown/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyD,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAY,MAAM,gBAAgB,CAAA;AAK3D,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5D,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACtC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Dropdown/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyD,MAAM,OAAO,CAAA;AAC7E,OAAO,EAAE,gBAAgB,EAAY,MAAM,gBAAgB,CAAA;AAK3D,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC5D,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,4BAA4B;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uBAAuB;IACvB,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACtC,6BAA6B;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,mCAAmC;IACnC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;IAC3B,iEAAiE;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAgG9B,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
@@ -1,16 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
export declare const
|
9
|
-
render: () => import("react").JSX.Element;
|
10
|
-
name: string;
|
11
|
-
};
|
12
|
-
export declare const WithClassname: {
|
13
|
-
render: () => import("react").JSX.Element;
|
14
|
-
name: string;
|
15
|
-
};
|
1
|
+
import DropdownMenu from '.';
|
2
|
+
import { Meta, StoryObj } from '@storybook/react';
|
3
|
+
declare const meta: Meta<typeof DropdownMenu>;
|
4
|
+
export default meta;
|
5
|
+
declare type Story = StoryObj<typeof DropdownMenu>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const WithCounterProp: Story;
|
8
|
+
export declare const WithClassname: Story;
|
16
9
|
//# sourceMappingURL=DropdownMenu.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"DropdownMenu.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/DropdownMenu.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,GAAG,CAAA;AAG5B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAGnC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAA;AAE1C,eAAO,MAAM,OAAO,EAAE,KAerB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAkB7B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAa3B,CAAA"}
|
@@ -2,46 +2,54 @@ import DropdownMenu from '.';
|
|
2
2
|
import DropdownMenuOption from './DropdownMenuOption';
|
3
3
|
import IconMail from '../../icons/General/IconMail';
|
4
4
|
import { jsx as _jsx } from "react/jsx-runtime";
|
5
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
5
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
6
|
-
|
7
|
+
const meta = {
|
7
8
|
title: 'Core/DropdownMenu',
|
8
9
|
component: DropdownMenu
|
9
10
|
};
|
11
|
+
export default meta;
|
10
12
|
export const Default = {
|
11
|
-
|
13
|
+
args: {
|
12
14
|
icon: /*#__PURE__*/_jsx(IconMail, {}),
|
13
|
-
children:
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
16
|
+
children: [/*#__PURE__*/_jsx(DropdownMenuOption, {
|
17
|
+
onClick: () => console.log('Option 1 clicked'),
|
18
|
+
children: "Option 1"
|
19
|
+
}), /*#__PURE__*/_jsx(DropdownMenuOption, {
|
20
|
+
onClick: () => console.log('Option 2 clicked'),
|
21
|
+
children: "Option 2"
|
22
|
+
})]
|
23
|
+
})
|
24
|
+
},
|
21
25
|
name: 'Default'
|
22
26
|
};
|
23
27
|
export const WithCounterProp = {
|
24
|
-
|
28
|
+
args: {
|
25
29
|
icon: /*#__PURE__*/_jsx(IconMail, {}),
|
26
|
-
children:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
30
|
+
children: /*#__PURE__*/_jsxs(_Fragment, {
|
31
|
+
children: [/*#__PURE__*/_jsx(DropdownMenuOption, {
|
32
|
+
onClick: () => console.log('Option 1 clicked'),
|
33
|
+
counter: 3,
|
34
|
+
children: "With counter"
|
35
|
+
}), /*#__PURE__*/_jsx(DropdownMenuOption, {
|
36
|
+
onClick: () => console.log('Option 2 clicked'),
|
37
|
+
children: "Option 2"
|
38
|
+
})]
|
39
|
+
})
|
40
|
+
},
|
35
41
|
name: 'With counter prop'
|
36
42
|
};
|
37
43
|
export const WithClassname = {
|
38
|
-
|
44
|
+
args: {
|
39
45
|
icon: /*#__PURE__*/_jsx(IconMail, {}),
|
40
|
-
className:
|
41
|
-
children: /*#__PURE__*/_jsx(
|
42
|
-
|
43
|
-
|
46
|
+
className: 'my-class',
|
47
|
+
children: /*#__PURE__*/_jsx(_Fragment, {
|
48
|
+
children: /*#__PURE__*/_jsx(DropdownMenuOption, {
|
49
|
+
onClick: () => console.log('Option 1 clicked'),
|
50
|
+
children: "This menu has a classname"
|
51
|
+
})
|
44
52
|
})
|
45
|
-
}
|
53
|
+
},
|
46
54
|
name: 'With classname'
|
47
55
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DropdownMenuOption.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/DropdownMenuOption.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"DropdownMenuOption.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/DropdownMenuOption.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,UAAU,MAAM;IACd,yCAAyC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAwBxC,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
@@ -9,12 +9,14 @@ const DropdownMenuOption = ({
|
|
9
9
|
children
|
10
10
|
}) => {
|
11
11
|
return _jsxs(Link, {
|
12
|
+
role: "menuitem",
|
12
13
|
trackingName: "Topbar",
|
13
14
|
trackingEvent: 'DropdownMenu click: ' + (children ? children : ''),
|
14
15
|
css: theme => [dropdownMenuOption(theme)],
|
15
16
|
onClick: onClick,
|
16
17
|
removeUnderline: true,
|
17
18
|
small: true,
|
19
|
+
"aria-label": children ? `Option: ${children}${counter ? `, ${counter} notifications` : ''}` : '',
|
18
20
|
children: [children ? children : '', counter ? ` (${counter})` : '']
|
19
21
|
});
|
20
22
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,UAAU,MAAM;IACd,kBAAkB;IAClB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DropdownMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,UAAU,MAAM;IACd,kBAAkB;IAClB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAC3B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAwDlC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
@@ -9,6 +9,7 @@ const DropdownMenu = ({
|
|
9
9
|
children
|
10
10
|
}) => {
|
11
11
|
const [open, setOpen] = useState(false);
|
12
|
+
const dropdownRef = React.useRef(null);
|
12
13
|
useEffect(() => {
|
13
14
|
const handleClickOutside = e => {
|
14
15
|
setTimeout(() => {
|
@@ -24,9 +25,22 @@ const DropdownMenu = ({
|
|
24
25
|
document.removeEventListener('mousedown', handleClickOutside);
|
25
26
|
};
|
26
27
|
}, [open]);
|
28
|
+
useEffect(() => {
|
29
|
+
if (!dropdownRef?.current) return;
|
30
|
+
if (open) {
|
31
|
+
// Focus the first focusable element in the dropdown when it opens
|
32
|
+
const focusableElements = dropdownRef.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
33
|
+
if (focusableElements.length) {
|
34
|
+
const element = focusableElements[0];
|
35
|
+
element.focus();
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}, [open]);
|
27
39
|
return /*#__PURE__*/_jsxs(Wrapper, {
|
28
40
|
className: className,
|
29
41
|
children: [/*#__PURE__*/_jsx(Button, {
|
42
|
+
"aria-haspopup": true,
|
43
|
+
"aria-expanded": open,
|
30
44
|
nostyle: true,
|
31
45
|
focusable: true,
|
32
46
|
onClick: () => setOpen(!open),
|
@@ -34,6 +48,8 @@ const DropdownMenu = ({
|
|
34
48
|
trackingName: "Topbar",
|
35
49
|
children: icon ? icon : ''
|
36
50
|
}), open && /*#__PURE__*/_jsx(Content, {
|
51
|
+
ref: dropdownRef,
|
52
|
+
role: "menu",
|
37
53
|
children: children
|
38
54
|
})]
|
39
55
|
});
|
@@ -1,24 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
export declare const
|
9
|
-
|
10
|
-
|
11
|
-
};
|
12
|
-
export declare const ValidElements: {
|
13
|
-
render: () => import("react").JSX.Element;
|
14
|
-
name: string;
|
15
|
-
};
|
16
|
-
export declare const InvalidElements: {
|
17
|
-
render: () => import("react").JSX.Element;
|
18
|
-
name: string;
|
19
|
-
};
|
20
|
-
export declare const AllProps: {
|
21
|
-
render: () => import("react").JSX.Element;
|
22
|
-
name: string;
|
23
|
-
};
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Editor from '.';
|
3
|
+
declare const meta: Meta<typeof Editor>;
|
4
|
+
export default meta;
|
5
|
+
declare type Story = StoryObj<typeof Editor>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const Rich: Story;
|
8
|
+
export declare const ValidElements: Story;
|
9
|
+
export declare const InvalidElements: Story;
|
10
|
+
export declare const AllProps: Story;
|
24
11
|
//# sourceMappingURL=Editor.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/Editor.stories.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Editor.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Editor/Editor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,MAAM,MAAM,GAAG,CAAA;AAEtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,IAAI,EAAE,KAQlB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAS3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAS7B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAYtB,CAAA"}
|
@@ -1,54 +1,55 @@
|
|
1
1
|
import Editor from '.';
|
2
|
-
|
3
|
-
export default {
|
2
|
+
const meta = {
|
4
3
|
title: 'Core/Editor',
|
5
4
|
component: Editor
|
6
5
|
};
|
6
|
+
export default meta;
|
7
7
|
export const Default = {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
}
|
8
|
+
args: {
|
9
|
+
label: 'Editor-label',
|
10
|
+
onChange: e => console.log(e)
|
11
|
+
},
|
12
12
|
name: 'Default'
|
13
13
|
};
|
14
14
|
export const Rich = {
|
15
|
-
|
15
|
+
args: {
|
16
|
+
label: 'Editor-label',
|
16
17
|
onChange: e => console.log(e),
|
17
|
-
|
18
|
-
type: "rich",
|
18
|
+
type: 'rich',
|
19
19
|
allowImages: true
|
20
|
-
}
|
20
|
+
},
|
21
21
|
name: 'Rich'
|
22
22
|
};
|
23
23
|
export const ValidElements = {
|
24
|
-
|
24
|
+
args: {
|
25
|
+
label: 'Editor-label',
|
25
26
|
onChange: e => console.log(e),
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
}
|
27
|
+
type: 'custom',
|
28
|
+
customToolbar: 'bold italic underline',
|
29
|
+
validElements: 'strong,p,span,em'
|
30
|
+
},
|
30
31
|
name: 'Valid elements'
|
31
32
|
};
|
32
33
|
export const InvalidElements = {
|
33
|
-
|
34
|
+
args: {
|
35
|
+
label: 'Editor-label',
|
34
36
|
onChange: e => console.log(e),
|
35
|
-
|
36
|
-
|
37
|
-
|
37
|
+
type: 'custom',
|
38
|
+
customToolbar: 'bold italic underline',
|
39
|
+
invalidElements: 'button,a,h1,h2,h3,h4,h5,h6'
|
40
|
+
},
|
38
41
|
name: 'Invalid elements'
|
39
42
|
};
|
40
43
|
export const AllProps = {
|
41
|
-
|
42
|
-
label:
|
43
|
-
|
44
|
-
|
44
|
+
args: {
|
45
|
+
label: 'Editor-label',
|
46
|
+
onChange: e => console.log(e),
|
47
|
+
type: 'rich',
|
45
48
|
allowImages: true,
|
46
|
-
invalidElements:
|
47
|
-
invalidMessage:
|
49
|
+
invalidElements: 'button,a,h1,h2,h3,h4,h5,h6',
|
50
|
+
invalidMessage: 'Memes are not allowed',
|
48
51
|
height: 400,
|
49
|
-
maxHeight: 600
|
50
|
-
|
51
|
-
|
52
|
-
}),
|
53
|
-
name: 'Props'
|
52
|
+
maxHeight: 600
|
53
|
+
},
|
54
|
+
name: 'All props'
|
54
55
|
};
|
@@ -28,9 +28,11 @@ interface IProps {
|
|
28
28
|
isControlledState?: boolean;
|
29
29
|
/** Files if "isControlledState" is set */
|
30
30
|
controlledFiles?: File[];
|
31
|
+
/** Adds an id to the input */
|
32
|
+
id?: string;
|
31
33
|
/** Event CB on change, returns object if not multiple is set, if not return list of type File[] */
|
32
34
|
onChange: (files: File | File[] | null) => void;
|
33
35
|
}
|
34
|
-
declare const FileInput: ({ multiple, accept, label, invalidMessage, text, initialFiles, width, hideFileList, icon, fileMaxsixe, nostyle, rotateIcon, isControlledState, controlledFiles, onChange, }: IProps) => React.JSX.Element;
|
36
|
+
declare const FileInput: ({ multiple, accept, label, invalidMessage, text, initialFiles, width, hideFileList, icon, fileMaxsixe, nostyle, rotateIcon, isControlledState, controlledFiles, id, onChange, }: IProps) => React.JSX.Element;
|
35
37
|
export default FileInput;
|
36
38
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAqB/C,UAAU,MAAM;IACd,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;IACrB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sBAAsB;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,IAAI,EAAE,CAAA;IACxB,oGAAoG;IACpG,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAChD;AAED,QAAA,MAAM,SAAS,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAA;AAqB/C,UAAU,MAAM;IACd,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,0CAA0C;IAC1C,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;IACrB,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,sBAAsB;IACtB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,sBAAsB;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mBAAmB;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,IAAI,EAAE,CAAA;IACxB,8BAA8B;IAC9B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,oGAAoG;IACpG,QAAQ,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,IAAI,KAAK,IAAI,CAAA;CAChD;AAED,QAAA,MAAM,SAAS,oLAiBZ,MAAM,sBA6HR,CAAA;AAED,eAAe,SAAS,CAAA"}
|
@@ -22,6 +22,7 @@ const FileInput = ({
|
|
22
22
|
rotateIcon,
|
23
23
|
isControlledState,
|
24
24
|
controlledFiles,
|
25
|
+
id = 'file-input',
|
25
26
|
onChange
|
26
27
|
}) => {
|
27
28
|
const [uncontrolledFiles, setUncontrolledFiles] = useState(initialFiles);
|
@@ -30,6 +31,7 @@ const FileInput = ({
|
|
30
31
|
const files = isControlledState ? controlledFiles || [] : uncontrolledFiles;
|
31
32
|
const hiddenFileInput = useRef(null);
|
32
33
|
const handleClick = () => {
|
34
|
+
if (!hiddenFileInput.current) return;
|
33
35
|
const node = hiddenFileInput.current;
|
34
36
|
node.click();
|
35
37
|
};
|
@@ -76,6 +78,7 @@ const FileInput = ({
|
|
76
78
|
};
|
77
79
|
return /*#__PURE__*/_jsxs(Wrapper, {
|
78
80
|
children: [label && /*#__PURE__*/_jsx(Label, {
|
81
|
+
id: id,
|
79
82
|
children: label
|
80
83
|
}), /*#__PURE__*/_jsxs(FileWrapper, {
|
81
84
|
children: [files.length > 0 && !hideFileList && /*#__PURE__*/_jsx(DocumentList, {
|
@@ -102,6 +105,7 @@ const FileInput = ({
|
|
102
105
|
width: width,
|
103
106
|
type: "button",
|
104
107
|
nostyle: nostyle,
|
108
|
+
"aria-labelledby": "fileInputLabel",
|
105
109
|
children: !nostyle ? /*#__PURE__*/_jsxs(ButtonContent, {
|
106
110
|
children: [text, /*#__PURE__*/_jsx(Icon, {
|
107
111
|
rotated: rotateIcon ? 1 : 0,
|
@@ -116,7 +120,8 @@ const FileInput = ({
|
|
116
120
|
onChange: handleChange,
|
117
121
|
multiple: multiple,
|
118
122
|
accept: accept,
|
119
|
-
ref: hiddenFileInput
|
123
|
+
ref: hiddenFileInput,
|
124
|
+
"aria-hidden": "true"
|
120
125
|
})]
|
121
126
|
})]
|
122
127
|
}), invalidMessage && /*#__PURE__*/_jsx(ErrorMessage, {
|
@@ -124,6 +129,7 @@ const FileInput = ({
|
|
124
129
|
}), sizeError && /*#__PURE__*/_jsxs(Alert, {
|
125
130
|
danger: true,
|
126
131
|
onClose: () => setSizeError(false),
|
132
|
+
"aria-live": "assertive",
|
127
133
|
children: ["Fil kan ikke overstige ", formatBytes(fileMaxsixe)]
|
128
134
|
})]
|
129
135
|
});
|
@@ -19,7 +19,45 @@ export declare const Document: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
20
20
|
as?: import("react").ElementType<any> | undefined;
|
21
21
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
22
|
-
export declare const Delete: import("@emotion/styled").StyledComponent<
|
22
|
+
export declare const Delete: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
|
23
|
+
afterIcon?: import("react").ReactNode;
|
24
|
+
beforeIcon?: import("react").ReactNode;
|
25
|
+
children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
|
26
|
+
disabled?: boolean | undefined;
|
27
|
+
href?: string | undefined;
|
28
|
+
loading?: boolean | undefined;
|
29
|
+
onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
30
|
+
onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
|
31
|
+
onCustomKeyPress?: {
|
32
|
+
key: string;
|
33
|
+
action: (event: KeyboardEvent) => void;
|
34
|
+
} | undefined;
|
35
|
+
onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
36
|
+
onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
37
|
+
onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
|
38
|
+
openInNewWindow?: boolean | undefined;
|
39
|
+
rel?: string | undefined;
|
40
|
+
trackingEvent?: string | undefined;
|
41
|
+
trackingName?: string | undefined;
|
42
|
+
type?: "button" | "submit" | "reset" | undefined;
|
43
|
+
target?: string | undefined;
|
44
|
+
download?: any;
|
45
|
+
tabIndex?: number | undefined;
|
46
|
+
} & {
|
47
|
+
success?: boolean | undefined;
|
48
|
+
danger?: boolean | undefined;
|
49
|
+
highlight?: boolean | undefined;
|
50
|
+
outline?: boolean | undefined;
|
51
|
+
nostyle?: boolean | undefined;
|
52
|
+
focusable?: boolean | undefined;
|
53
|
+
border?: string | undefined;
|
54
|
+
css?: import("@emotion/utils").SerializedStyles | undefined;
|
55
|
+
loading?: boolean | undefined;
|
56
|
+
back?: boolean | undefined;
|
57
|
+
small?: boolean | undefined;
|
58
|
+
transparentBg?: boolean | undefined;
|
59
|
+
tabIndex?: number | undefined;
|
60
|
+
} & import("react").RefAttributes<HTMLButtonElement> & {
|
23
61
|
theme?: import("@emotion/react").Theme | undefined;
|
24
62
|
}, {}, {}>;
|
25
63
|
export declare const FileButton: import("@emotion/styled").StyledComponent<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,OAAO;;;yGAGnB,CAAA;AAED,eAAO,MAAM,WAAW;;;yGAAe,CAAA;AAEvC,eAAO,MAAM,YAAY;;;yGAIxB,CAAA;AACD,eAAO,MAAM,eAAe;;;yGAI3B,CAAA;AAED,eAAO,MAAM,QAAQ;;;2GAcpB,CAAA;AAED,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/FileInput/styles.ts"],"names":[],"mappings":";AAKA,eAAO,MAAM,OAAO;;;yGAGnB,CAAA;AAED,eAAO,MAAM,WAAW;;;yGAAe,CAAA;AAEvC,eAAO,MAAM,YAAY;;;yGAIxB,CAAA;AACD,eAAO,MAAM,eAAe;;;yGAI3B,CAAA;AAED,eAAO,MAAM,QAAQ;;;2GAcpB,CAAA;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAOlB,CAAA;AAED,eAAO,MAAM,UAAU;;;;WACJ,MAAM;;qHAsBxB,CAAA;AAED,eAAO,MAAM,aAAa;;;2GAOzB,CAAA;AAED,eAAO,MAAM,WAAW;;;kHAEvB,CAAA;AAED,eAAO,MAAM,IAAI;;;;;2GAOhB,CAAA;AAED,eAAO,MAAM,KAAK;;;2GAKjB,CAAA;AAED,eAAO,MAAM,YAAY;;;yGAMxB,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
};
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import GoogleButtonComponent from '.';
|
3
|
+
declare const meta: Meta<typeof GoogleButtonComponent>;
|
4
|
+
export default meta;
|
5
|
+
declare type Story = StoryObj<typeof GoogleButtonComponent>;
|
6
|
+
export declare const GoogleButton: Story;
|
8
7
|
//# sourceMappingURL=GoogleButton.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"GoogleButton.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/GoogleButton/GoogleButton.stories.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"GoogleButton.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/GoogleButton/GoogleButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,qBAAqB,MAAM,GAAG,CAAA;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,qBAAqB,CAG5C,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnD,eAAO,MAAM,YAAY,EAAE,KAK1B,CAAA"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import GoogleButtonComponent from '.';
|
2
|
-
|
3
|
-
export default {
|
2
|
+
const meta = {
|
4
3
|
title: 'Core/GoogleButton',
|
5
4
|
component: GoogleButtonComponent
|
6
5
|
};
|
6
|
+
export default meta;
|
7
7
|
export const GoogleButton = {
|
8
|
-
|
8
|
+
args: {
|
9
9
|
onClick: () => console.log('clicking button')
|
10
|
-
}
|
10
|
+
},
|
11
11
|
name: 'Google button'
|
12
12
|
};
|
@@ -1,36 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
export declare const
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
export declare const
|
13
|
-
|
14
|
-
name: string;
|
15
|
-
};
|
16
|
-
export declare const Header4: {
|
17
|
-
render: () => import("react").JSX.Element;
|
18
|
-
name: string;
|
19
|
-
};
|
20
|
-
export declare const Header5: {
|
21
|
-
render: () => import("react").JSX.Element;
|
22
|
-
name: string;
|
23
|
-
};
|
24
|
-
export declare const HeaderCustomColor: {
|
25
|
-
render: () => import("react").JSX.Element;
|
26
|
-
name: string;
|
27
|
-
};
|
28
|
-
export declare const HeaderPrimaryColor: {
|
29
|
-
render: () => import("react").JSX.Element;
|
30
|
-
name: string;
|
31
|
-
};
|
32
|
-
export declare const HeaderSecondaryColor: {
|
33
|
-
render: () => import("react").JSX.Element;
|
34
|
-
name: string;
|
35
|
-
};
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Header from '.';
|
3
|
+
declare const meta: Meta<typeof Header>;
|
4
|
+
export default meta;
|
5
|
+
declare type Story = StoryObj<typeof Header>;
|
6
|
+
export declare const Header1: Story;
|
7
|
+
export declare const Header2: Story;
|
8
|
+
export declare const Header3: Story;
|
9
|
+
export declare const Header4: Story;
|
10
|
+
export declare const Header5: Story;
|
11
|
+
export declare const HeaderSecondaryColor: Story;
|
12
|
+
export declare const HeaderPrimaryColor: Story;
|
13
|
+
export declare const HeaderCustomColor: Story;
|
36
14
|
//# sourceMappingURL=Header.stories.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Header.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Header/Header.stories.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Header.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Header/Header.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,MAAM,MAAM,GAAG,CAAA;AAEtB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAG7B,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAA;AAEpC,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAMlC,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAM/B,CAAA"}
|