@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.
Files changed (112) hide show
  1. package/build/components/index.js +4 -4
  2. package/build/components/index.js.map +1 -1
  3. package/build/components/tsconfig.tsbuildinfo +1 -1
  4. package/build/components/types/index.d.ts +25 -7
  5. package/build/components/types/src/components/Card/Card.d.ts +1 -1
  6. package/build/components/types/src/components/Card/CardSection.d.ts +2 -2
  7. package/build/components/types/src/components/Expander/Expander.d.ts +2 -2
  8. package/build/components/types/src/components/Icon/iconSearchTags.d.ts +252 -251
  9. package/build/components/types/src/components/Pill/Pill.d.ts +4 -1
  10. package/build/components/types/src/components/index.d.ts +2 -1
  11. package/build/lib/after-components.css +1 -1
  12. package/build/lib/after-components.css.map +1 -1
  13. package/build/lib/components.css +1 -1
  14. package/build/lib/components.css.map +1 -1
  15. package/build/lib/megamenu.css +1 -1
  16. package/build/lib/megamenu.css.map +1 -1
  17. package/build/lib/style.css +1 -1
  18. package/build/lib/style.css.map +1 -1
  19. package/build/sprite.svg +1 -1
  20. package/package.json +5 -5
  21. package/src/assets/icons/article.svg +7 -0
  22. package/src/assets/icons/pictogram-activation--dark.svg +10 -11
  23. package/src/assets/icons/pictogram-activation-free--dark.svg +4 -5
  24. package/src/assets/icons/pictogram-activation-free.svg +4 -5
  25. package/src/assets/icons/pictogram-activation.svg +10 -11
  26. package/src/assets/icons/pictogram-archive--dark.svg +3 -4
  27. package/src/assets/icons/pictogram-archive.svg +3 -4
  28. package/src/assets/icons/pictogram-calling-minutes--dark.svg +3 -4
  29. package/src/assets/icons/pictogram-calling-minutes.svg +3 -4
  30. package/src/assets/icons/pictogram-canal-plus--dark.svg +3 -4
  31. package/src/assets/icons/pictogram-canal-plus.svg +3 -4
  32. package/src/assets/icons/pictogram-competition-tickets--dark.svg +11 -12
  33. package/src/assets/icons/pictogram-competition-tickets.svg +11 -12
  34. package/src/assets/icons/pictogram-device-discount--dark.svg +7 -6
  35. package/src/assets/icons/pictogram-device-discount.svg +5 -6
  36. package/src/assets/icons/pictogram-discount-general--dark.svg +5 -6
  37. package/src/assets/icons/pictogram-discount-general.svg +5 -6
  38. package/src/assets/icons/pictogram-discount-price--dark.svg +5 -6
  39. package/src/assets/icons/pictogram-discount-price.svg +5 -6
  40. package/src/assets/icons/pictogram-extra-data--dark.svg +6 -7
  41. package/src/assets/icons/pictogram-extra-data.svg +6 -7
  42. package/src/assets/icons/pictogram-free-payment--dark.svg +5 -6
  43. package/src/assets/icons/pictogram-free-payment.svg +3 -6
  44. package/src/assets/icons/pictogram-gift--dark.svg +12 -13
  45. package/src/assets/icons/pictogram-gift-one-benefit--dark.svg +7 -8
  46. package/src/assets/icons/pictogram-gift-one-benefit.svg +7 -8
  47. package/src/assets/icons/pictogram-gift-two-benefits--dark.svg +8 -9
  48. package/src/assets/icons/pictogram-gift-two-benefits.svg +8 -9
  49. package/src/assets/icons/pictogram-gift.svg +3 -4
  50. package/src/assets/icons/pictogram-hbo-max--dark.svg +5 -6
  51. package/src/assets/icons/pictogram-hbo-max.svg +5 -6
  52. package/src/assets/icons/pictogram-infinite-sms--dark.svg +3 -4
  53. package/src/assets/icons/pictogram-infinite-sms.svg +3 -4
  54. package/src/assets/icons/pictogram-installation--dark.svg +4 -5
  55. package/src/assets/icons/pictogram-installation-free--dark.svg +4 -5
  56. package/src/assets/icons/pictogram-installation-free.svg +4 -5
  57. package/src/assets/icons/pictogram-installation.svg +4 -5
  58. package/src/assets/icons/pictogram-max--dark.svg +3 -4
  59. package/src/assets/icons/pictogram-max-canal-plus--dark.svg +5 -6
  60. package/src/assets/icons/pictogram-max-canal-plus.svg +5 -6
  61. package/src/assets/icons/pictogram-max.svg +3 -4
  62. package/src/assets/icons/pictogram-moj-orange-app--dark.svg +3 -4
  63. package/src/assets/icons/pictogram-moj-orange-app.svg +3 -4
  64. package/src/assets/icons/pictogram-movie-storage--dark.svg +4 -5
  65. package/src/assets/icons/pictogram-movie-storage.svg +4 -5
  66. package/src/assets/icons/pictogram-online-protection--dark.svg +3 -4
  67. package/src/assets/icons/pictogram-online-protection.svg +3 -4
  68. package/src/assets/icons/pictogram-random-damage--dark.svg +4 -8
  69. package/src/assets/icons/pictogram-random-damage.svg +4 -8
  70. package/src/assets/icons/pictogram-recycling--dark.svg +7 -8
  71. package/src/assets/icons/pictogram-recycling.svg +14 -15
  72. package/src/assets/icons/pictogram-repair--dark.svg +12 -13
  73. package/src/assets/icons/pictogram-repair.svg +12 -13
  74. package/src/assets/icons/pictogram-roaming--dark.svg +3 -4
  75. package/src/assets/icons/pictogram-roaming-discount--dark.svg +3 -16
  76. package/src/assets/icons/pictogram-roaming-discount.svg +15 -16
  77. package/src/assets/icons/pictogram-roaming.svg +3 -4
  78. package/src/assets/icons/pictogram-skylink--dark.svg +10 -11
  79. package/src/assets/icons/pictogram-skylink-live-tv--dark.svg +7 -8
  80. package/src/assets/icons/pictogram-skylink-live-tv.svg +7 -8
  81. package/src/assets/icons/pictogram-skylink.svg +10 -11
  82. package/src/assets/icons/pictogram-sms--dark.svg +5 -6
  83. package/src/assets/icons/pictogram-sms.svg +5 -6
  84. package/src/assets/icons/pictogram-theft--dark.svg +3 -7
  85. package/src/assets/icons/pictogram-theft.svg +3 -7
  86. package/src/assets/icons/pictogram-three-devices--dark.svg +4 -8
  87. package/src/assets/icons/pictogram-three-devices.svg +4 -8
  88. package/src/assets/icons/pictogram-trust--dark.svg +3 -4
  89. package/src/assets/icons/pictogram-trust.svg +3 -4
  90. package/src/assets/icons/pictogram-water-damage--dark.svg +5 -6
  91. package/src/assets/icons/pictogram-water-damage.svg +5 -6
  92. package/src/components/Accordion/styles/config.scss +4 -4
  93. package/src/components/Accordion/styles/mixins.scss +2 -2
  94. package/src/components/AnchorNavigation/AnchorNavigation.tsx +24 -27
  95. package/src/components/AnchorNavigation/styles/mixins.scss +1 -11
  96. package/src/components/Card/Card.tsx +14 -1
  97. package/src/components/Card/CardSection.tsx +2 -10
  98. package/src/components/Card/styles/config.scss +1 -1
  99. package/src/components/Expander/Expander.tsx +4 -2
  100. package/src/components/Expander/styles/style.scss +7 -0
  101. package/src/components/Icon/iconSearchTags.ts +433 -432
  102. package/src/components/Icon/styles/style.scss +4 -0
  103. package/src/components/Link/styles/style.scss +2 -1
  104. package/src/components/Pill/Pill.tsx +8 -3
  105. package/src/components/Pill/styles/config.scss +18 -2
  106. package/src/components/Pill/styles/style.scss +7 -3
  107. package/src/components/Pill/tests/Pill.conformance.test.js +7 -3
  108. package/src/components/Pill/tests/Pill.unit.test.js +45 -7
  109. package/src/components/Section/styles/config.scss +18 -16
  110. package/src/components/index.ts +2 -0
  111. package/src/styles/utilities/color.scss +5 -0
  112. 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
- /** Additional HTML attributes */
455
- [key: string]: any;
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
- declare const cardSectionColors: readonly ["orange", "gray", "blue", "green", "pink", "yellow", "violet"];
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
- colorScheme?: "dark" | "light" | "transparent";
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
- export declare const cardSectionColors: readonly ["orange", "gray", "blue", "green", "pink", "yellow", "violet"];
3
- export type CardSectionColor = (typeof cardSectionColors)[number];
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
- /** Additional HTML attributes */
19
- [key: string]: any;
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 {};