@telia/teddy 0.0.25 → 0.0.27

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 (131) hide show
  1. package/dist/assets/{sprite.5636ec8e-teddy.svg → sprite.269ba410-teddy.svg} +3 -0
  2. package/dist/components/accordion/accordion-indicator.cjs +14 -3
  3. package/dist/components/accordion/accordion-indicator.js +15 -4
  4. package/dist/components/accordion/accordion-item.cjs +6 -1
  5. package/dist/components/accordion/accordion-item.d.ts +3 -0
  6. package/dist/components/accordion/accordion-item.js +8 -3
  7. package/dist/components/accordion/accordion-root.cjs +40 -13
  8. package/dist/components/accordion/accordion-root.d.ts +9 -5
  9. package/dist/components/accordion/accordion-root.js +40 -13
  10. package/dist/components/badge/alert-badge.cjs +19 -0
  11. package/dist/components/badge/alert-badge.d.ts +10 -0
  12. package/dist/components/badge/alert-badge.js +19 -0
  13. package/dist/components/badge/badge.cjs +13 -9
  14. package/dist/components/badge/badge.d.ts +2 -1
  15. package/dist/components/badge/badge.js +14 -10
  16. package/dist/components/badge/counter-badge.cjs +19 -0
  17. package/dist/components/badge/counter-badge.d.ts +10 -0
  18. package/dist/components/badge/counter-badge.js +19 -0
  19. package/dist/components/badge/index.cjs +4 -0
  20. package/dist/components/badge/index.d.ts +4 -0
  21. package/dist/components/badge/index.js +5 -1
  22. package/dist/components/button/button.cjs +27 -25
  23. package/dist/components/button/button.d.ts +2 -2
  24. package/dist/components/button/button.js +27 -25
  25. package/dist/components/card/card.d.ts +7 -3
  26. package/dist/components/chip/chip-indicator.cjs +1 -1
  27. package/dist/components/chip/chip-indicator.d.ts +2 -2
  28. package/dist/components/chip/chip-indicator.js +1 -1
  29. package/dist/components/chip/index.d.ts +2 -2
  30. package/dist/components/drawer/drawer-close.cjs +2 -2
  31. package/dist/components/drawer/drawer-close.d.ts +0 -3
  32. package/dist/components/drawer/drawer-close.js +2 -2
  33. package/dist/components/drawer/drawer-content.cjs +3 -2
  34. package/dist/components/drawer/drawer-content.d.ts +3 -12
  35. package/dist/components/drawer/drawer-content.js +3 -2
  36. package/dist/components/drawer/drawer-description.cjs +1 -1
  37. package/dist/components/drawer/drawer-description.d.ts +0 -3
  38. package/dist/components/drawer/drawer-description.js +1 -1
  39. package/dist/components/drawer/drawer-footer.cjs +1 -1
  40. package/dist/components/drawer/drawer-footer.d.ts +0 -3
  41. package/dist/components/drawer/drawer-footer.js +1 -1
  42. package/dist/components/drawer/drawer-overlay.cjs +1 -1
  43. package/dist/components/drawer/drawer-overlay.d.ts +0 -3
  44. package/dist/components/drawer/drawer-overlay.js +1 -1
  45. package/dist/components/drawer/drawer-root.d.ts +1 -1
  46. package/dist/components/drawer/drawer-title.cjs +1 -1
  47. package/dist/components/drawer/drawer-title.d.ts +4 -3
  48. package/dist/components/drawer/drawer-title.js +1 -1
  49. package/dist/components/drawer/drawer-trigger.d.ts +5 -3
  50. package/dist/components/drawer/index.cjs +8 -0
  51. package/dist/components/drawer/index.d.ts +28 -0
  52. package/dist/components/drawer/index.js +8 -0
  53. package/dist/components/field-error-text/field-error-text.cjs +1 -1
  54. package/dist/components/field-error-text/field-error-text.js +1 -1
  55. package/dist/components/flex/flex.cjs +1 -1
  56. package/dist/components/flex/flex.js +1 -1
  57. package/dist/components/icon/icon.cjs +3 -3
  58. package/dist/components/icon/icon.js +3 -3
  59. package/dist/components/icon/index.cjs +1 -1
  60. package/dist/components/icon/index.js +1 -1
  61. package/dist/components/index.cjs +7 -1
  62. package/dist/components/index.d.ts +1 -0
  63. package/dist/components/index.js +7 -1
  64. package/dist/components/input/input-clear-button.cjs +1 -1
  65. package/dist/components/input/input-clear-button.js +1 -1
  66. package/dist/components/input/input-group.cjs +11 -11
  67. package/dist/components/input/input-group.js +11 -11
  68. package/dist/components/input/input-indicator.cjs +1 -1
  69. package/dist/components/input/input-indicator.js +1 -1
  70. package/dist/components/list/index.cjs +16 -0
  71. package/dist/components/list/index.d.ts +47 -0
  72. package/dist/components/list/index.js +16 -0
  73. package/dist/components/list/list-content.cjs +14 -0
  74. package/dist/components/list/list-content.d.ts +4 -0
  75. package/dist/components/list/list-content.js +14 -0
  76. package/dist/components/list/list-illustration.cjs +23 -0
  77. package/dist/components/list/list-illustration.d.ts +9 -0
  78. package/dist/components/list/list-illustration.js +23 -0
  79. package/dist/components/list/list-item.cjs +12 -0
  80. package/dist/components/list/list-item.d.ts +4 -0
  81. package/dist/components/list/list-item.js +12 -0
  82. package/dist/components/list/list.cjs +52 -0
  83. package/dist/components/list/list.d.ts +43 -0
  84. package/dist/components/list/list.js +52 -0
  85. package/dist/components/modal/modal.cjs +19 -15
  86. package/dist/components/modal/modal.js +19 -15
  87. package/dist/components/navigation-menu/navigation-menu.cjs +24 -22
  88. package/dist/components/navigation-menu/navigation-menu.d.ts +3 -1
  89. package/dist/components/navigation-menu/navigation-menu.js +24 -22
  90. package/dist/components/notification/notification.cjs +1 -1
  91. package/dist/components/notification/notification.d.ts +11 -5
  92. package/dist/components/notification/notification.js +1 -1
  93. package/dist/components/scroll-area/index.d.ts +6 -2
  94. package/dist/components/scroll-area/scroll-area-bar.cjs +19 -13
  95. package/dist/components/scroll-area/scroll-area-bar.js +19 -13
  96. package/dist/components/scroll-area/scroll-area-button.cjs +1 -1
  97. package/dist/components/scroll-area/scroll-area-button.d.ts +6 -2
  98. package/dist/components/scroll-area/scroll-area-button.js +1 -1
  99. package/dist/components/tabs/index.cjs +6 -0
  100. package/dist/components/tabs/index.d.ts +7 -3
  101. package/dist/components/tabs/index.js +6 -0
  102. package/dist/components/tabs/tabs-root.cjs +5 -4
  103. package/dist/components/tabs/tabs-root.d.ts +1 -1
  104. package/dist/components/tabs/tabs-root.js +5 -4
  105. package/dist/components/tabs/tabs-scroll-button.d.ts +6 -2
  106. package/dist/components/tabs/tabs-trigger.cjs +2 -1
  107. package/dist/components/tabs/tabs-trigger.js +2 -1
  108. package/dist/components/text-field/index.d.ts +6 -2
  109. package/dist/components/text-field/text-field-button.d.ts +6 -2
  110. package/dist/components/toggle/toggle.cjs +5 -5
  111. package/dist/components/toggle/toggle.d.ts +2 -2
  112. package/dist/components/toggle/toggle.js +5 -5
  113. package/dist/drawer.module-BZV0Appw.js +14 -0
  114. package/dist/drawer.module-rgUBNOkt.cjs +13 -0
  115. package/dist/icons/category.cjs +1 -0
  116. package/dist/icons/category.d.ts +3 -0
  117. package/dist/icons/category.js +1 -0
  118. package/dist/icons/name.cjs +1 -0
  119. package/dist/icons/name.d.ts +1 -1
  120. package/dist/icons/name.js +1 -0
  121. package/dist/main.cjs +7 -1
  122. package/dist/main.js +7 -1
  123. package/dist/style.css +568 -397
  124. package/dist/utils/generate-styling/grid.d.ts +24 -24
  125. package/dist/utils/generate-styling/index.cjs +12 -2
  126. package/dist/utils/generate-styling/index.d.ts +86 -19
  127. package/dist/utils/generate-styling/index.js +12 -2
  128. package/dist/utils/generate-styling/util.d.ts +2 -2
  129. package/package.json +1 -1
  130. package/dist/drawer.module-B3QhrxH1.js +0 -14
  131. package/dist/drawer.module-w9nGK9pO.cjs +0 -13
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
- const iconsHref = require("../../assets/sprite.5636ec8e-teddy.svg");
4
+ const iconsHref = require("../../assets/sprite.269ba410-teddy.svg");
5
5
  const clsx = require("clsx");
