@wikimedia/codex
Advanced tools
Comparing version
@@ -10,4 +10,2 @@ import { PropType } from 'vue'; | ||
* Forces the accordion to show the action icon. | ||
* | ||
* @values 'true', 'false' | ||
*/ | ||
@@ -53,4 +51,2 @@ actionAlwaysVisible: { | ||
* Forces the accordion to show the action icon. | ||
* | ||
* @values 'true', 'false' | ||
*/ | ||
@@ -57,0 +53,0 @@ actionAlwaysVisible: { |
import { PropType } from 'vue'; | ||
import { DialogAction, PrimaryDialogAction } from '../../types'; | ||
import { ModalAction, PrimaryModalAction } from '../../types'; | ||
/** | ||
@@ -60,3 +60,3 @@ * A modal element that overlays the current page, preventing interaction with | ||
primaryAction: { | ||
type: PropType<PrimaryDialogAction>; | ||
type: PropType<PrimaryModalAction>; | ||
default: null; | ||
@@ -68,3 +68,3 @@ }; | ||
defaultAction: { | ||
type: PropType<DialogAction>; | ||
type: PropType<ModalAction>; | ||
default: null; | ||
@@ -181,3 +181,3 @@ }; | ||
primaryAction: { | ||
type: PropType<PrimaryDialogAction>; | ||
type: PropType<PrimaryModalAction>; | ||
default: null; | ||
@@ -189,3 +189,3 @@ }; | ||
defaultAction: { | ||
type: PropType<DialogAction>; | ||
type: PropType<ModalAction>; | ||
default: null; | ||
@@ -236,4 +236,4 @@ }; | ||
closeButtonLabel: string; | ||
primaryAction: PrimaryDialogAction; | ||
defaultAction: DialogAction; | ||
primaryAction: PrimaryModalAction; | ||
defaultAction: ModalAction; | ||
stackedActions: boolean; | ||
@@ -240,0 +240,0 @@ renderInPlace: boolean; |
@@ -41,4 +41,2 @@ import { PropType } from 'vue'; | ||
* The content inside the textarea is visible and there's no scroll. | ||
* | ||
* @values true, false | ||
*/ | ||
@@ -153,4 +151,2 @@ autosize: { | ||
* The content inside the textarea is visible and there's no scroll. | ||
* | ||
* @values true, false | ||
*/ | ||
@@ -157,0 +153,0 @@ autosize: { |
@@ -67,4 +67,4 @@ /** | ||
import * as stringHelpers from './utils/stringHelpers'; | ||
import type { I18nMessageKey, I18nFunction, HTMLDirection, ButtonAction, ButtonWeight, ButtonSize, ButtonGroupItem, FloatingMenuOptions, IconSize, StatusType, TextInputType, MenuButtonItemData, MenuConfig, MenuGroupData, MenuState, MenuItemValue, MenuItemData, MenuItemDataWithId, MenuItemLanguageData, SearchResult, SearchResultClickEvent, Thumbnail, DialogAction, PrimaryDialogAction, BoxDimensions, ValidationStatusType, ValidationMessages, HeadingLevel, ChipInputItem, ChipValidator, TableColumn, TableRow, TableSort, TableSortOption } from './types'; | ||
import type { I18nMessageKey, I18nFunction, HTMLDirection, ButtonAction, ButtonWeight, ButtonSize, ButtonGroupItem, PositionConfig, FloatingMenuOptions, IconSize, StatusType, TextInputType, MenuButtonItemData, MenuConfig, MenuGroupData, MenuState, MenuItemValue, MenuItemData, MenuItemDataWithId, MenuItemLanguageData, SearchResult, SearchResultClickEvent, Thumbnail, ModalAction, PrimaryModalAction, DialogAction, PrimaryDialogAction, BoxDimensions, ValidationStatusType, ValidationMessages, HeadingLevel, ChipInputItem, ChipValidator, TableColumn, TableRow, TableSort, TableSortOption } from './types'; | ||
import { TableRowIdentifier } from './constants'; | ||
export { CdxAccordion, CdxButton, CdxButtonGroup, CdxCard, CdxCheckbox, CdxChipInput, CdxCombobox, CdxDialog, CdxField, CdxIcon, CdxInfoChip, CdxLabel, CdxLookup, CdxMenu, CdxMenuButton, CdxMenuItem, CdxMessage, CdxMultiselectLookup, CdxProgressBar, CdxRadio, CdxSearchInput, CdxSearchResultTitle, CdxSelect, CdxTable, CdxTab, CdxTabs, CdxTextArea, CdxTextInput, CdxThumbnail, CdxToggleButton, CdxToggleButtonGroup, CdxToggleSwitch, CdxTooltip, CdxTypeaheadSearch, useComputedDirection, useComputedDisabled, useComputedLanguage, useFieldData, useFloatingMenu, useGeneratedId, useI18n, useIntersectionObserver, useModelWrapper, useResizeObserver, useSlotContents, useSplitAttributes, useWarnOnce, stringHelpers, I18nMessageKey, I18nFunction, HTMLDirection, ButtonAction, ButtonWeight, ButtonSize, ButtonGroupItem, FloatingMenuOptions, TextInputType, IconSize, MenuButtonItemData, MenuConfig, MenuGroupData, MenuState, MenuItemValue, MenuItemData, MenuItemDataWithId, MenuItemLanguageData, SearchResult, SearchResultClickEvent, StatusType, Thumbnail, DialogAction, PrimaryDialogAction, BoxDimensions, ValidationStatusType, ValidationMessages, HeadingLevel, ChipInputItem, ChipValidator, TableColumn, TableRow, TableSort, TableSortOption, TableRowIdentifier }; | ||
export { CdxAccordion, CdxButton, CdxButtonGroup, CdxCard, CdxCheckbox, CdxChipInput, CdxCombobox, CdxDialog, CdxField, CdxIcon, CdxInfoChip, CdxLabel, CdxLookup, CdxMenu, CdxMenuButton, CdxMenuItem, CdxMessage, CdxMultiselectLookup, CdxProgressBar, CdxRadio, CdxSearchInput, CdxSearchResultTitle, CdxSelect, CdxTable, CdxTab, CdxTabs, CdxTextArea, CdxTextInput, CdxThumbnail, CdxToggleButton, CdxToggleButtonGroup, CdxToggleSwitch, CdxTooltip, CdxTypeaheadSearch, useComputedDirection, useComputedDisabled, useComputedLanguage, useFieldData, useFloatingMenu, useGeneratedId, useI18n, useIntersectionObserver, useModelWrapper, useResizeObserver, useSlotContents, useSplitAttributes, useWarnOnce, stringHelpers, I18nMessageKey, I18nFunction, HTMLDirection, ButtonAction, ButtonWeight, ButtonSize, ButtonGroupItem, PositionConfig, FloatingMenuOptions, TextInputType, IconSize, MenuButtonItemData, MenuConfig, MenuGroupData, MenuState, MenuItemValue, MenuItemData, MenuItemDataWithId, MenuItemLanguageData, SearchResult, SearchResultClickEvent, StatusType, Thumbnail, ModalAction, PrimaryModalAction, DialogAction, PrimaryDialogAction, BoxDimensions, ValidationStatusType, ValidationMessages, HeadingLevel, ChipInputItem, ChipValidator, TableColumn, TableRow, TableSort, TableSortOption, TableRowIdentifier }; |
@@ -133,2 +133,6 @@ /*! | ||
/** @public */ | ||
export interface PositionConfig { | ||
placement?: Placement; | ||
} | ||
/** @public */ | ||
export type ImageAspectRatio = typeof ImageAspectRatios[number]; | ||
@@ -158,3 +162,3 @@ /** @public */ | ||
/** @public */ | ||
export interface DialogAction { | ||
export interface ModalAction { | ||
label: string; | ||
@@ -164,6 +168,12 @@ disabled?: boolean; | ||
/** @public */ | ||
export interface PrimaryDialogAction extends DialogAction { | ||
export interface PrimaryModalAction extends ModalAction { | ||
actionType: 'progressive' | 'destructive'; | ||
} | ||
/** @public */ | ||
export interface DialogAction extends ModalAction { | ||
} | ||
/** @public */ | ||
export interface PrimaryDialogAction extends PrimaryModalAction { | ||
} | ||
/** @public */ | ||
export interface BoxDimensions { | ||
@@ -170,0 +180,0 @@ width: number | undefined; |
{ | ||
"name": "@wikimedia/codex", | ||
"version": "1.20.2", | ||
"version": "1.20.3", | ||
"type": "module", | ||
@@ -93,4 +93,4 @@ "description": "Codex Design System for Wikimedia", | ||
"@floating-ui/vue": "1.0.6", | ||
"@wikimedia/codex-icons": "1.20.2" | ||
"@wikimedia/codex-icons": "1.20.3" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
6910398
0.17%271
0.37%64612
0.07%+ Added
- Removed