@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.
Files changed (151) hide show
  1. package/dist/bundle.js +117 -31
  2. package/esm/core/BoxedTable/TableBody/index.js +10 -0
  3. package/esm/core/BoxedTable/TableBody/styles.js +16 -0
  4. package/esm/core/Button/Button.stories.js +51 -49
  5. package/esm/core/Card/index.js +4 -3
  6. package/esm/core/Checkbox/index.js +32 -9
  7. package/esm/core/CollapseList/Item.js +4 -3
  8. package/esm/core/CollapseList/index.js +4 -3
  9. package/esm/core/Datepicker/Datepicker.stories.js +7 -6
  10. package/esm/core/DatepickerRange/DatepickerRange.stories.js +4 -3
  11. package/esm/core/Dropdown/index.js +0 -1
  12. package/esm/core/DropdownMenu/DropdownMenu.stories.js +34 -26
  13. package/esm/core/DropdownMenu/DropdownMenuOption.js +2 -0
  14. package/esm/core/DropdownMenu/index.js +16 -0
  15. package/esm/core/Editor/Editor.stories.js +31 -30
  16. package/esm/core/FileInput/index.js +7 -1
  17. package/esm/core/GoogleButton/GoogleButton.stories.js +4 -4
  18. package/esm/core/Header/Header.stories.js +42 -45
  19. package/esm/core/HighlightText/HighlightText.stories.js +11 -11
  20. package/esm/core/Image/index.js +19 -4
  21. package/esm/core/ImagePicker/ImagePicker.stories.js +2 -1
  22. package/esm/core/ImagePicker/index.js +4 -0
  23. package/esm/core/ImageViewer/index.js +15 -5
  24. package/esm/core/InfoButton/InfoButton.stories.js +23 -22
  25. package/esm/core/InfoButton/index.js +4 -0
  26. package/esm/core/Input/index.js +4 -0
  27. package/esm/core/private/ButtonOrLink.js +4 -3
  28. package/lib/core/Autocomplete/styles.d.ts +39 -1
  29. package/lib/core/Autocomplete/styles.d.ts.map +1 -1
  30. package/lib/core/Box/styles.d.ts +39 -1
  31. package/lib/core/Box/styles.d.ts.map +1 -1
  32. package/lib/core/BoxedTable/TableBody/index.d.ts +7 -0
  33. package/lib/core/BoxedTable/TableBody/index.d.ts.map +1 -0
  34. package/lib/core/BoxedTable/TableBody/index.js +10 -0
  35. package/lib/core/BoxedTable/TableBody/styles.d.ts +6 -0
  36. package/lib/core/BoxedTable/TableBody/styles.d.ts.map +1 -0
  37. package/lib/core/BoxedTable/TableBody/styles.js +16 -0
  38. package/lib/core/Button/Button.stories.d.ts +20 -63
  39. package/lib/core/Button/Button.stories.d.ts.map +1 -1
  40. package/lib/core/Button/Button.stories.js +51 -49
  41. package/lib/core/Button/index.d.ts +54 -3
  42. package/lib/core/Button/index.d.ts.map +1 -1
  43. package/lib/core/Card/index.d.ts +14 -15
  44. package/lib/core/Card/index.d.ts.map +1 -1
  45. package/lib/core/Card/index.js +4 -3
  46. package/lib/core/Checkbox/index.d.ts +3 -3
  47. package/lib/core/Checkbox/index.d.ts.map +1 -1
  48. package/lib/core/Checkbox/index.js +32 -9
  49. package/lib/core/CollapseList/Item.d.ts +1 -1
  50. package/lib/core/CollapseList/Item.d.ts.map +1 -1
  51. package/lib/core/CollapseList/Item.js +4 -3
  52. package/lib/core/CollapseList/index.d.ts +1 -1
  53. package/lib/core/CollapseList/index.d.ts.map +1 -1
  54. package/lib/core/CollapseList/index.js +4 -3
  55. package/lib/core/CollapseList/styles.d.ts +39 -1
  56. package/lib/core/CollapseList/styles.d.ts.map +1 -1
  57. package/lib/core/Datepicker/Datepicker.stories.d.ts +6 -6
  58. package/lib/core/Datepicker/Datepicker.stories.d.ts.map +1 -1
  59. package/lib/core/Datepicker/Datepicker.stories.js +7 -6
  60. package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts +6 -7
  61. package/lib/core/DatepickerRange/DatepickerRange.stories.d.ts.map +1 -1
  62. package/lib/core/DatepickerRange/DatepickerRange.stories.js +4 -3
  63. package/lib/core/Dropdown/index.d.ts.map +1 -1
  64. package/lib/core/Dropdown/index.js +0 -1
  65. package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts +8 -15
  66. package/lib/core/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
  67. package/lib/core/DropdownMenu/DropdownMenu.stories.js +34 -26
  68. package/lib/core/DropdownMenu/DropdownMenuOption.d.ts.map +1 -1
  69. package/lib/core/DropdownMenu/DropdownMenuOption.js +2 -0
  70. package/lib/core/DropdownMenu/index.d.ts.map +1 -1
  71. package/lib/core/DropdownMenu/index.js +16 -0
  72. package/lib/core/Editor/Editor.stories.d.ts +10 -23
  73. package/lib/core/Editor/Editor.stories.d.ts.map +1 -1
  74. package/lib/core/Editor/Editor.stories.js +31 -30
  75. package/lib/core/FileInput/index.d.ts +3 -1
  76. package/lib/core/FileInput/index.d.ts.map +1 -1
  77. package/lib/core/FileInput/index.js +7 -1
  78. package/lib/core/FileInput/styles.d.ts +39 -1
  79. package/lib/core/FileInput/styles.d.ts.map +1 -1
  80. package/lib/core/GoogleButton/GoogleButton.stories.d.ts +6 -7
  81. package/lib/core/GoogleButton/GoogleButton.stories.d.ts.map +1 -1
  82. package/lib/core/GoogleButton/GoogleButton.stories.js +4 -4
  83. package/lib/core/Header/Header.stories.d.ts +13 -35
  84. package/lib/core/Header/Header.stories.d.ts.map +1 -1
  85. package/lib/core/Header/Header.stories.js +42 -45
  86. package/lib/core/HighlightText/HighlightText.stories.d.ts +7 -11
  87. package/lib/core/HighlightText/HighlightText.stories.d.ts.map +1 -1
  88. package/lib/core/HighlightText/HighlightText.stories.js +11 -11
  89. package/lib/core/Image/index.d.ts +1 -0
  90. package/lib/core/Image/index.d.ts.map +1 -1
  91. package/lib/core/Image/index.js +19 -4
  92. package/lib/core/ImagePicker/ImagePicker.stories.d.ts +6 -17
  93. package/lib/core/ImagePicker/ImagePicker.stories.d.ts.map +1 -1
  94. package/lib/core/ImagePicker/ImagePicker.stories.js +2 -1
  95. package/lib/core/ImagePicker/index.d.ts.map +1 -1
  96. package/lib/core/ImagePicker/index.js +4 -0
  97. package/lib/core/ImageViewer/index.d.ts.map +1 -1
  98. package/lib/core/ImageViewer/index.js +15 -5
  99. package/lib/core/InfoButton/InfoButton.stories.d.ts +10 -23
  100. package/lib/core/InfoButton/InfoButton.stories.d.ts.map +1 -1
  101. package/lib/core/InfoButton/InfoButton.stories.js +23 -22
  102. package/lib/core/InfoButton/index.d.ts.map +1 -1
  103. package/lib/core/InfoButton/index.js +4 -0
  104. package/lib/core/InfoButton/styles.d.ts +39 -1
  105. package/lib/core/InfoButton/styles.d.ts.map +1 -1
  106. package/lib/core/Input/index.d.ts +1 -1
  107. package/lib/core/Input/index.d.ts.map +1 -1
  108. package/lib/core/Input/index.js +4 -0
  109. package/lib/core/private/ButtonOrLink.d.ts +46 -3
  110. package/lib/core/private/ButtonOrLink.d.ts.map +1 -1
  111. package/lib/core/private/ButtonOrLink.js +4 -3
  112. package/lib/layout/Footer/FooterButton/styles.d.ts +3 -3
  113. package/lib/layout/Footer/FooterLink/styles.d.ts +3 -3
  114. package/lib/layout/Menu/MenuTop/styles.d.ts +3 -3
  115. package/package.json +1 -1
  116. package/esm/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
  117. package/esm/core/CheckboxController/index.js +0 -22
  118. package/esm/core/Datepicker/yearMonthForm.js +0 -56
  119. package/esm/core/EditorOld/config.js +0 -69
  120. package/esm/core/EditorOld/index.js +0 -147
  121. package/esm/core/EditorOld/styles.js +0 -65
  122. package/esm/core/ImageCarousel/index.js +0 -70
  123. package/esm/core/ImageCarousel/styles.js +0 -58
  124. package/esm/enums/ModifierKey.js +0 -13
  125. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts +0 -7
  126. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.d.ts.map +0 -1
  127. package/lib/core/Autocomplete/utils/useHandleOptionsHeight.js +0 -16
  128. package/lib/core/CheckboxController/index.d.ts +0 -1
  129. package/lib/core/CheckboxController/index.d.ts.map +0 -1
  130. package/lib/core/CheckboxController/index.js +0 -22
  131. package/lib/core/Datepicker/yearMonthForm.d.ts +0 -10
  132. package/lib/core/Datepicker/yearMonthForm.d.ts.map +0 -1
  133. package/lib/core/Datepicker/yearMonthForm.js +0 -56
  134. package/lib/core/EditorOld/config.d.ts +0 -56
  135. package/lib/core/EditorOld/config.d.ts.map +0 -1
  136. package/lib/core/EditorOld/config.js +0 -69
  137. package/lib/core/EditorOld/index.d.ts +0 -39
  138. package/lib/core/EditorOld/index.d.ts.map +0 -1
  139. package/lib/core/EditorOld/index.js +0 -147
  140. package/lib/core/EditorOld/styles.d.ts +0 -23
  141. package/lib/core/EditorOld/styles.d.ts.map +0 -1
  142. package/lib/core/EditorOld/styles.js +0 -65
  143. package/lib/core/ImageCarousel/index.d.ts +0 -11
  144. package/lib/core/ImageCarousel/index.d.ts.map +0 -1
  145. package/lib/core/ImageCarousel/index.js +0 -70
  146. package/lib/core/ImageCarousel/styles.d.ts +0 -26
  147. package/lib/core/ImageCarousel/styles.d.ts.map +0 -1
  148. package/lib/core/ImageCarousel/styles.js +0 -58
  149. package/lib/enums/ModifierKey.d.ts +0 -12
  150. package/lib/enums/ModifierKey.d.ts.map +0 -1
  151. package/lib/enums/ModifierKey.js +0 -13
