mtrl 0.8.0-next.13 → 0.8.0-next.14
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/components/card/index.d.ts +1 -1
- package/dist/components/dialog/config.d.ts +1 -5
- package/dist/components/dialog/features.d.ts +0 -5
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/types.d.ts +13 -2
- package/dist/components/extended-fab/index.d.ts +1 -1
- package/dist/components/fab/index.d.ts +1 -1
- package/dist/components/navigation/index.d.ts +1 -1
- package/dist/components/radios/index.d.ts +1 -1
- package/dist/components/sheet/index.d.ts +1 -1
- package/dist/components/slider/index.d.ts +1 -1
- package/dist/components/switch/index.d.ts +3 -2
- package/dist/components/tabs/index.d.ts +3 -2
- package/dist/components/textfield/index.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/index.cjs +13 -13
- package/dist/index.cjs.map +5 -5
- package/dist/index.js +13 -13
- package/dist/index.js.map +5 -5
- package/dist/package.json +1 -1
- package/dist/styles.css +2 -2
- package/package.json +1 -1
- package/src/styles/components/_dialog.scss +86 -22
|
@@ -65,7 +65,7 @@ export { default } from "./card";
|
|
|
65
65
|
*
|
|
66
66
|
* These types define the structure and behavior of the Card component.
|
|
67
67
|
*/
|
|
68
|
-
export { CardVariant, CardElevationLevel, CardSchema, CardHeaderConfig, CardContentConfig, CardActionsConfig, CardMediaConfig, CardAriaAttributes, CardComponent, LoadingFeature, ExpandableFeature, SwipeableFeature, } from "./types";
|
|
68
|
+
export type { CardVariant, CardElevationLevel, CardSchema, CardHeaderConfig, CardContentConfig, CardActionsConfig, CardMediaConfig, CardAriaAttributes, CardComponent, LoadingFeature, ExpandableFeature, SwipeableFeature, } from "./types";
|
|
69
69
|
export { createCardContent, createCardHeader, createCardActions, createCardMedia, } from "./content";
|
|
70
70
|
export { withAPI } from "./api";
|
|
71
71
|
export { withLoading, withExpandable, withSwipeable, withElevation, } from "./features";
|
|
@@ -43,11 +43,7 @@ export declare const getElementConfig: (config: DialogConfig) => {
|
|
|
43
43
|
*/
|
|
44
44
|
export declare const getOverlayConfig: (config: DialogConfig) => {
|
|
45
45
|
tag: string;
|
|
46
|
-
attributes: {
|
|
47
|
-
'aria-modal': boolean;
|
|
48
|
-
role: string;
|
|
49
|
-
tabindex: number;
|
|
50
|
-
};
|
|
46
|
+
attributes: {};
|
|
51
47
|
className: string;
|
|
52
48
|
};
|
|
53
49
|
/**
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { DialogConfig } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Creates the dialog DOM structure with proper divider handling
|
|
4
|
-
* @param config Dialog configuration
|
|
5
|
-
* @returns Component enhancer with DOM structure
|
|
6
|
-
*/
|
|
7
2
|
export declare const withStructure: (config: DialogConfig) => (component: any) => any;
|
|
8
3
|
/**
|
|
9
4
|
* Add methods to manage dividers
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
* @category Components
|
|
12
12
|
*/
|
|
13
13
|
export { default } from "./dialog";
|
|
14
|
-
export { DialogConfig, DialogComponent, DialogButton, DialogEvent, DialogConfirmOptions, DialogSize, DialogAnimation, DialogFooterAlignment, DialogEventType, } from "./types";
|
|
14
|
+
export type { DialogConfig, DialogComponent, DialogButton, DialogEvent, DialogConfirmOptions, DialogSize, DialogAnimation, DialogFooterAlignment, DialogEventType, } from "./types";
|
|
@@ -71,10 +71,21 @@ export interface DialogConfig {
|
|
|
71
71
|
*/
|
|
72
72
|
content?: string;
|
|
73
73
|
/**
|
|
74
|
-
* Whether to show close
|
|
75
|
-
*
|
|
74
|
+
* Whether to show a close affordance in the header. A basic dialog has
|
|
75
|
+
* none in M3: it is dismissed by its actions. A full-screen dialog shows
|
|
76
|
+
* one unless this is set to false.
|
|
77
|
+
* @default false (true for the fullscreen size)
|
|
76
78
|
*/
|
|
77
79
|
closeButton?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Accessible name for a dialog without a headline
|
|
82
|
+
*/
|
|
83
|
+
ariaLabel?: string;
|
|
84
|
+
/**
|
|
85
|
+
* ARIA role for the dialog. A basic dialog is an `alertdialog` and a
|
|
86
|
+
* full-screen one a `dialog`; set this to override.
|
|
87
|
+
*/
|
|
88
|
+
role?: 'alertdialog' | 'dialog';
|
|
78
89
|
/**
|
|
79
90
|
* Additional CSS classes to apply to the dialog
|
|
80
91
|
* @example "settings-dialog important-dialog"
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
* @category Components
|
|
34
34
|
*/
|
|
35
35
|
export { default, default as createExtendedFab } from './extended-fab';
|
|
36
|
-
export { ExtendedFabConfig, ExtendedFabComponent, ExtendedFabVariant, ExtendedFabWidth, ExtendedFabPosition } from './types';
|
|
36
|
+
export type { ExtendedFabConfig, ExtendedFabComponent, ExtendedFabVariant, ExtendedFabWidth, ExtendedFabPosition } from './types';
|
|
@@ -32,4 +32,4 @@
|
|
|
32
32
|
* @category Components
|
|
33
33
|
*/
|
|
34
34
|
export { default, default as createFab } from "./fab";
|
|
35
|
-
export { FabConfig, FabComponent, FabVariant, FabSize, FabPosition, } from "./types";
|
|
35
|
+
export type { FabConfig, FabComponent, FabVariant, FabSize, FabPosition, } from "./types";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './navigation';
|
|
2
|
-
export { NavigationConfig, NavigationComponent, NavItemConfig, NavGroupConfig } from './types';
|
|
2
|
+
export type { NavigationConfig, NavigationComponent, NavItemConfig, NavGroupConfig } from './types';
|
|
3
3
|
export { NAV_VARIANTS, NAV_POSITIONS, NAV_BEHAVIORS, NAV_ITEM_STATES, NAV_EVENTS, NAV_DEFAULTS, NAV_CLASSES } from './constants';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './radios';
|
|
2
|
-
export { RadiosConfig, RadiosComponent, RadioOptionConfig } from './types';
|
|
2
|
+
export type { RadiosConfig, RadiosComponent, RadioOptionConfig } from './types';
|
|
3
3
|
export { RADIO_STATES, RADIO_DIRECTIONS, RADIO_VARIANTS, RADIO_LABEL_POSITIONS, RADIO_SIZES, RADIO_EVENTS, RADIO_DEFAULTS, RADIO_CLASSES } from './constants';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './sheet';
|
|
2
2
|
export { SHEET_VARIANTS, SHEET_POSITIONS, SHEET_EVENTS, SHEET_ELEVATION, SHEET_DEFAULTS, SHEET_ANIMATION, SHEET_GESTURE, SHEET_CLASSES } from './constants';
|
|
3
|
-
export { SheetConfig, SheetComponent } from './types';
|
|
3
|
+
export type { SheetConfig, SheetComponent } from './types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from "./slider";
|
|
2
|
-
export {
|
|
2
|
+
export type { SliderConfig, SliderComponent, SliderEvent, } from "./types";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default } from './switch';
|
|
2
2
|
export { SWITCH_LABEL_POSITIONS, SWITCH_STATES, SWITCH_EVENTS, SWITCH_DEFAULTS, SWITCH_CLASSES } from './constants';
|
|
3
|
-
export { SwitchConfig, SwitchComponent } from './types';
|
|
4
|
-
export { withSupportingText
|
|
3
|
+
export type { SwitchConfig, SwitchComponent } from './types';
|
|
4
|
+
export { withSupportingText } from './features';
|
|
5
|
+
export type { SupportingTextComponent } from './features';
|
|
@@ -5,7 +5,8 @@ import { createTabsState } from "./state";
|
|
|
5
5
|
import { createTabIndicator } from "./indicator";
|
|
6
6
|
import { updateTabPanels, setupKeyboardNavigation } from "./utils";
|
|
7
7
|
export { TAB_VARIANTS, TAB_STATES, TAB_INDICATOR_WIDTH_STRATEGIES, TAB_EVENTS, TABS_EVENTS, TABS_DEFAULTS, TABS_CLASSES, TAB_CLASSES, } from "./constants";
|
|
8
|
-
export { TabsConfig, TabsComponent, TabComponent, TabConfig, TabChangeEventData, IndicatorConfig, } from "./types";
|
|
8
|
+
export type { TabsConfig, TabsComponent, TabComponent, TabConfig, TabChangeEventData, IndicatorConfig, } from "./types";
|
|
9
9
|
export { addScrollIndicators, setupResponsiveBehavior, createTabsState, createTabIndicator, updateTabPanels, setupKeyboardNavigation, };
|
|
10
|
-
export { withTabsManagement, withScrollable, withDivider, withIndicator
|
|
10
|
+
export { withTabsManagement, withScrollable, withDivider, withIndicator } from "./features";
|
|
11
|
+
export type { TabsManagementConfig, TabsManagementComponent, ScrollableConfig, ScrollableComponent, DividerConfig, IndicatorFeatureConfig, IndicatorComponent } from "./features";
|
|
11
12
|
export default createTabs;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from "./textfield";
|
|
2
|
-
export { TextfieldConfig, TextfieldComponent, TextfieldDensity } from "./types";
|
|
2
|
+
export type { TextfieldConfig, TextfieldComponent, TextfieldDensity } from "./types";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default } from './tooltip';
|
|
2
2
|
export { TOOLTIP_POSITIONS, TOOLTIP_VARIANTS, TOOLTIP_EVENTS, TOOLTIP_DEFAULTS, TOOLTIP_CLASSES } from './constants';
|
|
3
|
-
export { TooltipConfig, TooltipComponent } from './types';
|
|
3
|
+
export type { TooltipConfig, TooltipComponent } from './types';
|