@telia/teddy 0.7.17 → 0.7.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/README.md +1 -1
- package/dist/components/avatar/avatar-root.d.ts +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +1 -1
- package/dist/components/breadcrumbs/index.d.ts +1 -1
- package/dist/components/card/card-illustration.d.ts +1 -1
- package/dist/components/card/card-link.d.ts +1 -1
- package/dist/components/channel-button/channel-button-root.d.ts +3 -3
- package/dist/components/channel-button/index.d.ts +3 -3
- package/dist/components/checkbox/checkbox-group.d.ts +1 -1
- package/dist/components/checkbox/index.d.ts +1 -1
- package/dist/components/checkbox-card-group/checkbox-card-group-content.cjs +65 -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 +65 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-indicator.cjs +1466 -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 +1447 -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 +66 -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 +66 -0
- package/dist/components/checkbox-card-group/checkbox-card-group-item.cjs +67 -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 +67 -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/chip/chip-indicator.d.ts +3 -2
- package/dist/components/chip/index.d.ts +3 -2
- package/dist/components/color-dot/index.d.ts +1 -1
- package/dist/components/dashboard-card/dashboard-card-avatar.d.ts +1 -1
- package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
- package/dist/components/expandable-card/index.d.ts +3 -3
- package/dist/components/flip-card/flip-card-trigger.d.ts +2 -2
- package/dist/components/icon/icon.cjs +4 -1
- package/dist/components/icon/icon.d.ts +1 -0
- package/dist/components/icon/icon.js +4 -1
- package/dist/components/icon/utils.d.ts +1 -1
- package/dist/components/index.cjs +8 -5
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +4 -1
- package/dist/components/modal/index.cjs +2 -2
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-close.cjs +3 -2
- package/dist/components/modal/modal-close.js +3 -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 +5 -4
- package/dist/components/navigation-menu/navigation-menu.js +2 -1
- package/dist/components/notabene/notabene-icon.d.ts +3 -2
- package/dist/components/notification/index.d.ts +1 -1
- package/dist/components/notification/notification-icon.d.ts +3 -2
- package/dist/components/notification/notification-root.d.ts +1 -1
- package/dist/components/pagination/pagination-button.d.ts +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 +3 -2
- package/dist/components/radio-card-group/radio-card-group-content.js +3 -2
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +22 -1328
- package/dist/components/radio-card-group/radio-card-group-item-title.js +22 -1309
- package/dist/components/radio-card-group/radio-card-group-item.cjs +4 -3
- package/dist/components/radio-card-group/radio-card-group-item.js +4 -3
- package/dist/components/scroll-area/index.d.ts +3 -3
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/select/index.cjs +4 -1
- package/dist/components/select/index.d.ts +5 -1
- package/dist/components/select/index.js +4 -1
- package/dist/components/select/select-group.cjs +6 -2
- package/dist/components/select/select-group.d.ts +4 -2
- package/dist/components/select/select-group.js +7 -3
- package/dist/components/select/select-root.cjs +12 -10
- package/dist/components/select/select-root.js +12 -10
- package/dist/components/select/select-separator.cjs +30 -0
- package/dist/components/select/select-separator.d.ts +5 -0
- package/dist/components/select/select-separator.js +13 -0
- package/dist/components/step-indicator/index.cjs +14 -0
- package/dist/components/step-indicator/index.d.ts +38 -0
- package/dist/components/step-indicator/index.js +14 -0
- package/dist/components/step-indicator/step-indicator-root.cjs +8 -0
- package/dist/components/step-indicator/step-indicator-root.d.ts +55 -0
- package/dist/components/step-indicator/step-indicator-root.js +8 -0
- package/dist/components/step-indicator/step-indicator-step-element.cjs +157 -0
- package/dist/components/step-indicator/step-indicator-step-element.d.ts +14 -0
- package/dist/components/step-indicator/step-indicator-step-element.js +157 -0
- package/dist/components/step-indicator/step-indicator-step-line.cjs +6 -0
- package/dist/components/step-indicator/step-indicator-step-line.d.ts +9 -0
- package/dist/components/step-indicator/step-indicator-step-line.js +6 -0
- package/dist/components/step-indicator/step-indicator-step.cjs +8 -0
- package/dist/components/step-indicator/step-indicator-step.d.ts +24 -0
- package/dist/components/step-indicator/step-indicator-step.js +8 -0
- package/dist/components/tabs/index.d.ts +1 -1
- package/dist/components/tabs/tabs-root.d.ts +1 -1
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/tabs/tabs-scroll.d.ts +1 -1
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/text-field-button.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +3 -2
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/main.cjs +8 -5
- package/dist/main.js +4 -1
- package/dist/style.css +529 -113
- 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/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 +5 -5
|
@@ -5,6 +5,7 @@ require("clsx");
|
|
|
5
5
|
require("react");
|
|
6
6
|
require("./radio-card-group-root.cjs");
|
|
7
7
|
require("@radix-ui/react-radio-group");
|
|
8
|
+
require("../step-indicator/index.cjs");
|
|
8
9
|
require("../metric-meter/metric-meter.cjs");
|
|
9
10
|
require("../footer/index.cjs");
|
|
10
11
|
require("../pagination/index.cjs");
|
|
@@ -18,11 +19,11 @@ require("../collapsible/index.cjs");
|
|
|
18
19
|
require("../meter-bar/index.cjs");
|
|
19
20
|
require("../skeleton/index.cjs");
|
|
20
21
|
require("../checkbox/index.cjs");
|
|
22
|
+
const components_checkboxCardGroup_checkboxCardGroupIndicator = require("../checkbox-card-group/checkbox-card-group-indicator.cjs");
|
|
21
23
|
require("../toast/toast-root.cjs");
|
|
22
24
|
require("sonner");
|
|
23
25
|
require("../toggletip/index.cjs");
|
|
24
26
|
require("../breadcrumbs/index.cjs");
|
|
25
|
-
const components_radioCardGroup_radioCardGroupItemTitle = require("./radio-card-group-item-title.cjs");
|
|
26
27
|
require("../ribbon/index.cjs");
|
|
27
28
|
require("../expandable-card/index.cjs");
|
|
28
29
|
require("../color-dot/color-dot-root.cjs");
|
|
@@ -63,5 +64,5 @@ require("../container/container.cjs");
|
|
|
63
64
|
require("../carousel/carousel-root.cjs");
|
|
64
65
|
require("../slider/slider.cjs");
|
|
65
66
|
require("../../utils/composeRefs.cjs");
|
|
66
|
-
exports.Item =
|
|
67
|
-
exports.ItemContext =
|
|
67
|
+
exports.Item = components_checkboxCardGroup_checkboxCardGroupIndicator.Item$2;
|
|
68
|
+
exports.ItemContext = components_checkboxCardGroup_checkboxCardGroupIndicator.ItemContext$2;
|
|
@@ -3,6 +3,7 @@ import "clsx";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import "./radio-card-group-root.js";
|
|
5
5
|
import "@radix-ui/react-radio-group";
|
|
6
|
+
import "../step-indicator/index.js";
|
|
6
7
|
import "../metric-meter/metric-meter.js";
|
|
7
8
|
import "../footer/index.js";
|
|
8
9
|
import "../pagination/index.js";
|
|
@@ -16,11 +17,11 @@ import "../collapsible/index.js";
|
|
|
16
17
|
import "../meter-bar/index.js";
|
|
17
18
|
import "../skeleton/index.js";
|
|
18
19
|
import "../checkbox/index.js";
|
|
20
|
+
import { f, e } from "../checkbox-card-group/checkbox-card-group-indicator.js";
|
|
19
21
|
import "../toast/toast-root.js";
|
|
20
22
|
import "sonner";
|
|
21
23
|
import "../toggletip/index.js";
|
|
22
24
|
import "../breadcrumbs/index.js";
|
|
23
|
-
import { a, I } from "./radio-card-group-item-title.js";
|
|
24
25
|
import "../ribbon/index.js";
|
|
25
26
|
import "../expandable-card/index.js";
|
|
26
27
|
import "../color-dot/color-dot-root.js";
|
|
@@ -62,6 +63,6 @@ import "../carousel/carousel-root.js";
|
|
|
62
63
|
import "../slider/slider.js";
|
|
63
64
|
import "../../utils/composeRefs.js";
|
|
64
65
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
f as Item,
|
|
67
|
+
e as ItemContext
|
|
67
68
|
};
|
|
@@ -3,7 +3,7 @@ import { ItemProps } from './scroll-area-item';
|
|
|
3
3
|
import { ButtonProps } from './scroll-area-button';
|
|
4
4
|
|
|
5
5
|
export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
6
|
-
variant?: ("button" | "
|
|
6
|
+
variant?: ("button" | "scrollbar" | "hidden") | undefined;
|
|
7
7
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
8
8
|
viewPortClassName?: string | undefined;
|
|
9
9
|
barClassName?: string | undefined;
|
|
@@ -21,7 +21,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
21
21
|
loading?: boolean | undefined;
|
|
22
22
|
fullWidth?: boolean | undefined;
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
25
25
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
iconOnly: true;
|
|
@@ -33,7 +33,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
33
33
|
loading?: boolean | undefined;
|
|
34
34
|
fullWidth?: boolean | undefined;
|
|
35
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
36
|
-
variant?: "
|
|
36
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
37
37
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
iconOnly?: false | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined;
|
|
19
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "
|
|
20
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
21
21
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
22
22
|
} & {
|
|
23
23
|
iconOnly: true;
|
|
@@ -29,7 +29,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
29
29
|
loading?: boolean | undefined;
|
|
30
30
|
fullWidth?: boolean | undefined;
|
|
31
31
|
size?: "sm" | "md" | "lg" | undefined;
|
|
32
|
-
variant?: "
|
|
32
|
+
variant?: "list-item" | "text" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "text-underline" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "text-negative" | "expressive-negative" | undefined;
|
|
33
33
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
34
34
|
} & {
|
|
35
35
|
iconOnly?: false | undefined;
|
|
@@ -9,6 +9,7 @@ const components_select_selectValue = require("./select-value.cjs");
|
|
|
9
9
|
const components_select_selectTrigger = require("./select-trigger.cjs");
|
|
10
10
|
const components_select_selectPortal = require("./select-portal.cjs");
|
|
11
11
|
const components_select_selectIndicator = require("./select-indicator.cjs");
|
|
12
|
+
const components_select_selectSeparator = require("./select-separator.cjs");
|
|
12
13
|
components_select_selectRoot.Root.displayName = "Select";
|
|
13
14
|
components_select_selectItem.Item.displayName = "Select.Item";
|
|
14
15
|
components_select_selectGroup.Group.displayName = "Select.Group";
|
|
@@ -18,6 +19,7 @@ components_select_selectValue.Value.displayName = "Select.Value";
|
|
|
18
19
|
components_select_selectTrigger.Trigger.displayName = "Select.Trigger";
|
|
19
20
|
components_select_selectPortal.Portal.displayName = "Select.Portal";
|
|
20
21
|
components_select_selectIndicator.Indicator.displayName = "Select.Indicator";
|
|
22
|
+
components_select_selectSeparator.Separator.displayName = "Select.Separator";
|
|
21
23
|
const Select = Object.assign(components_select_selectRoot.Root, {
|
|
22
24
|
Indicator: components_select_selectIndicator.Indicator,
|
|
23
25
|
Item: components_select_selectItem.Item,
|
|
@@ -26,6 +28,7 @@ const Select = Object.assign(components_select_selectRoot.Root, {
|
|
|
26
28
|
Content: components_select_selectContent.Content,
|
|
27
29
|
Value: components_select_selectValue.Value,
|
|
28
30
|
Trigger: components_select_selectTrigger.Trigger,
|
|
29
|
-
Portal: components_select_selectPortal.Portal
|
|
31
|
+
Portal: components_select_selectPortal.Portal,
|
|
32
|
+
Separator: components_select_selectSeparator.Separator
|
|
30
33
|
});
|
|
31
34
|
exports.Select = Select;
|
|
@@ -7,6 +7,7 @@ import { ValueProps } from './select-value';
|
|
|
7
7
|
import { TriggerProps } from './select-trigger';
|
|
8
8
|
import { PortalProps } from './select-portal';
|
|
9
9
|
import { IndicatorProps } from './select-indicator';
|
|
10
|
+
import { SeparatorProps } from './select-separator';
|
|
10
11
|
|
|
11
12
|
export declare const Select: import('react').ForwardRefExoticComponent<import('@radix-ui/react-select').SelectProps & {
|
|
12
13
|
name: string;
|
|
@@ -25,7 +26,8 @@ export declare const Select: import('react').ForwardRefExoticComponent<import('@
|
|
|
25
26
|
Indicator: import('react').ForwardRefExoticComponent<Omit<Partial<import('..').IconProps>, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
26
27
|
Item: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectItemProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
27
28
|
Group: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectGroupProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
|
|
28
|
-
options
|
|
29
|
+
options?: string[] | undefined;
|
|
30
|
+
label?: string | undefined;
|
|
29
31
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
30
32
|
Viewport: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectViewportProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
31
33
|
Content: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -37,6 +39,7 @@ export declare const Select: import('react').ForwardRefExoticComponent<import('@
|
|
|
37
39
|
readonly?: boolean | undefined;
|
|
38
40
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
39
41
|
Portal: import('react').ForwardRefExoticComponent<import('@radix-ui/react-select').SelectPortalProps & import('react').RefAttributes<never>>;
|
|
42
|
+
Separator: import('react').ForwardRefExoticComponent<Omit<import('@radix-ui/react-select').SelectSeparatorProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
40
43
|
};
|
|
41
44
|
export type SelectProps = {
|
|
42
45
|
Root: RootProps;
|
|
@@ -48,4 +51,5 @@ export type SelectProps = {
|
|
|
48
51
|
Value: ValueProps;
|
|
49
52
|
Trigger: TriggerProps;
|
|
50
53
|
Portal: PortalProps;
|
|
54
|
+
Separator: SeparatorProps;
|
|
51
55
|
};
|
|
@@ -7,6 +7,7 @@ import { Value } from "./select-value.js";
|
|
|
7
7
|
import { Trigger } from "./select-trigger.js";
|
|
8
8
|
import { Portal } from "./select-portal.js";
|
|
9
9
|
import { Indicator } from "./select-indicator.js";
|
|
10
|
+
import { Separator } from "./select-separator.js";
|
|
10
11
|
Root.displayName = "Select";
|
|
11
12
|
Item.displayName = "Select.Item";
|
|
12
13
|
Group.displayName = "Select.Group";
|
|
@@ -16,6 +17,7 @@ Value.displayName = "Select.Value";
|
|
|
16
17
|
Trigger.displayName = "Select.Trigger";
|
|
17
18
|
Portal.displayName = "Select.Portal";
|
|
18
19
|
Indicator.displayName = "Select.Indicator";
|
|
20
|
+
Separator.displayName = "Select.Separator";
|
|
19
21
|
const Select = Object.assign(Root, {
|
|
20
22
|
Indicator,
|
|
21
23
|
Item,
|
|
@@ -24,7 +26,8 @@ const Select = Object.assign(Root, {
|
|
|
24
26
|
Content,
|
|
25
27
|
Value,
|
|
26
28
|
Trigger,
|
|
27
|
-
Portal
|
|
29
|
+
Portal,
|
|
30
|
+
Separator
|
|
28
31
|
});
|
|
29
32
|
export {
|
|
30
33
|
Select
|
|
@@ -23,8 +23,12 @@ function _interopNamespaceDefault(e) {
|
|
|
23
23
|
}
|
|
24
24
|
const RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
25
25
|
const Group = React.forwardRef(
|
|
26
|
-
({ options, ...props }, forwardRef) => {
|
|
27
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
26
|
+
({ children, options, label, ...props }, forwardRef) => {
|
|
27
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(RadixSelect__namespace.Group, { ...props, ref: forwardRef, className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__group`], children: [
|
|
28
|
+
label && /* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.Label, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__label`], children: label }),
|
|
29
|
+
options == null ? void 0 : options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(components_select_selectItem.Item, { value: option, children: option })),
|
|
30
|
+
children
|
|
31
|
+
] });
|
|
28
32
|
}
|
|
29
33
|
);
|
|
30
34
|
Group.displayName = "Select.Group";
|
|
@@ -2,8 +2,10 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import * as RadixSelect from '@radix-ui/react-select';
|
|
4
4
|
export type GroupProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Group> & {
|
|
5
|
-
options
|
|
5
|
+
options?: string[];
|
|
6
|
+
label?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare const Group: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
options
|
|
9
|
+
options?: string[] | undefined;
|
|
10
|
+
label?: string | undefined;
|
|
9
11
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import * as RadixSelect from "@radix-ui/react-select";
|
|
4
4
|
import { s as styles, rootClassName } from "./select-root.js";
|
|
5
5
|
import { Item } from "./select-item.js";
|
|
6
6
|
const Group = React__default.forwardRef(
|
|
7
|
-
({ options, ...props }, forwardRef) => {
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
({ children, options, label, ...props }, forwardRef) => {
|
|
8
|
+
return /* @__PURE__ */ jsxs(RadixSelect.Group, { ...props, ref: forwardRef, className: styles[`${rootClassName}__group`], children: [
|
|
9
|
+
label && /* @__PURE__ */ jsx(RadixSelect.Label, { className: styles[`${rootClassName}__label`], children: label }),
|
|
10
|
+
options == null ? void 0 : options.map((option) => /* @__PURE__ */ jsx(Item, { value: option, children: option })),
|
|
11
|
+
children
|
|
12
|
+
] });
|
|
9
13
|
}
|
|
10
14
|
);
|
|
11
15
|
Group.displayName = "Select.Group";
|
|
@@ -25,16 +25,18 @@ function _interopNamespaceDefault(e) {
|
|
|
25
25
|
}
|
|
26
26
|
const RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
27
27
|
const styles = {
|
|
28
|
-
"teddy-select": "_teddy-
|
|
29
|
-
"teddy-select__trigger": "_teddy-
|
|
30
|
-
"teddy-select__trigger--error": "_teddy-select__trigger--
|
|
31
|
-
"teddy-select__trigger--disabled": "_teddy-select__trigger--
|
|
32
|
-
"teddy-select__trigger--readonly": "_teddy-select__trigger--
|
|
33
|
-
"teddy-select__icon": "_teddy-
|
|
34
|
-
"teddy-select__content": "_teddy-
|
|
35
|
-
"teddy-select__viewport": "_teddy-
|
|
36
|
-
"teddy-select__item": "_teddy-
|
|
37
|
-
"teddy-select__item-indicator": "_teddy-select__item-
|
|
28
|
+
"teddy-select": "_teddy-select_a7ezt_1",
|
|
29
|
+
"teddy-select__trigger": "_teddy-select__trigger_a7ezt_12",
|
|
30
|
+
"teddy-select__trigger--error": "_teddy-select__trigger--error_a7ezt_38",
|
|
31
|
+
"teddy-select__trigger--disabled": "_teddy-select__trigger--disabled_a7ezt_42",
|
|
32
|
+
"teddy-select__trigger--readonly": "_teddy-select__trigger--readonly_a7ezt_48",
|
|
33
|
+
"teddy-select__icon": "_teddy-select__icon_a7ezt_53",
|
|
34
|
+
"teddy-select__content": "_teddy-select__content_a7ezt_56",
|
|
35
|
+
"teddy-select__viewport": "_teddy-select__viewport_a7ezt_65",
|
|
36
|
+
"teddy-select__item": "_teddy-select__item_a7ezt_69",
|
|
37
|
+
"teddy-select__item-indicator": "_teddy-select__item-indicator_a7ezt_89",
|
|
38
|
+
"teddy-select__separator": "_teddy-select__separator_a7ezt_97",
|
|
39
|
+
"teddy-select__label": "_teddy-select__label_a7ezt_102"
|
|
38
40
|
};
|
|
39
41
|
const SelectContext = React.createContext({
|
|
40
42
|
isDirty: false,
|
|
@@ -6,16 +6,18 @@ import { HelperText } from "../helper-text/helper-text.js";
|
|
|
6
6
|
import { FieldErrorText } from "../field-error-text/field-error-text.js";
|
|
7
7
|
import clsx from "clsx";
|
|
8
8
|
const styles = {
|
|
9
|
-
"teddy-select": "_teddy-
|
|
10
|
-
"teddy-select__trigger": "_teddy-
|
|
11
|
-
"teddy-select__trigger--error": "_teddy-select__trigger--
|
|
12
|
-
"teddy-select__trigger--disabled": "_teddy-select__trigger--
|
|
13
|
-
"teddy-select__trigger--readonly": "_teddy-select__trigger--
|
|
14
|
-
"teddy-select__icon": "_teddy-
|
|
15
|
-
"teddy-select__content": "_teddy-
|
|
16
|
-
"teddy-select__viewport": "_teddy-
|
|
17
|
-
"teddy-select__item": "_teddy-
|
|
18
|
-
"teddy-select__item-indicator": "_teddy-select__item-
|
|
9
|
+
"teddy-select": "_teddy-select_a7ezt_1",
|
|
10
|
+
"teddy-select__trigger": "_teddy-select__trigger_a7ezt_12",
|
|
11
|
+
"teddy-select__trigger--error": "_teddy-select__trigger--error_a7ezt_38",
|
|
12
|
+
"teddy-select__trigger--disabled": "_teddy-select__trigger--disabled_a7ezt_42",
|
|
13
|
+
"teddy-select__trigger--readonly": "_teddy-select__trigger--readonly_a7ezt_48",
|
|
14
|
+
"teddy-select__icon": "_teddy-select__icon_a7ezt_53",
|
|
15
|
+
"teddy-select__content": "_teddy-select__content_a7ezt_56",
|
|
16
|
+
"teddy-select__viewport": "_teddy-select__viewport_a7ezt_65",
|
|
17
|
+
"teddy-select__item": "_teddy-select__item_a7ezt_69",
|
|
18
|
+
"teddy-select__item-indicator": "_teddy-select__item-indicator_a7ezt_89",
|
|
19
|
+
"teddy-select__separator": "_teddy-select__separator_a7ezt_97",
|
|
20
|
+
"teddy-select__label": "_teddy-select__label_a7ezt_102"
|
|
19
21
|
};
|
|
20
22
|
const SelectContext = React__default.createContext({
|
|
21
23
|
isDirty: false,
|
|
@@ -0,0 +1,30 @@
|
|
|
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 RadixSelect = require("@radix-ui/react-select");
|
|
6
|
+
const components_select_selectRoot = require("./select-root.cjs");
|
|
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 RadixSelect__namespace = /* @__PURE__ */ _interopNamespaceDefault(RadixSelect);
|
|
24
|
+
const Separator = React.forwardRef(
|
|
25
|
+
({ ...props }, forwardRef) => {
|
|
26
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RadixSelect__namespace.Separator, { className: components_select_selectRoot.styles[`${components_select_selectRoot.rootClassName}__separator`], ...props, ref: forwardRef });
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
Separator.displayName = "Select.Separator";
|
|
30
|
+
exports.Separator = Separator;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
import * as RadixSelect from '@radix-ui/react-select';
|
|
4
|
+
export type SeparatorProps = React.ComponentPropsWithoutRef<typeof RadixSelect.Separator> & {};
|
|
5
|
+
export declare const Separator: React.ForwardRefExoticComponent<Omit<RadixSelect.SelectSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import * as RadixSelect from "@radix-ui/react-select";
|
|
4
|
+
import { s as styles, rootClassName } from "./select-root.js";
|
|
5
|
+
const Separator = React__default.forwardRef(
|
|
6
|
+
({ ...props }, forwardRef) => {
|
|
7
|
+
return /* @__PURE__ */ jsx(RadixSelect.Separator, { className: styles[`${rootClassName}__separator`], ...props, ref: forwardRef });
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
Separator.displayName = "Select.Separator";
|
|
11
|
+
export {
|
|
12
|
+
Separator
|
|
13
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const components_stepIndicator_stepIndicatorStepElement = require("./step-indicator-step-element.cjs");
|
|
4
|
+
components_stepIndicator_stepIndicatorStepElement.Root$1.displayName = "StepIndicator";
|
|
5
|
+
components_stepIndicator_stepIndicatorStepElement.Step$1.displayName = "StepIndicator.Step";
|
|
6
|
+
components_stepIndicator_stepIndicatorStepElement.StepElement.displayName = "StepIndicator.StepElement";
|
|
7
|
+
components_stepIndicator_stepIndicatorStepElement.StepLine$1.displayName = "StepIndicator.StepLine";
|
|
8
|
+
const StepIndicator = Object.assign(components_stepIndicator_stepIndicatorStepElement.Root$1, {
|
|
9
|
+
Step: components_stepIndicator_stepIndicatorStepElement.Step$1,
|
|
10
|
+
StepElement: components_stepIndicator_stepIndicatorStepElement.StepElement,
|
|
11
|
+
StepLine: components_stepIndicator_stepIndicatorStepElement.StepLine$1
|
|
12
|
+
});
|
|
13
|
+
exports.StepIndicator = StepIndicator;
|
|
14
|
+
exports.default = StepIndicator;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { RootProps } from './step-indicator-root';
|
|
2
|
+
import { StepProps } from './step-indicator-step';
|
|
3
|
+
import { StepElementProps } from './step-indicator-step-element';
|
|
4
|
+
import { StepLineProps } from './step-indicator-step-line';
|
|
5
|
+
|
|
6
|
+
declare const StepIndicator: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onClick"> & {
|
|
7
|
+
index?: number | undefined;
|
|
8
|
+
numberOfSteps?: number | undefined;
|
|
9
|
+
labels?: import('react').ReactNode[] | undefined;
|
|
10
|
+
links?: string[] | undefined;
|
|
11
|
+
disabled?: boolean[] | undefined;
|
|
12
|
+
kind?: "purple" | undefined;
|
|
13
|
+
onClick?: ((index: number) => void) | undefined;
|
|
14
|
+
completedSteps?: number[] | undefined;
|
|
15
|
+
children?: import('react').ReactNode;
|
|
16
|
+
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
17
|
+
Step: {
|
|
18
|
+
({ index, activeStep, numberOfSteps, label, link, isDisabled, onClick, isCompleted, srOnlyText, children, }: StepProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
displayName: string;
|
|
20
|
+
};
|
|
21
|
+
StepElement: {
|
|
22
|
+
({ children, isPassed, isDisabled, onClick, link, index, className }: StepElementProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
displayName: string;
|
|
24
|
+
};
|
|
25
|
+
StepLine: {
|
|
26
|
+
({ activeStep, index, numberOfSteps }: StepLineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
displayName: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
type StepIndicatorProps = {
|
|
31
|
+
Root: RootProps;
|
|
32
|
+
Step: StepProps;
|
|
33
|
+
StepElement: StepElementProps;
|
|
34
|
+
StepLine: StepLineProps;
|
|
35
|
+
};
|
|
36
|
+
export { StepIndicator };
|
|
37
|
+
export type { StepIndicatorProps };
|
|
38
|
+
export default StepIndicator;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { R as Root, S as Step, StepElement, a as StepLine } from "./step-indicator-step-element.js";
|
|
2
|
+
Root.displayName = "StepIndicator";
|
|
3
|
+
Step.displayName = "StepIndicator.Step";
|
|
4
|
+
StepElement.displayName = "StepIndicator.StepElement";
|
|
5
|
+
StepLine.displayName = "StepIndicator.StepLine";
|
|
6
|
+
const StepIndicator = Object.assign(Root, {
|
|
7
|
+
Step,
|
|
8
|
+
StepElement,
|
|
9
|
+
StepLine
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
StepIndicator,
|
|
13
|
+
StepIndicator as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("react");
|
|
5
|
+
require("clsx");
|
|
6
|
+
const components_stepIndicator_stepIndicatorStepElement = require("./step-indicator-step-element.cjs");
|
|
7
|
+
exports.Root = components_stepIndicator_stepIndicatorStepElement.Root$1;
|
|
8
|
+
exports.rootClassName = components_stepIndicator_stepIndicatorStepElement.rootClassName$1;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const rootClassName = "teddy-step-indicator";
|
|
4
|
+
export type RootProps = Omit<React.ComponentPropsWithoutRef<'div'>, 'onClick'> & {
|
|
5
|
+
/**
|
|
6
|
+
* Current active step (index starts at 0)
|
|
7
|
+
*/
|
|
8
|
+
index?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Total number of steps
|
|
11
|
+
*/
|
|
12
|
+
numberOfSteps?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Labels for steps
|
|
15
|
+
*/
|
|
16
|
+
labels?: Array<React.ReactNode>;
|
|
17
|
+
/**
|
|
18
|
+
* Links for steps
|
|
19
|
+
*/
|
|
20
|
+
links?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* List of indexes that should be disabled
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean[];
|
|
25
|
+
kind?: 'purple';
|
|
26
|
+
onClick?: (index: number) => void;
|
|
27
|
+
completedSteps?: number[];
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onClick"> & {
|
|
31
|
+
/**
|
|
32
|
+
* Current active step (index starts at 0)
|
|
33
|
+
*/
|
|
34
|
+
index?: number | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Total number of steps
|
|
37
|
+
*/
|
|
38
|
+
numberOfSteps?: number | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Labels for steps
|
|
41
|
+
*/
|
|
42
|
+
labels?: React.ReactNode[] | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Links for steps
|
|
45
|
+
*/
|
|
46
|
+
links?: string[] | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* List of indexes that should be disabled
|
|
49
|
+
*/
|
|
50
|
+
disabled?: boolean[] | undefined;
|
|
51
|
+
kind?: "purple" | undefined;
|
|
52
|
+
onClick?: ((index: number) => void) | undefined;
|
|
53
|
+
completedSteps?: number[] | undefined;
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
} & React.RefAttributes<HTMLDivElement>>;
|