@papillonarts/components 0.48.0 → 0.49.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.
Files changed (139) hide show
  1. package/build/Legacy/Alert/Alert.d.ts +2 -1
  2. package/build/Legacy/Alert/Alert.d.ts.map +1 -1
  3. package/build/Legacy/Alert/Alert.type.d.ts +7 -6
  4. package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
  5. package/build/Legacy/Alert/__tests__/Alert.doc.md +2 -2
  6. package/build/Legacy/Alert/index.d.ts +1 -1
  7. package/build/Legacy/Alert/index.d.ts.map +1 -1
  8. package/build/Legacy/Blankslate/Blankslate.d.ts +2 -1
  9. package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
  10. package/build/Legacy/Blankslate/Blankslate.type.d.ts +2 -2
  11. package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
  12. package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +1 -1
  13. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +2 -1
  14. package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
  15. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +9 -4
  16. package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
  17. package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +2 -2
  18. package/build/Legacy/Button/Button.d.ts +2 -1
  19. package/build/Legacy/Button/Button.d.ts.map +1 -1
  20. package/build/Legacy/Button/Button.js +52 -56
  21. package/build/Legacy/Button/Button.type.d.ts +12 -12
  22. package/build/Legacy/Button/Button.type.d.ts.map +1 -1
  23. package/build/Legacy/Button/__tests__/Button.doc.md +6 -6
  24. package/build/Legacy/Button/index.d.ts +1 -0
  25. package/build/Legacy/Button/index.d.ts.map +1 -1
  26. package/build/Legacy/Dropdown/Dropdown.d.ts +2 -1
  27. package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
  28. package/build/Legacy/Dropdown/Dropdown.js +2 -1
  29. package/build/Legacy/Dropdown/Dropdown.type.d.ts +10 -5
  30. package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
  31. package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +1 -1
  32. package/build/Legacy/Dropdown/index.d.ts +1 -1
  33. package/build/Legacy/Dropdown/index.d.ts.map +1 -1
  34. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +7 -9
  35. package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  36. package/build/Legacy/ErrorBoundary/ErrorBoundary.js +1 -3
  37. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts +5 -1
  38. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
  39. package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +5 -1
  40. package/build/Legacy/ErrorBoundary/index.d.ts +1 -0
  41. package/build/Legacy/ErrorBoundary/index.d.ts.map +1 -1
  42. package/build/Legacy/Form/Checkbox/Checkbox.d.ts +2 -1
  43. package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
  44. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +2 -1
  45. package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
  46. package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +1 -1
  47. package/build/Legacy/Form/Input/Input.d.ts +2 -1
  48. package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
  49. package/build/Legacy/Form/Input/Input.type.d.ts +5 -4
  50. package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
  51. package/build/Legacy/Form/Input/__tests__/Input.doc.md +4 -4
  52. package/build/Legacy/Form/Radio/Radio.d.ts +2 -1
  53. package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
  54. package/build/Legacy/Form/Radio/Radio.type.d.ts +2 -1
  55. package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
  56. package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +1 -1
  57. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +2 -1
  58. package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
  59. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +7 -6
  60. package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
  61. package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +3 -3
  62. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +2 -1
  63. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
  64. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +15 -7
  65. package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
  66. package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +3 -3
  67. package/build/Legacy/Icon/Icon.d.ts +2 -1
  68. package/build/Legacy/Icon/Icon.d.ts.map +1 -1
  69. package/build/Legacy/Label/Label.d.ts +2 -1
  70. package/build/Legacy/Label/Label.d.ts.map +1 -1
  71. package/build/Legacy/Loader/Loader.d.ts +2 -1
  72. package/build/Legacy/Loader/Loader.d.ts.map +1 -1
  73. package/build/Legacy/Markdown/Markdown.d.ts +2 -1
  74. package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
  75. package/build/Legacy/Markdown/Markdown.js +4 -0
  76. package/build/Legacy/Navigation/Menu/Menu.d.ts +2 -1
  77. package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
  78. package/build/Legacy/Navigation/Menu/Menu.type.d.ts +2 -1
  79. package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
  80. package/build/Legacy/Navigation/TabNav/TabNav.d.ts +2 -1
  81. package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
  82. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +5 -4
  83. package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
  84. package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +2 -2
  85. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +2 -1
  86. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  87. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +4 -3
  88. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
  89. package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +1 -1
  90. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +2 -1
  91. package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
  92. package/build/Legacy/Popover/Popover.d.ts +2 -1
  93. package/build/Legacy/Popover/Popover.d.ts.map +1 -1
  94. package/build/Legacy/Progress/Progress.d.ts +2 -1
  95. package/build/Legacy/Progress/Progress.d.ts.map +1 -1
  96. package/build/Legacy/Select/Select.d.ts +2 -1
  97. package/build/Legacy/Select/Select.d.ts.map +1 -1
  98. package/build/Legacy/SelectMenu/SelectMenu.d.ts +2 -1
  99. package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
  100. package/build/Legacy/Subhead/Subhead.d.ts +2 -1
  101. package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
  102. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +2 -1
  103. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
  104. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +5 -0
  105. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +2 -1
  106. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
  107. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +2 -1
  108. package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
  109. package/build/Legacy/Toast/Toast.d.ts +2 -1
  110. package/build/Legacy/Toast/Toast.d.ts.map +1 -1
  111. package/build/Legacy/type.d.ts +25 -2
  112. package/build/Legacy/type.d.ts.map +1 -1
  113. package/build/Modern/Link/Link.d.ts +3 -3
  114. package/build/Modern/Link/Link.d.ts.map +1 -1
  115. package/build/Modern/Link/Link.js +1 -3
  116. package/build/Modern/Pagination/Pagination.d.ts +5 -5
  117. package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
  118. package/build/Modern/Pagination/Pagination.js +1 -3
  119. package/build/Modern/Pagination/Pagination.model.d.ts +3 -2
  120. package/build/Modern/Pagination/Pagination.model.d.ts.map +1 -1
  121. package/build/Modern/Pagination/Pagination.model.js +1 -0
  122. package/build/Modern/Pagination/__tests__/Pagination.doc.md +2 -2
  123. package/build/Modern/hooks/useMedia.d.ts +2 -2
  124. package/build/Modern/hooks/useMedia.d.ts.map +1 -1
  125. package/build/Modern/hooks/useMedia.js +1 -3
  126. package/build/Modern/index.d.ts +1 -1
  127. package/build/Modern/type.d.ts +1 -0
  128. package/build/Modern/type.d.ts.map +1 -1
  129. package/build/Modern/utils/modern-polymorphic.d.ts +2 -2
  130. package/build/Modern/utils/modern-polymorphic.d.ts.map +1 -1
  131. package/build/Modern/utils/testing.d.ts +2 -1
  132. package/build/Modern/utils/testing.d.ts.map +1 -1
  133. package/build/Modern/utils/types/ComponentProps.d.ts +2 -1
  134. package/build/Modern/utils/types/ComponentProps.d.ts.map +1 -1
  135. package/build/Modern/utils/types/Slots.d.ts +2 -1
  136. package/build/Modern/utils/types/Slots.d.ts.map +1 -1
  137. package/build/index.d.ts +2 -2
  138. package/build/index.d.ts.map +1 -1
  139. package/package.json +4 -4
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { ISubhead } from './Subhead.type';
2
- export declare function Subhead({ className, heading, isSpacious }: ISubhead): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Subhead({ className, heading, isSpacious }: ISubhead): JSX.Element;
3
4
  //# sourceMappingURL=Subhead.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Subhead.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Subhead/Subhead.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAkB,MAAM,gBAAgB,CAAA;AAEzD,wBAAgB,OAAO,CAAC,EAAE,SAAoC,EAAE,OAAO,EAAE,UAAsC,EAAE,EAAE,QAAQ,2CAU1H"}
