@telia/teddy 0.0.57 → 0.0.59

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.
@@ -95,11 +95,11 @@ function LoggedInContent() {
95
95
  ] }),
96
96
  /* @__PURE__ */ jsxRuntime.jsxs(components_textSpacing_textSpacing.TextSpacing, { children: [
97
97
  /* @__PURE__ */ jsxRuntime.jsxs(components_tabs_index.Tabs.Content, { value: "private", children: [
98
- /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Privat" }),
98
+ /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Min Side" }),
99
99
  (_a = components_navigationMenu_globalNavigation_utils.MY_PAGE_LINKS.links) == null ? void 0 : _a.map((link) => /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "list-item", fullWidth: true, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.link, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: link.icon, children: link.name }) }) }, link.link))
100
100
  ] }),
101
101
  /* @__PURE__ */ jsxRuntime.jsxs(components_tabs_index.Tabs.Content, { value: "business", children: [
102
- /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Bedrift" }),
102
+ /* @__PURE__ */ jsxRuntime.jsx(components_heading_heading.Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Bedriftsportaler" }),
103
103
  components_navigationMenu_globalNavigation_utils.LOGGED_IN_LINKS_BUSINESS.map((link) => /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "list-item", fullWidth: true, asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.link, children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: link.icon, children: link.name }) }) }, link.link))
104
104
  ] }),
105
105
  /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { mt: "200", onClick: () => rootContext == null ? void 0 : rootContext.onLogoutClick(), variant: "secondary", children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "logout", children: "Logg ut" }) })
@@ -413,7 +413,7 @@ function Mobile(props) {
413
413
  value: rootContext.selectedDomainItem,
414
414
  onValueChange: (v) => rootContext.setSelectedDomainItem(v, true),
415
415
  children: [
416
- /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.List, { children: components_navigationMenu_globalNavigation_utils.LINKS.map((link) => /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.Trigger, { value: link.name, children: link.name }, link.name)) }),
416
+ /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.List, { children: components_navigationMenu_globalNavigation_utils.LINKS.map((link) => /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.Trigger, { asChild: true, value: link.name, children: link.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: link.link, children: link.name }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: link.link, children: link.name }) }, link.name)) }),
417
417
  /* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { mt: "400", children: components_navigationMenu_globalNavigation_utils.LINKS.map((link) => {
418
418
  var _a;
419
419
  return /* @__PURE__ */ jsxRuntime.jsx(components_tabs_index.Tabs.Content, { value: link.name, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -93,11 +93,11 @@ function LoggedInContent() {
93
93
  ] }),
