@telia/teddy 0.0.65 → 0.0.66
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/dist/components/card/card-availability.cjs +34 -0
- package/dist/components/card/card-availability.d.ts +10 -0
- package/dist/components/card/card-availability.js +34 -0
- package/dist/components/card/card-button.cjs +17 -11
- package/dist/components/card/card-button.d.ts +4 -2
- package/dist/components/card/card-button.js +19 -13
- package/dist/components/card/card-color-dots.cjs +18 -0
- package/dist/components/card/card-color-dots.d.ts +9 -0
- package/dist/components/card/card-color-dots.js +18 -0
- package/dist/components/card/card-content.cjs +1 -1
- package/dist/components/card/card-content.js +1 -1
- package/dist/components/card/card-description.cjs +16 -0
- package/dist/components/card/card-description.d.ts +6 -0
- package/dist/components/card/card-description.js +16 -0
- package/dist/components/card/card-line.cjs +14 -4
- package/dist/components/card/card-line.js +14 -4
- package/dist/components/card/card-link.cjs +2 -1
- package/dist/components/card/card-link.js +2 -1
- package/dist/components/card/card-overline.cjs +16 -0
- package/dist/components/card/card-overline.d.ts +6 -0
- package/dist/components/card/card-overline.js +16 -0
- package/dist/components/card/card-price.cjs +34 -0
- package/dist/components/card/card-price.d.ts +9 -0
- package/dist/components/card/card-price.js +34 -0
- package/dist/components/card/card-slot.cjs +20 -14
- package/dist/components/card/card-slot.d.ts +3 -1
- package/dist/components/card/card-slot.js +21 -15
- package/dist/components/card/card.cjs +46 -32
- package/dist/components/card/card.d.ts +2 -1
- package/dist/components/card/card.js +46 -32
- package/dist/components/card/index.cjs +16 -1
- package/dist/components/card/index.d.ts +18 -1
- package/dist/components/card/index.js +16 -1
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/list.cjs +16 -22
- package/dist/components/list/list.d.ts +2 -0
- package/dist/components/list/list.js +16 -22
- package/dist/components/notification/notification.d.ts +1 -1
- package/dist/style.css +260 -171
- package/package.json +1 -1
|
@@ -7,38 +7,52 @@ const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs
|
|
|
7
7
|
const components_grid_grid = require("../grid/grid.cjs");
|
|
8
8
|
const tokens_color_variables = require("../../tokens/color/variables.cjs");
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-card": "_teddy-
|
|
11
|
-
"teddy-card__slot": "_teddy-
|
|
12
|
-
"teddy-card__slot--bottom": "_teddy-card__slot--
|
|
13
|
-
"teddy-card__slot--center": "_teddy-card__slot--
|
|
14
|
-
"teddy-card--shadow": "_teddy-card--
|
|
15
|
-
"teddy-card__action": "_teddy-
|
|
16
|
-
"teddy-card__action--disabled": "_teddy-card__action--
|
|
17
|
-
"teddy-card--border": "_teddy-card--
|
|
18
|
-
"teddy-card--layout": "_teddy-card--
|
|
19
|
-
"teddy-card__illustration": "_teddy-
|
|
20
|
-
"teddy-card__content": "_teddy-
|
|
21
|
-
"teddy-card__heading": "_teddy-
|
|
22
|
-
"teddy-
|
|
23
|
-
"teddy-
|
|
24
|
-
"teddy-
|
|
25
|
-
"teddy-
|
|
26
|
-
"teddy-
|
|
27
|
-
"teddy-
|
|
28
|
-
"teddy-
|
|
29
|
-
"teddy-card--
|
|
30
|
-
"teddy-card--
|
|
31
|
-
"teddy-card--
|
|
32
|
-
"teddy-card--
|
|
33
|
-
"teddy-card--
|
|
34
|
-
"teddy-
|
|
35
|
-
"teddy-card--
|
|
36
|
-
"teddy-
|
|
37
|
-
"teddy-
|
|
38
|
-
"teddy-
|
|
39
|
-
"teddy-
|
|
40
|
-
"teddy-
|
|
41
|
-
"teddy-
|
|
10
|
+
"teddy-card": "_teddy-card_2wvsb_3",
|
|
11
|
+
"teddy-card__slot": "_teddy-card__slot_2wvsb_13",
|
|
12
|
+
"teddy-card__slot--bottom": "_teddy-card__slot--bottom_2wvsb_16",
|
|
13
|
+
"teddy-card__slot--center": "_teddy-card__slot--center_2wvsb_19",
|
|
14
|
+
"teddy-card--shadow": "_teddy-card--shadow_2wvsb_41",
|
|
15
|
+
"teddy-card__action": "_teddy-card__action_2wvsb_45",
|
|
16
|
+
"teddy-card__action--disabled": "_teddy-card__action--disabled_2wvsb_45",
|
|
17
|
+
"teddy-card--border": "_teddy-card--border_2wvsb_52",
|
|
18
|
+
"teddy-card--layout": "_teddy-card--layout_2wvsb_55",
|
|
19
|
+
"teddy-card__illustration": "_teddy-card__illustration_2wvsb_55",
|
|
20
|
+
"teddy-card__content": "_teddy-card__content_2wvsb_58",
|
|
21
|
+
"teddy-card__heading": "_teddy-card__heading_2wvsb_61",
|
|
22
|
+
"teddy-card__action-wrapper": "_teddy-card__action-wrapper_2wvsb_64",
|
|
23
|
+
"teddy-card__footer": "_teddy-card__footer_2wvsb_67",
|
|
24
|
+
"teddy-card__overline": "_teddy-card__overline_2wvsb_70",
|
|
25
|
+
"teddy-card__description": "_teddy-card__description_2wvsb_73",
|
|
26
|
+
"teddy-card__color-dots": "_teddy-card__color-dots_2wvsb_76",
|
|
27
|
+
"teddy-card__availability": "_teddy-card__availability_2wvsb_79",
|
|
28
|
+
"teddy-card__price": "_teddy-card__price_2wvsb_82",
|
|
29
|
+
"teddy-card--default": "_teddy-card--default_2wvsb_85",
|
|
30
|
+
"teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_2wvsb_90",
|
|
31
|
+
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_2wvsb_109",
|
|
32
|
+
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_2wvsb_121",
|
|
33
|
+
"teddy-card--rich-card": "_teddy-card--rich-card_2wvsb_133",
|
|
34
|
+
"teddy-card__line": "_teddy-card__line_2wvsb_151",
|
|
35
|
+
"teddy-card--purple-light": "_teddy-card--purple-light_2wvsb_155",
|
|
36
|
+
"teddy-card--purple-dark": "_teddy-card--purple-dark_2wvsb_169",
|
|
37
|
+
"teddy-card--white": "_teddy-card--white_2wvsb_188",
|
|
38
|
+
"teddy-card--gray": "_teddy-card--gray_2wvsb_202",
|
|
39
|
+
"teddy-card--beige": "_teddy-card--beige_2wvsb_216",
|
|
40
|
+
"teddy-card--product": "_teddy-card--product_2wvsb_230",
|
|
41
|
+
"teddy-card__image--as-background": "_teddy-card__image--as-background_2wvsb_278",
|
|
42
|
+
"teddy-card--background-image": "_teddy-card--background-image_2wvsb_284",
|
|
43
|
+
"teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_2wvsb_289",
|
|
44
|
+
"teddy-card__inset": "_teddy-card__inset_2wvsb_293",
|
|
45
|
+
"teddy-card__inset--top": "_teddy-card__inset--top_2wvsb_296",
|
|
46
|
+
"teddy-card__inset--left": "_teddy-card__inset--left_2wvsb_299",
|
|
47
|
+
"teddy-card__inset--right": "_teddy-card__inset--right_2wvsb_302",
|
|
48
|
+
"teddy-card__inset--bottom": "_teddy-card__inset--bottom_2wvsb_305",
|
|
49
|
+
"teddy-card__availability--badge": "_teddy-card__availability--badge_2wvsb_320",
|
|
50
|
+
"teddy-card__availability--success": "_teddy-card__availability--success_2wvsb_323",
|
|
51
|
+
"teddy-card__availability--warning": "_teddy-card__availability--warning_2wvsb_326",
|
|
52
|
+
"teddy-card__availability--error": "_teddy-card__availability--error_2wvsb_329",
|
|
53
|
+
"teddy-card__availability--special": "_teddy-card__availability--special_2wvsb_332",
|
|
54
|
+
"teddy-card__availability--neutral": "_teddy-card__availability--neutral_2wvsb_335",
|
|
55
|
+
"teddy-card__availability--information": "_teddy-card__availability--information_2wvsb_338"
|
|
42
56
|
};
|
|
43
57
|
const rootClassName = "teddy-card";
|
|
44
58
|
const actionElementIdentifier = `${rootClassName}__action`;
|
|
@@ -4,8 +4,9 @@ import { Variant } from './utils';
|
|
|
4
4
|
|
|
5
5
|
export declare const rootClassName = "teddy-card";
|
|
6
6
|
export declare const actionElementIdentifier = "teddy-card__action";
|
|
7
|
-
export type Layout = 'navigation-vertical' | 'navigation-horizontal-small' | 'navigation-horizontal-large' | 'rich-card' | 'default';
|
|
7
|
+
export type Layout = 'navigation-vertical' | 'navigation-horizontal-small' | 'navigation-horizontal-large' | 'rich-card' | 'default' | 'product';
|
|
8
8
|
type Gradient = 'light' | 'dark' | 'default';
|
|
9
|
+
export type CardType = 'regular' | 'product';
|
|
9
10
|
export declare const RootContext: React.Context<{
|
|
10
11
|
buttonRef: React.RefObject<HTMLButtonElement>;
|
|
11
12
|
linkRef: React.RefObject<HTMLAnchorElement>;
|
|
@@ -5,38 +5,52 @@ import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
|
5
5
|
import { Grid } from "../grid/grid.js";
|
|
6
6
|
import { teddyColorTransparentWhite850, teddyColorTransparentWhite800, teddyColorTransparentWhite100, teddyColorTransparentBlack600, teddyColorTransparentBlack200 } from "../../tokens/color/variables.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-card": "_teddy-
|
|
9
|
-
"teddy-card__slot": "_teddy-
|
|
10
|
-
"teddy-card__slot--bottom": "_teddy-card__slot--
|
|
11
|
-
"teddy-card__slot--center": "_teddy-card__slot--
|
|
12
|
-
"teddy-card--shadow": "_teddy-card--
|
|
13
|
-
"teddy-card__action": "_teddy-
|
|
14
|
-
"teddy-card__action--disabled": "_teddy-card__action--
|
|
15
|
-
"teddy-card--border": "_teddy-card--
|
|
16
|
-
"teddy-card--layout": "_teddy-card--
|
|
17
|
-
"teddy-card__illustration": "_teddy-
|
|
18
|
-
"teddy-card__content": "_teddy-
|
|
19
|
-
"teddy-card__heading": "_teddy-
|
|
20
|
-
"teddy-
|
|
21
|
-
"teddy-
|
|
22
|
-
"teddy-
|
|
23
|
-
"teddy-
|
|
24
|
-
"teddy-
|
|
25
|
-
"teddy-
|
|
26
|
-
"teddy-
|
|
27
|
-
"teddy-card--
|
|
28
|
-
"teddy-card--
|
|
29
|
-
"teddy-card--
|
|
30
|
-
"teddy-card--
|
|
31
|
-
"teddy-card--
|
|
32
|
-
"teddy-
|
|
33
|
-
"teddy-card--
|
|
34
|
-
"teddy-
|
|
35
|
-
"teddy-
|
|
36
|
-
"teddy-
|
|
37
|
-
"teddy-
|
|
38
|
-
"teddy-
|
|
39
|
-
"teddy-
|
|
8
|
+
"teddy-card": "_teddy-card_2wvsb_3",
|
|
9
|
+
"teddy-card__slot": "_teddy-card__slot_2wvsb_13",
|
|
10
|
+
"teddy-card__slot--bottom": "_teddy-card__slot--bottom_2wvsb_16",
|
|
11
|
+
"teddy-card__slot--center": "_teddy-card__slot--center_2wvsb_19",
|
|
12
|
+
"teddy-card--shadow": "_teddy-card--shadow_2wvsb_41",
|
|
13
|
+
"teddy-card__action": "_teddy-card__action_2wvsb_45",
|
|
14
|
+
"teddy-card__action--disabled": "_teddy-card__action--disabled_2wvsb_45",
|
|
15
|
+
"teddy-card--border": "_teddy-card--border_2wvsb_52",
|
|
16
|
+
"teddy-card--layout": "_teddy-card--layout_2wvsb_55",
|
|
17
|
+
"teddy-card__illustration": "_teddy-card__illustration_2wvsb_55",
|
|
18
|
+
"teddy-card__content": "_teddy-card__content_2wvsb_58",
|
|
19
|
+
"teddy-card__heading": "_teddy-card__heading_2wvsb_61",
|
|
20
|
+
"teddy-card__action-wrapper": "_teddy-card__action-wrapper_2wvsb_64",
|
|
21
|
+
"teddy-card__footer": "_teddy-card__footer_2wvsb_67",
|
|
22
|
+
"teddy-card__overline": "_teddy-card__overline_2wvsb_70",
|
|
23
|
+
"teddy-card__description": "_teddy-card__description_2wvsb_73",
|
|
24
|
+
"teddy-card__color-dots": "_teddy-card__color-dots_2wvsb_76",
|
|
25
|
+
"teddy-card__availability": "_teddy-card__availability_2wvsb_79",
|
|
26
|
+
"teddy-card__price": "_teddy-card__price_2wvsb_82",
|
|
27
|
+
"teddy-card--default": "_teddy-card--default_2wvsb_85",
|
|
28
|
+
"teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_2wvsb_90",
|
|
29
|
+
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_2wvsb_109",
|
|
30
|
+
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_2wvsb_121",
|
|
31
|
+
"teddy-card--rich-card": "_teddy-card--rich-card_2wvsb_133",
|
|
32
|
+
"teddy-card__line": "_teddy-card__line_2wvsb_151",
|
|
33
|
+
"teddy-card--purple-light": "_teddy-card--purple-light_2wvsb_155",
|
|
34
|
+
"teddy-card--purple-dark": "_teddy-card--purple-dark_2wvsb_169",
|
|
35
|
+
"teddy-card--white": "_teddy-card--white_2wvsb_188",
|
|
36
|
+
"teddy-card--gray": "_teddy-card--gray_2wvsb_202",
|
|
37
|
+
"teddy-card--beige": "_teddy-card--beige_2wvsb_216",
|
|
38
|
+
"teddy-card--product": "_teddy-card--product_2wvsb_230",
|
|
39
|
+
"teddy-card__image--as-background": "_teddy-card__image--as-background_2wvsb_278",
|
|
40
|
+
"teddy-card--background-image": "_teddy-card--background-image_2wvsb_284",
|
|
41
|
+
"teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_2wvsb_289",
|
|
42
|
+
"teddy-card__inset": "_teddy-card__inset_2wvsb_293",
|
|
43
|
+
"teddy-card__inset--top": "_teddy-card__inset--top_2wvsb_296",
|
|
44
|
+
"teddy-card__inset--left": "_teddy-card__inset--left_2wvsb_299",
|
|
45
|
+
"teddy-card__inset--right": "_teddy-card__inset--right_2wvsb_302",
|
|
46
|
+
"teddy-card__inset--bottom": "_teddy-card__inset--bottom_2wvsb_305",
|
|
47
|
+
"teddy-card__availability--badge": "_teddy-card__availability--badge_2wvsb_320",
|
|
48
|
+
"teddy-card__availability--success": "_teddy-card__availability--success_2wvsb_323",
|
|
49
|
+
"teddy-card__availability--warning": "_teddy-card__availability--warning_2wvsb_326",
|
|
50
|
+
"teddy-card__availability--error": "_teddy-card__availability--error_2wvsb_329",
|
|
51
|
+
"teddy-card__availability--special": "_teddy-card__availability--special_2wvsb_332",
|
|
52
|
+
"teddy-card__availability--neutral": "_teddy-card__availability--neutral_2wvsb_335",
|
|
53
|
+
"teddy-card__availability--information": "_teddy-card__availability--information_2wvsb_338"
|
|
40
54
|
};
|
|
41
55
|
const rootClassName = "teddy-card";
|
|
42
56
|
const actionElementIdentifier = `${rootClassName}__action`;
|
|
@@ -9,6 +9,11 @@ const components_card_cardLine = require("./card-line.cjs");
|
|
|
9
9
|
const components_card_cardLink = require("./card-link.cjs");
|
|
10
10
|
const components_card_cardSlot = require("./card-slot.cjs");
|
|
11
11
|
const components_card_cardFooter = require("./card-footer.cjs");
|
|
12
|
+
const components_card_cardOverline = require("./card-overline.cjs");
|
|
13
|
+
const components_card_cardDescription = require("./card-description.cjs");
|
|
14
|
+
const components_card_cardAvailability = require("./card-availability.cjs");
|
|
15
|
+
const components_card_cardColorDots = require("./card-color-dots.cjs");
|
|
16
|
+
const components_card_cardPrice = require("./card-price.cjs");
|
|
12
17
|
components_card_card.Root.displayName = "Card";
|
|
13
18
|
components_card_cardButton.Button.displayName = "Card.Button";
|
|
14
19
|
components_card_cardContent.Content.displayName = "Card.Content";
|
|
@@ -18,6 +23,11 @@ components_card_cardLine.Line.displayName = "Card.Line";
|
|
|
18
23
|
components_card_cardLink.Link.displayName = "Card.Link";
|
|
19
24
|
components_card_cardSlot.Slot.displayName = "Card.Slot";
|
|
20
25
|
components_card_cardFooter.Footer.displayName = "Card.Footer";
|
|
26
|
+
components_card_cardOverline.Overline.displayName = "Card.Overline";
|
|
27
|
+
components_card_cardDescription.Description.displayName = "Card.Description";
|
|
28
|
+
components_card_cardAvailability.Availability.displayName = "Card.Availability";
|
|
29
|
+
components_card_cardColorDots.ColorDots.displayName = "Card.ColorDots";
|
|
30
|
+
components_card_cardPrice.Price.displayName = "Card.Price";
|
|
21
31
|
const Card = Object.assign(components_card_card.Root, {
|
|
22
32
|
Heading: components_card_cardHeading.Heading,
|
|
23
33
|
Button: components_card_cardButton.Button,
|
|
@@ -25,7 +35,12 @@ const Card = Object.assign(components_card_card.Root, {
|
|
|
25
35
|
Illustration: components_card_cardIllustration.Illustration,
|
|
26
36
|
Line: components_card_cardLine.Line,
|
|
27
37
|
Link: components_card_cardLink.Link,
|
|
38
|
+
Overline: components_card_cardOverline.Overline,
|
|
28
39
|
Slot: components_card_cardSlot.Slot,
|
|
29
|
-
Footer: components_card_cardFooter.Footer
|
|
40
|
+
Footer: components_card_cardFooter.Footer,
|
|
41
|
+
Description: components_card_cardDescription.Description,
|
|
42
|
+
Availability: components_card_cardAvailability.Availability,
|
|
43
|
+
ColorDots: components_card_cardColorDots.ColorDots,
|
|
44
|
+
Price: components_card_cardPrice.Price
|
|
30
45
|
});
|
|
31
46
|
exports.Card = Card;
|
|
@@ -7,10 +7,15 @@ import { LineProps } from './card-line';
|
|
|
7
7
|
import { LinkProps } from './card-link';
|
|
8
8
|
import { SlotProps } from './card-slot';
|
|
9
9
|
import { FooterProps } from './card-footer';
|
|
10
|
+
import { OverlineProps } from './card-overline';
|
|
11
|
+
import { DescriptionProps } from './card-description';
|
|
12
|
+
import { AvailabilityProps } from './card-availability';
|
|
13
|
+
import { ColorDotsProps } from './card-color-dots';
|
|
14
|
+
import { PriceProps } from './card-price';
|
|
10
15
|
|
|
11
16
|
export declare const Card: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
17
|
Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
13
|
-
Button: import('react').ForwardRefExoticComponent<
|
|
18
|
+
Button: import('react').ForwardRefExoticComponent<ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
14
19
|
Content: import('react').ForwardRefExoticComponent<ContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
15
20
|
Illustration: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
21
|
inset?: "all" | "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-right-left" | "bottom-left-right" | "top-bottom" | "left-right" | undefined;
|
|
@@ -24,8 +29,15 @@ export declare const Card: import('react').ForwardRefExoticComponent<RootProps &
|
|
|
24
29
|
silent?: boolean | undefined;
|
|
25
30
|
variant: "text" | "navigation" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
26
31
|
} & import('react').RefAttributes<HTMLAnchorElement>, "ref"> & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
32
|
+
Overline: import('react').ForwardRefExoticComponent<OverlineProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
27
33
|
Slot: import('react').ForwardRefExoticComponent<SlotProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
34
|
Footer: import('react').ForwardRefExoticComponent<FooterProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
35
|
+
Description: import('react').ForwardRefExoticComponent<DescriptionProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
36
|
+
Availability: import('react').ForwardRefExoticComponent<Partial<Omit<import('..').AlertBadgeProps & import('react').RefAttributes<HTMLSpanElement>, "ref">> & {
|
|
37
|
+
statusText: string;
|
|
38
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
|
+
ColorDots: import('react').ForwardRefExoticComponent<ColorDotsProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
|
+
Price: import('react').ForwardRefExoticComponent<PriceProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
41
|
};
|
|
30
42
|
export type CardProps = {
|
|
31
43
|
Root: RootProps;
|
|
@@ -37,4 +49,9 @@ export type CardProps = {
|
|
|
37
49
|
Link: LinkProps;
|
|
38
50
|
Slot: SlotProps;
|
|
39
51
|
Footer: FooterProps;
|
|
52
|
+
Overline: OverlineProps;
|
|
53
|
+
Description: DescriptionProps;
|
|
54
|
+
Availability: AvailabilityProps;
|
|
55
|
+
ColorDots: ColorDotsProps;
|
|
56
|
+
Price: PriceProps;
|
|
40
57
|
};
|
|
@@ -7,6 +7,11 @@ import { Line } from "./card-line.js";
|
|
|
7
7
|
import { Link } from "./card-link.js";
|
|
8
8
|
import { Slot } from "./card-slot.js";
|
|
9
9
|
import { Footer } from "./card-footer.js";
|
|
10
|
+
import { Overline } from "./card-overline.js";
|
|
11
|
+
import { Description } from "./card-description.js";
|
|
12
|
+
import { Availability } from "./card-availability.js";
|
|
13
|
+
import { ColorDots } from "./card-color-dots.js";
|
|
14
|
+
import { Price } from "./card-price.js";
|
|
10
15
|
Root.displayName = "Card";
|
|
11
16
|
Button.displayName = "Card.Button";
|
|
12
17
|
Content.displayName = "Card.Content";
|
|
@@ -16,6 +21,11 @@ Line.displayName = "Card.Line";
|
|
|
16
21
|
Link.displayName = "Card.Link";
|
|
17
22
|
Slot.displayName = "Card.Slot";
|
|
18
23
|
Footer.displayName = "Card.Footer";
|
|
24
|
+
Overline.displayName = "Card.Overline";
|
|
25
|
+
Description.displayName = "Card.Description";
|
|
26
|
+
Availability.displayName = "Card.Availability";
|
|
27
|
+
ColorDots.displayName = "Card.ColorDots";
|
|
28
|
+
Price.displayName = "Card.Price";
|
|
19
29
|
const Card = Object.assign(Root, {
|
|
20
30
|
Heading,
|
|
21
31
|
Button,
|
|
@@ -23,8 +33,13 @@ const Card = Object.assign(Root, {
|
|
|
23
33
|
Illustration,
|
|
24
34
|
Line,
|
|
25
35
|
Link,
|
|
36
|
+
Overline,
|
|
26
37
|
Slot,
|
|
27
|
-
Footer
|
|
38
|
+
Footer,
|
|
39
|
+
Description,
|
|
40
|
+
Availability,
|
|
41
|
+
ColorDots,
|
|
42
|
+
Price
|
|
28
43
|
});
|
|
29
44
|
export {
|
|
30
45
|
Card
|
|
@@ -31,6 +31,7 @@ declare const List: import('react').ForwardRefExoticComponent<Omit<Omit<import('
|
|
|
31
31
|
layout?: import('./list').Layout | undefined;
|
|
32
32
|
variant?: import('./list').Variant | undefined;
|
|
33
33
|
isSubcomponent?: boolean | undefined;
|
|
34
|
+
gapSize?: "small" | "large" | undefined;
|
|
34
35
|
} & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
35
36
|
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
36
37
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
@@ -6,22 +6,24 @@ const clsx = require("clsx");
|
|
|
6
6
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
7
7
|
const reactSlot = require("@radix-ui/react-slot");
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-list": "_teddy-
|
|
10
|
-
"teddy-
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-list__illustration
|
|
13
|
-
"teddy-list__illustration--icon
|
|
14
|
-
"teddy-list__illustration--icon-
|
|
15
|
-
"teddy-list__illustration--icon-
|
|
16
|
-
"teddy-
|
|
17
|
-
"teddy-
|
|
18
|
-
"teddy-list--
|
|
19
|
-
"teddy-
|
|
9
|
+
"teddy-list": "_teddy-list_1gmg2_2",
|
|
10
|
+
"teddy-list--gap-small": "_teddy-list--gap-small_1gmg2_7",
|
|
11
|
+
"teddy-list--gap-large": "_teddy-list--gap-large_1gmg2_10",
|
|
12
|
+
"teddy-list__illustration": "_teddy-list__illustration_1gmg2_13",
|
|
13
|
+
"teddy-list__illustration--icon": "_teddy-list__illustration--icon_1gmg2_17",
|
|
14
|
+
"teddy-list__illustration--icon-white": "_teddy-list__illustration--icon-white_1gmg2_23",
|
|
15
|
+
"teddy-list__illustration--icon-purple": "_teddy-list__illustration--icon-purple_1gmg2_26",
|
|
16
|
+
"teddy-list__illustration--icon-gray": "_teddy-list__illustration--icon-gray_1gmg2_30",
|
|
17
|
+
"teddy-list__illustration--icon-beige": "_teddy-list__illustration--icon-beige_1gmg2_33",
|
|
18
|
+
"teddy-list--vertical": "_teddy-list--vertical_1gmg2_36",
|
|
19
|
+
"teddy-list__item": "_teddy-list__item_1gmg2_39",
|
|
20
|
+
"teddy-list--subcomponent": "_teddy-list--subcomponent_1gmg2_43",
|
|
21
|
+
"teddy-list--horizontal": "_teddy-list--horizontal_1gmg2_46"
|
|
20
22
|
};
|
|
21
23
|
const rootClassName = "teddy-list";
|
|
22
24
|
const RootContext = React.createContext(void 0);
|
|
23
25
|
const Root = React.forwardRef(
|
|
24
|
-
({ isSubcomponent, ...props }, forwardRef) => {
|
|
26
|
+
({ isSubcomponent, gapSize = "large", ...props }, forwardRef) => {
|
|
25
27
|
const { className, asChild, children, variant, layout = "vertical" } = props;
|
|
26
28
|
const Comp = asChild ? reactSlot.Slot : "ul";
|
|
27
29
|
const classes = clsx(
|
|
@@ -29,20 +31,12 @@ const Root = React.forwardRef(
|
|
|
29
31
|
{
|
|
30
32
|
[styles[`${rootClassName}--${layout}`]]: layout,
|
|
31
33
|
[styles[`${rootClassName}--${variant}`]]: variant,
|
|
34
|
+
[styles[`${rootClassName}--gap-${gapSize}`]]: gapSize,
|
|
32
35
|
[styles[`${rootClassName}--subcomponent`]]: isSubcomponent
|
|
33
36
|
},
|
|
34
37
|
className
|
|
35
38
|
);
|
|
36
|
-
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
|
-
components_flex_flex.Flex,
|
|
38
|
-
{
|
|
39
|
-
...props,
|
|
40
|
-
ref: forwardRef,
|
|
41
|
-
className: classes,
|
|
42
|
-
asChild: true,
|
|
43
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children })
|
|
44
|
-
}
|
|
45
|
-
) });
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { ...props, ref: forwardRef, className: classes, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children }) }) });
|
|
46
40
|
}
|
|
47
41
|
);
|
|
48
42
|
Root.displayName = "List";
|
|
@@ -9,6 +9,7 @@ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Flex>, 'as'>
|
|
|
9
9
|
layout?: Layout;
|
|
10
10
|
variant?: Variant;
|
|
11
11
|
isSubcomponent?: boolean;
|
|
12
|
+
gapSize?: 'small' | 'large';
|
|
12
13
|
} & ChildrenLayoutProps;
|
|
13
14
|
type RootContextType = {
|
|
14
15
|
variant?: Variant;
|
|
@@ -42,6 +43,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<import('../
|
|
|
42
43
|
layout?: Layout | undefined;
|
|
43
44
|
variant?: Variant | undefined;
|
|
44
45
|
isSubcomponent?: boolean | undefined;
|
|
46
|
+
gapSize?: "small" | "large" | undefined;
|
|
45
47
|
} & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
46
48
|
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
47
49
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,22 +4,24 @@ import clsx from "clsx";
|
|
|
4
4
|
import { Flex } from "../flex/flex.js";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
6
|
const styles = {
|
|
7
|
-
"teddy-list": "_teddy-
|
|
8
|
-
"teddy-
|
|
9
|
-
"teddy-
|
|
10
|
-
"teddy-list__illustration
|
|
11
|
-
"teddy-list__illustration--icon
|
|
12
|
-
"teddy-list__illustration--icon-
|
|
13
|
-
"teddy-list__illustration--icon-
|
|
14
|
-
"teddy-
|
|
15
|
-
"teddy-
|
|
16
|
-
"teddy-list--
|
|
17
|
-
"teddy-
|
|
7
|
+
"teddy-list": "_teddy-list_1gmg2_2",
|
|
8
|
+
"teddy-list--gap-small": "_teddy-list--gap-small_1gmg2_7",
|
|
9
|
+
"teddy-list--gap-large": "_teddy-list--gap-large_1gmg2_10",
|
|
10
|
+
"teddy-list__illustration": "_teddy-list__illustration_1gmg2_13",
|
|
11
|
+
"teddy-list__illustration--icon": "_teddy-list__illustration--icon_1gmg2_17",
|
|
12
|
+
"teddy-list__illustration--icon-white": "_teddy-list__illustration--icon-white_1gmg2_23",
|
|
13
|
+
"teddy-list__illustration--icon-purple": "_teddy-list__illustration--icon-purple_1gmg2_26",
|
|
14
|
+
"teddy-list__illustration--icon-gray": "_teddy-list__illustration--icon-gray_1gmg2_30",
|
|
15
|
+
"teddy-list__illustration--icon-beige": "_teddy-list__illustration--icon-beige_1gmg2_33",
|
|
16
|
+
"teddy-list--vertical": "_teddy-list--vertical_1gmg2_36",
|
|
17
|
+
"teddy-list__item": "_teddy-list__item_1gmg2_39",
|
|
18
|
+
"teddy-list--subcomponent": "_teddy-list--subcomponent_1gmg2_43",
|
|
19
|
+
"teddy-list--horizontal": "_teddy-list--horizontal_1gmg2_46"
|
|
18
20
|
};
|
|
19
21
|
const rootClassName = "teddy-list";
|
|
20
22
|
const RootContext = React__default.createContext(void 0);
|
|
21
23
|
const Root = React__default.forwardRef(
|
|
22
|
-
({ isSubcomponent, ...props }, forwardRef) => {
|
|
24
|
+
({ isSubcomponent, gapSize = "large", ...props }, forwardRef) => {
|
|
23
25
|
const { className, asChild, children, variant, layout = "vertical" } = props;
|
|
24
26
|
const Comp = asChild ? Slot : "ul";
|
|
25
27
|
const classes = clsx(
|
|
@@ -27,20 +29,12 @@ const Root = React__default.forwardRef(
|
|
|
27
29
|
{
|
|
28
30
|
[styles[`${rootClassName}--${layout}`]]: layout,
|
|
29
31
|
[styles[`${rootClassName}--${variant}`]]: variant,
|
|
32
|
+
[styles[`${rootClassName}--gap-${gapSize}`]]: gapSize,
|
|
30
33
|
[styles[`${rootClassName}--subcomponent`]]: isSubcomponent
|
|
31
34
|
},
|
|
32
35
|
className
|
|
33
36
|
);
|
|
34
|
-
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(
|
|
35
|
-
Flex,
|
|
36
|
-
{
|
|
37
|
-
...props,
|
|
38
|
-
ref: forwardRef,
|
|
39
|
-
className: classes,
|
|
40
|
-
asChild: true,
|
|
41
|
-
children: /* @__PURE__ */ jsx(Comp, { children })
|
|
42
|
-
}
|
|
43
|
-
) });
|
|
37
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(Flex, { ...props, ref: forwardRef, className: classes, asChild: true, children: /* @__PURE__ */ jsx(Comp, { children }) }) });
|
|
44
38
|
}
|
|
45
39
|
);
|
|
46
40
|
Root.displayName = "List";
|
|
@@ -80,7 +80,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
80
80
|
imageGradient?: ("default" | "dark" | "light") | undefined;
|
|
81
81
|
layout?: import('../card/card').Layout | undefined;
|
|
82
82
|
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "variant"> & {
|
|
83
|
-
variant?: "error" | "warning" | "
|
|
83
|
+
variant?: "error" | "warning" | "information" | "success" | undefined;
|
|
84
84
|
open?: boolean | undefined;
|
|
85
85
|
defaultOpen?: boolean | undefined;
|
|
86
86
|
onOpenChange?: ((open: boolean) => void) | undefined;
|