@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
|
@@ -0,0 +1,157 @@
|
|
|
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
|
+
require("../../assets/sprite.6511e521-teddy.svg");
|
|
7
|
+
const components_icon_icon = require("../icon/icon.cjs");
|
|
8
|
+
const styles = {
|
|
9
|
+
"teddy-step-indicator": "_teddy-step-indicator_m33yv_1",
|
|
10
|
+
"teddy-step-indicator__element": "_teddy-step-indicator__element_m33yv_5",
|
|
11
|
+
"teddy-step-indicator__element--clickable": "_teddy-step-indicator__element--clickable_m33yv_14",
|
|
12
|
+
"teddy-step-indicator__label": "_teddy-step-indicator__label_m33yv_24",
|
|
13
|
+
"teddy-step-indicator__step--passed-active": "_teddy-step-indicator__step--passed-active_m33yv_27",
|
|
14
|
+
"teddy-step-indicator__icon": "_teddy-step-indicator__icon_m33yv_31",
|
|
15
|
+
"teddy-step-indicator__list": "_teddy-step-indicator__list_m33yv_46",
|
|
16
|
+
"teddy-step-indicator__wrapper": "_teddy-step-indicator__wrapper_m33yv_52",
|
|
17
|
+
"teddy-step-indicator__line": "_teddy-step-indicator__line_m33yv_65",
|
|
18
|
+
"teddy-step-indicator__step": "_teddy-step-indicator__step_m33yv_27",
|
|
19
|
+
"teddy-step-indicator__step--passed": "_teddy-step-indicator__step--passed_m33yv_27",
|
|
20
|
+
"teddy-step-indicator__step--active": "_teddy-step-indicator__step--active_m33yv_120",
|
|
21
|
+
"teddy-step-indicator__icon-wrapper": "_teddy-step-indicator__icon-wrapper_m33yv_131",
|
|
22
|
+
"teddy-step-indicator--purple": "_teddy-step-indicator--purple_m33yv_141",
|
|
23
|
+
"teddy-step-indicator__step--disabled": "_teddy-step-indicator__step--disabled_m33yv_161",
|
|
24
|
+
"teddy-step-indicator__label--disabled": "_teddy-step-indicator__label--disabled_m33yv_177",
|
|
25
|
+
"teddy-step-indicator__sr-only": "_teddy-step-indicator__sr-only_m33yv_183"
|
|
26
|
+
};
|
|
27
|
+
const StepElement = ({ children, isPassed, isDisabled, onClick, link, index, className }) => {
|
|
28
|
+
if (isPassed && !isDisabled) {
|
|
29
|
+
if (!onClick) {
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { className, href: link, children });
|
|
31
|
+
}
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { role: "button", tabIndex: 0, className, onClick: () => onClick(index), children });
|
|
33
|
+
} else {
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles[`${rootClassName}__element`], children });
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
StepElement.displayName = "StepIndicator.StepElement";
|
|
38
|
+
const StepLine = ({ activeStep, index, numberOfSteps }) => {
|
|
39
|
+
if (index >= numberOfSteps - 1) {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
const isPassed = activeStep > index;
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
className: clsx(styles[`${rootClassName}__line`], {
|
|
47
|
+
[styles[`${rootClassName}__line--passed`]]: isPassed
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
};
|
|
52
|
+
StepLine.displayName = "StepIndicator.StepLine";
|
|
53
|
+
const Step = ({
|
|
54
|
+
index,
|
|
55
|
+
activeStep,
|
|
56
|
+
numberOfSteps = 0,
|
|
57
|
+
label,
|
|
58
|
+
link,
|
|
59
|
+
isDisabled,
|
|
60
|
+
onClick,
|
|
61
|
+
isCompleted = false,
|
|
62
|
+
srOnlyText = "- fullført",
|
|
63
|
+
children
|
|
64
|
+
}) => {
|
|
65
|
+
const isActive = index === activeStep;
|
|
66
|
+
const isPassed = activeStep > index || isCompleted;
|
|
67
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { className: styles[`${rootClassName}__wrapper`], children: children || /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
69
|
+
StepElement,
|
|
70
|
+
{
|
|
71
|
+
isPassed,
|
|
72
|
+
isDisabled,
|
|
73
|
+
onClick,
|
|
74
|
+
link,
|
|
75
|
+
index,
|
|
76
|
+
className: clsx(styles[`${rootClassName}__element`], styles[`${rootClassName}__element--clickable`]),
|
|
77
|
+
children: [
|
|
78
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
className: clsx(styles[`${rootClassName}__step`], {
|
|
82
|
+
[styles[`${rootClassName}__step--active`]]: isActive,
|
|
83
|
+
[styles[`${rootClassName}__step--passed`]]: isPassed,
|
|
84
|
+
[styles[`${rootClassName}__step--passed-active`]]: isPassed && isActive,
|
|
85
|
+
[styles[`${rootClassName}__step--disabled`]]: isDisabled
|
|
86
|
+
}),
|
|
87
|
+
children: isPassed ? /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles[`${rootClassName}__icon-wrapper`], children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "checkmark", className: styles[`${rootClassName}__icon`], title: `${index + 1}` }) }) : index + 1
|
|
88
|
+
}
|
|
89
|
+
),
|
|
90
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
className: clsx(styles[`${rootClassName}__label`], {
|
|
94
|
+
[styles[`${rootClassName}__label--active`]]: isActive,
|
|
95
|
+
[styles[`${rootClassName}__label--disabled`]]: isDisabled
|
|
96
|
+
}),
|
|
97
|
+
children: [
|
|
98
|
+
label,
|
|
99
|
+
isPassed && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles[`${rootClassName}__sr-only`], children: srOnlyText })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
),
|
|
106
|
+
/* @__PURE__ */ jsxRuntime.jsx(StepLine, { index, numberOfSteps, activeStep })
|
|
107
|
+
] }) }, `step-indicator-step-${activeStep}`);
|
|
108
|
+
};
|
|
109
|
+
Step.displayName = "StepIndicator.Step";
|
|
110
|
+
const rootClassName = "teddy-step-indicator";
|
|
111
|
+
const Root = React.forwardRef(
|
|
112
|
+
({
|
|
113
|
+
className,
|
|
114
|
+
index = 0,
|
|
115
|
+
numberOfSteps = 0,
|
|
116
|
+
labels,
|
|
117
|
+
links,
|
|
118
|
+
disabled,
|
|
119
|
+
kind,
|
|
120
|
+
onClick,
|
|
121
|
+
completedSteps,
|
|
122
|
+
children,
|
|
123
|
+
...props
|
|
124
|
+
}, forwardRef) => {
|
|
125
|
+
const classes = clsx(
|
|
126
|
+
[styles[`${rootClassName}`]],
|
|
127
|
+
{
|
|
128
|
+
[styles[`${rootClassName}--purple`]]: kind === "purple"
|
|
129
|
+
},
|
|
130
|
+
className
|
|
131
|
+
);
|
|
132
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...props, ref: forwardRef, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx("ol", { className: styles[`${rootClassName}__list`], children: children || Array.from({ length: numberOfSteps ?? 0 }, (_, number) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
133
|
+
Step,
|
|
134
|
+
{
|
|
135
|
+
activeStep: index,
|
|
136
|
+
index: number,
|
|
137
|
+
numberOfSteps,
|
|
138
|
+
label: (labels == null ? void 0 : labels[number]) ?? "",
|
|
139
|
+
link: (links == null ? void 0 : links[number]) ?? "",
|
|
140
|
+
isDisabled: (disabled == null ? void 0 : disabled[number]) ?? false,
|
|
141
|
+
onClick,
|
|
142
|
+
isCompleted: (completedSteps == null ? void 0 : completedSteps.includes(number)) ?? false
|
|
143
|
+
},
|
|
144
|
+
`${index}-step-indicator__list-${number}`
|
|
145
|
+
)) }) });
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
Root.displayName = "StepIndicator";
|
|
149
|
+
exports.Root = Root;
|
|
150
|
+
exports.Root$1 = Root;
|
|
151
|
+
exports.Step = Step;
|
|
152
|
+
exports.Step$1 = Step;
|
|
153
|
+
exports.StepElement = StepElement;
|
|
154
|
+
exports.StepLine = StepLine;
|
|
155
|
+
exports.StepLine$1 = StepLine;
|
|
156
|
+
exports.rootClassName = rootClassName;
|
|
157
|
+
exports.rootClassName$1 = rootClassName;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface StepElementProps {
|
|
3
|
+
isPassed: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
index: number;
|
|
6
|
+
link?: string;
|
|
7
|
+
onClick?: (index: number) => void;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const StepElement: {
|
|
12
|
+
({ children, isPassed, isDisabled, onClick, link, index, className }: StepElementProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import "../../assets/sprite.6511e521-teddy.svg";
|
|
5
|
+
import { Icon } from "../icon/icon.js";
|
|
6
|
+
const styles = {
|
|
7
|
+
"teddy-step-indicator": "_teddy-step-indicator_m33yv_1",
|
|
8
|
+
"teddy-step-indicator__element": "_teddy-step-indicator__element_m33yv_5",
|
|
9
|
+
"teddy-step-indicator__element--clickable": "_teddy-step-indicator__element--clickable_m33yv_14",
|
|
10
|
+
"teddy-step-indicator__label": "_teddy-step-indicator__label_m33yv_24",
|
|
11
|
+
"teddy-step-indicator__step--passed-active": "_teddy-step-indicator__step--passed-active_m33yv_27",
|
|
12
|
+
"teddy-step-indicator__icon": "_teddy-step-indicator__icon_m33yv_31",
|
|
13
|
+
"teddy-step-indicator__list": "_teddy-step-indicator__list_m33yv_46",
|
|
14
|
+
"teddy-step-indicator__wrapper": "_teddy-step-indicator__wrapper_m33yv_52",
|
|
15
|
+
"teddy-step-indicator__line": "_teddy-step-indicator__line_m33yv_65",
|
|
16
|
+
"teddy-step-indicator__step": "_teddy-step-indicator__step_m33yv_27",
|
|
17
|
+
"teddy-step-indicator__step--passed": "_teddy-step-indicator__step--passed_m33yv_27",
|
|
18
|
+
"teddy-step-indicator__step--active": "_teddy-step-indicator__step--active_m33yv_120",
|
|
19
|
+
"teddy-step-indicator__icon-wrapper": "_teddy-step-indicator__icon-wrapper_m33yv_131",
|
|
20
|
+
"teddy-step-indicator--purple": "_teddy-step-indicator--purple_m33yv_141",
|
|
21
|
+
"teddy-step-indicator__step--disabled": "_teddy-step-indicator__step--disabled_m33yv_161",
|
|
22
|
+
"teddy-step-indicator__label--disabled": "_teddy-step-indicator__label--disabled_m33yv_177",
|
|
23
|
+
"teddy-step-indicator__sr-only": "_teddy-step-indicator__sr-only_m33yv_183"
|
|
24
|
+
};
|
|
25
|
+
const StepElement = ({ children, isPassed, isDisabled, onClick, link, index, className }) => {
|
|
26
|
+
if (isPassed && !isDisabled) {
|
|
27
|
+
if (!onClick) {
|
|
28
|
+
return /* @__PURE__ */ jsx("a", { className, href: link, children });
|
|
29
|
+
}
|
|
30
|
+
return /* @__PURE__ */ jsx("div", { role: "button", tabIndex: 0, className, onClick: () => onClick(index), children });
|
|
31
|
+
} else {
|
|
32
|
+
return /* @__PURE__ */ jsx("div", { className: styles[`${rootClassName}__element`], children });
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
StepElement.displayName = "StepIndicator.StepElement";
|
|
36
|
+
const StepLine = ({ activeStep, index, numberOfSteps }) => {
|
|
37
|
+
if (index >= numberOfSteps - 1) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
const isPassed = activeStep > index;
|
|
41
|
+
return /* @__PURE__ */ jsx(
|
|
42
|
+
"span",
|
|
43
|
+
{
|
|
44
|
+
className: clsx(styles[`${rootClassName}__line`], {
|
|
45
|
+
[styles[`${rootClassName}__line--passed`]]: isPassed
|
|
46
|
+
})
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
StepLine.displayName = "StepIndicator.StepLine";
|
|
51
|
+
const Step = ({
|
|
52
|
+
index,
|
|
53
|
+
activeStep,
|
|
54
|
+
numberOfSteps = 0,
|
|
55
|
+
label,
|
|
56
|
+
link,
|
|
57
|
+
isDisabled,
|
|
58
|
+
onClick,
|
|
59
|
+
isCompleted = false,
|
|
60
|
+
srOnlyText = "- fullført",
|
|
61
|
+
children
|
|
62
|
+
}) => {
|
|
63
|
+
const isActive = index === activeStep;
|
|
64
|
+
const isPassed = activeStep > index || isCompleted;
|
|
65
|
+
return /* @__PURE__ */ jsx("li", { className: styles[`${rootClassName}__wrapper`], children: children || /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
66
|
+
/* @__PURE__ */ jsxs(
|
|
67
|
+
StepElement,
|
|
68
|
+
{
|
|
69
|
+
isPassed,
|
|
70
|
+
isDisabled,
|
|
71
|
+
onClick,
|
|
72
|
+
link,
|
|
73
|
+
index,
|
|
74
|
+
className: clsx(styles[`${rootClassName}__element`], styles[`${rootClassName}__element--clickable`]),
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsx(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
className: clsx(styles[`${rootClassName}__step`], {
|
|
80
|
+
[styles[`${rootClassName}__step--active`]]: isActive,
|
|
81
|
+
[styles[`${rootClassName}__step--passed`]]: isPassed,
|
|
82
|
+
[styles[`${rootClassName}__step--passed-active`]]: isPassed && isActive,
|
|
83
|
+
[styles[`${rootClassName}__step--disabled`]]: isDisabled
|
|
84
|
+
}),
|
|
85
|
+
children: isPassed ? /* @__PURE__ */ jsx("span", { className: styles[`${rootClassName}__icon-wrapper`], children: /* @__PURE__ */ jsx(Icon, { name: "checkmark", className: styles[`${rootClassName}__icon`], title: `${index + 1}` }) }) : index + 1
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ jsxs(
|
|
89
|
+
"span",
|
|
90
|
+
{
|
|
91
|
+
className: clsx(styles[`${rootClassName}__label`], {
|
|
92
|
+
[styles[`${rootClassName}__label--active`]]: isActive,
|
|
93
|
+
[styles[`${rootClassName}__label--disabled`]]: isDisabled
|
|
94
|
+
}),
|
|
95
|
+
children: [
|
|
96
|
+
label,
|
|
97
|
+
isPassed && /* @__PURE__ */ jsx("span", { className: styles[`${rootClassName}__sr-only`], children: srOnlyText })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ jsx(StepLine, { index, numberOfSteps, activeStep })
|
|
105
|
+
] }) }, `step-indicator-step-${activeStep}`);
|
|
106
|
+
};
|
|
107
|
+
Step.displayName = "StepIndicator.Step";
|
|
108
|
+
const rootClassName = "teddy-step-indicator";
|
|
109
|
+
const Root = React__default.forwardRef(
|
|
110
|
+
({
|
|
111
|
+
className,
|
|
112
|
+
index = 0,
|
|
113
|
+
numberOfSteps = 0,
|
|
114
|
+
labels,
|
|
115
|
+
links,
|
|
116
|
+
disabled,
|
|
117
|
+
kind,
|
|
118
|
+
onClick,
|
|
119
|
+
completedSteps,
|
|
120
|
+
children,
|
|
121
|
+
...props
|
|
122
|
+
}, forwardRef) => {
|
|
123
|
+
const classes = clsx(
|
|
124
|
+
[styles[`${rootClassName}`]],
|
|
125
|
+
{
|
|
126
|
+
[styles[`${rootClassName}--purple`]]: kind === "purple"
|
|
127
|
+
},
|
|
128
|
+
className
|
|
129
|
+
);
|
|
130
|
+
return /* @__PURE__ */ jsx("div", { ...props, ref: forwardRef, className: classes, children: /* @__PURE__ */ jsx("ol", { className: styles[`${rootClassName}__list`], children: children || Array.from({ length: numberOfSteps ?? 0 }, (_, number) => /* @__PURE__ */ jsx(
|
|
131
|
+
Step,
|
|
132
|
+
{
|
|
133
|
+
activeStep: index,
|
|
134
|
+
index: number,
|
|
135
|
+
numberOfSteps,
|
|
136
|
+
label: (labels == null ? void 0 : labels[number]) ?? "",
|
|
137
|
+
link: (links == null ? void 0 : links[number]) ?? "",
|
|
138
|
+
isDisabled: (disabled == null ? void 0 : disabled[number]) ?? false,
|
|
139
|
+
onClick,
|
|
140
|
+
isCompleted: (completedSteps == null ? void 0 : completedSteps.includes(number)) ?? false
|
|
141
|
+
},
|
|
142
|
+
`${index}-step-indicator__list-${number}`
|
|
143
|
+
)) }) });
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
Root.displayName = "StepIndicator";
|
|
147
|
+
export {
|
|
148
|
+
Root as R,
|
|
149
|
+
Root,
|
|
150
|
+
Step as S,
|
|
151
|
+
Step,
|
|
152
|
+
StepElement,
|
|
153
|
+
StepLine,
|
|
154
|
+
StepLine as a,
|
|
155
|
+
rootClassName as r,
|
|
156
|
+
rootClassName
|
|
157
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("clsx");
|
|
5
|
+
const components_stepIndicator_stepIndicatorStepElement = require("./step-indicator-step-element.cjs");
|
|
6
|
+
exports.StepLine = components_stepIndicator_stepIndicatorStepElement.StepLine$1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface StepLineProps {
|
|
2
|
+
index: number;
|
|
3
|
+
activeStep: number;
|
|
4
|
+
numberOfSteps: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const StepLine: {
|
|
7
|
+
({ activeStep, index, numberOfSteps }: StepLineProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("clsx");
|
|
5
|
+
const components_stepIndicator_stepIndicatorStepElement = require("./step-indicator-step-element.cjs");
|
|
6
|
+
require("../../assets/sprite.6511e521-teddy.svg");
|
|
7
|
+
require("../icon/icon.cjs");
|
|
8
|
+
exports.Step = components_stepIndicator_stepIndicatorStepElement.Step$1;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
type BaseStepProps = {
|
|
4
|
+
index: number;
|
|
5
|
+
activeStep: number;
|
|
6
|
+
label: string | React.ReactNode;
|
|
7
|
+
link?: string;
|
|
8
|
+
isDisabled?: boolean;
|
|
9
|
+
onClick?: (index: number) => void;
|
|
10
|
+
isCompleted?: boolean;
|
|
11
|
+
srOnlyText?: string;
|
|
12
|
+
};
|
|
13
|
+
export type StepProps = (BaseStepProps & {
|
|
14
|
+
children?: never;
|
|
15
|
+
numberOfSteps: number;
|
|
16
|
+
}) | (BaseStepProps & {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
numberOfSteps?: number;
|
|
19
|
+
});
|
|
20
|
+
export declare const Step: {
|
|
21
|
+
({ index, activeStep, numberOfSteps, label, link, isDisabled, onClick, isCompleted, srOnlyText, children, }: StepProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
export {};
|
|
@@ -45,7 +45,7 @@ type TabsProps = {
|
|
|
45
45
|
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
46
46
|
* </Tabs>
|
|
47
47
|
*/
|
|
48
|
-
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "
|
|
48
|
+
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "defaultValue" | "value" | "onValueChange" | "activationMode"> & {
|
|
49
49
|
value?: string | undefined;
|
|
50
50
|
onValueChange?: ((value: string) => void) | undefined;
|
|
51
51
|
defaultValue?: string | undefined;
|
|
@@ -34,7 +34,7 @@ type RootContextType = {
|
|
|
34
34
|
value: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
37
|
-
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "
|
|
37
|
+
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref">, "defaultValue" | "value" | "onValueChange" | "activationMode"> & {
|
|
38
38
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
39
39
|
value?: TabsPrimitive.TabsProps['value'];
|
|
40
40
|
/** Event handler called when the value changes. */
|
|
@@ -10,7 +10,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
fullWidth?: boolean | undefined;
|
|
12
12
|
size?: "sm" | "md" | "lg" | undefined;
|
|
13
|
-
variant?: "
|
|
13
|
+
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;
|
|
14
14
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
iconOnly: true;
|
|
@@ -22,7 +22,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
fullWidth?: boolean | undefined;
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
|
-
variant?: "
|
|
25
|
+
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;
|
|
26
26
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
iconOnly?: false | undefined;
|
|
@@ -5,7 +5,7 @@ export type ScrollProps = React.ComponentPropsWithoutRef<typeof ScrollArea>;
|
|
|
5
5
|
export declare const ScrollContext: React.Context<boolean>;
|
|
6
6
|
/** */
|
|
7
7
|
export declare const Scroll: React.ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-scroll-area').ScrollAreaProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
8
|
-
variant?: ("button" | "
|
|
8
|
+
variant?: ("button" | "scrollbar" | "hidden") | undefined;
|
|
9
9
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
10
10
|
viewPortClassName?: string | undefined;
|
|
11
11
|
barClassName?: string | undefined;
|
|
@@ -35,7 +35,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
35
35
|
loading?: boolean | undefined;
|
|
36
36
|
fullWidth?: boolean | undefined;
|
|
37
37
|
size?: "sm" | "md" | "lg" | undefined;
|
|
38
|
-
variant?: "
|
|
38
|
+
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;
|
|
39
39
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
iconOnly: true;
|
|
@@ -47,7 +47,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
47
47
|
loading?: boolean | undefined;
|
|
48
48
|
fullWidth?: boolean | undefined;
|
|
49
49
|
size?: "sm" | "md" | "lg" | undefined;
|
|
50
|
-
variant?: "
|
|
50
|
+
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;
|
|
51
51
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
52
52
|
} & {
|
|
53
53
|
iconOnly?: false | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
13
13
|
size?: "sm" | "md" | "lg" | undefined;
|
|
14
|
-
variant?: "
|
|
14
|
+
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;
|
|
15
15
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
iconOnly: true;
|
|
@@ -23,7 +23,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
23
23
|
loading?: boolean | undefined;
|
|
24
24
|
fullWidth?: boolean | undefined;
|
|
25
25
|
size?: "sm" | "md" | "lg" | undefined;
|
|
26
|
-
variant?: "
|
|
26
|
+
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;
|
|
27
27
|
borderStyle?: ("dashed" | "default") | undefined;
|
|
28
28
|
} & {
|
|
29
29
|
iconOnly?: false | undefined;
|
|
@@ -29,8 +29,9 @@ 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: "alarm-off" | "alarm-on" | "attachment" | "bookmark-filled" | "bookmark" | "copy-filled" | "copy" | "dislike" | "download" | "edit" | "filter" | "heart-filled" | "heart" | "invisible" | "like" | "lock-open" | "lock" | "login" | "logout" | "maximize" | "minimize" | "mute" | "password-invisible" | "password-visible" | "play-filled" | "play" | "remove-filled" | "remove" | "save" | "send" | "settings" | "share" | "shortcut" | "shuffle" | "skip-back-10sec" | "skip-back-30sec" | "skip-forward-10sec" | "skip-forward-30sec" | "star-filled" | "star" | "switch-arrows" | "sync" | "tv-next" | "tv-pause" | "tv-previous" | "tv-stop" | "upload" | "visible" | "volume" | "zoom-out" | "zoom" | "connected-building" | "home" | "hospital" | "industry" | "premises-datacenter" | "premises-large" | "premises-medium" | "premises-small" | "premises" | "store" | "address-book" | "b2b-customer" | "care" | "chat-robot" | "chat" | "child-1" | "child-2" | "conversation" | "customer-dialogue" | "dsl-hub" | "email" | "end-user" | "handshake" | "headphones" | "letter" | "mms" | "new-contact" | "new-group" | "news" | "parental-guide" | "people-hub" | "people" | "portal" | "signature" | "smiley-happy" | "smiley-neutral" | "smiley-sad" | "smiley-very-happy" | "smiley-very-sad" | "sms" | "support" | "user-admin" | "vcard" | "voicemail" | "battery" | "bluetooth" | "broadband" | "broken-phone" | "cast" | "cloud-connect" | "connected" | "core-router" | "daas-device" | "data-transfer" | "desktop" | "devices" | "esim-simcard" | "esim" | "face-id" | "fiber" | "fingerprint" | "fiveg" | "fourg" | "home-installation" | "industrial-iot" | "internet" | "it-service" | "laptop" | "mobile-broadband" | "network" | "phone-recycling" | "phone-ringing" | "phone" | "rack" | "refill-card" | "remote-control" | "repair" | "roaming" | "router" | "secure-device" | "sense-car" | "server" | "service-device" | "service-supervision" | "slow-wifi" | "smart-wifi" | "smartphone" | "smartwatch" | "tablet" | "trade-phone" | "tv" | "usb" | "voice-switch" | "wallplug" | "wireless-off" | "wireless-weak" | "wireless" | "world-alert" | "world-off" | "world-question" | "bar-chart" | "doc" | "document-doc" | "document-edit" | "document-pdf" | "document-ppt" | "excel" | "folder-copy" | "folder-new" | "folder" | "gif" | "graph" | "media-content" | "org-chart" | "pie-chart" | "print" | "register" | "report" | "simcard" | "spell-check" | "summary" | "credit-card" | "euro" | "invoice" | "kontantkort" | "kr" | "late-payment" | "money-back-euro" | "money-back-kr" | "money-euro" | "money-kr" | "pay-monthly-euro" | "pay-monthly-kr" | "pay-once-euro" | "pay-once-kr" | "payment-success" | "savings" | "wallet" | "AI-star" | "airplay" | "camera" | "entertainment" | "external" | "film" | "games" | "image" | "link" | "megaphone" | "microphone" | "music" | "player-settings" | "record" | "stream" | "trailer" | "video-conference" | "video" | "activity-level" | "add" | "ai-robot" | "bag" | "basketball" | "blood-pressure" | "bulb" | "business-continuity" | "business-intelligence" | "calendar" | "cart" | "close-circle" | "cloud" | "coffee" | "compass" | "construction" | "cookie" | "delivery" | "drone" | "education" | "efficiency" | "environment" | "facemask" | "flag" | "focus" | "food" | "fraud" | "getting-started" | "home-care" | "infinite" | "job-search" | "key" | "layers" | "map" | "measuring-health" | "moisture" | "offering" | "offshore" | "optimization" | "pebble" | "pet-dog" | "pin" | "plane" | "plus-minus" | "police" | "power-grid" | "present" | "press-button" | "price" | "pulse" | "radio" | "recycle" | "reservation" | "reverse" | "route" | "ruler" | "satellite" | "secured-1" | "secured-2" | "security-camera" | "shopping" | "smart-connect" | "snowflake" | "speedometer" | "split" | "spyware" | "stop" | "suitcase" | "sustainability" | "tag" | "temperature" | "thinking" | "time" | "train" | "transfer" | "undo" | "wavelength" | "weather" | "world" | "android" | "apple" | "bankid-norway" | "bankid" | "facebook" | "instagram" | "linkedin" | "snapchat" | "telia-logo" | "whatsapp" | "windows" | "x" | "youtube" | "alert-filled" | "alert" | "check-circle-filled" | "check-circle" | "error-filled" | "error" | "help" | "info-filled" | "info" | "question-filled" | "question" | "warning" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-subdirectory" | "arrow-up" | "card-view" | "checkmark-bold" | "checkmark" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "close" | "grid-view" | "list-view" | "menu" | "minus-bold" | "minus" | "more-horizontal" | "more-vertical" | "plus" | "search" | "services" | "sorter" | "table-view";
|
|
33
|
+
size?: ("font" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl") | undefined;
|
|
34
|
+
title?: string | undefined;
|
|
34
35
|
children?: React.ReactNode;
|
|
35
36
|
}, "ref">> & React.RefAttributes<SVGSVGElement>>;
|
|
36
37
|
};
|
|
@@ -17,7 +17,7 @@ export declare const Tooltip: typeof Root & {
|
|
|
17
17
|
}>) => void) | undefined;
|
|
18
18
|
side?: "top" | "bottom" | "left" | "right" | undefined;
|
|
19
19
|
sideOffset?: number | undefined;
|
|
20
|
-
align?: "
|
|
20
|
+
align?: "end" | "center" | "start" | undefined;
|
|
21
21
|
alignOffset?: number | undefined;
|
|
22
22
|
arrowPadding?: number | undefined;
|
|
23
23
|
avoidCollisions?: boolean | undefined;
|
package/dist/main.cjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const components_stepIndicator_index = require("./components/step-indicator/index.cjs");
|
|
3
4
|
const components_metricMeter_metricMeter = require("./components/metric-meter/metric-meter.cjs");
|
|
4
5
|
const components_footer_index = require("./components/footer/index.cjs");
|
|
5
6
|
const components_pagination_index = require("./components/pagination/index.cjs");
|
|
@@ -13,10 +14,10 @@ const components_collapsible_index = require("./components/collapsible/index.cjs
|
|
|
13
14
|
const components_meterBar_index = require("./components/meter-bar/index.cjs");
|
|
14
15
|
const components_skeleton_index = require("./components/skeleton/index.cjs");
|
|
15
16
|
const components_checkbox_index = require("./components/checkbox/index.cjs");
|
|
17
|
+
const components_checkboxCardGroup_checkboxCardGroupIndicator = require("./components/checkbox-card-group/checkbox-card-group-indicator.cjs");
|
|
16
18
|
const components_toast_index = require("./components/toast/index.cjs");
|
|
17
19
|
const components_toggletip_index = require("./components/toggletip/index.cjs");
|
|
18
20
|
const components_breadcrumbs_index = require("./components/breadcrumbs/index.cjs");
|
|
19
|
-
const components_radioCardGroup_radioCardGroupItemTitle = require("./components/radio-card-group/radio-card-group-item-title.cjs");
|
|
20
21
|
const components_ribbon_index = require("./components/ribbon/index.cjs");
|
|
21
22
|
const components_expandableCard_index = require("./components/expandable-card/index.cjs");
|
|
22
23
|
const components_colorDot_index = require("./components/color-dot/index.cjs");
|
|
@@ -70,6 +71,7 @@ const tokens_spacing_variables = require("./tokens/spacing/variables.cjs");
|
|
|
70
71
|
const tokens_typography_variables = require("./tokens/typography/variables.cjs");
|
|
71
72
|
const sonner = require("sonner");
|
|
72
73
|
const components_input_inputGroup = require("./components/input/input-group.cjs");
|
|
74
|
+
exports.StepIndicator = components_stepIndicator_index.StepIndicator;
|
|
73
75
|
exports.MetricMeter = components_metricMeter_metricMeter.MetricMeter;
|
|
74
76
|
exports.Footer = components_footer_index.Footer;
|
|
75
77
|
exports.Pagination = components_pagination_index.Pagination;
|
|
@@ -84,13 +86,14 @@ exports.MeterBar = components_meterBar_index.MeterBar;
|
|
|
84
86
|
exports.Skeleton = components_skeleton_index.Skeleton;
|
|
85
87
|
exports.Checkbox = components_checkbox_index.Checkbox;
|
|
86
88
|
exports.CheckboxGroup = components_checkbox_index.CheckboxGroup;
|
|
89
|
+
exports.CheckboxCardGroup = components_checkboxCardGroup_checkboxCardGroupIndicator.CheckboxCardGroup$1;
|
|
90
|
+
exports.GlobalNavigation = components_checkboxCardGroup_checkboxCardGroupIndicator.GlobalNavigation$1;
|
|
91
|
+
exports.Modal = components_checkboxCardGroup_checkboxCardGroupIndicator.Modal$1;
|
|
92
|
+
exports.NavigationMenu = components_checkboxCardGroup_checkboxCardGroupIndicator.NavigationMenu$1;
|
|
93
|
+
exports.RadioCardGroup = components_checkboxCardGroup_checkboxCardGroupIndicator.RadioCardGroup$1;
|
|
87
94
|
exports.Toast = components_toast_index.Toast;
|
|
88
95
|
exports.Toggletip = components_toggletip_index.Toggletip;
|
|
89
96
|
exports.Breadcrumbs = components_breadcrumbs_index.Breadcrumbs;
|
|
90
|
-
exports.GlobalNavigation = components_radioCardGroup_radioCardGroupItemTitle.GlobalNavigation$1;
|
|
91
|
-
exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal$1;
|
|
92
|
-
exports.NavigationMenu = components_radioCardGroup_radioCardGroupItemTitle.NavigationMenu$1;
|
|
93
|
-
exports.RadioCardGroup = components_radioCardGroup_radioCardGroupItemTitle.RadioCardGroup$1;
|
|
94
97
|
exports.Ribbon = components_ribbon_index.Ribbon;
|
|
95
98
|
exports.ExpandableCard = components_expandableCard_index.ExpandableCard;
|
|
96
99
|
exports.ColorDot = components_colorDot_index.ColorDot;
|
package/dist/main.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { StepIndicator } from "./components/step-indicator/index.js";
|
|
1
2
|
import { MetricMeter } from "./components/metric-meter/metric-meter.js";
|
|
2
3
|
import { Footer } from "./components/footer/index.js";
|
|
3
4
|
import { Pagination } from "./components/pagination/index.js";
|
|
@@ -11,10 +12,10 @@ import { Collapsible } from "./components/collapsible/index.js";
|
|
|
11
12
|
import { MeterBar } from "./components/meter-bar/index.js";
|
|
12
13
|
import { Skeleton } from "./components/skeleton/index.js";
|
|
13
14
|
import { Checkbox, CheckboxGroup } from "./components/checkbox/index.js";
|
|
15
|
+
import { C, G, M, N, R } from "./components/checkbox-card-group/checkbox-card-group-indicator.js";
|
|
14
16
|
import { Toast } from "./components/toast/index.js";
|
|
15
17
|
import { Toggletip } from "./components/toggletip/index.js";
|
|
16
18
|
import { Breadcrumbs } from "./components/breadcrumbs/index.js";
|
|
17
|
-
import { G, M, N, R } from "./components/radio-card-group/radio-card-group-item-title.js";
|
|
18
19
|
import { Ribbon } from "./components/ribbon/index.js";
|
|
19
20
|
import { ExpandableCard } from "./components/expandable-card/index.js";
|
|
20
21
|
import { ColorDot } from "./components/color-dot/index.js";
|
|
@@ -81,6 +82,7 @@ export {
|
|
|
81
82
|
Carousel,
|
|
82
83
|
ChannelButton,
|
|
83
84
|
Checkbox,
|
|
85
|
+
C as CheckboxCardGroup,
|
|
84
86
|
CheckboxGroup,
|
|
85
87
|
Chip,
|
|
86
88
|
CircleBar,
|
|
@@ -123,6 +125,7 @@ export {
|
|
|
123
125
|
Skeleton,
|
|
124
126
|
Slider,
|
|
125
127
|
Spinner,
|
|
128
|
+
StepIndicator,
|
|
126
129
|
Table,
|
|
127
130
|
Tabs,
|
|
128
131
|
Text,
|