@orangesk/orange-design-system 2.0.0-beta.5 → 2.0.0-beta.7
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 +25 -7
- package/build/components/types/src/components/Card/Card.d.ts +1 -1
- package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
- package/build/components/types/src/components/Expander/Expander.d.ts +2 -2
- package/build/components/types/src/components/Icon/iconSearchTags.d.ts +252 -251
- package/build/components/types/src/components/Pill/Pill.d.ts +4 -1
- package/build/components/types/src/components/index.d.ts +2 -1
- package/build/lib/after-components.css +1 -1
- package/build/lib/after-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/style.css +1 -1
- package/build/lib/style.css.map +1 -1
- package/build/sprite.svg +1 -1
- package/package.json +5 -5
- package/src/assets/icons/article.svg +7 -0
- package/src/assets/icons/pictogram-activation--dark.svg +10 -11
- package/src/assets/icons/pictogram-activation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-activation-free.svg +4 -5
- package/src/assets/icons/pictogram-activation.svg +10 -11
- package/src/assets/icons/pictogram-archive--dark.svg +3 -4
- package/src/assets/icons/pictogram-archive.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes--dark.svg +3 -4
- package/src/assets/icons/pictogram-calling-minutes.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus--dark.svg +3 -4
- package/src/assets/icons/pictogram-canal-plus.svg +3 -4
- package/src/assets/icons/pictogram-competition-tickets--dark.svg +11 -12
- package/src/assets/icons/pictogram-competition-tickets.svg +11 -12
- package/src/assets/icons/pictogram-device-discount--dark.svg +7 -6
- package/src/assets/icons/pictogram-device-discount.svg +5 -6
- package/src/assets/icons/pictogram-discount-general--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-general.svg +5 -6
- package/src/assets/icons/pictogram-discount-price--dark.svg +5 -6
- package/src/assets/icons/pictogram-discount-price.svg +5 -6
- package/src/assets/icons/pictogram-extra-data--dark.svg +6 -7
- package/src/assets/icons/pictogram-extra-data.svg +6 -7
- package/src/assets/icons/pictogram-free-payment--dark.svg +5 -6
- package/src/assets/icons/pictogram-free-payment.svg +3 -6
- package/src/assets/icons/pictogram-gift--dark.svg +12 -13
- package/src/assets/icons/pictogram-gift-one-benefit--dark.svg +7 -8
- package/src/assets/icons/pictogram-gift-one-benefit.svg +7 -8
- package/src/assets/icons/pictogram-gift-two-benefits--dark.svg +8 -9
- package/src/assets/icons/pictogram-gift-two-benefits.svg +8 -9
- package/src/assets/icons/pictogram-gift.svg +3 -4
- package/src/assets/icons/pictogram-hbo-max--dark.svg +5 -6
- package/src/assets/icons/pictogram-hbo-max.svg +5 -6
- package/src/assets/icons/pictogram-infinite-sms--dark.svg +3 -4
- package/src/assets/icons/pictogram-infinite-sms.svg +3 -4
- package/src/assets/icons/pictogram-installation--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free--dark.svg +4 -5
- package/src/assets/icons/pictogram-installation-free.svg +4 -5
- package/src/assets/icons/pictogram-installation.svg +4 -5
- package/src/assets/icons/pictogram-max--dark.svg +3 -4
- package/src/assets/icons/pictogram-max-canal-plus--dark.svg +5 -6
- package/src/assets/icons/pictogram-max-canal-plus.svg +5 -6
- package/src/assets/icons/pictogram-max.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app--dark.svg +3 -4
- package/src/assets/icons/pictogram-moj-orange-app.svg +3 -4
- package/src/assets/icons/pictogram-movie-storage--dark.svg +4 -5
- package/src/assets/icons/pictogram-movie-storage.svg +4 -5
- package/src/assets/icons/pictogram-online-protection--dark.svg +3 -4
- package/src/assets/icons/pictogram-online-protection.svg +3 -4
- package/src/assets/icons/pictogram-random-damage--dark.svg +4 -8
- package/src/assets/icons/pictogram-random-damage.svg +4 -8
- package/src/assets/icons/pictogram-recycling--dark.svg +7 -8
- package/src/assets/icons/pictogram-recycling.svg +14 -15
- package/src/assets/icons/pictogram-repair--dark.svg +12 -13
- package/src/assets/icons/pictogram-repair.svg +12 -13
- package/src/assets/icons/pictogram-roaming--dark.svg +3 -4
- package/src/assets/icons/pictogram-roaming-discount--dark.svg +3 -16
- package/src/assets/icons/pictogram-roaming-discount.svg +15 -16
- package/src/assets/icons/pictogram-roaming.svg +3 -4
- package/src/assets/icons/pictogram-skylink--dark.svg +10 -11
- package/src/assets/icons/pictogram-skylink-live-tv--dark.svg +7 -8
- package/src/assets/icons/pictogram-skylink-live-tv.svg +7 -8
- package/src/assets/icons/pictogram-skylink.svg +10 -11
- package/src/assets/icons/pictogram-sms--dark.svg +5 -6
- package/src/assets/icons/pictogram-sms.svg +5 -6
- package/src/assets/icons/pictogram-theft--dark.svg +3 -7
- package/src/assets/icons/pictogram-theft.svg +3 -7
- package/src/assets/icons/pictogram-three-devices--dark.svg +4 -8
- package/src/assets/icons/pictogram-three-devices.svg +4 -8
- package/src/assets/icons/pictogram-trust--dark.svg +3 -4
- package/src/assets/icons/pictogram-trust.svg +3 -4
- package/src/assets/icons/pictogram-water-damage--dark.svg +5 -6
- package/src/assets/icons/pictogram-water-damage.svg +5 -6
- package/src/components/Accordion/styles/config.scss +4 -4
- package/src/components/Accordion/styles/mixins.scss +2 -2
- package/src/components/AnchorNavigation/AnchorNavigation.tsx +24 -27
- package/src/components/AnchorNavigation/styles/mixins.scss +1 -11
- package/src/components/Card/Card.tsx +14 -1
- package/src/components/Card/CardSection.tsx +2 -10
- package/src/components/Card/styles/config.scss +1 -1
- package/src/components/Expander/Expander.tsx +4 -2
- package/src/components/Expander/styles/style.scss +7 -0
- package/src/components/Icon/iconSearchTags.ts +433 -432
- package/src/components/Icon/styles/style.scss +4 -0
- package/src/components/Link/styles/style.scss +2 -1
- package/src/components/Pill/Pill.tsx +8 -3
- package/src/components/Pill/styles/config.scss +18 -2
- package/src/components/Pill/styles/style.scss +7 -3
- package/src/components/Pill/tests/Pill.conformance.test.js +7 -3
- package/src/components/Pill/tests/Pill.unit.test.js +45 -7
- package/src/components/Section/styles/config.scss +18 -16
- package/src/components/index.ts +2 -0
- package/src/styles/utilities/color.scss +5 -0
- package/src/styles/utilities/layout.scss +9 -0
|
@@ -76,6 +76,22 @@ interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
76
76
|
}
|
|
77
77
|
declare const Alert: React$1.FC<AlertProps>;
|
|
78
78
|
|
|
79
|
+
interface AnchorNavigationItem {
|
|
80
|
+
label: string;
|
|
81
|
+
href: string;
|
|
82
|
+
isActive?: boolean;
|
|
83
|
+
}
|
|
84
|
+
interface AnchorNavigationProps {
|
|
85
|
+
items: AnchorNavigationItem[];
|
|
86
|
+
className?: string;
|
|
87
|
+
colorScheme?: "light" | "dark";
|
|
88
|
+
children?: React$1.ReactNode;
|
|
89
|
+
}
|
|
90
|
+
declare const AnchorNavigation: {
|
|
91
|
+
({ items, className, colorScheme, children, }: AnchorNavigationProps): React$1.JSX.Element;
|
|
92
|
+
displayName: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
79
95
|
type TagButtonProps = {
|
|
80
96
|
className?: string;
|
|
81
97
|
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -451,8 +467,8 @@ interface ExpanderProps {
|
|
|
451
467
|
className?: string;
|
|
452
468
|
/** Child elements */
|
|
453
469
|
children?: React$1.ReactNode;
|
|
454
|
-
/**
|
|
455
|
-
|
|
470
|
+
/** Expander takes full width of its container */
|
|
471
|
+
isFullWidth?: boolean;
|
|
456
472
|
}
|
|
457
473
|
declare const Expander: React$1.FC<ExpanderProps>;
|
|
458
474
|
|
|
@@ -475,7 +491,7 @@ declare const FeatureAccordionItem: React$1.FC<FeatureAccordionItemProps & {
|
|
|
475
491
|
defaultOpen?: boolean;
|
|
476
492
|
}>;
|
|
477
493
|
|
|
478
|
-
declare const cardColors: readonly ["white", "black", "orange"];
|
|
494
|
+
declare const cardColors: readonly ["white", "black", "orange", "gray", "blue", "green", "pink", "yellow", "violet", "accent1-blog", "accent2-blog", "accent"];
|
|
479
495
|
type CardColor = (typeof cardColors)[number];
|
|
480
496
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
481
497
|
/** Custom background color */
|
|
@@ -483,8 +499,7 @@ interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
483
499
|
}
|
|
484
500
|
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
485
501
|
|
|
486
|
-
|
|
487
|
-
type CardSectionColor = (typeof cardSectionColors)[number];
|
|
502
|
+
type CardSectionColor = (typeof cardColors)[number];
|
|
488
503
|
interface CardSectionProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
489
504
|
/** Custom background color */
|
|
490
505
|
color?: CardSectionColor;
|
|
@@ -1170,11 +1185,14 @@ declare const InputStepper: React$1.FC<InputStepperProps>;
|
|
|
1170
1185
|
|
|
1171
1186
|
declare const Skeleton: React$1.FC<React$1.HTMLAttributes<HTMLSpanElement>>;
|
|
1172
1187
|
|
|
1188
|
+
declare const pillColors: readonly ["white", "gray", "transparent"];
|
|
1189
|
+
type PillColor = (typeof pillColors)[number];
|
|
1173
1190
|
interface PillProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1174
1191
|
className?: string;
|
|
1175
1192
|
children?: ReactNode;
|
|
1176
|
-
|
|
1193
|
+
color?: PillColor;
|
|
1177
1194
|
size?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
|
|
1195
|
+
colorScheme?: "light" | "dark";
|
|
1178
1196
|
}
|
|
1179
1197
|
declare const Pill: React$1.FC<PillProps>;
|
|
1180
1198
|
|
|
@@ -1471,4 +1489,4 @@ interface ItemProps {
|
|
|
1471
1489
|
}
|
|
1472
1490
|
declare const Item: React$1.FC<ItemProps>;
|
|
1473
1491
|
|
|
1474
|
-
export { Accordion, AccordionItem, Alert, Autocomplete, Bar, BarBreak, BarItem, BlockAction, BlockActionControl, BlockActionIndicator, BlockActionOverride, BodyBanner, Breadcrumbs, Button, ButtonFill, ButtonGhost, ButtonPrimary, Buttons, Card, CardProductHeader, CardSection, Carousel, CarouselHero, CarouselPromotions, CartTable, Checkbox, Container, Controls, Cover, Divider, Dropdown, DropdownDivider, DropdownItem, DropdownToggleButton, Expander, FeatureAccordion, FeatureAccordionItem, Field, Fieldset, File, Gauge, Grid, GridCol, Group, Hero, Hint, Icon, IconButton, IconList, Image, InfoTooltip, InputStepper, Item, Label, Link, List, ListItem, Loader, Message, Modal, ModalBody, ModalCloseButton, ModalProductHeader, ModalTitle, Pagination, Pictogram, Pill, Progress, PromoBanner, PromotionCard, PromotionCardContent, PromotionCardImageWrapper, PromotionCardSection, PromotionCardTitle, Radio, RangeSlider, Section, Select, Skeleton, SkipLink, Stepbar, Sticker, Tab, TabPanel, Table, Tabs, Tag, TagButton, Testimonial, TextArea, TextInput, Tile, Tooltip };
|
|
1492
|
+
export { Accordion, AccordionItem, Alert, AnchorNavigation, Autocomplete, Bar, BarBreak, BarItem, BlockAction, BlockActionControl, BlockActionIndicator, BlockActionOverride, BodyBanner, Breadcrumbs, Button, ButtonFill, ButtonGhost, ButtonPrimary, Buttons, Card, CardProductHeader, CardSection, Carousel, CarouselHero, CarouselPromotions, CartTable, Checkbox, Container, Controls, Cover, Divider, Dropdown, DropdownDivider, DropdownItem, DropdownToggleButton, Expander, FeatureAccordion, FeatureAccordionItem, Field, Fieldset, File, Gauge, Grid, GridCol, Group, Hero, Hint, Icon, IconButton, IconList, Image, InfoTooltip, InputStepper, Item, Label, Link, List, ListItem, Loader, Message, Modal, ModalBody, ModalCloseButton, ModalProductHeader, ModalTitle, Pagination, Pictogram, Pill, Progress, PromoBanner, PromotionCard, PromotionCardContent, PromotionCardImageWrapper, PromotionCardSection, PromotionCardTitle, Radio, RangeSlider, Section, Select, Skeleton, SkipLink, Stepbar, Sticker, Tab, TabPanel, Table, Tabs, Tag, TagButton, Testimonial, TextArea, TextInput, Tile, Tooltip };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const cardColors: readonly ["white", "black", "orange"];
|
|
2
|
+
export declare const cardColors: readonly ["white", "black", "orange", "gray", "blue", "green", "pink", "yellow", "violet", "accent1-blog", "accent2-blog", "accent"];
|
|
3
3
|
export type CardColor = (typeof cardColors)[number];
|
|
4
4
|
export interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/** Custom background color */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
export type CardSectionColor = (typeof
|
|
2
|
+
import { cardColors } from "./Card";
|
|
3
|
+
export type CardSectionColor = (typeof cardColors)[number];
|
|
4
4
|
interface CardSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
/** Custom background color */
|
|
6
6
|
color?: CardSectionColor;
|
|
@@ -15,8 +15,8 @@ interface ExpanderProps {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
/** Child elements */
|
|
17
17
|
children?: React.ReactNode;
|
|
18
|
-
/**
|
|
19
|
-
|
|
18
|
+
/** Expander takes full width of its container */
|
|
19
|
+
isFullWidth?: boolean;
|
|
20
20
|
}
|
|
21
21
|
export declare const Expander: React.FC<ExpanderProps>;
|
|
22
22
|
export {};
|