94
94
  /* @__PURE__ */ jsxs(TextSpacing, { children: [
95
95
  /* @__PURE__ */ jsxs(Tabs.Content, { value: "private", children: [
96
- /* @__PURE__ */ jsx(Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Privat" }),
96
+ /* @__PURE__ */ jsx(Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Min Side" }),
97
97
  (_a = MY_PAGE_LINKS.links) == null ? void 0 : _a.map((link) => /* @__PURE__ */ jsx(Button, { variant: "list-item", fullWidth: true, asChild: true, children: /* @__PURE__ */ jsx("a", { href: link.link, children: /* @__PURE__ */ jsx(Icon, { name: link.icon, children: link.name }) }) }, link.link))
98
98
  ] }),
99
99
  /* @__PURE__ */ jsxs(Tabs.Content, { value: "business", children: [
100
- /* @__PURE__ */ jsx(Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Bedrift" }),
100
+ /* @__PURE__ */ jsx(Heading, { variant: "title-100", as: "h3", mb: "100", mt: "400", children: "Bedriftsportaler" }),
101
101
  LOGGED_IN_LINKS_BUSINESS.map((link) => /* @__PURE__ */ jsx(Button, { variant: "list-item", fullWidth: true, asChild: true, children: /* @__PURE__ */ jsx("a", { href: link.link, children: /* @__PURE__ */ jsx(Icon, { name: link.icon, children: link.name }) }) }, link.link))
102
102
  ] }),
103
103
  /* @__PURE__ */ jsx(Button, { mt: "200", onClick: () => rootContext == null ? void 0 : rootContext.onLogoutClick(), variant: "secondary", children: /* @__PURE__ */ jsx(Icon, { name: "logout", children: "Logg ut" }) })
@@ -411,7 +411,7 @@ function Mobile(props) {
411
411
  value: rootContext.selectedDomainItem,
412
412
  onValueChange: (v) => rootContext.setSelectedDomainItem(v, true),
413
413
  children: [
414
- /* @__PURE__ */ jsx(Tabs.List, { children: LINKS.map((link) => /* @__PURE__ */ jsx(Tabs.Trigger, { value: link.name, children: link.name }, link.name)) }),
414
+ /* @__PURE__ */ jsx(Tabs.List, { children: LINKS.map((link) => /* @__PURE__ */ jsx(Tabs.Trigger, { asChild: true, value: link.name, children: link.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(NavLink, { href: link.link, children: link.name }) : /* @__PURE__ */ jsx("a", { href: link.link, children: link.name }) }, link.name)) }),
415
415
  /* @__PURE__ */ jsx(Box, { mt: "400", children: LINKS.map((link) => {
416
416
  var _a;
417
417
  return /* @__PURE__ */ jsx(Tabs.Content, { value: link.name, children: /* @__PURE__ */ jsx(
@@ -16,7 +16,7 @@ const MY_PAGE_LINKS = {
16
16
  links: [
17
17
  {
18
18
  name: "Hjem",
19
- link: "/minside",
19
+ link: "/minside/hjem",
20
20
  appKey: APP_KEYS["my-pages"],
21
21
  icon: "home"
22
22
  },
@@ -23,7 +23,7 @@ export declare const MY_PAGE_LINKS: {
23
23
  readonly appKey: "my-pages";
24
24
  readonly links: [{
25
25
  readonly name: "Hjem";
26
- readonly link: "/minside";
26
+ readonly link: "/minside/hjem";
27
27
  readonly appKey: "my-pages";
28
28
  readonly icon: "home";
29
29
  }, {
@@ -89,7 +89,7 @@ export declare const LOGGED_IN_LINKS: [{
89
89
  readonly appKey: "my-pages";
90
90
  readonly links: [{
91
91
  readonly name: "Hjem";
92
- readonly link: "/minside";
92
+ readonly link: "/minside/hjem";
93
93
  readonly appKey: "my-pages";
94
94
  readonly icon: "home";
95
95
  }, {
@@ -14,7 +14,7 @@ const MY_PAGE_LINKS = {
14
14
  links: [
15
15
  {
16
16
  name: "Hjem",
17
- link: "/minside",
17
+ link: "/minside/hjem",
18
18
  appKey: APP_KEYS["my-pages"],
19
19
  icon: "home"
20
20
  },
@@ -27,14 +27,14 @@ function _interopNamespaceDefault(e) {
27
27
  }
28
28
  const ScrollAreaPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ScrollAreaPrimitive);
29
29
  const styles = {
30
- "teddy-scroll-area": "_teddy-scroll-area_1y01l_3",
31
- "teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1y01l_7",
32
- "teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1y01l_13",
33
- "teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1y01l_34",
34
- "teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1y01l_47",
35
- "teddy-scroll-area__corner": "_teddy-scroll-area__corner_1y01l_64",
36
- "teddy-scroll-area__button": "_teddy-scroll-area__button_1y01l_67",
37
- "teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1y01l_95"
30
+ "teddy-scroll-area": "_teddy-scroll-area_1r6mf_1",
31
+ "teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1r6mf_5",
32
+ "teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1r6mf_11",
33
+ "teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1r6mf_32",
34
+ "teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1r6mf_45",
35
+ "teddy-scroll-area__corner": "_teddy-scroll-area__corner_1r6mf_62",
36
+ "teddy-scroll-area__button": "_teddy-scroll-area__button_1r6mf_65",
37
+ "teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1r6mf_93"
38
38
  };
39
39
  const Scrollbar = React.forwardRef(
40
40
  ({ className, ...props }, forwardRef) => {
@@ -8,14 +8,14 @@ import "../../assets/sprite.269ba410-teddy.svg";
8
8
  import { Icon } from "../icon/icon.js";
9
9
  import { Slottable } from "@radix-ui/react-slot";
10
10
  const styles = {
11
- "teddy-scroll-area": "_teddy-scroll-area_1y01l_3",
12
- "teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1y01l_7",
13
- "teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1y01l_13",
14
- "teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1y01l_34",
15
- "teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1y01l_47",
16
- "teddy-scroll-area__corner": "_teddy-scroll-area__corner_1y01l_64",
17
- "teddy-scroll-area__button": "_teddy-scroll-area__button_1y01l_67",
18
- "teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1y01l_95"
11
+ "teddy-scroll-area": "_teddy-scroll-area_1r6mf_1",
12
+ "teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1r6mf_5",
13
+ "teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1r6mf_11",
14
+ "teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1r6mf_32",
15
+ "teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1r6mf_45",
16
+ "teddy-scroll-area__corner": "_teddy-scroll-area__corner_1r6mf_62",
17
+ "teddy-scroll-area__button": "_teddy-scroll-area__button_1r6mf_65",
18
+ "teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1r6mf_93"
19
19
  };
20
20
  const Scrollbar = React__default.forwardRef(
21
21
  ({ className, ...props }, forwardRef) => {
@@ -24,11 +24,11 @@ function _interopNamespaceDefault(e) {
24
24
  }
25
25
  const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
26
26
  const styles = {
27
- "teddy-tabs__list": "_teddy-tabs__list_1a33o_3",
28
- "teddy-tabs--full-width": "_teddy-tabs--full-width_1a33o_30",
29
- "teddy-tabs__content": "_teddy-tabs__content_1a33o_33",
30
- "teddy-tabs__trigger": "_teddy-tabs__trigger_1a33o_37",
31
- "teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1a33o_52"
27
+ "teddy-tabs__list": "_teddy-tabs__list_1jnm3_1",
28
+ "teddy-tabs--full-width": "_teddy-tabs--full-width_1jnm3_28",
29
+ "teddy-tabs__content": "_teddy-tabs__content_1jnm3_31",
30
+ "teddy-tabs__trigger": "_teddy-tabs__trigger_1jnm3_35",
31
+ "teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1jnm3_50"
32
32
  };
33
33
  const rootClassName = "teddy-tabs";
34
34
  const RootContext = React.createContext(void 0);
@@ -5,11 +5,11 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
5
5
  import { useControllableState } from "@radix-ui/react-use-controllable-state";
6
6
  import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
7
7
  const styles = {
8
- "teddy-tabs__list": "_teddy-tabs__list_1a33o_3",
9
- "teddy-tabs--full-width": "_teddy-tabs--full-width_1a33o_30",
10
- "teddy-tabs__content": "_teddy-tabs__content_1a33o_33",
11
- "teddy-tabs__trigger": "_teddy-tabs__trigger_1a33o_37",
12
- "teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1a33o_52"
8
+ "teddy-tabs__list": "_teddy-tabs__list_1jnm3_1",
9
+ "teddy-tabs--full-width": "_teddy-tabs--full-width_1jnm3_28",
10
+ "teddy-tabs__content": "_teddy-tabs__content_1jnm3_31",
11
+ "teddy-tabs__trigger": "_teddy-tabs__trigger_1jnm3_35",
12
+ "teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1jnm3_50"
13
13
  };
14
14
  const rootClassName = "teddy-tabs";
15
15
  const RootContext = React__default.createContext(void 0);
@@ -2,15 +2,12 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
- const clsx = require("clsx");
6
- const components_tabs_tabsRoot = require("./tabs-root.cjs");
7
5
  const components_scrollArea_index = require("../scroll-area/index.cjs");
8
6
  const components_tabs_tabsScrollButton = require("./tabs-scroll-button.cjs");
9
7
  const ScrollContext = React.createContext(false);
10
8
  const Scroll = React.forwardRef(
11
- ({ className, children, ...props }, forwardRef) => {
12
- const classes = clsx([components_tabs_tabsRoot.styles[`${components_tabs_tabsRoot.rootClassName}__scroll`]], className);
13
- return /* @__PURE__ */ jsxRuntime.jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsxs(components_scrollArea_index.ScrollArea, { ...props, className: classes, ref: forwardRef, children: [
9
+ ({ children, ...props }, forwardRef) => {
10
+ return /* @__PURE__ */ jsxRuntime.jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsxs(components_scrollArea_index.ScrollArea, { ...props, ref: forwardRef, children: [
14
11
  /* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "left" }),
15
12
  /* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "right" }),
16
13
  children
@@ -1,14 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import React__default from "react";
3
- import clsx from "clsx";
4
- import { s as styles, rootClassName } from "./tabs-root.js";
5
3
  import { ScrollArea } from "../scroll-area/index.js";
6
4
  import { ScrollButton } from "./tabs-scroll-button.js";
7
5
  const ScrollContext = React__default.createContext(false);
8
6
  const Scroll = React__default.forwardRef(
9
- ({ className, children, ...props }, forwardRef) => {
10
- const classes = clsx([styles[`${rootClassName}__scroll`]], className);
11
- return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { ...props, className: classes, ref: forwardRef, children: [
7
+ ({ children, ...props }, forwardRef) => {
8
+ return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { ...props, ref: forwardRef, children: [
12
9
  /* @__PURE__ */ jsx(ScrollButton, { direction: "left" }),
13
10
  /* @__PURE__ */ jsx(ScrollButton, { direction: "right" }),
14
11
  children
@@ -26,15 +26,15 @@ function _interopNamespaceDefault(e) {
26
26
  }
27
27
  const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
28
28
  const Trigger = React.forwardRef(
29
- ({ className, ...props }, forwardRef) => {
29
+ ({ className, asChild, children, ...props }, forwardRef) => {
30
30
  const classes = clsx([components_tabs_tabsRoot.styles[`${components_tabs_tabsRoot.rootClassName}__trigger`]], className);
31
31
  const innerElementRef = React.useRef(null);
32
+ const ref = utils_composeRefs.useComposedRefs(forwardRef, innerElementRef);
32
33
  const context = React.useContext(components_tabs_tabsRoot.RootContext);
33
34
  const isFirstRender = React.useRef(true);
34
35
  React.useEffect(() => {
35
36
  if ((context == null ? void 0 : context.value) === props.value && innerElementRef.current) {
36
37
  const newTab = innerElementRef.current;
37
- context == null ? void 0 : context.setActiveElement(newTab);
38
38
  const tabsContainer = context == null ? void 0 : context.listElement.current;
39
39
  if (!newTab || !tabsContainer)
40
40
  return;
@@ -47,9 +47,9 @@ const Trigger = React.forwardRef(
47
47
  }
48
48
  }, [context, props.value]);
49
49
  if (context == null ? void 0 : context.snapCenter) {
50
- return /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea.Item, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ...props, ref: utils_composeRefs.composeRefs(forwardRef, innerElementRef), className: classes }) }) });
50
+ return /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea.Item, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ...props, asChild: true, ref, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "primary", asChild, children }) }) });
51
51
  }
52
- return /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ...props, ref: utils_composeRefs.composeRefs(forwardRef, innerElementRef), className: classes }) });
52
+ return /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ...props, asChild: true, ref, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(components_button_button.Button, { variant: "primary", asChild, children }) });
53
53
  }
54
54
  );
55
55
  Trigger.displayName = "Trigger";
@@ -5,17 +5,17 @@ import clsx from "clsx";
5
5
  import { s as styles, rootClassName, RootContext } from "./tabs-root.js";
6
6
  import { ScrollArea } from "../scroll-area/index.js";
7
7
  import { Button } from "../button/button.js";
8
- import { composeRefs } from "../../utils/composeRefs.js";
8
+ import { useComposedRefs } from "../../utils/composeRefs.js";
9
9
  const Trigger = React__default.forwardRef(
10
- ({ className, ...props }, forwardRef) => {
10
+ ({ className, asChild, children, ...props }, forwardRef) => {
11
11
  const classes = clsx([styles[`${rootClassName}__trigger`]], className);
12
12
  const innerElementRef = React__default.useRef(null);
13
+ const ref = useComposedRefs(forwardRef, innerElementRef);
13
14
  const context = React__default.useContext(RootContext);
14
15
  const isFirstRender = React__default.useRef(true);
15
16
  React__default.useEffect(() => {
16
17
  if ((context == null ? void 0 : context.value) === props.value && innerElementRef.current) {
17
18
  const newTab = innerElementRef.current;
18
- context == null ? void 0 : context.setActiveElement(newTab);
19
19
  const tabsContainer = context == null ? void 0 : context.listElement.current;
20
20
  if (!newTab || !tabsContainer)
21
21
  return;
@@ -28,9 +28,9 @@ const Trigger = React__default.forwardRef(
28
28
  }
29
29
  }, [context, props.value]);
30
30
  if (context == null ? void 0 : context.snapCenter) {
31
- return /* @__PURE__ */ jsx(ScrollArea.Item, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ...props, ref: composeRefs(forwardRef, innerElementRef), className: classes }) }) });
31
+ return /* @__PURE__ */ jsx(ScrollArea.Item, { asChild: true, children: /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ...props, asChild: true, ref, className: classes, children: /* @__PURE__ */ jsx(Button, { variant: "primary", asChild, children }) }) });
32
32
  }
33
- return /* @__PURE__ */ jsx(Button, { variant: "primary", asChild: true, children: /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ...props, ref: composeRefs(forwardRef, innerElementRef), className: classes }) });
33
+ return /* @__PURE__ */ jsx(TabsPrimitive.Trigger, { ...props, asChild: true, ref, className: classes, children: /* @__PURE__ */ jsx(Button, { variant: "primary", asChild, children }) });
34
34
  }
35
35
  );
36
36
  Trigger.displayName = "Trigger";
package/dist/style.css CHANGED
@@ -1136,194 +1136,188 @@
1136
1136
  ._teddy-list__illustration_1fpoz_8 {
1137
1137
  align-self: flex-start;
1138
1138
  }
1139
- }@layer button, scroll-area;
1140
- @layer scroll-area {
1141
- ._teddy-scroll-area_1y01l_3 {
1142
- position: relative;
1143
- overflow: hidden;
1144
- }
1145
- ._teddy-scroll-area__viewport_1y01l_7 {
1146
- height: 100%;
1147
- width: 100%;
1148
- border-radius: inherit;
1149
- display: grid;
1150
- }
1151
- ._teddy-scroll-area__scrollbar_1y01l_13 {
1152
- display: flex;
1153
- /* ensures no selection */
1154
- user-select: none;
1155
- /* disable browser handling of all panning and zooming gestures on touch devices */
1156
- touch-action: none;
1157
- padding: 1px;
1158
- background: var(--teddy-color-border-weak);
1159
- transition: background-color var(--teddy-motion-duration-200) ease-out;
1160
- border-radius: var(--teddy-border-radius-full);
1161
- }
1162
- ._teddy-scroll-area__scrollbar_1y01l_13[data-orientation=vertical] {
1163
- width: var(--teddy-border-width-lg);
1164
- }
1165
- ._teddy-scroll-area__scrollbar_1y01l_13[data-orientation=horizontal] {
1166
- flex-direction: column;
1167
- height: var(--teddy-border-width-lg);
1168
- }
1169
- ._teddy-scroll-area__scrollbar_1y01l_13:hover {
1170
- background-color: var(--teddy-color-transparent-black-200);
1171
- }
1172
- ._teddy-scroll-area__scrollbar--hidden_1y01l_34 {
1173
- width: 1px;
1174
- height: 1px;
1175
- padding: 0;
1176
- margin: -1px;
1177
- overflow: hidden;
1178
- clip: rect(0, 0, 0, 0);
1179
- white-space: nowrap;
1180
- border: 0;
1181
- }
1182
- ._teddy-scroll-area__scrollbar--hidden_1y01l_34:not(caption) {
1183
- position: absolute;
1184
- }
1185
- ._teddy-scroll-area__thumb_1y01l_47 {
1186
- flex: 1;
1187
- background: var(--teddy-color-border-strong);
1188
- border-radius: var(--teddy-border-radius-full);
1189
- position: relative;
1190
- }
1191
- ._teddy-scroll-area__thumb_1y01l_47::before {
1192
- content: "";
1193
- position: absolute;
1194
- top: 50%;
1195
- left: 50%;
1196
- transform: translate(-50%, -50%);
1197
- width: 100%;
1198
- height: 100%;
1199
- min-width: 44px;
1200
- min-height: 44px;
1201
- }
1202
- ._teddy-scroll-area__corner_1y01l_64 {
1203
- background: var(--teddy-color-border-medium);
1204
- }
1205
- ._teddy-scroll-area__button_1y01l_67 {
1206
- position: absolute;
1207
- }
1208
- @media (prefers-reduced-motion: no-preference) {
1209
- ._teddy-scroll-area__button_1y01l_67 {
1210
- transition: opacity var(--teddy-motion-duration-300), transform var(--teddy-motion-duration-300);
1211
- }
1212
- }
1213
- ._teddy-scroll-area__button_1y01l_67[data-direction=left] {
1214
- left: 0;
1215
- top: 50%;
1216
- transform: translate(0, -50%);
1217
- }
1218
- ._teddy-scroll-area__button_1y01l_67[data-direction=right] {
1219
- right: 0;
1220
- top: 50%;
1221
- transform: translate(0, -50%);
1222
- }
1223
- ._teddy-scroll-area__button_1y01l_67[data-direction=up] {
1224
- top: 0;
1225
- left: 50%;
1226
- transform: translate(-50%, 0);
1227
- }
1228
- ._teddy-scroll-area__button_1y01l_67[data-direction=down] {
1229
- bottom: 0;
1230
- left: 50%;
1231
- transform: translate(-50%, 0);
1232
- }
1233
- ._teddy-scroll-area__button--hidden_1y01l_95 {
1234
- opacity: 0;
1235
- }
1236
- ._teddy-scroll-area__button--hidden_1y01l_95[data-direction=left] {
1237
- transform: translate(-100%, -50%);
1238
- }
1239
- ._teddy-scroll-area__button--hidden_1y01l_95[data-direction=right] {
1240
- transform: translate(100%, -50%);
1241
- }
1242
- ._teddy-scroll-area__button--hidden_1y01l_95[data-direction=up] {
1243
- transform: translate(-50%, -100%);
1244
- }
1245
- ._teddy-scroll-area__button--hidden_1y01l_95[data-direction=down] {
1246
- transform: translate(-50%, 100%);
1247
- }
1248
- }@layer button, scroll-area, tabs;
1249
- @layer tabs {
1250
- ._teddy-tabs__list_1a33o_3 {
1251
- display: flex;
1252
- max-width: fit-content;
1253
- background-color: var(--teddy-color-background-secondary);
1254
- border-radius: var(--teddy-border-radius-full);
1255
- padding: var(--teddy-spacing-50);
1256
- position: relative;
1257
- }
1258
- ._teddy-tabs__list_1a33o_3::before {
1259
- content: "";
1260
- position: absolute;
1261
- inset: var(--teddy-spacing-50);
1262
- inset: 0;
1263
- margin: var(--teddy-spacing-50) 0;
1264
- scale: var(--_width, 0) 1;
1265
- translate: var(--_left, 0) 0;
1266
- transform-origin: left;
1267
- background: var(--teddy-color-background-interactive-primary);
1268
- border-radius: calc(99vmin / var(--_width, 0.125))/99vmin;
1269
- }
1270
- @media (prefers-reduced-motion: no-preference) {
1271
- ._teddy-tabs__list_1a33o_3::before {
1272
- transition: border-radius, scale, translate;
1273
- transition-timing-function: var(--teddy-motion-easing-ease-in-out);
1274
- transition-duration: var(--_duration, 0);
1275
- }
1276
- }
1277
- ._teddy-tabs--full-width_1a33o_30 ._teddy-tabs__list_1a33o_3 {
1278
- max-width: initial;
1279
- }
1280
- ._teddy-tabs__content_1a33o_33:focus-visible {
1281
- outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
1282
- outline-offset: var(--teddy-spacing-25);
1283
- }
1284
- ._teddy-tabs__trigger_1a33o_37 {
1285
- flex: 1 0 auto;
1286
- min-width: 3rem;
1287
- color: var(--teddy-color-text-interactive-primary);
1288
- background-color: var(--teddy-color-background-interactive-transparent);
1289
- padding: calc(var(--teddy-spacing-100) + var(--teddy-spacing-25)) var(--teddy-spacing-200);
1290
- line-height: var(--teddy-typography-line-height-100);
1291
- white-space: nowrap;
1292
- cursor: pointer;
1293
- transition: color calc(var(--_duration, 0)) var(--teddy-motion-easing-ease-in-out);
1294
- }
1295
- ._teddy-tabs__trigger_1a33o_37[data-state=active] {
1296
- color: var(--teddy-color-text-interactive-on-primary);
1297
- cursor: default;
1298
- }
1299
- ._teddy-tabs__scroll-button_1a33o_52 {
1300
- background-color: var(--teddy-color-background-secondary);
1301
- color: var(--teddy-color-text-default);
1302
- z-index: 1;
1303
- }
1304
- ._teddy-tabs__scroll-button_1a33o_52:hover {
1305
- background-color: var(--teddy-color-background-interactive-transparent-hover);
1306
- }
1307
- ._teddy-tabs__scroll-button_1a33o_52:active {
1308
- background-color: var(--teddy-color-background-interactive-transparent-active);
1309
- }
1310
- ._teddy-tabs__scroll-button_1a33o_52::before {
1311
- z-index: 1;
1312
- }
1313
- ._teddy-tabs__scroll-button_1a33o_52::after {
1314
- content: "";
1315
- top: 0;
1316
- left: 100%;
1317
- bottom: 0;
1318
- position: absolute;
1319
- width: 1rem;
1320
- background: linear-gradient(90deg, var(--teddy-color-background-secondary) 0%, var(--teddy-color-functional-transparent) 100%);
1139
+ }._teddy-scroll-area_1r6mf_1 {
1140
+ position: relative;
1141
+ overflow: hidden;
1142
+ }
1143
+ ._teddy-scroll-area__viewport_1r6mf_5 {
1144
+ height: 100%;
1145
+ width: 100%;
1146
+ border-radius: inherit;
1147
+ display: grid;
1148
+ }
1149
+ ._teddy-scroll-area__scrollbar_1r6mf_11 {
1150
+ display: flex;
1151
+ /* ensures no selection */
1152
+ user-select: none;
1153
+ /* disable browser handling of all panning and zooming gestures on touch devices */
1154
+ touch-action: none;
1155
+ padding: 1px;
1156
+ background: var(--teddy-color-border-weak);
1157
+ transition: background-color var(--teddy-motion-duration-200) ease-out;
1158
+ border-radius: var(--teddy-border-radius-full);
1159
+ }
1160
+ ._teddy-scroll-area__scrollbar_1r6mf_11[data-orientation=vertical] {
1161
+ width: var(--teddy-border-width-lg);
1162
+ }
1163
+ ._teddy-scroll-area__scrollbar_1r6mf_11[data-orientation=horizontal] {
1164
+ flex-direction: column;
1165
+ height: var(--teddy-border-width-lg);
1166
+ }
1167
+ ._teddy-scroll-area__scrollbar_1r6mf_11:hover {
1168
+ background-color: var(--teddy-color-transparent-black-200);
1169
+ }
1170
+ ._teddy-scroll-area__scrollbar--hidden_1r6mf_32 {
1171
+ width: 1px;
1172
+ height: 1px;
1173
+ padding: 0;
1174
+ margin: -1px;
1175
+ overflow: hidden;
1176
+ clip: rect(0, 0, 0, 0);
1177
+ white-space: nowrap;
1178
+ border: 0;
1179
+ }
1180
+ ._teddy-scroll-area__scrollbar--hidden_1r6mf_32:not(caption) {
1181
+ position: absolute;
1182
+ }
1183
+ ._teddy-scroll-area__thumb_1r6mf_45 {
1184
+ flex: 1;
1185
+ background: var(--teddy-color-border-strong);
1186
+ border-radius: var(--teddy-border-radius-full);
1187
+ position: relative;
1188
+ }
1189
+ ._teddy-scroll-area__thumb_1r6mf_45::before {
1190
+ content: "";
1191
+ position: absolute;
1192
+ top: 50%;
1193
+ left: 50%;
1194
+ transform: translate(-50%, -50%);
1195
+ width: 100%;
1196
+ height: 100%;
1197
+ min-width: 44px;
1198
+ min-height: 44px;
1199
+ }
1200
+ ._teddy-scroll-area__corner_1r6mf_62 {
1201
+ background: var(--teddy-color-border-medium);
1202
+ }
1203
+ ._teddy-scroll-area__button_1r6mf_65 {
1204
+ position: absolute;
1205
+ }
1206
+ @media (prefers-reduced-motion: no-preference) {
1207
+ ._teddy-scroll-area__button_1r6mf_65 {
1208
+ transition: opacity var(--teddy-motion-duration-300), transform var(--teddy-motion-duration-300);
1321
1209
  }
1322
- ._teddy-tabs__scroll-button_1a33o_52[data-direction=right]::after {
1323
- left: auto;
1324
- right: 100%;
1325
- transform: rotate(180deg);
1210
+ }
1211
+ ._teddy-scroll-area__button_1r6mf_65[data-direction=left] {
1212
+ left: 0;
1213
+ top: 50%;
1214
+ transform: translate(0, -50%);
1215
+ }
1216
+ ._teddy-scroll-area__button_1r6mf_65[data-direction=right] {
1217
+ right: 0;
1218
+ top: 50%;
1219
+ transform: translate(0, -50%);
1220
+ }
1221
+ ._teddy-scroll-area__button_1r6mf_65[data-direction=up] {
1222
+ top: 0;
1223
+ left: 50%;
1224
+ transform: translate(-50%, 0);
1225
+ }
1226
+ ._teddy-scroll-area__button_1r6mf_65[data-direction=down] {
1227
+ bottom: 0;
1228
+ left: 50%;
1229
+ transform: translate(-50%, 0);
1230
+ }
1231
+ ._teddy-scroll-area__button--hidden_1r6mf_93 {
1232
+ opacity: 0;
1233
+ }
1234
+ ._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=left] {
1235
+ transform: translate(-100%, -50%);
1236
+ }
1237
+ ._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=right] {
1238
+ transform: translate(100%, -50%);
1239
+ }
1240
+ ._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=up] {
1241
+ transform: translate(-50%, -100%);
1242
+ }
1243
+ ._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=down] {
1244
+ transform: translate(-50%, 100%);
1245
+ }._teddy-tabs__list_1jnm3_1 {
1246
+ display: flex;
1247
+ max-width: fit-content;
1248
+ background-color: var(--teddy-color-background-secondary);
1249
+ border-radius: var(--teddy-border-radius-full);
1250
+ padding: var(--teddy-spacing-50);
1251
+ position: relative;
1252
+ }
1253
+ ._teddy-tabs__list_1jnm3_1::before {
1254
+ content: "";
1255
+ position: absolute;
1256
+ inset: var(--teddy-spacing-50);
1257
+ inset: 0;
1258
+ margin: var(--teddy-spacing-50) 0;
1259
+ scale: var(--_width, 0) 1;
1260
+ translate: var(--_left, 0) 0;
1261
+ transform-origin: left;
1262
+ background: var(--teddy-color-background-interactive-primary);
1263
+ border-radius: calc(99vmin / var(--_width, 0.125))/99vmin;
1264
+ }
1265
+ @media (prefers-reduced-motion: no-preference) {
1266
+ ._teddy-tabs__list_1jnm3_1::before {
1267
+ transition: border-radius, scale, translate;
1268
+ transition-timing-function: var(--teddy-motion-easing-ease-in-out);
1269
+ transition-duration: var(--_duration, 0);
1326
1270
  }
1271
+ }
1272
+ ._teddy-tabs--full-width_1jnm3_28 ._teddy-tabs__list_1jnm3_1 {
1273
+ max-width: initial;
1274
+ }
1275
+ ._teddy-tabs__content_1jnm3_31:focus-visible {
1276
+ outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
1277
+ outline-offset: var(--teddy-spacing-25);
1278
+ }
1279
+ ._teddy-tabs__trigger_1jnm3_35 {
1280
+ flex: 1 0 auto;
1281
+ min-width: 3rem;
1282
+ color: var(--teddy-color-text-interactive-primary);
1283
+ background-color: var(--teddy-color-background-interactive-transparent);
1284
+ padding: calc(var(--teddy-spacing-100) + var(--teddy-spacing-25)) var(--teddy-spacing-200);
1285
+ line-height: var(--teddy-typography-line-height-100);
1286
+ white-space: nowrap;
1287
+ cursor: pointer;
1288
+ transition: color calc(var(--_duration, 0)) var(--teddy-motion-easing-ease-in-out);
1289
+ }
1290
+ ._teddy-tabs__trigger_1jnm3_35[data-state=active] {
1291
+ color: var(--teddy-color-text-interactive-on-primary);
1292
+ cursor: default;
1293
+ }
1294
+ ._teddy-tabs__scroll-button_1jnm3_50 {
1295
+ background-color: var(--teddy-color-background-secondary);
1296
+ color: var(--teddy-color-text-default);
1297
+ z-index: 1;
1298
+ }
1299
+ ._teddy-tabs__scroll-button_1jnm3_50:hover {
1300
+ background-color: var(--teddy-color-background-interactive-transparent-hover);
1301
+ }
1302
+ ._teddy-tabs__scroll-button_1jnm3_50:active {
1303
+ background-color: var(--teddy-color-background-interactive-transparent-active);
1304
+ }
1305
+ ._teddy-tabs__scroll-button_1jnm3_50::before {
1306
+ z-index: 1;
1307
+ }
1308
+ ._teddy-tabs__scroll-button_1jnm3_50::after {
1309
+ content: "";
1310
+ top: 0;
1311
+ left: 100%;
1312
+ bottom: 0;
1313
+ position: absolute;
1314
+ width: 1rem;
1315
+ background: linear-gradient(90deg, var(--teddy-color-background-secondary) 0%, var(--teddy-color-functional-transparent) 100%);
1316
+ }
1317
+ ._teddy-tabs__scroll-button_1jnm3_50[data-direction=right]::after {
1318
+ left: auto;
1319
+ right: 100%;
1320
+ transform: rotate(180deg);
1327
1321
  }@layer reset, flex, button, link, heading, drawer;
1328
1322
  @keyframes _teddy-fade-in_jiyrh_1 {
1329
1323
  from {
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "pnpm": ">=8"
21
21
  },
22
22
  "private": false,
23
- "version": "0.0.57",
23
+ "version": "0.0.59",
24
24
  "sideEffects": [
25
25
  "**/*.css"
26
26
  ],