@momentum-design/components 0.44.0 → 0.46.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 +136 -90
- package/dist/browser/index.js.map +4 -4
- package/dist/components/appheader/appheader.component.d.ts +30 -0
- package/dist/components/appheader/appheader.component.js +44 -0
- package/dist/components/appheader/appheader.constants.d.ts +2 -0
- package/dist/components/appheader/appheader.constants.js +3 -0
- package/dist/components/appheader/appheader.styles.d.ts +2 -0
- package/dist/components/appheader/appheader.styles.js +37 -0
- package/dist/components/appheader/index.d.ts +7 -0
- package/dist/components/appheader/index.js +4 -0
- package/dist/components/brandvisual/brandvisual.styles.js +1 -0
- package/dist/custom-elements.json +664 -603
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/appheader/index.d.ts +22 -0
- package/dist/react/appheader/index.js +31 -0
- package/dist/react/index.d.ts +3 -2
- package/dist/react/index.js +3 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -35,6 +35,7 @@ import OptGroup from './components/optgroup';
|
|
35
35
|
import Textarea from './components/textarea';
|
36
36
|
import Searchfield from './components/searchfield';
|
37
37
|
import Brandvisual from './components/brandvisual';
|
38
|
+
import Appheader from './components/appheader';
|
38
39
|
import type { SpinnerSize, SpinnerVariant } from './components/spinner/spinner.types';
|
39
40
|
import type { TextType } from './components/text/text.types';
|
40
41
|
import type { PopoverPlacement } from './components/popover/popover.types';
|
@@ -42,6 +43,6 @@ import type { BadgeType } from './components/badge/badge.types';
|
|
42
43
|
import type { IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor } from './components/button/button.types';
|
43
44
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
44
45
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
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, };
|
46
|
+
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, Appheader, };
|
46
47
|
export type { TextType, SpinnerSize, SpinnerVariant, PopoverPlacement, BadgeType, IconButtonSize, PillButtonSize, ButtonVariant, ButtonColor, };
|
47
48
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
package/dist/index.js
CHANGED
@@ -36,10 +36,11 @@ import OptGroup from './components/optgroup';
|
|
36
36
|
import Textarea from './components/textarea';
|
37
37
|
import Searchfield from './components/searchfield';
|
38
38
|
import Brandvisual from './components/brandvisual';
|
39
|
+
import Appheader from './components/appheader';
|
39
40
|
// Constants / Utils Imports
|
40
41
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES, } from './components/button/button.constants';
|
41
42
|
import { inMemoryCache, webAPIIconsCache } from './utils/icon-cache';
|
42
43
|
// Components Exports
|
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, };
|
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, Searchfield, Brandvisual, Appheader, };
|
44
45
|
// Constants / Utils Exports
|
45
46
|
export { inMemoryCache, webAPIIconsCache, BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import Component from '../../components/appheader';
|
2
|
+
/**
|
3
|
+
* The `mdc-appheader` component provides a structured and accessible app header layout.
|
4
|
+
* It consists of three primary sections: leading, center, and trailing.
|
5
|
+
*
|
6
|
+
* - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.
|
7
|
+
* - The **center section** can contain a **search bar**, **icons** or action controls.
|
8
|
+
* - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.
|
9
|
+
*
|
10
|
+
* @tagname mdc-appheader
|
11
|
+
*
|
12
|
+
* @slot leading - Slot for the leading section (e.g., brand logo, brand name).
|
13
|
+
* @slot center - Slot for the center section (e.g., search bar, icons).
|
14
|
+
* @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).
|
15
|
+
*
|
16
|
+
* @csspart container - The main container for styling the header.
|
17
|
+
* @csspart leading-section - The leading section of the header.
|
18
|
+
* @csspart center-section - The center section of the header.
|
19
|
+
* @csspart trailing-section - The trailing section of the header.
|
20
|
+
*/
|
21
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
22
|
+
export default reactWrapper;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/appheader';
|
4
|
+
import { TAG_NAME } from '../../components/appheader/appheader.constants';
|
5
|
+
/**
|
6
|
+
* The `mdc-appheader` component provides a structured and accessible app header layout.
|
7
|
+
* It consists of three primary sections: leading, center, and trailing.
|
8
|
+
*
|
9
|
+
* - The **leading section** typically holds a **brand logo**, **brand name** or **menu icon**.
|
10
|
+
* - The **center section** can contain a **search bar**, **icons** or action controls.
|
11
|
+
* - The **trailing section** generally includes a **profile avatar**, **additional icons** or **action controls**.
|
12
|
+
*
|
13
|
+
* @tagname mdc-appheader
|
14
|
+
*
|
15
|
+
* @slot leading - Slot for the leading section (e.g., brand logo, brand name).
|
16
|
+
* @slot center - Slot for the center section (e.g., search bar, icons).
|
17
|
+
* @slot trailing - Slot for the trailing section (e.g., profile avatar, icons).
|
18
|
+
*
|
19
|
+
* @csspart container - The main container for styling the header.
|
20
|
+
* @csspart leading-section - The leading section of the header.
|
21
|
+
* @csspart center-section - The center section of the header.
|
22
|
+
* @csspart trailing-section - The trailing section of the header.
|
23
|
+
*/
|
24
|
+
const reactWrapper = createComponent({
|
25
|
+
tagName: TAG_NAME,
|
26
|
+
elementClass: Component,
|
27
|
+
react: React,
|
28
|
+
events: {},
|
29
|
+
displayName: 'Appheader',
|
30
|
+
});
|
31
|
+
export default reactWrapper;
|
package/dist/react/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as
|
2
|
+
export { default as Appheader } from './appheader';
|
3
3
|
export { default as Avatar } from './avatar';
|
4
|
+
export { default as AvatarButton } from './avatarbutton';
|
4
5
|
export { default as Badge } from './badge';
|
5
6
|
export { default as Brandvisual } from './brandvisual';
|
6
7
|
export { default as Bullet } from './bullet';
|
@@ -28,8 +29,8 @@ export { default as Presence } from './presence';
|
|
28
29
|
export { default as Progressbar } from './progressbar';
|
29
30
|
export { default as Radio } from './radio';
|
30
31
|
export { default as RadioGroup } from './radiogroup';
|
31
|
-
export { default as Spinner } from './spinner';
|
32
32
|
export { default as Searchfield } from './searchfield';
|
33
|
+
export { default as Spinner } from './spinner';
|
33
34
|
export { default as Tab } from './tab';
|
34
35
|
export { default as Text } from './text';
|
35
36
|
export { default as Textarea } from './textarea';
|
package/dist/react/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export { default as AlertChip } from './alertchip';
|
2
|
-
export { default as
|
2
|
+
export { default as Appheader } from './appheader';
|
3
3
|
export { default as Avatar } from './avatar';
|
4
|
+
export { default as AvatarButton } from './avatarbutton';
|
4
5
|
export { default as Badge } from './badge';
|
5
6
|
export { default as Brandvisual } from './brandvisual';
|
6
7
|
export { default as Bullet } from './bullet';
|
@@ -28,8 +29,8 @@ export { default as Presence } from './presence';
|
|
28
29
|
export { default as Progressbar } from './progressbar';
|
29
30
|
export { default as Radio } from './radio';
|
30
31
|
export { default as RadioGroup } from './radiogroup';
|
31
|
-
export { default as Spinner } from './spinner';
|
32
32
|
export { default as Searchfield } from './searchfield';
|
33
|
+
export { default as Spinner } from './spinner';
|
33
34
|
export { default as Tab } from './tab';
|
34
35
|
export { default as Text } from './text';
|
35
36
|
export { default as Textarea } from './textarea';
|
package/package.json
CHANGED