@momentum-design/components 0.121.5 → 0.121.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/browser/index.js +9 -5
- package/dist/browser/index.js.map +2 -2
- package/dist/components/input/input.styles.js +8 -4
- package/dist/components/password/password.component.js +2 -2
- package/dist/components/textarea/textarea.types.d.ts +11 -6
- package/dist/custom-elements.json +4 -2
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
|
@@ -13,11 +13,13 @@ const styles = [
|
|
|
13
13
|
:host,
|
|
14
14
|
:host::part(input-container),
|
|
15
15
|
:host::part(input-section),
|
|
16
|
-
:host::part(input-text)
|
|
16
|
+
:host::part(input-text),
|
|
17
|
+
::slotted(input) {
|
|
17
18
|
width: 100%;
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
:host::part(input-text)
|
|
21
|
+
:host::part(input-text),
|
|
22
|
+
::slotted(input) {
|
|
21
23
|
font-family: inherit;
|
|
22
24
|
}
|
|
23
25
|
|
|
@@ -55,14 +57,16 @@ const styles = [
|
|
|
55
57
|
gap: 0.25rem;
|
|
56
58
|
}
|
|
57
59
|
|
|
58
|
-
:host::part(input-text)
|
|
60
|
+
:host::part(input-text),
|
|
61
|
+
::slotted(input) {
|
|
59
62
|
border: none;
|
|
60
63
|
color: var(--mdc-input-text-color);
|
|
61
64
|
background-color: inherit;
|
|
62
65
|
outline: none;
|
|
63
66
|
}
|
|
64
67
|
|
|
65
|
-
:host::part(input-text)::selection
|
|
68
|
+
:host::part(input-text)::selection,
|
|
69
|
+
::slotted(input)::selection {
|
|
66
70
|
background-color: var(--mdc-input-selection-background-color);
|
|
67
71
|
color: var(--mdc-input-selection-text-color);
|
|
68
72
|
}
|
|
@@ -136,11 +136,11 @@ class Password extends Input {
|
|
|
136
136
|
}
|
|
137
137
|
Password.styles = [...Input.styles];
|
|
138
138
|
__decorate([
|
|
139
|
-
property({ type: String, attribute: 'show-button-aria-label' }),
|
|
139
|
+
property({ type: String, attribute: 'show-button-aria-label', reflect: true }),
|
|
140
140
|
__metadata("design:type", Object)
|
|
141
141
|
], Password.prototype, "showButtonAriaLabel", void 0);
|
|
142
142
|
__decorate([
|
|
143
|
-
property({ type: String, attribute: 'hide-button-aria-label' }),
|
|
143
|
+
property({ type: String, attribute: 'hide-button-aria-label', reflect: true }),
|
|
144
144
|
__metadata("design:type", Object)
|
|
145
145
|
], Password.prototype, "hideButtonAriaLabel", void 0);
|
|
146
146
|
__decorate([
|
|
@@ -3,11 +3,16 @@ import type Textarea from './textarea.component';
|
|
|
3
3
|
import { AUTO_COMPLETE, WRAP } from './textarea.constants';
|
|
4
4
|
type WrapType = ValueOf<typeof WRAP>;
|
|
5
5
|
type AutoCompleteType = ValueOf<typeof AUTO_COMPLETE>;
|
|
6
|
+
type TextareaInputEvent = OverrideEventTarget<InputEvent, Textarea>;
|
|
7
|
+
type TextareaChangeEvent = TypedCustomEvent<Textarea>;
|
|
8
|
+
type TextareaFocusEvent = OverrideEventTarget<FocusEvent, Textarea>;
|
|
9
|
+
type TextareaBlurEvent = OverrideEventTarget<FocusEvent, Textarea>;
|
|
10
|
+
type TextareaLimitExceededEvent = TypedCustomEvent<Textarea>;
|
|
6
11
|
interface Events {
|
|
7
|
-
onInputEvent:
|
|
8
|
-
onChangeEvent:
|
|
9
|
-
onFocusEvent:
|
|
10
|
-
onBlurEvent:
|
|
11
|
-
onLimitExceededEvent:
|
|
12
|
+
onInputEvent: TextareaInputEvent;
|
|
13
|
+
onChangeEvent: TextareaChangeEvent;
|
|
14
|
+
onFocusEvent: TextareaFocusEvent;
|
|
15
|
+
onBlurEvent: TextareaBlurEvent;
|
|
16
|
+
onLimitExceededEvent: TextareaLimitExceededEvent;
|
|
12
17
|
}
|
|
13
|
-
export type { WrapType, AutoCompleteType, Events };
|
|
18
|
+
export type { WrapType, AutoCompleteType, Events, TextareaInputEvent, TextareaChangeEvent, TextareaFocusEvent, TextareaBlurEvent, TextareaLimitExceededEvent, };
|
|
@@ -31633,7 +31633,8 @@
|
|
|
31633
31633
|
},
|
|
31634
31634
|
"default": "''",
|
|
31635
31635
|
"description": "Aria label for the show password icon button.",
|
|
31636
|
-
"attribute": "show-button-aria-label"
|
|
31636
|
+
"attribute": "show-button-aria-label",
|
|
31637
|
+
"reflects": true
|
|
31637
31638
|
},
|
|
31638
31639
|
{
|
|
31639
31640
|
"kind": "field",
|
|
@@ -31643,7 +31644,8 @@
|
|
|
31643
31644
|
},
|
|
31644
31645
|
"default": "''",
|
|
31645
31646
|
"description": "Aria label for the hide password icon button.",
|
|
31646
|
-
"attribute": "hide-button-aria-label"
|
|
31647
|
+
"attribute": "hide-button-aria-label",
|
|
31648
|
+
"reflects": true
|
|
31647
31649
|
},
|
|
31648
31650
|
{
|
|
31649
31651
|
"kind": "field",
|
package/dist/index.d.ts
CHANGED
|
@@ -96,9 +96,10 @@ import type { MenuSectionChangeEvent } from './components/menusection/menusectio
|
|
|
96
96
|
import type { SliderChangeEvent } from './components/slider/slider.types';
|
|
97
97
|
import type { InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent } from './components/input/input.types';
|
|
98
98
|
import type { VirtualizedListScrollEvent } from './components/virtualizedlist/virtualizedlist.types';
|
|
99
|
+
import type { TextareaInputEvent, TextareaChangeEvent, TextareaFocusEvent, TextareaBlurEvent, TextareaLimitExceededEvent } from './components/textarea/textarea.types';
|
|
99
100
|
import { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, PILL_BUTTON_SIZES } from './components/button/button.constants';
|
|
100
101
|
import { SKELETON_VARIANTS } from './components/skeleton/skeleton.constants';
|
|
101
102
|
import { inMemoryCache, webAPIAssetsCache } from './utils/assets-cache';
|
|
102
103
|
export { Accordion, AccordionButton, AccordionGroup, AlertChip, Animation, AnnouncementDialog, Appheader, Avatar, AvatarButton, Badge, Brandvisual, Bullet, Button, ButtonGroup, ButtonLink, Card, CardButton, CardCheckbox, CardRadio, Checkbox, Chip, Coachmark, ControlTypeProvider, Dialog, Divider, FilterChip, FormfieldGroup, Icon, IconProvider, Illustration, IllustrationProvider, Input, InputChip, Link, LinkButton, Linksimple, List, Listheader, ListItem, Marker, MenuBar, MenuItem, MenuItemCheckbox, MenuItemRadio, MenuPopover, MenuSection, NavMenuItem, OptGroup, Option, Password, Popover, Presence, Progressbar, Progressspinner, Radio, RadioGroup, ScreenreaderAnnouncer, Searchfield, Select, SelectListbox, SideNavigation, Skeleton, Spinner, StaticChip, StaticCheckbox, StaticRadio, StaticToggle, Stepper, StepperConnector, StepperItem, Tab, TabList, Text, Textarea, ThemeProvider, Toast, Toggle, Typewriter, ToggleTip, Tooltip, VirtualizedList, Combobox, Slider, ListBox, Banner, };
|
|
103
|
-
export type { BadgeType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, SliderChangeEvent, TextType, TypewriterType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, VirtualizedListScrollEvent, };
|
|
104
|
+
export type { BadgeType, ButtonColor, ButtonVariant, IconButtonSize, MenuPopoverActionEvent, MenuPopoverChangeEvent, MenuSectionChangeEvent, PillButtonSize, PopoverPlacement, SkeletonVariant, SelectChangeEvent, SelectInputEvent, SpinnerSize, SpinnerVariant, SliderChangeEvent, TextType, TypewriterType, InputInputEvent, InputChangeEvent, InputFocusEvent, InputBlurEvent, InputClearEvent, VirtualizedListScrollEvent, TextareaInputEvent, TextareaChangeEvent, TextareaFocusEvent, TextareaBlurEvent, TextareaLimitExceededEvent, };
|
|
104
105
|
export { BUTTON_COLORS, BUTTON_VARIANTS, ICON_BUTTON_SIZES, inMemoryCache, PILL_BUTTON_SIZES, SKELETON_VARIANTS, webAPIAssetsCache, };
|