@vodafone_de/brix-components 9.0.0 → 9.0.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/dist/components/Body/props.d.ts +1 -2
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Grid/validate.d.ts +1 -1
- package/dist/components/HifiIcon/props.d.ts +1 -2
- package/dist/components/InlineIcon/validate.d.ts +1 -1
- package/dist/components/Rating/index.js +2 -1
- package/dist/components/SelectInput/props.d.ts +1 -1
- package/dist/components/SuggestInput/index.js +1 -1
- package/dist/components/Textarea/index.js +8 -4
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export type BodyTags = typeof pTagName | typeof divTagName | typeof spanTagName
|
|
|
8
8
|
export declare const bodyAlignLeft = "left";
|
|
9
9
|
export declare const bodyAlignCenter = "center";
|
|
10
10
|
export declare const bodyAlignRight = "right";
|
|
11
|
-
type BodyAlign = typeof bodyAlignLeft | typeof bodyAlignCenter | typeof bodyAlignRight;
|
|
11
|
+
export type BodyAlign = typeof bodyAlignLeft | typeof bodyAlignCenter | typeof bodyAlignRight;
|
|
12
12
|
export interface BodyProps extends PatternProps, HTMLAttributes<HTMLParagraphElement> {
|
|
13
13
|
/**
|
|
14
14
|
* body text tshirt size can be medium or small
|
|
@@ -37,4 +37,3 @@ export interface BodyProps extends PatternProps, HTMLAttributes<HTMLParagraphEle
|
|
|
37
37
|
/** Pin component's name from string to the concrete name */
|
|
38
38
|
component?: 'Body';
|
|
39
39
|
}
|
|
40
|
-
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext } from "react";
|
|
4
|
-
import { d as divTagName, u as ulTagName, o as olTagName } from "../../tags-D7CRQqc1.js";
|
|
4
|
+
import { d as divTagName, u as ulTagName, o as olTagName, n as navTagName, m as mainTagName, s as sectionTagName, a as asideTagName, b as articleTagName } from "../../tags-D7CRQqc1.js";
|
|
5
5
|
import { s as spacingMd } from "../../Spacing-8v6hcO2x.js";
|
|
6
6
|
import { G as GridStyled } from "../../styled-BiCOjvNq.js";
|
|
7
7
|
import { i as isObject, h as hasMatchingComponentName } from "../../isObject-BYBrvoVW.js";
|
|
8
8
|
import { i as isBottomSpacing } from "../../isBottomSpacing-BxfreCZU.js";
|
|
9
|
-
const gridTags = [divTagName, ulTagName, olTagName];
|
|
9
|
+
const gridTags = [divTagName, ulTagName, olTagName, navTagName, mainTagName, sectionTagName, asideTagName, articleTagName];
|
|
10
10
|
const gridAligns = ["left", "center", "right"];
|
|
11
11
|
const gridSpacings = ["None", "Md"];
|
|
12
12
|
const gridColSpan = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GridConfig, GridProps } from './props';
|
|
2
|
-
export declare const gridTags: readonly [
|
|
2
|
+
export declare const gridTags: readonly [string, string, string, string, string, string, string, string];
|
|
3
3
|
export declare const gridAligns: readonly ["left", "center", "right"];
|
|
4
4
|
export declare const gridSpacings: readonly ["None", "Md"];
|
|
5
5
|
export declare const validateGridColSpan: (colSpan: unknown) => boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ImgHTMLAttributes } from 'react';
|
|
2
|
-
import { iconSize6xl, iconSize7xl, iconSize8xl, iconSize9xl } from '../Icon';
|
|
3
|
-
import { iconSize5xl } from '../InlineIcon';
|
|
4
2
|
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
|
+
import { iconSize5xl, iconSize6xl, iconSize7xl, iconSize8xl, iconSize9xl } from '../../foundations/types/IconSize';
|
|
5
4
|
export type HifiIconSize = typeof iconSize5xl | typeof iconSize6xl | typeof iconSize7xl | typeof iconSize8xl | typeof iconSize9xl;
|
|
6
5
|
export interface HifiIconProps extends PatternProps, ImgHTMLAttributes<HTMLImageElement> {
|
|
7
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { InlineIconProps } from './props';
|
|
2
|
-
export declare const iconSizes: readonly [
|
|
2
|
+
export declare const iconSizes: readonly ["iconSize2xs", "iconSizeXs", "iconSizeSm", "iconSizeMd", "iconSizeLg", "iconSizeXl", "iconSize2xl", "iconSize3xl", "iconSize4xl", "iconSize5xl"];
|
|
3
3
|
export declare const coloringModes: readonly ["fill", "stroke"];
|
|
4
4
|
export declare const validateInlineIconProps: (props: unknown) => props is InlineIconProps;
|
|
@@ -6,6 +6,7 @@ import styled from "styled-components";
|
|
|
6
6
|
import viewport from "../../foundations/media-query/viewport/index.js";
|
|
7
7
|
import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
|
|
8
8
|
import { s as screenreaderOnly } from "../../index-CfIoFAvq.js";
|
|
9
|
+
import { getBackgroundColor } from "../../foundations/token/getBackgroundColor/index.js";
|
|
9
10
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
10
11
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
11
12
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
@@ -45,7 +46,7 @@ const RatingFieldsetStyled = styled.fieldset.withConfig({
|
|
|
45
46
|
getBottomSpacing
|
|
46
47
|
);
|
|
47
48
|
const getSvgPathStyles = (props) => ({
|
|
48
|
-
fill: props.selected ? getObjectColor(colorObjectSelected) : props.isInHoverRange ? getHoverColor(colorBackgroundNeutral) :
|
|
49
|
+
fill: props.selected ? getObjectColor(colorObjectSelected) : props.isInHoverRange ? getHoverColor(colorBackgroundNeutral) : getBackgroundColor(colorBackgroundNeutral),
|
|
49
50
|
strokeWidth: "1px",
|
|
50
51
|
stroke: props.selected ? getBorderColor(colorBorderSelected) : props.isInHoverRange ? getBorderColor(colorBorderNeutral) : getBorderColor(colorBorderUnselected)
|
|
51
52
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OptionHTMLAttributes, SelectHTMLAttributes } from 'react';
|
|
2
2
|
import { InputSharedProps, InputStatus } from '../Input/props';
|
|
3
3
|
export interface SelectInputOptionProps extends OptionHTMLAttributes<HTMLOptionElement> {
|
|
4
4
|
/**
|
|
@@ -365,7 +365,7 @@ const SuggestInput = forwardRef(({
|
|
|
365
365
|
/* @__PURE__ */ jsx(InputStyled, { ...inputProps, ref: inputRef, onChange: (e) => handleChange(e.target.value), onClick: () => {
|
|
366
366
|
if (disabled) return;
|
|
367
367
|
setShowList(true);
|
|
368
|
-
}, role: "combobox", value: (_a = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label, ...{
|
|
368
|
+
}, role: "combobox", value: ((_a = listItems == null ? void 0 : listItems.find((listItem) => listItem.value === value)) == null ? void 0 : _a.label) || value, ...{
|
|
369
369
|
"aria-expanded": showList,
|
|
370
370
|
"aria-controls": "listbox",
|
|
371
371
|
"aria-activedescendant": selectedOption > -1 ? `${uid}-item-${selectedOption}` : void 0,
|
|
@@ -17,10 +17,11 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
17
17
|
import { getHeadingSize } from "../../foundations/token/getHeadingSize/index.js";
|
|
18
18
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
19
19
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
20
|
-
import { a as colorBackgroundSubtle } from "../../BackgroundColor-e0N9tdDR.js";
|
|
20
|
+
import { c as colorBackgroundNeutral, a as colorBackgroundSubtle } from "../../BackgroundColor-e0N9tdDR.js";
|
|
21
21
|
import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BummoQ1-.js";
|
|
22
22
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
23
23
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
24
|
+
import { i as iconSizeSm } from "../../IconSize-AJp7xdJi.js";
|
|
24
25
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-BXVMXUVE.js";
|
|
25
26
|
import { a as filterProps } from "../../filterProps-BJ5SpbnA.js";
|
|
26
27
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
@@ -48,7 +49,7 @@ const TextareaStyled = styled.textarea.withConfig({
|
|
|
48
49
|
border: "none",
|
|
49
50
|
fontFamily: getCssVar("font-family"),
|
|
50
51
|
color: getTextColor(colorTextNeutral),
|
|
51
|
-
backgroundColor:
|
|
52
|
+
backgroundColor: getBackgroundColor(colorBackgroundNeutral),
|
|
52
53
|
minHeight: `calc((${getHeadingSize(textHeadingXs).fontSize} * ${getHeadingSize(textHeadingXs).lineHeight}) + (2 * ${getSpacing(spacingSm)}))`,
|
|
53
54
|
"&:placeholder-shown": {
|
|
54
55
|
color: getTextColor(colorTextPlaceholder)
|
|
@@ -56,6 +57,9 @@ const TextareaStyled = styled.textarea.withConfig({
|
|
|
56
57
|
}, ({
|
|
57
58
|
status
|
|
58
59
|
}) => {
|
|
60
|
+
const paddingMinusBorder = `calc(${getSpacing(spacingSm)} - 1px)`;
|
|
61
|
+
const paddingWhenStatus = `${paddingMinusBorder}
|
|
62
|
+
calc(${paddingMinusBorder} + ${getCssVar(iconSizeSm)} + ${getSpacing(spacingSm)}) ${paddingMinusBorder} ${paddingMinusBorder}`;
|
|
59
63
|
if (!status) {
|
|
60
64
|
return {
|
|
61
65
|
border: `1px solid ${getBorderColor(colorBorderUnselected)}`,
|
|
@@ -72,7 +76,7 @@ const TextareaStyled = styled.textarea.withConfig({
|
|
|
72
76
|
if ("success" === status) {
|
|
73
77
|
return {
|
|
74
78
|
border: `2px solid ${getBorderColor(colorBorderSuccess)}`,
|
|
75
|
-
padding:
|
|
79
|
+
padding: paddingWhenStatus,
|
|
76
80
|
"&:focus-visible": {
|
|
77
81
|
...forcedColors({
|
|
78
82
|
outline: "4px solid CanvasText"
|
|
@@ -85,7 +89,7 @@ const TextareaStyled = styled.textarea.withConfig({
|
|
|
85
89
|
if ("error" === status) {
|
|
86
90
|
return {
|
|
87
91
|
border: `2px solid ${getBorderColor(colorBorderCritical)}`,
|
|
88
|
-
padding:
|
|
92
|
+
padding: paddingWhenStatus,
|
|
89
93
|
"&:focus-visible": {
|
|
90
94
|
...forcedColors({
|
|
91
95
|
outline: "4px solid CanvasText"
|