@foxford/ui 2.30.0 → 2.32.0-beta-69fa699-20240618
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/components/Avatar/Avatar.js.map +1 -1
- package/components/Chip/Chip.js +2 -0
- package/components/Chip/Chip.js.map +1 -0
- package/components/Chip/constants.js +2 -0
- package/components/Chip/constants.js.map +1 -0
- package/components/Chip/style.js +2 -0
- package/components/Chip/style.js.map +1 -0
- package/components/IconButton/IconButton.js +2 -0
- package/components/IconButton/IconButton.js.map +1 -0
- package/components/IconButton/constants.js +2 -0
- package/components/IconButton/constants.js.map +1 -0
- package/components/IconButton/style.js +2 -0
- package/components/IconButton/style.js.map +1 -0
- package/components/ListItem/ListItem.js +1 -1
- package/components/ListItem/ListItem.js.map +1 -1
- package/components/ListItem/style.js +1 -1
- package/components/ListItem/style.js.map +1 -1
- package/dts/index.d.ts +123 -14
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -1
- package/shared/regexp.js +1 -1
- package/shared/regexp.js.map +1 -1
- package/theme/colors-dark.js +1 -1
- package/theme/colors-dark.js.map +1 -1
- package/theme/colors-light.js +1 -1
- package/theme/colors-light.js.map +1 -1
- package/theme/colors.js +1 -1
- package/theme/colors.js.map +1 -1
package/dts/index.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ declare enum BaseColorNames {
|
|
|
244
244
|
'border-focus' = "border-focus",
|
|
245
245
|
'border-oncolor-disabled' = "border-oncolor-disabled",
|
|
246
246
|
'border-oncolor-default' = "border-oncolor-default",
|
|
247
|
+
'border-oncolor-default-large' = "border-oncolor-default-large",
|
|
247
248
|
'bg-onmain-main' = "bg-onmain-main",
|
|
248
249
|
'bg-onmain-primary' = "bg-onmain-primary",
|
|
249
250
|
'bg-onmain-secondary' = "bg-onmain-secondary",
|
|
@@ -466,6 +467,7 @@ declare const ColorNames: {
|
|
|
466
467
|
'border-focus': (typeof BaseColorNames)["border-focus"];
|
|
467
468
|
'border-oncolor-disabled': (typeof BaseColorNames)["border-oncolor-disabled"];
|
|
468
469
|
'border-oncolor-default': (typeof BaseColorNames)["border-oncolor-default"];
|
|
470
|
+
'border-oncolor-default-large': (typeof BaseColorNames)["border-oncolor-default-large"];
|
|
469
471
|
'bg-onmain-main': (typeof BaseColorNames)["bg-onmain-main"];
|
|
470
472
|
'bg-onmain-primary': (typeof BaseColorNames)["bg-onmain-primary"];
|
|
471
473
|
'bg-onmain-secondary': (typeof BaseColorNames)["bg-onmain-secondary"];
|
|
@@ -2140,6 +2142,8 @@ interface ListItemProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit
|
|
|
2140
2142
|
palette?: Partial<Record<keyof ListItemPalette, Color>>;
|
|
2141
2143
|
/** Root border-radius */
|
|
2142
2144
|
borderRadius?: string | number;
|
|
2145
|
+
/** Apply text-overflow: ellipsis; to text content (default true) */
|
|
2146
|
+
ellipsis?: boolean;
|
|
2143
2147
|
/** Appearance variant */
|
|
2144
2148
|
primary?: boolean;
|
|
2145
2149
|
/** Appearance variant */
|
|
@@ -2258,10 +2262,113 @@ ColorProperty<'color'>, Omit<React.ComponentPropsWithRef<'span'>, 'color'> {
|
|
|
2258
2262
|
*
|
|
2259
2263
|
* Exposed "ref" attached to root node.
|
|
2260
2264
|
*
|
|
2261
|
-
* See full [AvatarProps](https://github.com/foxford/ui/blob/master/src/components/
|
|
2265
|
+
* See full [AvatarProps](https://github.com/foxford/ui/blob/master/src/components/Avatar/types.ts)
|
|
2262
2266
|
*/
|
|
2263
2267
|
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps>;
|
|
2264
2268
|
|
|
2269
|
+
declare type IconButtonPalette = {
|
|
2270
|
+
color: CSSColor;
|
|
2271
|
+
backgroundColor: CSSColor;
|
|
2272
|
+
colorHover: CSSColor;
|
|
2273
|
+
backgroundColorHover: CSSColor;
|
|
2274
|
+
colorActive: CSSColor;
|
|
2275
|
+
backgroundColorActive: CSSColor;
|
|
2276
|
+
colorDisabled: CSSColor;
|
|
2277
|
+
backgroundColorDisabled: CSSColor;
|
|
2278
|
+
};
|
|
2279
|
+
interface IconButtonProps extends ResponsiveSizeProps, ResponsiveMarginProps, Omit<React.ComponentPropsWithRef<'button'>, 'children'> {
|
|
2280
|
+
/** Custom colors */
|
|
2281
|
+
palette?: Partial<Record<keyof IconButtonPalette, Color>>;
|
|
2282
|
+
/** Icon to display */
|
|
2283
|
+
icon?: JSX.Element | IconName;
|
|
2284
|
+
/** Props for icon component */
|
|
2285
|
+
iconProps?: IconProps;
|
|
2286
|
+
/** Shape variant */
|
|
2287
|
+
square?: boolean;
|
|
2288
|
+
/** Appearance variant */
|
|
2289
|
+
primary?: boolean;
|
|
2290
|
+
/** Appearance variant */
|
|
2291
|
+
secondary?: boolean;
|
|
2292
|
+
/** Appearance variant */
|
|
2293
|
+
contrast?: boolean;
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
*
|
|
2298
|
+
* Component accepts all \<button\> attributes.
|
|
2299
|
+
*
|
|
2300
|
+
* Responsive "size", "margin" props are supported.
|
|
2301
|
+
*
|
|
2302
|
+
* Exposed "ref" attached to root node.
|
|
2303
|
+
*
|
|
2304
|
+
* See full [IconButtonProps](https://github.com/foxford/ui/blob/master/src/components/IconButton/types.ts)
|
|
2305
|
+
*/
|
|
2306
|
+
declare const IconButton: React.ForwardRefExoticComponent<IconButtonProps>;
|
|
2307
|
+
|
|
2308
|
+
declare type ChipPalette = {
|
|
2309
|
+
color: CSSColor;
|
|
2310
|
+
backgroundColor: CSSColor;
|
|
2311
|
+
borderColor: CSSColor;
|
|
2312
|
+
colorHover: CSSColor;
|
|
2313
|
+
backgroundColorHover: CSSColor;
|
|
2314
|
+
borderColorHover: CSSColor;
|
|
2315
|
+
colorDisabled: CSSColor;
|
|
2316
|
+
backgroundColorDisabled: CSSColor;
|
|
2317
|
+
borderColorDisabled: CSSColor;
|
|
2318
|
+
};
|
|
2319
|
+
interface ChipProps extends ResponsiveSizeProps, ResponsiveMarginProps, React.RefAttributes<HTMLElement>, Omit<React.ButtonHTMLAttributes<HTMLElement>, 'children'> {
|
|
2320
|
+
/** Custom colors */
|
|
2321
|
+
palette?: Partial<Record<keyof ChipPalette, Color>>;
|
|
2322
|
+
/** Main text content or render function */
|
|
2323
|
+
children?: React.ReactNode | ((props: {
|
|
2324
|
+
textProps: TextProps;
|
|
2325
|
+
captionProps: TextProps;
|
|
2326
|
+
discardButtonProps: IconButtonProps;
|
|
2327
|
+
}) => React.ReactNode);
|
|
2328
|
+
/** Main text (alternative to children) */
|
|
2329
|
+
text?: React.ReactNode;
|
|
2330
|
+
/** Props for main text component */
|
|
2331
|
+
textProps?: TextProps;
|
|
2332
|
+
/** Additional text */
|
|
2333
|
+
caption?: React.ReactNode;
|
|
2334
|
+
/** Props for caption text component */
|
|
2335
|
+
captionProps?: TextProps;
|
|
2336
|
+
/** Icons before and after content */
|
|
2337
|
+
icon?: JSX.Element | IconName | [Nullable<JSX.Element | IconName>, Nullable<JSX.Element | IconName>];
|
|
2338
|
+
/** Props for icon components */
|
|
2339
|
+
iconProps?: IconProps;
|
|
2340
|
+
/** Props for avatar component */
|
|
2341
|
+
avatarProps?: AvatarProps;
|
|
2342
|
+
/** Props for indicator component */
|
|
2343
|
+
indicatorProps?: IndicatorProps;
|
|
2344
|
+
/** Props for button with 'close' icon */
|
|
2345
|
+
discardButtonProps?: IconButtonProps;
|
|
2346
|
+
/** Appearance variant */
|
|
2347
|
+
primary?: boolean;
|
|
2348
|
+
/** Appearance variant */
|
|
2349
|
+
secondary?: boolean;
|
|
2350
|
+
/** Appearance variant */
|
|
2351
|
+
outline?: boolean;
|
|
2352
|
+
/** Appearance variant */
|
|
2353
|
+
black?: boolean;
|
|
2354
|
+
/** Appearance variant */
|
|
2355
|
+
contrast?: boolean;
|
|
2356
|
+
/** Appearance variant */
|
|
2357
|
+
active?: boolean;
|
|
2358
|
+
}
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
*
|
|
2362
|
+
* Component accepts all root HTML attributes.
|
|
2363
|
+
*
|
|
2364
|
+
* Responsive "size", "margin" props are supported.
|
|
2365
|
+
*
|
|
2366
|
+
* Exposed "ref" attached to root node.
|
|
2367
|
+
*
|
|
2368
|
+
* See full [ChipProps](https://github.com/foxford/ui/blob/master/src/components/Chip/types.ts)
|
|
2369
|
+
*/
|
|
2370
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps>;
|
|
2371
|
+
|
|
2265
2372
|
interface Theme {
|
|
2266
2373
|
breakpoints: Readonly<Record<Lowercase<Breakpoint>, number>>;
|
|
2267
2374
|
colors: Record<keyof typeof ColorNames, CSSColor>;
|
|
@@ -2284,25 +2391,27 @@ interface Theme {
|
|
|
2284
2391
|
name: ThemeName;
|
|
2285
2392
|
components?: {
|
|
2286
2393
|
Alert?: AlertProps;
|
|
2394
|
+
Anchor?: AnchorProps;
|
|
2287
2395
|
Arrow?: ArrowProps;
|
|
2396
|
+
ArrowBadge?: ArrowBadgeProps;
|
|
2397
|
+
Avatar?: AvatarProps;
|
|
2398
|
+
Badge?: BadgeProps;
|
|
2288
2399
|
Button?: ButtonProps;
|
|
2289
2400
|
Checkbox?: CheckboxProps;
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2401
|
+
Chip?: ChipProps;
|
|
2402
|
+
IconButton?: IconButtonProps;
|
|
2403
|
+
Indicator?: IndicatorProps;
|
|
2404
|
+
ListItem?: ListItemProps;
|
|
2405
|
+
Popover?: PopoverProps;
|
|
2406
|
+
PopoverComponent?: PopoverComponentProps;
|
|
2407
|
+
Skeleton?: SkeletonProps;
|
|
2294
2408
|
Switcher?: SwitcherProps;
|
|
2295
2409
|
Tab?: TabProps;
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2410
|
+
Text?: TextProps;
|
|
2411
|
+
'Text.Heading'?: TextHeadingProps;
|
|
2412
|
+
Textarea?: TextareaProps;
|
|
2299
2413
|
Tooltip?: TooltipProps;
|
|
2300
2414
|
TooltipComponent?: TooltipComponentProps;
|
|
2301
|
-
Popover?: PopoverProps;
|
|
2302
|
-
PopoverComponent?: PopoverComponentProps;
|
|
2303
|
-
ListItem?: ListItemProps;
|
|
2304
|
-
Indicator?: IndicatorProps;
|
|
2305
|
-
Avatar?: AvatarProps;
|
|
2306
2415
|
};
|
|
2307
2416
|
}
|
|
2308
2417
|
|
|
@@ -3891,4 +4000,4 @@ interface FormLabelProps extends ResponsiveSizeProps, ResponsiveMarginProps, Rea
|
|
|
3891
4000
|
*/
|
|
3892
4001
|
declare const FormLabel: React.ForwardRefExoticComponent<FormLabelProps>;
|
|
3893
4002
|
|
|
3894
|
-
export { ActionBtn, Alert, Amount, Anchor, Arrow, ArrowBadge, Avatar, Badge, BaseProps, Breakpoint, Button, COUNTRY_DATA, CSSBorderStyle, CSSColor, CSSFontWeight, CSSGlobalValue, CSSUnit, CSSVerticalAlign, CURRENCY_MAP, Checkbox, Color, ColorNames, ColorPaletteKey, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, FormLabel, HEX, INITIAL_MASK, Icon, Indicator, Input, ListItem, Modal, Nullable, Paper, Popover, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Size, Sizes, Skeleton, Spacer, Spinner, Switcher, Tab, Tabs, Tag, Text, Textarea, Theme, ThemeMode, ThemeName, ThemePreset, ThemeProvider, Tooltip, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, defaultIcons, desktopFirst, hexToRgbA, isHex, mobileFirst, motherDarkTheme, motherLightTheme, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, teenDarkTheme, teenLightTheme, defaultTheme as theme, vAlign };
|
|
4003
|
+
export { ActionBtn, Alert, Amount, Anchor, Arrow, ArrowBadge, Avatar, Badge, BaseProps, Breakpoint, Button, COUNTRY_DATA, CSSBorderStyle, CSSColor, CSSFontWeight, CSSGlobalValue, CSSUnit, CSSVerticalAlign, CURRENCY_MAP, Checkbox, Chip, Color, ColorNames, ColorPaletteKey, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, FormLabel, HEX, INITIAL_MASK, Icon, IconButton, Indicator, Input, ListItem, Modal, Nullable, Paper, Popover, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Size, Sizes, Skeleton, Spacer, Spinner, Switcher, Tab, Tabs, Tag, Text, Textarea, Theme, ThemeMode, ThemeName, ThemePreset, ThemeProvider, Tooltip, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, defaultIcons, desktopFirst, hexToRgbA, isHex, mobileFirst, motherDarkTheme, motherLightTheme, property, responsiveNamedProperty, responsiveProperty, screenL, screenM, screenMaxL, screenMaxM, screenMaxS, screenMaxXl, screenMaxXs, screenMaxXxs, screenMinL, screenMinM, screenMinS, screenMinXl, screenMinXs, screenRetina, screenS, screenXl, screenXs, teenDarkTheme, teenLightTheme, defaultTheme as theme, vAlign };
|