@momentum-design/components 0.18.5 → 0.18.6

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
@@ -10,8 +10,9 @@ import Bullet from './components/bullet';
10
10
  import Marker from './components/marker';
11
11
  import Divider from './components/divider';
12
12
  import AvatarButton from './components/avatarbutton';
13
+ import Input from './components/input';
13
14
  import Link from './components/link';
14
15
  import Checkbox from './components/checkbox';
15
16
  import type { TextType } from './components/text/text.types';
16
- export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Link, Checkbox, };
17
+ export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Checkbox, };
17
18
  export type { TextType, };
package/dist/index.js CHANGED
@@ -10,6 +10,7 @@ import Bullet from './components/bullet';
10
10
  import Marker from './components/marker';
11
11
  import Divider from './components/divider';
12
12
  import AvatarButton from './components/avatarbutton';
13
+ import Input from './components/input';
13
14
  import Link from './components/link';
14
15
  import Checkbox from './components/checkbox';
15
- export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Link, Checkbox, };
16
+ export { ThemeProvider, Icon, IconProvider, Avatar, Badge, Presence, Text, Button, Bullet, Marker, Divider, AvatarButton, Input, Link, Checkbox, };
@@ -1,17 +1,18 @@
1
1
  export { default as Avatar } from './avatar';
2
2
  export { default as AvatarButton } from './avatarbutton';
3
3
  export { default as Badge } from './badge';
4
- export { default as Bullet } from './bullet';
5
4
  export { default as Button } from './button';
6
5
  export { default as Buttonsimple } from './buttonsimple';
6
+ export { default as Bullet } from './bullet';
7
7
  export { default as Checkbox } from './checkbox';
8
8
  export { default as Divider } from './divider';
9
9
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
10
  export { default as Icon } from './icon';
11
11
  export { default as IconProvider } from './iconprovider';
12
+ export { default as Input } from './input';
12
13
  export { default as Link } from './link';
13
14
  export { default as Marker } from './marker';
14
- export { default as Modalcontainer } from './modalcontainer';
15
15
  export { default as Presence } from './presence';
16
+ export { default as Modalcontainer } from './modalcontainer';
16
17
  export { default as Text } from './text';
17
18
  export { default as ThemeProvider } from './themeprovider';
@@ -1,17 +1,18 @@
1
1
  export { default as Avatar } from './avatar';
2
2
  export { default as AvatarButton } from './avatarbutton';
3
3
  export { default as Badge } from './badge';
4
- export { default as Bullet } from './bullet';
5
4
  export { default as Button } from './button';
6
5
  export { default as Buttonsimple } from './buttonsimple';
6
+ export { default as Bullet } from './bullet';
7
7
  export { default as Checkbox } from './checkbox';
8
8
  export { default as Divider } from './divider';
9
9
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
10
  export { default as Icon } from './icon';
11
11
  export { default as IconProvider } from './iconprovider';
12
+ export { default as Input } from './input';
12
13
  export { default as Link } from './link';
13
14
  export { default as Marker } from './marker';
14
- export { default as Modalcontainer } from './modalcontainer';
15
15
  export { default as Presence } from './presence';
16
+ export { default as Modalcontainer } from './modalcontainer';
16
17
  export { default as Text } from './text';
17
18
  export { default as ThemeProvider } from './themeprovider';
