@vodafone_de/brix-components 7.0.8 → 7.0.9
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 +0 -1
- package/dist/{FontWeight-CR22KTex.js → FontWeight-DEBGHbtO.js} +2 -2
- package/dist/NotificationErrorIcon-DMnAJgPN.js +83 -0
- package/dist/_5gPlusIcon-B_69VW4X.js +19443 -0
- package/dist/components/Accordion/index.js +6 -3
- package/dist/components/Accordion/props.d.ts +1 -1
- package/dist/components/Accordion/styled.d.ts +1 -1
- package/dist/components/AccordionGroup/index.js +1 -1
- package/dist/components/Badge/index.js +3 -2
- package/dist/components/Badge/props.d.ts +1 -1
- package/dist/components/Body/index.js +2 -2
- package/dist/components/Body/props.d.ts +1 -1
- package/dist/components/BottomBar/index.js +3 -3
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/styled.d.ts +1 -1
- package/dist/components/ButtonAsLink/index.js +3 -1
- package/dist/components/ButtonAsLink/styled.d.ts +1 -1
- package/dist/components/ButtonGroup/index.js +4 -4
- package/dist/components/ButtonGroup/props.d.ts +1 -1
- package/dist/components/Card/index.js +3 -3
- package/dist/components/Card/props.d.ts +2 -2
- package/dist/components/Carousel/components/CarouselContext.d.ts +2 -3
- package/dist/components/Carousel/components/CarouselNavigation.d.ts +0 -2
- package/dist/components/Carousel/index.js +58 -47
- package/dist/components/Checkbox/index.js +3 -2
- package/dist/components/CheckboxGroup/index.js +2 -2
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/ColorSwatch/index.js +2 -2
- package/dist/components/ColorSwatchGroup/index.js +4 -4
- package/dist/components/ColorSwatchGroup/props.d.ts +1 -1
- package/dist/components/ConsentMessage/index.js +1 -1
- package/dist/components/ConsentMessage/styled.d.ts +1 -1
- package/dist/components/Container/index.js +3 -2
- package/dist/components/Container/props.d.ts +12 -1
- package/dist/components/DateInput/index.js +4 -2
- package/dist/components/DateInput/styled.d.ts +1 -2
- package/dist/components/DemoBox/index.js +5 -3
- package/dist/components/Dialog/index.js +4 -4
- package/dist/components/Dialog/styled.d.ts +1 -1
- package/dist/components/DiscoveryCard/components/DiscoveryCardLinkedImage.d.ts +1 -1
- package/dist/components/DiscoveryCard/index.js +21 -12
- package/dist/components/DiscoveryCard/props.d.ts +3 -3
- package/dist/components/DiscoveryCard/styled.d.ts +2 -2
- package/dist/components/DiscoveryCardGroup/index.js +1 -1
- package/dist/components/Divider/index.js +1 -1
- package/dist/components/Fieldset/index.js +2 -2
- package/dist/components/FilterGroup/index.js +4 -3
- package/dist/components/FilterGroup/props.d.ts +1 -1
- package/dist/components/FilterGroup/styled.d.ts +1 -1
- package/dist/components/Flex/index.js +2 -2
- package/dist/components/FlexItem/index.js +1 -1
- package/dist/components/FootnoteContent/index.js +1 -1
- package/dist/components/FootnoteLink/index.js +10 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/FormElement/index.js +1 -1
- package/dist/components/FormHelperStatusIcon/index.d.ts +1 -1
- package/dist/components/FormHelperStatusIcon/index.js +2 -1
- package/dist/components/FormHelperStatusIcon/styled.d.ts +1 -1
- package/dist/components/GoogleMap/components/Map/props.d.ts +1 -1
- package/dist/components/GoogleMap/index.js +2 -2
- package/dist/components/GoogleMap/styled.d.ts +1 -1
- package/dist/components/Grid/index.js +2 -2
- package/dist/components/Grid/props.d.ts +3 -3
- package/dist/components/GridItem/index.js +2 -2
- package/dist/components/GridItem/props.d.ts +2 -2
- package/dist/components/Heading/index.js +3 -10
- package/dist/components/HifiIcon/index.js +1 -1
- package/dist/components/HifiIcon/props.d.ts +2 -1
- package/dist/components/Icon/index.d.ts +2 -2
- package/dist/components/Icon/index.js +1 -3
- package/dist/components/Icon/props.d.ts +1 -2
- package/dist/components/IconButton/index.js +4 -3
- package/dist/components/IconButton/props.d.ts +1 -1
- package/dist/components/IconLoader/index.d.ts +9 -0
- package/dist/components/IconLoader/index.js +655 -0
- package/dist/components/IconLoader/props.d.ts +23 -0
- package/dist/components/IconSnippet/index.js +10 -11
- package/dist/components/IconSnippet/props.d.ts +2 -2
- package/dist/components/IconSnippet/styled.d.ts +2 -2
- package/dist/components/IconSnippetList/index.js +1 -1
- package/dist/components/Image/index.js +1 -1
- package/dist/components/ImageHeader/index.js +7 -7
- package/dist/components/ImageHeader/props.d.ts +3 -3
- package/dist/components/ImageHeader/styled.d.ts +4 -4
- package/dist/components/InlineIcon/index.d.ts +6 -0
- package/dist/components/InlineIcon/index.js +35 -0
- package/dist/components/InlineIcon/props.d.ts +42 -0
- package/dist/components/InlineIcon/styled.d.ts +4 -0
- package/dist/components/InlineLink/index.js +19 -7
- package/dist/components/InlineLink/styled.d.ts +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/Legend/index.js +1 -1
- package/dist/components/Link/index.js +8 -3
- package/dist/components/Link/styled.d.ts +1 -1
- package/dist/components/LinkAsButton/index.js +1 -1
- package/dist/components/LinkList/index.js +4 -4
- package/dist/components/LinkListItem/index.js +40 -28
- package/dist/components/LinkListItem/props.d.ts +2 -2
- package/dist/components/LinkListItem/styled.d.ts +974 -3
- package/dist/components/LoadingSpinner/index.js +12 -5
- package/dist/components/MediaText/index.d.ts +5 -0
- package/dist/components/MediaText/index.js +121 -0
- package/dist/components/MediaText/props.d.ts +42 -0
- package/dist/components/MediaText/styled.d.ts +4 -0
- package/dist/components/Notification/index.js +4 -3
- package/dist/components/Notification/notificationStatusVariants.d.ts +1 -1
- package/dist/components/Overlay/index.js +1 -1
- package/dist/components/PickerGroup/components/Picker/props.d.ts +6 -4
- package/dist/components/PickerGroup/components/PickerElementIcon/index.d.ts +1 -1
- package/dist/components/PickerGroup/components/PickerElementIcon/styled.d.ts +1 -1
- package/dist/components/PickerGroup/index.js +6 -5
- package/dist/components/Price/index.js +2 -4
- package/dist/components/Price/props.d.ts +1 -9
- package/dist/components/Price/styled.d.ts +1 -1
- package/dist/components/ProductCard/index.js +8 -8
- package/dist/components/ProductCard/styled.d.ts +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Rating/assets/StarSVG.d.ts +3 -0
- package/dist/components/Rating/index.d.ts +6 -0
- package/dist/components/Rating/index.js +153 -0
- package/dist/components/Rating/props.d.ts +22 -0
- package/dist/components/Rating/styled.d.ts +6 -0
- package/dist/components/ResponsiveImage/index.js +1 -1
- package/dist/components/RichText/index.js +1 -1
- package/dist/components/ScreenreaderOnly/index.js +1 -1
- package/dist/components/SearchInput/index.d.ts +2 -1
- package/dist/components/SearchInput/index.js +27 -26
- package/dist/components/SearchInput/props.d.ts +2 -1
- package/dist/components/SearchInput/styled.d.ts +3 -6
- package/dist/components/SelectInput/index.js +4 -2
- package/dist/components/Stepper/index.js +3 -3
- package/dist/components/SuggestInput/index.js +5 -4
- package/dist/components/SuggestInput/props.d.ts +1 -1
- package/dist/components/SuggestInput/styled.d.ts +2 -2
- package/dist/components/Switch/index.js +4 -3
- package/dist/components/TabularPrice/index.js +2 -2
- package/dist/components/TextList/index.js +2 -2
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/styled.d.ts +1 -1
- package/dist/components/TimeInput/index.js +5 -3
- package/dist/components/TimeInput/styled.d.ts +1 -4
- package/dist/components/Tray/index.js +2 -2
- package/dist/components/Tray/props.d.ts +1 -1
- package/dist/components/YoutubeVideo/index.js +1 -2
- package/dist/components/YoutubeVideo/props.d.ts +1 -1
- package/dist/filterProps-CBnuV0LI.js +17 -0
- package/dist/foundations/GlobalStyle/index.js +2 -2
- package/dist/foundations/tags.d.ts +2 -0
- package/dist/foundations/types/PositionedIconInterface.d.ts +1 -1
- package/dist/foundations/types/SystemIconWithPosition.d.ts +1 -1
- package/dist/hooks/useLinkComponent/index.d.ts +11 -0
- package/dist/hooks/useLinkComponent/index.js +11 -0
- package/dist/hooks/useViewport/index.js +5 -22
- package/dist/icons/index.js +323 -340
- package/dist/{index-BeSd-V81.js → index-9io8adeQ.js} +3 -3
- package/dist/{index-ZHkR70j3.js → index-BdPmdY9v.js} +4 -3
- package/dist/{index-C5GzK6_0.js → index-Cqh8IRpl.js} +18 -8
- package/dist/index-Cs0Hw0dj.js +25 -0
- package/dist/{index-DQhtQZ85.js → index-GwyCjtti.js} +1 -1
- package/dist/{index-aUJfXBUI.js → index-TImInHXt.js} +5 -26
- package/dist/{index-C7meHOM4.js → index-hMlQuoyx.js} +36 -14
- package/dist/index.d.ts +9 -0
- package/dist/index.js +162 -133
- package/dist/{styled-ZpQohvyx.js → styled-BIc9Gu0G.js} +1 -1
- package/dist/{styled-BSqC5P9h.js → styled-C4eI47I1.js} +4 -4
- package/dist/{styled-DMUiOi24.js → styled-CFTspqJH.js} +2 -2
- package/dist/{styled-B0YKfXTz.js → styled-CPUu8mvT.js} +1 -1
- package/dist/{styled-03irSJOQ.js → styled-Cep52hpR.js} +1 -1
- package/dist/{styled-ODPFCF1a.js → styled-Cq-UMAjp.js} +1 -1
- package/dist/{styled-CYugcGtx.js → styled-DINwm57V.js} +1 -1
- package/dist/styled-DPHfwWsx.js +78 -0
- package/dist/{styled-Cqp2oSjW.js → styled-a-XazLSM.js} +3 -3
- package/dist/{tags-DI6H1biK.js → tags-D0ExIPLD.js} +4 -2
- package/package.json +1 -1
- package/dist/components/Carousel/utils/useScrollSpy.d.ts +0 -2
- package/dist/filterProps-Cewck8OH.js +0 -13
- package/dist/index-Cbojl4_Q.js +0 -7134
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FieldsetSharedProps } from '../Fieldset';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Rating component
|
|
4
|
+
*/
|
|
5
|
+
export interface RatingProps extends Omit<FieldsetSharedProps, 'status' | 'errorMessage' | 'disabled' | 'helperText'> {
|
|
6
|
+
/**
|
|
7
|
+
* The current rating value (number of stars selected)
|
|
8
|
+
*/
|
|
9
|
+
value?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Callback fired when the rating value changes
|
|
12
|
+
*/
|
|
13
|
+
onUpdate?: (value: number) => void;
|
|
14
|
+
/**
|
|
15
|
+
* Optional group name to identify the rating group for accessibility
|
|
16
|
+
*/
|
|
17
|
+
groupName?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Pin component's name from string to the concrete name
|
|
20
|
+
*/
|
|
21
|
+
component?: 'Rating';
|
|
22
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const StarsWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
2
|
+
export declare const StarLabelStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
isInHoverRange?: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export declare const HiddenRadioStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, never>> & string;
|
|
@@ -6,7 +6,7 @@ import styled from "styled-components";
|
|
|
6
6
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
7
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
8
8
|
import { b as borderRadiusMd, a as borderRadiusNone } from "../../BorderRadius-ClUShVLu.js";
|
|
9
|
-
import {
|
|
9
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
10
10
|
const ResponsiveImagePictureStyled = styled.picture.withConfig({
|
|
11
11
|
shouldForwardProp: filterProps(),
|
|
12
12
|
displayName: "ResponsiveImagePictureStyled",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
1
2
|
import { SearchInputProps } from './props';
|
|
2
|
-
declare const SearchInput:
|
|
3
|
+
declare const SearchInput: FC<SearchInputProps>;
|
|
3
4
|
export default SearchInput;
|
|
4
5
|
export * from './props';
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import { forwardRef, useState, useRef, useImperativeHandle } from "react";
|
|
2
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
+
import { useState, useRef } from "react";
|
|
5
4
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
6
5
|
import IconButton, { iconButtonShapeSquare } from "../IconButton/index.js";
|
|
7
|
-
import { b as
|
|
8
|
-
import {
|
|
6
|
+
import { b as iconSizeSm } from "../../styled-DPHfwWsx.js";
|
|
7
|
+
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
8
|
+
import { p as primaryAppearance } from "../../styled-C4eI47I1.js";
|
|
9
9
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
10
|
-
import
|
|
10
|
+
import "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
11
|
+
import { bn as CloseIcon } from "../../_5gPlusIcon-B_69VW4X.js";
|
|
11
12
|
import styled from "styled-components";
|
|
12
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
13
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-Cep52hpR.js";
|
|
14
|
+
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
13
15
|
import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
14
|
-
import {
|
|
16
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
15
17
|
const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
16
18
|
shouldForwardProp: filterProps(),
|
|
17
19
|
displayName: "SearchInputButtonWrapperStyled",
|
|
@@ -21,7 +23,11 @@ const SearchInputButtonWrapperStyled = styled.div.withConfig({
|
|
|
21
23
|
":where(:focus,:focus-visible,:focus-within)": {
|
|
22
24
|
zIndex: 1
|
|
23
25
|
}
|
|
24
|
-
}
|
|
26
|
+
}, ({
|
|
27
|
+
bottomSpacing = spacingMd
|
|
28
|
+
}) => getBottomSpacing({
|
|
29
|
+
bottomSpacing
|
|
30
|
+
}));
|
|
25
31
|
const SearchInputWrapperStyled = styled(InputWrapperStyled).withConfig({
|
|
26
32
|
shouldForwardProp: filterProps(),
|
|
27
33
|
displayName: "SearchInputWrapperStyled",
|
|
@@ -79,7 +85,7 @@ const SearchInputStyled = styled(InputStyled).withConfig({
|
|
|
79
85
|
WebkitAppearance: "none"
|
|
80
86
|
}
|
|
81
87
|
});
|
|
82
|
-
const SearchInput =
|
|
88
|
+
const SearchInput = ({
|
|
83
89
|
uid,
|
|
84
90
|
label,
|
|
85
91
|
bottomSpacing = spacingMd,
|
|
@@ -91,11 +97,10 @@ const SearchInput = forwardRef(({
|
|
|
91
97
|
onReset,
|
|
92
98
|
disabled,
|
|
93
99
|
...props
|
|
94
|
-
}
|
|
100
|
+
}) => {
|
|
95
101
|
const initialValueState = !props.value ? "" : props.value;
|
|
96
102
|
const [value, setValue] = useState(initialValueState);
|
|
97
|
-
const
|
|
98
|
-
useImperativeHandle(ref, () => inputRef.current, []);
|
|
103
|
+
const ref = useRef(null);
|
|
99
104
|
const inputProps = {
|
|
100
105
|
...props,
|
|
101
106
|
id: uid
|
|
@@ -106,35 +111,31 @@ const SearchInput = forwardRef(({
|
|
|
106
111
|
props.onChange(event);
|
|
107
112
|
}
|
|
108
113
|
};
|
|
109
|
-
const onSubmit = (e) => {
|
|
110
|
-
e.preventDefault();
|
|
111
|
-
const formElement = e.target;
|
|
112
|
-
if (onSearch) {
|
|
113
|
-
onSearch(formElement.getElementsByTagName("input")[0].value);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
114
|
const resetButtonHandler = () => {
|
|
117
115
|
var _a;
|
|
118
116
|
if (disabled) return;
|
|
119
117
|
setValue("");
|
|
120
|
-
|
|
118
|
+
ref && ((_a = ref.current) == null ? void 0 : _a.focus());
|
|
121
119
|
onReset && onReset();
|
|
122
120
|
};
|
|
123
121
|
const resetHandler = (e) => {
|
|
124
122
|
if (e.key === "Escape" && onReset && value !== "") onReset();
|
|
125
123
|
props.onKeyDown && props.onKeyDown(e);
|
|
126
124
|
};
|
|
127
|
-
|
|
125
|
+
const onSubmit = () => {
|
|
126
|
+
onSearch && onSearch(value);
|
|
127
|
+
};
|
|
128
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
128
129
|
!hideLabel && /* @__PURE__ */ jsx(FormHelperLabel, { label, uid }),
|
|
129
|
-
/* @__PURE__ */ jsxs(SearchInputButtonWrapperStyled, { children: [
|
|
130
|
+
/* @__PURE__ */ jsxs(SearchInputButtonWrapperStyled, { bottomSpacing, children: [
|
|
130
131
|
/* @__PURE__ */ jsxs(SearchInputWrapperStyled, { value, children: [
|
|
131
|
-
/* @__PURE__ */ jsx(SearchInputStyled, { ...inputProps, ref
|
|
132
|
+
/* @__PURE__ */ jsx(SearchInputStyled, { ...inputProps, ref, onChange, onKeyDown: resetHandler, type: "search", value, "aria-label": hideLabel && typeof label === "string" ? label : void 0, placeholder: renderInlineRichTextFromOpenText(placeholder) }),
|
|
132
133
|
value && /* @__PURE__ */ jsx(SearchInputCloseButtonStyled, { type: "button", "aria-hidden": true, onClick: resetButtonHandler, tabIndex: -1, disabled, children: /* @__PURE__ */ jsx(CloseIconStyled, { size: iconSizeSm, value }) })
|
|
133
134
|
] }),
|
|
134
|
-
/* @__PURE__ */ jsx(SearchInputIconButtonStyled, { iconName: "Search", label: searchButtonLabel, bottomSpacing: spacingNone, shape: iconButtonShapeSquare, appearance: buttonAppearance, type: "submit" })
|
|
135
|
+
/* @__PURE__ */ jsx(SearchInputIconButtonStyled, { iconName: "Search", label: searchButtonLabel, bottomSpacing: spacingNone, shape: iconButtonShapeSquare, appearance: buttonAppearance, type: "submit", onClick: onSubmit })
|
|
135
136
|
] })
|
|
136
137
|
] });
|
|
137
|
-
}
|
|
138
|
+
};
|
|
138
139
|
export {
|
|
139
140
|
SearchInput as default
|
|
140
141
|
};
|
|
@@ -23,7 +23,8 @@ export interface SearchInputProps extends Omit<InputSharedProps, 'status' | 'err
|
|
|
23
23
|
*/
|
|
24
24
|
searchButtonLabel: string;
|
|
25
25
|
/**
|
|
26
|
-
* Function to be used when the user searches e.g. clicks enter inside the input or clicks the search button.
|
|
26
|
+
* Function to be used when the user searches e.g. clicks enter inside the input or clicks the search button. Basically works like a forms onSubmit in case you don't provide
|
|
27
|
+
* a form which is recommended.
|
|
27
28
|
* @param query
|
|
28
29
|
*/
|
|
29
30
|
onSearch?: (query: string) => void;
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { InlineIconProps } from '@vfde-react/inline-icon-library';
|
|
2
1
|
import { IconButtonProps } from '../IconButton/props';
|
|
3
2
|
import { SearchInputProps } from './props';
|
|
4
|
-
export declare const SearchInputButtonWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').
|
|
3
|
+
export declare const SearchInputButtonWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<SearchInputProps, "bottomSpacing">>> & string;
|
|
5
4
|
export declare const SearchInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof import('../..').PatternProps | "readOnly"> & import('../..').PatternProps & Pick<import('../Input').InputProps, "readOnly"> & {
|
|
6
5
|
status?: import('../Input').InputStatus;
|
|
7
6
|
}, Pick<SearchInputProps, "bottomSpacing" | "value">>> & string;
|
|
8
7
|
export declare const SearchInputIconButtonStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<IconButtonProps, IconButtonProps>> & string & Omit<import('react').FC<IconButtonProps>, keyof import('react').Component<any, {}, any>>;
|
|
9
|
-
export declare const CloseIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('
|
|
10
|
-
value: string;
|
|
11
|
-
}>> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
|
|
8
|
+
export declare const CloseIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", any> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
|
|
12
9
|
export declare const SearchInputCloseButtonStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, Pick<SearchInputProps, "disabled">>> & string;
|
|
13
|
-
export declare const SearchInputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').InputHTMLAttributes<HTMLInputElement>> & import('react').InputHTMLAttributes<HTMLInputElement>, Omit<SearchInputProps, "
|
|
10
|
+
export declare const SearchInputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import('react').InputHTMLAttributes<HTMLInputElement>> & import('react').InputHTMLAttributes<HTMLInputElement>, Omit<SearchInputProps, "label" | "uid" | "onReset" | "searchButtonLabel" | "onSearch">>> & string;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
4
|
+
import { bf as ChevronDownIcon } from "../../_5gPlusIcon-B_69VW4X.js";
|
|
4
5
|
import { forwardRef } from "react";
|
|
5
6
|
import FormElement from "../FormElement/index.js";
|
|
6
7
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
7
8
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
8
9
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
10
|
+
import { b as iconSizeSm } from "../../styled-DPHfwWsx.js";
|
|
9
11
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
10
12
|
import { a as spacingXs, c as spacingSm, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
11
13
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
@@ -21,7 +23,7 @@ import { c as colorBackgroundNeutral } from "../../BackgroundColor-e0N9tdDR.js";
|
|
|
21
23
|
import { c as colorBorderFocus, a as colorBorderNeutral, b as colorBorderUnselected, d as colorBorderSuccess, e as colorBorderCritical } from "../../BorderColor-BummoQ1-.js";
|
|
22
24
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
23
25
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
24
|
-
import {
|
|
26
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
25
27
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
26
28
|
const SelectInputWrapperStyled = styled.div.withConfig({
|
|
27
29
|
displayName: "SelectInputWrapperStyled",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { useViewport } from "../../
|
|
4
|
+
import { u as useViewport } from "../../index-Cs0Hw0dj.js";
|
|
5
5
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
import styled from "styled-components";
|
|
7
7
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -12,11 +12,11 @@ import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index
|
|
|
12
12
|
import { getFontWeight } from "../../foundations/token/getFontWeight/index.js";
|
|
13
13
|
import { getObjectColor } from "../../foundations/token/getObjectColor/index.js";
|
|
14
14
|
import { g as colorBorderBrand, a as colorBorderNeutral, h as colorBorderInverse } from "../../BorderColor-BummoQ1-.js";
|
|
15
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
15
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
16
16
|
import { c as colorObjectBrand, a as colorObjectInverse } from "../../ObjectColor-BZDBuV8H.js";
|
|
17
17
|
import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
18
18
|
import { t as textBodyMd } from "../../TextBodySize-BcZR9mh2.js";
|
|
19
|
-
import {
|
|
19
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
20
20
|
const StepperItemStyled = styled.li.withConfig({
|
|
21
21
|
shouldForwardProp: filterProps(),
|
|
22
22
|
displayName: "StepperItemStyled",
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { df as IconLoader, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import { useState, useEffect, forwardRef, useRef, useImperativeHandle } from "react";
|
|
5
4
|
import FlexItem from "../FlexItem/index.js";
|
|
6
5
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
7
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
8
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
|
+
import IconLoader from "../IconLoader/index.js";
|
|
9
|
+
import { b as iconSizeSm } from "../../styled-DPHfwWsx.js";
|
|
9
10
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
10
|
-
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-
|
|
11
|
+
import { I as InputWrapperStyled, a as InputStyled } from "../../styled-Cep52hpR.js";
|
|
11
12
|
import { c as spacingSm, a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
12
13
|
import { r as renderInlineRichTextFromOpenText } from "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
13
14
|
import Body from "../Body/index.js";
|
|
14
|
-
import {
|
|
15
|
+
import { f as strongTagName } from "../../tags-D0ExIPLD.js";
|
|
15
16
|
import styled from "styled-components";
|
|
16
17
|
import Card from "../Card/index.js";
|
|
17
18
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
@@ -29,7 +30,7 @@ import { getOpacity } from "../../foundations/token/getOpacity/index.js";
|
|
|
29
30
|
import { getTextColor } from "../../foundations/token/getTextColor/index.js";
|
|
30
31
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
31
32
|
import { a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
32
|
-
import {
|
|
33
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
33
34
|
const calculateListMaxHeight = (numberOfVisibleItems) => {
|
|
34
35
|
return `calc((${getSpacing(spacingSm)} * 2 + ${getBodySize(textBodyMd).fontSize} * ${getBodySize(textBodyMd).lineHeight}) * ${numberOfVisibleItems})`;
|
|
35
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconName } from '@vfde-react/inline-icon-library';
|
|
1
|
+
import { IconName } from '@vfde-react/inline-icon-library/IconName';
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
3
|
import { InputSharedProps } from '../Input/props';
|
|
4
4
|
export interface SuggestInputItemProps {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
2
|
-
import { SuggestInputProps } from './props';
|
|
3
1
|
import { FormElementProps } from '../FormElement/props.ts';
|
|
4
2
|
import { InputStatus } from '../Input/props';
|
|
3
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
|
+
import { SuggestInputProps } from './props';
|
|
5
5
|
export declare const SuggestInputFormElementStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, FormElementProps>> & string;
|
|
6
6
|
export declare const SuggestInputWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "status" | keyof PatternProps | "readOnly"> & PatternProps & Pick<import('../Input/props').InputProps, "readOnly"> & {
|
|
7
7
|
status?: InputStatus;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState, useEffect } from "react";
|
|
4
|
-
import
|
|
4
|
+
import IconLoader from "../IconLoader/index.js";
|
|
5
|
+
import { i as iconSize2xs } from "../../styled-DPHfwWsx.js";
|
|
5
6
|
import styled from "styled-components";
|
|
7
|
+
import Label from "../Label/index.js";
|
|
6
8
|
import forcedColors from "../../foundations/media-query/forcedColors/index.js";
|
|
7
9
|
import { e as ease_in_sine } from "../../easing-Dm-pO8SY.js";
|
|
8
10
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
@@ -18,8 +20,7 @@ import { a as borderWidthFocus, c as borderWidthSm } from "../../BorderWidth-DfO
|
|
|
18
20
|
import { a as colorObjectInverse, b as colorObjectSelected, d as colorObjectUnselected } from "../../ObjectColor-BZDBuV8H.js";
|
|
19
21
|
import { a as opacityDisabled } from "../../Opacity-smkGiwsf.js";
|
|
20
22
|
import { a as spacingXs, s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
21
|
-
import {
|
|
22
|
-
import Label from "../Label/index.js";
|
|
23
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
23
24
|
const getHandleIcon = (checked) => {
|
|
24
25
|
const iconName = checked ? "Tick" : "Close";
|
|
25
26
|
return /* @__PURE__ */ jsx(IconLoader, { size: iconSize2xs, name: iconName });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { T } from "../../index-
|
|
4
|
-
import "../../index-
|
|
3
|
+
import { T } from "../../index-TImInHXt.js";
|
|
4
|
+
import "../../index-GwyCjtti.js";
|
|
5
5
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
6
6
|
export {
|
|
7
7
|
T as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
|
-
import { a, T } from "../../index-
|
|
4
|
-
import "../../tags-
|
|
3
|
+
import { a, T } from "../../index-9io8adeQ.js";
|
|
4
|
+
import "../../tags-D0ExIPLD.js";
|
|
5
5
|
import "../../Spacing-D0HQH9YJ.js";
|
|
6
6
|
import "../../renderInlineRichTextFromOpenText-RvOG3QbI.js";
|
|
7
7
|
export {
|
|
@@ -22,7 +22,7 @@ import { a as colorBorderNeutral, c as colorBorderFocus, b as colorBorderUnselec
|
|
|
22
22
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
23
23
|
import { t as textHeadingXs } from "../../HeadingSize-CfCRn3Lh.js";
|
|
24
24
|
import { c as colorTextPlaceholder, a as colorTextNeutral } from "../../TextColor-DsntmDNw.js";
|
|
25
|
-
import {
|
|
25
|
+
import { a as filterProps } from "../../filterProps-CBnuV0LI.js";
|
|
26
26
|
const TextareaWrapperStyled = styled.div.withConfig({
|
|
27
27
|
shouldForwardProp: filterProps(),
|
|
28
28
|
displayName: "TextareaWrapperStyled",
|
|
@@ -4,7 +4,7 @@ import { TextareaProps } from './props';
|
|
|
4
4
|
export declare const TextareaWrapperStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, PatternProps & {
|
|
5
5
|
status?: InputStatus;
|
|
6
6
|
}>> & string;
|
|
7
|
-
export declare const TextareaStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, Omit<TextareaProps, "
|
|
7
|
+
export declare const TextareaStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, Omit<TextareaProps, "label" | "uid">>> & string;
|
|
8
8
|
export declare const TextareaStatusIcon: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../FormHelperStatusIcon/props').FormHelperStatusIconProps, {
|
|
9
9
|
status?: InputStatus;
|
|
10
10
|
hasScrollbar: boolean;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { bm as ClockIcon, iv as iconSizeSm } from "../../index-Cbojl4_Q.js";
|
|
4
3
|
import { forwardRef, useState, useRef, useImperativeHandle, useEffect } from "react";
|
|
5
|
-
import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
6
4
|
import FormElement from "../FormElement/index.js";
|
|
7
5
|
import FormHelperLabel from "../FormHelperLabel/index.js";
|
|
8
6
|
import FormHelperMessage from "../FormHelperMessage/index.js";
|
|
9
7
|
import FormHelperStatusIcon from "../FormHelperStatusIcon/index.js";
|
|
8
|
+
import { b as iconSizeSm } from "../../styled-DPHfwWsx.js";
|
|
10
9
|
import "../Input/index.js";
|
|
10
|
+
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-Cep52hpR.js";
|
|
11
|
+
import { s as spacingMd, a as spacingXs } from "../../Spacing-D0HQH9YJ.js";
|
|
12
|
+
import "../../NotificationErrorIcon-DMnAJgPN.js";
|
|
13
|
+
import { bm as ClockIcon } from "../../_5gPlusIcon-B_69VW4X.js";
|
|
11
14
|
import styled from "styled-components";
|
|
12
15
|
import { getBorderColor } from "../../foundations/token/getBorderColor/index.js";
|
|
13
16
|
import { getBorderWidth } from "../../foundations/token/getBorderWidth/index.js";
|
|
14
17
|
import { c as colorBorderFocus } from "../../BorderColor-BummoQ1-.js";
|
|
15
18
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
16
|
-
import { a as InputStyled, I as InputWrapperStyled } from "../../styled-03irSJOQ.js";
|
|
17
19
|
import { a as inputStateError } from "../../props-DDpgcryb.js";
|
|
18
20
|
const ClockIconStyled = styled(ClockIcon).withConfig({
|
|
19
21
|
displayName: "ClockIconStyled",
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { InlineIconProps } from '@vfde-react/inline-icon-library';
|
|
2
1
|
import { InputHTMLAttributes } from 'react';
|
|
3
|
-
export declare const ClockIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('
|
|
4
|
-
browserSupportsPicker: boolean;
|
|
5
|
-
}>> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
|
|
2
|
+
export declare const ClockIconStyled: import('styled-components/dist/types').IStyledComponentBase<"web", any> & string & Omit<import('react').FC<InlineIconProps>, keyof import('react').Component<any, {}, any>>;
|
|
6
3
|
export declare const TimeInputStyled: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('styled-components').FastOmit<import('react').DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof InputHTMLAttributes<HTMLInputElement>> & InputHTMLAttributes<HTMLInputElement>, InputHTMLAttributes<HTMLInputElement>>> & string;
|
|
@@ -4,7 +4,7 @@ import { useState, useRef, useEffect } from "react";
|
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import ButtonGroup from "../ButtonGroup/index.js";
|
|
6
6
|
import Heading from "../Heading/index.js";
|
|
7
|
-
import { f as fontWeightBold } from "../../FontWeight-
|
|
7
|
+
import { f as fontWeightBold } from "../../FontWeight-DEBGHbtO.js";
|
|
8
8
|
import { a as textHeadingMd } from "../../HeadingSize-CfCRn3Lh.js";
|
|
9
9
|
import { s as spacingMd, b as spacingNone } from "../../Spacing-D0HQH9YJ.js";
|
|
10
10
|
import styled from "styled-components";
|
|
@@ -19,7 +19,7 @@ import { getSpacing } from "../../foundations/token/getSpacing/index.js";
|
|
|
19
19
|
import { d as colorBackgroundOverlayStatic } from "../../BackgroundColor-e0N9tdDR.js";
|
|
20
20
|
import { a as borderWidthFocus } from "../../BorderWidth-DfOlyKK7.js";
|
|
21
21
|
import { g as getCssVar } from "../../getCssVar-BP6T9pFM.js";
|
|
22
|
-
import { a as flexOrientationVertical } from "../../styled-
|
|
22
|
+
import { a as flexOrientationVertical } from "../../styled-CPUu8mvT.js";
|
|
23
23
|
const TrayOverlayStyled = styled("div").withConfig({
|
|
24
24
|
displayName: "TrayOverlayStyled",
|
|
25
25
|
componentId: "sc-os3mq3-0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
2
|
import { ButtonGroupProps } from '../ButtonGroup/props';
|
|
4
3
|
import { HeadingProps } from '../Heading/props';
|
|
4
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
5
5
|
export interface TrayProps extends PatternProps, Omit<HTMLAttributes<HTMLDivElement>, 'onToggle'> {
|
|
6
6
|
/**
|
|
7
7
|
* Pin component's name from string to the concrete name
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import ConsentMessage from "../ConsentMessage/index.js";
|
|
3
4
|
import { useThirdPartyConsent } from "../../hooks/useThirdPartyConsent/index.js";
|
|
4
5
|
import styled from "styled-components";
|
|
5
6
|
import { getBorderRadius } from "../../foundations/token/getBorderRadius/index.js";
|
|
6
7
|
import { getBottomSpacing } from "../../foundations/token/getBottomSpacing/index.js";
|
|
7
8
|
import { b as borderRadiusMd } from "../../BorderRadius-ClUShVLu.js";
|
|
8
9
|
import { s as spacingMd } from "../../Spacing-D0HQH9YJ.js";
|
|
9
|
-
import ConsentMessage from "../ConsentMessage/index.js";
|
|
10
10
|
const YoutubeVideoStyled = styled.div.withConfig({
|
|
11
11
|
displayName: "YoutubeVideoStyled",
|
|
12
12
|
componentId: "sc-1q2uytw-0"
|
|
@@ -17,7 +17,6 @@ const YoutubeVideoStyled = styled.div.withConfig({
|
|
|
17
17
|
position: "relative",
|
|
18
18
|
width: "100%",
|
|
19
19
|
paddingBottom: "56.25%",
|
|
20
|
-
/* 16:9 aspect ratio */
|
|
21
20
|
height: 0,
|
|
22
21
|
overflow: "hidden",
|
|
23
22
|
...roundedCorner && {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
import { PatternProps } from '../../foundations/PatternProps';
|
|
3
2
|
import { ConsentMessageProps } from '../ConsentMessage/props';
|
|
3
|
+
import { PatternProps } from '../../foundations/PatternProps';
|
|
4
4
|
export interface YoutubeVideoProps extends PatternProps, HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/**
|
|
6
6
|
* Pin component's name from string to the concrete name
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const propsNotPassToDomDefault = ["accordionType", "activeId", "activeIndex", "setActiveId", "align", "animated", "appearance", "aspectRatio", "autoLayout", "apiKey", "badge", "borderBottom", "bottomSpacing", "buttonLink", "buttons", "coloringMode", "colorSwatch", "component", "corners", "coversFullPage", "description", "expanded", "filterItems", "gapSpacing", "grow", "handleOnClick", "handleOnToogle", "hasOverlay", "heading", "heightSm", "heightMd", "heightLg", "horizontalAlignment", "icon", "iconAlign", "iconName", "iconPosition", "images", "isActive", "isChecked", "isDisabled", "isFullscreen", "isOpen", "isOrdered", "isSelected", "isTransparentBackground", "items", "jumpToClickedItem", "justify", "justifyHorizontal", "label", "lg", "loadingSpinnerChild", "mapId", "md", "message", "more", "nextAriaLabel", "notificationType", "objectFit", "objectPosition", "offset", "onUpdate", "openMultiple", "orientation", "padding", "prefix", "prefixWeight", "prevAriaLabel", "price", "productId", "promoPrice", "screenReaderInstruction", "showList", "size", "sm", "spacing", "spinnerType", "status", "stretch", "strikePrice", "suffix", "tag", "textContent", "uid", "variant", "verticalPadding", "viewportHeight", "weight", "width"];
|
|
2
|
+
const filterProps = (propsNotPassToDom = []) => {
|
|
3
|
+
const shouldForwardProp = (prop) => {
|
|
4
|
+
if ("string" !== typeof prop) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
return ![...propsNotPassToDom, ...propsNotPassToDomDefault].includes(prop);
|
|
8
|
+
};
|
|
9
|
+
return shouldForwardProp;
|
|
10
|
+
};
|
|
11
|
+
const filterPropsForUnstyledComponent = (props) => {
|
|
12
|
+
return Object.fromEntries(Object.entries(props).filter(([key]) => !propsNotPassToDomDefault.includes(key)));
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
filterProps as a,
|
|
16
|
+
filterPropsForUnstyledComponent as f
|
|
17
|
+
};
|