1
+ {"version":3,"file":"Subhead.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Subhead/Subhead.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,QAAQ,EAAkB,MAAM,gBAAgB,CAAA;AAEzD,wBAAgB,OAAO,CAAC,EAAE,SAAoC,EAAE,OAAO,EAAE,UAAsC,EAAE,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CAUxI"}
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { ISyntaxHighlighter } from './SyntaxHighlighter.type';
2
- export declare function SyntaxHighlighter({ highlighter, language, style, children, }: ISyntaxHighlighter): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SyntaxHighlighter({ highlighter, language, style, children, }: ISyntaxHighlighter): JSX.Element;
3
4
  //# sourceMappingURL=SyntaxHighlighter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SyntaxHighlighter.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighter.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAA0D,MAAM,0BAA0B,CAAA;AAIrH,wBAAgB,iBAAiB,CAAC,EAChC,WAAkD,EAClD,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,kBAAkB,2CAgBpB"}
1
+ {"version":3,"file":"SyntaxHighlighter.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighter.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,kBAAkB,EAA0D,MAAM,0BAA0B,CAAA;AAIrH,wBAAgB,iBAAiB,CAAC,EAChC,WAAkD,EAClD,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CAsBlC"}
@@ -36,4 +36,9 @@ function SyntaxHighlighter(_ref) {
36
36
  children: children
37
37
  });
