@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
|
@@ -2,47 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.IconAlignment = exports.ButtonVariant = exports.ButtonState = exports.ButtonSize = exports.ButtonInputType = exports.ButtonElement = exports.ButtonDefault = void 0;
|
|
7
|
-
var ButtonElement = exports.ButtonElement = {
|
|
8
|
-
Button: 'button',
|
|
9
|
-
A: 'a'
|
|
10
|
-
};
|
|
11
|
-
var ButtonSize = exports.ButtonSize = {
|
|
12
|
-
Small: 'small',
|
|
13
|
-
Normal: 'normal',
|
|
14
|
-
Large: 'large'
|
|
15
|
-
};
|
|
16
|
-
var ButtonState = exports.ButtonState = {
|
|
17
|
-
Active: 'active',
|
|
18
|
-
Inactive: 'inactive'
|
|
19
|
-
};
|
|
20
|
-
var IconAlignment = exports.IconAlignment = {
|
|
21
|
-
Left: 'left',
|
|
22
|
-
Right: 'Right'
|
|
23
|
-
};
|
|
24
|
-
var ButtonInputType = exports.ButtonInputType = {
|
|
25
|
-
File: 'file',
|
|
26
|
-
Submit: 'submit'
|
|
27
|
-
};
|
|
28
|
-
var ButtonVariant = exports.ButtonVariant = {
|
|
29
|
-
Default: 'default',
|
|
30
|
-
Primary: 'primary',
|
|
31
|
-
Danger: 'danger',
|
|
32
|
-
Outline: 'outline',
|
|
33
|
-
Blue: 'blue',
|
|
34
|
-
Orange: 'orange'
|
|
35
|
-
};
|
|
36
|
-
var ButtonDefault = exports.ButtonDefault = {
|
|
37
|
-
DataTestId: null,
|
|
38
|
-
Id: null,
|
|
39
|
-
ClassName: null,
|
|
40
|
-
Element: ButtonElement.Button,
|
|
41
|
-
Href: null,
|
|
42
|
-
Variant: ButtonVariant.Default,
|
|
43
|
-
Size: ButtonSize.Normal,
|
|
44
|
-
State: ButtonState.Active,
|
|
45
|
-
Icon: null,
|
|
46
|
-
InputType: null,
|
|
47
|
-
AutoFocus: false
|
|
48
|
-
};
|
|
5
|
+
});
|
|
@@ -10,18 +10,18 @@ Button all props and variants
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
export interface IButton {
|
|
13
|
-
dataTestId?: string
|
|
14
|
-
id?: string
|
|
15
|
-
className?: string
|
|
13
|
+
dataTestId?: string | null
|
|
14
|
+
id?: string | null
|
|
15
|
+
className?: string | null
|
|
16
16
|
element?: string
|
|
17
|
-
href?: string
|
|
17
|
+
href?: string | null
|
|
18
18
|
text: string
|
|
19
19
|
variant?: string
|
|
20
20
|
size?: string
|
|
21
21
|
state?: string
|
|
22
22
|
icon?: IIcon
|
|
23
|
-
onClick
|
|
24
|
-
inputType?: string
|
|
23
|
+
onClick?: ((value?: FileList | null) => void) | ((value?: string) => void) | (() => void)
|
|
24
|
+
inputType?: string | null
|
|
25
25
|
autoFocus?: boolean
|
|
26
26
|
}
|
|
27
27
|
```
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Button } from './Button';
|
|
2
|
-
export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.
|
|
2
|
+
export { ButtonElement, ButtonVariant, ButtonSize, ButtonState, IconAlignment, ButtonInputType } from './Button.const';
|
|
3
|
+
export type { IButton, IButtonDefault, IIcon } from './Button.type';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AACtH,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -5,45 +5,45 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Button", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Button.Button;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "ButtonElement", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Button2.ButtonElement;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "ButtonInputType", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function
|
|
20
|
+
get: function () {
|
|
21
21
|
return _Button2.ButtonInputType;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "ButtonSize", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function
|
|
26
|
+
get: function () {
|
|
27
27
|
return _Button2.ButtonSize;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "ButtonState", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function
|
|
32
|
+
get: function () {
|
|
33
33
|
return _Button2.ButtonState;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "ButtonVariant", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function
|
|
38
|
+
get: function () {
|
|
39
39
|
return _Button2.ButtonVariant;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "IconAlignment", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function
|
|
44
|
+
get: function () {
|
|
45
45
|
return _Button2.IconAlignment;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
var _Button = require("./Button");
|
|
49
|
-
var _Button2 = require("./Button.
|
|
49
|
+
var _Button2 = require("./Button.const");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dropdown.const.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEvE,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAO7B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DropdownState = exports.DropdownDefault = void 0;
|
|
7
|
+
const DropdownState = exports.DropdownState = {
|
|
8
|
+
Active: 'active',
|
|
9
|
+
Inactive: 'inactive'
|
|
10
|
+
};
|
|
11
|
+
const DropdownDefault = exports.DropdownDefault = {
|
|
12
|
+
ClassName: null,
|
|
13
|
+
AriaAttr: {
|
|
14
|
+
hasPopup: false,
|
|
15
|
+
current: 'page'
|
|
16
|
+
},
|
|
17
|
+
State: DropdownState.Active
|
|
18
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import type { JSX } from 'react';
|
|
2
|
+
import type { IDropdown } from './Dropdown.type';
|
|
3
|
+
export declare function Dropdown({ className, summary, ariaAttr, items, onClick, state, }: IDropdown): JSX.Element | null;
|
|
3
4
|
//# sourceMappingURL=Dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAKhC,OAAO,KAAK,EAAE,SAAS,EAAuB,MAAM,iBAAiB,CAAA;AAErE,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,OAAO,EACP,QAAmC,EACnC,KAAK,EACL,OAAO,EACP,KAA6B,GAC9B,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAkFhC"}
|
|
@@ -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.Dropdown = Dropdown;
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
8
|
var _details = _interopRequireDefault(require("@papillonarts/css/utilities/details.scss"));
|
|
10
9
|
var _flexbox = _interopRequireDefault(require("@papillonarts/css/utilities/flexbox.scss"));
|
|
11
10
|
var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
|
|
@@ -15,79 +14,79 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
14
|
var _react = require("react");
|
|
16
15
|
var _uuid = require("uuid");
|
|
17
16
|
var _Button = _interopRequireDefault(require("../Button/Button.scss"));
|
|
18
|
-
var _Dropdown =
|
|
19
|
-
var _Dropdown2 = require("./Dropdown.
|
|
17
|
+
var _Dropdown = require("./Dropdown.const");
|
|
18
|
+
var _Dropdown2 = _interopRequireDefault(require("./Dropdown.scss"));
|
|
20
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function Dropdown(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
_ref$state = _ref.state,
|
|
31
|
-
state = _ref$state === void 0 ? _Dropdown2.DropdownDefault.State : _ref$state;
|
|
32
|
-
var details = (0, _react.useRef)(null);
|
|
20
|
+
function Dropdown({
|
|
21
|
+
className = _Dropdown.DropdownDefault.ClassName,
|
|
22
|
+
summary,
|
|
23
|
+
ariaAttr = _Dropdown.DropdownDefault.AriaAttr,
|
|
24
|
+
items,
|
|
25
|
+
onClick,
|
|
26
|
+
state = _Dropdown.DropdownDefault.State
|
|
27
|
+
}) {
|
|
28
|
+
const details = (0, _react.useRef)(null);
|
|
33
29
|
if (!items) {
|
|
34
30
|
return null;
|
|
35
31
|
}
|
|
36
|
-
|
|
32
|
+
const indexItems = (0, _array.getIndexItems)(items);
|
|
37
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
34
|
className: className,
|
|
39
35
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("details", {
|
|
40
36
|
ref: details,
|
|
41
|
-
className: (0, _classnames
|
|
37
|
+
className: (0, _classnames.default)(_Dropdown2.default.dropdown, _details.default['details-reset'], _details.default['details-overlay'], _visibilityDisplay.default['d-inline-block'], {
|
|
38
|
+
[_Dropdown2.default['dropdown-inactive']]: state === _Dropdown.DropdownState.Inactive
|
|
39
|
+
}),
|
|
42
40
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("summary", {
|
|
43
|
-
className: (0, _classnames
|
|
44
|
-
"aria-haspopup":
|
|
41
|
+
className: (0, _classnames.default)(_Button.default.btn),
|
|
42
|
+
"aria-haspopup": ariaAttr?.hasPopup ?? false,
|
|
45
43
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
46
|
-
className: (0, _classnames
|
|
44
|
+
className: (0, _classnames.default)(_visibilityDisplay.default['d-flex'], _flexbox.default['flex-justify-between'], _flexbox.default['flex-items-center'], {
|
|
45
|
+
[_Dropdown2.default['dropdown-inactive']]: state === _Dropdown.DropdownState.Inactive
|
|
46
|
+
}),
|
|
47
47
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
48
48
|
children: summary
|
|
49
49
|
}), " ", /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
50
|
-
className:
|
|
50
|
+
className: _Dropdown2.default['dropdown-caret']
|
|
51
51
|
})]
|
|
52
52
|
})
|
|
53
53
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
54
|
-
className: (0, _classnames
|
|
55
|
-
children: indexItems.map(
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
className: (0, _classnames.default)(_Dropdown2.default['dropdown-menu'], _Dropdown2.default['dropdown-menu-se'], _layout.default['width-full']),
|
|
55
|
+
children: indexItems.map(indexItem => {
|
|
56
|
+
const {
|
|
57
|
+
href,
|
|
58
|
+
text /* isSelected */
|
|
59
|
+
} = indexItem;
|
|
58
60
|
|
|
59
61
|
// const itemOtherProps = isSelected ? { ...{ 'aria-current': ariaAttr?.Current } } : null
|
|
60
62
|
|
|
61
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
62
64
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
63
|
-
onClick:
|
|
65
|
+
onClick: e => {
|
|
64
66
|
e.preventDefault();
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
const newIndexItems = (0, _array.getIndexItemsWithSelected)(indexItems, indexItem);
|
|
68
|
+
onClick({
|
|
67
69
|
summary: text,
|
|
68
|
-
ariaAttr
|
|
69
|
-
items: newIndexItems.map(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
}(newIndexItem);
|
|
86
|
-
})
|
|
70
|
+
ariaAttr,
|
|
71
|
+
items: newIndexItems.map(newIndexItem => (({
|
|
72
|
+
id: newIndexItemId,
|
|
73
|
+
href: newIndexItemHref,
|
|
74
|
+
text: newIndexItemText,
|
|
75
|
+
'date-modified': dateModified,
|
|
76
|
+
'date-created': dateCreated,
|
|
77
|
+
isSelected: newIndexItemIsSelected
|
|
78
|
+
}) => ({
|
|
79
|
+
id: newIndexItemId,
|
|
80
|
+
href: newIndexItemHref,
|
|
81
|
+
text: newIndexItemText,
|
|
82
|
+
'date-modified': dateModified,
|
|
83
|
+
'date-created': dateCreated,
|
|
84
|
+
isSelected: newIndexItemIsSelected
|
|
85
|
+
}))(newIndexItem))
|
|
87
86
|
});
|
|
88
|
-
details.current
|
|
87
|
+
details.current?.removeAttribute('open');
|
|
89
88
|
},
|
|
90
|
-
className:
|
|
89
|
+
className: _Dropdown2.default['dropdown-item'],
|
|
91
90
|
href: href
|
|
92
91
|
// @ts-ignore
|
|
93
92
|
// {...itemOtherProps}
|
|
@@ -3,13 +3,11 @@ export interface IDropdownState {
|
|
|
3
3
|
Active: string;
|
|
4
4
|
Inactive: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const DropdownState: IDropdownState;
|
|
7
6
|
export interface IDropdownDefault {
|
|
8
|
-
ClassName: string;
|
|
7
|
+
ClassName: string | null;
|
|
9
8
|
AriaAttr: IAriaAttr;
|
|
10
9
|
State: string;
|
|
11
10
|
}
|
|
12
|
-
export declare const DropdownDefault: IDropdownDefault;
|
|
13
11
|
export interface IAriaAttr {
|
|
14
12
|
hasPopup: boolean;
|
|
15
13
|
current: string;
|
|
@@ -18,18 +16,23 @@ export interface IItem {
|
|
|
18
16
|
href: string;
|
|
19
17
|
text: string;
|
|
20
18
|
isSelected: boolean;
|
|
21
|
-
id
|
|
22
|
-
'date-modified'
|
|
23
|
-
'date-created'
|
|
19
|
+
id?: string;
|
|
20
|
+
'date-modified'?: string;
|
|
21
|
+
'date-created'?: string;
|
|
24
22
|
}
|
|
25
23
|
export interface IIndexedItem extends IIndexed, IItem {
|
|
26
24
|
}
|
|
25
|
+
export interface IDropdownOnClickValue {
|
|
26
|
+
summary: string;
|
|
27
|
+
ariaAttr?: IAriaAttr;
|
|
28
|
+
items: IItem[];
|
|
29
|
+
}
|
|
27
30
|
export interface IDropdown {
|
|
28
31
|
className?: string;
|
|
29
32
|
summary: string;
|
|
30
33
|
ariaAttr?: IAriaAttr;
|
|
31
34
|
items: IItem[];
|
|
32
|
-
onClick: (value:
|
|
35
|
+
onClick: (value: IDropdownOnClickValue) => void;
|
|
33
36
|
state?: string;
|
|
34
37
|
}
|
|
35
38
|
//# sourceMappingURL=Dropdown.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;
|
|
1
|
+
{"version":3,"file":"Dropdown.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/Dropdown.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAEhE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;CACjB;AACD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,EAAE,SAAS,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;CACd;AACD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AACD,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,OAAO,CAAA;IACnB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AACD,MAAM,WAAW,YAAa,SAAQ,QAAQ,EAAE,KAAK;CAAG;AACxD,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;CACf;AACD,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,KAAK,EAAE,KAAK,EAAE,CAAA;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -2,17 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DropdownState = exports.DropdownDefault = void 0;
|
|
7
|
-
var DropdownState = exports.DropdownState = {
|
|
8
|
-
Active: 'active',
|
|
9
|
-
Inactive: 'inactive'
|
|
10
|
-
};
|
|
11
|
-
var DropdownDefault = exports.DropdownDefault = {
|
|
12
|
-
ClassName: null,
|
|
13
|
-
AriaAttr: {
|
|
14
|
-
hasPopup: false,
|
|
15
|
-
current: 'page'
|
|
16
|
-
},
|
|
17
|
-
State: DropdownState.Active
|
|
18
|
-
};
|
|
5
|
+
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Dropdown } from './Dropdown';
|
|
2
|
-
export { DropdownState } from './Dropdown.
|
|
2
|
+
export { DropdownState } from './Dropdown.const';
|
|
3
|
+
export { type IDropdown, type IDropdownDefault, type IItem, type IAriaAttr, type IDropdownOnClickValue } from './Dropdown.type';
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/Dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,gBAAgB,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
Object.defineProperty(exports, "Dropdown", {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: function
|
|
8
|
+
get: function () {
|
|
9
9
|
return _Dropdown.Dropdown;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "DropdownState", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function
|
|
14
|
+
get: function () {
|
|
15
15
|
return _Dropdown2.DropdownState;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
var _Dropdown = require("./Dropdown");
|
|
19
|
-
var _Dropdown2 = require("./Dropdown.
|
|
19
|
+
var _Dropdown2 = require("./Dropdown.const");
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import type { ErrorInfo, ReactNode } from 'react';
|
|
1
2
|
import { Component } from 'react';
|
|
2
|
-
import { IErrorBoundary } from './ErrorBoundary.type';
|
|
3
|
-
export declare class ErrorBoundary extends Component<IErrorBoundary> {
|
|
4
|
-
constructor(props:
|
|
5
|
-
static getDerivedStateFromError(error:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
componentDidCatch(error: any, errorInfo: any): void;
|
|
9
|
-
render(): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>;
|
|
3
|
+
import type { IErrorBoundary, IErrorBoundaryState } from './ErrorBoundary.type';
|
|
4
|
+
export declare class ErrorBoundary extends Component<IErrorBoundary, IErrorBoundaryState> {
|
|
5
|
+
constructor(props: IErrorBoundary);
|
|
6
|
+
static getDerivedStateFromError(error: Error): IErrorBoundaryState;
|
|
7
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
8
|
+
render(): ReactNode;
|
|
10
9
|
}
|
|
11
10
|
//# sourceMappingURL=ErrorBoundary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAE/E,qBAAa,aAAc,SAAQ,SAAS,CAAC,cAAc,EAAE,mBAAmB,CAAC;gBACnE,KAAK,EAAE,cAAc;IAMjC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,mBAAmB;IAKlE,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,IAAI;IAM3D,MAAM,IAAI,SAAS;CAWpB"}
|
|
@@ -1,61 +1,45 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.ErrorBoundary = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
11
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
12
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
13
7
|
var _react = require("react");
|
|
14
8
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var _this;
|
|
20
|
-
(0, _classCallCheck2["default"])(this, ErrorBoundary);
|
|
21
|
-
_this = _callSuper(this, ErrorBoundary, [props]);
|
|
22
|
-
_this.state = {
|
|
9
|
+
class ErrorBoundary extends _react.Component {
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.state = {
|
|
23
13
|
hasError: false
|
|
24
14
|
};
|
|
25
|
-
return _this;
|
|
26
15
|
}
|
|
27
16
|
|
|
28
|
-
// eslint-disable-next-line
|
|
29
|
-
(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}], [{
|
|
53
|
-
key: "getDerivedStateFromError",
|
|
54
|
-
value: function getDerivedStateFromError(error) {
|
|
55
|
-
// Update state so the next render will show the fallback UI.
|
|
56
|
-
return {
|
|
57
|
-
hasError: true
|
|
58
|
-
};
|
|
17
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
18
|
+
static getDerivedStateFromError(error) {
|
|
19
|
+
// Update state so the next render will show the fallback UI.
|
|
20
|
+
return {
|
|
21
|
+
hasError: true
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
componentDidCatch(error, errorInfo) {
|
|
25
|
+
// You can also log the error to an error reporting service
|
|
26
|
+
console.log('~error~', error);
|
|
27
|
+
console.log('~errorInfo~', errorInfo);
|
|
28
|
+
}
|
|
29
|
+
render() {
|
|
30
|
+
const {
|
|
31
|
+
hasError
|
|
32
|
+
} = this.state;
|
|
33
|
+
const {
|
|
34
|
+
children
|
|
35
|
+
} = this.props;
|
|
36
|
+
if (hasError) {
|
|
37
|
+
// You can render any custom fallback UI
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("h1", {
|
|
39
|
+
children: "Something went wrong."
|
|
40
|
+
});
|
|
59
41
|
}
|
|
60
|
-
|
|
61
|
-
}
|
|
42
|
+
return children;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.type.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/ErrorBoundary.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,OAAO,CAAA;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Legacy/ErrorBoundary/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ICheckboxDefault, ICheckboxState, IInputType } from './Checkbox.type';
|
|
2
|
+
export declare const CheckboxState: ICheckboxState;
|
|
3
|
+
export declare const InputType: IInputType;
|
|
4
|
+
export declare const CheckboxDefault: ICheckboxDefault;
|
|
5
|
+
//# sourceMappingURL=Checkbox.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.const.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Form/Checkbox/Checkbox.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEnF,eAAO,MAAM,aAAa,EAAE,cAG3B,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,UAEvB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAQ7B,CAAA"}
|