@neo4j-ndl/react 4.9.44 → 4.9.45
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/lib/cjs/clean-icon-button/CleanIconButton.js +2 -2
- package/lib/cjs/clean-icon-button/CleanIconButton.js.map +1 -1
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +31 -0
- package/lib/cjs/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -0
- package/lib/cjs/clean-icon-button/stories/index.js +5 -1
- package/lib/cjs/clean-icon-button/stories/index.js.map +1 -1
- package/lib/cjs/clipboard-button/ClipboardButton.js +6 -5
- package/lib/cjs/clipboard-button/ClipboardButton.js.map +1 -1
- package/lib/cjs/icon-button/IconButton.js +2 -2
- package/lib/cjs/icon-button/IconButton.js.map +1 -1
- package/lib/cjs/icon-button-base/IconButtonBase.js +43 -4
- package/lib/cjs/icon-button-base/IconButtonBase.js.map +1 -1
- package/lib/cjs/kbd/Kbd.js +7 -6
- package/lib/cjs/kbd/Kbd.js.map +1 -1
- package/lib/cjs/kbd/kbd-utils.js +29 -0
- package/lib/cjs/kbd/kbd-utils.js.map +1 -1
- package/lib/cjs/menu/stories/index.js +3 -3
- package/lib/cjs/menu/stories/index.js.map +1 -1
- package/lib/cjs/tooltip/stories/index.js +5 -5
- package/lib/cjs/tooltip/stories/index.js.map +1 -1
- package/lib/cjs/tooltip/stories/{tooltip-with-keyboard-shortcut.story.js → tooltip-with-keyboard-display.story.js} +1 -1
- package/lib/cjs/tooltip/stories/tooltip-with-keyboard-display.story.js.map +1 -0
- package/lib/esm/clean-icon-button/CleanIconButton.js +2 -2
- package/lib/esm/clean-icon-button/CleanIconButton.js.map +1 -1
- package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js +29 -0
- package/lib/esm/clean-icon-button/stories/clean-icon-button-keyboard-display.story.js.map +1 -0
- package/lib/esm/clean-icon-button/stories/index.js +3 -0
- package/lib/esm/clean-icon-button/stories/index.js.map +1 -1
- package/lib/esm/clipboard-button/ClipboardButton.js +6 -5
- package/lib/esm/clipboard-button/ClipboardButton.js.map +1 -1
- package/lib/esm/icon-button/IconButton.js +2 -2
- package/lib/esm/icon-button/IconButton.js.map +1 -1
- package/lib/esm/icon-button-base/IconButtonBase.js +11 -5
- package/lib/esm/icon-button-base/IconButtonBase.js.map +1 -1
- package/lib/esm/kbd/Kbd.js +8 -7
- package/lib/esm/kbd/Kbd.js.map +1 -1
- package/lib/esm/kbd/kbd-utils.js +28 -0
- package/lib/esm/kbd/kbd-utils.js.map +1 -1
- package/lib/esm/menu/stories/index.js +3 -3
- package/lib/esm/menu/stories/index.js.map +1 -1
- package/lib/esm/tooltip/stories/index.js +3 -3
- package/lib/esm/tooltip/stories/index.js.map +1 -1
- package/lib/esm/tooltip/stories/{tooltip-with-keyboard-shortcut.story.js → tooltip-with-keyboard-display.story.js} +1 -1
- package/lib/esm/tooltip/stories/tooltip-with-keyboard-display.story.js.map +1 -0
- package/lib/types/clean-icon-button/CleanIconButton.d.ts +1 -1
- package/lib/types/clean-icon-button/CleanIconButton.d.ts.map +1 -1
- package/lib/types/clean-icon-button/stories/clean-icon-button-keyboard-display.story.d.ts +24 -0
- package/lib/types/clean-icon-button/stories/clean-icon-button-keyboard-display.story.d.ts.map +1 -0
- package/lib/types/clean-icon-button/stories/index.d.ts +2 -0
- package/lib/types/clean-icon-button/stories/index.d.ts.map +1 -1
- package/lib/types/clipboard-button/ClipboardButton.d.ts +3 -1
- package/lib/types/clipboard-button/ClipboardButton.d.ts.map +1 -1
- package/lib/types/icon-button/IconButton.d.ts +1 -1
- package/lib/types/icon-button/IconButton.d.ts.map +1 -1
- package/lib/types/icon-button-base/IconButtonBase.d.ts +7 -4
- package/lib/types/icon-button-base/IconButtonBase.d.ts.map +1 -1
- package/lib/types/kbd/Kbd.d.ts.map +1 -1
- package/lib/types/kbd/kbd-utils.d.ts +2 -0
- package/lib/types/kbd/kbd-utils.d.ts.map +1 -1
- package/lib/types/menu/stories/index.d.ts +2 -2
- package/lib/types/menu/stories/index.d.ts.map +1 -1
- package/lib/types/tooltip/stories/index.d.ts +2 -2
- package/lib/types/tooltip/stories/index.d.ts.map +1 -1
- package/lib/types/tooltip/stories/{tooltip-with-keyboard-shortcut.story.d.ts → tooltip-with-keyboard-display.story.d.ts} +1 -1
- package/lib/types/tooltip/stories/tooltip-with-keyboard-display.story.d.ts.map +1 -0
- package/package.json +25 -25
- package/lib/cjs/tooltip/stories/tooltip-with-keyboard-shortcut.story.js.map +0 -1
- package/lib/esm/tooltip/stories/tooltip-with-keyboard-shortcut.story.js.map +0 -1
- package/lib/types/tooltip/stories/tooltip-with-keyboard-shortcut.story.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd-utils.js","sourceRoot":"","sources":["../../../src/kbd/kbd-utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"kbd-utils.js","sourceRoot":"","sources":["../../../src/kbd/kbd-utils.ts"],"names":[],"mappings":"AA6CA;;GAEG;AACH,MAAM,UAAU,QAAQ;IACtB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;IAE3D,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QAC9B,OAAO,KAAK,CAAC;IACf,CAAC;SAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACrC,OAAO,SAAS,CAAC;IACnB,CAAC;SAAM,CAAC;QACN,OAAO,OAAO,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,KAAsB,QAAQ,EAAE;IAEhC,MAAM,OAAO,GAA2B;QACtC,GAAG,EAAE,EAAE,KAAK,K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I,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC3B,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC;SAAM,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,GAAG,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpC,CAAC;IACD,MAAM,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC1D,OAAO,IAAI,CAAC,CAAC,CAAC,aAAa,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AACzC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nimport type { ReactNode } from 'react';\n\nexport type OperatingSystem = 'mac' | 'windows' | 'linux';\n\nexport type KbdKey =\n | 'meta'\n | 'shift'\n | 'ctrl'\n | 'enter'\n | 'delete'\n | 'escape'\n | 'tab'\n | 'capslock'\n | 'up'\n | 'right'\n | 'down'\n | 'left'\n | 'pageup'\n | 'pagedown'\n | 'home'\n | 'end'\n | 'space'\n | 'fn'\n | 'alt';\n\n/**\n * Detects the operating system based on the user agent\n */\nexport function detectOS(): OperatingSystem {\n if (typeof window === 'undefined') {\n return 'linux';\n }\n\n const userAgent = window.navigator.userAgent.toLowerCase();\n\n if (userAgent.includes('mac')) {\n return 'mac';\n } else if (userAgent.includes('win')) {\n return 'windows';\n } else {\n return 'linux';\n }\n}\n\n/**\n * Returns OS-aware keyboard key symbols\n */\nexport function getKbdKeysMap(\n os: OperatingSystem = detectOS(),\n): Record<KbdKey, string> {\n const baseMap: Record<KbdKey, string> = {\n alt: os === 'mac' ? '⌥' : 'alt',\n capslock: '⇪',\n ctrl: os === 'mac' ? '⌃' : 'ctrl',\n delete: os === 'mac' ? '⌫' : 'delete',\n down: '↓',\n end: 'end',\n enter: '↵',\n escape: '⎋',\n fn: 'Fn',\n home: 'home',\n left: '←',\n meta: os === 'mac' ? '⌘' : os === 'windows' ? '⊞' : 'meta',\n pagedown: '⇟',\n pageup: '⇞',\n right: '→',\n shift: '⇧',\n space: '␣',\n tab: '⇥',\n up: '↑',\n };\n\n return baseMap;\n}\n\n/**\n * Returns OS-aware keyboard key labels\n */\nexport function getKbdKeysLabelMap(\n os: OperatingSystem = detectOS(),\n): Record<KbdKey, string> {\n return {\n alt: 'Alt',\n capslock: 'Caps Lock',\n ctrl: 'Control',\n delete: 'Delete',\n down: 'Down',\n end: 'End',\n enter: 'Enter',\n escape: 'Escape',\n fn: 'Fn',\n home: 'Home',\n left: 'Left',\n meta: os === 'mac' ? 'Command' : os === 'windows' ? 'Windows' : 'Meta',\n pagedown: 'Page Down',\n pageup: 'Page Up',\n right: 'Right',\n shift: 'Shift',\n space: 'Space',\n tab: 'Tab',\n up: 'Up',\n };\n}\n\nfunction resolveKeyLabel(\n key: KbdKey | ReactNode,\n labels: Record<KbdKey, string>,\n): string {\n if (key === null || key === undefined || typeof key === 'boolean') {\n return '';\n }\n if (typeof key === 'string') {\n return key in labels ? labels[key as KbdKey] : key;\n }\n if (typeof key === 'number') {\n return String(key);\n }\n return '';\n}\n\nexport function getKbdScreenReaderFriendlyText(\n keys: readonly (KbdKey | ReactNode)[] | undefined,\n modifierKeys: readonly KbdKey[] | undefined,\n os: OperatingSystem = detectOS(),\n): string {\n const labels = getKbdKeysLabelMap(os);\n const modStr = (modifierKeys ?? []).map((k) => labels[k]).join(' + ');\n const keyLabels = (keys ?? [])\n .map((k) => resolveKeyLabel(k, labels))\n .filter(Boolean);\n let keyStr = '';\n if (keyLabels.length === 1) {\n keyStr = keyLabels[0];\n } else if (keyLabels.length > 1) {\n keyStr = keyLabels.join(' then ');\n }\n const body = [modStr, keyStr].filter(Boolean).join(' + ');\n return body ? `Shortcut: ${body}` : '';\n}\n"]}
|
|
@@ -28,7 +28,7 @@ export { default as MenuInDialog } from './menu-in-dialog.story';
|
|
|
28
28
|
export { default as MenuDivider } from './menu-with-divider.story';
|
|
29
29
|
export { default as MenuWithDisabledItem } from './menu-with-disabled-item.story';
|
|
30
30
|
export { default as MenuPlacements } from './menu-placements.story';
|
|
31
|
-
export { default as
|
|
31
|
+
export { default as MenuWithKeyboardDisplay } from './menu-with-keyboard-shortcuts.story';
|
|
32
32
|
export { default as MenuRadioItems } from './menu-radio-items.story';
|
|
33
33
|
export { default as MenuRadioAndNormal } from './menu-radio-and-normal.story';
|
|
34
34
|
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
@@ -44,7 +44,7 @@ import MenuWithCategorySrcRaw from './menu-with-category.story?raw';
|
|
|
44
44
|
import MenuWithDisabledItemSrcRaw from './menu-with-disabled-item.story?raw';
|
|
45
45
|
import MenuDividerSrcRaw from './menu-with-divider.story?raw';
|
|
46
46
|
import MenuWithIconSrcRaw from './menu-with-icon.story?raw';
|
|
47
|
-
import
|
|
47
|
+
import MenuWithKeyboardDisplaySrcRaw from './menu-with-keyboard-shortcuts.story?raw';
|
|
48
48
|
export const MenuDefaultSrc = removeLicenseHeader(MenuDefaultSrcRaw);
|
|
49
49
|
export const MenuNestedSrc = removeLicenseHeader(MenuNestedSrcRaw);
|
|
50
50
|
export const MenuWithCategorySrc = removeLicenseHeader(MenuWithCategorySrcRaw);
|
|
@@ -55,7 +55,7 @@ export const MenuInDialogSrc = removeLicenseHeader(MenuInDialogSrcRaw);
|
|
|
55
55
|
export const MenuDividerSrc = removeLicenseHeader(MenuDividerSrcRaw);
|
|
56
56
|
export const MenuWithDisabledItemSrc = removeLicenseHeader(MenuWithDisabledItemSrcRaw);
|
|
57
57
|
export const MenuPlacementsSrc = removeLicenseHeader(MenuPlacementsSrcRaw);
|
|
58
|
-
export const
|
|
58
|
+
export const MenuWithKeyboardDisplaySrc = removeLicenseHeader(MenuWithKeyboardDisplaySrcRaw);
|
|
59
59
|
export const MenuRadioItemsSrc = removeLicenseHeader(MenuRadioItemsSrcRaw);
|
|
60
60
|
export const MenuRadioAndNormalSrc = removeLicenseHeader(MenuRadioAndNormalSrcRaw);
|
|
61
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/menu/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,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B,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as MenuDefault } from './menu-default.story';\nexport { default as MenuNested } from './menu-nested.story';\nexport { default as MenuWithCategory } from './menu-with-category.story';\nexport { default as MenuWithIcon } from './menu-with-icon.story';\nexport { default as MenuCustomItems } from './menu-custom-items.story';\nexport { default as MenuInPopover } from './menu-in-popover.story';\nexport { default as MenuInDialog } from './menu-in-dialog.story';\nexport { default as MenuDivider } from './menu-with-divider.story';\nexport { default as MenuWithDisabledItem } from './menu-with-disabled-item.story';\nexport { default as MenuPlacements } from './menu-placements.story';\nexport { default as MenuWithKeyboardDisplay } from './menu-with-keyboard-shortcuts.story';\nexport { default as MenuRadioItems } from './menu-radio-items.story';\nexport { default as MenuRadioAndNormal } from './menu-radio-and-normal.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport MenuCustomItemsSrcRaw from './menu-custom-items.story?raw';\nimport MenuDefaultSrcRaw from './menu-default.story?raw';\nimport MenuInDialogSrcRaw from './menu-in-dialog.story?raw';\nimport MenuInPopoverSrcRaw from './menu-in-popover.story?raw';\nimport MenuNestedSrcRaw from './menu-nested.story?raw';\nimport MenuPlacementsSrcRaw from './menu-placements.story?raw';\nimport MenuRadioAndNormalSrcRaw from './menu-radio-and-normal.story?raw';\nimport MenuRadioItemsSrcRaw from './menu-radio-items.story?raw';\nimport MenuWithCategorySrcRaw from './menu-with-category.story?raw';\nimport MenuWithDisabledItemSrcRaw from './menu-with-disabled-item.story?raw';\nimport MenuDividerSrcRaw from './menu-with-divider.story?raw';\nimport MenuWithIconSrcRaw from './menu-with-icon.story?raw';\nimport MenuWithKeyboardDisplaySrcRaw from './menu-with-keyboard-shortcuts.story?raw';\n\nexport const MenuDefaultSrc = removeLicenseHeader(MenuDefaultSrcRaw);\nexport const MenuNestedSrc = removeLicenseHeader(MenuNestedSrcRaw);\nexport const MenuWithCategorySrc = removeLicenseHeader(MenuWithCategorySrcRaw);\nexport const MenuWithIconSrc = removeLicenseHeader(MenuWithIconSrcRaw);\nexport const MenuCustomItemsSrc = removeLicenseHeader(MenuCustomItemsSrcRaw);\nexport const MenuInPopoverSrc = removeLicenseHeader(MenuInPopoverSrcRaw);\nexport const MenuInDialogSrc = removeLicenseHeader(MenuInDialogSrcRaw);\nexport const MenuDividerSrc = removeLicenseHeader(MenuDividerSrcRaw);\nexport const MenuWithDisabledItemSrc = removeLicenseHeader(\n MenuWithDisabledItemSrcRaw,\n);\nexport const MenuPlacementsSrc = removeLicenseHeader(MenuPlacementsSrcRaw);\nexport const MenuWithKeyboardDisplaySrc = removeLicenseHeader(\n MenuWithKeyboardDisplaySrcRaw,\n);\nexport const MenuRadioItemsSrc = removeLicenseHeader(MenuRadioItemsSrcRaw);\nexport const MenuRadioAndNormalSrc = removeLicenseHeader(\n MenuRadioAndNormalSrcRaw,\n);\n"]}
|
|
@@ -29,7 +29,7 @@ export { default as TooltipTriggerButtonWrapper } from './tooltip-trigger-button
|
|
|
29
29
|
export { default as TooltipRich } from './tooltip-rich.story';
|
|
30
30
|
export { default as TooltipRichActions } from './tooltip-rich-actions.story';
|
|
31
31
|
export { default as TooltipRichLink } from './tooltip-rich-link.story';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as TooltipWithKeyboardDisplay } from './tooltip-with-keyboard-display.story';
|
|
33
33
|
import { removeLicenseHeader } from '../../_common/export-stories-utils';
|
|
34
34
|
import TooltipControlledSourceRaw from './tooltip-controlled.story?raw';
|
|
35
35
|
import TooltipDefaultSourceRaw from './tooltip-default.story?raw';
|
|
@@ -42,7 +42,7 @@ import TooltipRichSourceRaw from './tooltip-rich.story?raw';
|
|
|
42
42
|
import TooltipRichActionsSourceRaw from './tooltip-rich-actions.story?raw';
|
|
43
43
|
import TooltipRichLinkSourceRaw from './tooltip-rich-link.story?raw';
|
|
44
44
|
import TooltipTriggerButtonWrapperSourceRaw from './tooltip-trigger-button-wrapper.story?raw';
|
|
45
|
-
import
|
|
45
|
+
import TooltipWithKeyboardDisplaySourceRaw from './tooltip-with-keyboard-display.story?raw';
|
|
46
46
|
export const TooltipDefaultSource = removeLicenseHeader(TooltipDefaultSourceRaw);
|
|
47
47
|
export const TooltipDisabledSource = removeLicenseHeader(TooltipDisabledSourceRaw);
|
|
48
48
|
export const TooltipControlledSource = removeLicenseHeader(TooltipControlledSourceRaw);
|
|
@@ -53,6 +53,6 @@ export const TooltipHoverDelaySource = removeLicenseHeader(TooltipHoverDelaySour
|
|
|
53
53
|
export const TooltipRichSource = removeLicenseHeader(TooltipRichSourceRaw);
|
|
54
54
|
export const TooltipRichActionsSource = removeLicenseHeader(TooltipRichActionsSourceRaw);
|
|
55
55
|
export const TooltipRichLinkSource = removeLicenseHeader(TooltipRichLinkSourceRaw);
|
|
56
|
+
export const TooltipWithKeyboardDisplaySource = removeLicenseHeader(TooltipWithKeyboardDisplaySourceRaw);
|
|
56
57
|
export const TooltipTriggerButtonWrapperSource = removeLicenseHeader(TooltipTriggerButtonWrapperSourceRaw);
|
|
57
|
-
export const TooltipWithKeyboardShortcutSource = removeLicenseHeader(TooltipWithKeyboardShortcutSourceRaw);
|
|
58
58
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;G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A2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,0BAA0B,CAC3B,CAAC;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,oBAAoB,CAAC,CAAC;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GAAG,mBAAmB,CACzD,2BAA2B,CAC5B,CAAC;AACF,MAAM,CAAC,MAAM,qBAAqB,GAAG,mBAAmB,CACtD,wBAAwB,CACzB,CAAC;AACF,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CACjE,mCAAmC,CACpC,CAAC;AACF,MAAM,CAAC,MAAM,iCAAiC,GAAG,mBAAmB,CAClE,oCAAoC,CACrC,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nexport { default as TooltipDefault } from './tooltip-default.story';\nexport { default as TooltipDisabled } from './tooltip-disabled.story';\nexport { default as TooltipControlled } from './tooltip-controlled.story';\nexport { default as TooltipInitialOpen } from './tooltip-initial-open.story';\nexport { default as TooltipPlacements } from './tooltip-placements.story';\nexport { default as TooltipInDialog } from './tooltip-in-dialog.story';\nexport { default as TooltipHoverDelay } from './tooltip-hover-delay.story';\nexport { default as TooltipTriggerButtonWrapper } from './tooltip-trigger-button-wrapper.story';\nexport { default as TooltipRich } from './tooltip-rich.story';\nexport { default as TooltipRichActions } from './tooltip-rich-actions.story';\nexport { default as TooltipRichLink } from './tooltip-rich-link.story';\nexport { default as TooltipWithKeyboardDisplay } from './tooltip-with-keyboard-display.story';\n\nimport { removeLicenseHeader } from '../../_common/export-stories-utils';\nimport TooltipControlledSourceRaw from './tooltip-controlled.story?raw';\nimport TooltipDefaultSourceRaw from './tooltip-default.story?raw';\nimport TooltipDisabledSourceRaw from './tooltip-disabled.story?raw';\nimport TooltipHoverDelaySourceRaw from './tooltip-hover-delay.story?raw';\nimport TooltipInDialogSourceRaw from './tooltip-in-dialog.story?raw';\nimport TooltipInitialOpenSourceRaw from './tooltip-initial-open.story?raw';\nimport TooltipPlacementsSourceRaw from './tooltip-placements.story?raw';\nimport TooltipRichSourceRaw from './tooltip-rich.story?raw';\nimport TooltipRichActionsSourceRaw from './tooltip-rich-actions.story?raw';\nimport TooltipRichLinkSourceRaw from './tooltip-rich-link.story?raw';\nimport TooltipTriggerButtonWrapperSourceRaw from './tooltip-trigger-button-wrapper.story?raw';\nimport TooltipWithKeyboardDisplaySourceRaw from './tooltip-with-keyboard-display.story?raw';\n\nexport const TooltipDefaultSource = removeLicenseHeader(\n TooltipDefaultSourceRaw,\n);\nexport const TooltipDisabledSource = removeLicenseHeader(\n TooltipDisabledSourceRaw,\n);\nexport const TooltipControlledSource = removeLicenseHeader(\n TooltipControlledSourceRaw,\n);\nexport const TooltipInitialOpenSource = removeLicenseHeader(\n TooltipInitialOpenSourceRaw,\n);\nexport const TooltipPlacementsSource = removeLicenseHeader(\n TooltipPlacementsSourceRaw,\n);\nexport const TooltipInDialogSource = removeLicenseHeader(\n TooltipInDialogSourceRaw,\n);\nexport const TooltipHoverDelaySource = removeLicenseHeader(\n TooltipHoverDelaySourceRaw,\n);\nexport const TooltipRichSource = removeLicenseHeader(TooltipRichSourceRaw);\nexport const TooltipRichActionsSource = removeLicenseHeader(\n TooltipRichActionsSourceRaw,\n);\nexport const TooltipRichLinkSource = removeLicenseHeader(\n TooltipRichLinkSourceRaw,\n);\nexport const TooltipWithKeyboardDisplaySource = removeLicenseHeader(\n TooltipWithKeyboardDisplaySourceRaw,\n);\nexport const TooltipTriggerButtonWrapperSource = removeLicenseHeader(\n TooltipTriggerButtonWrapperSourceRaw,\n);\n"]}
|
|
@@ -25,4 +25,4 @@ const Component = () => {
|
|
|
25
25
|
return (_jsxs(Tooltip, { type: "simple", children: [_jsx(Tooltip.Trigger, { children: "Hover me!" }), _jsxs(Tooltip.Content, { children: ["This is a keyboard shortcut:", ' ', _jsx(Kbd, { modifierKeys: ['meta'], keys: ['B'] })] })] }));
|
|
26
26
|
};
|
|
27
27
|
export default Component;
|
|
28
|
-
//# sourceMappingURL=tooltip-with-keyboard-
|
|
28
|
+
//# sourceMappingURL=tooltip-with-keyboard-display.story.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-with-keyboard-display.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-with-keyboard-display.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,MAAC,OAAO,CAAC,OAAO,+CACe,GAAG,EAChC,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAI,IAC5B,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Kbd, Tooltip } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Tooltip type=\"simple\">\n <Tooltip.Trigger>Hover me!</Tooltip.Trigger>\n <Tooltip.Content>\n This is a keyboard shortcut:{' '}\n <Kbd modifierKeys={['meta']} keys={['B']} />\n </Tooltip.Content>\n </Tooltip>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -22,6 +22,6 @@ import type React from 'react';
|
|
|
22
22
|
import { type PolymorphicCommonProps } from '../_common/types';
|
|
23
23
|
import { type IconButtonBaseProps } from '../icon-button-base';
|
|
24
24
|
type CleanIconButtonButtonProps = Omit<IconButtonBaseProps, 'iconButtonVariant' | 'isFloating'>;
|
|
25
|
-
export declare const CleanIconButton: <T extends React.ElementType = "button">({ children, as, isLoading, isDisabled, size, isActive, variant, description, tooltipProps, className, style, htmlAttributes, onClick, ref, ...restProps }: PolymorphicCommonProps<T, CleanIconButtonButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const CleanIconButton: <T extends React.ElementType = "button">({ children, as, isLoading, isDisabled, size, isActive, variant, description, descriptionKdbProps, tooltipProps, className, style, htmlAttributes, onClick, ref, ...restProps }: PolymorphicCommonProps<T, CleanIconButtonButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=CleanIconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CleanIconButton.d.ts","sourceRoot":"","sources":["../../../src/clean-icon-button/CleanIconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,KAAK,0BAA0B,GAAG,IAAI,CACpC,mBAAmB,EACnB,mBAAmB,GAAG,YAAY,CACnC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"CleanIconButton.d.ts","sourceRoot":"","sources":["../../../src/clean-icon-button/CleanIconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,KAAK,0BAA0B,GAAG,IAAI,CACpC,mBAAmB,EACnB,mBAAmB,GAAG,YAAY,CACnC,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,gLAkBrE,sBAAsB,CAAC,CAAC,EAAE,0BAA0B,CAAC,4CAuBvD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* Copyright (c) "Neo4j"
|
|
4
|
+
* Neo4j Sweden AB [http://neo4j.com]
|
|
5
|
+
*
|
|
6
|
+
* This file is part of Neo4j.
|
|
7
|
+
*
|
|
8
|
+
* Neo4j is free software: you can redistribute it and/or modify
|
|
9
|
+
* it under the terms of the GNU General Public License as published by
|
|
10
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
11
|
+
* (at your option) any later version.
|
|
12
|
+
*
|
|
13
|
+
* This program is distributed in the hope that it will be useful,
|
|
14
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
* GNU General Public License for more details.
|
|
17
|
+
*
|
|
18
|
+
* You should have received a copy of the GNU General Public License
|
|
19
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
*/
|
|
21
|
+
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
|
+
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export default Component;
|
|
24
|
+
//# sourceMappingURL=clean-icon-button-keyboard-display.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clean-icon-button-keyboard-display.story.d.ts","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/clean-icon-button-keyboard-display.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAKjD,QAAA,MAAM,SAAS,+CAcd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -24,10 +24,12 @@ export { default as CleanIconButtonDisabled } from './clean-icon-button-disabled
|
|
|
24
24
|
export { default as CleanIconButtonLoading } from './clean-icon-button-loading.story';
|
|
25
25
|
export { default as CleanIconButtonSizes } from './clean-icon-button-sizes.story';
|
|
26
26
|
export { default as CleanIconButtonTone } from './clean-icon-button-tone.story';
|
|
27
|
+
export { default as CleanIconButtonKeyboardDisplay } from './clean-icon-button-keyboard-display.story';
|
|
27
28
|
export declare const CleanIconButtonActiveSrc: string;
|
|
28
29
|
export declare const CleanIconButtonDefaultSrc: string;
|
|
29
30
|
export declare const CleanIconButtonDisabledSrc: string;
|
|
30
31
|
export declare const CleanIconButtonLoadingSrc: string;
|
|
31
32
|
export declare const CleanIconButtonSizesSrc: string;
|
|
32
33
|
export declare const CleanIconButtonToneSrc: string;
|
|
34
|
+
export declare const CleanIconButtonKeyboardDisplaySrc: string;
|
|
33
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/clean-icon-button/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAWvG,eAAO,MAAM,wBAAwB,QAEpC,CAAC;AACF,eAAO,MAAM,yBAAyB,QAErC,CAAC;AACF,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,yBAAyB,QAErC,CAAC;AACF,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,sBAAsB,QAElC,CAAC;AACF,eAAO,MAAM,iCAAiC,QAE7C,CAAC"}
|
|
@@ -20,16 +20,18 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import React from 'react';
|
|
22
22
|
import { type ButtonSizes } from '../button';
|
|
23
|
+
import { Kbd } from '../kbd';
|
|
23
24
|
import { Tooltip } from '../tooltip';
|
|
24
25
|
interface ClipboardButtonProps {
|
|
25
26
|
/** The text that should be set to users clipboard */
|
|
26
27
|
textToCopy: string;
|
|
28
|
+
descriptionKdbProps?: React.ComponentProps<typeof Kbd>;
|
|
27
29
|
tooltipProps?: Omit<React.ComponentProps<typeof Tooltip>, 'children'>;
|
|
28
30
|
isDisabled?: boolean;
|
|
29
31
|
size?: ButtonSizes;
|
|
30
32
|
htmlAttributes?: React.ComponentPropsWithoutRef<'button'>;
|
|
31
33
|
type?: 'outlined-button' | 'clean-icon-button' | 'icon-button';
|
|
32
34
|
}
|
|
33
|
-
export declare const ClipboardButton: ({ textToCopy, isDisabled, size, tooltipProps, htmlAttributes, type, }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const ClipboardButton: ({ textToCopy, descriptionKdbProps, isDisabled, size, tooltipProps, htmlAttributes, type, }: ClipboardButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
36
|
export {};
|
|
35
37
|
//# sourceMappingURL=ClipboardButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClipboardButton.d.ts","sourceRoot":"","sources":["../../../src/clipboard-button/ClipboardButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"ClipboardButton.d.ts","sourceRoot":"","sources":["../../../src/clipboard-button/ClipboardButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAK7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAE7B,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAuMrC,UAAU,oBAAoB;IAC5B,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;IACvD,YAAY,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,EAAE,UAAU,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,cAAc,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,aAAa,CAAC;CAChE;AAED,eAAO,MAAM,eAAe,GAAI,4FAQ7B,oBAAoB,4CAkDtB,CAAC"}
|
|
@@ -22,6 +22,6 @@ import type React from 'react';
|
|
|
22
22
|
import { type PolymorphicCommonProps } from '../_common/types';
|
|
23
23
|
import { type IconButtonBaseProps } from '../icon-button-base';
|
|
24
24
|
type IconButtonButtonProps = Omit<IconButtonBaseProps, 'iconButtonVariant'>;
|
|
25
|
-
export declare const IconButton: <T extends React.ElementType = "button">({ children, as, isLoading, isDisabled, size, isFloating, isActive, variant, description, tooltipProps, className, style, htmlAttributes, onClick, ref, ...restProps }: PolymorphicCommonProps<T, IconButtonButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export declare const IconButton: <T extends React.ElementType = "button">({ children, as, isLoading, isDisabled, size, isFloating, isActive, variant, description, descriptionKdbProps, tooltipProps, className, style, htmlAttributes, onClick, ref, ...restProps }: PolymorphicCommonProps<T, IconButtonButtonProps>) => import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
export {};
|
|
27
27
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/icon-button/IconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,KAAK,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAE5E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/icon-button/IconButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE/E,KAAK,qBAAqB,GAAG,IAAI,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;AAE5E,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,4LAmBhE,sBAAsB,CAAC,CAAC,EAAE,qBAAqB,CAAC,4CAwBlD,CAAC"}
|
|
@@ -19,9 +19,10 @@
|
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
import
|
|
22
|
+
import React from 'react';
|
|
23
23
|
import { type PolymorphicCommonProps, type TooltipObjectProps } from '../_common/types';
|
|
24
24
|
import { type ButtonSizes } from '../button';
|
|
25
|
+
import { Kbd } from '../kbd';
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
28
|
*
|
|
@@ -41,8 +42,10 @@ export type IconButtonBaseProps = {
|
|
|
41
42
|
isFloating?: boolean;
|
|
42
43
|
/** Active - used for open context menus for example */
|
|
43
44
|
isActive?: boolean;
|
|
44
|
-
/** A string that will be shown as a tooltip when hovering over the button
|
|
45
|
-
description:
|
|
45
|
+
/** A string that will be shown as a tooltip when hovering over the button it also acts as an aria-label- {@link https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label} */
|
|
46
|
+
description: React.ReactNode;
|
|
47
|
+
/** The Kbd components that will be displayed in the tooltip after the description text, this does not include the keyboard shortcut functionality this only displays the Kbd components. */
|
|
48
|
+
descriptionKdbProps?: React.ComponentProps<typeof Kbd>;
|
|
46
49
|
/** Variant of the button */
|
|
47
50
|
variant?: 'neutral' | 'danger';
|
|
48
51
|
/** Variant of the button */
|
|
@@ -56,5 +59,5 @@ export type IconButtonBaseProps = {
|
|
|
56
59
|
/** Accessible message for screen readers when the button is in a loading state */
|
|
57
60
|
loadingMessage?: string;
|
|
58
61
|
};
|
|
59
|
-
export declare const IconButtonBase: <T extends React.ElementType = "button">({ children, as, iconButtonVariant, isLoading, isDisabled, size, isFloating, isActive, description, tooltipProps, className, style, variant, htmlAttributes, onClick, ref, loadingMessage, ...restProps }: PolymorphicCommonProps<T, IconButtonBaseProps>) => import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare const IconButtonBase: <T extends React.ElementType = "button">({ children, as, iconButtonVariant, isLoading, isDisabled, size, isFloating, isActive, description, descriptionKdbProps, tooltipProps, className, style, variant, htmlAttributes, onClick, ref, loadingMessage, ...restProps }: PolymorphicCommonProps<T, IconButtonBaseProps>) => import("react/jsx-runtime").JSX.Element;
|
|
60
63
|
//# sourceMappingURL=IconButtonBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButtonBase.d.ts","sourceRoot":"","sources":["../../../src/icon-button-base/IconButtonBase.tsx"],"names":[],"mappings":"AAqBA,OAAO,
|
|
1
|
+
{"version":3,"file":"IconButtonBase.d.ts","sourceRoot":"","sources":["../../../src/icon-button-base/IconButtonBase.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAGrC,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACxB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG7B;;;;;;GAMG;AAEH,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,kFAAkF;IAClF,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,qBAAqB;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;IAEnB,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0MAA0M;IAC1M,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,4LAA4L;IAC5L,mBAAmB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC;IAEvD,4BAA4B;IAC5B,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAE/B,4BAA4B;IAC5B,iBAAiB,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAExC;;OAEG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAElC,oBAAoB;IACpB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAEvE,kFAAkF;IAClF,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,QAAQ,EAAE,+NAsBpE,sBAAsB,CAAC,CAAC,EAAE,mBAAmB,CAAC,4CAsGhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../src/kbd/Kbd.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAErB,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,eAAe,CAAC;CACtB,CAAC;
|
|
1
|
+
{"version":3,"file":"Kbd.d.ts","sourceRoot":"","sources":["../../../src/kbd/Kbd.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAGL,KAAK,MAAM,EACX,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAErB,KAAK,QAAQ,GAAG;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IACzB;;OAEG;IACH,EAAE,CAAC,EAAE,eAAe,CAAC;CACtB,CAAC;AAGF,eAAO,MAAM,GAAG,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAAE,qFAUvD,sBAAsB,CAAC,CAAC,EAAE,QAAQ,CAAC,4CAwErC,CAAC"}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
* You should have received a copy of the GNU General Public License
|
|
19
19
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
20
|
*/
|
|
21
|
+
import type { ReactNode } from 'react';
|
|
21
22
|
export type OperatingSystem = 'mac' | 'windows' | 'linux';
|
|
22
23
|
export type KbdKey = 'meta' | 'shift' | 'ctrl' | 'enter' | 'delete' | 'escape' | 'tab' | 'capslock' | 'up' | 'right' | 'down' | 'left' | 'pageup' | 'pagedown' | 'home' | 'end' | 'space' | 'fn' | 'alt';
|
|
23
24
|
/**
|
|
@@ -32,4 +33,5 @@ export declare function getKbdKeysMap(os?: OperatingSystem): Record<KbdKey, stri
|
|
|
32
33
|
* Returns OS-aware keyboard key labels
|
|
33
34
|
*/
|
|
34
35
|
export declare function getKbdKeysLabelMap(os?: OperatingSystem): Record<KbdKey, string>;
|
|
36
|
+
export declare function getKbdScreenReaderFriendlyText(keys: readonly (KbdKey | ReactNode)[] | undefined, modifierKeys: readonly KbdKey[] | undefined, os?: OperatingSystem): string;
|
|
35
37
|
//# sourceMappingURL=kbd-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kbd-utils.d.ts","sourceRoot":"","sources":["../../../src/kbd/kbd-utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,SAAS,GAAG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AE,eAA4B,GAC/B,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAsBxB;AAkBD,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,SAAS,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,GAAG,SAAS,EACjD,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,EAC3C,EAAE,GAAE,eAA4B,GAC/B,MAAM,CAcR"}
|
|
@@ -28,7 +28,7 @@ export { default as MenuInDialog } from './menu-in-dialog.story';
|
|
|
28
28
|
export { default as MenuDivider } from './menu-with-divider.story';
|
|
29
29
|
export { default as MenuWithDisabledItem } from './menu-with-disabled-item.story';
|
|
30
30
|
export { default as MenuPlacements } from './menu-placements.story';
|
|
31
|
-
export { default as
|
|
31
|
+
export { default as MenuWithKeyboardDisplay } from './menu-with-keyboard-shortcuts.story';
|
|
32
32
|
export { default as MenuRadioItems } from './menu-radio-items.story';
|
|
33
33
|
export { default as MenuRadioAndNormal } from './menu-radio-and-normal.story';
|
|
34
34
|
export declare const MenuDefaultSrc: string;
|
|
@@ -41,7 +41,7 @@ export declare const MenuInDialogSrc: string;
|
|
|
41
41
|
export declare const MenuDividerSrc: string;
|
|
42
42
|
export declare const MenuWithDisabledItemSrc: string;
|
|
43
43
|
export declare const MenuPlacementsSrc: string;
|
|
44
|
-
export declare const
|
|
44
|
+
export declare const MenuWithKeyboardDisplaySrc: string;
|
|
45
45
|
export declare const MenuRadioItemsSrc: string;
|
|
46
46
|
export declare const MenuRadioAndNormalSrc: string;
|
|
47
47
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/menu/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,qBAA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AC;AAClF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAiB9E,eAAO,MAAM,cAAc,QAAyC,CAAC;AACrE,eAAO,MAAM,aAAa,QAAwC,CAAC;AACnE,eAAO,MAAM,mBAAmB,QAA8C,CAAC;AAC/E,eAAO,MAAM,eAAe,QAA0C,CAAC;AACvE,eAAO,MAAM,kBAAkB,QAA6C,CAAC;AAC7E,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AACzE,eAAO,MAAM,eAAe,QAA0C,CAAC;AACvE,eAAO,MAAM,cAAc,QAAyC,CAAC;AACrE,eAAO,MAAM,uBAAuB,QAEnC,CAAC;AACF,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AACF,eAAO,MAAM,iBAAiB,QAA4C,CAAC;AAC3E,eAAO,MAAM,qBAAqB,QAEjC,CAAC"}
|
|
@@ -29,7 +29,7 @@ export { default as TooltipTriggerButtonWrapper } from './tooltip-trigger-button
|
|
|
29
29
|
export { default as TooltipRich } from './tooltip-rich.story';
|
|
30
30
|
export { default as TooltipRichActions } from './tooltip-rich-actions.story';
|
|
31
31
|
export { default as TooltipRichLink } from './tooltip-rich-link.story';
|
|
32
|
-
export { default as
|
|
32
|
+
export { default as TooltipWithKeyboardDisplay } from './tooltip-with-keyboard-display.story';
|
|
33
33
|
export declare const TooltipDefaultSource: string;
|
|
34
34
|
export declare const TooltipDisabledSource: string;
|
|
35
35
|
export declare const TooltipControlledSource: string;
|
|
@@ -40,6 +40,6 @@ export declare const TooltipHoverDelaySource: string;
|
|
|
40
40
|
export declare const TooltipRichSource: string;
|
|
41
41
|
export declare const TooltipRichActionsSource: string;
|
|
42
42
|
export declare const TooltipRichLinkSource: string;
|
|
43
|
+
export declare const TooltipWithKeyboardDisplaySource: string;
|
|
43
44
|
export declare const TooltipTriggerButtonWrapperSource: string;
|
|
44
|
-
export declare const TooltipWithKeyboardShortcutSource: string;
|
|
45
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/stories/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG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AE7C,CAAC"}
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
import '@neo4j-ndl/base/lib/neo4j-ds-styles.css';
|
|
22
22
|
declare const Component: () => import("react/jsx-runtime").JSX.Element;
|
|
23
23
|
export default Component;
|
|
24
|
-
//# sourceMappingURL=tooltip-with-keyboard-
|
|
24
|
+
//# sourceMappingURL=tooltip-with-keyboard-display.story.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip-with-keyboard-display.story.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-with-keyboard-display.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAUd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neo4j-ndl/react",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.45",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "React implementation of Neo4j Design System",
|
|
6
6
|
"keywords": [
|
|
@@ -51,33 +51,33 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@axe-core/playwright": "4.10.2",
|
|
54
|
-
"@playwright/experimental-ct-react": "1.56.
|
|
55
|
-
"@playwright/test": "1.56.
|
|
56
|
-
"@storybook/addon-docs": "10.2.
|
|
57
|
-
"@storybook/react-vite": "10.2.
|
|
54
|
+
"@playwright/experimental-ct-react": "1.56.1",
|
|
55
|
+
"@playwright/test": "1.56.1",
|
|
56
|
+
"@storybook/addon-docs": "10.2.19",
|
|
57
|
+
"@storybook/react-vite": "10.2.19",
|
|
58
58
|
"@svgr/cli": "6.5.1",
|
|
59
|
-
"@tanstack/react-virtual": "3.13.
|
|
59
|
+
"@tanstack/react-virtual": "3.13.23",
|
|
60
60
|
"@testing-library/jest-dom": "6.9.1",
|
|
61
|
-
"@testing-library/react": "16.3.
|
|
62
|
-
"@types/react": "19.2.
|
|
61
|
+
"@testing-library/react": "16.3.2",
|
|
62
|
+
"@types/react": "19.2.14",
|
|
63
63
|
"@types/react-dom": "19.2.3",
|
|
64
64
|
"@types/react-syntax-highlighter": "15.5.13",
|
|
65
65
|
"@types/react-table": "7.7.20",
|
|
66
66
|
"@types/sinon": "17.0.4",
|
|
67
67
|
"@types/tinycolor2": "1.4.6",
|
|
68
|
-
"@types/yargs": "17.0.
|
|
69
|
-
"@vitejs/plugin-react": "5.1.
|
|
68
|
+
"@types/yargs": "17.0.35",
|
|
69
|
+
"@vitejs/plugin-react": "5.1.4",
|
|
70
70
|
"a11y-contrast-color": "1.1.0",
|
|
71
71
|
"ajv": "8.17.1",
|
|
72
|
-
"chromatic": "13.3.
|
|
73
|
-
"happo": "6.2.
|
|
72
|
+
"chromatic": "13.3.5",
|
|
73
|
+
"happo": "6.2.6",
|
|
74
74
|
"jsdom": "26.1.0",
|
|
75
|
-
"leva": "0.10.
|
|
76
|
-
"react": "19.2.
|
|
77
|
-
"react-dom": "19.2.
|
|
75
|
+
"leva": "0.10.1",
|
|
76
|
+
"react": "19.2.5",
|
|
77
|
+
"react-dom": "19.2.5",
|
|
78
78
|
"react-docgen-typescript": "2.4.0",
|
|
79
79
|
"resize-observer-polyfill": "1.5.1",
|
|
80
|
-
"sinon": "21.0.
|
|
80
|
+
"sinon": "21.0.3",
|
|
81
81
|
"tsx": "4.21.0",
|
|
82
82
|
"typescript": "5.9.3",
|
|
83
83
|
"vitest": "3.2.4",
|
|
@@ -87,30 +87,30 @@
|
|
|
87
87
|
"@tanstack/react-table": "8.21.3",
|
|
88
88
|
"react": ">=19.0.0",
|
|
89
89
|
"react-dom": ">=19.0.0",
|
|
90
|
-
"@neo4j-ndl/base": "^4.9.
|
|
90
|
+
"@neo4j-ndl/base": "^4.9.22"
|
|
91
91
|
},
|
|
92
92
|
"dependencies": {
|
|
93
93
|
"@dnd-kit/core": "6.3.1",
|
|
94
94
|
"@dnd-kit/sortable": "10.0.0",
|
|
95
|
-
"@floating-ui/react": "0.27.
|
|
96
|
-
"@floating-ui/react-dom": "2.1.
|
|
95
|
+
"@floating-ui/react": "0.27.19",
|
|
96
|
+
"@floating-ui/react-dom": "2.1.8",
|
|
97
97
|
"@heroicons/react": "2.2.0",
|
|
98
98
|
"@neo4j-devtools/word-color": "0.0.8",
|
|
99
|
-
"@uiw/react-color": "2.8.
|
|
99
|
+
"@uiw/react-color": "2.8.1",
|
|
100
100
|
"classnames": "2.5.1",
|
|
101
101
|
"date-fns": "4.1.0",
|
|
102
102
|
"detect-browser": "5.3.0",
|
|
103
|
-
"eyedropper-polyfill": "1.1.
|
|
103
|
+
"eyedropper-polyfill": "1.1.5",
|
|
104
104
|
"re-resizable": "6.11.2",
|
|
105
|
-
"react-aria": "3.43.
|
|
105
|
+
"react-aria": "3.43.2",
|
|
106
106
|
"react-datepicker": "8.7.0",
|
|
107
107
|
"react-dropzone": "14.3.8",
|
|
108
|
-
"react-focus-lock": "2.13.
|
|
108
|
+
"react-focus-lock": "2.13.7",
|
|
109
109
|
"react-select": "5.10.2",
|
|
110
110
|
"react-stately": "3.41.0",
|
|
111
|
-
"react-syntax-highlighter": "16.1.
|
|
111
|
+
"react-syntax-highlighter": "16.1.1",
|
|
112
112
|
"sonner": "2.0.7",
|
|
113
|
-
"streamdown": "1.6.
|
|
113
|
+
"streamdown": "1.6.11",
|
|
114
114
|
"tinycolor2": "1.6.0",
|
|
115
115
|
"usehooks-ts": "3.1.1"
|
|
116
116
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-with-keyboard-shortcut.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-with-keyboard-shortcut.story.tsx"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mDAAiD;AAEjD,4CAAgD;AAEhD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,wBAAC,eAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,uBAAC,eAAO,CAAC,OAAO,4BAA4B,EAC5C,wBAAC,eAAO,CAAC,OAAO,+CACe,GAAG,EAChC,uBAAC,WAAG,IAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAI,IAC5B,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Kbd, Tooltip } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Tooltip type=\"simple\">\n <Tooltip.Trigger>Hover me!</Tooltip.Trigger>\n <Tooltip.Content>\n This is a keyboard shortcut:{' '}\n <Kbd modifierKeys={['meta']} keys={['B']} />\n </Tooltip.Content>\n </Tooltip>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-with-keyboard-shortcut.story.js","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-with-keyboard-shortcut.story.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAEjD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,MAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,aACpB,KAAC,OAAO,CAAC,OAAO,4BAA4B,EAC5C,MAAC,OAAO,CAAC,OAAO,+CACe,GAAG,EAChC,KAAC,GAAG,IAAC,YAAY,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAI,IAC5B,IACV,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC","sourcesContent":["/**\n *\n * Copyright (c) \"Neo4j\"\n * Neo4j Sweden AB [http://neo4j.com]\n *\n * This file is part of Neo4j.\n *\n * Neo4j is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\nimport '@neo4j-ndl/base/lib/neo4j-ds-styles.css';\n\nimport { Kbd, Tooltip } from '@neo4j-ndl/react';\n\nconst Component = () => {\n return (\n <Tooltip type=\"simple\">\n <Tooltip.Trigger>Hover me!</Tooltip.Trigger>\n <Tooltip.Content>\n This is a keyboard shortcut:{' '}\n <Kbd modifierKeys={['meta']} keys={['B']} />\n </Tooltip.Content>\n </Tooltip>\n );\n};\n\nexport default Component;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-with-keyboard-shortcut.story.d.ts","sourceRoot":"","sources":["../../../../src/tooltip/stories/tooltip-with-keyboard-shortcut.story.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,yCAAyC,CAAC;AAIjD,QAAA,MAAM,SAAS,+CAUd,CAAC;AAEF,eAAe,SAAS,CAAC"}
|