@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.
- package/build/Legacy/Alert/Alert.d.ts +2 -1
- package/build/Legacy/Alert/Alert.d.ts.map +1 -1
- package/build/Legacy/Alert/Alert.type.d.ts +7 -6
- package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
- package/build/Legacy/Alert/__tests__/Alert.doc.md +2 -2
- package/build/Legacy/Alert/index.d.ts +1 -1
- package/build/Legacy/Alert/index.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.d.ts +2 -1
- package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.type.d.ts +2 -2
- package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
- package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +2 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +9 -4
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +2 -2
- package/build/Legacy/Button/Button.d.ts +2 -1
- package/build/Legacy/Button/Button.d.ts.map +1 -1
- package/build/Legacy/Button/Button.js +52 -56
- package/build/Legacy/Button/Button.type.d.ts +12 -12
- package/build/Legacy/Button/Button.type.d.ts.map +1 -1
- package/build/Legacy/Button/__tests__/Button.doc.md +6 -6
- package/build/Legacy/Button/index.d.ts +1 -0
- package/build/Legacy/Button/index.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.d.ts +2 -1
- package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.js +2 -1
- package/build/Legacy/Dropdown/Dropdown.type.d.ts +10 -5
- package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
- package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +1 -1
- package/build/Legacy/Dropdown/index.d.ts +1 -1
- package/build/Legacy/Dropdown/index.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +7 -9
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.js +1 -3
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts +5 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +5 -1
- package/build/Legacy/ErrorBoundary/index.d.ts +1 -0
- package/build/Legacy/ErrorBoundary/index.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts +2 -1
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +2 -1
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +1 -1
- package/build/Legacy/Form/Input/Input.d.ts +2 -1
- package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
- package/build/Legacy/Form/Input/Input.type.d.ts +5 -4
- package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
- package/build/Legacy/Form/Input/__tests__/Input.doc.md +4 -4
- package/build/Legacy/Form/Radio/Radio.d.ts +2 -1
- package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/Radio.type.d.ts +2 -1
- package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +2 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +7 -6
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +3 -3
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +2 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +15 -7
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +3 -3
- package/build/Legacy/Icon/Icon.d.ts +2 -1
- package/build/Legacy/Icon/Icon.d.ts.map +1 -1
- package/build/Legacy/Label/Label.d.ts +2 -1
- package/build/Legacy/Label/Label.d.ts.map +1 -1
- package/build/Legacy/Loader/Loader.d.ts +2 -1
- package/build/Legacy/Loader/Loader.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.d.ts +2 -1
- package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.js +4 -0
- package/build/Legacy/Navigation/Menu/Menu.d.ts +2 -1
- package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts +2 -1
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts +2 -1
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +5 -4
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +2 -2
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +2 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +4 -3
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +2 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
- package/build/Legacy/Popover/Popover.d.ts +2 -1
- package/build/Legacy/Popover/Popover.d.ts.map +1 -1
- package/build/Legacy/Progress/Progress.d.ts +2 -1
- package/build/Legacy/Progress/Progress.d.ts.map +1 -1
- package/build/Legacy/Select/Select.d.ts +2 -1
- package/build/Legacy/Select/Select.d.ts.map +1 -1
- package/build/Legacy/SelectMenu/SelectMenu.d.ts +2 -1
- package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
- package/build/Legacy/Subhead/Subhead.d.ts +2 -1
- package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +5 -0
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +2 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
- package/build/Legacy/Toast/Toast.d.ts +2 -1
- package/build/Legacy/Toast/Toast.d.ts.map +1 -1
- package/build/Legacy/type.d.ts +25 -2
- package/build/Legacy/type.d.ts.map +1 -1
- package/build/Modern/Link/Link.d.ts +3 -3
- package/build/Modern/Link/Link.d.ts.map +1 -1
- package/build/Modern/Link/Link.js +1 -3
- package/build/Modern/Pagination/Pagination.d.ts +5 -5
- package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.js +1 -3
- package/build/Modern/Pagination/Pagination.model.d.ts +3 -2
- package/build/Modern/Pagination/Pagination.model.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.model.js +1 -0
- package/build/Modern/Pagination/__tests__/Pagination.doc.md +2 -2
- package/build/Modern/hooks/useMedia.d.ts +2 -2
- package/build/Modern/hooks/useMedia.d.ts.map +1 -1
- package/build/Modern/hooks/useMedia.js +1 -3
- package/build/Modern/index.d.ts +1 -1
- package/build/Modern/type.d.ts +1 -0
- package/build/Modern/type.d.ts.map +1 -1
- package/build/Modern/utils/modern-polymorphic.d.ts +2 -2
- package/build/Modern/utils/modern-polymorphic.d.ts.map +1 -1
- package/build/Modern/utils/testing.d.ts +2 -1
- package/build/Modern/utils/testing.d.ts.map +1 -1
- package/build/Modern/utils/types/ComponentProps.d.ts +2 -1
- package/build/Modern/utils/types/ComponentProps.d.ts.map +1 -1
- package/build/Modern/utils/types/Slots.d.ts +2 -1
- package/build/Modern/utils/types/Slots.d.ts.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- 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):
|
|
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":"
|
|
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):
|
|
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,
|
|
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"}
|
|
@@ -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):
|
|
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":"
|
|
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):
|
|
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":"
|
|
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):
|
|
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":"
|
|
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"}
|
package/build/Legacy/type.d.ts
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
export type { IAlertConsent } from './Alert';
|
|
2
|
-
export type {
|
|
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;
|
|
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
|
|
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: (
|
|
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
|
-
} &
|
|
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,
|
|
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 =
|
|
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
|
|
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:
|
|
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:
|
|
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) =>
|
|
19
|
+
renderPage?: (props: PageProps) => ReactNode;
|
|
20
20
|
};
|
|
21
|
-
export declare function Pagination({ className, pageCount, currentPage, onPageChange, hrefBuilder, marginPageCount, showPages, surroundingPageCount, renderPage, ...rest }: PaginationProps):
|
|
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,
|
|
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 =
|
|
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:
|
|
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:
|
|
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,
|
|
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:
|
|
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) =>
|
|
19
|
+
renderPage?: (props: PageProps) => ReactNode
|
|
20
20
|
}
|
|
21
21
|
```
|
|
22
22
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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,
|
|
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 =
|
|
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.
|
package/build/Modern/index.d.ts
CHANGED
|
@@ -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>) =>
|
|
37
|
+
} & import("react").RefAttributes<unknown>) => import("react").ReactNode) & {
|
|
38
38
|
displayName: string;
|
|
39
39
|
};
|
|
40
40
|
};
|
package/build/Modern/type.d.ts
CHANGED
|
@@ -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:
|
|
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;
|
|
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
|
-
|
|
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;
|
|
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
|
|
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,
|
|
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<
|
|
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,
|
|
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
|
package/build/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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.
|
|
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.
|
|
30
|
-
"@papillonarts/library": "^0.
|
|
29
|
+
"@papillonarts/css": "^0.49.0",
|
|
30
|
+
"@papillonarts/library": "^0.49.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "73a2726fae9337d5f4aaf6577d9e7bbe5c894200"
|
|
33
33
|
}
|