@@ -0,0 +1,39 @@
1
+ import Component from '../../components/input';
2
+ /**
3
+ * mdc-input is a component that allows users to input text.
4
+ * It contains:
5
+ * - label field - describe the input field.
6
+ * - input field - contains the value
7
+ * - help text or validation message - displayed below the input field.
8
+ * - trailing button - it displays a clear the input field.
9
+ * - prefix text - displayed before the input field.
10
+ * - leading icon - displayed before the input field.
11
+ * - clear-aria-label - aria label for the trailing button.
12
+ * - all the attributes of the input field.
13
+ *
14
+ * @tagname mdc-input
15
+ *
16
+ * @dependency mdc-icon
17
+ * @dependency mdc-text
18
+ * @dependency mdc-button
19
+ *
20
+ * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled
21
+ * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled
22
+ * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled
23
+ * @cssproperty --mdc-input-border-color - Border color for the input container
24
+ * @cssproperty --mdc-input-text-color - Text color for the input field
25
+ * @cssproperty --mdc-input-background-color - Background color for the input field
26
+ * @cssproperty --mdc-input-selection-background-color - Background color for the selected text
27
+ * @cssproperty --mdc-input-selection-text-color - Text color for the selected text
28
+ * @cssproperty --mdc-input-support-text-color - Text color for the help text
29
+ * @cssproperty --mdc-input-hover-background-color - Background color for the input field when hovered
30
+ * @cssproperty --mdc-input-focused-background-color - Background color for the input field when focused
31
+ * @cssproperty --mdc-input-focused-border-color - Border color for the input container when focused
32
+ * @cssproperty --mdc-input-error-border-color - Border color for the input container when error
33
+ * @cssproperty --mdc-input-warning-border-color - Border color for the input container when warning
34
+ * @cssproperty --mdc-input-success-border-color - Border color for the input container when success
35
+ * @cssproperty --mdc-input-primary-border-color - Border color for the input container when primary
36
+ *
37
+ */
38
+ declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
39
+ export default reactWrapper;
@@ -0,0 +1,48 @@
1
+ import * as React from 'react';
2
+ import { createComponent } from '@lit/react';
3
+ import Component from '../../components/input';
4
+ import { TAG_NAME } from '../../components/input/input.constants';
5
+ /**
6
+ * mdc-input is a component that allows users to input text.
7
+ * It contains:
8
+ * - label field - describe the input field.
9
+ * - input field - contains the value
10
+ * - help text or validation message - displayed below the input field.
11
+ * - trailing button - it displays a clear the input field.
12
+ * - prefix text - displayed before the input field.
13
+ * - leading icon - displayed before the input field.
14
+ * - clear-aria-label - aria label for the trailing button.
15
+ * - all the attributes of the input field.
16
+ *
17
+ * @tagname mdc-input
18
+ *
19
+ * @dependency mdc-icon
20
+ * @dependency mdc-text
21
+ * @dependency mdc-button
22
+ *
23
+ * @cssproperty --mdc-input-disabled-border-color - Border color for the input container when disabled
24
+ * @cssproperty --mdc-input-disabled-text-color - Text color for the input field when disabled
25
+ * @cssproperty --mdc-input-disabled-background-color - Background color for the input field when disabled
26
+ * @cssproperty --mdc-input-border-color - Border color for the input container
27
+ * @cssproperty --mdc-input-text-color - Text color for the input field
28
+ * @cssproperty --mdc-input-background-color - Background color for the input field
29
+ * @cssproperty --mdc-input-selection-background-color - Background color for the selected text
30
+ * @cssproperty --mdc-input-selection-text-color - Text color for the selected text
31
+ * @cssproperty --mdc-input-support-text-color - Text color for the help text
32
+ * @cssproperty --mdc-input-hover-background-color - Background color for the input field when hovered
33
+ * @cssproperty --mdc-input-focused-background-color - Background color for the input field when focused
34
+ * @cssproperty --mdc-input-focused-border-color - Border color for the input container when focused
35
+ * @cssproperty --mdc-input-error-border-color - Border color for the input container when error
36
+ * @cssproperty --mdc-input-warning-border-color - Border color for the input container when warning
37
+ * @cssproperty --mdc-input-success-border-color - Border color for the input container when success
38
+ * @cssproperty --mdc-input-primary-border-color - Border color for the input container when primary
39
+ *
40
+ */
41
+ const reactWrapper = createComponent({
42
+ tagName: TAG_NAME,
43
+ elementClass: Component,
44
+ react: React,
45
+ events: {},
46
+ displayName: 'Input',
47
+ });
48
+ export default reactWrapper;
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "lit": "^3.2.0",
37
37
  "uuid": "^11.0.5"
38
38
  },
39
- "version": "0.18.5"
39
+ "version": "0.18.6"
40
40
  }