@momentum-design/components 0.43.0 → 0.43.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/dist/browser/index.js +191 -153
- package/dist/browser/index.js.map +4 -4
- package/dist/components/alertchip/alertchip.styles.js +1 -0
- package/dist/components/chip/chip.styles.js +1 -0
- package/dist/components/input/input.component.d.ts +3 -2
- package/dist/components/input/input.component.js +35 -34
- package/dist/components/input/input.constants.d.ts +11 -1
- package/dist/components/input/input.constants.js +11 -1
- package/dist/components/input/input.styles.js +1 -0
- package/dist/components/input/input.types.d.ts +4 -2
- package/dist/components/inputchip/inputchip.component.d.ts +1 -4
- package/dist/components/inputchip/inputchip.component.js +3 -8
- package/dist/components/inputchip/inputchip.styles.js +1 -1
- package/dist/components/searchfield/index.d.ts +10 -0
- package/dist/components/searchfield/index.js +7 -0
- package/dist/components/searchfield/searchfield.component.d.ts +36 -0
- package/dist/components/searchfield/searchfield.component.js +98 -0
- package/dist/components/searchfield/searchfield.constants.d.ts +7 -0
- package/dist/components/searchfield/searchfield.constants.js +9 -0
- package/dist/components/searchfield/searchfield.styles.d.ts +2 -0
- package/dist/components/searchfield/searchfield.styles.js +30 -0
- package/dist/custom-elements.json +1475 -287
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +2 -1
- package/dist/react/inputchip/index.d.ts +2 -9
- package/dist/react/inputchip/index.js +2 -9
- package/dist/react/searchfield/index.d.ts +21 -0
- package/dist/react/searchfield/index.js +30 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -33,6 +33,7 @@ import Progressbar from './components/progressbar';
|
|
33
33
|
import Option from './components/option';
|
34
34
|
import OptGroup from './components/optgroup';
|
35
35
|
import Textarea from './components/textarea';
|
36
|
+
import Searchfield from './components/searchfield';
|
36
37
|
import Brandvisual from './components/brandvisual';
|
37
38
|
import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.types';
|
38
39
|
import type { TextType } from './components/text/text.types';
|
@@ -41,6 +42,6 @@ import type { BadgeType } from './components/badge/badge.types';
|
|
41
42
|
import type { IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor } from './components/button/button.types';
|
42
43
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
43
44
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
44
|
-
export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, Brandvisual, };
|
45
|
+
export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, Searchfield, Brandvisual, };
|
45
46
|
export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
|
46
47
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/index.js
CHANGED
@@ -34,11 +34,12 @@ import Progressbar from './components/progressbar';
|
|
34
34
|
import Option from './components/option';
|
35
35
|
import OptGroup from './components/optgroup';
|
36
36
|
import Textarea from './components/textarea';
|
37
|
+
import Searchfield from './components/searchfield';
|
37
38
|
import Brandvisual from './components/brandvisual';
|
38
39
|
// Constants / Utils Imports
|
39
40
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
40
41
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
41
42
|
// Components Exports
|
42
|
-
export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, Brandvisual, };
|
43
|
+
export { AlertChip, Avatar, AvatarButton, Badge, Bullet, Button, Checkbox, Chip, Coachmark, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Input, InputChip, Link, List, ListItem, Marker, Popover, Presence, Radio, RadioGroup, Spinner, Tab, Text, ThemeProvider, Toggle, VirtualizedList, Option, OptGroup, Progressbar, Textarea, Tooltip, Searchfield, Brandvisual, };
|
43
44
|
// Constants / Utils Exports
|
44
45
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as AvatarButton } from './avatarbutton';
|
3
2
|
export { default as Avatar } from './avatar';
|
3
|
+
export { default as AvatarButton } from './avatarbutton';
|
4
4
|
export { default as Badge } from './badge';
|
5
5
|
export { default as Brandvisual } from './brandvisual';
|
6
6
|
export { default as Bullet } from './bullet';
|
@@ -28,6 +28,7 @@ export { default as Presence } from './presence';
|
|
28
28
|
export { default as Progressbar } from './progressbar';
|
29
29
|
export { default as Radio } from './radio';
|
30
30
|
export { default as RadioGroup } from './radiogroup';
|
31
|
+
export { default as Searchfield } from './searchfield';
|
31
32
|
export { default as Spinner } from './spinner';
|
32
33
|
export { default as Tab } from './tab';
|
33
34
|
export { default as Text } from './text';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as AvatarButton } from './avatarbutton';
|
3
2
|
export { default as Avatar } from './avatar';
|
3
|
+
export { default as AvatarButton } from './avatarbutton';
|
4
4
|
export { default as Badge } from './badge';
|
5
5
|
export { default as Brandvisual } from './brandvisual';
|
6
6
|
export { default as Bullet } from './bullet';
|
@@ -28,6 +28,7 @@ export { default as Presence } from './presence';
|
|
28
28
|
export { default as Progressbar } from './progressbar';
|
29
29
|
export { default as Radio } from './radio';
|
30
30
|
export { default as RadioGroup } from './radiogroup';
|
31
|
+
export { default as Searchfield } from './searchfield';
|
31
32
|
export { default as Spinner } from './spinner';
|
32
33
|
export { default as Tab } from './tab';
|
33
34
|
export { default as Text } from './text';
|
@@ -12,10 +12,7 @@ import Component from '../../components/inputchip';
|
|
12
12
|
* @dependency mdc-icon
|
13
13
|
* @dependency mdc-text
|
14
14
|
*
|
15
|
-
* @event
|
16
|
-
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the close button.
|
17
|
-
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the close button.
|
18
|
-
* @event focus - (React: onFocus) This event is dispatched when the close button receives focus.
|
15
|
+
* @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.
|
19
16
|
*
|
20
17
|
* @cssproperty --mdc-chip-color - The color of the chip.
|
21
18
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
@@ -23,10 +20,6 @@ import Component from '../../components/inputchip';
|
|
23
20
|
*
|
24
21
|
*/
|
25
22
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
26
|
-
|
27
|
-
onClick: string;
|
28
|
-
onKeyDown: string;
|
29
|
-
onKeyUp: string;
|
30
|
-
onFocus: string;
|
23
|
+
onRemove: string;
|
31
24
|
}>;
|
32
25
|
export default reactWrapper;
|
@@ -15,10 +15,7 @@ import { TAG_NAME } from '../../components/inputchip/inputchip.constants';
|
|
15
15
|
* @dependency mdc-icon
|
16
16
|
* @dependency mdc-text
|
17
17
|
*
|
18
|
-
* @event
|
19
|
-
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the close button.
|
20
|
-
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the close button.
|
21
|
-
* @event focus - (React: onFocus) This event is dispatched when the close button receives focus.
|
18
|
+
* @event remove - This event is dispatched when the close button is activated. It bubbles and is composed.
|
22
19
|
*
|
23
20
|
* @cssproperty --mdc-chip-color - The color of the chip.
|
24
21
|
* @cssproperty --mdc-chip-border-color - The border color of the chip.
|
@@ -30,11 +27,7 @@ const reactWrapper = createComponent({
|
|
30
27
|
elementClass: Component,
|
31
28
|
react: React,
|
32
29
|
events: {
|
33
|
-
|
34
|
-
onClick: 'click',
|
35
|
-
onKeyDown: 'keydown',
|
36
|
-
onKeyUp: 'keyup',
|
37
|
-
onFocus: 'focus',
|
30
|
+
onRemove: 'remove',
|
38
31
|
},
|
39
32
|
displayName: 'InputChip',
|
40
33
|
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import Component from '../../components/searchfield';
|
2
|
+
/**
|
3
|
+
* searchfield component is used as an input field for search functionality.
|
4
|
+
*
|
5
|
+
* It supports `mdc-inputchip` as filters.
|
6
|
+
*
|
7
|
+
* This component is built by extending the `mdc-input` component.
|
8
|
+
*
|
9
|
+
* @tagname mdc-searchfield
|
10
|
+
*
|
11
|
+
* @slot filters - Slot for input chips
|
12
|
+
*
|
13
|
+
*/
|
14
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
15
|
+
undefined: string;
|
16
|
+
onInput: string;
|
17
|
+
onChange: string;
|
18
|
+
onFocus: string;
|
19
|
+
onBlur: string;
|
20
|
+
}>;
|
21
|
+
export default reactWrapper;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/searchfield';
|
4
|
+
import { TAG_NAME } from '../../components/searchfield/searchfield.constants';
|
5
|
+
/**
|
6
|
+
* searchfield component is used as an input field for search functionality.
|
7
|
+
*
|
8
|
+
* It supports `mdc-inputchip` as filters.
|
9
|
+
*
|
10
|
+
* This component is built by extending the `mdc-input` component.
|
11
|
+
*
|
12
|
+
* @tagname mdc-searchfield
|
13
|
+
*
|
14
|
+
* @slot filters - Slot for input chips
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
const reactWrapper = createComponent({
|
18
|
+
tagName: TAG_NAME,
|
19
|
+
elementClass: Component,
|
20
|
+
react: React,
|
21
|
+
events: {
|
22
|
+
undefined: 'undefined',
|
23
|
+
onInput: 'input',
|
24
|
+
onChange: 'change',
|
25
|
+
onFocus: 'focus',
|
26
|
+
onBlur: 'blur',
|
27
|
+
},
|
28
|
+
displayName: 'Searchfield',
|
29
|
+
});
|
30
|
+
export default reactWrapper;
|
package/package.json
CHANGED