@optiaxiom/proteus 0.1.19 → 0.1.21

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.
@@ -1,5 +1,5 @@
1
- @layer optiaxiom._1g6ippr;
2
- @layer optiaxiom._1g6ippr {
1
+ @layer optiaxiom.tmkl1w;
2
+ @layer optiaxiom.tmkl1w {
3
3
  .ProteusChart__jmlqij1 {
4
4
  border-radius: 16px;
5
5
  }
@@ -1,5 +1,5 @@
1
- @layer optiaxiom._1g6ippr;
2
- @layer optiaxiom._1g6ippr {
1
+ @layer optiaxiom.tmkl1w;
2
+ @layer optiaxiom.tmkl1w {
3
3
  .ProteusChartTooltipContent__1gsvq810 {
4
4
  min-width: 128px;
5
5
  }
@@ -1,5 +1,5 @@
1
- @layer optiaxiom._1g6ippr;
2
- @layer optiaxiom._1g6ippr {
1
+ @layer optiaxiom.tmkl1w;
2
+ @layer optiaxiom.tmkl1w {
3
3
  .ProteusImageCarousel__1t6qej70 {
4
4
  outline: none;
5
5
  user-select: none;
@@ -1,5 +1,5 @@
1
- @layer optiaxiom._1g6ippr;
2
- @layer optiaxiom._1g6ippr {
1
+ @layer optiaxiom.tmkl1w;
2
+ @layer optiaxiom.tmkl1w {
3
3
  .ProteusQuestion__8f590p0 {
4
4
  outline: none;
5
5
  }
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-CK0mlfvQ.css';
1
+ import './../assets/src/proteus-chart/ProteusChart.css.ts.vanilla-BCN2MOqI.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var chart = recipe({base:[{border:'1',borderColor:'border.tertiary',fontSize:'sm',p:'16'},'ProteusChart__jmlqij1','ProteusChart__jmlqij0']});
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-VEKfizml.css';
1
+ import './../assets/src/proteus-chart/ProteusChartTooltipContent.css.ts.vanilla-DmqHa3bY.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var tooltip = recipe({base:[{bg:'bg.default',border:'1',borderColor:'border.secondary',display:'grid',fontSize:'sm',gap:'6',px:'8',py:'10',rounded:'lg',shadow:'lg'},'ProteusChartTooltipContent__1gsvq810']});
@@ -2,7 +2,7 @@
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
3
  import { Box, Group } from '@optiaxiom/react';
4
4
  import { applyFormatter } from '../proteus-document/getProteusValue.js';
5
- import { tooltip, value } from './ProteusChartTooltipContent-css.js';
5
+ import { value, tooltip } from './ProteusChartTooltipContent-css.js';
6
6
 
7
7
  function ProteusChartTooltipContent({
8
8
  active,
@@ -32,7 +32,7 @@ function ProteusChartTooltipContent({
32
32
  style: { backgroundColor: item.color }
33
33
  }
34
34
  ),
35
- /* @__PURE__ */ jsx(Box, { color: "fg.tertiary", children: item.name ?? item.dataKey })
35
+ /* @__PURE__ */ jsx(Box, { color: "fg.tertiary", children: item.name ?? String(item.dataKey) })
36
36
  ] }),
37
37
  /* @__PURE__ */ jsx(Box, { ...value(), children: applyFormatter(item.value, "Number") })
38
38
  ]
@@ -113,6 +113,7 @@ function ProteusDocumentShell({
113
113
  element.title && /* @__PURE__ */ jsxs(
114
114
  Group,
115
115
  {
116
+ alignItems: element.titleIcon ? "start" : void 0,
116
117
  bg: element.titleIcon ? "bg.page" : "transparent",
117
118
  gap: "12",
118
119
  p: element.titleIcon ? "12" : void 0,
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-DV3O-VwO.css';
1
+ import './../assets/src/proteus-image-carousel/ProteusImageCarousel.css.ts.vanilla-Bbo2TbLv.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var carousel = recipe({base:[{flexDirection:'column',gap:'12'},'ProteusImageCarousel__1t6qej70']});
@@ -7,7 +7,7 @@ import { IconAngleLeft } from '../icons/IconAngleLeft.js';
7
7
  import { IconAngleRight } from '../icons/IconAngleRight.js';
8
8
  import { useProteusDocumentContext } from '../proteus-document/ProteusDocumentContext.js';
9
9
  import { ProteusImage } from '../proteus-image/ProteusImage.js';
10
- import { carousel, content, viewport, slideContainer, slide, navButton, thumbnail } from './ProteusImageCarousel-css.js';
10
+ import { slide, slideContainer, viewport, navButton, content, thumbnail, carousel } from './ProteusImageCarousel-css.js';
11
11
 
12
12
  function ProteusImageCarousel({
13
13
  images,
@@ -1,4 +1,4 @@
1
- import './../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-0cQoAJ0-.css';
1
+ import './../assets/src/proteus-question/ProteusQuestion.css.ts.vanilla-DRvLrb5J.css';
2
2
  import { recipe } from '@optiaxiom/react/css-runtime';
3
3
 
4
4
  var addon = recipe({base:[{display:'grid',fontWeight:'500',placeItems:'center',rounded:'lg',size:'md',transition:'colors'},'ProteusQuestion__8f590p3'],variants:{cursor:{pointer:{cursor:'pointer'}}}});
@@ -1,16 +1,15 @@
1
1
  "use client";
2
2
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
3
- import { IconNorth } from '@optiaxiom/icons';
3
+ import { IconArrowRightAlt, IconEdit } from '@optiaxiom/icons';
4
4
  import { Group, Text, Button, Box, Checkbox } from '@optiaxiom/react';
5
5
  import { InlineInput } from '@optiaxiom/react/unstable';
6
6
  import * as RovingFocus from '@radix-ui/react-roving-focus';
7
7
  import { useState, useCallback, useRef, useEffect } from 'react';
8
8
  import { IconAngleLeft } from '../icons/IconAngleLeft.js';
9
9
  import { IconAngleRight } from '../icons/IconAngleRight.js';
10
- import { IconPencil } from '../icons/IconPencil.js';
11
10
  import { IconX } from '../icons/IconX.js';
12
11
  import { useProteusDocumentContext } from '../proteus-document/ProteusDocumentContext.js';
13
- import { question, choiceGroup, choice, addon } from './ProteusQuestion-css.js';
12
+ import { addon, choice, choiceGroup, question } from './ProteusQuestion-css.js';
14
13
 
15
14
  function ProteusQuestion({ questions }) {
16
15
  const { onEvent } = useProteusDocumentContext(
@@ -209,7 +208,7 @@ A: ${value2 || "[Not specified]"}`
209
208
  tabIndex: 0,
210
209
  ...choice({ cursor: "pointer" }),
211
210
  children: /* @__PURE__ */ jsxs(Group, { gap: "12", children: [
212
- /* @__PURE__ */ jsx(Box, { ...addon(), children: type === "single_select" ? index + 1 : /* @__PURE__ */ jsx(
211
+ type === "single_select" ? /* @__PURE__ */ jsx(Box, { ...addon(), children: index + 1 }) : /* @__PURE__ */ jsx(
213
212
  Checkbox,
214
213
  {
215
214
  checked,
@@ -217,9 +216,19 @@ A: ${value2 || "[Not specified]"}`
217
216
  pointerEvents: "none",
218
217
  tabIndex: -1
219
218
  }
220
- ) }),
219
+ ),
221
220
  /* @__PURE__ */ jsx(Group, { flex: "1", flexDirection: "column", gap: "2", children: /* @__PURE__ */ jsx(Text, { children: option }) }),
222
- type === "single_select" && checked && /* @__PURE__ */ jsx(Box, { asChild: true, color: "fg.tertiary", ml: "auto", children: /* @__PURE__ */ jsx(IconNorth, {}) })
221
+ type === "single_select" && checked && /* @__PURE__ */ jsx(
222
+ Box,
223
+ {
224
+ asChild: true,
225
+ color: "fg.tertiary",
226
+ h: "24",
227
+ ml: "auto",
228
+ w: "24",
229
+ children: /* @__PURE__ */ jsx(IconArrowRightAlt, {})
230
+ }
231
+ )
223
232
  ] })
224
233
  }
225
234
  ) }, option);
@@ -232,7 +241,7 @@ A: ${value2 || "[Not specified]"}`
232
241
  role: "group",
233
242
  ...choice({ cursor: "text" }),
234
243
  children: /* @__PURE__ */ jsxs(Group, { gap: "12", children: [
235
- /* @__PURE__ */ jsx(Box, { ...addon({ cursor: "pointer" }), children: type === "single_select" ? /* @__PURE__ */ jsx(IconPencil, {}) : /* @__PURE__ */ jsx(
244
+ type === "single_select" ? /* @__PURE__ */ jsx(Box, { ...addon({ cursor: "pointer" }), children: /* @__PURE__ */ jsx(IconEdit, {}) }) : /* @__PURE__ */ jsx(
236
245
  Checkbox,
237
246
  {
238
247
  checked: otherChecked,
@@ -240,7 +249,7 @@ A: ${value2 || "[Not specified]"}`
240
249
  pointerEvents: "none",
241
250
  tabIndex: -1
242
251
  }
243
- ) }),
252
+ ),
244
253
  /* @__PURE__ */ jsx(RovingFocus.Item, { asChild: true, children: /* @__PURE__ */ jsx(
245
254
  Group,
246
255
  {
@@ -292,9 +301,9 @@ A: ${value2 || "[Not specified]"}`
292
301
  type === "single_select" && /* @__PURE__ */ jsx(
293
302
  Button,
294
303
  {
295
- appearance: otherValue ? "primary" : "default",
304
+ appearance: otherValue ? "primary-opal" : "default",
296
305
  "aria-label": otherValue && (isLast ? "Submit" : "Next"),
297
- icon: otherValue && /* @__PURE__ */ jsx(IconNorth, {}),
306
+ icon: otherValue && /* @__PURE__ */ jsx(IconArrowRightAlt, {}),
298
307
  ml: "auto",
299
308
  onClick: (event) => {
300
309
  event.preventDefault();
@@ -342,10 +351,10 @@ A: ${value2 || "[Not specified]"}`
342
351
  /* @__PURE__ */ jsx(
343
352
  Button,
344
353
  {
345
- appearance: valid ? "primary" : "default",
354
+ appearance: valid ? "primary-opal" : "default",
346
355
  "aria-label": isLast ? "Submit" : "Next",
347
356
  disabled: !valid,
348
- icon: /* @__PURE__ */ jsx(IconNorth, {}),
357
+ icon: /* @__PURE__ */ jsx(IconArrowRightAlt, {}),
349
358
  onClick: (event) => {
350
359
  event.preventDefault();
351
360
  onSubmit();
@@ -2,9 +2,6 @@ var $schema = "http://json-schema.org/draft-07/schema#";
2
2
  var definitions = {
3
3
  SprinkleProp_alignItems: {
4
4
  anyOf: [
5
- {
6
- "const": "normal"
7
- },
8
5
  {
9
6
  "const": "stretch"
10
7
  },
@@ -17,6 +14,9 @@ var definitions = {
17
14
  {
18
15
  "const": "start"
19
16
  },
17
+ {
18
+ "const": "normal"
19
+ },
20
20
  {
21
21
  $ref: "#/definitions/ProteusExpression"
22
22
  }
@@ -25,9 +25,6 @@ var definitions = {
25
25
  },
26
26
  SprinkleProp_alignSelf: {
27
27
  anyOf: [
28
- {
29
- "const": "normal"
30
- },
31
28
  {
32
29
  "const": "stretch"
33
30
  },
@@ -40,6 +37,9 @@ var definitions = {
40
37
  {
41
38
  "const": "start"
42
39
  },
40
+ {
41
+ "const": "normal"
42
+ },
43
43
  {
44
44
  $ref: "#/definitions/ProteusExpression"
45
45
  }
@@ -456,13 +456,13 @@ var definitions = {
456
456
  SprinkleProp_cursor: {
457
457
  anyOf: [
458
458
  {
459
- "const": "default"
459
+ "const": "text"
460
460
  },
461
461
  {
462
- "const": "pointer"
462
+ "const": "default"
463
463
  },
464
464
  {
465
- "const": "text"
465
+ "const": "pointer"
466
466
  },
467
467
  {
468
468
  $ref: "#/definitions/ProteusExpression"
@@ -841,9 +841,6 @@ var definitions = {
841
841
  },
842
842
  SprinkleProp_justifyContent: {
843
843
  anyOf: [
844
- {
845
- "const": "normal"
846
- },
847
844
  {
848
845
  "const": "space-around"
849
846
  },
@@ -871,6 +868,9 @@ var definitions = {
871
868
  {
872
869
  "const": "start"
873
870
  },
871
+ {
872
+ "const": "normal"
873
+ },
874
874
  {
875
875
  $ref: "#/definitions/ProteusExpression"
876
876
  }
@@ -879,9 +879,6 @@ var definitions = {
879
879
  },
880
880
  SprinkleProp_justifyItems: {
881
881
  anyOf: [
882
- {
883
- "const": "normal"
884
- },
885
882
  {
886
883
  "const": "stretch"
887
884
  },
@@ -894,6 +891,9 @@ var definitions = {
894
891
  {
895
892
  "const": "start"
896
893
  },
894
+ {
895
+ "const": "normal"
896
+ },
897
897
  {
898
898
  $ref: "#/definitions/ProteusExpression"
899
899
  }
@@ -4984,9 +4984,6 @@ var definitions = {
4984
4984
  },
4985
4985
  alignItems: {
4986
4986
  anyOf: [
4987
- {
4988
- "const": "normal"
4989
- },
4990
4987
  {
4991
4988
  "const": "stretch"
4992
4989
  },
@@ -4999,6 +4996,9 @@ var definitions = {
4999
4996
  {
5000
4997
  "const": "start"
5001
4998
  },
4999
+ {
5000
+ "const": "normal"
5001
+ },
5002
5002
  {
5003
5003
  $ref: "#/definitions/ProteusExpression"
5004
5004
  }
@@ -1,9 +1,6 @@
1
1
  var definitions = {
2
2
  SprinkleProp_alignItems: {
3
3
  anyOf: [
4
- {
5
- "const": "normal"
6
- },
7
4
  {
8
5
  "const": "stretch"
9
6
  },
@@ -16,6 +13,9 @@ var definitions = {
16
13
  {
17
14
  "const": "start"
18
15
  },
16
+ {
17
+ "const": "normal"
18
+ },
19
19
  {
20
20
  $ref: "#/definitions/ProteusExpression"
21
21
  }
@@ -24,9 +24,6 @@ var definitions = {
24
24
  },
25
25
  SprinkleProp_alignSelf: {
26
26
  anyOf: [
27
- {
28
- "const": "normal"
29
- },
30
27
  {
31
28
  "const": "stretch"
32
29
  },
@@ -39,6 +36,9 @@ var definitions = {
39
36
  {
40
37
  "const": "start"
41
38
  },
39
+ {
40
+ "const": "normal"
41
+ },
42
42
  {
43
43
  $ref: "#/definitions/ProteusExpression"
44
44
  }
@@ -455,13 +455,13 @@ var definitions = {
455
455
  SprinkleProp_cursor: {
456
456
  anyOf: [
457
457
  {
458
- "const": "default"
458
+ "const": "text"
459
459
  },
460
460
  {
461
- "const": "pointer"
461
+ "const": "default"
462
462
  },
463
463
  {
464
- "const": "text"
464
+ "const": "pointer"
465
465
  },
466
466
  {
467
467
  $ref: "#/definitions/ProteusExpression"
@@ -840,9 +840,6 @@ var definitions = {
840
840
  },
841
841
  SprinkleProp_justifyContent: {
842
842
  anyOf: [
843
- {
844
- "const": "normal"
845
- },
846
843
  {
847
844
  "const": "space-around"
848
845
  },
@@ -870,6 +867,9 @@ var definitions = {
870
867
  {
871
868
  "const": "start"
872
869
  },
870
+ {
871
+ "const": "normal"
872
+ },
873
873
  {
874
874
  $ref: "#/definitions/ProteusExpression"
875
875
  }
@@ -878,9 +878,6 @@ var definitions = {
878
878
  },
879
879
  SprinkleProp_justifyItems: {
880
880
  anyOf: [
881
- {
882
- "const": "normal"
883
- },
884
881
  {
885
882
  "const": "stretch"
886
883
  },
@@ -893,6 +890,9 @@ var definitions = {
893
890
  {
894
891
  "const": "start"
895
892
  },
893
+ {
894
+ "const": "normal"
895
+ },
896
896
  {
897
897
  $ref: "#/definitions/ProteusExpression"
898
898
  }
@@ -4953,9 +4953,6 @@ var definitions = {
4953
4953
  },
4954
4954
  alignItems: {
4955
4955
  anyOf: [
4956
- {
4957
- "const": "normal"
4958
- },
4959
4956
  {
4960
4957
  "const": "stretch"
4961
4958
  },
@@ -4968,6 +4965,9 @@ var definitions = {
4968
4965
  {
4969
4966
  "const": "start"
4970
4967
  },
4968
+ {
4969
+ "const": "normal"
4970
+ },
4971
4971
  {
4972
4972
  $ref: "#/definitions/ProteusExpression"
4973
4973
  }
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": "0.1.19",
10
+ "version": "0.1.21",
11
11
  "files": [
12
12
  "dist/**",
13
13
  "LICENSE"
@@ -32,18 +32,18 @@
32
32
  "@radix-ui/react-context": "^1.1.2",
33
33
  "@radix-ui/react-roving-focus": "^1.1.11",
34
34
  "@radix-ui/react-use-controllable-state": "^1.2.2",
35
- "@tanstack/react-table": "^8.0.0",
35
+ "@tanstack/react-table": "^8.21.3",
36
36
  "embla-carousel-react": "^8.6.0",
37
37
  "jsonpointer": "^5.0.1",
38
- "recharts": "^3.7.0",
39
- "@optiaxiom/icons": "0.1.4",
40
- "@optiaxiom/react": "1.9.25"
38
+ "recharts": "^3.8.1",
39
+ "@optiaxiom/icons": "1.0.0",
40
+ "@optiaxiom/react": "1.9.26"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@emotion/hash": "^0.9.2",
44
- "@vanilla-extract/css": "^1.17.4",
45
- "autoprefixer": "^10.4.21",
46
- "postcss": "^8.5.6",
44
+ "@vanilla-extract/css": "^1.20.1",
45
+ "autoprefixer": "^10.5.0",
46
+ "postcss": "^8.5.10",
47
47
  "@optiaxiom/shared": "0.0.0"
48
48
  },
49
49
  "peerDependencies": {
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { jsx } from 'react/jsx-runtime';
3
- import { withIcon } from './withIcon.js';
4
-
5
- const IconPencil = withIcon(
6
- {
7
- name: "IconPencil",
8
- viewBox: "0 0 640 640"
9
- },
10
- // <!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.-->
11
- /* @__PURE__ */ jsx(
12
- "path",
13
- {
14
- d: "M100.4 417.2C104.5 402.6 112.2 389.3 123 378.5L304.2 197.3L338.1 163.4C354.7 180 389.4 214.7 442.1 267.4L476 301.3L442.1 335.2L260.9 516.4C250.2 527.1 236.8 534.9 222.2 539L94.4 574.6C86.1 576.9 77.1 574.6 71 568.4C64.9 562.2 62.6 553.3 64.9 545L100.4 417.2zM156 413.5C151.6 418.2 148.4 423.9 146.7 430.1L122.6 517L209.5 492.9C215.9 491.1 221.7 487.8 226.5 483.2L155.9 413.5zM510 267.4C493.4 250.8 458.7 216.1 406 163.4L372 129.5C398.5 103 413.4 88.1 416.9 84.6C430.4 71 448.8 63.4 468 63.4C487.2 63.4 505.6 71 519.1 84.6L554.8 120.3C568.4 133.9 576 152.3 576 171.4C576 190.5 568.4 209 554.8 222.5C551.3 226 536.4 240.9 509.9 267.4z",
15
- fill: "currentColor"
16
- }
17
- )
18
- );
19
-
20
- export { IconPencil };