38
38
  }
39
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SyntaxHighlighterHLJS.SyntaxHighlighterHLJS, {
40
+ language: language,
41
+ style: style,
42
+ children: children
43
+ });
39
44
  }
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { ISyntaxHighlighterBase } from './SyntaxHighlighter.type';
2
- export declare function SyntaxHighlighterHLJS({ language, style, children, }: ISyntaxHighlighterBase): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SyntaxHighlighterHLJS({ language, style, children, }: ISyntaxHighlighterBase): JSX.Element;
3
4
  //# sourceMappingURL=SyntaxHighlighterHLJS.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SyntaxHighlighterHLJS.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAoD,MAAM,0BAA0B,CAAA;AAInH,wBAAgB,qBAAqB,CAAC,EACpC,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,sBAAsB,2CAYxB"}
1
+ {"version":3,"file":"SyntaxHighlighterHLJS.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,EAAE,sBAAsB,EAAoD,MAAM,0BAA0B,CAAA;AAInH,wBAAgB,qBAAqB,CAAC,EACpC,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAYtC"}
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { ISyntaxHighlighterBase } from './SyntaxHighlighter.type';
2
- export declare function SyntaxHighlighterPrism({ language, style, children, }: ISyntaxHighlighterBase): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SyntaxHighlighterPrism({ language, style, children, }: ISyntaxHighlighterBase): JSX.Element;
3
4
  //# sourceMappingURL=SyntaxHighlighterPrism.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SyntaxHighlighterPrism.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,sBAAsB,EAAoD,MAAM,0BAA0B,CAAA;AAKnH,wBAAgB,sBAAsB,CAAC,EACrC,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,sBAAsB,2CAWxB"}
1
+ {"version":3,"file":"SyntaxHighlighterPrism.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAKhC,OAAO,EAAE,sBAAsB,EAAoD,MAAM,0BAA0B,CAAA;AAKnH,wBAAgB,sBAAsB,CAAC,EACrC,QAA4C,EAC5C,KAAsC,EACtC,QAAQ,GACT,EAAE,sBAAsB,GAAG,GAAG,CAAC,OAAO,CAWtC"}
@@ -1,3 +1,4 @@
1
+ import type { JSX } from 'react';
1
2
  import { IToast } from './Toast.type';
2
- export declare function Toast({ className, variant, text, isDismissable, onClick, }: IToast): import("react/jsx-runtime").JSX.Element;
3
+ export declare function Toast({ className, variant, text, isDismissable, onClick, }: IToast): JSX.Element;
3
4
  //# sourceMappingURL=Toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAA8B,MAAM,cAAc,CAAA;AAEjE,wBAAgB,KAAK,CAAC,EACpB,SAAkC,EAClC,OAA8B,EAC9B,IAAI,EACJ,aAA0C,EAC1C,OAA8B,GAC/B,EAAE,MAAM,2CAyBR"}
