@papillonarts/components 0.49.0 → 0.49.1
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/LICENSE +1 -1
- package/build/Legacy/Alert/Alert.const.d.ts +4 -0
- package/build/Legacy/Alert/Alert.const.d.ts.map +1 -0
- package/build/Legacy/Alert/Alert.const.js +26 -0
- package/build/Legacy/Alert/Alert.d.ts +2 -2
- package/build/Legacy/Alert/Alert.d.ts.map +1 -1
- package/build/Legacy/Alert/Alert.js +47 -49
- package/build/Legacy/Alert/Alert.type.d.ts +0 -2
- package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
- package/build/Legacy/Alert/Alert.type.js +1 -24
- package/build/Legacy/Alert/index.d.ts +1 -1
- package/build/Legacy/Alert/index.d.ts.map +1 -1
- package/build/Legacy/Alert/index.js +3 -3
- package/build/Legacy/Blankslate/Blankslate.const.d.ts +4 -0
- package/build/Legacy/Blankslate/Blankslate.const.d.ts.map +1 -0
- package/build/Legacy/Blankslate/Blankslate.const.js +18 -0
- package/build/Legacy/Blankslate/Blankslate.d.ts +1 -1
- package/build/Legacy/Blankslate/Blankslate.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.js +17 -14
- package/build/Legacy/Blankslate/Blankslate.type.d.ts +0 -2
- package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.type.js +1 -14
- package/build/Legacy/Blankslate/index.d.ts +1 -1
- package/build/Legacy/Blankslate/index.d.ts.map +1 -1
- package/build/Legacy/Blankslate/index.js +3 -3
- package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts +4 -0
- package/build/Legacy/Breadcrumb/Breadcrumb.const.d.ts.map +1 -0
- package/build/Legacy/Breadcrumb/Breadcrumb.const.js +14 -0
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.js +50 -46
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts +0 -2
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.type.js +1 -10
- package/build/Legacy/Breadcrumb/index.d.ts +1 -1
- package/build/Legacy/Breadcrumb/index.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/index.js +3 -3
- package/build/Legacy/Button/Button.const.d.ts +9 -0
- package/build/Legacy/Button/Button.const.d.ts.map +1 -0
- package/build/Legacy/Button/Button.const.js +48 -0
- package/build/Legacy/Button/Button.d.ts +1 -1
- package/build/Legacy/Button/Button.d.ts.map +1 -1
- package/build/Legacy/Button/Button.js +60 -66
- package/build/Legacy/Button/Button.type.d.ts +0 -7
- package/build/Legacy/Button/Button.type.d.ts.map +1 -1
- package/build/Legacy/Button/Button.type.js +1 -44
- package/build/Legacy/Button/index.d.ts +1 -1
- package/build/Legacy/Button/index.d.ts.map +1 -1
- package/build/Legacy/Button/index.js +8 -8
- package/build/Legacy/Dropdown/Dropdown.const.d.ts +4 -0
- package/build/Legacy/Dropdown/Dropdown.const.d.ts.map +1 -0
- package/build/Legacy/Dropdown/Dropdown.const.js +18 -0
- package/build/Legacy/Dropdown/Dropdown.d.ts +1 -1
- package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.js +49 -51
- package/build/Legacy/Dropdown/Dropdown.type.d.ts +0 -2
- package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.type.js +1 -14
- package/build/Legacy/Dropdown/index.d.ts +2 -1
- package/build/Legacy/Dropdown/index.d.ts.map +1 -1
- package/build/Legacy/Dropdown/index.js +3 -3
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts +3 -2
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.js +31 -45
- package/build/Legacy/ErrorBoundary/index.js +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts +5 -0
- package/build/Legacy/Form/Checkbox/Checkbox.const.d.ts.map +1 -0
- package/build/Legacy/Form/Checkbox/Checkbox.const.js +22 -0
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.js +22 -25
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts +0 -3
- package/build/Legacy/Form/Checkbox/Checkbox.type.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/Checkbox.type.js +1 -18
- package/build/Legacy/Form/Checkbox/index.d.ts +1 -1
- package/build/Legacy/Form/Checkbox/index.d.ts.map +1 -1
- package/build/Legacy/Form/Checkbox/index.js +3 -3
- package/build/Legacy/Form/Input/Input.const.d.ts +5 -0
- package/build/Legacy/Form/Input/Input.const.d.ts.map +1 -0
- package/build/Legacy/Form/Input/Input.const.js +30 -0
- package/build/Legacy/Form/Input/Input.d.ts +1 -1
- package/build/Legacy/Form/Input/Input.d.ts.map +1 -1
- package/build/Legacy/Form/Input/Input.js +25 -32
- package/build/Legacy/Form/Input/Input.type.d.ts +0 -3
- package/build/Legacy/Form/Input/Input.type.d.ts.map +1 -1
- package/build/Legacy/Form/Input/Input.type.js +1 -26
- package/build/Legacy/Form/Input/index.d.ts +1 -1
- package/build/Legacy/Form/Input/index.d.ts.map +1 -1
- package/build/Legacy/Form/Input/index.js +4 -4
- package/build/Legacy/Form/Radio/Radio.const.d.ts +5 -0
- package/build/Legacy/Form/Radio/Radio.const.d.ts.map +1 -0
- package/build/Legacy/Form/Radio/Radio.const.js +22 -0
- package/build/Legacy/Form/Radio/Radio.d.ts +1 -1
- package/build/Legacy/Form/Radio/Radio.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/Radio.js +19 -24
- package/build/Legacy/Form/Radio/Radio.type.d.ts +0 -3
- package/build/Legacy/Form/Radio/Radio.type.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/Radio.type.js +1 -18
- package/build/Legacy/Form/Radio/index.d.ts +1 -1
- package/build/Legacy/Form/Radio/index.d.ts.map +1 -1
- package/build/Legacy/Form/Radio/index.js +3 -3
- package/build/Legacy/Form/index.js +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts +3 -0
- package/build/Legacy/Grid/DisplayTable/DisplayTable.const.d.ts.map +1 -0
- package/build/Legacy/Grid/DisplayTable/DisplayTable.const.js +11 -0
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.js +26 -31
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts +0 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.d.ts.map +1 -1
- package/build/Legacy/Grid/DisplayTable/DisplayTable.type.js +1 -7
- package/build/Legacy/Grid/DisplayTable/index.js +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts +5 -0
- package/build/Legacy/Grid/FlexGrid/FlexGrid.const.d.ts.map +1 -0
- package/build/Legacy/Grid/FlexGrid/FlexGrid.const.js +28 -0
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.js +148 -167
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts +1 -4
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/FlexGrid.type.js +1 -24
- package/build/Legacy/Grid/FlexGrid/index.d.ts +1 -1
- package/build/Legacy/Grid/FlexGrid/index.d.ts.map +1 -1
- package/build/Legacy/Grid/FlexGrid/index.js +4 -4
- package/build/Legacy/Grid/index.js +1 -1
- package/build/Legacy/Icon/Icon.const.d.ts +656 -0
- package/build/Legacy/Icon/Icon.const.d.ts.map +1 -0
- package/build/Legacy/Icon/Icon.const.js +678 -0
- package/build/Legacy/Icon/Icon.d.ts +1 -1
- package/build/Legacy/Icon/Icon.d.ts.map +1 -1
- package/build/Legacy/Icon/Icon.js +33 -44
- package/build/Legacy/Icon/Icon.part.js +645 -645
- package/build/Legacy/Icon/Icon.type.d.ts +0 -654
- package/build/Legacy/Icon/Icon.type.d.ts.map +1 -1
- package/build/Legacy/Icon/Icon.type.js +1 -674
- package/build/Legacy/Icon/index.d.ts +1 -1
- package/build/Legacy/Icon/index.d.ts.map +1 -1
- package/build/Legacy/Icon/index.js +4 -4
- package/build/Legacy/Label/Label.const.d.ts +6 -0
- package/build/Legacy/Label/Label.const.d.ts.map +1 -0
- package/build/Legacy/Label/Label.const.js +26 -0
- package/build/Legacy/Label/Label.d.ts +1 -1
- package/build/Legacy/Label/Label.d.ts.map +1 -1
- package/build/Legacy/Label/Label.js +16 -15
- package/build/Legacy/Label/Label.type.d.ts +0 -4
- package/build/Legacy/Label/Label.type.d.ts.map +1 -1
- package/build/Legacy/Label/Label.type.js +1 -22
- package/build/Legacy/Label/index.js +1 -1
- package/build/Legacy/Loader/Loader.const.d.ts +4 -0
- package/build/Legacy/Loader/Loader.const.d.ts.map +1 -0
- package/build/Legacy/Loader/Loader.const.js +15 -0
- package/build/Legacy/Loader/Loader.d.ts +1 -1
- package/build/Legacy/Loader/Loader.d.ts.map +1 -1
- package/build/Legacy/Loader/Loader.js +19 -19
- package/build/Legacy/Loader/Loader.type.d.ts +0 -2
- package/build/Legacy/Loader/Loader.type.d.ts.map +1 -1
- package/build/Legacy/Loader/Loader.type.js +1 -11
- package/build/Legacy/Loader/index.d.ts +1 -1
- package/build/Legacy/Loader/index.d.ts.map +1 -1
- package/build/Legacy/Loader/index.js +3 -3
- package/build/Legacy/Markdown/Markdown.const.d.ts +4 -0
- package/build/Legacy/Markdown/Markdown.const.d.ts.map +1 -0
- package/build/Legacy/Markdown/Markdown.const.js +14 -0
- package/build/Legacy/Markdown/Markdown.d.ts +1 -1
- package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.js +20 -16
- package/build/Legacy/Markdown/Markdown.type.d.ts +0 -2
- package/build/Legacy/Markdown/Markdown.type.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.type.js +1 -10
- package/build/Legacy/Markdown/index.js +1 -1
- package/build/Legacy/Navigation/Menu/Menu.const.d.ts +3 -0
- package/build/Legacy/Navigation/Menu/Menu.const.d.ts.map +1 -0
- package/build/Legacy/Navigation/Menu/Menu.const.js +10 -0
- package/build/Legacy/Navigation/Menu/Menu.d.ts +1 -1
- package/build/Legacy/Navigation/Menu/Menu.d.ts.map +1 -1
- package/build/Legacy/Navigation/Menu/Menu.js +40 -42
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts +0 -1
- package/build/Legacy/Navigation/Menu/Menu.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/Menu/Menu.type.js +1 -6
- package/build/Legacy/Navigation/Menu/index.js +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts +4 -0
- package/build/Legacy/Navigation/TabNav/TabNav.const.d.ts.map +1 -0
- package/build/Legacy/Navigation/TabNav/TabNav.const.js +16 -0
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.js +79 -79
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts +1 -3
- package/build/Legacy/Navigation/TabNav/TabNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/TabNav.type.js +1 -12
- package/build/Legacy/Navigation/TabNav/index.d.ts +1 -1
- package/build/Legacy/Navigation/TabNav/index.d.ts.map +1 -1
- package/build/Legacy/Navigation/TabNav/index.js +3 -3
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts +5 -0
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.d.ts.map +1 -0
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.const.js +20 -0
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts +1 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.js +64 -63
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts +0 -3
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.type.js +1 -16
- package/build/Legacy/Navigation/UnderlineNav/index.d.ts +1 -1
- package/build/Legacy/Navigation/UnderlineNav/index.d.ts.map +1 -1
- package/build/Legacy/Navigation/UnderlineNav/index.js +4 -4
- package/build/Legacy/Navigation/index.js +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts +4 -0
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.d.ts.map +1 -0
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.const.js +30 -0
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.d.ts.map +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.js +46 -40
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts +0 -2
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.d.ts.map +1 -1
- package/build/Legacy/Pagination/PreviousNext/PreviousNext.type.js +1 -26
- package/build/Legacy/Pagination/PreviousNext/index.d.ts +1 -1
- package/build/Legacy/Pagination/PreviousNext/index.d.ts.map +1 -1
- package/build/Legacy/Pagination/PreviousNext/index.js +3 -3
- package/build/Legacy/Pagination/index.js +1 -1
- package/build/Legacy/Popover/Popover.const.d.ts +5 -0
- package/build/Legacy/Popover/Popover.const.d.ts.map +1 -0
- package/build/Legacy/Popover/Popover.const.js +29 -0
- package/build/Legacy/Popover/Popover.d.ts +1 -1
- package/build/Legacy/Popover/Popover.d.ts.map +1 -1
- package/build/Legacy/Popover/Popover.js +41 -25
- package/build/Legacy/Popover/Popover.type.d.ts +0 -3
- package/build/Legacy/Popover/Popover.type.d.ts.map +1 -1
- package/build/Legacy/Popover/Popover.type.js +1 -25
- package/build/Legacy/Popover/index.d.ts +1 -1
- package/build/Legacy/Popover/index.d.ts.map +1 -1
- package/build/Legacy/Popover/index.js +4 -4
- package/build/Legacy/Progress/Progress.const.d.ts +4 -0
- package/build/Legacy/Progress/Progress.const.d.ts.map +1 -0
- package/build/Legacy/Progress/Progress.const.js +15 -0
- package/build/Legacy/Progress/Progress.d.ts +1 -1
- package/build/Legacy/Progress/Progress.d.ts.map +1 -1
- package/build/Legacy/Progress/Progress.js +15 -14
- package/build/Legacy/Progress/Progress.type.d.ts +0 -2
- package/build/Legacy/Progress/Progress.type.d.ts.map +1 -1
- package/build/Legacy/Progress/Progress.type.js +1 -11
- package/build/Legacy/Progress/index.d.ts +1 -1
- package/build/Legacy/Progress/index.d.ts.map +1 -1
- package/build/Legacy/Progress/index.js +3 -3
- package/build/Legacy/Select/Select.const.d.ts +4 -0
- package/build/Legacy/Select/Select.const.d.ts.map +1 -0
- package/build/Legacy/Select/Select.const.js +15 -0
- package/build/Legacy/Select/Select.d.ts +1 -1
- package/build/Legacy/Select/Select.d.ts.map +1 -1
- package/build/Legacy/Select/Select.js +31 -35
- package/build/Legacy/Select/Select.type.d.ts +0 -2
- package/build/Legacy/Select/Select.type.d.ts.map +1 -1
- package/build/Legacy/Select/Select.type.js +1 -11
- package/build/Legacy/Select/index.d.ts +1 -1
- package/build/Legacy/Select/index.d.ts.map +1 -1
- package/build/Legacy/Select/index.js +3 -3
- package/build/Legacy/SelectMenu/SelectMenu.const.d.ts +3 -0
- package/build/Legacy/SelectMenu/SelectMenu.const.d.ts.map +1 -0
- package/build/Legacy/SelectMenu/SelectMenu.const.js +10 -0
- package/build/Legacy/SelectMenu/SelectMenu.d.ts +1 -1
- package/build/Legacy/SelectMenu/SelectMenu.d.ts.map +1 -1
- package/build/Legacy/SelectMenu/SelectMenu.js +42 -46
- package/build/Legacy/SelectMenu/SelectMenu.type.d.ts +0 -1
- package/build/Legacy/SelectMenu/SelectMenu.type.d.ts.map +1 -1
- package/build/Legacy/SelectMenu/SelectMenu.type.js +1 -6
- package/build/Legacy/SelectMenu/index.js +1 -1
- package/build/Legacy/Subhead/Subhead.const.d.ts +3 -0
- package/build/Legacy/Subhead/Subhead.const.d.ts.map +1 -0
- package/build/Legacy/Subhead/Subhead.const.js +10 -0
- package/build/Legacy/Subhead/Subhead.d.ts +1 -1
- package/build/Legacy/Subhead/Subhead.d.ts.map +1 -1
- package/build/Legacy/Subhead/Subhead.js +12 -12
- package/build/Legacy/Subhead/Subhead.type.d.ts +0 -1
- package/build/Legacy/Subhead/Subhead.type.d.ts.map +1 -1
- package/build/Legacy/Subhead/Subhead.type.js +1 -6
- package/build/Legacy/Subhead/index.js +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts +6 -0
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.d.ts.map +1 -0
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.const.js +25 -0
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +7 -9
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts +0 -4
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.type.js +1 -21
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterHLJS.js +9 -10
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighterPrism.js +10 -11
- package/build/Legacy/SyntaxHighlighter/index.d.ts +1 -1
- package/build/Legacy/SyntaxHighlighter/index.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/index.js +5 -5
- package/build/Legacy/Toast/Toast.const.d.ts +4 -0
- package/build/Legacy/Toast/Toast.const.d.ts.map +1 -0
- package/build/Legacy/Toast/Toast.const.js +18 -0
- package/build/Legacy/Toast/Toast.d.ts +1 -1
- package/build/Legacy/Toast/Toast.d.ts.map +1 -1
- package/build/Legacy/Toast/Toast.js +23 -23
- package/build/Legacy/Toast/Toast.type.d.ts +0 -2
- package/build/Legacy/Toast/Toast.type.d.ts.map +1 -1
- package/build/Legacy/Toast/Toast.type.js +1 -14
- package/build/Legacy/Toast/index.d.ts +1 -1
- package/build/Legacy/Toast/index.d.ts.map +1 -1
- package/build/Legacy/Toast/index.js +3 -3
- package/build/Legacy/index.js +1 -1
- package/build/Modern/Avatar/Avatar.d.ts +1 -1
- package/build/Modern/Avatar/Avatar.d.ts.map +1 -1
- package/build/Modern/Avatar/Avatar.js +23 -30
- package/build/Modern/Avatar/index.js +1 -1
- package/build/Modern/AvatarStack/AvatarStack.d.ts +2 -2
- package/build/Modern/AvatarStack/AvatarStack.d.ts.map +1 -1
- package/build/Modern/AvatarStack/AvatarStack.js +53 -57
- package/build/Modern/AvatarStack/index.js +1 -1
- package/build/Modern/Flash/Flash.d.ts +1 -1
- package/build/Modern/Flash/Flash.d.ts.map +1 -1
- package/build/Modern/Flash/Flash.js +13 -17
- package/build/Modern/Flash/index.js +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 +20 -22
- package/build/Modern/Link/index.js +1 -1
- package/build/Modern/Pagination/Pagination.d.ts +2 -2
- package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.js +68 -79
- package/build/Modern/Pagination/Pagination.model.js +30 -34
- package/build/Modern/Pagination/index.js +1 -1
- package/build/Modern/hooks/index.js +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 +29 -38
- package/build/Modern/hooks/useRefObjectAsForwardedRef.js +1 -3
- package/build/Modern/hooks/useResponsiveValue.js +6 -10
- package/build/Modern/index.d.ts +1 -1
- package/build/Modern/index.js +1 -1
- package/build/Modern/utils/environment.js +1 -2
- package/build/Modern/utils/hasInteractiveNodes.js +11 -15
- package/build/Modern/utils/modern-polymorphic.js +1 -1
- package/build/Modern/utils/polymorphic.d.ts +1 -1
- package/build/Modern/utils/polymorphic.d.ts.map +1 -1
- package/build/Modern/utils/testing.js +2 -2
- package/build/Modern/utils/types/index.js +3 -3
- package/build/Modern/utils/warning.js +4 -7
- package/build/index.js +2 -2
- package/package.json +4 -4
|
@@ -1,120 +1,121 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.UnderlineNav = UnderlineNav;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
8
|
var _array = require("@papillonarts/library/array");
|
|
11
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
10
|
var _react = require("react");
|
|
13
11
|
var _uuid = require("uuid");
|
|
14
12
|
var _Icon = require("../../Icon");
|
|
15
13
|
var _container = _interopRequireDefault(require("../../Layout/container.scss"));
|
|
16
|
-
var _UnderlineNav =
|
|
17
|
-
var _UnderlineNav2 = require("./UnderlineNav.
|
|
14
|
+
var _UnderlineNav = require("./UnderlineNav.const");
|
|
15
|
+
var _UnderlineNav2 = _interopRequireDefault(require("./UnderlineNav.scss"));
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
36
|
-
indexItems = _useState2[0],
|
|
37
|
-
setIndexItems = _useState2[1];
|
|
38
|
-
var label = ariaAttr.label,
|
|
39
|
-
selected = ariaAttr.selected,
|
|
40
|
-
current = ariaAttr.current;
|
|
17
|
+
function UnderlineNav({
|
|
18
|
+
className = _UnderlineNav.UnderlineNavDefault.ClassName,
|
|
19
|
+
ariaAttr,
|
|
20
|
+
items,
|
|
21
|
+
itemType,
|
|
22
|
+
actions = _UnderlineNav.UnderlineNavDefault.Actions,
|
|
23
|
+
align = _UnderlineNav.UnderlineNavDefault.Align,
|
|
24
|
+
fullContainer = _UnderlineNav.UnderlineNavDefault.FullContainer,
|
|
25
|
+
onClick
|
|
26
|
+
}) {
|
|
27
|
+
const [indexItems, setIndexItems] = (0, _react.useState)((0, _array.getIndexItems)(items));
|
|
28
|
+
const {
|
|
29
|
+
label,
|
|
30
|
+
selected,
|
|
31
|
+
current
|
|
32
|
+
} = ariaAttr;
|
|
41
33
|
function renderActions() {
|
|
42
34
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
|
-
className:
|
|
35
|
+
className: _UnderlineNav2.default['UnderlineNav-actions'],
|
|
44
36
|
children: actions
|
|
45
37
|
});
|
|
46
38
|
}
|
|
47
39
|
function renderBody() {
|
|
48
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
49
|
-
children: [align ===
|
|
50
|
-
className:
|
|
41
|
+
children: [align === _UnderlineNav.UnderlineNavAlignmentType.Right && actions && renderActions(), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
42
|
+
className: _UnderlineNav2.default['UnderlineNav-body'],
|
|
51
43
|
role: "tablist",
|
|
52
|
-
children: indexItems.map(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
44
|
+
children: indexItems.map(indexItem => {
|
|
45
|
+
const {
|
|
46
|
+
href,
|
|
47
|
+
icon,
|
|
48
|
+
text,
|
|
49
|
+
html,
|
|
50
|
+
isSelected
|
|
51
|
+
} = indexItem;
|
|
52
|
+
const anchorOtherProps = isSelected ? {
|
|
53
|
+
...{
|
|
54
|
+
'aria-selected': selected
|
|
55
|
+
}
|
|
56
|
+
} : null;
|
|
57
|
+
const buttonOtherProps = isSelected ? {
|
|
58
|
+
...{
|
|
59
|
+
'aria-current': current
|
|
60
|
+
}
|
|
61
|
+
} : null;
|
|
64
62
|
switch (itemType) {
|
|
65
63
|
case 'button':
|
|
66
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button",
|
|
67
|
-
onClick:
|
|
64
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
65
|
+
onClick: e => {
|
|
68
66
|
e.preventDefault();
|
|
69
|
-
|
|
67
|
+
const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
70
68
|
setIndexItems(newIndexItems);
|
|
71
|
-
|
|
69
|
+
onClick(newIndexItems);
|
|
72
70
|
},
|
|
73
|
-
className:
|
|
71
|
+
className: _UnderlineNav2.default['UnderlineNav-item'],
|
|
74
72
|
role: "tab",
|
|
75
73
|
type: "button"
|
|
76
74
|
// @ts-ignore
|
|
77
75
|
,
|
|
78
|
-
href: href
|
|
79
|
-
|
|
76
|
+
href: href,
|
|
77
|
+
...anchorOtherProps,
|
|
80
78
|
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
81
|
-
className:
|
|
79
|
+
className: _UnderlineNav2.default['UnderlineNav-octicon'],
|
|
82
80
|
icon: icon,
|
|
83
81
|
size: _Icon.IconSize.Small
|
|
84
82
|
}), html || null, text]
|
|
85
|
-
}
|
|
83
|
+
}, (0, _uuid.v1)());
|
|
86
84
|
case 'a':
|
|
87
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("a",
|
|
88
|
-
onClick:
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("a", {
|
|
86
|
+
onClick: e => {
|
|
89
87
|
e.preventDefault();
|
|
90
|
-
|
|
88
|
+
const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
91
89
|
setIndexItems(newIndexItems);
|
|
92
|
-
|
|
90
|
+
onClick(newIndexItems);
|
|
93
91
|
},
|
|
94
|
-
className:
|
|
95
|
-
href: href
|
|
96
|
-
|
|
92
|
+
className: _UnderlineNav2.default['UnderlineNav-item'],
|
|
93
|
+
href: href,
|
|
94
|
+
...buttonOtherProps,
|
|
97
95
|
children: [icon && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
98
|
-
className:
|
|
96
|
+
className: _UnderlineNav2.default['UnderlineNav-octicon'],
|
|
99
97
|
icon: icon,
|
|
100
98
|
size: _Icon.IconSize.Small
|
|
101
99
|
}), html || null, text]
|
|
102
|
-
}
|
|
100
|
+
}, (0, _uuid.v1)());
|
|
103
101
|
default:
|
|
104
102
|
return null;
|
|
105
103
|
}
|
|
106
104
|
})
|
|
107
|
-
}), align ===
|
|
105
|
+
}), align === _UnderlineNav.UnderlineNavAlignmentType.Left && actions && renderActions()]
|
|
108
106
|
});
|
|
109
107
|
}
|
|
110
108
|
function renderBodyFullContainer() {
|
|
111
109
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
112
|
-
className: (0, _classnames
|
|
110
|
+
className: (0, _classnames.default)(_container.default['container-lg'], _UnderlineNav2.default['UnderlineNav-container']),
|
|
113
111
|
children: renderBody()
|
|
114
112
|
});
|
|
115
113
|
}
|
|
116
114
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("nav", {
|
|
117
|
-
className: (0, _classnames
|
|
115
|
+
className: (0, _classnames.default)(className, _UnderlineNav2.default.UnderlineNav, {
|
|
116
|
+
[_UnderlineNav2.default['UnderlineNav--right']]: align === _UnderlineNav.UnderlineNavAlignmentType.Right,
|
|
117
|
+
[_UnderlineNav2.default['UnderlineNav--full']]: fullContainer === true
|
|
118
|
+
}),
|
|
118
119
|
"aria-label": label,
|
|
119
120
|
children: [fullContainer === false && renderBody(), fullContainer === true && renderBodyFullContainer()]
|
|
120
121
|
});
|
|
@@ -4,19 +4,16 @@ export interface IUnderlineNavItemType {
|
|
|
4
4
|
A: string;
|
|
5
5
|
Button: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const UnderlineNavItemType: IUnderlineNavItemType;
|
|
8
7
|
export interface IUnderlineNavAlignmentType {
|
|
9
8
|
Right: string;
|
|
10
9
|
Left: string;
|
|
11
10
|
}
|
|
12
|
-
export declare const UnderlineNavAlignmentType: IUnderlineNavAlignmentType;
|
|
13
11
|
export interface IUnderlineNavDefault {
|
|
14
12
|
ClassName: string;
|
|
15
13
|
Actions: ReactNode[];
|
|
16
14
|
Align: string;
|
|
17
15
|
FullContainer: boolean;
|
|
18
16
|
}
|
|
19
|
-
export declare const UnderlineNavDefault: IUnderlineNavDefault;
|
|
20
17
|
export interface IAriaAttr {
|
|
21
18
|
label: string;
|
|
22
19
|
selected: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnderlineNav.type.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/UnderlineNav.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,qBAAqB;IACpC,CAAC,EAAE,MAAM,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;CACf;
|
|
1
|
+
{"version":3,"file":"UnderlineNav.type.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/UnderlineNav.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,qBAAqB;IACpC,CAAC,EAAE,MAAM,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;CACf;AACD,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,SAAS,EAAE,CAAA;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,OAAO,CAAA;CACvB;AACD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,GAAG,KAAK,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAA;CACjF;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,SAAS,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;CACpB;AACD,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AACxD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,SAAS,EAAE,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;CACzB"}
|
|
@@ -2,19 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.UnderlineNavItemType = exports.UnderlineNavDefault = exports.UnderlineNavAlignmentType = void 0;
|
|
7
|
-
var UnderlineNavItemType = exports.UnderlineNavItemType = {
|
|
8
|
-
A: 'a',
|
|
9
|
-
Button: 'button'
|
|
10
|
-
};
|
|
11
|
-
var UnderlineNavAlignmentType = exports.UnderlineNavAlignmentType = {
|
|
12
|
-
Right: 'right',
|
|
13
|
-
Left: 'left'
|
|
14
|
-
};
|
|
15
|
-
var UnderlineNavDefault = exports.UnderlineNavDefault = {
|
|
16
|
-
ClassName: null,
|
|
17
|
-
Actions: null,
|
|
18
|
-
Align: 'left',
|
|
19
|
-
FullContainer: false
|
|
20
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Navigation/UnderlineNav/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -5,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "UnderlineNav", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _UnderlineNav.UnderlineNav;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "UnderlineNavAlignmentType", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _UnderlineNav2.UnderlineNavAlignmentType;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "UnderlineNavItemType", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _UnderlineNav2.UnderlineNavItemType;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
var _UnderlineNav = require("./UnderlineNav");
|
|
25
|
-
var _UnderlineNav2 = require("./UnderlineNav.
|
|
25
|
+
var _UnderlineNav2 = require("./UnderlineNav.const");
|
|
@@ -7,7 +7,7 @@ exports.Navigation = void 0;
|
|
|
7
7
|
var _Menu = require("./Menu");
|
|
8
8
|
var _TabNav = require("./TabNav");
|
|
9
9
|
var _UnderlineNav = require("./UnderlineNav");
|
|
10
|
-
|
|
10
|
+
const Navigation = exports.Navigation = {
|
|
11
11
|
Menu: _Menu.Menu,
|
|
12
12
|
TabNav: _TabNav.TabNav,
|
|
13
13
|
TabNavState: _TabNav.TabNavState,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviousNext.const.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/PreviousNext.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAEnF,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,oBAmBjC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PreviousNextState = exports.PreviousNextDefault = void 0;
|
|
7
|
+
const PreviousNextState = exports.PreviousNextState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
const PreviousNextDefault = exports.PreviousNextDefault = {
|
|
12
|
+
ClassName: null,
|
|
13
|
+
Previous: {
|
|
14
|
+
rel: 'previous',
|
|
15
|
+
href: '#url',
|
|
16
|
+
ariaAttr: {
|
|
17
|
+
label: 'Previous'
|
|
18
|
+
},
|
|
19
|
+
text: '<'
|
|
20
|
+
},
|
|
21
|
+
Next: {
|
|
22
|
+
rel: 'next',
|
|
23
|
+
href: '#url',
|
|
24
|
+
ariaAttr: {
|
|
25
|
+
label: 'Next'
|
|
26
|
+
},
|
|
27
|
+
text: '>'
|
|
28
|
+
},
|
|
29
|
+
State: PreviousNextState.Active
|
|
30
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { IPreviousNext } from './PreviousNext.type';
|
|
2
|
+
import type { IPreviousNext } from './PreviousNext.type';
|
|
3
3
|
export declare function PreviousNext({ className, ariaAttr, currentPage, previous, next, onClick, state, }: IPreviousNext): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=PreviousNext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviousNext.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/PreviousNext.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"PreviousNext.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/PreviousNext.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,wBAAgB,YAAY,CAAC,EAC3B,SAAyC,EACzC,QAAQ,EACR,WAAW,EACX,QAAuC,EACvC,IAA+B,EAC/B,OAAO,EACP,KAAiC,GAClC,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAwD7B"}
|
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.PreviousNext = PreviousNext;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/utilities/visibility-display.scss"));
|
|
10
9
|
var _pagination = require("@papillonarts/library/pagination");
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
|
-
var _PreviousNext =
|
|
13
|
-
var _PreviousNext2 = require("./PreviousNext.
|
|
11
|
+
var _PreviousNext = require("./PreviousNext.const");
|
|
12
|
+
var _PreviousNext2 = _interopRequireDefault(require("./PreviousNext.scss"));
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
14
|
+
function PreviousNext({
|
|
15
|
+
className = _PreviousNext.PreviousNextDefault.ClassName,
|
|
16
|
+
ariaAttr,
|
|
17
|
+
currentPage,
|
|
18
|
+
previous = _PreviousNext.PreviousNextDefault.Previous,
|
|
19
|
+
next = _PreviousNext.PreviousNextDefault.Next,
|
|
20
|
+
onClick,
|
|
21
|
+
state = _PreviousNext.PreviousNextDefault.State
|
|
22
|
+
}) {
|
|
23
|
+
const {
|
|
24
|
+
label
|
|
25
|
+
} = ariaAttr;
|
|
26
|
+
const {
|
|
27
|
+
indexItems,
|
|
28
|
+
currentIndex,
|
|
29
|
+
canMoveBackwards,
|
|
30
|
+
canMoveForward
|
|
31
|
+
} = currentPage;
|
|
32
|
+
const backwardsAriaProps = !canMoveBackwards ? {
|
|
33
|
+
...{
|
|
34
|
+
'aria-disabled': 'true'
|
|
35
|
+
}
|
|
36
|
+
} : null;
|
|
37
|
+
const forwardAriaProps = !canMoveForward ? {
|
|
38
|
+
...{
|
|
39
|
+
'aria-disabled': 'true'
|
|
40
|
+
}
|
|
41
|
+
} : null;
|
|
40
42
|
|
|
41
43
|
// @ts-ignore
|
|
42
44
|
// if (indexItems === [] || currentIndex === -1) {
|
|
@@ -44,35 +46,39 @@ function PreviousNext(_ref) {
|
|
|
44
46
|
// }
|
|
45
47
|
|
|
46
48
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("nav", {
|
|
47
|
-
className: (0, _classnames
|
|
49
|
+
className: (0, _classnames.default)(className, _PreviousNext2.default['paginate-container'], {
|
|
50
|
+
[_PreviousNext2.default['previousnext-inactive']]: state === _PreviousNext.PreviousNextState.Inactive
|
|
51
|
+
}),
|
|
48
52
|
"aria-label": label,
|
|
49
53
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
50
|
-
className: (0, _classnames
|
|
54
|
+
className: (0, _classnames.default)(_PreviousNext2.default.pagination, _visibilityDisplay.default['d-flex']),
|
|
51
55
|
children: [!canMoveBackwards ?
|
|
52
56
|
/*#__PURE__*/
|
|
53
57
|
// @ts-ignore
|
|
54
|
-
(0, _jsxRuntime.jsx)("span",
|
|
58
|
+
(0, _jsxRuntime.jsx)("span", {
|
|
59
|
+
...backwardsAriaProps,
|
|
55
60
|
children: previous.text
|
|
56
|
-
})
|
|
57
|
-
onClick:
|
|
61
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
62
|
+
onClick: event => {
|
|
58
63
|
event.preventDefault();
|
|
59
|
-
|
|
64
|
+
onClick(_pagination.PaginationActionTypes.OnBackwards);
|
|
60
65
|
},
|
|
61
66
|
rel: previous.rel,
|
|
62
67
|
href: previous.href,
|
|
63
68
|
"aria-label": previous.ariaAttr.label,
|
|
64
69
|
children: previous.text
|
|
65
70
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
66
|
-
children:
|
|
71
|
+
children: `Viewing ${currentIndex + 1} to ${indexItems.length}`
|
|
67
72
|
}), !canMoveForward ?
|
|
68
73
|
/*#__PURE__*/
|
|
69
74
|
// @ts-ignore
|
|
70
|
-
(0, _jsxRuntime.jsx)("span",
|
|
75
|
+
(0, _jsxRuntime.jsx)("span", {
|
|
76
|
+
...forwardAriaProps,
|
|
71
77
|
children: next.text
|
|
72
|
-
})
|
|
73
|
-
onClick:
|
|
78
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
79
|
+
onClick: event => {
|
|
74
80
|
event.preventDefault();
|
|
75
|
-
|
|
81
|
+
onClick(_pagination.PaginationActionTypes.OnForward);
|
|
76
82
|
},
|
|
77
83
|
rel: next.rel,
|
|
78
84
|
href: next.href,
|
|
@@ -3,7 +3,6 @@ export interface IPreviousNextState {
|
|
|
3
3
|
Active: string;
|
|
4
4
|
Inactive: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const PreviousNextState: IPreviousNextState;
|
|
7
6
|
export interface IPreviousNextType {
|
|
8
7
|
rel: string;
|
|
9
8
|
href: string;
|
|
@@ -16,7 +15,6 @@ export interface IPreviousNextDefault {
|
|
|
16
15
|
Next: IPreviousNextType;
|
|
17
16
|
State: string;
|
|
18
17
|
}
|
|
19
|
-
export declare const PreviousNextDefault: IPreviousNextDefault;
|
|
20
18
|
export interface IAriaAttr {
|
|
21
19
|
label: string;
|
|
22
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PreviousNext.type.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/PreviousNext.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;
|
|
1
|
+
{"version":3,"file":"PreviousNext.type.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/PreviousNext.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AAEzE,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,SAAS,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,IAAI,EAAE,iBAAiB,CAAA;IACvB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,iBAAiB,EAAE,CAAA;IAC/B,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,OAAO,CAAA;IACzB,cAAc,EAAE,OAAO,CAAA;CACxB;AACD,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,WAAW,EAAE,gBAAgB,CAAA;IAC7B,QAAQ,CAAC,EAAE,iBAAiB,CAAA;IAC5B,IAAI,CAAC,EAAE,iBAAiB,CAAA;IACxB,OAAO,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -2,29 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PreviousNextState = exports.PreviousNextDefault = void 0;
|
|
7
|
-
var PreviousNextState = exports.PreviousNextState = {
|
|
8
|
-
Active: 'active',
|
|
9
|
-
Inactive: 'inactive'
|
|
10
|
-
};
|
|
11
|
-
var PreviousNextDefault = exports.PreviousNextDefault = {
|
|
12
|
-
ClassName: null,
|
|
13
|
-
Previous: {
|
|
14
|
-
rel: 'previous',
|
|
15
|
-
href: '#url',
|
|
16
|
-
ariaAttr: {
|
|
17
|
-
label: 'Previous'
|
|
18
|
-
},
|
|
19
|
-
text: '<'
|
|
20
|
-
},
|
|
21
|
-
Next: {
|
|
22
|
-
rel: 'next',
|
|
23
|
-
href: '#url',
|
|
24
|
-
ariaAttr: {
|
|
25
|
-
label: 'Next'
|
|
26
|
-
},
|
|
27
|
-
text: '>'
|
|
28
|
-
},
|
|
29
|
-
State: PreviousNextState.Active
|
|
30
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Pagination/PreviousNext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "PreviousNext", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _PreviousNext.PreviousNext;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "PreviousNextState", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _PreviousNext2.PreviousNextState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _PreviousNext = require("./PreviousNext");
|
|
19
|
-
var _PreviousNext2 = require("./PreviousNext.
|
|
19
|
+
var _PreviousNext2 = require("./PreviousNext.const");
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Pagination = void 0;
|
|
7
7
|
var _PreviousNext = require("./PreviousNext");
|
|
8
|
-
|
|
8
|
+
const Pagination = exports.Pagination = {
|
|
9
9
|
PreviousNext: _PreviousNext.PreviousNext,
|
|
10
10
|
PreviousNextState: _PreviousNext.PreviousNextState
|
|
11
11
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IPopoverDefault, IPopoverSize, IPopoverVariant } from './Popover.type';
|
|
2
|
+
export declare const PopoverVariant: IPopoverVariant;
|
|
3
|
+
export declare const PopoverSize: IPopoverSize;
|
|
4
|
+
export declare const PopoverDefault: IPopoverDefault;
|
|
5
|
+
//# sourceMappingURL=Popover.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAEpF,eAAO,MAAM,cAAc,EAAE,eAa5B,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,eAI5B,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PopoverVariant = exports.PopoverSize = exports.PopoverDefault = void 0;
|
|
7
|
+
const PopoverVariant = exports.PopoverVariant = {
|
|
8
|
+
Default: 'default',
|
|
9
|
+
Bottom: 'bottom',
|
|
10
|
+
BottomRight: 'bottomRight',
|
|
11
|
+
BottomLeft: 'bottomLeft',
|
|
12
|
+
Left: 'left',
|
|
13
|
+
LeftBottom: 'leftBottom',
|
|
14
|
+
LeftTop: 'leftTop',
|
|
15
|
+
Right: 'right',
|
|
16
|
+
RightBottom: 'rightBottom',
|
|
17
|
+
RightTop: 'rightTop',
|
|
18
|
+
TopLeft: 'topLeft',
|
|
19
|
+
TopRight: 'topRight'
|
|
20
|
+
};
|
|
21
|
+
const PopoverSize = exports.PopoverSize = {
|
|
22
|
+
Normal: 'normal',
|
|
23
|
+
Large: 'large'
|
|
24
|
+
};
|
|
25
|
+
const PopoverDefault = exports.PopoverDefault = {
|
|
26
|
+
ClassName: null,
|
|
27
|
+
Variant: PopoverVariant.Default,
|
|
28
|
+
Size: PopoverSize.Normal
|
|
29
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { IPopover } from './Popover.type';
|
|
2
|
+
import type { IPopover } from './Popover.type';
|
|
3
3
|
export declare function Popover({ className, variant, size, intro, heading, message, acknowledge, introOnClick, acknowledgeOnClick, }: IPopover): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Popover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAKhC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAE9C,wBAAgB,OAAO,CAAC,EACtB,SAAoC,EACpC,OAAgC,EAChC,IAA0B,EAC1B,KAAK,EACL,OAAO,EACP,OAAO,EACP,WAAW,EACX,YAAY,EACZ,kBAAkB,GACnB,EAAE,QAAQ,GAAG,GAAG,CAAC,OAAO,CA0DxB"}
|