@orangesk/orange-design-system 2.0.0-beta.7 → 2.0.0-beta.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/build/components/index.js +4 -4
- package/build/components/index.js.map +1 -1
- package/build/components/tsconfig.tsbuildinfo +1 -1
- package/build/components/types/index.d.ts +12 -8
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.d.ts +1 -1
- package/build/components/types/src/components/AnchorNavigation/AnchorNavigation.static.d.ts +19 -17
- package/build/components/types/src/components/Button/Button.d.ts +1 -0
- package/build/components/types/src/components/Card/Card.d.ts +2 -1
- package/build/components/types/src/components/Carousel/Carousel.d.ts +4 -0
- package/build/components/types/src/components/Carousel/Carousel.static.d.ts +1 -0
- package/build/components/types/src/components/Carousel/constants.d.ts +2 -0
- package/build/components/types/src/components/Megamenu/constants.d.ts +2 -0
- package/build/components/types/src/components/Pill/Pill.d.ts +1 -1
- package/build/components/types/src/components/PromoBanner/PromoBanner.d.ts +3 -5
- package/build/components/types/src/scripts/index.d.ts +5 -0
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-components.css.map +1 -1
- package/build/lib/before-components.css +1 -1
- package/build/lib/before-components.css.map +1 -1
- 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/megamenu.js +1 -1
- package/build/lib/megamenu.js.map +1 -1
- package/build/lib/scripts.js +4 -4
- 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/package.json +16 -16
- package/src/components/AnchorNavigation/AnchorNavigation.static.ts +253 -73
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +31 -24
- package/src/components/AnchorNavigation/styles/mixins.scss +14 -17
- package/src/components/AnchorNavigation/tests/AnchorNavigation.conformance.test.js +67 -0
- package/src/components/AnchorNavigation/tests/AnchorNavigation.unit.test.js +163 -0
- package/src/components/BlockAction/styles/mixins.scss +0 -6
- package/src/components/Button/Button.tsx +2 -0
- package/src/components/Button/styles/mixins.scss +5 -0
- package/src/components/Button/styles/style.scss +4 -0
- package/src/components/Card/Card.tsx +5 -1
- package/src/components/Card/styles/style.scss +4 -0
- package/src/components/Carousel/Carousel.static.ts +67 -1
- package/src/components/Carousel/Carousel.tsx +41 -19
- package/src/components/Carousel/constants.ts +2 -0
- package/src/components/Carousel/styles/config.scss +1 -2
- package/src/components/Carousel/styles/mixins.scss +35 -2
- package/src/components/Carousel/styles/style.scss +8 -0
- package/src/components/Icon/styles/style.scss +11 -0
- package/src/components/Icon/tests/Pictogram.unit.test.js +38 -0
- package/src/components/Link/styles/style.scss +1 -1
- package/src/components/Link/tests/Link.conformance.test.js +5 -20
- package/src/components/Link/tests/Link.unit.test.js +1 -10
- package/src/components/Megamenu/Megamenu.static.ts +2 -0
- package/src/components/Megamenu/Megamenu.tsx +671 -665
- package/src/components/Megamenu/MegamenuBlog.tsx +187 -183
- package/src/components/Megamenu/constants.ts +2 -0
- package/src/components/Megamenu/styles/mixins.scss +30 -1
- package/src/components/Megamenu/styles/style.scss +8 -0
- package/src/components/Pill/Pill.tsx +1 -1
- package/src/components/Pill/styles/config.scss +4 -0
- package/src/components/Preview/PreviewGenerator.tsx +48 -21
- package/src/components/PromoBanner/PromoBanner.tsx +14 -26
- package/src/components/PromoBanner/styles/mixins.scss +20 -21
- package/src/components/PromoBanner/styles/style.scss +0 -6
- package/src/styles/base/globals.scss +19 -0
- package/src/styles/utilities/color.scss +94 -20
|
@@ -8,9 +8,6 @@ Unit tests for the Link component:
|
|
|
8
8
|
- Color Variants:
|
|
9
9
|
- Applies correct class for each color variant (default, orange, black).
|
|
10
10
|
- Combines color with inverse class when both are set.
|
|
11
|
-
- Inverse Styling:
|
|
12
|
-
- Applies inverse class when isInverse is true.
|
|
13
|
-
- Does not apply inverse class when isInverse is false.
|
|
14
11
|
- Props Forwarding:
|
|
15
12
|
- Forwards additional HTML attributes (target, rel, aria-label, etc.).
|
|
16
13
|
- Forwards event handlers (onClick, onMouseEnter, etc.).
|
|
@@ -222,13 +219,7 @@ describe("Link Component", () => {
|
|
|
222
219
|
|
|
223
220
|
it("handles null and undefined props gracefully", () => {
|
|
224
221
|
render(
|
|
225
|
-
<Link
|
|
226
|
-
href="/"
|
|
227
|
-
data-testid="link"
|
|
228
|
-
color={null}
|
|
229
|
-
isInverse={undefined}
|
|
230
|
-
className={null}
|
|
231
|
-
>
|
|
222
|
+
<Link href="/" data-testid="link" color={null} className={null}>
|
|
232
223
|
Test
|
|
233
224
|
</Link>,
|
|
234
225
|
);
|
|
@@ -287,8 +287,10 @@ export default class Megamenu {
|
|
|
287
287
|
if (topElement) {
|
|
288
288
|
if (window.scrollY > 15) {
|
|
289
289
|
topElement.classList.add("is-hidden");
|
|
290
|
+
this.element.classList.add("top-hidden");
|
|
290
291
|
} else {
|
|
291
292
|
topElement.classList.remove("is-hidden");
|
|
293
|
+
this.element.classList.remove("top-hidden");
|
|
292
294
|
}
|
|
293
295
|
}
|
|
294
296
|
}
|