@orangesk/orange-design-system 2.0.0-beta.6 → 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.
@@ -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
 
@@ -1169,11 +1185,14 @@ declare const InputStepper: React$1.FC<InputStepperProps>;
1169
1185
 
1170
1186
  declare const Skeleton: React$1.FC<React$1.HTMLAttributes<HTMLSpanElement>>;
1171
1187
 
1188
+ declare const pillColors: readonly ["white", "gray", "transparent"];
1189
+ type PillColor = (typeof pillColors)[number];
1172
1190
  interface PillProps extends HTMLAttributes<HTMLSpanElement> {
1173
1191
  className?: string;
1174
1192
  children?: ReactNode;
1175
- colorScheme?: "dark" | "light" | "transparent";
1193
+ color?: PillColor;
1176
1194
  size?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
1195
+ colorScheme?: "light" | "dark";
1177
1196
  }
1178
1197
  declare const Pill: React$1.FC<PillProps>;
1179
1198
 
@@ -1470,4 +1489,4 @@ interface ItemProps {
1470
1489
  }
1471
1490
  declare const Item: React$1.FC<ItemProps>;
1472
1491
 
1473
- 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 };
@@ -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 {};
@@ -1,9 +1,12 @@
1
1
  import React, { ReactNode, HTMLAttributes } from "react";
2
+ export declare const pillColors: readonly ["white", "gray", "transparent"];
3
+ export type PillColor = (typeof pillColors)[number];
2
4
  interface PillProps extends HTMLAttributes<HTMLSpanElement> {
3
5
  className?: string;
4
6
  children?: ReactNode;
5
- colorScheme?: "dark" | "light" | "transparent";
7
+ color?: PillColor;
6
8
  size?: "small" | "medium" | "large" | "xlarge" | "xxlarge";
9
+ colorScheme?: "light" | "dark";
7
10
  }
8
11
  declare const Pill: React.FC<PillProps>;
9
12
  export { Pill };
@@ -1,5 +1,6 @@
1
1
  import { Accordion, AccordionItem } from "./Accordion";
2
2
  import { Alert } from "./Alert";
3
+ import { AnchorNavigation } from "./AnchorNavigation";
3
4
  import { Tag, TagButton } from "./Tag";
4
5
  import { Bar, BarBreak, BarItem } from "./Bar";
5
6
  import { BlockAction, BlockActionControl, BlockActionIndicator, BlockActionOverride } from "./BlockAction";
@@ -45,4 +46,4 @@ import { Cover } from "./Cover";
45
46
  import { Testimonial } from "./Testimonial";
46
47
  import { Hero } from "./Hero";
47
48
  import { IconList, Item } from "./IconList";
48
- 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, Table, TabPanel, Tabs, Tag, TagButton, Testimonial, TextArea, TextInput, Tile, Tooltip, };
49
+ 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, Table, TabPanel, Tabs, Tag, TagButton, Testimonial, TextArea, TextInput, Tile, Tooltip, };