@telia/teddy 0.0.53 → 0.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/breadcrumbs/breadcrumbs-item.cjs +12 -0
- package/dist/components/breadcrumbs/breadcrumbs-item.d.ts +5 -0
- package/dist/components/breadcrumbs/breadcrumbs-item.js +12 -0
- package/dist/components/breadcrumbs/breadcrumbs-link.cjs +30 -0
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +10 -0
- package/dist/components/breadcrumbs/breadcrumbs-link.js +30 -0
- package/dist/components/breadcrumbs/breadcrumbs-list.cjs +12 -0
- package/dist/components/breadcrumbs/breadcrumbs-list.d.ts +4 -0
- package/dist/components/breadcrumbs/breadcrumbs-list.js +12 -0
- package/dist/components/breadcrumbs/breadcrumbs-page.cjs +20 -0
- package/dist/components/breadcrumbs/breadcrumbs-page.d.ts +5 -0
- package/dist/components/breadcrumbs/breadcrumbs-page.js +20 -0
- package/dist/components/breadcrumbs/breadcrumbs-root.cjs +29 -0
- package/dist/components/breadcrumbs/breadcrumbs-root.d.ts +11 -0
- package/dist/components/breadcrumbs/breadcrumbs-root.js +29 -0
- package/dist/components/breadcrumbs/breadcrumbs-separator.cjs +25 -0
- package/dist/components/breadcrumbs/breadcrumbs-separator.d.ts +4 -0
- package/dist/components/breadcrumbs/breadcrumbs-separator.js +25 -0
- package/dist/components/breadcrumbs/index.cjs +22 -0
- package/dist/components/breadcrumbs/index.d.ts +27 -0
- package/dist/components/breadcrumbs/index.js +22 -0
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/index.d.ts +1 -1
- package/dist/components/chip/chip-indicator.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/color-dot/index.d.ts +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +1 -1
- package/dist/components/expandable-card/index.d.ts +1 -1
- package/dist/components/index.cjs +5 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +5 -2
- package/dist/components/modal/index.cjs +2 -2
- package/dist/components/modal/index.js +2 -2
- package/dist/components/modal/modal.cjs +14 -184
- package/dist/components/modal/modal.js +14 -167
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +2 -2
- package/dist/components/navigation-menu/global-navigation/utils.cjs +6 -6
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +10 -10
- package/dist/components/navigation-menu/global-navigation/utils.js +6 -6
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/notabene/notabene-icon.d.ts +2 -2
- package/dist/components/notification/notification.d.ts +5 -5
- package/dist/components/radio-card-group/index.cjs +6 -0
- package/dist/components/radio-card-group/index.d.ts +67 -0
- package/dist/components/radio-card-group/index.js +6 -0
- package/dist/components/radio-card-group/radio-card-group-content.cjs +47 -0
- package/dist/components/radio-card-group/radio-card-group-content.d.ts +5 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +47 -0
- package/dist/components/radio-card-group/radio-card-group-indicator.cjs +32 -0
- package/dist/components/radio-card-group/radio-card-group-indicator.d.ts +5 -0
- package/dist/components/radio-card-group/radio-card-group-indicator.js +15 -0
- package/dist/components/radio-card-group/radio-card-group-item-body.cjs +48 -0
- package/dist/components/radio-card-group/radio-card-group-item-body.d.ts +8 -0
- package/dist/components/radio-card-group/radio-card-group-item-body.js +48 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +282 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.d.ts +8 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +264 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +50 -0
- package/dist/components/radio-card-group/radio-card-group-item.d.ts +17 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +50 -0
- package/dist/components/radio-card-group/radio-card-group-label.cjs +29 -0
- package/dist/components/radio-card-group/radio-card-group-label.d.ts +65 -0
- package/dist/components/radio-card-group/radio-card-group-label.js +29 -0
- package/dist/components/radio-card-group/radio-card-group-root.cjs +49 -0
- package/dist/components/radio-card-group/radio-card-group-root.d.ts +52 -0
- package/dist/components/radio-card-group/radio-card-group-root.js +32 -0
- package/dist/components/scroll-area/index.d.ts +1 -1
- package/dist/components/scroll-area/scroll-area-button.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll-button.d.ts +1 -1
- package/dist/components/toggle/toggle.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/main.cjs +5 -2
- package/dist/main.js +5 -2
- package/dist/style.css +1135 -889
- package/dist/utils/generate-styling/grid.d.ts +24 -24
- package/dist/utils/generate-styling/index.d.ts +16 -16
- package/dist/utils/generate-styling/util.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./radio-card-group-root.js";
|
|
5
|
+
import "@radix-ui/react-radio-group";
|
|
6
|
+
import "../breadcrumbs/index.js";
|
|
7
|
+
import { a, I } from "./radio-card-group-item-title.js";
|
|
8
|
+
import "../ribbon/index.js";
|
|
9
|
+
import "../expandable-card/index.js";
|
|
10
|
+
import "../color-dot/color-dot-root.js";
|
|
11
|
+
import "../progress-bar/progress-bar.js";
|
|
12
|
+
import "../notabene/index.js";
|
|
13
|
+
import "../tooltip/index.js";
|
|
14
|
+
import "../list/index.js";
|
|
15
|
+
import "../scroll-area/index.js";
|
|
16
|
+
import "../tabs/index.js";
|
|
17
|
+
import "../drawer/index.js";
|
|
18
|
+
import "../image/image.js";
|
|
19
|
+
import "../chip/index.js";
|
|
20
|
+
import "../../assets/sprite.269ba410-teddy.svg";
|
|
21
|
+
import "../notification/notification.js";
|
|
22
|
+
import "../radio-group/index.js";
|
|
23
|
+
import "../box/box.js";
|
|
24
|
+
import "../flex/flex.js";
|
|
25
|
+
import "../card/index.js";
|
|
26
|
+
import "../grid/grid.js";
|
|
27
|
+
import "../navigation-menu/navigation-menu.js";
|
|
28
|
+
import "../navigation-menu/global-navigation/global-navigation-my-pages.js";
|
|
29
|
+
import "../toggle/toggle.js";
|
|
30
|
+
import "../accordion/index.js";
|
|
31
|
+
import "../link/link.js";
|
|
32
|
+
import "../badge/badge.js";
|
|
33
|
+
import "../badge/alert-badge.js";
|
|
34
|
+
import "../badge/counter-badge.js";
|
|
35
|
+
import "../button/button.js";
|
|
36
|
+
import "../field-error-text/field-error-text.js";
|
|
37
|
+
import "../helper-text/helper-text.js";
|
|
38
|
+
import "../input/index.js";
|
|
39
|
+
import "../label/label.js";
|
|
40
|
+
import "../spinner/spinner.js";
|
|
41
|
+
import "../text/text.js";
|
|
42
|
+
import "../text-field/index.js";
|
|
43
|
+
import "../heading/heading.js";
|
|
44
|
+
import "../visually-hidden/visually-hidden.js";
|
|
45
|
+
import "../text-spacing/text-spacing.js";
|
|
46
|
+
import "../../utils/composeRefs.js";
|
|
47
|
+
export {
|
|
48
|
+
a as Item,
|
|
49
|
+
I as ItemContext
|
|
50
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
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_radioCardGroup_radioCardGroupRoot = require("./radio-card-group-root.cjs");
|
|
7
|
+
const reactSlot = require("@radix-ui/react-slot");
|
|
8
|
+
const GroupLabel = React.forwardRef(
|
|
9
|
+
({ className, asChild, as: Tag = "h3", children, ...props }, forwardRef) => {
|
|
10
|
+
const context = React.useContext(components_radioCardGroup_radioCardGroupRoot.RootContext);
|
|
11
|
+
const classes = clsx(
|
|
12
|
+
[components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__card-group-label`]],
|
|
13
|
+
{
|
|
14
|
+
[components_radioCardGroup_radioCardGroupRoot.styles[`${components_radioCardGroup_radioCardGroupRoot.rootClassName}__card-group-label--required`]]: context == null ? void 0 : context.required
|
|
15
|
+
},
|
|
16
|
+
className
|
|
17
|
+
);
|
|
18
|
+
const fallbackId = React.useId();
|
|
19
|
+
const id = props.id || fallbackId;
|
|
20
|
+
React.useEffect(() => {
|
|
21
|
+
if (context) {
|
|
22
|
+
context.setGroupLabelId(id);
|
|
23
|
+
}
|
|
24
|
+
}, [id, context]);
|
|
25
|
+
return /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slot, { ...props, id, ref: forwardRef, className: classes, children: asChild ? children : Tag ? /* @__PURE__ */ jsxRuntime.jsx(Tag, { children }) : null });
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
GroupLabel.displayName = "GroupLabel";
|
|
29
|
+
exports.GroupLabel = GroupLabel;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type GroupLabelProps = {
|
|
4
|
+
id?: string;
|
|
5
|
+
asChild?: false;
|
|
6
|
+
} & (AsChildProps | H2Props | H3Props | H4Props | H5Props | H6Props);
|
|
7
|
+
type AsChildProps = {
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, the children element will be cloned and used instead of the heading element.
|
|
10
|
+
*/
|
|
11
|
+
asChild: true;
|
|
12
|
+
as?: never;
|
|
13
|
+
} & React.ComponentPropsWithoutRef<'h1'>;
|
|
14
|
+
type H2Props = {
|
|
15
|
+
as?: 'h2';
|
|
16
|
+
asChild?: false;
|
|
17
|
+
} & React.ComponentPropsWithoutRef<'h2'>;
|
|
18
|
+
type H3Props = {
|
|
19
|
+
as?: 'h3';
|
|
20
|
+
asChild?: false;
|
|
21
|
+
} & React.ComponentPropsWithoutRef<'h3'>;
|
|
22
|
+
type H4Props = {
|
|
23
|
+
as?: 'h4';
|
|
24
|
+
asChild?: false;
|
|
25
|
+
} & React.ComponentPropsWithoutRef<'h4'>;
|
|
26
|
+
type H5Props = {
|
|
27
|
+
as?: 'h5';
|
|
28
|
+
asChild?: false;
|
|
29
|
+
} & React.ComponentPropsWithoutRef<'h5'>;
|
|
30
|
+
type H6Props = {
|
|
31
|
+
as?: 'h6';
|
|
32
|
+
asChild?: false;
|
|
33
|
+
} & React.ComponentPropsWithoutRef<'h6'>;
|
|
34
|
+
export declare const GroupLabel: React.ForwardRefExoticComponent<(({
|
|
35
|
+
id?: string | undefined;
|
|
36
|
+
asChild?: false | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
as?: "h2" | undefined;
|
|
39
|
+
asChild?: false | undefined;
|
|
40
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
asChild?: false | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
as?: "h3" | undefined;
|
|
45
|
+
asChild?: false | undefined;
|
|
46
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
47
|
+
id?: string | undefined;
|
|
48
|
+
asChild?: false | undefined;
|
|
49
|
+
} & {
|
|
50
|
+
as?: "h4" | undefined;
|
|
51
|
+
asChild?: false | undefined;
|
|
52
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
53
|
+
id?: string | undefined;
|
|
54
|
+
asChild?: false | undefined;
|
|
55
|
+
} & {
|
|
56
|
+
as?: "h5" | undefined;
|
|
57
|
+
asChild?: false | undefined;
|
|
58
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">) | ({
|
|
59
|
+
id?: string | undefined;
|
|
60
|
+
asChild?: false | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
as?: "h6" | undefined;
|
|
63
|
+
asChild?: false | undefined;
|
|
64
|
+
} & Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref">)) & React.RefAttributes<HTMLButtonElement>>;
|
|
65
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
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 "./radio-card-group-root.js";
|
|
5
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
+
const GroupLabel = React__default.forwardRef(
|
|
7
|
+
({ className, asChild, as: Tag = "h3", children, ...props }, forwardRef) => {
|
|
8
|
+
const context = React__default.useContext(RootContext);
|
|
9
|
+
const classes = clsx(
|
|
10
|
+
[styles[`${rootClassName}__card-group-label`]],
|
|
11
|
+
{
|
|
12
|
+
[styles[`${rootClassName}__card-group-label--required`]]: context == null ? void 0 : context.required
|
|
13
|
+
},
|
|
14
|
+
className
|
|
15
|
+
);
|
|
16
|
+
const fallbackId = React__default.useId();
|
|
17
|
+
const id = props.id || fallbackId;
|
|
18
|
+
React__default.useEffect(() => {
|
|
19
|
+
if (context) {
|
|
20
|
+
context.setGroupLabelId(id);
|
|
21
|
+
}
|
|
22
|
+
}, [id, context]);
|
|
23
|
+
return /* @__PURE__ */ jsx(Slot, { ...props, id, ref: forwardRef, className: classes, children: asChild ? children : Tag ? /* @__PURE__ */ jsx(Tag, { children }) : null });
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
GroupLabel.displayName = "GroupLabel";
|
|
27
|
+
export {
|
|
28
|
+
GroupLabel
|
|
29
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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 RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
9
|
+
if (e) {
|
|
10
|
+
for (const k in e) {
|
|
11
|
+
if (k !== "default") {
|
|
12
|
+
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: () => e[k]
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
const RadioGroupPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadioGroupPrimitive);
|
|
24
|
+
const styles = {
|
|
25
|
+
"teddy-radio-card-group": "_teddy-radio-card-group_pfspq_1",
|
|
26
|
+
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-label_pfspq_9",
|
|
27
|
+
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-wrapper_pfspq_9",
|
|
28
|
+
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-wrapper_pfspq_12",
|
|
29
|
+
"teddy-radio-card-group__content": "_teddy-radio-card-group__content_pfspq_9",
|
|
30
|
+
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-item_pfspq_18",
|
|
31
|
+
"teddy-radio-card-group__trigger": "_teddy-radio-card-group__trigger_pfspq_35",
|
|
32
|
+
"teddy-radio-card-group__indicator": "_teddy-radio-card-group__indicator_pfspq_119",
|
|
33
|
+
"teddy-radio-card-group__illustration": "_teddy-radio-card-group__illustration_pfspq_146",
|
|
34
|
+
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--required_pfspq_163"
|
|
35
|
+
};
|
|
36
|
+
const rootClassName = "teddy-radio-card-group";
|
|
37
|
+
const RootContext = React.createContext(void 0);
|
|
38
|
+
const Root = React.forwardRef(
|
|
39
|
+
({ className, children, ...props }, forwardRef) => {
|
|
40
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
41
|
+
const [groupLabelId, setGroupLabelId] = React.useState();
|
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { setGroupLabelId, required: props.required }, children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Root, { "aria-labelledby": groupLabelId, ...props, ref: forwardRef, className: classes, children }) });
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
Root.displayName = "RadioGroup";
|
|
46
|
+
exports.Root = Root;
|
|
47
|
+
exports.RootContext = RootContext;
|
|
48
|
+
exports.rootClassName = rootClassName;
|
|
49
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
4
|
+
export declare const rootClassName = "teddy-radio-card-group";
|
|
5
|
+
export declare const RootContext: React.Context<{
|
|
6
|
+
setGroupLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
7
|
+
required: boolean | undefined;
|
|
8
|
+
} | undefined>;
|
|
9
|
+
export type RootProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> & {
|
|
10
|
+
/** The value of the radio item that should be checked when initially rendered. Use when you do not need to control the state of the radio items. */
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
/** When `true`, prevents the user from interacting with radio items. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** The name of the group. Submitted with its owning form as part of a name/value pair. */
|
|
15
|
+
name?: string;
|
|
16
|
+
/** When `true`, indicates that the user must check a radio item before the owning form can be submitted. */
|
|
17
|
+
required?: boolean;
|
|
18
|
+
/** The controlled value of the radio item to check. Should be used in conjunction with onValueChange. */
|
|
19
|
+
value?: string;
|
|
20
|
+
/** Event handler called when the value changes. */
|
|
21
|
+
onValueChange?: (value: string) => void;
|
|
22
|
+
/** The orientation of the component. */
|
|
23
|
+
orientation?: 'horizontal' | 'vertical';
|
|
24
|
+
/** The reading direction of the radio group. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode. */
|
|
25
|
+
dir?: 'ltr' | 'rtl';
|
|
26
|
+
/** When true, keyboard navigation will loop from last item to first, and vice versa.
|
|
27
|
+
* @default true
|
|
28
|
+
*/
|
|
29
|
+
loop?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
32
|
+
/** The value of the radio item that should be checked when initially rendered. Use when you do not need to control the state of the radio items. */
|
|
33
|
+
defaultValue?: string | undefined;
|
|
34
|
+
/** When `true`, prevents the user from interacting with radio items. */
|
|
35
|
+
disabled?: boolean | undefined;
|
|
36
|
+
/** The name of the group. Submitted with its owning form as part of a name/value pair. */
|
|
37
|
+
name?: string | undefined;
|
|
38
|
+
/** When `true`, indicates that the user must check a radio item before the owning form can be submitted. */
|
|
39
|
+
required?: boolean | undefined;
|
|
40
|
+
/** The controlled value of the radio item to check. Should be used in conjunction with onValueChange. */
|
|
41
|
+
value?: string | undefined;
|
|
42
|
+
/** Event handler called when the value changes. */
|
|
43
|
+
onValueChange?: ((value: string) => void) | undefined;
|
|
44
|
+
/** The orientation of the component. */
|
|
45
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
46
|
+
/** The reading direction of the radio group. If omitted, inherits globally from DirectionProvider or assumes LTR (left-to-right) reading mode. */
|
|
47
|
+
dir?: "ltr" | "rtl" | undefined;
|
|
48
|
+
/** When true, keyboard navigation will loop from last item to first, and vice versa.
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
loop?: boolean | undefined;
|
|
52
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
5
|
+
const styles = {
|
|
6
|
+
"teddy-radio-card-group": "_teddy-radio-card-group_pfspq_1",
|
|
7
|
+
"teddy-radio-card-group__card-group-label": "_teddy-radio-card-group__card-group-label_pfspq_9",
|
|
8
|
+
"teddy-radio-card-group__content-wrapper": "_teddy-radio-card-group__content-wrapper_pfspq_9",
|
|
9
|
+
"teddy-radio-card-group__title-wrapper": "_teddy-radio-card-group__title-wrapper_pfspq_12",
|
|
10
|
+
"teddy-radio-card-group__content": "_teddy-radio-card-group__content_pfspq_9",
|
|
11
|
+
"teddy-radio-card-group__card-item": "_teddy-radio-card-group__card-item_pfspq_18",
|
|
12
|
+
"teddy-radio-card-group__trigger": "_teddy-radio-card-group__trigger_pfspq_35",
|
|
13
|
+
"teddy-radio-card-group__indicator": "_teddy-radio-card-group__indicator_pfspq_119",
|
|
14
|
+
"teddy-radio-card-group__illustration": "_teddy-radio-card-group__illustration_pfspq_146",
|
|
15
|
+
"teddy-radio-card-group__card-group-label--required": "_teddy-radio-card-group__card-group-label--required_pfspq_163"
|
|
16
|
+
};
|
|
17
|
+
const rootClassName = "teddy-radio-card-group";
|
|
18
|
+
const RootContext = React__default.createContext(void 0);
|
|
19
|
+
const Root = React__default.forwardRef(
|
|
20
|
+
({ className, children, ...props }, forwardRef) => {
|
|
21
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
22
|
+
const [groupLabelId, setGroupLabelId] = React__default.useState();
|
|
23
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { setGroupLabelId, required: props.required }, children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Root, { "aria-labelledby": groupLabelId, ...props, ref: forwardRef, className: classes, children }) });
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
Root.displayName = "RadioGroup";
|
|
27
|
+
export {
|
|
28
|
+
Root,
|
|
29
|
+
RootContext,
|
|
30
|
+
rootClassName,
|
|
31
|
+
styles as s
|
|
32
|
+
};
|
|
@@ -31,7 +31,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
31
31
|
iconOnly?: false | undefined;
|
|
32
32
|
"aria-label"?: string | undefined;
|
|
33
33
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
|
|
34
|
-
direction?: "
|
|
34
|
+
direction?: "right" | "left" | "up" | "down" | undefined;
|
|
35
35
|
hidden?: boolean | undefined;
|
|
36
36
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
37
37
|
};
|
|
@@ -34,7 +34,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
34
34
|
"aria-label"?: string | undefined;
|
|
35
35
|
} & React.RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
|
|
36
36
|
/** In which direction the button should point and scroll to */
|
|
37
|
-
direction?: "
|
|
37
|
+
direction?: "right" | "left" | "up" | "down" | undefined;
|
|
38
38
|
/** Hidden will fade the button out. Used when the scrollbar is at the end */
|
|
39
39
|
hidden?: boolean | undefined;
|
|
40
40
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -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">, "defaultValue" | "value" | "onValueChange" | "activationMode"> & {
|
|
9
9
|
value?: string | undefined;
|
|
10
10
|
onValueChange?: ((value: string) => void) | undefined;
|
|
11
11
|
defaultValue?: string | undefined;
|
|
@@ -49,7 +49,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
49
49
|
iconOnly?: false | undefined;
|
|
50
50
|
"aria-label"?: string | undefined;
|
|
51
51
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
|
|
52
|
-
direction?: "
|
|
52
|
+
direction?: "right" | "left" | "up" | "down" | undefined;
|
|
53
53
|
hidden?: boolean | undefined;
|
|
54
54
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
55
55
|
};
|
|
@@ -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">, "defaultValue" | "value" | "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. */
|
|
@@ -26,6 +26,6 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
26
26
|
iconOnly?: false | undefined;
|
|
27
27
|
"aria-label"?: string | undefined;
|
|
28
28
|
} & React.RefAttributes<HTMLButtonElement>, "ref">, "hidden"> & {
|
|
29
|
-
direction?: "
|
|
29
|
+
direction?: "right" | "left" | "up" | "down" | undefined;
|
|
30
30
|
hidden?: boolean | undefined;
|
|
31
31
|
} & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -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: "link" | "map" | "menu" | "search" | "summary" | "time" | "video" | "filter" | "image" | "stop" | "key" | "x" | "download" | "split" | "alert" | "radio" | "email" | "copy" | "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" | "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" | "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" | "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" | "layers" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "recycle" | "reservation" | "reverse" | "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" | "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" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "services" | "sorter" | "table-view";
|
|
33
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
34
34
|
children?: React.ReactNode;
|
|
35
35
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
36
|
};
|
|
@@ -15,14 +15,14 @@ export declare const Tooltip: typeof Root & {
|
|
|
15
15
|
onPointerDownOutside?: ((event: CustomEvent<{
|
|
16
16
|
originalEvent: PointerEvent;
|
|
17
17
|
}>) => void) | undefined;
|
|
18
|
-
side?: "top" | "bottom" | "
|
|
18
|
+
side?: "top" | "bottom" | "right" | "left" | undefined;
|
|
19
19
|
sideOffset?: number | undefined;
|
|
20
|
-
align?: "
|
|
20
|
+
align?: "center" | "end" | "start" | undefined;
|
|
21
21
|
alignOffset?: number | undefined;
|
|
22
22
|
arrowPadding?: number | undefined;
|
|
23
23
|
avoidCollisions?: boolean | undefined;
|
|
24
24
|
collisionBoundary?: (Element | null) | (Element | null)[] | undefined;
|
|
25
|
-
collisionPadding?: number | Partial<Record<"top" | "bottom" | "
|
|
25
|
+
collisionPadding?: number | Partial<Record<"top" | "bottom" | "right" | "left", number>> | undefined;
|
|
26
26
|
sticky?: "always" | "partial" | undefined;
|
|
27
27
|
hideWhenDetached?: boolean | undefined;
|
|
28
28
|
updatePositionStrategy?: "always" | "optimized" | undefined;
|
package/dist/main.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_breadcrumbs_index = require("./components/breadcrumbs/index.cjs");
|
|
4
|
+
const components_radioCardGroup_radioCardGroupItemTitle = require("./components/radio-card-group/radio-card-group-item-title.cjs");
|
|
3
5
|
const components_ribbon_index = require("./components/ribbon/index.cjs");
|
|
4
6
|
const components_expandableCard_index = require("./components/expandable-card/index.cjs");
|
|
5
7
|
const components_colorDot_index = require("./components/color-dot/index.cjs");
|
|
@@ -13,7 +15,6 @@ const components_drawer_index = require("./components/drawer/index.cjs");
|
|
|
13
15
|
const components_image_image = require("./components/image/image.cjs");
|
|
14
16
|
const components_chip_index = require("./components/chip/index.cjs");
|
|
15
17
|
const components_datePicker_datePicker = require("./components/date-picker/date-picker.cjs");
|
|
16
|
-
const components_modal_modal = require("./components/modal/modal.cjs");
|
|
17
18
|
const components_notification_notification = require("./components/notification/notification.cjs");
|
|
18
19
|
const components_radioGroup_index = require("./components/radio-group/index.cjs");
|
|
19
20
|
const components_box_box = require("./components/box/box.cjs");
|
|
@@ -50,6 +51,9 @@ const tokens_shadow_variables = require("./tokens/shadow/variables.cjs");
|
|
|
50
51
|
const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
51
52
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
52
53
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
54
|
+
exports.Breadcrumbs = components_breadcrumbs_index.Breadcrumbs;
|
|
55
|
+
exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal;
|
|
56
|
+
exports.RadioCardGroup = components_radioCardGroup_radioCardGroupItemTitle.RadioCardGroup;
|
|
53
57
|
exports.Ribbon = components_ribbon_index.Ribbon;
|
|
54
58
|
exports.ExpandableCard = components_expandableCard_index.ExpandableCard;
|
|
55
59
|
exports.ColorDot = components_colorDot_index.ColorDot;
|
|
@@ -63,7 +67,6 @@ exports.Drawer = components_drawer_index.Drawer;
|
|
|
63
67
|
exports.Image = components_image_image.Image;
|
|
64
68
|
exports.Chip = components_chip_index.Chip;
|
|
65
69
|
exports.DatePicker = components_datePicker_datePicker.DatePicker;
|
|
66
|
-
exports.Modal = components_modal_modal.Modal;
|
|
67
70
|
exports.Notification = components_notification_notification.Notification;
|
|
68
71
|
exports.RadioGroup = components_radioGroup_index.RadioGroup;
|
|
69
72
|
exports.Box = components_box_box.Box;
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Breadcrumbs } from "./components/breadcrumbs/index.js";
|
|
2
|
+
import { M, R } from "./components/radio-card-group/radio-card-group-item-title.js";
|
|
1
3
|
import { Ribbon } from "./components/ribbon/index.js";
|
|
2
4
|
import { ExpandableCard } from "./components/expandable-card/index.js";
|
|
3
5
|
import { ColorDot } from "./components/color-dot/index.js";
|
|
@@ -11,7 +13,6 @@ import { Drawer } from "./components/drawer/index.js";
|
|
|
11
13
|
import { Image } from "./components/image/image.js";
|
|
12
14
|
import { Chip } from "./components/chip/index.js";
|
|
13
15
|
import { DatePicker } from "./components/date-picker/date-picker.js";
|
|
14
|
-
import { Modal } from "./components/modal/modal.js";
|
|
15
16
|
import { Notification } from "./components/notification/notification.js";
|
|
16
17
|
import { RadioGroup } from "./components/radio-group/index.js";
|
|
17
18
|
import { Box } from "./components/box/box.js";
|
|
@@ -54,6 +55,7 @@ export {
|
|
|
54
55
|
default3 as AllIcons,
|
|
55
56
|
Badge,
|
|
56
57
|
Box,
|
|
58
|
+
Breadcrumbs,
|
|
57
59
|
Button,
|
|
58
60
|
Card,
|
|
59
61
|
Chip,
|
|
@@ -75,11 +77,12 @@ export {
|
|
|
75
77
|
Label,
|
|
76
78
|
Link,
|
|
77
79
|
List,
|
|
78
|
-
Modal,
|
|
80
|
+
M as Modal,
|
|
79
81
|
NavigationMenu,
|
|
80
82
|
Notabene,
|
|
81
83
|
Notification,
|
|
82
84
|
ProgressBar,
|
|
85
|
+
R as RadioCardGroup,
|
|
83
86
|
RadioGroup,
|
|
84
87
|
Ribbon,
|
|
85
88
|
ScrollArea,
|