@optiaxiom/proteus 0.1.19 → 0.1.20

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.
@@ -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,13 +1,12 @@
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
12
  import { question, choiceGroup, choice, addon } from './ProteusQuestion-css.js';
@@ -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();
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.20",
11
11
  "files": [
12
12
  "dist/**",
13
13
  "LICENSE"
@@ -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 };