1
+ {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAE,MAAM,EAA8B,MAAM,cAAc,CAAA;AAEjE,wBAAgB,KAAK,CAAC,EACpB,SAAkC,EAClC,OAA8B,EAC9B,IAAI,EACJ,aAA0C,EAC1C,OAA8B,GAC/B,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAyBtB"}
@@ -1,3 +1,26 @@
1
- export type { IAlertConsent } from './Alert';
2
- export type { IFlexGridItem } from './Grid';
1
+ export type { IAlert, IAlertConsent } from './Alert';
2
+ export type { IButton } from './Button';
3
+ export type { IBlankslate } from './Blankslate/Blankslate.type';
4
+ export type { IBreadcrumb } from './Breadcrumb/Breadcrumb.type';
5
+ export type { ICheckbox } from './Form/Checkbox/Checkbox.type';
6
+ export type { IDropdown } from './Dropdown/Dropdown.type';
7
+ export type { IFlexGrid, IFlexGridItem } from './Grid/FlexGrid/FlexGrid.type';
8
+ export type { IDisplayTable } from './Grid/DisplayTable/DisplayTable.type';
9
+ export type { IIcon } from './Icon/Icon.type';
10
+ export type { IInput } from './Form/Input/Input.type';
11
+ export type { ILabel } from './Label/Label.type';
12
+ export type { ILoader } from './Loader/Loader.type';
13
+ export type { IMarkdown } from './Markdown/Markdown.type';
14
+ export type { IMenu } from './Navigation/Menu/Menu.type';
15
+ export type { ITabNav } from './Navigation/TabNav/TabNav.type';
16
+ export type { IUnderlineNav } from './Navigation/UnderlineNav/UnderlineNav.type';
17
+ export type { IPreviousNext } from './Pagination/PreviousNext/PreviousNext.type';
18
+ export type { IPopover } from './Popover/Popover.type';
19
+ export type { IProgress } from './Progress/Progress.type';
20
+ export type { IRadio } from './Form/Radio/Radio.type';
21
+ export type { ISelect } from './Select/Select.type';
22
+ export type { ISelectMenu } from './SelectMenu/SelectMenu.type';
23
+ export type { ISubhead } from './Subhead/Subhead.type';
24
+ export type { ISyntaxHighlighter } from './SyntaxHighlighter/SyntaxHighlighter.type';
25
+ export type { IToast } from './Toast/Toast.type';
3
26
  //# sourceMappingURL=type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Legacy/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Legacy/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7E,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAC1E,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAChF,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACpF,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1,4 +1,4 @@
1
- import React, { ElementType, type ForwardedRef } from 'react';
1
+ import { ElementType, type ForwardedRef } from 'react';
2
2
  import { type PolymorphicProps } from '../utils/modern-polymorphic';
3
3
  import type { ComponentProps } from '../utils/types';
4
4
  type StyledLinkProps<As extends ElementType = 'a'> = {
@@ -9,9 +9,9 @@ type StyledLinkProps<As extends ElementType = 'a'> = {
9
9
  inline?: boolean;
10
10
  };
11
11
  export declare const UnwrappedLink: <As extends ElementType = "a">(props: PolymorphicProps<As, "a", StyledLinkProps>, ref: ForwardedRef<unknown>) => import("react/jsx-runtime").JSX.Element;
12
- export declare const Link: (<As extends ElementType = "a">(props: (React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & StyledLinkProps<"a"> extends infer T ? T extends React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & StyledLinkProps<"a"> ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
12
+ export declare const Link: (<As extends ElementType = "a">(props: (import("react").ComponentPropsWithRef<ElementType extends As ? "a" : As> & StyledLinkProps<"a"> extends infer T ? T extends import("react").ComponentPropsWithRef<ElementType extends As ? "a" : As> & StyledLinkProps<"a"> ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
13
13
  as?: As;
14
- } & React.RefAttributes<unknown>) => React.ReactNode) & {
14
+ } & import("react").RefAttributes<unknown>) => import("react").ReactNode) & {
15
15
  displayName: string;
16
16
  };
17
17
  export type LinkProps = ComponentProps<typeof Link>;
@@ -1 +1 @@
1
- {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/Modern/Link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAmB,WAAW,EAAE,KAAK,YAAY,EAAqB,MAAM,OAAO,CAAA;AAEjG,OAAO,EAAE,KAAK,gBAAgB,EAAmB,MAAM,6BAA6B,CAAA;AAEpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,KAAK,eAAe,CAAC,EAAE,SAAS,WAAW,GAAG,GAAG,IAAI;IACnD,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,EAAE,SAAS,WAAW,GAAG,GAAG,EACxD,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,eAAe,CAAC,EACjD,KAAK,YAAY,CAAC,OAAO,CAAC,4CAmC3B,CAAA;AAID,eAAO,MAAM,IAAI,IAzCa,EAAE,SAAS,WAAW;;;;CAyCqB,CAAA;AAEzE,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA"}
1
+ {"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../src/Modern/Link/Link.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAmB,WAAW,EAAE,KAAK,YAAY,EAAqB,MAAM,OAAO,CAAA;AAE1F,OAAO,EAAE,KAAK,gBAAgB,EAAmB,MAAM,6BAA6B,CAAA;AAEpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,KAAK,eAAe,CAAC,EAAE,SAAS,WAAW,GAAG,GAAG,IAAI;IACnD,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,uDAAuD;IACvD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,aAAa,GAAI,EAAE,SAAS,WAAW,GAAG,GAAG,EACxD,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,EAAE,eAAe,CAAC,EACjD,KAAK,YAAY,CAAC,OAAO,CAAC,4CAmC3B,CAAA;AAID,eAAO,MAAM,IAAI,IAzCa,EAAE,SAAS,WAAW;;;;CAyCqB,CAAA;AAEzE,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,OAAO,IAAI,CAAC,CAAA"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -9,14 +8,13 @@ exports.UnwrappedLink = exports.Link = void 0;
9
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
9
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
11
10
  var _clsx = require("clsx");
12
- var _react = _interopRequireWildcard(require("react"));
11
+ var _react = require("react");
13
12
  var _hooks = require("../hooks");
14
13
  var _modernPolymorphic = require("../utils/modern-polymorphic");
15
14
  var _LinkModule = _interopRequireDefault(require("./Link.module.scss"));
16
15
  var _jsxRuntime = require("react/jsx-runtime");
17
16
  var _excluded = ["as", "className", "inline", "hoverColor"];
18
17
  /* eslint-disable @typescript-eslint/consistent-type-definitions */
19
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
20
  var UnwrappedLink = exports.UnwrappedLink = function UnwrappedLink(props, ref) {
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ import { JSX, type MouseEvent, type ReactNode } from 'react';
2
2
  import type { ResponsiveValue } from '../hooks/useResponsiveValue';
3
3
  import { type PageDataProps } from './Pagination.model';
4
4
  export type PageProps = {
5
5
  key: string;
6
- children: React.ReactNode;
6
+ children: ReactNode;
7
7
  number: number;
8
8
  className: string;
9
9
  } & Omit<PageDataProps['props'], 'as' | 'role'>;
@@ -11,12 +11,12 @@ export type PaginationProps = {
11
11
  className?: string;
12
12
  pageCount: number;
13
13
  currentPage: number;
14
- onPageChange?: (e: React.MouseEvent, n: number) => void;
14
+ onPageChange?: (e: MouseEvent, n: number) => void;
15
15
  hrefBuilder?: (n: number) => string;
16
16
  marginPageCount?: number;
17
17
  showPages?: boolean | ResponsiveValue<boolean>;
18
18
  surroundingPageCount?: number;
19
- renderPage?: (props: PageProps) => React.ReactNode;
19
+ renderPage?: (props: PageProps) => ReactNode;
20
20
  };
21
- export declare function Pagination({ className, pageCount, currentPage, onPageChange, hrefBuilder, marginPageCount, showPages, surroundingPageCount, renderPage, ...rest }: PaginationProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function Pagination({ className, pageCount, currentPage, onPageChange, hrefBuilder, marginPageCount, showPages, surroundingPageCount, renderPage, ...rest }: PaginationProps): JSX.Element;
22
22
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/Modern/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA+B,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,EAAE,KAAK,aAAa,EAA4C,MAAM,oBAAoB,CAAA;AAejG,MAAM,MAAM,SAAS,GAAG;IAEtB,GAAG,EAAE,MAAM,CAAA;IAEX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IAEzB,MAAM,EAAE,MAAM,CAAA;IAEd,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;AAoE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACvD,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,KAAK,CAAC,SAAS,CAAA;CACnD,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAmB,EACnB,WAAgC,EAChC,eAAmB,EACnB,SAAgB,EAChB,oBAAwB,EACxB,UAAU,EACV,GAAG,IAAI,EACR,EAAE,eAAe,2CAmBjB"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/Modern/Pagination/Pagination.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAwB,MAAM,OAAO,CAAA;AAClF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAElE,OAAO,EAAE,KAAK,aAAa,EAA4C,MAAM,oBAAoB,CAAA;AAejG,MAAM,MAAM,SAAS,GAAG;IAEtB,GAAG,EAAE,MAAM,CAAA;IAEX,QAAQ,EAAE,SAAS,CAAA;IAEnB,MAAM,EAAE,MAAM,CAAA;IAEd,SAAS,EAAE,MAAM,CAAA;CAClB,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,CAAA;AAoE/C,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACjD,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;IACnC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,OAAO,GAAG,eAAe,CAAC,OAAO,CAAC,CAAA;IAC9C,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,SAAS,CAAA;CAC7C,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,SAAS,EACT,WAAW,EACX,YAAmB,EACnB,WAAgC,EAChC,eAAmB,EACnB,SAAgB,EAChB,oBAAwB,EACxB,UAAU,EACV,GAAG,IAAI,EACR,EAAE,eAAe,GAAG,GAAG,CAAC,OAAO,CAmB/B"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
@@ -10,13 +9,12 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
10
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
10
  var _octiconsReact = require("@primer/octicons-react");
12
11
  var _clsx = require("clsx");
13
- var _react = _interopRequireWildcard(require("react"));
12
+ var _react = require("react");
14
13
  var _useResponsiveValue = require("../hooks/useResponsiveValue");
15
14
  var _Pagination = require("./Pagination.model");
16
15
  var _PaginationModule = _interopRequireDefault(require("./Pagination.module.scss"));
17
16
  var _jsxRuntime = require("react/jsx-runtime");
18
17
  var _excluded = ["className", "pageCount", "currentPage", "onPageChange", "hrefBuilder", "marginPageCount", "showPages", "surroundingPageCount", "renderPage"];
19
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
18
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
21
19
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } /* eslint-disable @typescript-eslint/consistent-type-definitions */
22
20
  var getViewportRangesToHidePages = function getViewportRangesToHidePages(showPages) {
@@ -1,3 +1,4 @@
1
+ import type { MouseEvent } from 'react';
1
2
  export declare function buildPaginationModel(pageCount: number, currentPage: number, showPages: boolean, marginPageCount: number, surroundingPageCount: number): PageType[];
2
3
  interface PageType {
3
4
  type: string;
@@ -14,13 +15,13 @@ export interface PageDataProps {
14
15
  'aria-current'?: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | boolean;
15
16
  'aria-hidden'?: boolean;
16
17
  'aria-disabled'?: boolean;
17
- onClick?: (e: React.MouseEvent) => void;
18
+ onClick?: (e: MouseEvent) => void;
18
19
  as?: string;
19
20
  role?: string;
20
21
  };
21
22
  key: string;
22
23
  content: string;
23
24
  }
24
- export declare function buildComponentData(page: PageType, hrefBuilder: (n: number) => string, onClick: (e: React.MouseEvent) => void): PageDataProps;
25
+ export declare function buildComponentData(page: PageType, hrefBuilder: (n: number) => string, onClick: (e: MouseEvent) => void): PageDataProps;
25
26
  export {};
26
27
  //# sourceMappingURL=Pagination.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.model.d.ts","sourceRoot":"","sources":["../../../src/Modern/Pagination/Pagination.model.tsx"],"names":[],"mappings":"AACA,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,EAClB,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,cAsH7B;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;QAC5F,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB,eAAe,CAAC,EAAE,OAAO,CAAA;QACzB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAA;QACvC,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAClC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,GACrC,aAAa,CA4Df"}
1
+ {"version":3,"file":"Pagination.model.d.ts","sourceRoot":"","sources":["../../../src/Modern/Pagination/Pagination.model.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEvC,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,OAAO,EAClB,eAAe,EAAE,MAAM,EACvB,oBAAoB,EAAE,MAAM,cAsH7B;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE;QACL,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAA;QAC5F,aAAa,CAAC,EAAE,OAAO,CAAA;QACvB,eAAe,CAAC,EAAE,OAAO,CAAA;QACzB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;QACjC,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;IACD,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,GAAG,aAAa,CA4DtI"}
@@ -10,6 +10,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
11
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
12
  /* eslint-disable @typescript-eslint/no-inferrable-types */
13
+
13
14
  function buildPaginationModel(pageCount, currentPage, showPages, marginPageCount, surroundingPageCount) {
14
15
  var prev = {
15
16
  type: 'PREV',
@@ -11,12 +11,12 @@ export type PaginationProps = {
11
11
  className?: string
12
12
  pageCount: number
13
13
  currentPage: number
14
- onPageChange?: (e: React.MouseEvent, n: number) => void
14
+ onPageChange?: (e: MouseEvent, n: number) => void
15
15
  hrefBuilder?: (n: number) => string
16
16
  marginPageCount?: number
17
17
  showPages?: boolean | ResponsiveValue<boolean>
18
18
  surroundingPageCount?: number
19
- renderPage?: (props: PageProps) => React.ReactNode
19
+ renderPage?: (props: PageProps) => ReactNode
20
20
  }
21
21
  ```
22
22
 
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  /**
3
3
  * `useMedia` will use the given `mediaQueryString` with `matchMedia` to
4
4
  * determine if the document matches the media query string.
@@ -15,7 +15,7 @@ import React from 'react';
15
15
  export declare function useMedia(mediaQueryString: string, defaultState?: boolean): boolean;
16
16
  type MediaQueryFeatures = Record<string, boolean | undefined>;
17
17
  interface MatchMediaProps {
18
- children: React.ReactNode;
18
+ children: ReactNode;
19
19
  features?: MediaQueryFeatures;
20
20
  }
21
21
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"useMedia.d.ts","sourceRoot":"","sources":["../../../src/Modern/hooks/useMedia.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyD,MAAM,OAAO,CAAA;AAI7E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,WAgExE;AAED,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAA;AAO7D,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,QAA0B,EAAE,EAAE,eAAe,2CAGnF"}
1
+ {"version":3,"file":"useMedia.d.ts","sourceRoot":"","sources":["../../../src/Modern/hooks/useMedia.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAkD,MAAM,OAAO,CAAA;AAItF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,gBAAgB,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,OAAO,WAgExE;AAED,KAAK,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,CAAC,CAAA;AAO7D,UAAU,eAAe;IACvB,QAAQ,EAAE,SAAS,CAAA;IACnB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B;AAID;;;;;;;;;;;;;GAaG;AACH,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,QAA0B,EAAE,EAAE,eAAe,2CAGnF"}
@@ -1,18 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.MatchMedia = MatchMedia;
9
8
  exports.useMedia = useMedia;
10
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
11
- var _react = _interopRequireWildcard(require("react"));
10
+ var _react = require("react");
12
11
  var _environment = require("../utils/environment");
13
12
  var _warning = require("../utils/warning");
14
13
  var _jsxRuntime = require("react/jsx-runtime");
15
- function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
16
14
  /**
17
15
  * `useMedia` will use the given `mediaQueryString` with `matchMedia` to
18
16
  * determine if the document matches the media query string.
@@ -34,7 +34,7 @@ export declare const Modern: {
34
34
  inline?: boolean;
35
35
  } ? T extends unknown ? Omit<T, "as"> : never : never : never) & {
36
36
  as?: As;
37
- } & import("react").RefAttributes<unknown>) => React.ReactNode) & {
37
+ } & import("react").RefAttributes<unknown>) => import("react").ReactNode) & {
38
38
  displayName: string;
39
39
  };
40
40
  };
@@ -1,4 +1,5 @@
1
1
  export type { AvatarProps } from './Avatar';
2
+ export type { AvatarStackProps } from './AvatarStack';
2
3
  export type { FlashProps } from './Flash';
3
4
  export type { LinkProps } from './Link';
4
5
  export type { PaginationProps } from './Pagination';
@@ -1 +1 @@
1
- {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Modern/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Modern/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AACvC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ComponentPropsWithRef, ElementType } from 'react';
1
+ import type { ComponentPropsWithRef, ElementType, ReactNode, Ref, RefAttributes } from 'react';
2
2
  /**
3
3
  * Distributive Omit utility type that works correctly with union types
4
4
  */
@@ -6,7 +6,7 @@ type DistributiveOmit<T, TOmitted extends PropertyKey> = T extends unknown ? Omi
6
6
  /**
7
7
  * Fixed version of forwardRef that provides better type inference for polymorphic components
8
8
  */
9
- type FixedForwardRef = <T, P = object>(render: (props: P, ref: React.Ref<T>) => React.ReactNode) => (props: P & React.RefAttributes<T>) => React.ReactNode;
9
+ type FixedForwardRef = <T, P = object>(render: (props: P, ref: Ref<T>) => ReactNode) => (props: P & RefAttributes<T>) => ReactNode;
10
10
  /**
11
11
  * Cast forwardRef to the fixed version with better type inference
12
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"modern-polymorphic.d.ts","sourceRoot":"","sources":["../../../src/Modern/utils/modern-polymorphic.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAE/D;;GAEG;AACH,KAAK,gBAAgB,CAAC,CAAC,EAAE,QAAQ,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAA;AAEtG;;GAEG;AAGH,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EACnC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,KACrD,CAAC,KAAK,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,SAAS,CAAA;AAE3D;;GAEG;AACH,eAAO,MAAM,eAAe,EAAiB,eAAe,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,GAAG,SAAS,WAAW,EAAE,eAAe,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,GAAG,MAAM,IAAI,gBAAgB,CACnI,qBAAqB,CAAC,WAAW,SAAS,GAAG,GAAG,eAAe,GAAG,GAAG,CAAC,GAAG,KAAK,EAC9E,IAAI,CACL,GAAG;IACF,EAAE,CAAC,EAAE,GAAG,CAAA;CACT,CAAA"}
1
+ {"version":3,"file":"modern-polymorphic.d.ts","sourceRoot":"","sources":["../../../src/Modern/utils/modern-polymorphic.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE9F;;GAEG;AACH,KAAK,gBAAgB,CAAC,CAAC,EAAE,QAAQ,SAAS,WAAW,IAAI,CAAC,SAAS,OAAO,GAAG,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAA;AAEtG;;GAEG;AAGH,KAAK,eAAe,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,KAAK,SAAS,CAAA;AAElI;;GAEG;AACH,eAAO,MAAM,eAAe,EAAiB,eAAe,CAAA;AAE5D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,GAAG,SAAS,WAAW,EAAE,eAAe,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,GAAG,MAAM,IAAI,gBAAgB,CACnI,qBAAqB,CAAC,WAAW,SAAS,GAAG,GAAG,eAAe,GAAG,GAAG,CAAC,GAAG,KAAK,EAC9E,IAAI,CACL,GAAG;IACF,EAAE,CAAC,EAAE,GAAG,CAAA;CACT,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import '@testing-library/jest-dom';
2
- export declare function implementsClassName(Component: React.ElementType, baseClassName?: string): void;
2
+ import type { ElementType } from 'react';
3
+ export declare function implementsClassName(Component: ElementType, baseClassName?: string): void;
3
4
  //# sourceMappingURL=testing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/Modern/utils/testing.tsx"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA;AAGlC,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,WAAW,EAAE,aAAa,CAAC,EAAE,MAAM,QAavF"}
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/Modern/utils/testing.tsx"],"names":[],"mappings":"AACA,OAAO,2BAA2B,CAAA;AAElC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAExC,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,WAAW,EAAE,aAAa,CAAC,EAAE,MAAM,QAajF"}
@@ -1,3 +1,4 @@
1
+ import type { ComponentType, PropsWithChildren } from 'react';
1
2
  /**
2
3
  * Extract a component's props
3
4
  *
@@ -5,5 +6,5 @@
5
6
  *
6
7
  * @example ComponentProps<typeof MyComponent>
7
8
  */
8
- export type ComponentProps<T> = T extends React.ComponentType<React.PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
9
+ export type ComponentProps<T> = T extends ComponentType<PropsWithChildren<infer Props>> ? (Props extends object ? Props : never) : never;
9
10
  //# sourceMappingURL=ComponentProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentProps.d.ts","sourceRoot":"","sources":["../../../../src/Modern/utils/types/ComponentProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAC1B,CAAC,SAAS,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA"}
1
+ {"version":3,"file":"ComponentProps.d.ts","sourceRoot":"","sources":["../../../../src/Modern/utils/types/ComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE7D;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,SAAS,aAAa,CAAC,iBAAiB,CAAC,MAAM,KAAK,CAAC,CAAC,GAAG,CAAC,KAAK,SAAS,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC,GAAG,KAAK,CAAA"}
@@ -1,7 +1,8 @@
1
+ import type { FC } from 'react';
1
2
  export interface SlotMarker {
2
3
  /** Marker to denote the custom child slot for a component */
3
4
  __SLOT__?: symbol;
4
5
  }
5
6
  export type WithSlotMarker<T> = T & SlotMarker;
6
- export type FCWithSlotMarker<P> = WithSlotMarker<React.FC<P>>;
7
+ export type FCWithSlotMarker<P> = WithSlotMarker<FC<P>>;
7
8
  //# sourceMappingURL=Slots.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Slots.d.ts","sourceRoot":"","sources":["../../../../src/Modern/utils/types/Slots.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAA;AAE9C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"Slots.d.ts","sourceRoot":"","sources":["../../../../src/Modern/utils/types/Slots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAA;AAE/B,MAAM,WAAW,UAAU;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,UAAU,CAAA;AAE9C,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA"}
package/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { Legacy } from './Legacy';
2
- export type { IAlertConsent, IFlexGridItem } from './Legacy/type';
2
+ export type { IAlert, IAlertConsent, IButton, IBlankslate, IBreadcrumb, ICheckbox, IDropdown, IFlexGrid, IFlexGridItem, IDisplayTable, IIcon, IInput, ILabel, ILoader, IMarkdown, IMenu, ITabNav, IUnderlineNav, IPreviousNext, IPopover, IProgress, IRadio, ISelect, ISelectMenu, ISubhead, ISyntaxHighlighter, IToast, } from './Legacy/type';
3
3
  export { Modern } from './Modern';
4
- export type { AvatarProps, FlashProps, LinkProps, PaginationProps } from './Modern/type';
4
+ export type { AvatarProps, AvatarStackProps, FlashProps, LinkProps, PaginationProps } from './Modern/type';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EACV,MAAM,EACN,aAAa,EACb,OAAO,EACP,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,SAAS,EACT,aAAa,EACb,aAAa,EACb,KAAK,EACL,MAAM,EACN,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,OAAO,EACP,aAAa,EACb,aAAa,EACb,QAAQ,EACR,SAAS,EACT,MAAM,EACN,OAAO,EACP,WAAW,EACX,QAAQ,EACR,kBAAkB,EAClB,MAAM,GACP,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papillonarts/components",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "description": "Papillon Arts Components",
5
5
  "homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/components",
6
6
  "repository": {
@@ -26,8 +26,8 @@
26
26
  "build-release": "npm run build"
27
27
  },
28
28
  "dependencies": {
29
- "@papillonarts/css": "^0.48.0",
30
- "@papillonarts/library": "^0.48.0"
29
+ "@papillonarts/css": "^0.49.0",
30
+ "@papillonarts/library": "^0.49.0"
31
31
  },
32
- "gitHead": "0e3dc43de7c6e4ff4a2fcec300c7a733e5736ef4"
32
+ "gitHead": "73a2726fae9337d5f4aaf6577d9e7bbe5c894200"
33
33
  }