@papillonarts/components 0.48.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 +3 -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 +7 -8
- package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
- package/build/Legacy/Alert/Alert.type.js +1 -24
- package/build/Legacy/Alert/__tests__/Alert.doc.md +2 -2
- package/build/Legacy/Alert/index.d.ts +2 -2
- 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 +3 -2
- 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 +2 -4
- package/build/Legacy/Blankslate/Blankslate.type.d.ts.map +1 -1
- package/build/Legacy/Blankslate/Blankslate.type.js +1 -14
- package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +1 -1
- 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 +3 -2
- 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 +9 -6
- package/build/Legacy/Breadcrumb/Breadcrumb.type.d.ts.map +1 -1
- package/build/Legacy/Breadcrumb/Breadcrumb.type.js +1 -10
- package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +2 -2
- 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 +3 -2
- package/build/Legacy/Button/Button.d.ts.map +1 -1
- package/build/Legacy/Button/Button.js +84 -94
- package/build/Legacy/Button/Button.type.d.ts +12 -19
- package/build/Legacy/Button/Button.type.d.ts.map +1 -1
- package/build/Legacy/Button/Button.type.js +1 -44
- package/build/Legacy/Button/__tests__/Button.doc.md +6 -6
- package/build/Legacy/Button/index.d.ts +2 -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 +3 -2
- package/build/Legacy/Dropdown/Dropdown.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.js +49 -50
- package/build/Legacy/Dropdown/Dropdown.type.d.ts +10 -7
- package/build/Legacy/Dropdown/Dropdown.type.d.ts.map +1 -1
- package/build/Legacy/Dropdown/Dropdown.type.js +1 -14
- package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +1 -1
- 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 +7 -8
- package/build/Legacy/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.js +32 -48
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts +5 -1
- package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
- package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +5 -1
- package/build/Legacy/ErrorBoundary/index.d.ts +1 -0
- package/build/Legacy/ErrorBoundary/index.d.ts.map +1 -1
- package/build/Legacy/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 +3 -2
- 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 +2 -4
- 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/__tests__/Checkbox.doc.md +1 -1
- 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 +3 -2
- 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 +5 -7
- 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/__tests__/Input.doc.md +4 -4
- 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 +3 -2
- 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 +2 -4
- 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/__tests__/Radio.doc.md +1 -1
- 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 +3 -2
- 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 +7 -7
- 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/__tests__/DisplayTable.doc.md +3 -3
- 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 +3 -2
- 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 +16 -11
- 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/__tests__/FlexGrid.doc.md +3 -3
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- package/build/Legacy/Markdown/Markdown.d.ts.map +1 -1
- package/build/Legacy/Markdown/Markdown.js +22 -14
- 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 +3 -2
- 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 +2 -2
- 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 +3 -2
- 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 +6 -7
- 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/__tests__/TabNav.doc.md +2 -2
- 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 +3 -2
- 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 +4 -6
- 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/__tests__/UnderlineNav.doc.md +1 -1
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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 +3 -2
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.d.ts.map +1 -1
- package/build/Legacy/SyntaxHighlighter/SyntaxHighlighter.js +12 -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 +3 -2
- 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 +3 -2
- 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 +3 -2
- 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/Legacy/type.d.ts +25 -2
- package/build/Legacy/type.d.ts.map +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 +5 -5
- package/build/Modern/Link/Link.d.ts.map +1 -1
- package/build/Modern/Link/Link.js +21 -25
- package/build/Modern/Link/index.js +1 -1
- package/build/Modern/Pagination/Pagination.d.ts +6 -6
- package/build/Modern/Pagination/Pagination.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.js +69 -82
- package/build/Modern/Pagination/Pagination.model.d.ts +3 -2
- package/build/Modern/Pagination/Pagination.model.d.ts.map +1 -1
- package/build/Modern/Pagination/Pagination.model.js +31 -34
- package/build/Modern/Pagination/__tests__/Pagination.doc.md +2 -2
- package/build/Modern/Pagination/index.js +1 -1
- package/build/Modern/hooks/index.js +2 -2
- package/build/Modern/hooks/useMedia.d.ts +3 -3
- package/build/Modern/hooks/useMedia.d.ts.map +1 -1
- package/build/Modern/hooks/useMedia.js +30 -41
- package/build/Modern/hooks/useRefObjectAsForwardedRef.js +1 -3
- package/build/Modern/hooks/useResponsiveValue.js +6 -10
- package/build/Modern/index.d.ts +2 -2
- package/build/Modern/index.js +1 -1
- package/build/Modern/type.d.ts +1 -0
- package/build/Modern/type.d.ts.map +1 -1
- package/build/Modern/utils/environment.js +1 -2
- package/build/Modern/utils/hasInteractiveNodes.js +11 -15
- package/build/Modern/utils/modern-polymorphic.d.ts +2 -2
- package/build/Modern/utils/modern-polymorphic.d.ts.map +1 -1
- package/build/Modern/utils/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.d.ts +2 -1
- package/build/Modern/utils/testing.d.ts.map +1 -1
- package/build/Modern/utils/testing.js +2 -2
- package/build/Modern/utils/types/ComponentProps.d.ts +2 -1
- package/build/Modern/utils/types/ComponentProps.d.ts.map +1 -1
- package/build/Modern/utils/types/Slots.d.ts +2 -1
- package/build/Modern/utils/types/Slots.d.ts.map +1 -1
- package/build/Modern/utils/types/index.js +3 -3
- package/build/Modern/utils/warning.js +4 -7
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAIhC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAE1C,wBAAgB,KAAK,CAAC,EACpB,SAAkC,EAClC,OAA8B,EAC9B,IAAI,EACJ,aAA0C,EAC1C,OAA8B,GAC/B,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAyBtB"}
|
|
@@ -1,48 +1,48 @@
|
|
|
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.Toast = Toast;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _padding = _interopRequireDefault(require("@papillonarts/css/utilities/padding.scss"));
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
10
|
var _Icon = require("../Icon");
|
|
12
|
-
var _Toast =
|
|
13
|
-
var _Toast2 = require("./Toast.
|
|
11
|
+
var _Toast = require("./Toast.const");
|
|
12
|
+
var _Toast2 = _interopRequireDefault(require("./Toast.scss"));
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function Toast(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
isDismissable = _ref$isDismissable === void 0 ? _Toast2.ToastDefault.IsDismissable : _ref$isDismissable,
|
|
23
|
-
_ref$onClick = _ref.onClick,
|
|
24
|
-
onClick = _ref$onClick === void 0 ? _Toast2.ToastDefault.OnClick : _ref$onClick;
|
|
14
|
+
function Toast({
|
|
15
|
+
className = _Toast.ToastDefault.ClassName,
|
|
16
|
+
variant = _Toast.ToastDefault.Variant,
|
|
17
|
+
text,
|
|
18
|
+
isDismissable = _Toast.ToastDefault.IsDismissable,
|
|
19
|
+
onClick = _Toast.ToastDefault.OnClick
|
|
20
|
+
}) {
|
|
25
21
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
26
|
-
className: (0, _classnames
|
|
22
|
+
className: (0, _classnames.default)(className, _padding.default['p-1']),
|
|
27
23
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
28
|
-
className: (0, _classnames
|
|
24
|
+
className: (0, _classnames.default)(_Toast2.default.Toast, {
|
|
25
|
+
[_Toast2.default['Toast--success']]: variant === _Toast.ToastVariant.Success,
|
|
26
|
+
[_Toast2.default['Toast--warning']]: variant === _Toast.ToastVariant.Warning,
|
|
27
|
+
[_Toast2.default['Toast--error']]: variant === _Toast.ToastVariant.Error
|
|
28
|
+
}),
|
|
29
29
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
30
|
-
className:
|
|
31
|
-
children: [variant ===
|
|
30
|
+
className: _Toast2.default['Toast-icon'],
|
|
31
|
+
children: [variant === _Toast.ToastVariant.Info && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
32
32
|
icon: _Icon.IconName.Info16
|
|
33
|
-
}), variant ===
|
|
33
|
+
}), variant === _Toast.ToastVariant.Success && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
34
34
|
icon: _Icon.IconName.Check16
|
|
35
|
-
}), variant ===
|
|
35
|
+
}), variant === _Toast.ToastVariant.Warning && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
36
36
|
icon: _Icon.IconName.Alert16
|
|
37
|
-
}), variant ===
|
|
37
|
+
}), variant === _Toast.ToastVariant.Error && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
38
38
|
icon: _Icon.IconName.Stop16
|
|
39
39
|
})]
|
|
40
40
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
41
|
-
className:
|
|
41
|
+
className: _Toast2.default['Toast-content'],
|
|
42
42
|
children: text
|
|
43
43
|
}), isDismissable && /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
44
44
|
type: "button",
|
|
45
|
-
className:
|
|
45
|
+
className: _Toast2.default['Toast-dismissButton'],
|
|
46
46
|
onClick: onClick,
|
|
47
47
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Icon.Icon, {
|
|
48
48
|
icon: _Icon.IconName.X16,
|
|
@@ -4,14 +4,12 @@ export interface IToastVariant {
|
|
|
4
4
|
Warning: string;
|
|
5
5
|
Error: string;
|
|
6
6
|
}
|
|
7
|
-
export declare const ToastVariant: IToastVariant;
|
|
8
7
|
export interface IToastDefault {
|
|
9
8
|
ClassName: string;
|
|
10
9
|
Variant: string;
|
|
11
10
|
IsDismissable: boolean;
|
|
12
11
|
OnClick: () => void;
|
|
13
12
|
}
|
|
14
|
-
export declare const ToastDefault: IToastDefault;
|
|
15
13
|
export interface IToast {
|
|
16
14
|
className?: string;
|
|
17
15
|
variant?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;
|
|
1
|
+
{"version":3,"file":"Toast.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/Toast.type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,EAAE,OAAO,CAAA;IACtB,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB;AACD,MAAM,WAAW,MAAM;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAA;CAC1B"}
|
|
@@ -2,17 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ToastVariant = exports.ToastDefault = void 0;
|
|
7
|
-
var ToastVariant = exports.ToastVariant = {
|
|
8
|
-
Info: 'info',
|
|
9
|
-
Success: 'success',
|
|
10
|
-
Warning: 'warning',
|
|
11
|
-
Error: 'error'
|
|
12
|
-
};
|
|
13
|
-
var ToastDefault = exports.ToastDefault = {
|
|
14
|
-
ClassName: null,
|
|
15
|
-
Variant: ToastVariant.Info,
|
|
16
|
-
IsDismissable: false,
|
|
17
|
-
OnClick: function OnClick() {}
|
|
18
|
-
};
|
|
5
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Toast/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Toast", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Toast.Toast;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ToastVariant", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Toast2.ToastVariant;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Toast = require("./Toast");
|
|
19
|
-
var _Toast2 = require("./Toast.
|
|
19
|
+
var _Toast2 = require("./Toast.const");
|
package/build/Legacy/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var _SelectMenu = require("./SelectMenu");
|
|
|
26
26
|
var _Subhead = require("./Subhead");
|
|
27
27
|
var _SyntaxHighlighter = require("./SyntaxHighlighter");
|
|
28
28
|
var _Toast = require("./Toast");
|
|
29
|
-
|
|
29
|
+
const Legacy = exports.Legacy = {
|
|
30
30
|
Alert: {
|
|
31
31
|
Alert: _Alert.Alert,
|
|
32
32
|
AlertVariant: _Alert.AlertVariant
|
package/build/Legacy/type.d.ts
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
export type { IAlertConsent } from './Alert';
|
|
2
|
-
export type {
|
|
1
|
+
export type { IAlert, IAlertConsent } from './Alert';
|
|
2
|
+
export type { IButton } from './Button';
|
|
3
|
+
export type { IBlankslate } from './Blankslate/Blankslate.type';
|
|
4
|
+
export type { IBreadcrumb } from './Breadcrumb/Breadcrumb.type';
|
|
5
|
+
export type { ICheckbox } from './Form/Checkbox/Checkbox.type';
|
|
6
|
+
export type { IDropdown } from './Dropdown/Dropdown.type';
|
|
7
|
+
export type { IFlexGrid, IFlexGridItem } from './Grid/FlexGrid/FlexGrid.type';
|
|
8
|
+
export type { IDisplayTable } from './Grid/DisplayTable/DisplayTable.type';
|
|
9
|
+
export type { IIcon } from './Icon/Icon.type';
|
|
10
|
+
export type { IInput } from './Form/Input/Input.type';
|
|
11
|
+
export type { ILabel } from './Label/Label.type';
|
|
12
|
+
export type { ILoader } from './Loader/Loader.type';
|
|
13
|
+
export type { IMarkdown } from './Markdown/Markdown.type';
|
|
14
|
+
export type { IMenu } from './Navigation/Menu/Menu.type';
|
|
15
|
+
export type { ITabNav } from './Navigation/TabNav/TabNav.type';
|
|
16
|
+
export type { IUnderlineNav } from './Navigation/UnderlineNav/UnderlineNav.type';
|
|
17
|
+
export type { IPreviousNext } from './Pagination/PreviousNext/PreviousNext.type';
|
|
18
|
+
export type { IPopover } from './Popover/Popover.type';
|
|
19
|
+
export type { IProgress } from './Progress/Progress.type';
|
|
20
|
+
export type { IRadio } from './Form/Radio/Radio.type';
|
|
21
|
+
export type { ISelect } from './Select/Select.type';
|
|
22
|
+
export type { ISelectMenu } from './SelectMenu/SelectMenu.type';
|
|
23
|
+
export type { ISubhead } from './Subhead/Subhead.type';
|
|
24
|
+
export type { ISyntaxHighlighter } from './SyntaxHighlighter/SyntaxHighlighter.type';
|
|
25
|
+
export type { IToast } from './Toast/Toast.type';
|
|
3
26
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Legacy/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/Legacy/type.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACpD,YAAY,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AACvC,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAC9D,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7E,YAAY,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAC1E,YAAY,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAA;AACxD,YAAY,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAC9D,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAA;AAChF,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACzD,YAAY,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AACrD,YAAY,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,YAAY,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC/D,YAAY,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,YAAY,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AACpF,YAAY,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Modern/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/Modern/Avatar/Avatar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAIlE,eAAO,MAAM,mBAAmB,KAAK,CAAA;AAErC,MAAM,MAAM,WAAW,GAAG;IACxB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IACvC,+FAA+F;IAC/F,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,+BAA+B;IAC/B,GAAG,EAAE,MAAM,CAAA;IACX,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEnC,eAAO,MAAM,MAAM;IAZjB,+CAA+C;WACxC,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC;IACvC,+FAA+F;aACtF,OAAO;IAChB,+BAA+B;SAC1B,MAAM;IACX,mFAAmF;UAC7E,MAAM;IACZ,6BAA6B;gBACjB,MAAM;4KAuClB,CAAA"}
|
|
@@ -1,55 +1,48 @@
|
|
|
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.DEFAULT_AVATAR_SIZE = exports.Avatar = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
8
|
var _clsx = require("clsx");
|
|
12
9
|
var _react = require("react");
|
|
13
10
|
var _useResponsiveValue = require("../hooks/useResponsiveValue");
|
|
14
11
|
var _AvatarModule = _interopRequireDefault(require("./Avatar.module.scss"));
|
|
15
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className = _ref.className,
|
|
28
|
-
style = _ref.style,
|
|
29
|
-
rest = (0, _objectWithoutProperties2["default"])(_ref, _excluded);
|
|
30
|
-
var isResponsive = (0, _useResponsiveValue.isResponsiveValue)(size);
|
|
31
|
-
var cssSizeVars = {};
|
|
13
|
+
const DEFAULT_AVATAR_SIZE = exports.DEFAULT_AVATAR_SIZE = 20;
|
|
14
|
+
const Avatar = exports.Avatar = /*#__PURE__*/(0, _react.forwardRef)(function Avatar({
|
|
15
|
+
alt = '',
|
|
16
|
+
size = DEFAULT_AVATAR_SIZE,
|
|
17
|
+
square = false,
|
|
18
|
+
className,
|
|
19
|
+
style,
|
|
20
|
+
...rest
|
|
21
|
+
}, ref) {
|
|
22
|
+
const isResponsive = (0, _useResponsiveValue.isResponsiveValue)(size);
|
|
23
|
+
const cssSizeVars = {};
|
|
32
24
|
if (isResponsive) {
|
|
33
|
-
for (
|
|
34
|
-
|
|
35
|
-
key = _Object$entries$_i[0],
|
|
36
|
-
value = _Object$entries$_i[1];
|
|
37
|
-
cssSizeVars["--avatarSize-".concat(key)] = "".concat(value, "px");
|
|
25
|
+
for (const [key, value] of Object.entries(size)) {
|
|
26
|
+
cssSizeVars[`--avatarSize-${key}`] = `${value}px`;
|
|
38
27
|
}
|
|
39
28
|
} else {
|
|
40
|
-
cssSizeVars['--avatarSize-regular'] =
|
|
29
|
+
cssSizeVars['--avatarSize-regular'] = `${size}px`;
|
|
41
30
|
}
|
|
42
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img",
|
|
31
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
43
32
|
"data-component": "Avatar",
|
|
44
|
-
className: (0, _clsx.clsx)(className, _AvatarModule
|
|
33
|
+
className: (0, _clsx.clsx)(className, _AvatarModule.default.Avatar),
|
|
45
34
|
ref: ref,
|
|
46
35
|
alt: alt,
|
|
47
36
|
"data-responsive": isResponsive ? '' : undefined,
|
|
48
37
|
"data-square": square ? '' : undefined,
|
|
49
38
|
width: isResponsive ? undefined : size,
|
|
50
39
|
height: isResponsive ? undefined : size,
|
|
51
|
-
style: style ?
|
|
52
|
-
|
|
40
|
+
style: style ? {
|
|
41
|
+
...cssSizeVars,
|
|
42
|
+
...style
|
|
43
|
+
} : cssSizeVars,
|
|
44
|
+
...rest
|
|
45
|
+
});
|
|
53
46
|
});
|
|
54
47
|
if (process.env.NODE_ENV !== 'production') {
|
|
55
48
|
Avatar.displayName = 'Avatar';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import type { ResponsiveValue } from '../hooks/useResponsiveValue';
|
|
3
3
|
export interface AvatarStackProps {
|
|
4
4
|
alignRight?: boolean;
|
|
@@ -11,5 +11,5 @@ export interface AvatarStackProps {
|
|
|
11
11
|
style?: CSSProperties;
|
|
12
12
|
'data-testid'?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare const AvatarStack: ({ children, variant, shape, alignRight, disableExpand, size, className, style, "data-testid": dataTestId, }: AvatarStackProps) => import("react
|
|
14
|
+
export declare const AvatarStack: ({ children, variant, shape, alignRight, disableExpand, size, className, style, "data-testid": dataTestId, }: AvatarStackProps) => import("react").JSX.Element;
|
|
15
15
|
//# sourceMappingURL=AvatarStack.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarStack.d.ts","sourceRoot":"","sources":["../../../src/Modern/AvatarStack/AvatarStack.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"AvatarStack.d.ts","sourceRoot":"","sources":["../../../src/Modern/AvatarStack/AvatarStack.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,SAAS,EAOf,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAA;AAiBlE,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC7B,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AA+BD,eAAO,MAAM,WAAW,GAAI,6GAUzB,gBAAgB,gCAmHlB,CAAA"}
|
|
@@ -1,13 +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.AvatarStack = void 0;
|
|
8
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
8
|
var _clsx = require("clsx");
|
|
12
9
|
var _react = require("react");
|
|
13
10
|
var _Avatar = require("../Avatar/Avatar");
|
|
@@ -15,62 +12,57 @@ var _useResponsiveValue = require("../hooks/useResponsiveValue");
|
|
|
15
12
|
var _hasInteractiveNodes = require("../utils/hasInteractiveNodes");
|
|
16
13
|
var _AvatarStackModule = _interopRequireDefault(require("./AvatarStack.module.scss"));
|
|
17
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var transformChildren = function transformChildren(children, shape) {
|
|
21
|
-
return _react.Children.map(children, function (child) {
|
|
15
|
+
const transformChildren = (children, shape) => {
|
|
16
|
+
return _react.Children.map(children, child => {
|
|
22
17
|
if (! /*#__PURE__*/(0, _react.isValidElement)(child)) return child;
|
|
23
|
-
return /*#__PURE__*/(0, _react.cloneElement)(child,
|
|
18
|
+
return /*#__PURE__*/(0, _react.cloneElement)(child, {
|
|
19
|
+
...child.props,
|
|
24
20
|
square: (shape === 'square' ? true : undefined) || child.props.square,
|
|
25
|
-
className: (0, _clsx.clsx)(child.props.className, 'pc-AvatarItem', _AvatarStackModule
|
|
26
|
-
})
|
|
21
|
+
className: (0, _clsx.clsx)(child.props.className, 'pc-AvatarItem', _AvatarStackModule.default.AvatarItem)
|
|
22
|
+
});
|
|
27
23
|
});
|
|
28
24
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
25
|
+
const AvatarStackBody = ({
|
|
26
|
+
disableExpand,
|
|
27
|
+
hasInteractiveChildren,
|
|
28
|
+
stackContainer,
|
|
29
|
+
children
|
|
30
|
+
}) => {
|
|
34
31
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
35
32
|
"data-disable-expand": disableExpand ? '' : undefined,
|
|
36
33
|
"data-testid": "avatar-stack-body",
|
|
37
34
|
className: (0, _clsx.clsx)({
|
|
38
35
|
'pc-AvatarStack--disableExpand': disableExpand
|
|
39
|
-
}, 'pc-AvatarStackBody', _AvatarStackModule
|
|
36
|
+
}, 'pc-AvatarStackBody', _AvatarStackModule.default.AvatarStackBody),
|
|
40
37
|
tabIndex: !hasInteractiveChildren && !disableExpand ? 0 : undefined,
|
|
41
38
|
ref: stackContainer,
|
|
42
39
|
children: children
|
|
43
40
|
});
|
|
44
41
|
};
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
var stackContainer = (0, _react.useRef)(null);
|
|
62
|
-
var count = _react.Children.count(children);
|
|
63
|
-
var getAvatarChildSizes = function getAvatarChildSizes() {
|
|
64
|
-
var avatarSizeMap = {
|
|
42
|
+
const AvatarStack = ({
|
|
43
|
+
children,
|
|
44
|
+
variant = 'cascade',
|
|
45
|
+
shape = 'circle',
|
|
46
|
+
alignRight,
|
|
47
|
+
disableExpand,
|
|
48
|
+
size,
|
|
49
|
+
className,
|
|
50
|
+
style,
|
|
51
|
+
'data-testid': dataTestId
|
|
52
|
+
}) => {
|
|
53
|
+
const [hasInteractiveChildren, setHasInteractiveChildren] = (0, _react.useState)(false);
|
|
54
|
+
const stackContainer = (0, _react.useRef)(null);
|
|
55
|
+
const count = _react.Children.count(children);
|
|
56
|
+
const getAvatarChildSizes = () => {
|
|
57
|
+
const avatarSizeMap = {
|
|
65
58
|
narrow: [],
|
|
66
59
|
regular: [],
|
|
67
60
|
wide: []
|
|
68
61
|
};
|
|
69
|
-
return _react.Children.toArray(children).reduce(
|
|
62
|
+
return _react.Children.toArray(children).reduce((acc, child) => {
|
|
70
63
|
// if child is not an Avatar, return the default avatar sizes from the accumulator
|
|
71
64
|
if (! /*#__PURE__*/(0, _react.isValidElement)(child)) return acc;
|
|
72
|
-
for (
|
|
73
|
-
var responsiveKey = _Object$keys[_i];
|
|
65
|
+
for (const responsiveKey of Object.keys(avatarSizeMap)) {
|
|
74
66
|
// if the child has responsive `size` prop values, push the value to the appropriate viewport property in the avatarSizeMap
|
|
75
67
|
if ((0, _useResponsiveValue.isResponsiveValue)(child.props.size)) {
|
|
76
68
|
avatarSizeMap[responsiveKey].push(child.props.size[responsiveKey] || _Avatar.DEFAULT_AVATAR_SIZE);
|
|
@@ -81,7 +73,7 @@ var AvatarStack = exports.AvatarStack = function AvatarStack(_ref2) {
|
|
|
81
73
|
}
|
|
82
74
|
|
|
83
75
|
// set the smallest size in each viewport property as the value for that viewport property in the accumulator
|
|
84
|
-
acc[responsiveKey] = Math.min
|
|
76
|
+
acc[responsiveKey] = Math.min(...avatarSizeMap[responsiveKey]);
|
|
85
77
|
}
|
|
86
78
|
return acc;
|
|
87
79
|
}, {
|
|
@@ -90,46 +82,46 @@ var AvatarStack = exports.AvatarStack = function AvatarStack(_ref2) {
|
|
|
90
82
|
wide: _Avatar.DEFAULT_AVATAR_SIZE
|
|
91
83
|
});
|
|
92
84
|
};
|
|
93
|
-
|
|
94
|
-
(0, _react.useEffect)(
|
|
85
|
+
const childSizes = getAvatarChildSizes();
|
|
86
|
+
(0, _react.useEffect)(() => {
|
|
95
87
|
if (stackContainer.current) {
|
|
96
|
-
|
|
88
|
+
const interactiveChildren = () => {
|
|
97
89
|
setHasInteractiveChildren((0, _hasInteractiveNodes.hasInteractiveNodes)(stackContainer.current));
|
|
98
90
|
};
|
|
99
|
-
|
|
91
|
+
const observer = new MutationObserver(interactiveChildren);
|
|
100
92
|
observer.observe(stackContainer.current, {
|
|
101
93
|
childList: true
|
|
102
94
|
});
|
|
103
95
|
|
|
104
96
|
// Call on initial render, then call it again only if there's a mutation
|
|
105
97
|
interactiveChildren();
|
|
106
|
-
return
|
|
98
|
+
return () => {
|
|
107
99
|
observer.disconnect();
|
|
108
100
|
};
|
|
109
101
|
}
|
|
110
102
|
}, []);
|
|
111
|
-
|
|
103
|
+
const getResponsiveAvatarSizeStyles = () => {
|
|
112
104
|
// if there is no size set on the AvatarStack, use the `size` props of the Avatar children to set the `--avatar-stack-size` CSS variable
|
|
113
105
|
if (!size) {
|
|
114
106
|
return {
|
|
115
|
-
'--stackSize-narrow':
|
|
116
|
-
'--stackSize-regular':
|
|
117
|
-
'--stackSize-wide':
|
|
107
|
+
'--stackSize-narrow': `${childSizes.narrow}px`,
|
|
108
|
+
'--stackSize-regular': `${childSizes.regular}px`,
|
|
109
|
+
'--stackSize-wide': `${childSizes.wide}px`
|
|
118
110
|
};
|
|
119
111
|
}
|
|
120
112
|
|
|
121
113
|
// if the `size` prop is set and responsive, set the `--avatar-stack-size` CSS variable for each viewport
|
|
122
114
|
if ((0, _useResponsiveValue.isResponsiveValue)(size)) {
|
|
123
115
|
return {
|
|
124
|
-
'--stackSize-narrow':
|
|
125
|
-
'--stackSize-regular':
|
|
126
|
-
'--stackSize-wide':
|
|
116
|
+
'--stackSize-narrow': `${size.narrow || _Avatar.DEFAULT_AVATAR_SIZE}px`,
|
|
117
|
+
'--stackSize-regular': `${size.regular || _Avatar.DEFAULT_AVATAR_SIZE}px`,
|
|
118
|
+
'--stackSize-wide': `${size.wide || _Avatar.DEFAULT_AVATAR_SIZE}px`
|
|
127
119
|
};
|
|
128
120
|
}
|
|
129
121
|
|
|
130
122
|
// if the `size` prop is set and not responsive, it is a number, so we can just set the `--avatar-stack-size` CSS variable to that number
|
|
131
123
|
return {
|
|
132
|
-
'--avatar-stack-size':
|
|
124
|
+
'--avatar-stack-size': `${size}px`
|
|
133
125
|
};
|
|
134
126
|
};
|
|
135
127
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -146,8 +138,11 @@ var AvatarStack = exports.AvatarStack = function AvatarStack(_ref2) {
|
|
|
146
138
|
'pc-AvatarStack--three': count === 3,
|
|
147
139
|
'pc-AvatarStack--three-plus': count > 3,
|
|
148
140
|
'pc-AvatarStack--right': alignRight
|
|
149
|
-
}, className, _AvatarStackModule
|
|
150
|
-
style:
|
|
141
|
+
}, className, _AvatarStackModule.default.AvatarStack),
|
|
142
|
+
style: {
|
|
143
|
+
...getResponsiveAvatarSizeStyles(),
|
|
144
|
+
...style
|
|
145
|
+
},
|
|
151
146
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(AvatarStackBody, {
|
|
152
147
|
disableExpand: disableExpand,
|
|
153
148
|
hasInteractiveChildren: hasInteractiveChildren,
|
|
@@ -155,4 +150,5 @@ var AvatarStack = exports.AvatarStack = function AvatarStack(_ref2) {
|
|
|
155
150
|
children: [' ', transformChildren(children, shape)]
|
|
156
151
|
})
|
|
157
152
|
});
|
|
158
|
-
};
|
|
153
|
+
};
|
|
154
|
+
exports.AvatarStack = AvatarStack;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef } from 'react';
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
2
|
import type { ForwardRefComponent as PolymorphicForwardRefComponent } from '../utils/polymorphic';
|
|
3
3
|
export type FlashProps = ComponentPropsWithoutRef<'div'> & {
|
|
4
4
|
className?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flash.d.ts","sourceRoot":"","sources":["../../../src/Modern/Flash/Flash.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,
|
|
1
|
+
{"version":3,"file":"Flash.d.ts","sourceRoot":"","sources":["../../../src/Modern/Flash/Flash.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,KAAK,EAAE,mBAAmB,IAAI,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AAGjG,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAA;IACtD,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAED,eAAO,MAAM,KAAK,EAUZ,8BAA8B,CAAC,KAAK,EAAE,UAAU,CAAC,CAAA"}
|
|
@@ -1,34 +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.Flash = void 0;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
8
|
var _clsx = require("clsx");
|
|
11
9
|
var _react = require("react");
|
|
12
10
|
var _FlashModule = _interopRequireDefault(require("./Flash.module.scss"));
|
|
13
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _excluded = ["as", "className", "variant", "full"];
|
|
15
12
|
/* eslint-disable react/prop-types */
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
rest
|
|
26
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BaseComponent, _objectSpread(_objectSpread({}, rest), {}, {
|
|
13
|
+
|
|
14
|
+
const Flash = exports.Flash = /*#__PURE__*/(0, _react.forwardRef)(function Flash({
|
|
15
|
+
as: BaseComponent = 'div',
|
|
16
|
+
className,
|
|
17
|
+
variant = 'default',
|
|
18
|
+
full,
|
|
19
|
+
...rest
|
|
20
|
+
}, ref) {
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(BaseComponent, {
|
|
22
|
+
...rest,
|
|
27
23
|
ref: ref,
|
|
28
|
-
className: (0, _clsx.clsx)(_FlashModule
|
|
24
|
+
className: (0, _clsx.clsx)(_FlashModule.default.Flash, className),
|
|
29
25
|
"data-full": full ? '' : undefined,
|
|
30
26
|
"data-variant": variant
|
|
31
|
-
})
|
|
27
|
+
});
|
|
32
28
|
});
|
|
33
29
|
if (process.env.NODE_ENV !== 'production') {
|
|
34
30
|
Flash.displayName = 'Flash';
|