@telia/teddy 0.7.16 → 0.7.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/card/card.cjs +52 -52
- package/dist/components/card/card.js +52 -52
- package/dist/components/checkbox-card-group/checkbox-card-group-content.cjs +64 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-content.d.ts +5 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-content.js +64 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +1465 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.d.ts +12 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.js +1446 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-body.cjs +15 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-body.d.ts +5 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-body.js +15 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.cjs +65 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.d.ts +14 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item-title.js +65 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.cjs +66 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.d.ts +22 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.js +66 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-label.cjs +29 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-label.d.ts +65 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-label.js +29 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-root.cjs +42 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-root.d.ts +39 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-root.js +42 -0
- package/dist/components/checkbox-card-group/index.cjs +7 -0
- package/dist/components/checkbox-card-group/index.d.ts +76 -0
- package/dist/components/checkbox-card-group/index.js +7 -0
- package/dist/components/index.cjs +6 -5
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -1
- package/dist/components/modal/index.cjs +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-close.cjs +2 -2
- package/dist/components/modal/modal-close.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +1 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +3 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.cjs +4 -4
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +4 -4
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search-field.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-search.js +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-shopping-cart.js +2 -2
- package/dist/components/navigation-menu/global-navigation/index.cjs +2 -2
- package/dist/components/navigation-menu/global-navigation/index.js +1 -1
- package/dist/components/navigation-menu/index.cjs +3 -3
- package/dist/components/navigation-menu/index.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.cjs +4 -4
- package/dist/components/navigation-menu/navigation-menu.js +1 -1
- package/dist/components/radio-card-group/index.cjs +2 -2
- package/dist/components/radio-card-group/index.js +1 -1
- package/dist/components/radio-card-group/radio-card-group-content.cjs +2 -2
- package/dist/components/radio-card-group/radio-card-group-content.js +2 -2
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +21 -1328
- package/dist/components/radio-card-group/radio-card-group-item-title.js +21 -1309
- package/dist/components/radio-card-group/radio-card-group-item.cjs +3 -3
- package/dist/components/radio-card-group/radio-card-group-item.js +3 -3
- package/dist/main.cjs +6 -5
- package/dist/main.js +2 -1
- package/dist/style.css +425 -213
- package/dist/tokens/color/variables.cjs +32 -32
- package/dist/tokens/color/variables.d.ts +32 -32
- package/dist/tokens/color/variables.js +32 -32
- package/package.json +5 -5
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const clsx = require("clsx");
|
|
5
|
+
const React = require("react");
|
|
6
|
+
const components_checkboxCardGroup_checkboxCardGroupRoot = require("./checkbox-card-group-root.cjs");
|
|
7
|
+
const components_text_text = require("../text/text.cjs");
|
|
8
|
+
const Body = React.forwardRef(
|
|
9
|
+
({ className, children, ...props }, forwardRef) => {
|
|
10
|
+
const classes = clsx([components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__body`]], className);
|
|
11
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_text_text.Text, { ref: forwardRef, className: classes, ...props, children });
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
Body.displayName = "Body";
|
|
15
|
+
exports.Body = Body;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import React__default from "react";
|
|
4
|
+
import { s as styles, rootClassName } from "./checkbox-card-group-root.js";
|
|
5
|
+
import { Text } from "../text/text.js";
|
|
6
|
+
const Body = React__default.forwardRef(
|
|
7
|
+
({ className, children, ...props }, forwardRef) => {
|
|
8
|
+
const classes = clsx([styles[`${rootClassName}__body`]], className);
|
|
9
|
+
return /* @__PURE__ */ jsx(Text, { ref: forwardRef, className: classes, ...props, children });
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
Body.displayName = "Body";
|
|
13
|
+
export {
|
|
14
|
+
Body
|
|
15
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("clsx");
|
|
5
|
+
require("react");
|
|
6
|
+
require("./checkbox-card-group-root.cjs");
|
|
7
|
+
require("@radix-ui/react-slot");
|
|
8
|
+
require("../metric-meter/metric-meter.cjs");
|
|
9
|
+
require("../footer/index.cjs");
|
|
10
|
+
require("../pagination/index.cjs");
|
|
11
|
+
require("../select/index.cjs");
|
|
12
|
+
require("../avatar/index.cjs");
|
|
13
|
+
require("../dashboard-card/index.cjs");
|
|
14
|
+
require("../table/index.cjs");
|
|
15
|
+
require("../flip-card/index.cjs");
|
|
16
|
+
require("../channel-button/index.cjs");
|
|
17
|
+
require("../collapsible/index.cjs");
|
|
18
|
+
require("../meter-bar/index.cjs");
|
|
19
|
+
require("../skeleton/index.cjs");
|
|
20
|
+
require("../checkbox/index.cjs");
|
|
21
|
+
const components_checkboxCardGroup_checkboxCardGroupIndicator = require("./checkbox-card-group-indicator.cjs");
|
|
22
|
+
require("../toast/toast-root.cjs");
|
|
23
|
+
require("sonner");
|
|
24
|
+
require("../toggletip/index.cjs");
|
|
25
|
+
require("../breadcrumbs/index.cjs");
|
|
26
|
+
require("../ribbon/index.cjs");
|
|
27
|
+
require("../expandable-card/index.cjs");
|
|
28
|
+
require("../color-dot/color-dot-root.cjs");
|
|
29
|
+
require("../progress-bar/progress-bar.cjs");
|
|
30
|
+
require("../notabene/index.cjs");
|
|
31
|
+
require("../tooltip/index.cjs");
|
|
32
|
+
require("../list/index.cjs");
|
|
33
|
+
require("../scroll-area/index.cjs");
|
|
34
|
+
require("../tabs/index.cjs");
|
|
35
|
+
require("../drawer/index.cjs");
|
|
36
|
+
require("../image/image.cjs");
|
|
37
|
+
require("../chip/index.cjs");
|
|
38
|
+
require("../../assets/sprite.6511e521-teddy.svg");
|
|
39
|
+
require("../notification/index.cjs");
|
|
40
|
+
require("../radio-group/index.cjs");
|
|
41
|
+
require("../box/box.cjs");
|
|
42
|
+
require("../flex/flex.cjs");
|
|
43
|
+
require("../card/index.cjs");
|
|
44
|
+
require("../grid/grid.cjs");
|
|
45
|
+
require("../toggle/toggle.cjs");
|
|
46
|
+
require("../accordion/index.cjs");
|
|
47
|
+
require("../link/link.cjs");
|
|
48
|
+
require("../badge/badge.cjs");
|
|
49
|
+
require("../badge/alert-badge.cjs");
|
|
50
|
+
require("../badge/counter-badge.cjs");
|
|
51
|
+
require("../button/button.cjs");
|
|
52
|
+
require("../field-error-text/field-error-text.cjs");
|
|
53
|
+
require("../helper-text/helper-text.cjs");
|
|
54
|
+
require("../input/index.cjs");
|
|
55
|
+
require("../label/label.cjs");
|
|
56
|
+
require("../spinner/spinner.cjs");
|
|
57
|
+
require("../text/text.cjs");
|
|
58
|
+
require("../text-field/index.cjs");
|
|
59
|
+
require("../heading/heading.cjs");
|
|
60
|
+
require("../visually-hidden/visually-hidden.cjs");
|
|
61
|
+
require("../text-spacing/text-spacing.cjs");
|
|
62
|
+
require("../container/container.cjs");
|
|
63
|
+
require("../carousel/carousel-root.cjs");
|
|
64
|
+
require("../slider/slider.cjs");
|
|
65
|
+
exports.Title = components_checkboxCardGroup_checkboxCardGroupIndicator.Title$1;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type TitleProps = React.ComponentPropsWithoutRef<'h2'> & {
|
|
4
|
+
asChild?: boolean;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const Title: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, "ref"> & {
|
|
10
|
+
asChild?: boolean | undefined;
|
|
11
|
+
checked?: boolean | undefined;
|
|
12
|
+
onCheckedChange?: ((checked: boolean) => void) | undefined;
|
|
13
|
+
disabled?: boolean | undefined;
|
|
14
|
+
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./checkbox-card-group-root.js";
|
|
5
|
+
import "@radix-ui/react-slot";
|
|
6
|
+
import "../metric-meter/metric-meter.js";
|
|
7
|
+
import "../footer/index.js";
|
|
8
|
+
import "../pagination/index.js";
|
|
9
|
+
import "../select/index.js";
|
|
10
|
+
import "../avatar/index.js";
|
|
11
|
+
import "../dashboard-card/index.js";
|
|
12
|
+
import "../table/index.js";
|
|
13
|
+
import "../flip-card/index.js";
|
|
14
|
+
import "../channel-button/index.js";
|
|
15
|
+
import "../collapsible/index.js";
|
|
16
|
+
import "../meter-bar/index.js";
|
|
17
|
+
import "../skeleton/index.js";
|
|
18
|
+
import "../checkbox/index.js";
|
|
19
|
+
import { T } from "./checkbox-card-group-indicator.js";
|
|
20
|
+
import "../toast/toast-root.js";
|
|
21
|
+
import "sonner";
|
|
22
|
+
import "../toggletip/index.js";
|
|
23
|
+
import "../breadcrumbs/index.js";
|
|
24
|
+
import "../ribbon/index.js";
|
|
25
|
+
import "../expandable-card/index.js";
|
|
26
|
+
import "../color-dot/color-dot-root.js";
|
|
27
|
+
import "../progress-bar/progress-bar.js";
|
|
28
|
+
import "../notabene/index.js";
|
|
29
|
+
import "../tooltip/index.js";
|
|
30
|
+
import "../list/index.js";
|
|
31
|
+
import "../scroll-area/index.js";
|
|
32
|
+
import "../tabs/index.js";
|
|
33
|
+
import "../drawer/index.js";
|
|
34
|
+
import "../image/image.js";
|
|
35
|
+
import "../chip/index.js";
|
|
36
|
+
import "../../assets/sprite.6511e521-teddy.svg";
|
|
37
|
+
import "../notification/index.js";
|
|
38
|
+
import "../radio-group/index.js";
|
|
39
|
+
import "../box/box.js";
|
|
40
|
+
import "../flex/flex.js";
|
|
41
|
+
import "../card/index.js";
|
|
42
|
+
import "../grid/grid.js";
|
|
43
|
+
import "../toggle/toggle.js";
|
|
44
|
+
import "../accordion/index.js";
|
|
45
|
+
import "../link/link.js";
|
|
46
|
+
import "../badge/badge.js";
|
|
47
|
+
import "../badge/alert-badge.js";
|
|
48
|
+
import "../badge/counter-badge.js";
|
|
49
|
+
import "../button/button.js";
|
|
50
|
+
import "../field-error-text/field-error-text.js";
|
|
51
|
+
import "../helper-text/helper-text.js";
|
|
52
|
+
import "../input/index.js";
|
|
53
|
+
import "../label/label.js";
|
|
54
|
+
import "../spinner/spinner.js";
|
|
55
|
+
import "../text/text.js";
|
|
56
|
+
import "../text-field/index.js";
|
|
57
|
+
import "../heading/heading.js";
|
|
58
|
+
import "../visually-hidden/visually-hidden.js";
|
|
59
|
+
import "../text-spacing/text-spacing.js";
|
|
60
|
+
import "../container/container.js";
|
|
61
|
+
import "../carousel/carousel-root.js";
|
|
62
|
+
import "../slider/slider.js";
|
|
63
|
+
export {
|
|
64
|
+
T as Title
|
|
65
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("clsx");
|
|
5
|
+
require("react");
|
|
6
|
+
require("./checkbox-card-group-root.cjs");
|
|
7
|
+
require("../metric-meter/metric-meter.cjs");
|
|
8
|
+
require("../footer/index.cjs");
|
|
9
|
+
require("../pagination/index.cjs");
|
|
10
|
+
require("../select/index.cjs");
|
|
11
|
+
require("../avatar/index.cjs");
|
|
12
|
+
require("../dashboard-card/index.cjs");
|
|
13
|
+
require("../table/index.cjs");
|
|
14
|
+
require("../flip-card/index.cjs");
|
|
15
|
+
require("../channel-button/index.cjs");
|
|
16
|
+
require("../collapsible/index.cjs");
|
|
17
|
+
require("../meter-bar/index.cjs");
|
|
18
|
+
require("../skeleton/index.cjs");
|
|
19
|
+
require("../checkbox/index.cjs");
|
|
20
|
+
const components_checkboxCardGroup_checkboxCardGroupIndicator = require("./checkbox-card-group-indicator.cjs");
|
|
21
|
+
require("../toast/toast-root.cjs");
|
|
22
|
+
require("sonner");
|
|
23
|
+
require("../toggletip/index.cjs");
|
|
24
|
+
require("../breadcrumbs/index.cjs");
|
|
25
|
+
require("../ribbon/index.cjs");
|
|
26
|
+
require("../expandable-card/index.cjs");
|
|
27
|
+
require("../color-dot/color-dot-root.cjs");
|
|
28
|
+
require("../progress-bar/progress-bar.cjs");
|
|
29
|
+
require("../notabene/index.cjs");
|
|
30
|
+
require("../tooltip/index.cjs");
|
|
31
|
+
require("../list/index.cjs");
|
|
32
|
+
require("../scroll-area/index.cjs");
|
|
33
|
+
require("../tabs/index.cjs");
|
|
34
|
+
require("../drawer/index.cjs");
|
|
35
|
+
require("../image/image.cjs");
|
|
36
|
+
require("../chip/index.cjs");
|
|
37
|
+
require("../../assets/sprite.6511e521-teddy.svg");
|
|
38
|
+
require("../notification/index.cjs");
|
|
39
|
+
require("../radio-group/index.cjs");
|
|
40
|
+
require("../box/box.cjs");
|
|
41
|
+
require("../flex/flex.cjs");
|
|
42
|
+
require("../card/index.cjs");
|
|
43
|
+
require("../grid/grid.cjs");
|
|
44
|
+
require("../toggle/toggle.cjs");
|
|
45
|
+
require("../accordion/index.cjs");
|
|
46
|
+
require("../link/link.cjs");
|
|
47
|
+
require("../badge/badge.cjs");
|
|
48
|
+
require("../badge/alert-badge.cjs");
|
|
49
|
+
require("../badge/counter-badge.cjs");
|
|
50
|
+
require("../button/button.cjs");
|
|
51
|
+
require("../field-error-text/field-error-text.cjs");
|
|
52
|
+
require("../helper-text/helper-text.cjs");
|
|
53
|
+
require("../input/index.cjs");
|
|
54
|
+
require("../label/label.cjs");
|
|
55
|
+
require("../spinner/spinner.cjs");
|
|
56
|
+
require("../text/text.cjs");
|
|
57
|
+
require("../text-field/index.cjs");
|
|
58
|
+
require("../heading/heading.cjs");
|
|
59
|
+
require("../visually-hidden/visually-hidden.cjs");
|
|
60
|
+
require("../text-spacing/text-spacing.cjs");
|
|
61
|
+
require("../container/container.cjs");
|
|
62
|
+
require("../carousel/carousel-root.cjs");
|
|
63
|
+
require("../slider/slider.cjs");
|
|
64
|
+
require("../../utils/composeRefs.cjs");
|
|
65
|
+
exports.Item = components_checkboxCardGroup_checkboxCardGroupIndicator.Item$1;
|
|
66
|
+
exports.ItemContext = components_checkboxCardGroup_checkboxCardGroupIndicator.ItemContext$1;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type ItemProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
4
|
+
value: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const ItemContext: React.Context<{
|
|
12
|
+
triggerRef: React.RefObject<HTMLDivElement>;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
} | undefined>;
|
|
15
|
+
export declare const Item: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
value: string;
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
imageUrl?: string | undefined;
|
|
19
|
+
checked?: boolean | undefined;
|
|
20
|
+
onCheckedChange?: ((checked: boolean) => void) | undefined;
|
|
21
|
+
disabled?: boolean | undefined;
|
|
22
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "clsx";
|
|
3
|
+
import "react";
|
|
4
|
+
import "./checkbox-card-group-root.js";
|
|
5
|
+
import "../metric-meter/metric-meter.js";
|
|
6
|
+
import "../footer/index.js";
|
|
7
|
+
import "../pagination/index.js";
|
|
8
|
+
import "../select/index.js";
|
|
9
|
+
import "../avatar/index.js";
|
|
10
|
+
import "../dashboard-card/index.js";
|
|
11
|
+
import "../table/index.js";
|
|
12
|
+
import "../flip-card/index.js";
|
|
13
|
+
import "../channel-button/index.js";
|
|
14
|
+
import "../collapsible/index.js";
|
|
15
|
+
import "../meter-bar/index.js";
|
|
16
|
+
import "../skeleton/index.js";
|
|
17
|
+
import "../checkbox/index.js";
|
|
18
|
+
import { b, I } from "./checkbox-card-group-indicator.js";
|
|
19
|
+
import "../toast/toast-root.js";
|
|
20
|
+
import "sonner";
|
|
21
|
+
import "../toggletip/index.js";
|
|
22
|
+
import "../breadcrumbs/index.js";
|
|
23
|
+
import "../ribbon/index.js";
|
|
24
|
+
import "../expandable-card/index.js";
|
|
25
|
+
import "../color-dot/color-dot-root.js";
|
|
26
|
+
import "../progress-bar/progress-bar.js";
|
|
27
|
+
import "../notabene/index.js";
|
|
28
|
+
import "../tooltip/index.js";
|
|
29
|
+
import "../list/index.js";
|
|
30
|
+
import "../scroll-area/index.js";
|
|
31
|
+
import "../tabs/index.js";
|
|
32
|
+
import "../drawer/index.js";
|
|
33
|
+
import "../image/image.js";
|
|
34
|
+
import "../chip/index.js";
|
|
35
|
+
import "../../assets/sprite.6511e521-teddy.svg";
|
|
36
|
+
import "../notification/index.js";
|
|
37
|
+
import "../radio-group/index.js";
|
|
38
|
+
import "../box/box.js";
|
|
39
|
+
import "../flex/flex.js";
|
|
40
|
+
import "../card/index.js";
|
|
41
|
+
import "../grid/grid.js";
|
|
42
|
+
import "../toggle/toggle.js";
|
|
43
|
+
import "../accordion/index.js";
|
|
44
|
+
import "../link/link.js";
|
|
45
|
+
import "../badge/badge.js";
|
|
46
|
+
import "../badge/alert-badge.js";
|
|
47
|
+
import "../badge/counter-badge.js";
|
|
48
|
+
import "../button/button.js";
|
|
49
|
+
import "../field-error-text/field-error-text.js";
|
|
50
|
+
import "../helper-text/helper-text.js";
|
|
51
|
+
import "../input/index.js";
|
|
52
|
+
import "../label/label.js";
|
|
53
|
+
import "../spinner/spinner.js";
|
|
54
|
+
import "../text/text.js";
|
|
55
|
+
import "../text-field/index.js";
|
|
56
|
+
import "../heading/heading.js";
|
|
57
|
+
import "../visually-hidden/visually-hidden.js";
|
|
58
|
+
import "../text-spacing/text-spacing.js";
|
|
59
|
+
import "../container/container.js";
|
|
60
|
+
import "../carousel/carousel-root.js";
|
|
61
|
+
import "../slider/slider.js";
|
|
62
|
+
import "../../utils/composeRefs.js";
|
|
63
|
+
export {
|
|
64
|
+
b as Item,
|
|
65
|
+
I as ItemContext
|
|
66
|
+
};
|
|
@@ -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_checkboxCardGroup_checkboxCardGroupRoot = require("./checkbox-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_checkboxCardGroup_checkboxCardGroupRoot.RootContext);
|
|
11
|
+
const classes = clsx(
|
|
12
|
+
[components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.rootClassName}__card-group-label`]],
|
|
13
|
+
{
|
|
14
|
+
[components_checkboxCardGroup_checkboxCardGroupRoot.styles[`${components_checkboxCardGroup_checkboxCardGroupRoot.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<HTMLDivElement>>;
|
|
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 "./checkbox-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,42 @@
|
|
|
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 styles = {
|
|
7
|
+
"teddy-checkbox-card-group": "_teddy-checkbox-card-group_1s01l_1",
|
|
8
|
+
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-item_1s01l_9",
|
|
9
|
+
"teddy-checkbox-card-group__card-group-label": "_teddy-checkbox-card-group__card-group-label_1s01l_14",
|
|
10
|
+
"teddy-checkbox-card-group__content-wrapper": "_teddy-checkbox-card-group__content-wrapper_1s01l_14",
|
|
11
|
+
"teddy-checkbox-card-group__title-wrapper": "_teddy-checkbox-card-group__title-wrapper_1s01l_17",
|
|
12
|
+
"teddy-checkbox-card-group__illustration": "_teddy-checkbox-card-group__illustration_1s01l_26",
|
|
13
|
+
"teddy-checkbox-card-group__checkbox-wrapper": "_teddy-checkbox-card-group__checkbox-wrapper_1s01l_29",
|
|
14
|
+
"teddy-checkbox-card-group__trigger": "_teddy-checkbox-card-group__trigger_1s01l_64",
|
|
15
|
+
"teddy-checkbox-card-group__indicator": "_teddy-checkbox-card-group__indicator_1s01l_149",
|
|
16
|
+
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--required_1s01l_208"
|
|
17
|
+
};
|
|
18
|
+
const rootClassName = "teddy-checkbox-card-group";
|
|
19
|
+
const RootContext = React.createContext(void 0);
|
|
20
|
+
const Root = React.forwardRef(
|
|
21
|
+
({ className, children, orientation = "vertical", direction = "left", ...props }, forwardRef) => {
|
|
22
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
23
|
+
const [groupLabelId, setGroupLabelId] = React.useState();
|
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { setGroupLabelId, required: props.required }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
|
+
"div",
|
|
26
|
+
{
|
|
27
|
+
"aria-labelledby": groupLabelId,
|
|
28
|
+
"data-orientation": orientation,
|
|
29
|
+
"data-direction": direction,
|
|
30
|
+
...props,
|
|
31
|
+
ref: forwardRef,
|
|
32
|
+
className: classes,
|
|
33
|
+
children
|
|
34
|
+
}
|
|
35
|
+
) });
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
Root.displayName = "CheckboxCardGroup";
|
|
39
|
+
exports.Root = Root;
|
|
40
|
+
exports.RootContext = RootContext;
|
|
41
|
+
exports.rootClassName = rootClassName;
|
|
42
|
+
exports.styles = styles;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const rootClassName = "teddy-checkbox-card-group";
|
|
4
|
+
export declare const RootContext: React.Context<{
|
|
5
|
+
setGroupLabelId: React.Dispatch<React.SetStateAction<string | undefined>>;
|
|
6
|
+
required: boolean | undefined;
|
|
7
|
+
} | undefined>;
|
|
8
|
+
export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
9
|
+
/** When `true`, prevents the user from interacting with checkbox items. */
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** The name of the group. Submitted with its owning form as part of a name/value pair. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** When `true`, indicates that the user must check at least one checkbox item before the owning form can be submitted. */
|
|
14
|
+
required?: boolean;
|
|
15
|
+
/** The controlled values of the checkbox items that are checked. Should be used in conjunction with onValueChange. */
|
|
16
|
+
value?: string[];
|
|
17
|
+
/** Event handler called when the values change. */
|
|
18
|
+
onValueChange?: (value: string[]) => void;
|
|
19
|
+
/** The orientation of the component. */
|
|
20
|
+
orientation?: 'horizontal' | 'vertical';
|
|
21
|
+
/** The reading direction of the checkbox group. If omitted, assumes left-to-right reading mode. */
|
|
22
|
+
direction?: 'left' | 'right';
|
|
23
|
+
};
|
|
24
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
25
|
+
/** When `true`, prevents the user from interacting with checkbox items. */
|
|
26
|
+
disabled?: boolean | undefined;
|
|
27
|
+
/** The name of the group. Submitted with its owning form as part of a name/value pair. */
|
|
28
|
+
name?: string | undefined;
|
|
29
|
+
/** When `true`, indicates that the user must check at least one checkbox item before the owning form can be submitted. */
|
|
30
|
+
required?: boolean | undefined;
|
|
31
|
+
/** The controlled values of the checkbox items that are checked. Should be used in conjunction with onValueChange. */
|
|
32
|
+
value?: string[] | undefined;
|
|
33
|
+
/** Event handler called when the values change. */
|
|
34
|
+
onValueChange?: ((value: string[]) => void) | undefined;
|
|
35
|
+
/** The orientation of the component. */
|
|
36
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
37
|
+
/** The reading direction of the checkbox group. If omitted, assumes left-to-right reading mode. */
|
|
38
|
+
direction?: "left" | "right" | undefined;
|
|
39
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const styles = {
|
|
5
|
+
"teddy-checkbox-card-group": "_teddy-checkbox-card-group_1s01l_1",
|
|
6
|
+
"teddy-checkbox-card-group__card-item": "_teddy-checkbox-card-group__card-item_1s01l_9",
|
|
7
|
+
"teddy-checkbox-card-group__card-group-label": "_teddy-checkbox-card-group__card-group-label_1s01l_14",
|
|
8
|
+
"teddy-checkbox-card-group__content-wrapper": "_teddy-checkbox-card-group__content-wrapper_1s01l_14",
|
|
9
|
+
"teddy-checkbox-card-group__title-wrapper": "_teddy-checkbox-card-group__title-wrapper_1s01l_17",
|
|
10
|
+
"teddy-checkbox-card-group__illustration": "_teddy-checkbox-card-group__illustration_1s01l_26",
|
|
11
|
+
"teddy-checkbox-card-group__checkbox-wrapper": "_teddy-checkbox-card-group__checkbox-wrapper_1s01l_29",
|
|
12
|
+
"teddy-checkbox-card-group__trigger": "_teddy-checkbox-card-group__trigger_1s01l_64",
|
|
13
|
+
"teddy-checkbox-card-group__indicator": "_teddy-checkbox-card-group__indicator_1s01l_149",
|
|
14
|
+
"teddy-checkbox-card-group__card-group-label--required": "_teddy-checkbox-card-group__card-group-label--required_1s01l_208"
|
|
15
|
+
};
|
|
16
|
+
const rootClassName = "teddy-checkbox-card-group";
|
|
17
|
+
const RootContext = React__default.createContext(void 0);
|
|
18
|
+
const Root = React__default.forwardRef(
|
|
19
|
+
({ className, children, orientation = "vertical", direction = "left", ...props }, forwardRef) => {
|
|
20
|
+
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
21
|
+
const [groupLabelId, setGroupLabelId] = React__default.useState();
|
|
22
|
+
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { setGroupLabelId, required: props.required }, children: /* @__PURE__ */ jsx(
|
|
23
|
+
"div",
|
|
24
|
+
{
|
|
25
|
+
"aria-labelledby": groupLabelId,
|
|
26
|
+
"data-orientation": orientation,
|
|
27
|
+
"data-direction": direction,
|
|
28
|
+
...props,
|
|
29
|
+
ref: forwardRef,
|
|
30
|
+
className: classes,
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
) });
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
Root.displayName = "CheckboxCardGroup";
|
|
37
|
+
export {
|
|
38
|
+
Root,
|
|
39
|
+
RootContext,
|
|
40
|
+
rootClassName,
|
|
41
|
+
styles as s
|
|
42
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./checkbox-card-group-root.cjs");
|
|
4
|
+
require("./checkbox-card-group-label.cjs");
|
|
5
|
+
const components_checkboxCardGroup_checkboxCardGroupIndicator = require("./checkbox-card-group-indicator.cjs");
|
|
6
|
+
require("./checkbox-card-group-item-body.cjs");
|
|
7
|
+
exports.CheckboxCardGroup = components_checkboxCardGroup_checkboxCardGroupIndicator.CheckboxCardGroup$1;
|