@papillonarts/components 0.49.0 → 0.49.2
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,11 +1,10 @@
|
|
|
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.Popover = Popover;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _boxShadow = _interopRequireDefault(require("@papillonarts/css/utilities/box-shadow.scss"));
|
|
10
9
|
var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
|
|
11
10
|
var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
|
|
@@ -14,47 +13,64 @@ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/ty
|
|
|
14
13
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
14
|
var _box = _interopRequireDefault(require("../Box/box.scss"));
|
|
16
15
|
var _Button = require("../Button");
|
|
17
|
-
var _Popover =
|
|
18
|
-
var _Popover2 = require("./Popover.
|
|
16
|
+
var _Popover = require("./Popover.const");
|
|
17
|
+
var _Popover2 = _interopRequireDefault(require("./Popover.scss"));
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
function Popover(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
acknowledge = _ref.acknowledge,
|
|
32
|
-
introOnClick = _ref.introOnClick,
|
|
33
|
-
acknowledgeOnClick = _ref.acknowledgeOnClick;
|
|
19
|
+
function Popover({
|
|
20
|
+
className = _Popover.PopoverDefault.ClassName,
|
|
21
|
+
variant = _Popover.PopoverDefault.Variant,
|
|
22
|
+
size = _Popover.PopoverDefault.Size,
|
|
23
|
+
intro,
|
|
24
|
+
heading,
|
|
25
|
+
message,
|
|
26
|
+
acknowledge,
|
|
27
|
+
introOnClick,
|
|
28
|
+
acknowledgeOnClick
|
|
29
|
+
}) {
|
|
34
30
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
-
className: (0, _classnames
|
|
36
|
-
|
|
31
|
+
className: (0, _classnames.default)(className, _layout.default['position-relative'], {
|
|
32
|
+
[_typography.default['text-center']]: variant === _Popover.PopoverVariant.Default || variant === _Popover.PopoverVariant.Bottom,
|
|
33
|
+
[(0, _classnames.default)(_typography.default['text-right'], _padding.default['pr-2'])]: variant === _Popover.PopoverVariant.BottomRight
|
|
34
|
+
}),
|
|
35
|
+
children: [variant === _Popover.PopoverVariant.Default && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
37
36
|
variant: _Button.ButtonVariant.Primary,
|
|
38
37
|
text: intro,
|
|
39
38
|
onClick: introOnClick
|
|
40
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
41
40
|
// @ts-ignore
|
|
42
|
-
className: ((0, _classnames
|
|
41
|
+
className: ((0, _classnames.default)(_Popover2.default.Popover, _layout.default['position-relative']), {
|
|
42
|
+
[(0, _classnames.default)(_layout.default['right-0'], _layout.default['left-0'])]: variant === _Popover.PopoverVariant.Default,
|
|
43
|
+
[_padding.default['pl-2']]: variant === _Popover.PopoverVariant.BottomLeft
|
|
44
|
+
}),
|
|
43
45
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
44
|
-
className: (0, _classnames
|
|
46
|
+
className: (0, _classnames.default)(_Popover2.default['Popover-message'], _typography.default['text-left'], _padding.default['p-4'], _box.default.Box, _boxShadow.default['box-shadow-large'], {
|
|
47
|
+
[(0, _classnames.default)(_margin.default['mx-auto'], _margin.default['mt-2'])]: variant === _Popover.PopoverVariant.Default,
|
|
48
|
+
[(0, _classnames.default)(_Popover2.default['Popover-message--bottom'], _margin.default['mx-auto'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.Bottom,
|
|
49
|
+
[(0, _classnames.default)(_Popover2.default['Popover-message--bottom-right'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.BottomRight,
|
|
50
|
+
[(0, _classnames.default)(_Popover2.default['Popover-message--bottom-left'], _margin.default['mb-2'])]: variant === _Popover.PopoverVariant.BottomLeft,
|
|
51
|
+
[_Popover2.default['Popover-message--left']]: variant === _Popover.PopoverVariant.Left,
|
|
52
|
+
[_Popover2.default['Popover-message--left-bottom']]: variant === _Popover.PopoverVariant.LeftBottom,
|
|
53
|
+
[_Popover2.default['Popover-message--left-top']]: variant === _Popover.PopoverVariant.LeftTop,
|
|
54
|
+
[_Popover2.default['Popover-message--right']]: variant === _Popover.PopoverVariant.Right,
|
|
55
|
+
[_Popover2.default['Popover-message--right-bottom']]: variant === _Popover.PopoverVariant.RightBottom,
|
|
56
|
+
[_Popover2.default['Popover-message--right-top']]: variant === _Popover.PopoverVariant.RightTop,
|
|
57
|
+
[_Popover2.default['Popover-message--top-left']]: variant === _Popover.PopoverVariant.TopLeft,
|
|
58
|
+
[_Popover2.default['Popover-message--top-right']]: variant === _Popover.PopoverVariant.TopRight,
|
|
59
|
+
[_Popover2.default['Popover-message--large']]: size === _Popover.PopoverSize.Large
|
|
60
|
+
}),
|
|
45
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
|
|
46
|
-
className: _margin
|
|
62
|
+
className: _margin.default['mb-2'],
|
|
47
63
|
children: heading
|
|
48
64
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
49
65
|
children: message
|
|
50
66
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
51
|
-
className: (0, _classnames
|
|
67
|
+
className: (0, _classnames.default)(_margin.default['mt-2'], _typography.default['text-bold']),
|
|
52
68
|
text: acknowledge,
|
|
53
69
|
variant: _Button.ButtonVariant.Outline,
|
|
54
70
|
onClick: acknowledgeOnClick
|
|
55
71
|
})]
|
|
56
72
|
})
|
|
57
|
-
}), (variant ===
|
|
73
|
+
}), (variant === _Popover.PopoverVariant.Bottom || variant === _Popover.PopoverVariant.BottomRight || variant === _Popover.PopoverVariant.BottomLeft) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.Button, {
|
|
58
74
|
variant: _Button.ButtonVariant.Primary,
|
|
59
75
|
text: intro,
|
|
60
76
|
onClick: introOnClick
|
|
@@ -12,18 +12,15 @@ export interface IPopoverVariant {
|
|
|
12
12
|
TopLeft: string;
|
|
13
13
|
TopRight: string;
|
|
14
14
|
}
|
|
15
|
-
export declare const PopoverVariant: IPopoverVariant;
|
|
16
15
|
export interface IPopoverSize {
|
|
17
16
|
Normal: string;
|
|
18
17
|
Large: string;
|
|
19
18
|
}
|
|
20
|
-
export declare const PopoverSize: IPopoverSize;
|
|
21
19
|
export interface IPopoverDefault {
|
|
22
20
|
ClassName: string;
|
|
23
21
|
Variant: string;
|
|
24
22
|
Size: string;
|
|
25
23
|
}
|
|
26
|
-
export declare const PopoverDefault: IPopoverDefault;
|
|
27
24
|
export interface IPopover {
|
|
28
25
|
className?: string;
|
|
29
26
|
variant?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;
|
|
1
|
+
{"version":3,"file":"Popover.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/Popover.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;CACb;AACD,MAAM,WAAW,QAAQ;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IAC7B,kBAAkB,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;CACpC"}
|
|
@@ -2,28 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.PopoverVariant = exports.PopoverSize = exports.PopoverDefault = void 0;
|
|
7
|
-
var 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
|
-
var PopoverSize = exports.PopoverSize = {
|
|
22
|
-
Normal: 'normal',
|
|
23
|
-
Large: 'large'
|
|
24
|
-
};
|
|
25
|
-
var PopoverDefault = exports.PopoverDefault = {
|
|
26
|
-
ClassName: null,
|
|
27
|
-
Variant: PopoverVariant.Default,
|
|
28
|
-
Size: PopoverSize.Normal
|
|
29
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -5,21 +5,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Popover", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Popover.Popover;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "PopoverSize", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Popover2.PopoverSize;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "PopoverVariant", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _Popover2.PopoverVariant;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
var _Popover = require("./Popover");
|
|
25
|
-
var _Popover2 = require("./Popover.
|
|
25
|
+
var _Popover2 = require("./Popover.const");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Progress.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAEzE,eAAO,MAAM,eAAe,EAAE,gBAI7B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAG7B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ProgressVariant = exports.ProgressDefault = void 0;
|
|
7
|
+
const ProgressVariant = exports.ProgressVariant = {
|
|
8
|
+
Small: 'small',
|
|
9
|
+
Normal: 'normal',
|
|
10
|
+
Large: 'large'
|
|
11
|
+
};
|
|
12
|
+
const ProgressDefault = exports.ProgressDefault = {
|
|
13
|
+
ClassName: null,
|
|
14
|
+
Variant: ProgressVariant.Normal
|
|
15
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Progress.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,wBAAgB,QAAQ,CAAC,EAAE,SAAqC,EAAE,OAAiC,EAAE,UAAU,EAAE,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAazI"}
|
|
@@ -1,29 +1,30 @@
|
|
|
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.Progress = Progress;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _Progress =
|
|
12
|
-
var _Progress2 = require("./Progress.
|
|
10
|
+
var _Progress = require("./Progress.const");
|
|
11
|
+
var _Progress2 = _interopRequireDefault(require("./Progress.scss"));
|
|
13
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function Progress(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
width: "".concat(percentage, "%")
|
|
13
|
+
function Progress({
|
|
14
|
+
className = _Progress.ProgressDefault.ClassName,
|
|
15
|
+
variant = _Progress.ProgressDefault.Variant,
|
|
16
|
+
percentage
|
|
17
|
+
}) {
|
|
18
|
+
const percentageStyle = {
|
|
19
|
+
width: `${percentage}%`
|
|
22
20
|
};
|
|
23
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
24
|
-
className: (0, _classnames
|
|
22
|
+
className: (0, _classnames.default)(className, _Progress2.default.Progress, {
|
|
23
|
+
[_Progress2.default['Progress--large']]: variant === _Progress.ProgressVariant.Large,
|
|
24
|
+
[_Progress2.default['Progress--small']]: variant === _Progress.ProgressVariant.Small === true
|
|
25
|
+
}),
|
|
25
26
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
26
|
-
className: (0, _classnames
|
|
27
|
+
className: (0, _classnames.default)(_Progress2.default['Progress-item'], _colors.default['bg-green']),
|
|
27
28
|
style: percentageStyle
|
|
28
29
|
})
|
|
29
30
|
});
|
|
@@ -3,12 +3,10 @@ export interface IProgressVariant {
|
|
|
3
3
|
Normal: string;
|
|
4
4
|
Large: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const ProgressVariant: IProgressVariant;
|
|
7
6
|
export interface IProgressDefault {
|
|
8
7
|
ClassName: string;
|
|
9
8
|
Variant: string;
|
|
10
9
|
}
|
|
11
|
-
export declare const ProgressDefault: IProgressDefault;
|
|
12
10
|
export interface IProgress {
|
|
13
11
|
className?: string;
|
|
14
12
|
variant?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;
|
|
1
|
+
{"version":3,"file":"Progress.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/Progress.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -2,14 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ProgressVariant = exports.ProgressDefault = void 0;
|
|
7
|
-
var ProgressVariant = exports.ProgressVariant = {
|
|
8
|
-
Small: 'small',
|
|
9
|
-
Normal: 'normal',
|
|
10
|
-
Large: 'large'
|
|
11
|
-
};
|
|
12
|
-
var ProgressDefault = exports.ProgressDefault = {
|
|
13
|
-
ClassName: null,
|
|
14
|
-
Variant: ProgressVariant.Normal
|
|
15
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Progress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Progress", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Progress.Progress;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ProgressVariant", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Progress2.ProgressVariant;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Progress = require("./Progress");
|
|
19
|
-
var _Progress2 = require("./Progress.
|
|
19
|
+
var _Progress2 = require("./Progress.const");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAEjE,eAAO,MAAM,WAAW,EAAE,YAGzB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,cAI3B,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SelectState = exports.SelectDefault = void 0;
|
|
7
|
+
const SelectState = exports.SelectState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
const SelectDefault = exports.SelectDefault = {
|
|
12
|
+
Id: null,
|
|
13
|
+
ClassName: null,
|
|
14
|
+
State: SelectState.Active
|
|
15
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { ISelect } from './Select.type';
|
|
2
|
+
import type { ISelect } from './Select.type';
|
|
3
3
|
export declare function Select({ id, className, selectedText, items, onChange, state, }: ISelect): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EAAuB,OAAO,EAAE,MAAM,eAAe,CAAA;AAEjE,wBAAgB,MAAM,CAAC,EACrB,EAAqB,EACrB,SAAmC,EACnC,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,KAA2B,GAC5B,EAAE,OAAO,GAAG,GAAG,CAAC,OAAO,CA2CvB"}
|
|
@@ -1,61 +1,57 @@
|
|
|
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.Select = Select;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
|
|
10
9
|
var _array = require("@papillonarts/library/array");
|
|
11
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
12
11
|
var _uuid = require("uuid");
|
|
13
|
-
var _Select =
|
|
14
|
-
var _Select2 = require("./Select.
|
|
12
|
+
var _Select = require("./Select.const");
|
|
13
|
+
var _Select2 = _interopRequireDefault(require("./Select.scss"));
|
|
15
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function Select(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var indexItem = indexItems.find(function (item) {
|
|
29
|
-
return item.text === event.target.value;
|
|
30
|
-
});
|
|
31
|
-
var newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
15
|
+
function Select({
|
|
16
|
+
id = _Select.SelectDefault.Id,
|
|
17
|
+
className = _Select.SelectDefault.ClassName,
|
|
18
|
+
selectedText,
|
|
19
|
+
items,
|
|
20
|
+
onChange,
|
|
21
|
+
state = _Select.SelectDefault.State
|
|
22
|
+
}) {
|
|
23
|
+
const indexItems = (0, _array.getIndexItems)(items);
|
|
24
|
+
const handleOnChange = event => {
|
|
25
|
+
const indexItem = indexItems.find(item => item.text === event.target.value);
|
|
26
|
+
const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
32
27
|
onChange({
|
|
33
28
|
selectedText: indexItem.text,
|
|
34
|
-
items: newIndexItems.map(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
42
|
-
}(newIndexItem);
|
|
43
|
-
})
|
|
29
|
+
items: newIndexItems.map(newIndexItem => (({
|
|
30
|
+
text: newIndexItemText,
|
|
31
|
+
isSelected: newIndexItemIsSelected
|
|
32
|
+
}) => ({
|
|
33
|
+
text: newIndexItemText,
|
|
34
|
+
isSelected: newIndexItemIsSelected
|
|
35
|
+
}))(newIndexItem))
|
|
44
36
|
});
|
|
45
37
|
};
|
|
46
38
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
47
|
-
className: (0, _classnames
|
|
39
|
+
className: (0, _classnames.default)(className, _Select2.default.select),
|
|
48
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("select", {
|
|
49
41
|
id: id
|
|
50
42
|
// @ts-ignore
|
|
51
43
|
,
|
|
52
44
|
readOnly: false,
|
|
53
45
|
onChange: handleOnChange,
|
|
54
|
-
className: (0, _classnames
|
|
46
|
+
className: (0, _classnames.default)(_Select2.default['select-menu'], _layout.default['width-full'], {
|
|
47
|
+
[_Select2.default['select-inactive']]: state === _Select.SelectState.Inactive
|
|
48
|
+
}),
|
|
55
49
|
value: selectedText,
|
|
56
|
-
children: items && indexItems.map(
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
children: items && indexItems.map(indexItem => {
|
|
51
|
+
const {
|
|
52
|
+
text,
|
|
53
|
+
isSelected
|
|
54
|
+
} = indexItem;
|
|
59
55
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
60
56
|
value: text,
|
|
61
57
|
selected: isSelected,
|
|
@@ -3,13 +3,11 @@ export interface ISelectState {
|
|
|
3
3
|
Active: string;
|
|
4
4
|
Inactive: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const SelectState: ISelectState;
|
|
7
6
|
export interface ISelectDefault {
|
|
8
7
|
Id: string;
|
|
9
8
|
ClassName: string;
|
|
10
9
|
State: string;
|
|
11
10
|
}
|
|
12
|
-
export declare const SelectDefault: ISelectDefault;
|
|
13
11
|
export interface IItem {
|
|
14
12
|
text: string;
|
|
15
13
|
isSelected: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;
|
|
1
|
+
{"version":3,"file":"Select.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/Select.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;CACpB;AACD,MAAM,WAAW,YAAa,SAAQ,KAAK,EAAE,QAAQ;CAAG;AACxD,MAAM,WAAW,OAAO;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,QAAQ,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -2,14 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SelectState = exports.SelectDefault = void 0;
|
|
7
|
-
var SelectState = exports.SelectState = {
|
|
8
|
-
Active: 'active',
|
|
9
|
-
Inactive: 'inactive'
|
|
10
|
-
};
|
|
11
|
-
var SelectDefault = exports.SelectDefault = {
|
|
12
|
-
Id: null,
|
|
13
|
-
ClassName: null,
|
|
14
|
-
State: SelectState.Active
|
|
15
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Select", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Select.Select;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "SelectState", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Select2.SelectState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Select = require("./Select");
|
|
19
|
-
var _Select2 = require("./Select.
|
|
19
|
+
var _Select2 = require("./Select.const");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectMenu.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,eAAO,MAAM,iBAAiB,EAAE,kBAG/B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { JSX } from 'react';
|
|
2
|
-
import { ISelectMenu } from './SelectMenu.type';
|
|
2
|
+
import type { ISelectMenu } from './SelectMenu.type';
|
|
3
3
|
export declare function SelectMenu({ className, summary, icon, title, ariaAttr, items, onClick, }: ISelectMenu): JSX.Element;
|
|
4
4
|
//# sourceMappingURL=SelectMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../src/Legacy/SelectMenu/SelectMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAMhC,OAAO,KAAK,EAAuB,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEzE,wBAAgB,UAAU,CAAC,EACzB,SAAuC,EACvC,OAAO,EACP,IAAI,EACJ,KAA+B,EAC/B,QAAQ,EACR,KAAK,EACL,OAAO,GACR,EAAE,WAAW,GAAG,GAAG,CAAC,OAAO,CAgD3B"}
|