6
6
  const styles = {
7
7
  "teddy-icon": "_teddy-icon_1rwgf_2",
@@ -17,13 +17,13 @@ const styles = {
17
17
  const rootClassName = "teddy-icon";
18
18
  const rootClassNameWithChildren = `${rootClassName}-with-children`;
19
19
  function Icon({ name, size = "font", className, children, ...props }) {
20
+ const classes = clsx([styles[rootClassName], styles[`${rootClassName}--${size}`]], className);
20
21
  if (children) {
21
22
  return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: clsx([styles[rootClassNameWithChildren]]), children: [
22
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { name, size, className, ...props }),
23
+ /* @__PURE__ */ jsxRuntime.jsx(Icon, { name, size, className: classes, ...props }),
23
24
  children
24
25
  ] });
25
26
  }
26
- const classes = clsx([styles[rootClassName], styles[`${rootClassName}--${size}`]], className);
27
27
  return /* @__PURE__ */ jsxRuntime.jsx("svg", { ...props, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx("use", { href: `${iconsHref}#${name}` }) });
28
28
  }
29
29
  exports.Icon = Icon;
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
- import iconsHref from "../../assets/sprite.5636ec8e-teddy.svg";
2
+ import iconsHref from "../../assets/sprite.269ba410-teddy.svg";
3
3
  import clsx from "clsx";
