@momentum-design/components 0.33.3 → 0.35.0

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/dist/index.d.ts CHANGED
@@ -22,11 +22,12 @@ import Tab from './components/tab';
22
22
  import Text from './components/text';
23
23
  import ThemeProvider from './components/themeprovider';
24
24
  import Toggle from './components/toggle';
25
+ import Tooltip from './components/tooltip';
25
26
  import VirtualizedList from './components/virtualizedlist';
26
27
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
27
28
  import Textarea from './components/textarea';
28
29
  import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.types';
29
30
  import type { TextType } from './components/text/text.types';
30
- export { Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Divider, FormfieldGroup, Icon, IconProvider, Input, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Textarea, };
31
+ export { Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Divider, FormfieldGroup, Icon, IconProvider, Input, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Textarea, Tooltip, };
31
32
  export type { TextType, SpinnerSize, SpinnerVariant, };
32
33
  export { inMemoryCache, webAPIIconsCache };
package/dist/index.js CHANGED
@@ -22,8 +22,9 @@ import Tab from './components/tab';
22
22
  import Text from './components/text';
23
23
  import ThemeProvider from './components/themeprovider';
24
24
  import Toggle from './components/toggle';
25
+ import Tooltip from './components/tooltip';
25
26
  import VirtualizedList from './components/virtualizedlist';
26
27
  import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
27
28
  import Textarea from './components/textarea';
28
- export { Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Divider, FormfieldGroup, Icon, IconProvider, Input, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Textarea, };
29
+ export { Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Divider, FormfieldGroup, Icon, IconProvider, Input, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Textarea, Tooltip, };
29
30
  export { inMemoryCache, webAPIIconsCache };
@@ -25,4 +25,5 @@ export { default as Text } from './text';
25
25
  export { default as Textarea } from './textarea';
26
26
  export { default as ThemeProvider } from './themeprovider';
27
27
  export { default as Toggle } from './toggle';
28
+ export { default as Tooltip } from './tooltip';
28
29
  export { default as VirtualizedList } from './virtualizedlist';
@@ -25,4 +25,5 @@ export { default as Text } from './text';
25
25
  export { default as Textarea } from './textarea';
26
26
  export { default as ThemeProvider } from './themeprovider';
27
27
  export { default as Toggle } from './toggle';
28
+ export { default as Tooltip } from './tooltip';
28
29
  export { default as VirtualizedList } from './virtualizedlist';
@@ -0,0 +1,17 @@
1
+ import Component from '../../components/tooltip';
2
+ /**
3
+ * A tooltip is triggered by mouse hover or by keyboard focus
4
+ * and will disappear upon mouse exit or focus change.
5
+ *
6
+ * Note: Tooltips cannot contain content that can be focused or interacted with.
7
+ *
8
+ * @tagname mdc-tooltip
9
+ *
10
+ * @cssproperty --mdc-tooltip-max-width - The maximum width of the tooltip.
11
+ * @cssproperty --mdc-tooltip-padding - The padding of the tooltip.
12
+ * @cssproperty --mdc-tooltip-text-color - The text color of the tooltip.
13
+ * @cssproperty --mdc-tooltip-text-color-contrast - The text color of the tooltip when the color is contrast.
14
+ *
15
+ */
16
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
17
+ export default reactWrapper;
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/tooltip';
4
+ import { TAG_NAME } from '../../components/tooltip/tooltip.constants';
5
+ /**
6
+ * A tooltip is triggered by mouse hover or by keyboard focus
7
+ * and will disappear upon mouse exit or focus change.
8
+ *
9
+ * Note: Tooltips cannot contain content that can be focused or interacted with.
10
+ *
11
+ * @tagname mdc-tooltip
12
+ *
13
+ * @cssproperty --mdc-tooltip-max-width - The maximum width of the tooltip.
14
+ * @cssproperty --mdc-tooltip-padding - The padding of the tooltip.
15
+ * @cssproperty --mdc-tooltip-text-color - The text color of the tooltip.
16
+ * @cssproperty --mdc-tooltip-text-color-contrast - The text color of the tooltip when the color is contrast.
17
+ *
18
+ */
19
+ const reactWrapper = createComponent({
20
+ tagName: TAG_NAME,
21
+ elementClass: Component,
22
+ react: React,
23
+ events: {},
24
+ displayName: 'Tooltip',
25
+ });
26
+ export default reactWrapper;
package/package.json CHANGED
@@ -38,5 +38,5 @@
38
38
  "lit": "^3.2.0",
39
39
  "uuid": "^11.0.5"
40
40
  },
41
- "version": "0.33.3"
41
+ "version": "0.35.0"
42
42
  }