@worldresources/wri-design-systems 2.195.1 → 2.196.1
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/README.md +7 -10
- package/agents/setup-ai.mjs +28 -12
- package/agents/setup-ai.sh +14 -9
- package/agents/skills/a11y-checker/SKILL.md +2 -2
- package/dist/index.cjs.js +245 -152
- package/dist/index.d.ts +30 -1
- package/dist/index.esm.js +463 -370
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -170,6 +170,19 @@ type SearchLabels = {
|
|
|
170
170
|
/** aria-label on the filter input. Default: "Search filter" */
|
|
171
171
|
filterAriaLabel: string;
|
|
172
172
|
};
|
|
173
|
+
/** Labels for MobileSearch internal UI strings. */
|
|
174
|
+
type MobileSearchLabels = {
|
|
175
|
+
/** aria-label on the search input. Must be string (aria-label). Default: "Search" */
|
|
176
|
+
inputAriaLabel: string;
|
|
177
|
+
/** Label on the cancel button. Passed to Button.label (string). Default: "Cancel" */
|
|
178
|
+
cancelLabel: string;
|
|
179
|
+
/** Heading shown above the list when no query is typed. Default: "Recent searches" */
|
|
180
|
+
recentSearchesTitle: string;
|
|
181
|
+
/** Heading template shown when there are filtered results. (count) => string. Default: (n) => `Showing ${n} matching results` */
|
|
182
|
+
matchingResultsTitle: (count: number) => string;
|
|
183
|
+
/** Label text inside the InlineMessage shown when no query. Default: "Label" */
|
|
184
|
+
infoLabel: string;
|
|
185
|
+
};
|
|
173
186
|
/** Labels for RadioList internal UI strings. */
|
|
174
187
|
type RadioListLabels = {
|
|
175
188
|
/** " Required." appended to the group aria-label. Default: "Required." */
|
|
@@ -496,6 +509,7 @@ type DesignSystemLabels = {
|
|
|
496
509
|
Button?: Partial<ButtonLabels>;
|
|
497
510
|
BaseMap?: Partial<BaseMapLabels>;
|
|
498
511
|
Search?: Partial<SearchLabels>;
|
|
512
|
+
MobileSearch?: Partial<MobileSearchLabels>;
|
|
499
513
|
RadioList?: Partial<RadioListLabels>;
|
|
500
514
|
Select?: Partial<SelectLabels>;
|
|
501
515
|
NavigationRail?: Partial<NavigationRailLabels>;
|
|
@@ -1374,6 +1388,21 @@ type SheetProps = {
|
|
|
1374
1388
|
|
|
1375
1389
|
declare const Sheet: ({ header, content, footer, open, onClose, minimizedHeight, midHeight, maxFullHeight, defaultSnap, className, blocking, zIndex, }: SheetProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1376
1390
|
|
|
1391
|
+
type MobileSearchProps = Omit<InputProps, 'size' | 'variant' | 'colorPalette' | 'defaultChecked'> & {
|
|
1392
|
+
value?: string;
|
|
1393
|
+
placeholder?: string;
|
|
1394
|
+
showInfoMessage?: boolean;
|
|
1395
|
+
items?: ListItemProps[];
|
|
1396
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
1397
|
+
onQueryChange?: (query: string) => void;
|
|
1398
|
+
onCancel?: () => void;
|
|
1399
|
+
onItemClick?: (item: ListItemProps) => void;
|
|
1400
|
+
/** Override internal UI labels for internationalization support. */
|
|
1401
|
+
labels?: Partial<MobileSearchLabels>;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
declare const MobileSearch: ({ value, placeholder, showInfoMessage, items, disabled, readOnly, id, name, autoFocus, autoComplete, onBlur, onFocus, onQueryChange, onCancel, onItemClick, onChange, labels, }: MobileSearchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1405
|
+
|
|
1377
1406
|
type BreadcrumbProps = {
|
|
1378
1407
|
links: {
|
|
1379
1408
|
label: string;
|
|
@@ -1615,4 +1644,4 @@ declare const Toast: React__default.FC<ToastComponentProps>;
|
|
|
1615
1644
|
|
|
1616
1645
|
declare const showToast: (props: ToastProps) => void;
|
|
1617
1646
|
|
|
1618
|
-
export { AlertBanner, type AlertProps, AnalysisWidget, type AnalysisWidgetActionsProps, type AnalysisWidgetLabels, type AnalysisWidgetProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseMap, type BaseMapLabels, type BaseMapOptionProps, type BaseMapProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonLabels, type ButtonProps, Checkbox, CheckboxList, type CheckboxListLabel, type CheckboxListLabels, type CheckboxListProps, CheckboxOptionCard, type CheckboxOptionCardItemProps, type CheckboxOptionCardProps, type CheckboxProps, CloseButton, type CloseButtonLabels, type CloseButtonProps, ClusterPoint, Combobox, type ComboboxProps, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, type ExtendableCardProps, Footer, type FooterProps, FormContainer, type FormContainerProps, IconButton, type IconButtonProps, InlineMessage, type InlineMessageLabels, type InlineMessageProps, InputWithUnits, type InputWithUnitsProps, ItemCount, type ItemCountLabels, type ItemCountProps, LayerGroup, LayerGroupContainer, type LayerGroupContainerProps, type LayerGroupLabels, type LayerGroupProps, LayerItem, type LayerItemProps, LayerParameters, type LayerParametersProps, LegendItem, type LegendItemLabels, type LegendItemProps, List, type ListItemProps, type ListItemVariant, type ListProps, MapControlsToolbar, type MapControlsToolbarLabels, type MapControlsToolbarProps, MapMarker, type MapMarkerProps, MapMarkers, MapPopUp, type MapPopUpLabels, type MapPopUpProps, Menu, type MenuItemProps, type MenuProps, MobileTabBar, type MobileTabBarItemProps, type MobileTabBarProps, Modal, type ModalProps, MultiActionButton, type MultiActionButtonProps, Navbar, type NavbarLabels, type NavbarNavigationItemsProps, type NavbarProps, NavigationRail, type NavigationRailLabels, type NavigationRailProps, type NavigationRailTabProps, type OpacityControlLabels, OptionCard, type OptionCardItemProps, type OptionCardProps, Pagination, type PaginationLabels, type PaginationProps, Panel, type PanelProps, Password, type PasswordLabels, type PasswordProps, ProgressBar, type ProgressBarProps, QualitativeAttribute, type QualitativeAttributeLabels, type QualitativeAttributeProps, Radio, RadioGroup, type RadioGroupProps, RadioList, type RadioListLabels, type RadioListProps, type RadioProps, RichTextEditor, type RichTextEditorControlKey, type RichTextEditorLabels, type RichTextEditorProps, type RichTextEditorSize, SSOButtons, ScaleBar, type ScaleBarProps, Search, type SearchLabels, type SearchProps, Select, type SelectItemProps, type SelectLabels, type SelectProps, Sheet, type SheetProps, SimpleMapPin, Slider, SliderInput, type SliderInputProps, type SliderMarksProps, type SliderProps, StepProgressIndicator, type StepProgressIndicatorLabels, type StepProgressIndicatorProps, type StrengthLevel, Switch, type SwitchProps, TabBar, type TabBarItemProps, type TabBarProps, Table, TableCell, type TableLabels, type TableProps, TableRow, Tag, type TagProps, TextInput, type TextInputLabels, type TextInputProps, Textarea, type TextareaLabels, type TextareaProps, Toast, type ToastComponentProps, type ToastLabels, type ToastProps, Toolbar, type ToolbarButtonProps, type ToolbarItem, type ToolbarLabels, type ToolbarProps, Tooltip, type TooltipProps, designSystemStyles, designSystemStylesForTailwind, getThemedBorderWidth, getThemedColor, getThemedFontSize, getThemedLineHeight, getThemedRadius, getThemedSpacing, showToast };
|
|
1647
|
+
export { AlertBanner, type AlertProps, AnalysisWidget, type AnalysisWidgetActionsProps, type AnalysisWidgetLabels, type AnalysisWidgetProps, Avatar, type AvatarProps, Badge, type BadgeProps, BaseMap, type BaseMapLabels, type BaseMapOptionProps, type BaseMapProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonLabels, type ButtonProps, Checkbox, CheckboxList, type CheckboxListLabel, type CheckboxListLabels, type CheckboxListProps, CheckboxOptionCard, type CheckboxOptionCardItemProps, type CheckboxOptionCardProps, type CheckboxProps, CloseButton, type CloseButtonLabels, type CloseButtonProps, ClusterPoint, Combobox, type ComboboxProps, type DesignSystemLabels, DesignSystemLocaleProvider, type DesignSystemLocaleProviderProps, ExtendableCard, type ExtendableCardProps, Footer, type FooterProps, FormContainer, type FormContainerProps, IconButton, type IconButtonProps, InlineMessage, type InlineMessageLabels, type InlineMessageProps, InputWithUnits, type InputWithUnitsProps, ItemCount, type ItemCountLabels, type ItemCountProps, LayerGroup, LayerGroupContainer, type LayerGroupContainerProps, type LayerGroupLabels, type LayerGroupProps, LayerItem, type LayerItemProps, LayerParameters, type LayerParametersProps, LegendItem, type LegendItemLabels, type LegendItemProps, List, type ListItemProps, type ListItemVariant, type ListProps, MapControlsToolbar, type MapControlsToolbarLabels, type MapControlsToolbarProps, MapMarker, type MapMarkerProps, MapMarkers, MapPopUp, type MapPopUpLabels, type MapPopUpProps, Menu, type MenuItemProps, type MenuProps, MobileSearch, type MobileSearchLabels, type MobileSearchProps, MobileTabBar, type MobileTabBarItemProps, type MobileTabBarProps, Modal, type ModalProps, MultiActionButton, type MultiActionButtonProps, Navbar, type NavbarLabels, type NavbarNavigationItemsProps, type NavbarProps, NavigationRail, type NavigationRailLabels, type NavigationRailProps, type NavigationRailTabProps, type OpacityControlLabels, OptionCard, type OptionCardItemProps, type OptionCardProps, Pagination, type PaginationLabels, type PaginationProps, Panel, type PanelProps, Password, type PasswordLabels, type PasswordProps, ProgressBar, type ProgressBarProps, QualitativeAttribute, type QualitativeAttributeLabels, type QualitativeAttributeProps, Radio, RadioGroup, type RadioGroupProps, RadioList, type RadioListLabels, type RadioListProps, type RadioProps, RichTextEditor, type RichTextEditorControlKey, type RichTextEditorLabels, type RichTextEditorProps, type RichTextEditorSize, SSOButtons, ScaleBar, type ScaleBarProps, Search, type SearchLabels, type SearchProps, Select, type SelectItemProps, type SelectLabels, type SelectProps, Sheet, type SheetProps, SimpleMapPin, Slider, SliderInput, type SliderInputProps, type SliderMarksProps, type SliderProps, StepProgressIndicator, type StepProgressIndicatorLabels, type StepProgressIndicatorProps, type StrengthLevel, Switch, type SwitchProps, TabBar, type TabBarItemProps, type TabBarProps, Table, TableCell, type TableLabels, type TableProps, TableRow, Tag, type TagProps, TextInput, type TextInputLabels, type TextInputProps, Textarea, type TextareaLabels, type TextareaProps, Toast, type ToastComponentProps, type ToastLabels, type ToastProps, Toolbar, type ToolbarButtonProps, type ToolbarItem, type ToolbarLabels, type ToolbarProps, Tooltip, type TooltipProps, designSystemStyles, designSystemStylesForTailwind, getThemedBorderWidth, getThemedColor, getThemedFontSize, getThemedLineHeight, getThemedRadius, getThemedSpacing, showToast };
|