@foxford/ui 2.7.0 → 2.7.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/dts/index.d.ts +19 -1
- package/index.cjs.js +1 -1
- package/index.cjs.js.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/shared/utils/colors.js +2 -0
- package/shared/utils/colors.js.map +1 -0
package/dts/index.d.ts
CHANGED
|
@@ -349,6 +349,24 @@ interface InputField extends Color, Color<'placeholderColor'>, ResponsiveNamedPr
|
|
|
349
349
|
required?: boolean | undefined;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
+
/**
|
|
353
|
+
* Converts HEX color code to RGB(A) string
|
|
354
|
+
*
|
|
355
|
+
* @export
|
|
356
|
+
* @param {string} HEX color with length of either 3 or 6 (can be with or without '#' sign)
|
|
357
|
+
* @param {Number} alpha channel which specifies the opacity of the color
|
|
358
|
+
* @returns {String} RGB(A) string
|
|
359
|
+
*/
|
|
360
|
+
declare function hexToRgbA(hex: string, alpha?: number): string;
|
|
361
|
+
/**
|
|
362
|
+
* Checks if value is HEX color
|
|
363
|
+
*
|
|
364
|
+
* @export
|
|
365
|
+
* @param {string} HEX color with length of either 3 or 6 (can be with or without '#' sign)
|
|
366
|
+
* @returns {boolean}
|
|
367
|
+
*/
|
|
368
|
+
declare function isHex(hex: string): boolean;
|
|
369
|
+
|
|
352
370
|
declare type StyledComponentProps = {
|
|
353
371
|
theme?: {
|
|
354
372
|
breakpoints?: typeof defaultTheme.breakpoints;
|
|
@@ -2425,4 +2443,4 @@ declare namespace Select {
|
|
|
2425
2443
|
var displayName: string;
|
|
2426
2444
|
}
|
|
2427
2445
|
|
|
2428
|
-
export { ActionBtn, Alert, Amount, Anchor, Arrow, Avatar, Badge, BaseProps, Button, COUNTRY_DATA, CURRENCY_MAP, Checkbox, ColorNames, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, FontWeight, HEX, INITIAL_MASK, Icon, Input, InputField, Modal, Nullable, Paper, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Spacer, Spinner, Switcher, Tabs, Tag, Text, Textarea, ThemeMode, ThemeName, ThemePreset, ThemeProvider, Tooltip, adultDarkTheme, adultLightTheme, babyDarkTheme, babyLightTheme, baseInputStyle, buildMediaQuery, color, defaultIcons, desktopFirst, 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 };
|
|
2446
|
+
export { ActionBtn, Alert, Amount, Anchor, Arrow, Avatar, Badge, BaseProps, Button, COUNTRY_DATA, CURRENCY_MAP, Checkbox, ColorNames, Container, ContextMenu, CurrencyCodes, DEFAULT_MASK, FontWeight, HEX, INITIAL_MASK, Icon, Input, InputField, Modal, Nullable, Paper, Progress, RGB, RGBA, Radio, withThemeScrollable as Scrollable, Section, Select, Separator, Spacer, Spinner, Switcher, Tabs, Tag, Text, Textarea, 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 };
|