@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.
- package/dist/assets/{sprite.5636ec8e-teddy.svg → sprite.269ba410-teddy.svg} +3 -0
- package/dist/components/accordion/accordion-indicator.cjs +14 -3
- package/dist/components/accordion/accordion-indicator.js +15 -4
- package/dist/components/accordion/accordion-item.cjs +6 -1
- package/dist/components/accordion/accordion-item.d.ts +3 -0
- package/dist/components/accordion/accordion-item.js +8 -3
- package/dist/components/accordion/accordion-root.cjs +40 -13
- package/dist/components/accordion/accordion-root.d.ts +9 -5
- package/dist/components/accordion/accordion-root.js +40 -13
- package/dist/components/badge/alert-badge.cjs +19 -0
- package/dist/components/badge/alert-badge.d.ts +10 -0
- package/dist/components/badge/alert-badge.js +19 -0
- package/dist/components/badge/badge.cjs +13 -9
- package/dist/components/badge/badge.d.ts +2 -1
- package/dist/components/badge/badge.js +14 -10
- package/dist/components/badge/counter-badge.cjs +19 -0
- package/dist/components/badge/counter-badge.d.ts +10 -0
- package/dist/components/badge/counter-badge.js +19 -0
- package/dist/components/badge/index.cjs +4 -0
- package/dist/components/badge/index.d.ts +4 -0
- package/dist/components/badge/index.js +5 -1
- package/dist/components/button/button.cjs +27 -25
- package/dist/components/button/button.d.ts +2 -2
- package/dist/components/button/button.js +27 -25
- package/dist/components/card/card.d.ts +7 -3
- package/dist/components/chip/chip-indicator.cjs +1 -1
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/chip-indicator.js +1 -1
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/drawer/drawer-close.cjs +2 -2
- package/dist/components/drawer/drawer-close.d.ts +0 -3
- package/dist/components/drawer/drawer-close.js +2 -2
- package/dist/components/drawer/drawer-content.cjs +3 -2
- package/dist/components/drawer/drawer-content.d.ts +3 -12
- package/dist/components/drawer/drawer-content.js +3 -2
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.d.ts +0 -3
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.d.ts +0 -3
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.d.ts +0 -3
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-root.d.ts +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.d.ts +4 -3
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/drawer/drawer-trigger.d.ts +5 -3
- package/dist/components/drawer/index.cjs +8 -0
- package/dist/components/drawer/index.d.ts +28 -0
- package/dist/components/drawer/index.js +8 -0
- package/dist/components/field-error-text/field-error-text.cjs +1 -1
- package/dist/components/field-error-text/field-error-text.js +1 -1
- package/dist/components/flex/flex.cjs +1 -1
- package/dist/components/flex/flex.js +1 -1
- package/dist/components/icon/icon.cjs +3 -3
- package/dist/components/icon/icon.js +3 -3
- package/dist/components/icon/index.cjs +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/index.cjs +7 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +7 -1
- package/dist/components/input/input-clear-button.cjs +1 -1
- package/dist/components/input/input-clear-button.js +1 -1
- package/dist/components/input/input-group.cjs +11 -11
- package/dist/components/input/input-group.js +11 -11
- package/dist/components/input/input-indicator.cjs +1 -1
- package/dist/components/input/input-indicator.js +1 -1
- package/dist/components/list/index.cjs +16 -0
- package/dist/components/list/index.d.ts +47 -0
- package/dist/components/list/index.js +16 -0
- package/dist/components/list/list-content.cjs +14 -0
- package/dist/components/list/list-content.d.ts +4 -0
- package/dist/components/list/list-content.js +14 -0
- package/dist/components/list/list-illustration.cjs +23 -0
- package/dist/components/list/list-illustration.d.ts +9 -0
- package/dist/components/list/list-illustration.js +23 -0
- package/dist/components/list/list-item.cjs +12 -0
- package/dist/components/list/list-item.d.ts +4 -0
- package/dist/components/list/list-item.js +12 -0
- package/dist/components/list/list.cjs +52 -0
- package/dist/components/list/list.d.ts +43 -0
- package/dist/components/list/list.js +52 -0
- package/dist/components/modal/modal.cjs +19 -15
- package/dist/components/modal/modal.js +19 -15
- package/dist/components/navigation-menu/navigation-menu.cjs +24 -22
- package/dist/components/navigation-menu/navigation-menu.d.ts +3 -1
- package/dist/components/navigation-menu/navigation-menu.js +24 -22
- package/dist/components/notification/notification.cjs +1 -1
- package/dist/components/notification/notification.d.ts +11 -5
- package/dist/components/notification/notification.js +1 -1
- package/dist/components/scroll-area/index.d.ts +6 -2
- package/dist/components/scroll-area/scroll-area-bar.cjs +19 -13
- package/dist/components/scroll-area/scroll-area-bar.js +19 -13
- package/dist/components/scroll-area/scroll-area-button.cjs +1 -1
- package/dist/components/scroll-area/scroll-area-button.d.ts +6 -2
- package/dist/components/scroll-area/scroll-area-button.js +1 -1
- package/dist/components/tabs/index.cjs +6 -0
- package/dist/components/tabs/index.d.ts +7 -3
- package/dist/components/tabs/index.js +6 -0
- package/dist/components/tabs/tabs-root.cjs +5 -4
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-root.js +5 -4
- package/dist/components/tabs/tabs-scroll-button.d.ts +6 -2
- package/dist/components/tabs/tabs-trigger.cjs +2 -1
- package/dist/components/tabs/tabs-trigger.js +2 -1
- package/dist/components/text-field/index.d.ts +6 -2
- package/dist/components/text-field/text-field-button.d.ts +6 -2
- package/dist/components/toggle/toggle.cjs +5 -5
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/toggle/toggle.js +5 -5
- package/dist/drawer.module-BZV0Appw.js +14 -0
- package/dist/drawer.module-rgUBNOkt.cjs +13 -0
- package/dist/icons/category.cjs +1 -0
- package/dist/icons/category.d.ts +3 -0
- package/dist/icons/category.js +1 -0
- package/dist/icons/name.cjs +1 -0
- package/dist/icons/name.d.ts +1 -1
- package/dist/icons/name.js +1 -0
- package/dist/main.cjs +7 -1
- package/dist/main.js +7 -1
- package/dist/style.css +568 -397
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.cjs +12 -2
- package/dist/utils/generate-styling/index.d.ts +86 -19
- package/dist/utils/generate-styling/index.js +12 -2
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
- package/dist/drawer.module-B3QhrxH1.js +0 -14
- package/dist/drawer.module-w9nGK9pO.cjs +0 -13
|
@@ -11,20 +11,24 @@ export type ButtonProps = Omit<React.ComponentPropsWithoutRef<typeof PrimitiveBu
|
|
|
11
11
|
hidden?: boolean;
|
|
12
12
|
};
|
|
13
13
|
export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
14
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
15
|
+
} & {
|
|
14
16
|
asChild?: boolean | undefined;
|
|
15
17
|
loading?: boolean | undefined;
|
|
16
18
|
fullWidth?: boolean | undefined;
|
|
17
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
18
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
20
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
19
21
|
} & {
|
|
20
22
|
iconOnly: true;
|
|
21
23
|
"aria-label": string;
|
|
22
24
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
25
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
26
|
+
} & {
|
|
23
27
|
asChild?: boolean | undefined;
|
|
24
28
|
loading?: boolean | undefined;
|
|
25
29
|
fullWidth?: boolean | undefined;
|
|
26
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
27
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
31
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
28
32
|
} & {
|
|
29
33
|
iconOnly?: false | undefined;
|
|
30
34
|
"aria-label"?: string | undefined;
|
|
@@ -4,7 +4,7 @@ import "clsx";
|
|
|
4
4
|
import { B } from "./scroll-area-bar.js";
|
|
5
5
|
import "../button/button.js";
|
|
6
6
|
import "../../utils/composeEventHandlers.js";
|
|
7
|
-
import "../../assets/sprite.
|
|
7
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
8
8
|
import "../icon/icon.js";
|
|
9
9
|
export {
|
|
10
10
|
B as Button
|
|
@@ -6,6 +6,12 @@ const components_tabs_tabsTrigger = require("./tabs-trigger.cjs");
|
|
|
6
6
|
const components_tabs_tabsContent = require("./tabs-content.cjs");
|
|
7
7
|
const components_tabs_tabsScroll = require("./tabs-scroll.cjs");
|
|
8
8
|
const components_tabs_tabsScrollButton = require("./tabs-scroll-button.cjs");
|
|
9
|
+
components_tabs_tabsRoot.Root.displayName = "Tabs";
|
|
10
|
+
components_tabs_tabsList.List.displayName = "Tabs.List";
|
|
11
|
+
components_tabs_tabsTrigger.Trigger.displayName = "Tabs.Trigger";
|
|
12
|
+
components_tabs_tabsContent.Content.displayName = "Tabs.Content";
|
|
13
|
+
components_tabs_tabsScroll.Scroll.displayName = "Tabs.Scroll";
|
|
14
|
+
components_tabs_tabsScrollButton.ScrollButton.displayName = "Tabs.ScrollButton";
|
|
9
15
|
const Tabs = Object.assign(components_tabs_tabsRoot.Root, {
|
|
10
16
|
List: components_tabs_tabsList.List,
|
|
11
17
|
Trigger: components_tabs_tabsTrigger.Trigger,
|
|
@@ -5,7 +5,7 @@ import { ContentProps } from './tabs-content';
|
|
|
5
5
|
import { ScrollProps } from './tabs-scroll';
|
|
6
6
|
import { ScrollButtonProps } from './tabs-scroll-button';
|
|
7
7
|
|
|
8
|
-
export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
8
|
+
export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
onValueChange?: ((value: string) => void) | undefined;
|
|
11
11
|
defaultValue?: string | undefined;
|
|
@@ -27,20 +27,24 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
27
27
|
variant?: ("button" | "scrollbar") | undefined;
|
|
28
28
|
} & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
29
|
ScrollButton: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
30
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
31
|
+
} & {
|
|
30
32
|
asChild?: boolean | undefined;
|
|
31
33
|
loading?: boolean | undefined;
|
|
32
34
|
fullWidth?: boolean | undefined;
|
|
33
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
34
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
36
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
35
37
|
} & {
|
|
36
38
|
iconOnly: true;
|
|
37
39
|
"aria-label": string;
|
|
38
40
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
41
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
42
|
+
} & {
|
|
39
43
|
asChild?: boolean | undefined;
|
|
40
44
|
loading?: boolean | undefined;
|
|
41
45
|
fullWidth?: boolean | undefined;
|
|
42
46
|
size?: "sm" | "md" | "lg" | undefined;
|
|
43
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
47
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
44
48
|
} & {
|
|
45
49
|
iconOnly?: false | undefined;
|
|
46
50
|
"aria-label"?: string | undefined;
|
|
@@ -4,6 +4,12 @@ import { Trigger } from "./tabs-trigger.js";
|
|
|
4
4
|
import { Content } from "./tabs-content.js";
|
|
5
5
|
import { Scroll } from "./tabs-scroll.js";
|
|
6
6
|
import { ScrollButton } from "./tabs-scroll-button.js";
|
|
7
|
+
Root.displayName = "Tabs";
|
|
8
|
+
List.displayName = "Tabs.List";
|
|
9
|
+
Trigger.displayName = "Tabs.Trigger";
|
|
10
|
+
Content.displayName = "Tabs.Content";
|
|
11
|
+
Scroll.displayName = "Tabs.Scroll";
|
|
12
|
+
ScrollButton.displayName = "Tabs.ScrollButton";
|
|
7
13
|
const Tabs = Object.assign(Root, {
|
|
8
14
|
List,
|
|
9
15
|
Trigger,
|
|
@@ -24,10 +24,11 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
|
|
26
26
|
const styles = {
|
|
27
|
-
"teddy-tabs__list": "_teddy-
|
|
28
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
29
|
-
"teddy-
|
|
30
|
-
"teddy-
|
|
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"
|
|
31
32
|
};
|
|
32
33
|
const rootClassName = "teddy-tabs";
|
|
33
34
|
const RootContext = React.createContext(void 0);
|
|
@@ -25,7 +25,7 @@ type RootContextType = {
|
|
|
25
25
|
value: string | undefined;
|
|
26
26
|
};
|
|
27
27
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
28
|
-
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
28
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "value" | "defaultValue" | "onValueChange" | "activationMode"> & {
|
|
29
29
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
30
30
|
value?: TabsPrimitive.TabsProps['value'];
|
|
31
31
|
/** Event handler called when the value changes. */
|
|
@@ -5,10 +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-
|
|
9
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
10
|
-
"teddy-
|
|
11
|
-
"teddy-
|
|
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"
|
|
12
13
|
};
|
|
13
14
|
const rootClassName = "teddy-tabs";
|
|
14
15
|
const RootContext = React__default.createContext(void 0);
|
|
@@ -4,20 +4,24 @@ import { ScrollArea } from '../scroll-area';
|
|
|
4
4
|
export type ScrollButtonProps = React.ComponentPropsWithoutRef<typeof ScrollArea.Button>;
|
|
5
5
|
/** */
|
|
6
6
|
export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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
|
+
} & {
|
|
7
9
|
asChild?: boolean | undefined;
|
|
8
10
|
loading?: boolean | undefined;
|
|
9
11
|
fullWidth?: boolean | undefined;
|
|
10
12
|
size?: "sm" | "md" | "lg" | undefined;
|
|
11
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
13
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
12
14
|
} & {
|
|
13
15
|
iconOnly: true;
|
|
14
16
|
"aria-label": string;
|
|
15
17
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
18
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
19
|
+
} & {
|
|
16
20
|
asChild?: boolean | undefined;
|
|
17
21
|
loading?: boolean | undefined;
|
|
18
22
|
fullWidth?: boolean | undefined;
|
|
19
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
24
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
21
25
|
} & {
|
|
22
26
|
iconOnly?: false | undefined;
|
|
23
27
|
"aria-label"?: string | undefined;
|
|
@@ -40,7 +40,8 @@ const Trigger = React.forwardRef(
|
|
|
40
40
|
return;
|
|
41
41
|
const newTabWidth = newTab.offsetWidth / tabsContainer.offsetWidth;
|
|
42
42
|
context == null ? void 0 : context.setActiveElement(innerElementRef.current);
|
|
43
|
-
|
|
43
|
+
const width = newTabWidth.toFixed(3);
|
|
44
|
+
tabsContainer.style.setProperty("--_width", width);
|
|
44
45
|
tabsContainer.style.setProperty("--_left", newTab.offsetLeft + "px");
|
|
45
46
|
tabsContainer.style.setProperty("--_duration", tokens_motion_variables.teddyMotionDuration200);
|
|
46
47
|
}
|
|
@@ -21,7 +21,8 @@ const Trigger = React__default.forwardRef(
|
|
|
21
21
|
return;
|
|
22
22
|
const newTabWidth = newTab.offsetWidth / tabsContainer.offsetWidth;
|
|
23
23
|
context == null ? void 0 : context.setActiveElement(innerElementRef.current);
|
|
24
|
-
|
|
24
|
+
const width = newTabWidth.toFixed(3);
|
|
25
|
+
tabsContainer.style.setProperty("--_width", width);
|
|
25
26
|
tabsContainer.style.setProperty("--_left", newTab.offsetLeft + "px");
|
|
26
27
|
tabsContainer.style.setProperty("--_duration", teddyMotionDuration200);
|
|
27
28
|
}
|
|
@@ -28,20 +28,24 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
28
28
|
} & import('react').RefAttributes<HTMLUListElement>>;
|
|
29
29
|
Indicator: import('react').ForwardRefExoticComponent<TextFieldIndicatorProps & import('react').RefAttributes<SVGSVGElement>>;
|
|
30
30
|
Button: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
31
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
32
|
+
} & {
|
|
31
33
|
asChild?: boolean | undefined;
|
|
32
34
|
loading?: boolean | undefined;
|
|
33
35
|
fullWidth?: boolean | undefined;
|
|
34
36
|
size?: "sm" | "md" | "lg" | undefined;
|
|
35
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
37
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
36
38
|
} & {
|
|
37
39
|
iconOnly: true;
|
|
38
40
|
"aria-label": string;
|
|
39
41
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
42
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
43
|
+
} & {
|
|
40
44
|
asChild?: boolean | undefined;
|
|
41
45
|
loading?: boolean | undefined;
|
|
42
46
|
fullWidth?: boolean | undefined;
|
|
43
47
|
size?: "sm" | "md" | "lg" | undefined;
|
|
44
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
48
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
45
49
|
} & {
|
|
46
50
|
iconOnly?: false | undefined;
|
|
47
51
|
"aria-label"?: string | undefined;
|
|
@@ -5,20 +5,24 @@ export type TextFieldButtonProps = Omit<React.ComponentPropsWithoutRef<typeof Pr
|
|
|
5
5
|
variant?: 'attached' | 'separated';
|
|
6
6
|
};
|
|
7
7
|
export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
8
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
9
|
+
} & {
|
|
8
10
|
asChild?: boolean | undefined;
|
|
9
11
|
loading?: boolean | undefined;
|
|
10
12
|
fullWidth?: boolean | undefined;
|
|
11
13
|
size?: "sm" | "md" | "lg" | undefined;
|
|
12
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
14
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
13
15
|
} & {
|
|
14
16
|
iconOnly: true;
|
|
15
17
|
"aria-label": string;
|
|
16
18
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & 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 & {
|
|
19
|
+
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
20
|
+
} & {
|
|
17
21
|
asChild?: boolean | undefined;
|
|
18
22
|
loading?: boolean | undefined;
|
|
19
23
|
fullWidth?: boolean | undefined;
|
|
20
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
21
|
-
variant?: "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
25
|
+
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
22
26
|
} & {
|
|
23
27
|
iconOnly?: false | undefined;
|
|
24
28
|
"aria-label"?: string | undefined;
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const SwitchPrimitive = require("@radix-ui/react-switch");
|
|
7
|
-
require("../../assets/sprite.
|
|
7
|
+
require("../../assets/sprite.269ba410-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
9
|
const components_label_label = require("../label/label.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -25,10 +25,10 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
}
|
|
26
26
|
const SwitchPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(SwitchPrimitive);
|
|
27
27
|
const styles = {
|
|
28
|
-
"teddy-
|
|
29
|
-
"teddy-
|
|
30
|
-
"teddy-toggle__thumb": "_teddy-
|
|
31
|
-
"teddy-toggle__indicator": "_teddy-
|
|
28
|
+
"teddy-toggle__input": "_teddy-toggle__input_m5h3g_2",
|
|
29
|
+
"teddy-toggle": "_teddy-toggle_m5h3g_2",
|
|
30
|
+
"teddy-toggle__thumb": "_teddy-toggle__thumb_m5h3g_81",
|
|
31
|
+
"teddy-toggle__indicator": "_teddy-toggle__indicator_m5h3g_107"
|
|
32
32
|
};
|
|
33
33
|
const rootClassName = "teddy-toggle";
|
|
34
34
|
const ToggleContext = React.createContext(void 0);
|
|
@@ -29,8 +29,8 @@ declare const Toggle: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHT
|
|
|
29
29
|
Input: React.ForwardRefExoticComponent<ToggleInputProps & React.RefAttributes<HTMLButtonElement>>;
|
|
30
30
|
Thumb: React.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchThumbProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
31
31
|
Indicator: React.ForwardRefExoticComponent<Partial<Omit<React.SVGProps<SVGSVGElement> & {
|
|
32
|
-
name: "
|
|
33
|
-
size?: ("
|
|
32
|
+
name: "key" | "search" | "split" | "link" | "add" | "reverse" | "infinite" | "radio" | "visible" | "copy" | "help" | "zoom-out" | "filter" | "x" | "zoom" | "menu" | "map" | "summary" | "time" | "video" | "image" | "stop" | "download" | "alert" | "email" | "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "dislike" | "edit" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "sync" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "volume" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "activity-level" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "job-search" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "snowflake" | "speedometer" | "spyware" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "youtube" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "alert-filled" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
33
|
+
size?: ("sm" | "md" | "lg" | "xl" | "font" | "xxs" | "xs") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
36
|
};
|
|
@@ -2,14 +2,14 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
5
|
-
import "../../assets/sprite.
|
|
5
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
import { Label } from "../label/label.js";
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-
|
|
10
|
-
"teddy-
|
|
11
|
-
"teddy-toggle__thumb": "_teddy-
|
|
12
|
-
"teddy-toggle__indicator": "_teddy-
|
|
9
|
+
"teddy-toggle__input": "_teddy-toggle__input_m5h3g_2",
|
|
10
|
+
"teddy-toggle": "_teddy-toggle_m5h3g_2",
|
|
11
|
+
"teddy-toggle__thumb": "_teddy-toggle__thumb_m5h3g_81",
|
|
12
|
+
"teddy-toggle__indicator": "_teddy-toggle__indicator_m5h3g_107"
|
|
13
13
|
};
|
|
14
14
|
const rootClassName = "teddy-toggle";
|
|
15
15
|
const ToggleContext = React__default.createContext(void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_uo1cy_26",
|
|
3
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_uo1cy_1",
|
|
4
|
+
"teddy-fade-in": "_teddy-fade-in_uo1cy_1",
|
|
5
|
+
"teddy-fade-out": "_teddy-fade-out_uo1cy_1",
|
|
6
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_uo1cy_56",
|
|
7
|
+
"teddy-drawer__content": "_teddy-drawer__content_uo1cy_62",
|
|
8
|
+
"drawer-content-show": "_drawer-content-show_uo1cy_1",
|
|
9
|
+
"drawer-content-hide": "_drawer-content-hide_uo1cy_1",
|
|
10
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_uo1cy_87"
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
styles as s
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = {
|
|
3
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_uo1cy_26",
|
|
4
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_uo1cy_1",
|
|
5
|
+
"teddy-fade-in": "_teddy-fade-in_uo1cy_1",
|
|
6
|
+
"teddy-fade-out": "_teddy-fade-out_uo1cy_1",
|
|
7
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_uo1cy_56",
|
|
8
|
+
"teddy-drawer__content": "_teddy-drawer__content_uo1cy_62",
|
|
9
|
+
"drawer-content-show": "_drawer-content-show_uo1cy_1",
|
|
10
|
+
"drawer-content-hide": "_drawer-content-hide_uo1cy_1",
|
|
11
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_uo1cy_87"
|
|
12
|
+
};
|
|
13
|
+
exports.styles = styles;
|
package/dist/icons/category.cjs
CHANGED
|
@@ -33,6 +33,7 @@ const iconCategories = [
|
|
|
33
33
|
{ category: "action", name: "send" },
|
|
34
34
|
{ category: "action", name: "settings" },
|
|
35
35
|
{ category: "action", name: "share" },
|
|
36
|
+
{ category: "action", name: "shortcut" },
|
|
36
37
|
{ category: "action", name: "shuffle" },
|
|
37
38
|
{ category: "action", name: "sync" },
|
|
38
39
|
{ category: "action", name: "skip-back-10sec" },
|
package/dist/icons/category.d.ts
CHANGED
package/dist/icons/category.js
CHANGED
|
@@ -31,6 +31,7 @@ const iconCategories = [
|
|
|
31
31
|
{ category: "action", name: "send" },
|
|
32
32
|
{ category: "action", name: "settings" },
|
|
33
33
|
{ category: "action", name: "share" },
|
|
34
|
+
{ category: "action", name: "shortcut" },
|
|
34
35
|
{ category: "action", name: "shuffle" },
|
|
35
36
|
{ category: "action", name: "sync" },
|
|
36
37
|
{ category: "action", name: "skip-back-10sec" },
|
package/dist/icons/name.cjs
CHANGED
package/dist/icons/name.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const iconNames: readonly ["alarm-off", "alarm-on", "attachment", "bookmark-filled", "bookmark", "copy-filled", "copy", "dislike", "download", "edit", "filter", "heart-filled", "heart", "invisible", "like", "lock-open", "lock", "login", "logout", "maximize", "minimize", "mute", "password-invisible", "password-visible", "play-filled", "play", "remove-filled", "remove", "save", "send", "settings", "share", "shuffle", "sync", "skip-back-10sec", "skip-back-30sec", "skip-forward-10sec", "skip-forward-30sec", "star-filled", "star", "switch-arrows", "tv-next", "tv-pause", "tv-previous", "tv-stop", "upload", "visible", "volume", "zoom-out", "zoom", "connected-building", "home", "hospital", "industry", "premises-datacenter", "premises-large", "premises-medium", "premises-small", "premises", "store", "address-book", "b2b-customer", "care", "chat-robot", "chat", "child-1", "child-2", "conversation", "customer-dialogue", "dsl-hub", "email", "end-user", "handshake", "headphones", "letter", "mms", "new-contact", "new-group", "news", "parental-guide", "people-hub", "people", "portal", "signature", "smiley-happy", "smiley-sad", "sms", "support", "user-admin", "vcard", "voicemail", "battery", "bluetooth", "broadband", "broken-phone", "cast", "cloud-connect", "connected", "core-router", "daas-device", "data-transfer", "desktop", "devices", "esim-simcard", "esim", "face-id", "fiber", "fingerprint", "fiveg", "fourg", "home-installation", "industrial-iot", "internet", "it-service", "laptop", "mobile-broadband", "network", "phone-recycling", "phone-ringing", "phone", "rack", "refill-card", "remote-control", "repair", "roaming", "router", "secure-device", "sense-car", "server", "service-device", "service-supervision", "slow-wifi", "smart-wifi", "smartphone", "smartwatch", "tablet", "trade-phone", "tv", "usb", "voice-switch", "wallplug", "wireless-off", "wireless-weak", "wireless", "world-alert", "world-off", "world-question", "bar-chart", "doc", "document-doc", "document-edit", "document-pdf", "document-ppt", "excel", "folder-copy", "folder-new", "folder", "gif", "graph", "media-content", "org-chart", "pie-chart", "print", "register", "report", "simcard", "spell-check", "summary", "credit-card", "euro", "invoice", "kontantkort", "kr", "late-payment", "money-back-euro", "money-back-kr", "money-euro", "money-kr", "pay-monthly-euro", "pay-monthly-kr", "pay-once-euro", "pay-once-kr", "payment-success", "savings", "wallet", "airplay", "camera", "entertainment", "external", "film", "games", "image", "link", "megaphone", "microphone", "music", "player-settings", "record", "stream", "trailer", "video-conference", "video", "activity-level", "add", "ai-robot", "bag", "basketball", "blood-pressure", "bulb", "business-continuity", "business-intelligence", "calendar", "cart", "close-circle", "cloud", "coffee", "compass", "construction", "cookie", "delivery", "drone", "education", "efficiency", "environment", "facemask", "flag", "focus", "food", "fraud", "getting-started", "home-care", "infinite", "job-search", "key", "layers", "map", "measuring-health", "moisture", "offering", "offshore", "optimization", "pebble", "pet-dog", "pin", "plane", "plus-minus", "police", "power-grid", "present", "press-button", "price", "pulse", "radio", "recycle", "reservation", "reverse", "route", "ruler", "satellite", "secured-1", "secured-2", "security-camera", "shopping", "snowflake", "speedometer", "spyware", "split", "stop", "suitcase", "sustainability", "tag", "temperature", "thinking", "time", "train", "transfer", "undo", "wavelength", "weather", "world", "android", "apple", "bankid-norway", "bankid", "facebook", "instagram", "youtube", "linkedin", "snapchat", "telia-logo", "whatsapp", "windows", "x", "alert-filled", "alert", "check-circle-filled", "check-circle", "error-filled", "error", "help", "info-filled", "info", "question-filled", "question", "warning", "arrow-down", "arrow-left", "arrow-right", "arrow-subdirectory", "arrow-up", "card-view", "checkmark-bold", "checkmark", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "close", "grid-view", "list-view", "menu", "minus-bold", "minus", "more-horizontal", "more-vertical", "plus", "search", "services", "sorter", "table-view"];
|
|
1
|
+
export declare const iconNames: readonly ["alarm-off", "alarm-on", "attachment", "bookmark-filled", "bookmark", "copy-filled", "copy", "dislike", "download", "edit", "filter", "heart-filled", "heart", "invisible", "like", "lock-open", "lock", "login", "logout", "maximize", "minimize", "mute", "password-invisible", "password-visible", "play-filled", "play", "remove-filled", "remove", "save", "send", "settings", "share", "shortcut", "shuffle", "sync", "skip-back-10sec", "skip-back-30sec", "skip-forward-10sec", "skip-forward-30sec", "star-filled", "star", "switch-arrows", "tv-next", "tv-pause", "tv-previous", "tv-stop", "upload", "visible", "volume", "zoom-out", "zoom", "connected-building", "home", "hospital", "industry", "premises-datacenter", "premises-large", "premises-medium", "premises-small", "premises", "store", "address-book", "b2b-customer", "care", "chat-robot", "chat", "child-1", "child-2", "conversation", "customer-dialogue", "dsl-hub", "email", "end-user", "handshake", "headphones", "letter", "mms", "new-contact", "new-group", "news", "parental-guide", "people-hub", "people", "portal", "signature", "smiley-happy", "smiley-sad", "sms", "support", "user-admin", "vcard", "voicemail", "battery", "bluetooth", "broadband", "broken-phone", "cast", "cloud-connect", "connected", "core-router", "daas-device", "data-transfer", "desktop", "devices", "esim-simcard", "esim", "face-id", "fiber", "fingerprint", "fiveg", "fourg", "home-installation", "industrial-iot", "internet", "it-service", "laptop", "mobile-broadband", "network", "phone-recycling", "phone-ringing", "phone", "rack", "refill-card", "remote-control", "repair", "roaming", "router", "secure-device", "sense-car", "server", "service-device", "service-supervision", "slow-wifi", "smart-wifi", "smartphone", "smartwatch", "tablet", "trade-phone", "tv", "usb", "voice-switch", "wallplug", "wireless-off", "wireless-weak", "wireless", "world-alert", "world-off", "world-question", "bar-chart", "doc", "document-doc", "document-edit", "document-pdf", "document-ppt", "excel", "folder-copy", "folder-new", "folder", "gif", "graph", "media-content", "org-chart", "pie-chart", "print", "register", "report", "simcard", "spell-check", "summary", "credit-card", "euro", "invoice", "kontantkort", "kr", "late-payment", "money-back-euro", "money-back-kr", "money-euro", "money-kr", "pay-monthly-euro", "pay-monthly-kr", "pay-once-euro", "pay-once-kr", "payment-success", "savings", "wallet", "airplay", "camera", "entertainment", "external", "film", "games", "image", "link", "megaphone", "microphone", "music", "player-settings", "record", "stream", "trailer", "video-conference", "video", "activity-level", "add", "ai-robot", "bag", "basketball", "blood-pressure", "bulb", "business-continuity", "business-intelligence", "calendar", "cart", "close-circle", "cloud", "coffee", "compass", "construction", "cookie", "delivery", "drone", "education", "efficiency", "environment", "facemask", "flag", "focus", "food", "fraud", "getting-started", "home-care", "infinite", "job-search", "key", "layers", "map", "measuring-health", "moisture", "offering", "offshore", "optimization", "pebble", "pet-dog", "pin", "plane", "plus-minus", "police", "power-grid", "present", "press-button", "price", "pulse", "radio", "recycle", "reservation", "reverse", "route", "ruler", "satellite", "secured-1", "secured-2", "security-camera", "shopping", "snowflake", "speedometer", "spyware", "split", "stop", "suitcase", "sustainability", "tag", "temperature", "thinking", "time", "train", "transfer", "undo", "wavelength", "weather", "world", "android", "apple", "bankid-norway", "bankid", "facebook", "instagram", "youtube", "linkedin", "snapchat", "telia-logo", "whatsapp", "windows", "x", "alert-filled", "alert", "check-circle-filled", "check-circle", "error-filled", "error", "help", "info-filled", "info", "question-filled", "question", "warning", "arrow-down", "arrow-left", "arrow-right", "arrow-subdirectory", "arrow-up", "card-view", "checkmark-bold", "checkmark", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "close", "grid-view", "list-view", "menu", "minus-bold", "minus", "more-horizontal", "more-vertical", "plus", "search", "services", "sorter", "table-view"];
|
|
2
2
|
export type IconName = (typeof iconNames)[number];
|
package/dist/icons/name.js
CHANGED
package/dist/main.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_list_index = require("./components/list/index.cjs");
|
|
3
4
|
const components_scrollArea_index = require("./components/scroll-area/index.cjs");
|
|
4
5
|
const components_tabs_index = require("./components/tabs/index.cjs");
|
|
5
6
|
const components_drawer_index = require("./components/drawer/index.cjs");
|
|
@@ -17,10 +18,12 @@ const components_toggle_toggle = require("./components/toggle/toggle.cjs");
|
|
|
17
18
|
const components_accordion_index = require("./components/accordion/index.cjs");
|
|
18
19
|
const components_link_link = require("./components/link/link.cjs");
|
|
19
20
|
const components_badge_badge = require("./components/badge/badge.cjs");
|
|
21
|
+
const components_badge_alertBadge = require("./components/badge/alert-badge.cjs");
|
|
22
|
+
const components_badge_counterBadge = require("./components/badge/counter-badge.cjs");
|
|
20
23
|
const components_button_button = require("./components/button/button.cjs");
|
|
21
24
|
const components_fieldErrorText_fieldErrorText = require("./components/field-error-text/field-error-text.cjs");
|
|
22
25
|
const components_helperText_helperText = require("./components/helper-text/helper-text.cjs");
|
|
23
|
-
const iconsHref = require("./assets/sprite.
|
|
26
|
+
const iconsHref = require("./assets/sprite.269ba410-teddy.svg");
|
|
24
27
|
const components_icon_icon = require("./components/icon/icon.cjs");
|
|
25
28
|
const components_icon_AllIcons = require("./components/icon/AllIcons.cjs");
|
|
26
29
|
const components_input_index = require("./components/input/index.cjs");
|
|
@@ -39,6 +42,7 @@ const tokens_shadow_variables = require("./tokens/shadow/variables.cjs");
|
|
|
39
42
|
const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
40
43
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
41
44
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
45
|
+
exports.List = components_list_index.List;
|
|
42
46
|
exports.ScrollArea = components_scrollArea_index.ScrollArea;
|
|
43
47
|
exports.Tabs = components_tabs_index.Tabs;
|
|
44
48
|
exports.Drawer = components_drawer_index.Drawer;
|
|
@@ -56,6 +60,8 @@ exports.Toggle = components_toggle_toggle.Toggle;
|
|
|
56
60
|
exports.Accordion = components_accordion_index.Accordion;
|
|
57
61
|
exports.Link = components_link_link.Link;
|
|
58
62
|
exports.Badge = components_badge_badge.Badge;
|
|
63
|
+
exports.AlertBadge = components_badge_alertBadge.AlertBadge;
|
|
64
|
+
exports.CounterBadge = components_badge_counterBadge.CounterBadge;
|
|
59
65
|
exports.Button = components_button_button.Button;
|
|
60
66
|
exports.FieldErrorText = components_fieldErrorText_fieldErrorText.FieldErrorText;
|
|
61
67
|
exports.HelperText = components_helperText_helperText.HelperText;
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { List } from "./components/list/index.js";
|
|
1
2
|
import { ScrollArea } from "./components/scroll-area/index.js";
|
|
2
3
|
import { Tabs } from "./components/tabs/index.js";
|
|
3
4
|
import { Drawer } from "./components/drawer/index.js";
|
|
@@ -15,10 +16,12 @@ import { Toggle } from "./components/toggle/toggle.js";
|
|
|
15
16
|
import { Accordion } from "./components/accordion/index.js";
|
|
16
17
|
import { Link } from "./components/link/link.js";
|
|
17
18
|
import { Badge } from "./components/badge/badge.js";
|
|
19
|
+
import { AlertBadge } from "./components/badge/alert-badge.js";
|
|
20
|
+
import { CounterBadge } from "./components/badge/counter-badge.js";
|
|
18
21
|
import { Button } from "./components/button/button.js";
|
|
19
22
|
import { FieldErrorText } from "./components/field-error-text/field-error-text.js";
|
|
20
23
|
import { HelperText } from "./components/helper-text/helper-text.js";
|
|
21
|
-
import { default as default2 } from "./assets/sprite.
|
|
24
|
+
import { default as default2 } from "./assets/sprite.269ba410-teddy.svg";
|
|
22
25
|
import { Icon } from "./components/icon/icon.js";
|
|
23
26
|
import { default as default3 } from "./components/icon/AllIcons.js";
|
|
24
27
|
import { InputGroup } from "./components/input/index.js";
|
|
@@ -39,12 +42,14 @@ import { teddyTypographyFamilyDefault, teddyTypographyFamilyDisplay, teddyTypogr
|
|
|
39
42
|
import { I } from "./components/input/input-group.js";
|
|
40
43
|
export {
|
|
41
44
|
Accordion,
|
|
45
|
+
AlertBadge,
|
|
42
46
|
default3 as AllIcons,
|
|
43
47
|
Badge,
|
|
44
48
|
Box,
|
|
45
49
|
Button,
|
|
46
50
|
Card,
|
|
47
51
|
Chip,
|
|
52
|
+
CounterBadge,
|
|
48
53
|
Drawer,
|
|
49
54
|
FieldErrorText,
|
|
50
55
|
Flex,
|
|
@@ -57,6 +62,7 @@ export {
|
|
|
57
62
|
InputGroup,
|
|
58
63
|
Label,
|
|
59
64
|
Link,
|
|
65
|
+
List,
|
|
60
66
|
Modal,
|
|
61
67
|
NavigationMenu,
|
|
62
68
|
Notification,
|