@momentum-design/components 0.56.2 → 0.58.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 +329 -294
- package/dist/browser/index.js.map +4 -4
- package/dist/components/link/link.component.d.ts +7 -59
- package/dist/components/link/link.component.js +7 -109
- package/dist/components/link/link.constants.d.ts +0 -2
- package/dist/components/link/link.constants.js +0 -2
- package/dist/components/link/link.styles.d.ts +2 -2
- package/dist/components/link/link.styles.js +4 -57
- package/dist/components/linksimple/index.d.ts +7 -0
- package/dist/components/linksimple/index.js +4 -0
- package/dist/components/linksimple/linksimple.component.d.ts +73 -0
- package/dist/components/linksimple/linksimple.component.js +141 -0
- package/dist/components/linksimple/linksimple.constants.d.ts +6 -0
- package/dist/components/linksimple/linksimple.constants.js +7 -0
- package/dist/components/linksimple/linksimple.styles.d.ts +2 -0
- package/dist/components/linksimple/linksimple.styles.js +72 -0
- package/dist/components/linksimple/linksimple.types.d.ts +7 -0
- package/dist/components/linksimple/linksimple.types.js +1 -0
- package/dist/components/statictoggle/index.d.ts +8 -0
- package/dist/components/statictoggle/index.js +5 -0
- package/dist/components/statictoggle/statictoggle.component.d.ts +48 -0
- package/dist/components/statictoggle/statictoggle.component.js +82 -0
- package/dist/components/statictoggle/statictoggle.constants.d.ts +17 -0
- package/dist/components/statictoggle/statictoggle.constants.js +18 -0
- package/dist/components/statictoggle/statictoggle.styles.d.ts +2 -0
- package/dist/components/statictoggle/statictoggle.styles.js +82 -0
- package/dist/components/statictoggle/statictoggle.types.d.ts +4 -0
- package/dist/components/statictoggle/statictoggle.types.js +1 -0
- package/dist/components/toggle/index.d.ts +2 -1
- package/dist/components/toggle/index.js +2 -1
- package/dist/components/toggle/toggle.component.d.ts +16 -20
- package/dist/components/toggle/toggle.component.js +27 -33
- package/dist/components/toggle/toggle.styles.js +26 -96
- package/dist/custom-elements.json +636 -118
- package/dist/index.d.ts +3 -1
- package/dist/index.js +3 -1
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +2 -0
- package/dist/react/link/index.d.ts +4 -16
- package/dist/react/link/index.js +4 -16
- package/dist/react/linksimple/index.d.ts +34 -0
- package/dist/react/linksimple/index.js +42 -0
- package/dist/react/statictoggle/index.d.ts +30 -0
- package/dist/react/statictoggle/index.js +39 -0
- package/dist/react/toggle/index.d.ts +14 -18
- package/dist/react/toggle/index.js +14 -18
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -11,6 +11,7 @@ import Chip from './components/chip';
|
|
11
11
|
import Coachmark from './components/coachmark';
|
12
12
|
import StaticCheckbox from './components/staticcheckbox';
|
13
13
|
import StaticRadio from './components/staticradio';
|
14
|
+
import StaticToggle from './components/statictoggle';
|
14
15
|
import Divider from './components/divider';
|
15
16
|
import FilterChip from './components/filterchip';
|
16
17
|
import FormfieldGroup from './components/formfieldgroup';
|
@@ -43,6 +44,7 @@ import Tooltip from './components/tooltip';
|
|
43
44
|
import ToggleTip from './components/toggletip';
|
44
45
|
import VirtualizedList from './components/virtualizedlist';
|
45
46
|
import TabList from './components/tablist';
|
47
|
+
import Linksimple from './components/linksimple';
|
46
48
|
import type { BadgeType } from './components/badge/badge.types';
|
47
49
|
import type { ButtonColor, ButtonVariant, IconButtonSize, PillButtonSize } from './components/button/button.types';
|
48
50
|
import type { PopoverPlacement } from './components/popover/popover.types';
|
@@ -50,6 +52,6 @@ import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.t
|
|
50
52
|
import type { TextType } from './components/text/text.types';
|
51
53
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
52
54
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
53
|
-
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, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
55
|
+
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, StaticToggle, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, Linksimple, };
|
54
56
|
export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
|
55
57
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/index.js
CHANGED
@@ -12,6 +12,7 @@ import Chip from './components/chip';
|
|
12
12
|
import Coachmark from './components/coachmark';
|
13
13
|
import StaticCheckbox from './components/staticcheckbox';
|
14
14
|
import StaticRadio from './components/staticradio';
|
15
|
+
import StaticToggle from './components/statictoggle';
|
15
16
|
import Divider from './components/divider';
|
16
17
|
import FilterChip from './components/filterchip';
|
17
18
|
import FormfieldGroup from './components/formfieldgroup';
|
@@ -44,10 +45,11 @@ import Tooltip from './components/tooltip';
|
|
44
45
|
import ToggleTip from './components/toggletip';
|
45
46
|
import VirtualizedList from './components/virtualizedlist';
|
46
47
|
import TabList from './components/tablist';
|
48
|
+
import Linksimple from './components/linksimple';
|
47
49
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
48
50
|
// Constants / Utils Imports
|
49
51
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
50
52
|
// Components Exports
|
51
|
-
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, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, };
|
53
|
+
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, StaticToggle, Textarea, ToggleTip, Tooltip, Searchfield, Brandvisual, Appheader, Select, TabList, Progressspinner, Linksimple, };
|
52
54
|
// Constants / Utils Exports
|
53
55
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/react/index.d.ts
CHANGED
@@ -19,6 +19,7 @@ export { default as IconProvider } from './iconprovider';
|
|
19
19
|
export { default as Input } from './input';
|
20
20
|
export { default as InputChip } from './inputchip';
|
21
21
|
export { default as Link } from './link';
|
22
|
+
export { default as Linksimple } from './linksimple';
|
22
23
|
export { default as List } from './list';
|
23
24
|
export { default as ListItem } from './listitem';
|
24
25
|
export { default as Marker } from './marker';
|
@@ -36,6 +37,7 @@ export { default as Select } from './select';
|
|
36
37
|
export { default as Spinner } from './spinner';
|
37
38
|
export { default as StaticCheckbox } from './staticcheckbox';
|
38
39
|
export { default as StaticRadio } from './staticradio';
|
40
|
+
export { default as StaticToggle } from './statictoggle';
|
39
41
|
export { default as Tab } from './tab';
|
40
42
|
export { default as TabList } from './tablist';
|
41
43
|
export { default as Text } from './text';
|
package/dist/react/index.js
CHANGED
@@ -19,6 +19,7 @@ export { default as IconProvider } from './iconprovider';
|
|
19
19
|
export { default as Input } from './input';
|
20
20
|
export { default as InputChip } from './inputchip';
|
21
21
|
export { default as Link } from './link';
|
22
|
+
export { default as Linksimple } from './linksimple';
|
22
23
|
export { default as List } from './list';
|
23
24
|
export { default as ListItem } from './listitem';
|
24
25
|
export { default as Marker } from './marker';
|
@@ -36,6 +37,7 @@ export { default as Select } from './select';
|
|
36
37
|
export { default as Spinner } from './spinner';
|
37
38
|
export { default as StaticCheckbox } from './staticcheckbox';
|
38
39
|
export { default as StaticRadio } from './staticradio';
|
40
|
+
export { default as StaticToggle } from './statictoggle';
|
39
41
|
export { default as Tab } from './tab';
|
40
42
|
export { default as TabList } from './tablist';
|
41
43
|
export { default as Text } from './text';
|
@@ -13,22 +13,10 @@ 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
|
17
|
-
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the
|
18
|
-
* @event focus - (React: onFocus) Fired when the
|
19
|
-
* @event blur - (React: onBlur) Fired when the
|
20
|
-
*
|
21
|
-
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
22
|
-
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
23
|
-
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
24
|
-
* @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state
|
25
|
-
* @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state
|
26
|
-
* @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)
|
27
|
-
* @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state
|
28
|
-
* @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state
|
29
|
-
* @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state
|
30
|
-
* @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
|
31
|
-
* @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
|
16
|
+
* @event click - (React: onClick) Fired when the user activates the Link using a mouse or assistive technology.
|
17
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the Link has focus.
|
18
|
+
* @event focus - (React: onFocus) Fired when the Link receives keyboard or mouse focus.
|
19
|
+
* @event blur - (React: onBlur) Fired when the Link loses keyboard or mouse focus.
|
32
20
|
*/
|
33
21
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
34
22
|
onClick: EventName<MouseEvent>;
|
package/dist/react/link/index.js
CHANGED
@@ -15,22 +15,10 @@ import { TAG_NAME } from '../../components/link/link.constants';
|
|
15
15
|
*
|
16
16
|
* @tagname mdc-link
|
17
17
|
*
|
18
|
-
* @event click - (React: onClick) Fired when the user activates the
|
19
|
-
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the
|
20
|
-
* @event focus - (React: onFocus) Fired when the
|
21
|
-
* @event blur - (React: onBlur) Fired when the
|
22
|
-
*
|
23
|
-
* @cssproperty --mdc-link-border-radius - Border radius of the link
|
24
|
-
* @cssproperty --mdc-link-color-active - Text and icon color of the link in active state
|
25
|
-
* @cssproperty --mdc-link-color-disabled - Text and icon color of the link in disabled state
|
26
|
-
* @cssproperty --mdc-link-color-hover - Text and icon color of the link in hover state
|
27
|
-
* @cssproperty --mdc-link-color-normal - Text and icon color of the link in normal state
|
28
|
-
* @cssproperty --mdc-link-icon-margin-left - Gap between the text and icon (only applicable when an icon is set)
|
29
|
-
* @cssproperty --mdc-link-inverted-color-active - Text and icon color of the inverted link in active state
|
30
|
-
* @cssproperty --mdc-link-inverted-color-disabled - Text and icon color of the inverted link in disabled state
|
31
|
-
* @cssproperty --mdc-link-inverted-color-hover - Text and icon color of the inverted link in hover state
|
32
|
-
* @cssproperty --mdc-link-inverted-color-normal - Text and icon color of the inverted link in normal state
|
33
|
-
* @cssproperty --mdc-link-text-decoration-disabled - Text decoration of the link in disabled state for all variants
|
18
|
+
* @event click - (React: onClick) Fired when the user activates the Link using a mouse or assistive technology.
|
19
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the Link has focus.
|
20
|
+
* @event focus - (React: onFocus) Fired when the Link receives keyboard or mouse focus.
|
21
|
+
* @event blur - (React: onBlur) Fired when the Link loses keyboard or mouse focus.
|
34
22
|
*/
|
35
23
|
const reactWrapper = createComponent({
|
36
24
|
tagName: TAG_NAME,
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { type EventName } from '@lit/react';
|
2
|
+
import Component from '../../components/linksimple';
|
3
|
+
/**
|
4
|
+
* `mdc-linksimple` is a lightweight link component that can be used to navigate
|
5
|
+
* within the application or to an external URL. It does not have any predefined default size.
|
6
|
+
*
|
7
|
+
* The `children` of the `mdc-linksimple` component can be customized to suit
|
8
|
+
* different use cases, including text, icons, or other inline content. For the child to be an icon,
|
9
|
+
* the `mdc-icon` component should be used to render.
|
10
|
+
*
|
11
|
+
* @tagname mdc-linksimple
|
12
|
+
*
|
13
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
14
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
15
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
16
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
17
|
+
*
|
18
|
+
* @cssproperty --mdc-link-border-radius - Border radius of the link.
|
19
|
+
* @cssproperty --mdc-link-color-active - Color of the link’s child content in the active state.
|
20
|
+
* @cssproperty --mdc-link-color-disabled - Color of the link’s child content in the disabled state.
|
21
|
+
* @cssproperty --mdc-link-color-hover - Color of the link’s child content in the hover state.
|
22
|
+
* @cssproperty --mdc-link-color-normal - Color of the link’s child content in the normal state.
|
23
|
+
* @cssproperty --mdc-link-inverted-color-active - Color of the inverted link’s child content in the active state.
|
24
|
+
* @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted link’s child content in the disabled state.
|
25
|
+
* @cssproperty --mdc-link-inverted-color-hover - Color of the inverted link’s child content in the hover state.
|
26
|
+
* @cssproperty --mdc-link-inverted-color-normal - Color of the inverted link’s child content in the normal state.
|
27
|
+
*/
|
28
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
29
|
+
onClick: EventName<MouseEvent>;
|
30
|
+
onKeyDown: EventName<KeyboardEvent>;
|
31
|
+
onFocus: EventName<FocusEvent>;
|
32
|
+
onBlur: EventName<Event>;
|
33
|
+
}>;
|
34
|
+
export default reactWrapper;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/linksimple';
|
4
|
+
import { TAG_NAME } from '../../components/linksimple/linksimple.constants';
|
5
|
+
/**
|
6
|
+
* `mdc-linksimple` is a lightweight link component that can be used to navigate
|
7
|
+
* within the application or to an external URL. It does not have any predefined default size.
|
8
|
+
*
|
9
|
+
* The `children` of the `mdc-linksimple` component can be customized to suit
|
10
|
+
* different use cases, including text, icons, or other inline content. For the child to be an icon,
|
11
|
+
* the `mdc-icon` component should be used to render.
|
12
|
+
*
|
13
|
+
* @tagname mdc-linksimple
|
14
|
+
*
|
15
|
+
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
16
|
+
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
17
|
+
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
18
|
+
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
19
|
+
*
|
20
|
+
* @cssproperty --mdc-link-border-radius - Border radius of the link.
|
21
|
+
* @cssproperty --mdc-link-color-active - Color of the link’s child content in the active state.
|
22
|
+
* @cssproperty --mdc-link-color-disabled - Color of the link’s child content in the disabled state.
|
23
|
+
* @cssproperty --mdc-link-color-hover - Color of the link’s child content in the hover state.
|
24
|
+
* @cssproperty --mdc-link-color-normal - Color of the link’s child content in the normal state.
|
25
|
+
* @cssproperty --mdc-link-inverted-color-active - Color of the inverted link’s child content in the active state.
|
26
|
+
* @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted link’s child content in the disabled state.
|
27
|
+
* @cssproperty --mdc-link-inverted-color-hover - Color of the inverted link’s child content in the hover state.
|
28
|
+
* @cssproperty --mdc-link-inverted-color-normal - Color of the inverted link’s child content in the normal state.
|
29
|
+
*/
|
30
|
+
const reactWrapper = createComponent({
|
31
|
+
tagName: TAG_NAME,
|
32
|
+
elementClass: Component,
|
33
|
+
react: React,
|
34
|
+
events: {
|
35
|
+
onClick: 'click',
|
36
|
+
onKeyDown: 'keydown',
|
37
|
+
onFocus: 'focus',
|
38
|
+
onBlur: 'blur',
|
39
|
+
},
|
40
|
+
displayName: 'Linksimple',
|
41
|
+
});
|
42
|
+
export default reactWrapper;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import Component from '../../components/statictoggle';
|
2
|
+
/**
|
3
|
+
* This is a decorative component that is styled to look as a toggle. <br/>
|
4
|
+
* It has 3 properties - checked, size and disabled. <br/>
|
5
|
+
* We are using the same styling that has been created for the `mdc-toggle` component.
|
6
|
+
*
|
7
|
+
* @dependency mdc-icon
|
8
|
+
*
|
9
|
+
* @tagname mdc-statictoggle
|
10
|
+
*
|
11
|
+
* @slot default - This is a default/unnamed slot
|
12
|
+
*
|
13
|
+
* @cssproperty --mdc-statictoggle-width - Width of the toggle
|
14
|
+
* @cssproperty --mdc-statictoggle-height - Height of the toggle
|
15
|
+
* @cssproperty --mdc-statictoggle-width-compact - Width of the toggle when it's size is compact
|
16
|
+
* @cssproperty --mdc-statictoggle-height-compact - Height of the toggle when it's size is compact
|
17
|
+
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the toggle
|
18
|
+
* @cssproperty --mdc-statictoggle-border-radius-compact - Border radius of the toggle when it's size is compact
|
19
|
+
* @cssproperty --mdc-statictoggle-border - Border of the toggle
|
20
|
+
* @cssproperty --mdc-statictoggle-inactive-rest-color - Background color of the inactive toggle in rest state
|
21
|
+
* @cssproperty --mdc-statictoggle-inactive-disabled-color - Background color of the inactive toggle in disabled state
|
22
|
+
* @cssproperty --mdc-statictoggle-active-rest-color - Background color of the active toggle in rest state
|
23
|
+
* @cssproperty --mdc-statictoggle-active-disabled-color - Background color of the active toggle in disabled state
|
24
|
+
* @cssproperty --mdc-statictoggle-icon-color-normal - Color of the icon in normal state
|
25
|
+
* @cssproperty --mdc-statictoggle-icon-color-disabled - Color of the icon in disabled state
|
26
|
+
* @cssproperty --mdc-statictoggle-icon-background-color-normal - Background color of the icon in normal state
|
27
|
+
* @cssproperty --mdc-statictoggle-icon-background-color-disabled - Background color of the icon in disabled state
|
28
|
+
*/
|
29
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
30
|
+
export default reactWrapper;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/statictoggle';
|
4
|
+
import { TAG_NAME } from '../../components/statictoggle/statictoggle.constants';
|
5
|
+
/**
|
6
|
+
* This is a decorative component that is styled to look as a toggle. <br/>
|
7
|
+
* It has 3 properties - checked, size and disabled. <br/>
|
8
|
+
* We are using the same styling that has been created for the `mdc-toggle` component.
|
9
|
+
*
|
10
|
+
* @dependency mdc-icon
|
11
|
+
*
|
12
|
+
* @tagname mdc-statictoggle
|
13
|
+
*
|
14
|
+
* @slot default - This is a default/unnamed slot
|
15
|
+
*
|
16
|
+
* @cssproperty --mdc-statictoggle-width - Width of the toggle
|
17
|
+
* @cssproperty --mdc-statictoggle-height - Height of the toggle
|
18
|
+
* @cssproperty --mdc-statictoggle-width-compact - Width of the toggle when it's size is compact
|
19
|
+
* @cssproperty --mdc-statictoggle-height-compact - Height of the toggle when it's size is compact
|
20
|
+
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the toggle
|
21
|
+
* @cssproperty --mdc-statictoggle-border-radius-compact - Border radius of the toggle when it's size is compact
|
22
|
+
* @cssproperty --mdc-statictoggle-border - Border of the toggle
|
23
|
+
* @cssproperty --mdc-statictoggle-inactive-rest-color - Background color of the inactive toggle in rest state
|
24
|
+
* @cssproperty --mdc-statictoggle-inactive-disabled-color - Background color of the inactive toggle in disabled state
|
25
|
+
* @cssproperty --mdc-statictoggle-active-rest-color - Background color of the active toggle in rest state
|
26
|
+
* @cssproperty --mdc-statictoggle-active-disabled-color - Background color of the active toggle in disabled state
|
27
|
+
* @cssproperty --mdc-statictoggle-icon-color-normal - Color of the icon in normal state
|
28
|
+
* @cssproperty --mdc-statictoggle-icon-color-disabled - Color of the icon in disabled state
|
29
|
+
* @cssproperty --mdc-statictoggle-icon-background-color-normal - Background color of the icon in normal state
|
30
|
+
* @cssproperty --mdc-statictoggle-icon-background-color-disabled - Background color of the icon in disabled state
|
31
|
+
*/
|
32
|
+
const reactWrapper = createComponent({
|
33
|
+
tagName: TAG_NAME,
|
34
|
+
elementClass: Component,
|
35
|
+
react: React,
|
36
|
+
events: {},
|
37
|
+
displayName: 'StaticToggle',
|
38
|
+
});
|
39
|
+
export default reactWrapper;
|
@@ -11,30 +11,26 @@ import Component from '../../components/toggle';
|
|
11
11
|
* Note: It internally renders a checkbox styled as a toggle switch.
|
12
12
|
*
|
13
13
|
* @dependency mdc-icon
|
14
|
+
* @dependency mdc-statictoggle
|
14
15
|
*
|
15
16
|
* @tagname mdc-toggle
|
16
17
|
*
|
17
18
|
* @event change - (React: onChange) Event that gets dispatched when the toggle state changes.
|
18
19
|
* @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.
|
19
20
|
*
|
20
|
-
* @cssproperty --mdc-toggle-width -
|
21
|
-
* @cssproperty --mdc-toggle-height -
|
22
|
-
* @cssproperty --mdc-toggle-width-compact -
|
23
|
-
* @cssproperty --mdc-toggle-height-compact -
|
24
|
-
* @cssproperty --mdc-toggle-
|
25
|
-
* @cssproperty --mdc-toggle-
|
26
|
-
* @cssproperty --mdc-toggle-
|
27
|
-
* @cssproperty --mdc-toggle-
|
28
|
-
* @cssproperty --mdc-toggle-
|
29
|
-
* @cssproperty --mdc-toggle-
|
30
|
-
* @cssproperty --mdc-toggle-
|
31
|
-
* @cssproperty --mdc-toggle-
|
32
|
-
* @cssproperty --mdc-toggle-
|
33
|
-
* @cssproperty --mdc-toggle-active-pressed-color - background color of the active toggle in pressed state
|
34
|
-
* @cssproperty --mdc-toggle-active-disabled-color - background color of the active toggle in disabled state
|
35
|
-
* @cssproperty --mdc-toggle-help-text-color - color of the help text label
|
36
|
-
* @cssproperty --mdc-toggle-label-color-disabled - color of the toggle label and help text in disabled state
|
37
|
-
*
|
21
|
+
* @cssproperty --mdc-toggle-width - Width of the toggle
|
22
|
+
* @cssproperty --mdc-toggle-height - Height of the toggle
|
23
|
+
* @cssproperty --mdc-toggle-width-compact - Width of the toggle when it's size is compact
|
24
|
+
* @cssproperty --mdc-toggle-height-compact - Height of the toggle when it's size is compact
|
25
|
+
* @cssproperty --mdc-toggle-label-lineheight - Line height of the toggle label
|
26
|
+
* @cssproperty --mdc-toggle-label-fontsize - Font size of the toggle label
|
27
|
+
* @cssproperty --mdc-toggle-label-fontweight - Font weight of the toggle label
|
28
|
+
* @cssproperty --mdc-toggle-label-color-disabled - Color of the toggle label and help text in disabled state
|
29
|
+
* @cssproperty --mdc-toggle-help-text-color - Color of the help text label
|
30
|
+
* @cssproperty --mdc-toggle-active-hover-color - Background color of the active toggle in hover state
|
31
|
+
* @cssproperty --mdc-toggle-active-pressed-color - Background color of the active toggle in pressed state
|
32
|
+
* @cssproperty --mdc-toggle-inactive-hover-color - Background color of the inactive toggle in hover state
|
33
|
+
* @cssproperty --mdc-toggle-inactive-pressed-color - Background color of the inactive toggle in pressed state
|
38
34
|
*/
|
39
35
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
40
36
|
onChange: EventName<Event>;
|
@@ -13,30 +13,26 @@ import { TAG_NAME } from '../../components/toggle/toggle.constants';
|
|
13
13
|
* Note: It internally renders a checkbox styled as a toggle switch.
|
14
14
|
*
|
15
15
|
* @dependency mdc-icon
|
16
|
+
* @dependency mdc-statictoggle
|
16
17
|
*
|
17
18
|
* @tagname mdc-toggle
|
18
19
|
*
|
19
20
|
* @event change - (React: onChange) Event that gets dispatched when the toggle state changes.
|
20
21
|
* @event focus - (React: onFocus) Event that gets dispatched when the toggle receives focus.
|
21
22
|
*
|
22
|
-
* @cssproperty --mdc-toggle-width -
|
23
|
-
* @cssproperty --mdc-toggle-height -
|
24
|
-
* @cssproperty --mdc-toggle-width-compact -
|
25
|
-
* @cssproperty --mdc-toggle-height-compact -
|
26
|
-
* @cssproperty --mdc-toggle-
|
27
|
-
* @cssproperty --mdc-toggle-
|
28
|
-
* @cssproperty --mdc-toggle-
|
29
|
-
* @cssproperty --mdc-toggle-
|
30
|
-
* @cssproperty --mdc-toggle-
|
31
|
-
* @cssproperty --mdc-toggle-
|
32
|
-
* @cssproperty --mdc-toggle-
|
33
|
-
* @cssproperty --mdc-toggle-
|
34
|
-
* @cssproperty --mdc-toggle-
|
35
|
-
* @cssproperty --mdc-toggle-active-pressed-color - background color of the active toggle in pressed state
|
36
|
-
* @cssproperty --mdc-toggle-active-disabled-color - background color of the active toggle in disabled state
|
37
|
-
* @cssproperty --mdc-toggle-help-text-color - color of the help text label
|
38
|
-
* @cssproperty --mdc-toggle-label-color-disabled - color of the toggle label and help text in disabled state
|
39
|
-
*
|
23
|
+
* @cssproperty --mdc-toggle-width - Width of the toggle
|
24
|
+
* @cssproperty --mdc-toggle-height - Height of the toggle
|
25
|
+
* @cssproperty --mdc-toggle-width-compact - Width of the toggle when it's size is compact
|
26
|
+
* @cssproperty --mdc-toggle-height-compact - Height of the toggle when it's size is compact
|
27
|
+
* @cssproperty --mdc-toggle-label-lineheight - Line height of the toggle label
|
28
|
+
* @cssproperty --mdc-toggle-label-fontsize - Font size of the toggle label
|
29
|
+
* @cssproperty --mdc-toggle-label-fontweight - Font weight of the toggle label
|
30
|
+
* @cssproperty --mdc-toggle-label-color-disabled - Color of the toggle label and help text in disabled state
|
31
|
+
* @cssproperty --mdc-toggle-help-text-color - Color of the help text label
|
32
|
+
* @cssproperty --mdc-toggle-active-hover-color - Background color of the active toggle in hover state
|
33
|
+
* @cssproperty --mdc-toggle-active-pressed-color - Background color of the active toggle in pressed state
|
34
|
+
* @cssproperty --mdc-toggle-inactive-hover-color - Background color of the inactive toggle in hover state
|
35
|
+
* @cssproperty --mdc-toggle-inactive-pressed-color - Background color of the inactive toggle in pressed state
|
40
36
|
*/
|
41
37
|
const reactWrapper = createComponent({
|
42
38
|
tagName: TAG_NAME,
|
package/package.json
CHANGED