@@ -1,121 +1,123 @@
1
1
  import Button from '.';
2
2
  import IconCaretDown from '../../icons/General/IconCaretDown';
3
- import IconEdit from '../../icons/General/IconEdit';
4
3
  import { jsx as _jsx } from "react/jsx-runtime";
5
- export default {
4
+ const meta = {
6
5
  title: 'Core/Button',
7
6
  component: Button
8
7
  };
8
+ export default meta;
9
9
  export const Default = {
10
- render: () => /*#__PURE__*/_jsx(Button, {
11
- children: "Standard button"
12
- }),
10
+ args: {
11
+ children: 'Standard button'
12
+ },
13
13
  name: 'Default'
14
14
  };
15
15
  export const IconBefore = {
16
- render: () => /*#__PURE__*/_jsx(Button, {
16
+ args: {
17
17
  beforeIcon: /*#__PURE__*/_jsx(IconCaretDown, {}),
18
- children: "Standard button"
19
- }),
18
+ children: 'Standard button'
19
+ },
20
20
  name: 'Icon before'
21
21
  };
22
+
23
+ // Rewrite all stories to use args instead of render
24
+
22
25
  export const IconAfter = {
23
- render: () => /*#__PURE__*/_jsx(Button, {
26
+ args: {
24
27
  afterIcon: /*#__PURE__*/_jsx(IconCaretDown, {}),
25
- children: "Standard button"
26
- }),
28
+ children: 'Standard button'
29
+ },
27
30
  name: 'Icon after'
28
31
  };
29
32
  export const Success = {
30
- render: () => /*#__PURE__*/_jsx(Button, {
33
+ args: {
31
34
  success: true,
32
- children: "Success button"
33
- }),
35
+ children: 'Success button'
36
+ },
34
37
  name: 'Success'
35
38
  };
36
39
  export const Danger = {
37
- render: () => /*#__PURE__*/_jsx(Button, {
40
+ args: {
38
41
  danger: true,
39
- children: "Danger button"
40
- }),
42
+ children: 'Danger button'
43
+ },
41
44
  name: 'Danger'
42
45
  };
43
46
  export const Loading = {
44
- render: () => /*#__PURE__*/_jsx(Button, {
47
+ args: {
45
48
  loading: true,
46
- children: "Loading button"
47
- }),
49
+ children: 'Loading button'
50
+ },
48
51
  name: 'Loading'
49
52
  };
50
53
  export const Disabled = {
51
- render: () => /*#__PURE__*/_jsx(Button, {
54
+ args: {
52
55
  disabled: true,
53
- children: "Disabled button"
54
- }),
56
+ children: 'Disabled button'
57
+ },
55
58
  name: 'Disabled'
56
59
  };
57
60
  export const Highlighted = {
58
- render: () => /*#__PURE__*/_jsx(Button, {
61
+ args: {
59
62
  highlight: true,
60
- children: "Hightlighted button"
61
- }),
63
+ children: 'Hightlighted button'
64
+ },
62
65
  name: 'Highlighted'
63
66
  };
64
67
  export const OutlineHighlighted = {
65
- render: () => /*#__PURE__*/_jsx(Button, {
68
+ args: {
66
69
  highlight: true,
67
70
  outline: true,
68
- children: "Hightlighted outline button"
69
- }),
71
+ children: 'Hightlighted outline button'
72
+ },
70
73
  name: 'Outline highlighted'
71
74
  };
72
75
  export const Back = {
73
- render: () => /*#__PURE__*/_jsx(Button, {
76
+ args: {
74
77
  back: true,
75
- children: "Go back"
76
- }),
78
+ children: 'Go back'
79
+ },
77
80
  name: 'Back'
78
81
  };
79
82
  export const Small = {
80
- render: () => /*#__PURE__*/_jsx(Button, {
83
+ args: {
81
84
  small: true,
82
- children: "Small"
83
- }),
85
+ children: 'Small button'
86
+ },
84
87
  name: 'Small'
85
88
  };
86
89
  export const DangerOutline = {
87
- render: () => /*#__PURE__*/_jsx(Button, {
90
+ args: {
88
91
  danger: true,
89
92
  outline: true,
90
- children: "Danger outline"
91
- }),
93
+ children: 'Danger outline'
94
+ },
92
95
  name: 'Danger outline'
93
96
  };
94
97
  export const TransparentBackground = {
95
- render: () => /*#__PURE__*/_jsx(Button, {
98
+ args: {
96
99
  outline: true,
97
100
  transparentBg: true,
98
- children: "Danger outline"
99
- }),
101
+ children: 'Danger outline'
102
+ },
100
103
  name: 'Transparent background'
101
104
  };
102
105
  export const NoStyle = {
103
- render: () => /*#__PURE__*/_jsx(Button, {
106
+ args: {
104
107
  nostyle: true,
105
- focusable: true,
106
- children: /*#__PURE__*/_jsx(IconEdit, {})
107
- }),
108
+ children: 'No style'
109
+ },
108
110
  name: 'No style'
109
111
  };
110
112
  export const EventKeyPresses = {
111
- render: () => /*#__PURE__*/_jsx(Button, {
113
+ args: {
112
114
  onEnterKeyPress: () => console.log('Enter pressed'),
113
115
  onEscapeKeyPress: () => console.log('Escape pressed'),
114
- onKeyPress: {
116
+ onCustomKeyPress: {
115
117
  key: 'E',
116
118
  action: e => console.log('Key pressed', e.key)
117
119
  },
118
- children: "Actionlistener button"
119
- }),
120
+ children: 'Actionlistener button'
121
+ },
120
122
  name: 'Event key presses'
121
123
  };
@@ -1,8 +1,8 @@
1
1
  /** @jsxImportSource @emotion/react */
2
- import React, { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
3
  import { SerializedStyles } from '@emotion/react';
4
4
  import { Props as ButtonOrLinkProps } from '../private/ButtonOrLink';
5
- export declare type IProps = ButtonOrLinkProps & HTMLAttributes<HTMLAnchorElement | HTMLButtonElement> & {
5
+ export declare type IProps = ButtonOrLinkProps & {
6
6
  /** Success color styling */
7
7
  success?: boolean;
8
8
  /** Danger color styling */
@@ -30,6 +30,57 @@ export declare type IProps = ButtonOrLinkProps & HTMLAttributes<HTMLAnchorElemen
30
30
  /** Set tabindex */
31
31
  tabIndex?: number;
32
32
  };
33
- declare const Button: React.ForwardRefExoticComponent<Omit<IProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
33
+ declare const Button: React.ForwardRefExoticComponent<React.HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
34
+ afterIcon?: React.ReactNode;
35
+ beforeIcon?: React.ReactNode;
36
+ children: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal;
37
+ disabled?: boolean | undefined;
38
+ href?: string | undefined;
39
+ loading?: boolean | undefined;
40
+ onClick?: ((event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
41
+ onMouseUp?: ((event: React.MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
42
+ onCustomKeyPress?: {
43
+ key: string;
44
+ action: (event: KeyboardEvent) => void;
45
+ } | undefined;
46
+ onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
47
+ onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
48
+ onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
49
+ openInNewWindow?: boolean | undefined;
50
+ rel?: string | undefined;
51
+ trackingEvent?: string | undefined;
52
+ trackingName?: string | undefined;
53
+ type?: "button" | "submit" | "reset" | undefined;
54
+ target?: string | undefined;
55
+ download?: any;
56
+ tabIndex?: number | undefined;
57
+ } & {
58
+ /** Success color styling */
59
+ success?: boolean | undefined;
60
+ /** Danger color styling */
61
+ danger?: boolean | undefined;
62
+ /** Bigger button */
63
+ highlight?: boolean | undefined;
64
+ /** Outlined button styling */
65
+ outline?: boolean | undefined;
66
+ /** Without style */
67
+ nostyle?: boolean | undefined;
68
+ /** Adds focus outline, i.e. for nostyle buttons */
69
+ focusable?: boolean | undefined;
70
+ /** Custom border */
71
+ border?: string | undefined;
72
+ /** Custom css */
73
+ css?: SerializedStyles | undefined;
74
+ /** Shows loader instead of children */
75
+ loading?: boolean | undefined;
76
+ /** Backbutton style */
77
+ back?: boolean | undefined;
78
+ /** Smaller button size */
79
+ small?: boolean | undefined;
80
+ /** Transparent bg toggle */
81
+ transparentBg?: boolean | undefined;
82
+ /** Set tabindex */
83
+ tabIndex?: number | undefined;
84
+ } & React.RefAttributes<HTMLButtonElement>>;
34
85
  export default Button;
35
86
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAkB,cAAc,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,oBAAY,MAAM,GAAG,iBAAiB,GACpC,cAAc,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,GAAG;IACtD,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oBAAoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAEH,QAAA,MAAM,MAAM,+FAkFV,CAAA;AACF,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Button/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAqB,EACnB,KAAK,IAAI,iBAAiB,EAC3B,MAAM,yBAAyB,CAAA;AAOhC,oBAAY,MAAM,GAAG,iBAAiB,GAAG;IACvC,4BAA4B;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2BAA2B;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,oBAAoB;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,oBAAoB;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,iBAAiB;IACjB,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,uCAAuC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,0BAA0B;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,4BAA4B;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;IA5BV,4BAA4B;;IAE5B,2BAA2B;;IAE3B,oBAAoB;;IAEpB,8BAA8B;;IAE9B,oBAAoB;;IAEpB,mDAAmD;;IAEnD,oBAAoB;;IAEpB,iBAAiB;;IAEjB,uCAAuC;;IAEvC,uBAAuB;;IAEvB,0BAA0B;;IAE1B,4BAA4B;;IAE5B,mBAAmB;;2CAsFnB,CAAA;AACF,eAAe,MAAM,CAAA"}
@@ -1,34 +1,33 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import React from 'react';
3
3
  import { SerializedStyles } from '@emotion/react';
4
- declare type IProps = React.HTMLAttributes<HTMLDivElement> & {
4
+ declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
5
5
  /** Set to true for hover effect */
6
- withhover?: boolean;
6
+ withhover?: boolean | undefined;
7
7
  /** To set primary background color*/
8
- primary?: boolean;
8
+ primary?: boolean | undefined;
9
9
  /** Gray background color */
10
- gray?: boolean;
10
+ gray?: boolean | undefined;
11
11
  /** OnClick callback function */
12
- onClick?: () => void;
12
+ onClick?: (() => void) | undefined;
13
13
  /** No padding */
14
- noPadding?: boolean;
14
+ noPadding?: boolean | undefined;
15
15
  /** Large padding around edges */
16
- largePadding?: boolean;
16
+ largePadding?: boolean | undefined;
17
17
  /** Height of card box */
18
- height?: number;
18
+ height?: number | undefined;
19
19
  /** Set to true for no background color */
20
- nobackground?: boolean;
20
+ nobackground?: boolean | undefined;
21
21
  /** Set to true to add shadow to Card border */
22
- shadow?: boolean;
22
+ shadow?: boolean | undefined;
23
23
  /** Sets overflow visible */
24
- overflowvisible?: boolean;
24
+ overflowvisible?: boolean | undefined;
25
25
  /** Override with custom CSS */
26
- css?: SerializedStyles;
26
+ css?: SerializedStyles | undefined;
27
27
  /** Classname prop */
28
- className?: string;
28
+ className?: string | undefined;
29
29
  /** Children */
30
30
  children?: React.ReactNode | React.ReactNode[];
31
- };
32
- declare const Card: React.FC<IProps>;
31
+ } & React.RefAttributes<HTMLDivElement>>;
33
32
  export default Card;
34
33
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Card/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAIjD,aAAK,MAAM,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACnD,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,iBAAiB;IACjB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iCAAiC;IACjC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,0CAA0C;IAC1C,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6BAA6B;IAC7B,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,+BAA+B;IAC/B,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,qBAAqB;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C,CAAA;AAED,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiC1B,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Card/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAiCjD,QAAA,MAAM,IAAI;IA5BR,mCAAmC;;IAEnC,qCAAqC;;IAErC,4BAA4B;;IAE5B,gCAAgC;qBAChB,IAAI;IACpB,iBAAiB;;IAEjB,iCAAiC;;IAEjC,yBAAyB;;IAEzB,0CAA0C;;IAE1C,+CAA+C;;IAE/C,6BAA6B;;IAE7B,+BAA+B;;IAE/B,qBAAqB;;IAErB,eAAe;eACJ,MAAM,SAAS,GAAG,MAAM,SAAS,EAAE;wCAuC/C,CAAA;AAED,eAAe,IAAI,CAAA"}
@@ -3,10 +3,10 @@ import React from 'react';
3
3
  import { styles } from './styles';
4
4
  import { Key } from '../../enums/Keyboard';
5
5
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
6
- const Card = ({
6
+ const Card = /*#__PURE__*/React.forwardRef(({
7
7
  className,
8
8
  ...props
9
- }) => {
9
+ }, ref) => {
10
10
  const handleOnKeyPress = e => {
11
11
  if (e.key === Key.enter || e.key === Key.space) {
12
12
  if (props.onClick) {
@@ -15,6 +15,7 @@ const Card = ({
15
15
  }
16
16
  };
17
17
  return _jsx("div", {
18
+ ref: ref,
18
19
  css: theme => [styles.default(theme), props.shadow && styles.shadow(theme), props.withhover && styles.withHover(theme), props.primary && styles.primary(theme), props.gray && styles.gray, props.noPadding && styles.noPadding, props.height && styles.height(props.height), props.nobackground && styles.nobackground, props.largePadding && styles.largePadding, props.overflowvisible && styles.overflowvisible, props.css && props.css],
19
20
  tabIndex: props.onClick ? 0 : undefined,
20
21
  onClick: props.onClick,
@@ -23,5 +24,5 @@ const Card = ({
23
24
  ...props,
24
25
  children: props.children
25
26
  });
26
- };
27
+ });
27
28
  export default Card;
@@ -1,10 +1,8 @@
1
1
  /** @jsxImportSource @emotion/react */
2
2
  import React from 'react';
3
- interface IProps {
3
+ interface IProps extends React.HTMLAttributes<HTMLInputElement> {
4
4
  /** Type of checkbox */
5
5
  type?: 'sharp' | 'subtle';
6
- /** Aria-label for checkbox if children is not set */
7
- 'aria-label'?: string;
8
6
  /** Content within the checkbox. */
9
7
  children?: NonNullable<React.ReactNode>;
10
8
  /** Name of checkbox */
@@ -23,6 +21,8 @@ interface IProps {
23
21
  child?: boolean;
24
22
  /** Add classname */
25
23
  className?: string;
24
+ /** ID for label association */
25
+ id?: string;
26
26
  /** CB when checkbox changes */
27
27
  onChange?: (e: React.ChangeEvent<HTMLInputElement>) => any;
28
28
  /** cb for onclick, if one for instance wants to stop propogation */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,UAAU,MAAM;IACd,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,qDAAqD;IACrD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACvC,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sBAAsB;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oBAAoB;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,GAAG,CAAA;IAC1D,oEAAoE;IACpE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,GAAG,CAAA;CACrE;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAwC9B,CAAA;AAED,eAAe,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Checkbox/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAA8B,MAAM,OAAO,CAAA;AAGlD,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IAC7D,uBAAuB;IACvB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACzB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACvC,uBAAuB;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sBAAsB;IACtB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wBAAwB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2DAA2D;IAC3D,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,6BAA6B;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,oBAAoB;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,+BAA+B;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,GAAG,CAAA;IAC1D,oEAAoE;IACpE,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,GAAG,CAAA;CACrE;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiE9B,CAAA;AAED,eAAe,QAAQ,CAAA"}
@@ -3,8 +3,25 @@ import React, { useEffect, useState } from 'react';
3
3
  import { styles } from './styles';
4
4
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
5
5
  import { jsxs as _jsxs } from "@emotion/react/jsx-runtime";
6
- const Checkbox = props => {
6
+ const Checkbox = /*#__PURE__*/React.forwardRef(({
7
+ ...props
8
+ }, ref) => {
7
9
  const [value, setValue] = useState(props.checked ? true : false);
10
+ const {
11
+ checked,
12
+ disabled,
13
+ className,
14
+ disabledHoverState,
15
+ nomargin,
16
+ child,
17
+ type,
18
+ name,
19
+ onChange,
20
+ onClick,
21
+ id,
22
+ children,
23
+ ...restProps
24
+ } = props;
8
25
  useEffect(() => {
9
26
  setValue(props.checked ? true : false);
10
27
  }, [props.checked]);
@@ -15,18 +32,24 @@ const Checkbox = props => {
15
32
  };
16
33
  return _jsxs("label", {
17
34
  "aria-label": props['aria-label'],
18
- className: props.className,
19
- css: theme => [styles.default(theme), props.disabled && styles.disabled(theme, props.disabledHoverState), props.nomargin && styles.nomargin, props.child && styles.child, props.type === 'subtle' && styles.subtle(theme)],
35
+ htmlFor: id,
36
+ className: className,
37
+ css: theme => [styles.default(theme), disabled && styles.disabled(theme, disabledHoverState), nomargin && styles.nomargin, child && styles.child, type === 'subtle' && styles.subtle(theme)],
20
38
  onClick: e => e.stopPropagation(),
21
39
  children: [_jsx("input", {
40
+ ref: ref,
22
41
  type: "checkbox",
42
+ role: "checkbox",
43
+ "aria-checked": value,
23
44
  checked: value,
24
45
  value: props.value,
25
- name: props.name,
26
- disabled: props.disabled,
27
- onClick: props.onClick,
28
- onChange: handleChange
29
- }), _jsx("span", {}), props.children]
46
+ name: name,
47
+ id: id,
48
+ disabled: disabled,
49
+ onClick: onClick,
50
+ onChange: handleChange,
51
+ ...restProps
52
+ }), _jsx("span", {}), children]
30
53
  });
31
- };
54
+ });
32
55
  export default Checkbox;
@@ -7,6 +7,6 @@ interface IProps extends Omit<HTMLAttributes<HTMLDivElement>, 'content'> {
7
7
  /** Set open initially */
8
8
  initialOpen?: boolean;
9
9
  }
10
- declare const CollapseListItem: React.FC<IProps>;
10
+ declare const CollapseListItem: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
11
11
  export default CollapseListItem;
12
12
  //# sourceMappingURL=Item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,cAAc,EAKf,MAAM,OAAO,CAAA;AAOd,UAAU,MAAO,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACtE,kCAAkC;IAClC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,qCAAqC;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAiEtC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"Item.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/Item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,cAAc,EAKf,MAAM,OAAO,CAAA;AAOd,UAAU,MAAO,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC;IACtE,kCAAkC;IAClC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,qCAAqC;IACrC,OAAO,EAAE,KAAK,CAAC,SAAS,CAAA;IACxB,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,QAAA,MAAM,gBAAgB,+EAqErB,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -4,12 +4,12 @@ import { IconChevronDown } from '../..';
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
5
5
  import { jsxs as _jsxs } from "react/jsx-runtime";
6
6
  const headerTags = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'Header'];
7
- const CollapseListItem = ({
7
+ const CollapseListItem = /*#__PURE__*/React.forwardRef(({
8
8
  header,
9
9
  content,
10
10
  initialOpen,
11
11
  ...restProps
12
- }) => {
12
+ }, ref) => {
13
13
  const [open, setOpen] = useState(initialOpen ? true : false);
14
14
  const contentRef = useRef(null);
15
15
  const contentId = `content-${Math.random().toString(36).substring(2, 9)}`;
@@ -34,6 +34,7 @@ const CollapseListItem = ({
34
34
  };
35
35
 
36
36
  return /*#__PURE__*/_jsxs("div", {
37
+ ref: ref,
37
38
  className: "item",
38
39
  ...restProps,
39
40
  role: restProps['role'] || 'listitem',
@@ -63,5 +64,5 @@ const CollapseListItem = ({
63
64
  children: content
64
65
  })]
65
66
  });
66
- };
67
+ });
67
68
  export default CollapseListItem;
@@ -4,6 +4,6 @@ interface IProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /** Children */
5
5
  children?: React.ReactNode | React.ReactNode[];
6
6
  }
7
- declare const CollapseList: React.FC<IProps>;
7
+ declare const CollapseList: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLDivElement>>;
8
8
  export default CollapseList;
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3D,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAMlC,CAAA;AAED,eAAe,YAAY,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/index.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,UAAU,MAAO,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3D,eAAe;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,SAAS,EAAE,CAAA;CAC/C;AAED,QAAA,MAAM,YAAY,+EAQjB,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -2,14 +2,15 @@
2
2
  import React from 'react';
3
3
  import { styles } from './styles';
4
4
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
5
- const CollapseList = ({
5
+ const CollapseList = /*#__PURE__*/React.forwardRef(({
6
6
  children,
7
7
  ...restProps
8
- }) => {
8
+ }, ref) => {
9
9
  return _jsx("div", {
10
+ ref: ref,
10
11
  css: theme => [styles.default(theme)],
11
12
  ...restProps,
12
13
  children: children
13
14
  });
14
- };
15
+ });
15
16
  export default CollapseList;
@@ -1,6 +1,44 @@
1
1
  /// <reference types="react" />
2
2
  import { IAppTheme } from '../../app-shell/theme';
3
- export declare const CollapseButton: import("@emotion/styled").StyledComponent<Omit<import("../Button").IProps, "ref"> & import("react").RefAttributes<HTMLButtonElement> & {
3
+ export declare const CollapseButton: import("@emotion/styled").StyledComponent<import("react").HTMLAttributes<import("../private/ButtonOrLink").ButtonOrLinkTypes> & {
4
+ afterIcon?: import("react").ReactNode;
5
+ beforeIcon?: import("react").ReactNode;
6
+ children: string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode> | import("react").ReactPortal;
7
+ disabled?: boolean | undefined;
8
+ href?: string | undefined;
9
+ loading?: boolean | undefined;
10
+ onClick?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
11
+ onMouseUp?: ((event: import("react").MouseEvent<import("../private/ButtonOrLink").ButtonOrLinkTypes, MouseEvent>) => void) | undefined;
12
+ onCustomKeyPress?: {
13
+ key: string;
14
+ action: (event: KeyboardEvent) => void;
15
+ } | undefined;
16
+ onKeyPress?: ((event: KeyboardEvent) => void) | undefined;
17
+ onEnterKeyPress?: ((event: KeyboardEvent) => void) | undefined;
18
+ onEscapeKeyPress?: ((event: KeyboardEvent) => void) | undefined;
19
+ openInNewWindow?: boolean | undefined;
20
+ rel?: string | undefined;
21
+ trackingEvent?: string | undefined;
22
+ trackingName?: string | undefined;
23
+ type?: "button" | "submit" | "reset" | undefined;
24
+ target?: string | undefined;
25
+ download?: any;
26
+ tabIndex?: number | undefined;
27
+ } & {
28
+ success?: boolean | undefined;
29
+ danger?: boolean | undefined;
30
+ highlight?: boolean | undefined;
31
+ outline?: boolean | undefined;
32
+ nostyle?: boolean | undefined;
33
+ focusable?: boolean | undefined;
34
+ border?: string | undefined;
35
+ css?: import("@emotion/utils").SerializedStyles | undefined;
36
+ loading?: boolean | undefined;
37
+ back?: boolean | undefined;
38
+ small?: boolean | undefined;
39
+ transparentBg?: boolean | undefined;
40
+ tabIndex?: number | undefined;
41
+ } & import("react").RefAttributes<HTMLButtonElement> & {
4
42
  theme?: import("@emotion/react").Theme | undefined;
5
43
  }, {}, {}>;
6
44
  export declare const styles: {
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc;;UAM1B,CAAA;AAED,eAAO,MAAM,MAAM;qBACA,SAAS;CAyB3B,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/CollapseList/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAGjD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAM1B,CAAA;AAED,eAAO,MAAM,MAAM;qBACA,SAAS;CAyB3B,CAAA"}
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
- declare const _default;
3
- export default _default;
4
- export declare const DatepickerDefault: {
5
- render: () => import("react").JSX.Element;
6
- name: string;
7
- };
2
+ import Datepicker from '.';
3
+ import { Meta, StoryObj } from '@storybook/react';
4
+ declare const meta: Meta<typeof Datepicker>;
5
+ export default meta;
6
+ declare type Story = StoryObj<typeof Datepicker>;
7
+ export declare const Default: Story;
8
8
  export declare const WithError: {
9
9
  render: () => import("react").JSX.Element;
10
10
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Datepicker.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Datepicker/Datepicker.stories.tsx"],"names":[],"mappings":";;AAGA,wBAGS;AAET,eAAO,MAAM,iBAAiB;;;CAU7B,CAAA;AAED,eAAO,MAAM,SAAS;;;CAWrB,CAAA;AAED,eAAO,MAAM,SAAS;;;CASrB,CAAA;AAED,eAAO,MAAM,WAAW;;;CAYvB,CAAA;AAED,eAAO,MAAM,QAAQ;;;CAWpB,CAAA;AAED,eAAO,MAAM,QAAQ;;;CAUpB,CAAA"}
1
+ {"version":3,"file":"Datepicker.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Datepicker/Datepicker.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,UAAU,MAAM,GAAG,CAAA;AAC1B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAGjC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAA;AAExC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAA;AAED,eAAO,MAAM,SAAS;;;CAWrB,CAAA;AAED,eAAO,MAAM,SAAS;;;CASrB,CAAA;AAED,eAAO,MAAM,WAAW;;;CAYvB,CAAA;AAED,eAAO,MAAM,QAAQ;;;CAWpB,CAAA;AAED,eAAO,MAAM,QAAQ;;;CAUpB,CAAA"}
@@ -1,16 +1,17 @@
1
1
  import Datepicker from '.';
2
2
  import { jsx as _jsx } from "react/jsx-runtime";
3
- export default {
3
+ const meta = {
4
4
  title: 'Core/Datepicker',
5
5
  component: Datepicker
6
6
  };
7
- export const DatepickerDefault = {
8
- render: () => /*#__PURE__*/_jsx(Datepicker, {
7
+ export default meta;
8
+ export const Default = {
9
+ args: {
9
10
  onChange: e => console.log(e),
10
11
  onBlur: () => console.log('blur'),
11
- label: "Date"
12
- }),
13
- name: 'Datepicker'
12
+ label: 'Date'
13
+ },
14
+ name: 'Default'
14
15
  };
15
16
  export const WithError = {
16
17
  render: () => /*#__PURE__*/_jsx(Datepicker, {
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
- declare const _default;
3
- export default _default;
4
- export declare const DatepickerRangeDefault: {
5
- render: () => import("react").JSX.Element;
6
- name: string;
7
- };
1
+ import DatepickerRange from '.';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ declare const meta: Meta<typeof DatepickerRange>;
4
+ export default meta;
5
+ declare type Story = StoryObj<typeof DatepickerRange>;
6
+ export declare const Default: Story;
8
7
  //# sourceMappingURL=DatepickerRange.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatepickerRange.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DatepickerRange/DatepickerRange.stories.tsx"],"names":[],"mappings":";;AAGA,wBAGS;AAET,eAAO,MAAM,sBAAsB;;;CAkBlC,CAAA"}
1
+ {"version":3,"file":"DatepickerRange.stories.d.ts","sourceRoot":"","sources":["../../../src/packages/core/DatepickerRange/DatepickerRange.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,GAAG,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAGtC,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,aAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7C,eAAO,MAAM,OAAO,EAAE,KAcrB,CAAA"}