@orangesk/orange-design-system 2.0.0-beta.27 → 2.0.0-beta.29
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/build/components/Carousel/style.css +1 -1
- package/build/components/Carousel/style.css.map +1 -1
- package/build/components/Megamenu/style.css +1 -1
- package/build/components/Megamenu/style.css.map +1 -1
- package/build/components/index.js +1 -1
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +8 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +7 -0
- package/build/components/types/src/components/Forms/File/File.d.ts +2 -0
- package/build/components/types/src/components/Forms/Group/Group.d.ts +2 -0
- package/build/components/types/src/components/Forms/InputStepper/InputStepper.d.ts +2 -0
- package/build/components/types/src/components/Forms/RangeSlider/RangeSlider.d.ts +2 -0
- package/build/components/types/src/components/Modal/Modal.static.d.ts +2 -0
- package/build/lib/components.css +1 -1
- package/build/lib/components.css.map +1 -1
- package/build/lib/megamenu.css +1 -1
- package/build/lib/megamenu.css.map +1 -1
- package/build/lib/scripts.js +1 -1
- package/build/lib/scripts.js.map +1 -1
- package/build/lib/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/lib/tsconfig.tsbuildinfo +1 -1
- package/build/search-index.json +418 -0
- package/package.json +7 -7
- package/src/components/Carousel/Carousel.static.ts +45 -7
- package/src/components/Carousel/styles/mixins.scss +0 -5
- package/src/components/Forms/Checkbox/styles/config.scss +6 -3
- package/src/components/Forms/Field/Control.tsx +49 -46
- package/src/components/Forms/Field/styles/config.scss +1 -1
- package/src/components/Forms/Field/tests/Group.Field.conformance.test.js +35 -11
- package/src/components/Forms/File/File.tsx +7 -2
- package/src/components/Forms/Group/Group.tsx +17 -8
- package/src/components/Forms/InputStepper/InputStepper.tsx +3 -0
- package/src/components/Forms/InputStepper/styles/style.scss +39 -44
- package/src/components/Forms/Message/styles/config.scss +2 -1
- package/src/components/Forms/Radio/styles/config.scss +6 -3
- package/src/components/Forms/RangeSlider/RangeSlider.tsx +3 -0
- package/src/components/Forms/styles/config.scss +5 -4
- package/src/components/Modal/Modal.static.ts +14 -3
- package/src/components/Modal/Modal.tsx +12 -3
- package/src/components/PromoBanner/PromoBanner.tsx +52 -50
- package/src/components/PromoBanner/tests/PromoBanner.conformance.test.js +4 -2
- package/src/components/PromoBanner/tests/PromoBanner.unit.test.js +5 -1
|
@@ -977,6 +977,8 @@ interface FileProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>,
|
|
|
977
977
|
id?: string;
|
|
978
978
|
/** Disabled state. */
|
|
979
979
|
isDisabled?: boolean;
|
|
980
|
+
/** Invalid state */
|
|
981
|
+
isInvalid?: boolean;
|
|
980
982
|
/** Input name. */
|
|
981
983
|
name?: string;
|
|
982
984
|
/** Size of element. */
|
|
@@ -995,6 +997,8 @@ interface GroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
995
997
|
size?: "large";
|
|
996
998
|
addonSuffix?: ReactNode | ReactNode[];
|
|
997
999
|
className?: string;
|
|
1000
|
+
/** Invalid state */
|
|
1001
|
+
isInvalid?: boolean;
|
|
998
1002
|
}
|
|
999
1003
|
declare const Group: React$1.FC<GroupProps>;
|
|
1000
1004
|
|
|
@@ -1072,6 +1076,8 @@ interface RangeSliderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
1072
1076
|
hasDataAttr?: boolean;
|
|
1073
1077
|
/** element id. required by RangeSlider.static.js and generated automatically in React environment. */
|
|
1074
1078
|
id?: string;
|
|
1079
|
+
/** Invalid state */
|
|
1080
|
+
isInvalid?: boolean;
|
|
1075
1081
|
/** width of the element */
|
|
1076
1082
|
width?: RangeSliderWidth;
|
|
1077
1083
|
/** Additional CSS classes */
|
|
@@ -1181,6 +1187,8 @@ interface InputStepperProps {
|
|
|
1181
1187
|
id: string;
|
|
1182
1188
|
inputClassName?: string;
|
|
1183
1189
|
isDisabled?: boolean;
|
|
1190
|
+
/** Invalid state */
|
|
1191
|
+
isInvalid?: boolean;
|
|
1184
1192
|
name?: string;
|
|
1185
1193
|
nonEditableInput?: boolean;
|
|
1186
1194
|
className?: string;
|
|
@@ -27,9 +27,15 @@ export default class Carousel {
|
|
|
27
27
|
* Carousel is enabled only when there are more slides than can fit in the current viewport.
|
|
28
28
|
*/
|
|
29
29
|
private updateCarouselEnabledState;
|
|
30
|
+
/**
|
|
31
|
+
* Apply negative margin-right to carousel track when slidesPerView is a whole number.
|
|
32
|
+
* This compensates for the 20px padding-right on each slide, ensuring proper grid alignment.
|
|
33
|
+
*/
|
|
34
|
+
private applyTrackMarginCompensation;
|
|
30
35
|
/**
|
|
31
36
|
* Calculate how much the carousel should extend beyond the container (bleed effect).
|
|
32
37
|
* On screens 2560px and wider, the bleed effect is disabled.
|
|
38
|
+
* Also disabled when slidesPerView is a whole number (integer).
|
|
33
39
|
*/
|
|
34
40
|
private calculateBleedAmount;
|
|
35
41
|
/**
|
|
@@ -41,6 +47,7 @@ export default class Carousel {
|
|
|
41
47
|
* Configure bleed-right carousel to extend beyond the container edge.
|
|
42
48
|
* Calculates the exact offset needed for the carousel to reach the viewport edge
|
|
43
49
|
* while keeping the last slide aligned with the container edge when scrolled to the end.
|
|
50
|
+
* When slidesPerView is a whole number (integer), the bleed effect is disabled.
|
|
44
51
|
*/
|
|
45
52
|
adjustConfigForBleedRight(): void;
|
|
46
53
|
/**
|
|
@@ -9,6 +9,8 @@ interface GroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
size?: "large";
|
|
10
10
|
addonSuffix?: ReactNode | ReactNode[];
|
|
11
11
|
className?: string;
|
|
12
|
+
/** Invalid state */
|
|
13
|
+
isInvalid?: boolean;
|
|
12
14
|
}
|
|
13
15
|
declare const Group: React.FC<GroupProps>;
|
|
14
16
|
export { Group };
|
|
@@ -29,6 +29,8 @@ export interface RangeSliderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
29
29
|
hasDataAttr?: boolean;
|
|
30
30
|
/** element id. required by RangeSlider.static.js and generated automatically in React environment. */
|
|
31
31
|
id?: string;
|
|
32
|
+
/** Invalid state */
|
|
33
|
+
isInvalid?: boolean;
|
|
32
34
|
/** width of the element */
|
|
33
35
|
width?: RangeSliderWidth;
|
|
34
36
|
/** Additional CSS classes */
|
|
@@ -8,6 +8,8 @@ interface ModalConfig {
|
|
|
8
8
|
root: string;
|
|
9
9
|
/** Move modal into this element selector (must be unique in DOM) */
|
|
10
10
|
modalsRoot: string;
|
|
11
|
+
/** Disable moving modal to #root-modals (for React controlled mode) */
|
|
12
|
+
disablePortal?: boolean;
|
|
11
13
|
}
|
|
12
14
|
interface HTMLElementWithModal extends HTMLElement {
|
|
13
15
|
ODS_Modal?: Modal;
|