@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,73 +1,77 @@
|
|
|
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.Breadcrumb = Breadcrumb;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/typography.scss"));
|
|
10
9
|
var _array = require("@papillonarts/library/array");
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
11
|
var _uuid = require("uuid");
|
|
13
|
-
var _Breadcrumb =
|
|
14
|
-
var _Breadcrumb2 = require("./Breadcrumb.
|
|
12
|
+
var _Breadcrumb = require("./Breadcrumb.const");
|
|
13
|
+
var _Breadcrumb2 = _interopRequireDefault(require("./Breadcrumb.scss"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
15
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
|
16
|
+
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
17
|
+
|
|
18
|
+
function Breadcrumb({
|
|
19
|
+
className = _Breadcrumb.BreadcrumbDefault.ClassName,
|
|
20
|
+
ariaAttr,
|
|
21
|
+
items,
|
|
22
|
+
onClick,
|
|
23
|
+
state = _Breadcrumb.BreadcrumbDefault.State
|
|
24
|
+
}) {
|
|
25
|
+
const indexItems = (0, _array.getIndexItems)(items);
|
|
26
|
+
const {
|
|
27
|
+
label,
|
|
28
|
+
current
|
|
29
|
+
} = ariaAttr;
|
|
29
30
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("nav", {
|
|
30
|
-
className: (0, _classnames
|
|
31
|
+
className: (0, _classnames.default)(className, {
|
|
32
|
+
[_Breadcrumb2.default['breadcrumb-inactive']]: state === _Breadcrumb.BreadcrumbState.Inactive
|
|
33
|
+
}),
|
|
31
34
|
"aria-label": label,
|
|
32
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("ol", {
|
|
33
|
-
children: indexItems.map(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
children: indexItems.map(indexItem => {
|
|
37
|
+
const {
|
|
38
|
+
href,
|
|
39
|
+
text,
|
|
40
|
+
isSelected
|
|
41
|
+
} = indexItem;
|
|
42
|
+
const itemOtherProps = isSelected ? {
|
|
43
|
+
...{
|
|
44
|
+
'aria-current': current
|
|
45
|
+
}
|
|
46
|
+
} : null;
|
|
47
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
48
|
+
onClick: e => {
|
|
42
49
|
e.preventDefault();
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
51
|
+
onClick({
|
|
45
52
|
active: text,
|
|
46
|
-
ariaAttr
|
|
47
|
-
items: newIndexItems.map(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
}(newIndexItem);
|
|
58
|
-
})
|
|
53
|
+
ariaAttr,
|
|
54
|
+
items: newIndexItems.map(newIndexItem => (({
|
|
55
|
+
href,
|
|
56
|
+
text,
|
|
57
|
+
isSelected
|
|
58
|
+
}) => ({
|
|
59
|
+
href,
|
|
60
|
+
text,
|
|
61
|
+
isSelected
|
|
62
|
+
}))(newIndexItem))
|
|
59
63
|
});
|
|
60
64
|
},
|
|
61
|
-
className: !isSelected ? (0, _classnames
|
|
65
|
+
className: !isSelected ? (0, _classnames.default)(_Breadcrumb2.default['breadcrumb-item']) : (0, _classnames.default)(_Breadcrumb2.default['breadcrumb-item'], _Breadcrumb2.default['breadcrumb-item-selected'], _typography.default['text-gray'])
|
|
62
66
|
// @ts-ignore
|
|
63
67
|
,
|
|
64
|
-
href: href
|
|
65
|
-
|
|
68
|
+
href: href,
|
|
69
|
+
...itemOtherProps,
|
|
66
70
|
children: isSelected ? text : /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
67
71
|
href: href,
|
|
68
72
|
children: text
|
|
69
73
|
})
|
|
70
|
-
}
|
|
74
|
+
}, (0, _uuid.v1)());
|
|
71
75
|
})
|
|
72
76
|
})
|
|
73
77
|
});
|
|
@@ -3,12 +3,10 @@ export interface IBreadcrumbState {
|
|
|
3
3
|
Active: string;
|
|
4
4
|
Inactive: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const BreadcrumbState: IBreadcrumbState;
|
|
7
6
|
export interface IBreadcrumbDefault {
|
|
8
7
|
ClassName: string | null;
|
|
9
8
|
State: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const BreadcrumbDefault: IBreadcrumbDefault;
|
|
12
10
|
export interface IAriaAttr {
|
|
13
11
|
label: string;
|
|
14
12
|
current: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumb.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;
|
|
1
|
+
{"version":3,"file":"Breadcrumb.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/Breadcrumb.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB;AACD,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AACxD,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,KAAK,EAAE,CAAA;CACf;AACD,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,uBAAuB,KAAK,IAAI,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -2,13 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BreadcrumbState = exports.BreadcrumbDefault = void 0;
|
|
7
|
-
var BreadcrumbState = exports.BreadcrumbState = {
|
|
8
|
-
Active: 'active',
|
|
9
|
-
Inactive: 'inactive'
|
|
10
|
-
};
|
|
11
|
-
var BreadcrumbDefault = exports.BreadcrumbDefault = {
|
|
12
|
-
ClassName: null,
|
|
13
|
-
State: BreadcrumbState.Active
|
|
14
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Breadcrumb", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Breadcrumb.Breadcrumb;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "BreadcrumbState", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Breadcrumb2.BreadcrumbState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Breadcrumb = require("./Breadcrumb");
|
|
19
|
-
var _Breadcrumb2 = require("./Breadcrumb.
|
|
19
|
+
var _Breadcrumb2 = require("./Breadcrumb.const");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { IButtonDefault, IButtonElement, IButtonInputType, IButtonSize, IButtonState, IButtonVariant, IIconAlignment } from './Button.type';
|
|
2
|
+
export declare const ButtonElement: IButtonElement;
|
|
3
|
+
export declare const ButtonSize: IButtonSize;
|
|
4
|
+
export declare const ButtonState: IButtonState;
|
|
5
|
+
export declare const IconAlignment: IIconAlignment;
|
|
6
|
+
export declare const ButtonInputType: IButtonInputType;
|
|
7
|
+
export declare const ButtonVariant: IButtonVariant;
|
|
8
|
+
export declare const ButtonDefault: IButtonDefault;
|
|
9
|
+
//# sourceMappingURL=Button.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,cAAc,EACf,MAAM,eAAe,CAAA;AAEtB,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,WAIxB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAO3B,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAY3B,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.IconAlignment = exports.ButtonVariant = exports.ButtonState = exports.ButtonSize = exports.ButtonInputType = exports.ButtonElement = exports.ButtonDefault = void 0;
|
|
7
|
+
const ButtonElement = exports.ButtonElement = {
|
|
8
|
+
Button: 'button',
|
|
9
|
+
A: 'a'
|
|
10
|
+
};
|
|
11
|
+
const ButtonSize = exports.ButtonSize = {
|
|
12
|
+
Small: 'small',
|
|
13
|
+
Normal: 'normal',
|
|
14
|
+
Large: 'large'
|
|
15
|
+
};
|
|
16
|
+
const ButtonState = exports.ButtonState = {
|
|
17
|
+
Active: 'active',
|
|
18
|
+
Inactive: 'inactive'
|
|
19
|
+
};
|
|
20
|
+
const IconAlignment = exports.IconAlignment = {
|
|
21
|
+
Left: 'left',
|
|
22
|
+
Right: 'Right'
|
|
23
|
+
};
|
|
24
|
+
const ButtonInputType = exports.ButtonInputType = {
|
|
25
|
+
File: 'file',
|
|
26
|
+
Submit: 'submit'
|
|
27
|
+
};
|
|
28
|
+
const ButtonVariant = exports.ButtonVariant = {
|
|
29
|
+
Default: 'default',
|
|
30
|
+
Primary: 'primary',
|
|
31
|
+
Danger: 'danger',
|
|
32
|
+
Outline: 'outline',
|
|
33
|
+
Blue: 'blue',
|
|
34
|
+
Orange: 'orange'
|
|
35
|
+
};
|
|
36
|
+
const ButtonDefault = exports.ButtonDefault = {
|
|
37
|
+
DataTestId: null,
|
|
38
|
+
Id: null,
|
|
39
|
+
ClassName: null,
|
|
40
|
+
Element: ButtonElement.Button,
|
|
41
|
+
Href: null,
|
|
42
|
+
Variant: ButtonVariant.Default,
|
|
43
|
+
Size: ButtonSize.Normal,
|
|
44
|
+
State: ButtonState.Active,
|
|
45
|
+
Icon: null,
|
|
46
|
+
InputType: null,
|
|
47
|
+
AutoFocus: false
|
|
48
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { IButton } from './Button.type';
|
|
2
|
+
import type { IButton } from './Button.type';
|
|
3
3
|
export declare function Button({ dataTestId, id, className, element, href, text, variant, size, state, icon, onClick, inputType, autoFocus, }: IButton): JSX.Element | null;
|
|
4
4
|
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAE5C,wBAAgB,MAAM,CAAC,EACrB,UAAqC,EACrC,EAAqB,EACrB,SAAmC,EACnC,OAA+B,EAC/B,IAAyB,EACzB,IAAI,EACJ,OAA+B,EAC/B,IAAyB,EACzB,KAA2B,EAC3B,IAAyB,EACzB,OAAO,EACP,SAAmC,EACnC,SAAmC,GACpC,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CA8D9B"}
|
|
@@ -1,84 +1,80 @@
|
|
|
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.Button = Button;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _react = require("react");
|
|
12
11
|
var _Icon = require("../Icon");
|
|
13
|
-
var _Button =
|
|
14
|
-
var _Button2 = require("./Button.
|
|
12
|
+
var _Button = require("./Button.const");
|
|
13
|
+
var _Button2 = _interopRequireDefault(require("./Button.scss"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
inputType = _ref$inputType === void 0 ? _Button2.ButtonDefault.InputType : _ref$inputType,
|
|
41
|
-
_ref$autoFocus = _ref.autoFocus,
|
|
42
|
-
autoFocus = _ref$autoFocus === void 0 ? _Button2.ButtonDefault.AutoFocus : _ref$autoFocus;
|
|
43
|
-
var stateProps = state === _Button2.ButtonState.Inactive ? _objectSpread({}, {
|
|
44
|
-
disabled: true,
|
|
45
|
-
'aria-disabled': true
|
|
46
|
-
}) : null;
|
|
47
|
-
var fileInputRef = (0, _react.useRef)(null);
|
|
48
|
-
if (element === _Button2.ButtonElement.Button) {
|
|
49
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", _objectSpread(_objectSpread({
|
|
15
|
+
function Button({
|
|
16
|
+
dataTestId = _Button.ButtonDefault.DataTestId,
|
|
17
|
+
id = _Button.ButtonDefault.Id,
|
|
18
|
+
className = _Button.ButtonDefault.ClassName,
|
|
19
|
+
element = _Button.ButtonDefault.Element,
|
|
20
|
+
href = _Button.ButtonDefault.Href,
|
|
21
|
+
text,
|
|
22
|
+
variant = _Button.ButtonDefault.Variant,
|
|
23
|
+
size = _Button.ButtonDefault.Size,
|
|
24
|
+
state = _Button.ButtonDefault.State,
|
|
25
|
+
icon = _Button.ButtonDefault.Icon,
|
|
26
|
+
onClick,
|
|
27
|
+
inputType = _Button.ButtonDefault.InputType,
|
|
28
|
+
autoFocus = _Button.ButtonDefault.AutoFocus
|
|
29
|
+
}) {
|
|
30
|
+
const stateProps = state === _Button.ButtonState.Inactive ? {
|
|
31
|
+
...{
|
|
32
|
+
disabled: true,
|
|
33
|
+
'aria-disabled': true
|
|
34
|
+
}
|
|
35
|
+
} : null;
|
|
36
|
+
const fileInputRef = (0, _react.useRef)(null);
|
|
37
|
+
if (element === _Button.ButtonElement.Button) {
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("button", {
|
|
50
39
|
"data-testid": dataTestId,
|
|
51
40
|
id: id,
|
|
52
|
-
className: (0, _classnames
|
|
41
|
+
className: (0, _classnames.default)(className, _Button2.default.btn, {
|
|
42
|
+
[_Button2.default['btn-sm']]: size === _Button.ButtonSize.Small,
|
|
43
|
+
[_Button2.default['btn-large']]: size === _Button.ButtonSize.Large,
|
|
44
|
+
[_Button2.default['btn-primary']]: variant === _Button.ButtonVariant.Primary,
|
|
45
|
+
[_Button2.default['btn-danger']]: variant === _Button.ButtonVariant.Danger,
|
|
46
|
+
[_Button2.default['btn-outline']]: variant === _Button.ButtonVariant.Outline,
|
|
47
|
+
[_Button2.default['btn-blue']]: variant === _Button.ButtonVariant.Blue,
|
|
48
|
+
[_Button2.default['btn-orange']]: variant === _Button.ButtonVariant.Orange,
|
|
49
|
+
[_Button2.default['button-inactive']]: state === _Button.ButtonState.Inactive
|
|
50
|
+
}),
|
|
53
51
|
type: "button",
|
|
54
52
|
autoFocus: autoFocus // eslint-disable-line
|
|
55
53
|
,
|
|
56
|
-
onClick:
|
|
57
|
-
if (inputType ===
|
|
58
|
-
|
|
59
|
-
(_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 || _fileInputRef$current.click();
|
|
54
|
+
onClick: () => {
|
|
55
|
+
if (inputType === _Button.ButtonInputType.File) {
|
|
56
|
+
fileInputRef.current?.click();
|
|
60
57
|
}
|
|
61
|
-
if (inputType ===
|
|
62
|
-
|
|
58
|
+
if (inputType === _Button.ButtonInputType.Submit) {
|
|
59
|
+
onClick?.();
|
|
63
60
|
}
|
|
64
61
|
if (!inputType) {
|
|
65
|
-
|
|
62
|
+
onClick?.();
|
|
66
63
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
children: [
|
|
70
|
-
className: _margin
|
|
64
|
+
},
|
|
65
|
+
...stateProps,
|
|
66
|
+
children: [icon?.alignment === _Button.IconAlignment.Left && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
67
|
+
className: _margin.default['mr-2'],
|
|
71
68
|
icon: icon.name,
|
|
72
69
|
size: _Icon.IconSize.Small
|
|
73
|
-
}), text,
|
|
74
|
-
className: _margin
|
|
70
|
+
}), text, icon?.alignment === _Button.IconAlignment.Right && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
71
|
+
className: _margin.default['ml-2'],
|
|
75
72
|
icon: icon.name,
|
|
76
73
|
size: _Icon.IconSize.Small
|
|
77
|
-
}), inputType && inputType ===
|
|
78
|
-
onChange:
|
|
79
|
-
var _fileInputRef$current2, _fileInputRef$current3;
|
|
74
|
+
}), inputType && inputType === _Button.ButtonInputType.File && /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
75
|
+
onChange: () => {
|
|
80
76
|
;
|
|
81
|
-
|
|
77
|
+
onClick?.(fileInputRef.current?.files ?? null);
|
|
82
78
|
},
|
|
83
79
|
ref: fileInputRef,
|
|
84
80
|
type: "file",
|
|
@@ -89,19 +85,17 @@ function Button(_ref) {
|
|
|
89
85
|
display: 'none'
|
|
90
86
|
}
|
|
91
87
|
})]
|
|
92
|
-
})
|
|
88
|
+
});
|
|
93
89
|
}
|
|
94
|
-
if (element ===
|
|
95
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("a",
|
|
96
|
-
className: (0, _classnames
|
|
97
|
-
href: href
|
|
90
|
+
if (element === _Button.ButtonElement.A) {
|
|
91
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
92
|
+
className: (0, _classnames.default)(className, _Button2.default.btn),
|
|
93
|
+
href: href ?? undefined,
|
|
98
94
|
role: "button",
|
|
99
|
-
onClick:
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
}, stateProps), {}, {
|
|
95
|
+
onClick: () => onClick?.(),
|
|
96
|
+
...stateProps,
|
|
103
97
|
children: text
|
|
104
|
-
})
|
|
98
|
+
});
|
|
105
99
|
}
|
|
106
100
|
return null;
|
|
107
101
|
}
|
|
@@ -2,28 +2,23 @@ export interface IButtonElement {
|
|
|
2
2
|
Button: string;
|
|
3
3
|
A: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const ButtonElement: IButtonElement;
|
|
6
5
|
export interface IButtonSize {
|
|
7
6
|
Small: string;
|
|
8
7
|
Normal: string;
|
|
9
8
|
Large: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const ButtonSize: IButtonSize;
|
|
12
10
|
export interface IButtonState {
|
|
13
11
|
Active: string;
|
|
14
12
|
Inactive: string;
|
|
15
13
|
}
|
|
16
|
-
export declare const ButtonState: IButtonState;
|
|
17
14
|
export interface IIconAlignment {
|
|
18
15
|
Left: string;
|
|
19
16
|
Right: string;
|
|
20
17
|
}
|
|
21
|
-
export declare const IconAlignment: IIconAlignment;
|
|
22
18
|
export interface IButtonInputType {
|
|
23
19
|
File: string;
|
|
24
20
|
Submit: string;
|
|
25
21
|
}
|
|
26
|
-
export declare const ButtonInputType: IButtonInputType;
|
|
27
22
|
export interface IButtonVariant {
|
|
28
23
|
Default: string;
|
|
29
24
|
Primary: string;
|
|
@@ -32,7 +27,6 @@ export interface IButtonVariant {
|
|
|
32
27
|
Blue: string;
|
|
33
28
|
Orange: string;
|
|
34
29
|
}
|
|
35
|
-
export declare const ButtonVariant: IButtonVariant;
|
|
36
30
|
export interface IButtonDefault {
|
|
37
31
|
DataTestId: string | null;
|
|
38
32
|
Id: string | null;
|
|
@@ -46,7 +40,6 @@ export interface IButtonDefault {
|
|
|
46
40
|
InputType: string | null;
|
|
47
41
|
AutoFocus: boolean;
|
|
48
42
|
}
|
|
49
|
-
export declare const ButtonDefault: IButtonDefault;
|
|
50
43
|
export interface IIcon {
|
|
51
44
|
name?: string;
|
|
52
45
|
alignment?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,EAAE,MAAM,CAAA;CACV;
|
|
1
|
+
{"version":3,"file":"Button.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/Button.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,CAAC,EAAE,MAAM,CAAA;CACV;AACD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AACD,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACf;AACD,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,EAAE,EAAE,MAAM,GAAG,IAAI,CAAA;IACjB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,KAAK,GAAG,IAAI,CAAA;IAClB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,OAAO,CAAA;CACnB;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AACD,MAAM,WAAW,OAAO;IACtB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,CAAA;IACzF,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB"}
|
|
@@ -2,47 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.IconAlignment = exports.ButtonVariant = exports.ButtonState = exports.ButtonSize = exports.ButtonInputType = exports.ButtonElement = exports.ButtonDefault = void 0;
|
|
7
|
-
var ButtonElement = exports.ButtonElement = {
|
|
8
|
-
Button: 'button',
|
|
9
|
-
A: 'a'
|
|
10
|
-
};
|
|
11
|
-
var ButtonSize = exports.ButtonSize = {
|
|
12
|
-
Small: 'small',
|
|
13
|
-
Normal: 'normal',
|
|
14
|
-
Large: 'large'
|
|
15
|
-
};
|
|
16
|
-
var ButtonState = exports.ButtonState = {
|
|
17
|
-
Active: 'active',
|
|
18
|
-
Inactive: 'inactive'
|
|
19
|
-
};
|
|
20
|
-
var IconAlignment = exports.IconAlignment = {
|
|
21
|
-
Left: 'left',
|
|
22
|
-
Right: 'Right'
|
|
23
|
-
};
|
|
24
|
-
var ButtonInputType = exports.ButtonInputType = {
|
|
25
|
-
File: 'file',
|
|
26
|
-
Submit: 'submit'
|
|
27
|
-
};
|
|
28
|
-
var ButtonVariant = exports.ButtonVariant = {
|
|
29
|
-
Default: 'default',
|
|
30
|
-
Primary: 'primary',
|
|
31
|
-
Danger: 'danger',
|
|
32
|
-
Outline: 'outline',
|
|
33
|
-
Blue: 'blue',
|
|
34
|
-
Orange: 'orange'
|
|
35
|
-
};
|
|
36
|
-
var ButtonDefault = exports.ButtonDefault = {
|
|
37
|
-
DataTestId: null,
|
|
38
|
-
Id: null,
|
|
39
|
-
ClassName: null,
|
|
40
|
-
Element: ButtonElement.Button,
|
|
41
|
-
Href: null,
|
|
42
|
-
Variant: ButtonVariant.Default,
|
|
43
|
-
Size: ButtonSize.Normal,
|
|
44
|
-
State: ButtonState.Active,
|
|
45
|
-
Icon: null,
|
|
46
|
-
InputType: null,
|
|
47
|
-
AutoFocus: false
|
|
48
|
-
};
|
|
5
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Button } from './Button';
|
|
2
|
-
export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.
|
|
2
|
+
export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.const';
|
|
3
3
|
export type { IButton, IButtonDefault, IIcon } from './Button.type';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACtH,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -5,45 +5,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Button", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Button.Button;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ButtonElement", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Button2.ButtonElement;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "ButtonInputType", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _Button2.ButtonInputType;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ButtonSize", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
26
|
+
get: function () {
|
|
27
27
|
return _Button2.ButtonSize;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "ButtonState", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
32
|
+
get: function () {
|
|
33
33
|
return _Button2.ButtonState;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ButtonVariant", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _Button2.ButtonVariant;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "IconAlignment", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _Button2.IconAlignment;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
var _Button = require("./Button");
|
|
49
|
-
var _Button2 = require("./Button.
|
|
49
|
+
var _Button2 = require("./Button.const");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEvE,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAO7B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DropdownState = exports.DropdownDefault = void 0;
|
|
7
|
+
const DropdownState = exports.DropdownState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
const DropdownDefault = exports.DropdownDefault = {
|
|
12
|
+
ClassName: null,
|
|
13
|
+
AriaAttr: {
|
|
14
|
+
hasPopup: false,
|
|
15
|
+
current: 'page'
|
|
16
|
+
},
|
|
17
|
+
State: DropdownState.Active
|
|
18
|
+
};
|