@momentum-design/components 0.53.8 → 0.54.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/browser/index.js +433 -406
- package/dist/browser/index.js.map +4 -4
- package/dist/components/checkbox/checkbox.component.d.ts +1 -9
- package/dist/components/checkbox/checkbox.component.js +7 -21
- package/dist/components/checkbox/checkbox.styles.js +30 -67
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/checkbox/index.js +1 -0
- package/dist/components/link/link.component.d.ts +29 -18
- package/dist/components/link/link.component.js +67 -39
- package/dist/components/link/link.styles.js +34 -48
- package/dist/components/link/link.types.d.ts +7 -1
- package/dist/components/radio/index.d.ts +1 -0
- package/dist/components/radio/index.js +1 -0
- package/dist/components/radio/radio.component.d.ts +3 -11
- package/dist/components/radio/radio.component.js +10 -16
- package/dist/components/radio/radio.styles.js +36 -111
- package/dist/components/staticcheckbox/index.d.ts +8 -0
- package/dist/components/staticcheckbox/index.js +5 -0
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +42 -0
- package/dist/components/staticcheckbox/staticcheckbox.component.js +76 -0
- package/dist/components/staticcheckbox/staticcheckbox.constants.d.ts +3 -0
- package/dist/components/staticcheckbox/staticcheckbox.constants.js +4 -0
- package/dist/components/staticcheckbox/staticcheckbox.styles.d.ts +2 -0
- package/dist/components/staticcheckbox/staticcheckbox.styles.js +60 -0
- package/dist/components/staticradio/index.d.ts +7 -0
- package/dist/components/staticradio/index.js +4 -0
- package/dist/components/staticradio/staticradio.component.d.ts +41 -0
- package/dist/components/staticradio/staticradio.component.js +67 -0
- package/dist/components/staticradio/staticradio.constants.d.ts +2 -0
- package/dist/components/staticradio/staticradio.constants.js +3 -0
- package/dist/components/staticradio/staticradio.styles.d.ts +2 -0
- package/dist/components/staticradio/staticradio.styles.js +86 -0
- package/dist/custom-elements.json +1838 -1491
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/react/checkbox/index.d.ts +1 -9
- package/dist/react/checkbox/index.js +1 -9
- package/dist/react/index.d.ts +4 -2
- package/dist/react/index.js +4 -2
- package/dist/react/link/index.d.ts +13 -3
- package/dist/react/link/index.js +12 -3
- package/dist/react/radio/index.d.ts +3 -11
- package/dist/react/radio/index.js +3 -11
- package/dist/react/staticcheckbox/index.d.ts +25 -0
- package/dist/react/staticcheckbox/index.js +34 -0
- package/dist/react/staticradio/index.d.ts +24 -0
- package/dist/react/staticradio/index.js +33 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -9,6 +9,8 @@ import Button from './components/button';
|
|
9
9
|
import Checkbox from './components/checkbox';
|
10
10
|
import Chip from './components/chip';
|
11
11
|
import Coachmark from './components/coachmark';
|
12
|
+
import StaticCheckbox from './components/staticcheckbox';
|
13
|
+
import StaticRadio from './components/staticradio';
|
12
14
|
import Divider from './components/divider';
|
13
15
|
import FilterChip from './components/filterchip';
|
14
16
|
import FormfieldGroup from './components/formfieldgroup';
|
@@ -47,6 +49,6 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
|
|
47
49
|
import type { TextType } from './components/text/text.types';
|
48
50
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
49
51
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
50
|
-
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, ScreenreaderAnnouncer, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
52
|
+
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, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
51
53
|
export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
|
52
54
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/index.js
CHANGED
@@ -10,6 +10,8 @@ import Button from './components/button';
|
|
10
10
|
import Checkbox from './components/checkbox';
|
11
11
|
import Chip from './components/chip';
|
12
12
|
import Coachmark from './components/coachmark';
|
13
|
+
import StaticCheckbox from './components/staticcheckbox';
|
14
|
+
import StaticRadio from './components/staticradio';
|
13
15
|
import Divider from './components/divider';
|
14
16
|
import FilterChip from './components/filterchip';
|
15
17
|
import FormfieldGroup from './components/formfieldgroup';
|
@@ -45,6 +47,6 @@ import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
|
45
47
|
// Constants / Utils Imports
|
46
48
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
47
49
|
// Components Exports
|
48
|
-
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, ScreenreaderAnnouncer, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
50
|
+
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, ScreenreaderAnnouncer, StaticCheckbox, StaticRadio, Textarea, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
49
51
|
// Constants / Utils Exports
|
50
52
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
@@ -16,18 +16,10 @@ import Component from '../../components/checkbox';
|
|
16
16
|
* @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
|
17
17
|
*
|
18
18
|
* @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
|
19
|
-
* @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
|
20
|
-
* @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
|
21
19
|
* @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.
|
22
20
|
* @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
|
23
|
-
* @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.
|
24
|
-
* @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
|
25
|
-
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
|
26
|
-
* @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.
|
27
|
-
* @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.
|
28
|
-
* @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.
|
29
|
-
* @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.
|
30
21
|
* @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
|
22
|
+
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
|
31
23
|
*/
|
32
24
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
33
25
|
onChange: EventName<Event>;
|
@@ -18,18 +18,10 @@ import { TAG_NAME } from '../../components/checkbox/checkbox.constants';
|
|
18
18
|
* @event focus - (React: onFocus) Event that gets dispatched when the checkbox receives focus.
|
19
19
|
*
|
20
20
|
* @cssproperty --mdc-checkbox-background-color-hover - Allows customization of the background color on hover.
|
21
|
-
* @cssproperty --mdc-checkbox-border-color - Border color in high contrast.
|
22
|
-
* @cssproperty --mdc-checkbox-checked-background-color - Background color for a selected checkbox.
|
23
21
|
* @cssproperty --mdc-checkbox-checked-background-color-hover - Background color for a selected checkbox when hovered.
|
24
22
|
* @cssproperty --mdc-checkbox-checked-pressed-icon-color - Background color for a selected checkbox when pressed.
|
25
|
-
* @cssproperty --mdc-checkbox-disabled-background-color - Background color for a disabled checkbox.
|
26
|
-
* @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
|
27
|
-
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
|
28
|
-
* @cssproperty --mdc-checkbox-disabled-icon-color - Icon color for a disabled checkbox.
|
29
|
-
* @cssproperty --mdc-checkbox-icon-background-color - Background color for an unselected checkbox.
|
30
|
-
* @cssproperty --mdc-checkbox-icon-border-color - Default background color for an unselected checkbox.
|
31
|
-
* @cssproperty --mdc-checkbox-icon-color - Icon color for an unselected checkbox.
|
32
23
|
* @cssproperty --mdc-checkbox-pressed-icon-color - Background color for a selected checkbox when pressed.
|
24
|
+
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a selected checkbox when disabled.
|
33
25
|
*/
|
34
26
|
const reactWrapper = createComponent({
|
35
27
|
tagName: TAG_NAME,
|
package/dist/react/index.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
+
export { default as Appheader } from './appheader';
|
2
3
|
export { default as Avatar } from './avatar';
|
3
4
|
export { default as AvatarButton } from './avatarbutton';
|
4
5
|
export { default as Badge } from './badge';
|
5
|
-
export { default as Appheader } from './appheader';
|
6
6
|
export { default as Brandvisual } from './brandvisual';
|
7
7
|
export { default as Bullet } from './bullet';
|
8
8
|
export { default as Button } from './button';
|
9
|
-
export { default as Checkbox } from './checkbox';
|
10
9
|
export { default as Buttonsimple } from './buttonsimple';
|
10
|
+
export { default as Checkbox } from './checkbox';
|
11
11
|
export { default as Chip } from './chip';
|
12
12
|
export { default as Coachmark } from './coachmark';
|
13
13
|
export { default as Divider } from './divider';
|
@@ -34,6 +34,8 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
|
34
34
|
export { default as Searchfield } from './searchfield';
|
35
35
|
export { default as Select } from './select';
|
36
36
|
export { default as Spinner } from './spinner';
|
37
|
+
export { default as StaticCheckbox } from './staticcheckbox';
|
38
|
+
export { default as StaticRadio } from './staticradio';
|
37
39
|
export { default as Tab } from './tab';
|
38
40
|
export { default as TabList } from './tablist';
|
39
41
|
export { default as Text } from './text';
|
package/dist/react/index.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
+
export { default as Appheader } from './appheader';
|
2
3
|
export { default as Avatar } from './avatar';
|
3
4
|
export { default as AvatarButton } from './avatarbutton';
|
4
5
|
export { default as Badge } from './badge';
|
5
|
-
export { default as Appheader } from './appheader';
|
6
6
|
export { default as Brandvisual } from './brandvisual';
|
7
7
|
export { default as Bullet } from './bullet';
|
8
8
|
export { default as Button } from './button';
|
9
|
-
export { default as Checkbox } from './checkbox';
|
10
9
|
export { default as Buttonsimple } from './buttonsimple';
|
10
|
+
export { default as Checkbox } from './checkbox';
|
11
11
|
export { default as Chip } from './chip';
|
12
12
|
export { default as Coachmark } from './coachmark';
|
13
13
|
export { default as Divider } from './divider';
|
@@ -34,6 +34,8 @@ export { default as ScreenreaderAnnouncer } from './screenreaderannouncer';
|
|
34
34
|
export { default as Searchfield } from './searchfield';
|
35
35
|
export { default as Select } from './select';
|
36
36
|
export { default as Spinner } from './spinner';
|
37
|
+
export { default as StaticCheckbox } from './staticcheckbox';
|
38
|
+
export { default as StaticRadio } from './staticradio';
|
37
39
|
export { default as Tab } from './tab';
|
38
40
|
export { default as TabList } from './tablist';
|
39
41
|
export { default as Text } from './text';
|
@@ -1,11 +1,11 @@
|
|
1
|
+
import { type EventName } from '@lit/react';
|
1
2
|
import Component from '../../components/link';
|
2
3
|
/**
|
3
4
|
* `mdc-link` component can be used to navigate to a different page
|
4
5
|
* within the application or to an external site. It can be used to link to
|
5
6
|
* emails or phone numbers.
|
6
7
|
*
|
7
|
-
* The `children` of the link component is expected to be
|
8
|
-
* containing the text, href, and other attributes.
|
8
|
+
* The `children` of the link component is expected to be the text content.
|
9
9
|
*
|
10
10
|
* For `icon`, the `mdc-icon` component is used to render the icon.
|
11
11
|
*
|
@@ -13,6 +13,11 @@ import Component from '../../components/link';
|
|
13
13
|
*
|
14
14
|
* @tagname mdc-link
|
15
15
|
*
|
16
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
17
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
18
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
19
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
20
|
+
*
|
16
21
|
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
17
22
|
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
18
23
|
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
@@ -25,5 +30,10 @@ import Component from '../../components/link';
|
|
25
30
|
* @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
|
26
31
|
* @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
|
27
32
|
*/
|
28
|
-
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
33
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
34
|
+
onClick: EventName<MouseEvent>;
|
35
|
+
onKeyDown: EventName<KeyboardEvent>;
|
36
|
+
onFocus: EventName<FocusEvent>;
|
37
|
+
onBlur: EventName<Event>;
|
38
|
+
}>;
|
29
39
|
export default reactWrapper;
|
package/dist/react/link/index.js
CHANGED
@@ -7,8 +7,7 @@ import { TAG_NAME } from '../../components/link/link.constants';
|
|
7
7
|
* within the application or to an external site. It can be used to link to
|
8
8
|
* emails or phone numbers.
|
9
9
|
*
|
10
|
-
* The `children` of the link component is expected to be
|
11
|
-
* containing the text, href, and other attributes.
|
10
|
+
* The `children` of the link component is expected to be the text content.
|
12
11
|
*
|
13
12
|
* For `icon`, the `mdc-icon` component is used to render the icon.
|
14
13
|
*
|
@@ -16,6 +15,11 @@ import { TAG_NAME } from '../../components/link/link.constants';
|
|
16
15
|
*
|
17
16
|
* @tagname mdc-link
|
18
17
|
*
|
18
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
19
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
20
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
21
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
22
|
+
*
|
19
23
|
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
20
24
|
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
21
25
|
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
@@ -32,7 +36,12 @@ const reactWrapper = createComponent({
|
|
32
36
|
tagName: TAG_NAME,
|
33
37
|
elementClass: Component,
|
34
38
|
react: React,
|
35
|
-
events: {
|
39
|
+
events: {
|
40
|
+
onClick: 'click',
|
41
|
+
onKeyDown: 'keydown',
|
42
|
+
onFocus: 'focus',
|
43
|
+
onBlur: 'blur',
|
44
|
+
},
|
36
45
|
displayName: 'Link',
|
37
46
|
});
|
38
47
|
export default reactWrapper;
|
@@ -12,22 +12,14 @@ import Component from '../../components/radio';
|
|
12
12
|
* @event change - (React: onChange) Event that gets dispatched when the radio state changes.
|
13
13
|
* @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
|
14
14
|
*
|
15
|
-
* @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
|
16
15
|
* @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
|
17
|
-
* @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
|
18
|
-
* @cssproperty --mdc-radio-normal-border-color - color of the radio button border when normal
|
19
|
-
* @cssproperty --mdc-radio-inner-circle-normal-background - background color of the inner circle when normal
|
20
|
-
* @cssproperty --mdc-radio-inner-circle-disabled-background - background color of the inner circle when disabled
|
21
|
-
* @cssproperty --mdc-radio-control-inactive-color - color of the radio button when inactive
|
22
16
|
* @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered
|
23
17
|
* @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed
|
24
|
-
* @cssproperty --mdc-radio-control-inactive-disabled-background - background color of the radio button when
|
25
|
-
* inactive and disabled
|
26
|
-
* @cssproperty --mdc-radio-control-active-color - color of the radio button when active
|
27
18
|
* @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered
|
28
19
|
* @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed
|
29
|
-
* @cssproperty --mdc-radio-
|
30
|
-
*
|
20
|
+
* @cssproperty --mdc-radio-disabled-border-color - color of the radio button when disabled
|
21
|
+
* @cssproperty --mdc-radio-control-active-disabled-background - color of the radio button when active and disabled
|
22
|
+
* @cssproperty --mdc-radio-control-inactive-disabled-background - color of the radio button when inactive and disabled
|
31
23
|
*
|
32
24
|
*/
|
33
25
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
@@ -14,22 +14,14 @@ import { TAG_NAME } from '../../components/radio/radio.constants';
|
|
14
14
|
* @event change - (React: onChange) Event that gets dispatched when the radio state changes.
|
15
15
|
* @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
|
16
16
|
*
|
17
|
-
* @cssproperty --mdc-radio-inner-circle-size - size of the inner circle
|
18
17
|
* @cssproperty --mdc-radio-text-disabled-color - color of the label when disabled
|
19
|
-
* @cssproperty --mdc-radio-disabled-border-color - color of the radio button border when disabled
|
20
|
-
* @cssproperty --mdc-radio-normal-border-color - color of the radio button border when normal
|
21
|
-
* @cssproperty --mdc-radio-inner-circle-normal-background - background color of the inner circle when normal
|
22
|
-
* @cssproperty --mdc-radio-inner-circle-disabled-background - background color of the inner circle when disabled
|
23
|
-
* @cssproperty --mdc-radio-control-inactive-color - color of the radio button when inactive
|
24
18
|
* @cssproperty --mdc-radio-control-inactive-hover - color of the radio button when inactive and hovered
|
25
19
|
* @cssproperty --mdc-radio-control-inactive-pressed-color - color of the radio button when inactive and pressed
|
26
|
-
* @cssproperty --mdc-radio-control-inactive-disabled-background - background color of the radio button when
|
27
|
-
* inactive and disabled
|
28
|
-
* @cssproperty --mdc-radio-control-active-color - color of the radio button when active
|
29
20
|
* @cssproperty --mdc-radio-control-active-hover-color - color of the radio button when active and hovered
|
30
21
|
* @cssproperty --mdc-radio-control-active-pressed-color - color of the radio button when active and pressed
|
31
|
-
* @cssproperty --mdc-radio-
|
32
|
-
*
|
22
|
+
* @cssproperty --mdc-radio-disabled-border-color - color of the radio button when disabled
|
23
|
+
* @cssproperty --mdc-radio-control-active-disabled-background - color of the radio button when active and disabled
|
24
|
+
* @cssproperty --mdc-radio-control-inactive-disabled-background - color of the radio button when inactive and disabled
|
33
25
|
*
|
34
26
|
*/
|
35
27
|
const reactWrapper = createComponent({
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import Component from '../../components/staticcheckbox';
|
2
|
+
/**
|
3
|
+
* This is a decorative component that is styled to look as a checkbox.
|
4
|
+
*
|
5
|
+
* It has 3 properties - checked, indeterminate and disabled.
|
6
|
+
*
|
7
|
+
* We are using the same styling that has been created for the `mdc-checkbox` component.
|
8
|
+
*
|
9
|
+
* @tagname mdc-staticcheckbox
|
10
|
+
*
|
11
|
+
* @dependency mdc-icon
|
12
|
+
*
|
13
|
+
* @cssproperty --mdc-staticcheckbox-border-color - Border color in high contrast.
|
14
|
+
* @cssproperty --mdc-staticcheckbox-checked-background-color - Background color for a selected checkbox.
|
15
|
+
* @cssproperty --mdc-staticcheckbox-disabled-background-color - Background color for a disabled checkbox.
|
16
|
+
* @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
|
17
|
+
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
|
18
|
+
* @cssproperty --mdc-staticcheckbox-disabled-icon-color - Icon color for a disabled checkbox.
|
19
|
+
* @cssproperty --mdc-staticcheckbox-icon-background-color - Background color for an unselected checkbox.
|
20
|
+
* @cssproperty --mdc-staticcheckbox-icon-border-color - Default background color for an unselected checkbox.
|
21
|
+
* @cssproperty --mdc-staticcheckbox-icon-color - Icon color for an unselected checkbox.
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
25
|
+
export default reactWrapper;
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/staticcheckbox';
|
4
|
+
import { TAG_NAME } from '../../components/staticcheckbox/staticcheckbox.constants';
|
5
|
+
/**
|
6
|
+
* This is a decorative component that is styled to look as a checkbox.
|
7
|
+
*
|
8
|
+
* It has 3 properties - checked, indeterminate and disabled.
|
9
|
+
*
|
10
|
+
* We are using the same styling that has been created for the `mdc-checkbox` component.
|
11
|
+
*
|
12
|
+
* @tagname mdc-staticcheckbox
|
13
|
+
*
|
14
|
+
* @dependency mdc-icon
|
15
|
+
*
|
16
|
+
* @cssproperty --mdc-staticcheckbox-border-color - Border color in high contrast.
|
17
|
+
* @cssproperty --mdc-staticcheckbox-checked-background-color - Background color for a selected checkbox.
|
18
|
+
* @cssproperty --mdc-staticcheckbox-disabled-background-color - Background color for a disabled checkbox.
|
19
|
+
* @cssproperty --mdc-checkbox-disabled-border-color - Border color for a disabled checkbox.
|
20
|
+
* @cssproperty --mdc-checkbox-disabled-checked-icon-color - Background color for a disabled, selected checkbox.
|
21
|
+
* @cssproperty --mdc-staticcheckbox-disabled-icon-color - Icon color for a disabled checkbox.
|
22
|
+
* @cssproperty --mdc-staticcheckbox-icon-background-color - Background color for an unselected checkbox.
|
23
|
+
* @cssproperty --mdc-staticcheckbox-icon-border-color - Default background color for an unselected checkbox.
|
24
|
+
* @cssproperty --mdc-staticcheckbox-icon-color - Icon color for an unselected checkbox.
|
25
|
+
*
|
26
|
+
*/
|
27
|
+
const reactWrapper = createComponent({
|
28
|
+
tagName: TAG_NAME,
|
29
|
+
elementClass: Component,
|
30
|
+
react: React,
|
31
|
+
events: {},
|
32
|
+
displayName: 'StaticCheckbox',
|
33
|
+
});
|
34
|
+
export default reactWrapper;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import Component from '../../components/staticradio';
|
2
|
+
/**
|
3
|
+
* This is a decorative component that is styled to look as a radio.
|
4
|
+
* It has 2 properties - checked and disabled.
|
5
|
+
*
|
6
|
+
* We are using the same styling that has been created for the `mdc-radio` component.
|
7
|
+
*
|
8
|
+
* @tagname mdc-staticradio
|
9
|
+
*
|
10
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - size of the inner circle
|
11
|
+
* @cssproperty --mdc-staticradio-text-disabled-color - color of the label when disabled
|
12
|
+
* @cssproperty --mdc-staticradio-normal-border-color - color of the radio button border when normal
|
13
|
+
* @cssproperty --mdc-staticradio-disabled-border-color - color of the radio button border when disabled
|
14
|
+
* @cssproperty --mdc-staticradio-inner-circle-normal-background - background color of the inner circle when normal
|
15
|
+
* @cssproperty --mdc-staticradio-inner-circle-disabled-background - background color of the inner circle when disabled
|
16
|
+
* @cssproperty --mdc-staticradio-control-inactive-color - color of the radio button when inactive
|
17
|
+
* @cssproperty --mdc-staticradio-control-inactive-disabled-background - background color of the radio button when
|
18
|
+
* inactive and disabled
|
19
|
+
* @cssproperty --mdc-staticradio-control-active-color - color of the radio button when active
|
20
|
+
* @cssproperty --mdc-staticradio-control-active-disabled-background - background color of the radio button
|
21
|
+
* when active and disabled
|
22
|
+
*/
|
23
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
24
|
+
export default reactWrapper;
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/staticradio';
|
4
|
+
import { TAG_NAME } from '../../components/staticradio/staticradio.constants';
|
5
|
+
/**
|
6
|
+
* This is a decorative component that is styled to look as a radio.
|
7
|
+
* It has 2 properties - checked and disabled.
|
8
|
+
*
|
9
|
+
* We are using the same styling that has been created for the `mdc-radio` component.
|
10
|
+
*
|
11
|
+
* @tagname mdc-staticradio
|
12
|
+
*
|
13
|
+
* @cssproperty --mdc-staticradio-inner-circle-size - size of the inner circle
|
14
|
+
* @cssproperty --mdc-staticradio-text-disabled-color - color of the label when disabled
|
15
|
+
* @cssproperty --mdc-staticradio-normal-border-color - color of the radio button border when normal
|
16
|
+
* @cssproperty --mdc-staticradio-disabled-border-color - color of the radio button border when disabled
|
17
|
+
* @cssproperty --mdc-staticradio-inner-circle-normal-background - background color of the inner circle when normal
|
18
|
+
* @cssproperty --mdc-staticradio-inner-circle-disabled-background - background color of the inner circle when disabled
|
19
|
+
* @cssproperty --mdc-staticradio-control-inactive-color - color of the radio button when inactive
|
20
|
+
* @cssproperty --mdc-staticradio-control-inactive-disabled-background - background color of the radio button when
|
21
|
+
* inactive and disabled
|
22
|
+
* @cssproperty --mdc-staticradio-control-active-color - color of the radio button when active
|
23
|
+
* @cssproperty --mdc-staticradio-control-active-disabled-background - background color of the radio button
|
24
|
+
* when active and disabled
|
25
|
+
*/
|
26
|
+
const reactWrapper = createComponent({
|
27
|
+
tagName: TAG_NAME,
|
28
|
+
elementClass: Component,
|
29
|
+
react: React,
|
30
|
+
events: {},
|
31
|
+
displayName: 'StaticRadio',
|
32
|
+
});
|
33
|
+
export default reactWrapper;
|
package/package.json
CHANGED