4
4
  const styles = {
5
5
  "teddy-icon": "_teddy-icon_1rwgf_2",
@@ -15,13 +15,13 @@ const styles = {
15
15
  const rootClassName = "teddy-icon";
16
16
  const rootClassNameWithChildren = `${rootClassName}-with-children`;
17
17
  function Icon({ name, size = "font", className, children, ...props }) {
18
+ const classes = clsx([styles[rootClassName], styles[`${rootClassName}--${size}`]], className);
18
19
  if (children) {
19
20
  return /* @__PURE__ */ jsxs("span", { className: clsx([styles[rootClassNameWithChildren]]), children: [
20
- /* @__PURE__ */ jsx(Icon, { name, size, className, ...props }),
21
+ /* @__PURE__ */ jsx(Icon, { name, size, className: classes, ...props }),
21
22
  children
22
23
  ] });
23
24
  }
24
- const classes = clsx([styles[rootClassName], styles[`${rootClassName}--${size}`]], className);
25
25
  return /* @__PURE__ */ jsx("svg", { ...props, className: classes, children: /* @__PURE__ */ jsx("use", { href: `${iconsHref}#${name}` }) });
26
26
  }
27
27
  export {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const iconsHref = require("../../assets/sprite.5636ec8e-teddy.svg");
3
+ const iconsHref = require("../../assets/sprite.269ba410-teddy.svg");
4
4
  const components_icon_icon = require("./icon.cjs");
5
5
  const components_icon_AllIcons = require("./AllIcons.cjs");
6
6
  exports.iconsHref = iconsHref;
@@ -1,4 +1,4 @@
1
- import { default as default2 } from "../../assets/sprite.5636ec8e-teddy.svg";
1
+ import { default as default2 } from "../../assets/sprite.269ba410-teddy.svg";
2
2
  import { Icon } from "./icon.js";
3
3
  import { default as default3 } from "./AllIcons.js";
4
4
  export {
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const components_list_index = require("./list/index.cjs");
3
4
  const components_scrollArea_index = require("./scroll-area/index.cjs");
4
5
  const components_tabs_index = require("./tabs/index.cjs");
5
6
  const components_drawer_index = require("./drawer/index.cjs");
@@ -17,10 +18,12 @@ const components_toggle_toggle = require("./toggle/toggle.cjs");
17
18
  const components_accordion_index = require("./accordion/index.cjs");
18
19
  const components_link_link = require("./link/link.cjs");
19
20
  const components_badge_badge = require("./badge/badge.cjs");
21
+ const components_badge_alertBadge = require("./badge/alert-badge.cjs");
22
+ const components_badge_counterBadge = require("./badge/counter-badge.cjs");
20
23
  const components_button_button = require("./button/button.cjs");
21
24
  const components_fieldErrorText_fieldErrorText = require("./field-error-text/field-error-text.cjs");
22
25
  const components_helperText_helperText = require("./helper-text/helper-text.cjs");
23
- const iconsHref = require("../assets/sprite.5636ec8e-teddy.svg");
26
+ const iconsHref = require("../assets/sprite.269ba410-teddy.svg");
24
27
  const components_icon_icon = require("./icon/icon.cjs");
25
28
  const components_icon_AllIcons = require("./icon/AllIcons.cjs");
26
29
  const components_input_index = require("./input/index.cjs");
@@ -32,6 +35,7 @@ const components_heading_heading = require("./heading/heading.cjs");
32
35
  const components_visuallyHidden_visuallyHidden = require("./visually-hidden/visually-hidden.cjs");
33
36
  const components_textSpacing_textSpacing = require("./text-spacing/text-spacing.cjs");
34
37
  const components_input_inputGroup = require("./input/input-group.cjs");
38
+ exports.List = components_list_index.List;
35
39
  exports.ScrollArea = components_scrollArea_index.ScrollArea;
36
40
  exports.Tabs = components_tabs_index.Tabs;
37
41
  exports.Drawer = components_drawer_index.Drawer;
@@ -49,6 +53,8 @@ exports.Toggle = components_toggle_toggle.Toggle;
49
53
  exports.Accordion = components_accordion_index.Accordion;
50
54
  exports.Link = components_link_link.Link;
51
55
  exports.Badge = components_badge_badge.Badge;
56
+ exports.AlertBadge = components_badge_alertBadge.AlertBadge;
57
+ exports.CounterBadge = components_badge_counterBadge.CounterBadge;
52
58
  exports.Button = components_button_button.Button;
53
59
  exports.FieldErrorText = components_fieldErrorText_fieldErrorText.FieldErrorText;
54
60
  exports.HelperText = components_helperText_helperText.HelperText;
@@ -1,3 +1,4 @@
1
+ export * from './list';
1
2
  export * from './scroll-area';
2
3
  export * from './tabs';
3
4
  export * from './drawer';
@@ -1,3 +1,4 @@
1
+ import { List } from "./list/index.js";
1
2
  import { ScrollArea } from "./scroll-area/index.js";
2
3
  import { Tabs } from "./tabs/index.js";
3
4
  import { Drawer } from "./drawer/index.js";
@@ -15,10 +16,12 @@ import { Toggle } from "./toggle/toggle.js";
15
16
  import { Accordion } from "./accordion/index.js";
16
17
  import { Link } from "./link/link.js";
17
18
  import { Badge } from "./badge/badge.js";
19
+ import { AlertBadge } from "./badge/alert-badge.js";
20
+ import { CounterBadge } from "./badge/counter-badge.js";
18
21
  import { Button } from "./button/button.js";
19
22
  import { FieldErrorText } from "./field-error-text/field-error-text.js";
20
23
  import { HelperText } from "./helper-text/helper-text.js";
21
- import { default as default2 } from "../assets/sprite.5636ec8e-teddy.svg";
24
+ import { default as default2 } from "../assets/sprite.269ba410-teddy.svg";
22
25
  import { Icon } from "./icon/icon.js";
23
26
  import { default as default3 } from "./icon/AllIcons.js";
24
27
  import { InputGroup } from "./input/index.js";
@@ -32,12 +35,14 @@ import { TextSpacing } from "./text-spacing/text-spacing.js";
32
35
  import { I } from "./input/input-group.js";
33
36
  export {
34
37
  Accordion,
38
+ AlertBadge,
35
39
  default3 as AllIcons,
36
40
  Badge,
37
41
  Box,
38
42
  Button,
39
43
  Card,
40
44
  Chip,
45
+ CounterBadge,
41
46
  Drawer,
42
47
  FieldErrorText,
43
48
  Flex,
@@ -50,6 +55,7 @@ export {
50
55
  InputGroup,
51
56
  Label,
52
57
  Link,
58
+ List,
53
59
  Modal,
54
60
  NavigationMenu,
55
61
  Notification,
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- require("../../assets/sprite.5636ec8e-teddy.svg");
5
+ require("../../assets/sprite.269ba410-teddy.svg");
6
6
  const components_icon_icon = require("../icon/icon.cjs");
7
7
  const components_button_button = require("../button/button.cjs");
8
8
  const clsx = require("clsx");
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
- import "../../assets/sprite.5636ec8e-teddy.svg";
3
+ import "../../assets/sprite.269ba410-teddy.svg";
4
4
  import { Icon } from "../icon/icon.js";
5
5
  import { Button } from "../button/button.js";
6
6
  import clsx from "clsx";
@@ -3,21 +3,21 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const clsx = require("clsx");
5
5
  const React = require("react");
6
- require("../../assets/sprite.5636ec8e-teddy.svg");
6
+ require("../../assets/sprite.269ba410-teddy.svg");
7
7
  const components_icon_icon = require("../icon/icon.cjs");
8
8
  const components_spinner_spinner = require("../spinner/spinner.cjs");
9
9
  const utils_composeRefs = require("../../utils/composeRefs.cjs");
10
- const fadeInAnimation = "_fadeInAnimation_5urff_1";
11
- const scaleInAnimation = "_scaleInAnimation_5urff_1";
10
+ const fadeInAnimation = "_fadeInAnimation_mhz8x_1";
11
+ const scaleInAnimation = "_scaleInAnimation_mhz8x_1";
12
12
  const styles = {
13
- "teddy-input": "_teddy-input_5urff_18",
14
- "teddy-input__frame": "_teddy-input__frame_5urff_27",
15
- "teddy-input__clear-button": "_teddy-input__clear-button_5urff_35",
16
- "teddy-input__input": "_teddy-input__input_5urff_38",
17
- "teddy-input__input--valid": "_teddy-input__input--valid_5urff_79",
18
- "teddy-input__input--invalid": "_teddy-input__input--invalid_5urff_79",
19
- "teddy-input__indicator": "_teddy-input__indicator_5urff_85",
20
- "teddy-input__input--error": "_teddy-input__input--error_5urff_88",
13
+ "teddy-input__input": "_teddy-input__input_mhz8x_17",
14
+ "teddy-input": "_teddy-input_mhz8x_17",
15
+ "teddy-input__frame": "_teddy-input__frame_mhz8x_31",
16
+ "teddy-input__clear-button": "_teddy-input__clear-button_mhz8x_39",
17
+ "teddy-input__input--valid": "_teddy-input__input--valid_mhz8x_82",
18
+ "teddy-input__input--invalid": "_teddy-input__input--invalid_mhz8x_82",
19
+ "teddy-input__indicator": "_teddy-input__indicator_mhz8x_88",
20
+ "teddy-input__input--error": "_teddy-input__input--error_mhz8x_91",
21
21
  fadeInAnimation,
22
22
  scaleInAnimation
23
23
  };
@@ -1,21 +1,21 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import React__default, { useEffect } from "react";
4
- import "../../assets/sprite.5636ec8e-teddy.svg";
4
+ import "../../assets/sprite.269ba410-teddy.svg";
5
5
  import { Icon } from "../icon/icon.js";
6
6
  import { Spinner } from "../spinner/spinner.js";
7
7
  import { useComposedRefs } from "../../utils/composeRefs.js";
8
- const fadeInAnimation = "_fadeInAnimation_5urff_1";
9
- const scaleInAnimation = "_scaleInAnimation_5urff_1";
8
+ const fadeInAnimation = "_fadeInAnimation_mhz8x_1";
9
+ const scaleInAnimation = "_scaleInAnimation_mhz8x_1";
10
10
  const styles = {
11
- "teddy-input": "_teddy-input_5urff_18",
12
- "teddy-input__frame": "_teddy-input__frame_5urff_27",
13
- "teddy-input__clear-button": "_teddy-input__clear-button_5urff_35",
14
- "teddy-input__input": "_teddy-input__input_5urff_38",
15
- "teddy-input__input--valid": "_teddy-input__input--valid_5urff_79",
16
- "teddy-input__input--invalid": "_teddy-input__input--invalid_5urff_79",
17
- "teddy-input__indicator": "_teddy-input__indicator_5urff_85",
18
- "teddy-input__input--error": "_teddy-input__input--error_5urff_88",
11
+ "teddy-input__input": "_teddy-input__input_mhz8x_17",
12
+ "teddy-input": "_teddy-input_mhz8x_17",
13
+ "teddy-input__frame": "_teddy-input__frame_mhz8x_31",
14
+ "teddy-input__clear-button": "_teddy-input__clear-button_mhz8x_39",
15
+ "teddy-input__input--valid": "_teddy-input__input--valid_mhz8x_82",
16
+ "teddy-input__input--invalid": "_teddy-input__input--invalid_mhz8x_82",
17
+ "teddy-input__indicator": "_teddy-input__indicator_mhz8x_88",
18
+ "teddy-input__input--error": "_teddy-input__input--error_mhz8x_91",
19
19
  fadeInAnimation,
20
20
  scaleInAnimation
21
21
  };
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  require("react/jsx-runtime");
4
4
  require("clsx");
5
5
  require("react");
6
- require("../../assets/sprite.5636ec8e-teddy.svg");
6
+ require("../../assets/sprite.269ba410-teddy.svg");
7
7
  require("../icon/icon.cjs");
8
8
  require("../spinner/spinner.cjs");
9
9
  const components_input_inputGroup = require("./input-group.cjs");
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "clsx";
3
3
  import "react";
4
- import "../../assets/sprite.5636ec8e-teddy.svg";
4
+ import "../../assets/sprite.269ba410-teddy.svg";
5
5
  import "../icon/icon.js";
6
6
  import "../spinner/spinner.js";
7
7
  import { a } from "./input-group.js";
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const components_list_list = require("./list.cjs");
4
+ const components_list_listItem = require("./list-item.cjs");
5
+ const components_list_listIllustration = require("./list-illustration.cjs");
6
+ const components_list_listContent = require("./list-content.cjs");
7
+ components_list_list.Root.displayName = "List";
8
+ components_list_listItem.Item.displayName = "List.Item";
9
+ components_list_listIllustration.Illustration.displayName = "List.Illustration";
10
+ components_list_listContent.Content.displayName = "List.Content";
11
+ const List = Object.assign(components_list_list.Root, {
12
+ Item: components_list_listItem.Item,
13
+ Illustration: components_list_listIllustration.Illustration,
14
+ Content: components_list_listContent.Content
15
+ });
16
+ exports.List = List;
@@ -0,0 +1,47 @@
1
+ import { RootProps } from './list';
2
+ import { ItemProps } from './list-item';
3
+ import { IllustrationProps } from './list-illustration';
4
+ import { ContentProps } from './list-content';
5
+
6
+ declare const List: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
7
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
8
+ } & import('../../utils/generate-styling/gap').GapProps & {
9
+ align?: import('../../utils/generate-styling/align').Align | undefined;
10
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
11
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
12
+ asChild: true;
13
+ as?: undefined;
14
+ } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
15
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
16
+ } & import('../../utils/generate-styling/gap').GapProps & {
17
+ align?: import('../../utils/generate-styling/align').Align | undefined;
18
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
19
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
20
+ as?: "span" | undefined;
21
+ asChild?: false | undefined;
22
+ } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
23
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
24
+ } & import('../../utils/generate-styling/gap').GapProps & {
25
+ align?: import('../../utils/generate-styling/align').Align | undefined;
26
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
27
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
28
+ as: "div";
29
+ asChild?: false | undefined;
30
+ } & import('react').RefAttributes<HTMLDivElement>, "ref">, "as"> & {
31
+ layout?: import('./list').Layout | undefined;
32
+ variant?: import('./list').Variant | undefined;
33
+ } & import('react').RefAttributes<HTMLDivElement>> & {
34
+ Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
35
+ Illustration: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
36
+ variant?: import('./list').Variant | undefined;
37
+ } & import('react').RefAttributes<HTMLSpanElement>>;
38
+ Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
39
+ };
40
+ type ListProps = {
41
+ List: RootProps;
42
+ Item: ItemProps;
43
+ Illustration: IllustrationProps;
44
+ Content: ContentProps;
45
+ };
46
+ export { List };
47
+ export type { ListProps };
@@ -0,0 +1,16 @@
1
+ import { Root } from "./list.js";
2
+ import { Item } from "./list-item.js";
3
+ import { Illustration } from "./list-illustration.js";
4
+ import { Content } from "./list-content.js";
5
+ Root.displayName = "List";
6
+ Item.displayName = "List.Item";
7
+ Illustration.displayName = "List.Illustration";
8
+ Content.displayName = "List.Content";
9
+ const List = Object.assign(Root, {
10
+ Item,
11
+ Illustration,
12
+ Content
13
+ });
14
+ export {
15
+ List
16
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_list_list = require("./list.cjs");
7
+ const Content = React.forwardRef(
8
+ ({ className, children, ...props }, forwardRef) => {
9
+ const classes = clsx([components_list_list.styles[`${components_list_list.rootClassName}__content`]], className);
10
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, className: classes, ref: forwardRef, children });
11
+ }
12
+ );
13
+ Content.displayName = "Content";
14
+ exports.Content = Content;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ContentProps = React.ComponentPropsWithoutRef<'div'>;
4
+ export declare const Content: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React__default from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./list.js";
5
+ const Content = React__default.forwardRef(
6
+ ({ className, children, ...props }, forwardRef) => {
7
+ const classes = clsx([styles[`${rootClassName}__content`]], className);
8
+ return /* @__PURE__ */ jsx("div", { ...props, className: classes, ref: forwardRef, children });
9
+ }
10
+ );
11
+ Content.displayName = "Content";
12
+ export {
13
+ Content
14
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_list_list = require("./list.cjs");
7
+ const Illustration = React.forwardRef(
8
+ ({ className, variant: propVariant, children, ...props }, forwardRef) => {
9
+ const context = React.useContext(components_list_list.RootContext);
10
+ const variant = propVariant || (context == null ? void 0 : context.variant);
11
+ const classes = clsx(
12
+ [components_list_list.styles[`${components_list_list.rootClassName}__illustration`]],
13
+ {
14
+ [components_list_list.styles[`${components_list_list.rootClassName}__illustration--${variant}`]]: variant,
15
+ [components_list_list.styles[`${components_list_list.rootClassName}__illustration--icon`]]: variant == null ? void 0 : variant.includes("icon")
16
+ },
17
+ className
18
+ );
19
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { ...props, className: classes, ref: forwardRef, children });
20
+ }
21
+ );
22
+ Illustration.displayName = "Illustration";
23
+ exports.Illustration = Illustration;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Variant } from './list';
3
+
4
+ export type IllustrationProps = React.ComponentPropsWithoutRef<'span'> & {
5
+ variant?: Variant;
6
+ };
7
+ export declare const Illustration: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
8
+ variant?: Variant | undefined;
9
+ } & React.RefAttributes<HTMLSpanElement>>;
@@ -0,0 +1,23 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React__default from "react";
3
+ import clsx from "clsx";
4
+ import { RootContext, s as styles, rootClassName } from "./list.js";
5
+ const Illustration = React__default.forwardRef(
6
+ ({ className, variant: propVariant, children, ...props }, forwardRef) => {
7
+ const context = React__default.useContext(RootContext);
8
+ const variant = propVariant || (context == null ? void 0 : context.variant);
9
+ const classes = clsx(
10
+ [styles[`${rootClassName}__illustration`]],
11
+ {
12
+ [styles[`${rootClassName}__illustration--${variant}`]]: variant,
13
+ [styles[`${rootClassName}__illustration--icon`]]: variant == null ? void 0 : variant.includes("icon")
14
+ },
15
+ className
16
+ );
17
+ return /* @__PURE__ */ jsx("span", { ...props, className: classes, ref: forwardRef, children });
18
+ }
19
+ );
20
+ Illustration.displayName = "Illustration";
21
+ export {
22
+ Illustration
23
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_list_list = require("./list.cjs");
7
+ const Item = React.forwardRef(({ className, children, ...props }, forwardRef) => {
8
+ const classes = clsx([components_list_list.styles[`${components_list_list.rootClassName}__item`]], className);
9
+ return /* @__PURE__ */ jsxRuntime.jsx("li", { ...props, ref: forwardRef, className: classes, children });
10
+ });
11
+ Item.displayName = "Item";
12
+ exports.Item = Item;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+
3
+ export type ItemProps = React.ComponentPropsWithoutRef<'li'>;
4
+ export declare const Item: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
@@ -0,0 +1,12 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import React__default from "react";
3
+ import clsx from "clsx";
4
+ import { s as styles, rootClassName } from "./list.js";
5
+ const Item = React__default.forwardRef(({ className, children, ...props }, forwardRef) => {
6
+ const classes = clsx([styles[`${rootClassName}__item`]], className);
7
+ return /* @__PURE__ */ jsx("li", { ...props, ref: forwardRef, className: classes, children });
8
+ });
9
+ Item.displayName = "Item";
10
+ export {
11
+ Item
12
+ };
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const jsxRuntime = require("react/jsx-runtime");
4
+ const React = require("react");
5
+ const clsx = require("clsx");
6
+ const components_flex_flex = require("../flex/flex.cjs");
7
+ const reactSlot = require("@radix-ui/react-slot");
8
+ const styles = {
9
+ "teddy-list__illustration": "_teddy-list__illustration_7z0zv_1",
10
+ "teddy-list__illustration--icon": "_teddy-list__illustration--icon_7z0zv_5",
11
+ "teddy-list__illustration--icon-white": "_teddy-list__illustration--icon-white_7z0zv_11",
12
+ "teddy-list__illustration--icon-purple": "_teddy-list__illustration--icon-purple_7z0zv_14",
13
+ "teddy-list__illustration--icon-gray": "_teddy-list__illustration--icon-gray_7z0zv_18",
14
+ "teddy-list__illustration--icon-beige": "_teddy-list__illustration--icon-beige_7z0zv_21",
15
+ "teddy-list--vertical": "_teddy-list--vertical_7z0zv_24",
16
+ "teddy-list__item": "_teddy-list__item_7z0zv_24",
17
+ "teddy-list--horizontal": "_teddy-list--horizontal_7z0zv_27"
18
+ };
19
+ const rootClassName = "teddy-list";
20
+ const RootContext = React.createContext(void 0);
21
+ const Root = React.forwardRef(
22
+ ({ className, asChild, children, variant, layout = "vertical", ...props }, forwardRef) => {
23
+ const Comp = asChild ? reactSlot.Slot : "ul";
24
+ const classes = clsx(
25
+ [styles[`${rootClassName}`]],
26
+ {
27
+ [styles[`${rootClassName}--${layout}`]]: layout,
28
+ [styles[`${rootClassName}--${variant}`]]: variant
29
+ },
30
+ className
31
+ );
32
+ return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(
33
+ components_flex_flex.Flex,
34
+ {
35
+ p: "0",
36
+ m: "0",
37
+ direction: layout === "vertical" ? "column" : { sm: "column", md: "row" },
38
+ gap: "300",
39
+ ...props,
40
+ ref: forwardRef,
41
+ className: classes,
42
+ asChild: true,
43
+ children: /* @__PURE__ */ jsxRuntime.jsx(Comp, { children })
44
+ }
45
+ ) });
46
+ }
47
+ );
48
+ Root.displayName = "List";
49
+ exports.Root = Root;
50
+ exports.RootContext = RootContext;
51
+ exports.rootClassName = rootClassName;
52
+ exports.styles = styles;
@@ -0,0 +1,43 @@
1
+ import { default as React } from 'react';
2
+ import { Flex } from '../flex';
3
+
4
+ export declare const rootClassName = "teddy-list";
5
+ export type Layout = 'horizontal' | 'vertical';
6
+ export type Variant = 'icon-white' | 'icon-beige' | 'icon-purple' | 'icon-gray' | 'image';
7
+ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof Flex>, 'as'> & {
8
+ layout?: Layout;
9
+ variant?: Variant;
10
+ };
11
+ type RootContextType = {
12
+ variant?: Variant;
13
+ };
14
+ export declare const RootContext: React.Context<RootContextType | undefined>;
15
+ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
16
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
17
+ } & import('../../utils/generate-styling/gap').GapProps & {
18
+ align?: import('../../utils/generate-styling/align').Align | undefined;
19
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
20
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
21
+ asChild: true;
22
+ as?: undefined;
23
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
24
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
25
+ } & import('../../utils/generate-styling/gap').GapProps & {
26
+ align?: import('../../utils/generate-styling/align').Align | undefined;
27
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
28
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
29
+ as?: "span" | undefined;
30
+ asChild?: false | undefined;
31
+ } & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
32
+ display?: import('../../utils/generate-styling').DisplayChildren | undefined;
33
+ } & import('../../utils/generate-styling/gap').GapProps & {
34
+ align?: import('../../utils/generate-styling/align').Align | undefined;
35
+ justify?: import('../../utils/generate-styling/justify').Justify | undefined;
36
+ } & import('../../utils/generate-styling/flex').FlexLayout & {
37
+ as: "div";
38
+ asChild?: false | undefined;
39
+ } & React.RefAttributes<HTMLDivElement>, "ref">, "as"> & {
40
+ layout?: Layout | undefined;
41
+ variant?: Variant | undefined;
42
+ } & React.RefAttributes<HTMLDivElement>>;
43
+ export {};