@optiaxiom/proteus 3.0.2 → 3.0.4
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/esm/assets/src/proteus-chart/{ProteusChart.css.ts.vanilla-Cs4PLepm.css → ProteusChart.css.ts.vanilla-Be8HKnwe.css} +2 -2
- package/dist/esm/assets/src/proteus-chart/{ProteusChartTooltipContent.css.ts.vanilla-CWbrMa_L.css → ProteusChartTooltipContent.css.ts.vanilla-BBZiNAXG.css} +2 -2
- package/dist/esm/assets/src/proteus-document/{ProteusDocumentShell.css.ts.vanilla-C3QyhoDK.css → ProteusDocumentShell.css.ts.vanilla-DyIvgk1e.css} +2 -2
- package/dist/esm/assets/src/proteus-image-carousel/{ProteusImageCarousel.css.ts.vanilla-iR8KhxVx.css → ProteusImageCarousel.css.ts.vanilla-DgreIDLr.css} +2 -2
- package/dist/esm/assets/src/proteus-markdown/{ProteusMarkdown.css.ts.vanilla-BaIAffSf.css → ProteusMarkdown.css.ts.vanilla-B20M2nf0.css} +2 -2
- package/dist/esm/assets/src/proteus-question/{ProteusQuestion.css.ts.vanilla-Ba9cfjMj.css → ProteusQuestion.css.ts.vanilla-DwkcvDii.css} +2 -2
- package/dist/esm/proteus-chart/ProteusChart-css.js +1 -1
- package/dist/esm/proteus-chart/ProteusChartTooltipContent-css.js +1 -1
- package/dist/esm/proteus-document/ProteusDocumentShell-css.js +1 -1
- package/dist/esm/proteus-image-carousel/ProteusImageCarousel-css.js +1 -1
- package/dist/esm/proteus-markdown/ProteusMarkdown-css.js +1 -1
- package/dist/esm/proteus-question/ProteusQuestion-css.js +1 -1
- package/dist/esm/proteus-question/ProteusQuestion.js +3 -3
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-
|
|
1
|
+
import "./../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-Be8HKnwe.css";
|
|
2
2
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
3
3
|
//#region src/proteus-chart/ProteusChart.css.ts
|
|
4
4
|
var chart = recipe({ base: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
2
|
-
import "./../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-
|
|
2
|
+
import "./../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-BBZiNAXG.css";
|
|
3
3
|
//#region src/proteus-chart/ProteusChartTooltipContent.css.ts
|
|
4
4
|
var tooltip = recipe({ base: [{
|
|
5
5
|
bg: "bg.default",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
2
|
-
import "./../assets/src/proteus-document/ProteusDocumentShell.css.ts.vanilla-
|
|
2
|
+
import "./../assets/src/proteus-document/ProteusDocumentShell.css.ts.vanilla-DyIvgk1e.css";
|
|
3
3
|
//#region src/proteus-document/ProteusDocumentShell.css.ts
|
|
4
4
|
var body = recipe({
|
|
5
5
|
base: [{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
2
|
-
import "./../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-
|
|
2
|
+
import "./../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-DgreIDLr.css";
|
|
3
3
|
//#region src/proteus-image-carousel/ProteusImageCarousel.css.ts
|
|
4
4
|
var carousel = recipe({ base: [{
|
|
5
5
|
flexDirection: "column",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
2
|
-
import "./../assets/src/proteus-markdown/ProteusMarkdown.css.ts.vanilla-
|
|
2
|
+
import "./../assets/src/proteus-markdown/ProteusMarkdown.css.ts.vanilla-B20M2nf0.css";
|
|
3
3
|
//#region src/proteus-markdown/ProteusMarkdown.css.ts
|
|
4
4
|
var code = recipe({ base: [{
|
|
5
5
|
bg: "bg.secondary",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { recipe } from "@optiaxiom/react/css-runtime";
|
|
2
|
-
import "./../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-
|
|
2
|
+
import "./../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-DwkcvDii.css";
|
|
3
3
|
//#region src/proteus-question/ProteusQuestion.css.ts
|
|
4
4
|
var addon = recipe({
|
|
5
5
|
base: [{
|
|
@@ -58,7 +58,7 @@ function ProteusQuestion({ interaction, questions }) {
|
|
|
58
58
|
}, [currentIndex]);
|
|
59
59
|
const otherInputRef = useRef(null);
|
|
60
60
|
const otherItemRef = useRef(null);
|
|
61
|
-
if (currentIndex >= questions.length) return null;
|
|
61
|
+
if (!Array.isArray(questions) || currentIndex >= questions.length) return null;
|
|
62
62
|
const { options, question: question$1, type } = questions[currentIndex];
|
|
63
63
|
const isLast = currentIndex === questions.length - 1;
|
|
64
64
|
const otherValue = value?.find((v) => !options.includes(v));
|
|
@@ -294,7 +294,7 @@ function ProteusQuestion({ interaction, questions }) {
|
|
|
294
294
|
})
|
|
295
295
|
}),
|
|
296
296
|
type === "single_select" && /* @__PURE__ */ jsx(Button, {
|
|
297
|
-
appearance: otherValue ? "primary
|
|
297
|
+
appearance: otherValue ? "primary" : "default",
|
|
298
298
|
"aria-label": otherValue && (isLast ? "Submit" : "Next"),
|
|
299
299
|
icon: otherValue && /* @__PURE__ */ jsx(IconArrowRight, {}),
|
|
300
300
|
ml: "auto",
|
|
@@ -327,7 +327,7 @@ function ProteusQuestion({ interaction, questions }) {
|
|
|
327
327
|
children: "Skip"
|
|
328
328
|
}),
|
|
329
329
|
/* @__PURE__ */ jsx(Button, {
|
|
330
|
-
appearance: valid ? "primary
|
|
330
|
+
appearance: valid ? "primary" : "default",
|
|
331
331
|
"aria-label": isLast ? "Submit" : "Next",
|
|
332
332
|
disabled: !valid,
|
|
333
333
|
icon: /* @__PURE__ */ jsx(IconArrowRight, {}),
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "git+https://github.com/optimizely-axiom/optiaxiom.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "3.0.
|
|
10
|
+
"version": "3.0.4",
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/**",
|
|
13
13
|
"LICENSE"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"react-markdown": "^10.1.0",
|
|
42
42
|
"recharts": "^3.8.1",
|
|
43
43
|
"remark-gfm": "^4.0.1",
|
|
44
|
-
"@optiaxiom/icons": "^1.
|
|
45
|
-
"@optiaxiom/react": "^3.0.
|
|
44
|
+
"@optiaxiom/icons": "^1.2.0",
|
|
45
|
+
"@optiaxiom/react": "^3.0.5"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@emotion/hash": "^0.9.2",
|