@phillips/seldon 1.77.0 → 1.77.1

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,111 +1,112 @@
1
- import { jsxs as g, jsx as o, Fragment as f } from "react/jsx-runtime";
2
- import { getCommonProps as v } from "../../utils/index.js";
3
- import $ from "../../assets/plus.svg.js";
4
- import I from "../../assets/minus.svg.js";
5
- import _ from "../../assets/lock.svg.js";
6
- import d from "../../node_modules/classnames/index.js";
7
- import { Item as C, Trigger as x, Content as N } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
1
+ import { jsxs as $, jsx as t } from "react/jsx-runtime";
2
+ import { getCommonProps as f } from "../../utils/index.js";
3
+ import g from "../../assets/plus.svg.js";
4
+ import v from "../../assets/minus.svg.js";
5
+ import I from "../../assets/lock.svg.js";
6
+ import a from "../../node_modules/classnames/index.js";
7
+ import { Item as _, Trigger as x, Content as C } from "../../node_modules/@radix-ui/react-accordion/dist/index.js";
8
8
  import { AccordionItemVariant as h } from "./types.js";
9
9
  import { getIconClasses as u } from "./utils.js";
10
10
  const A = ({
11
11
  children: n,
12
- className: s,
13
- baseClassName: t,
14
- disable: c,
15
- isLargeVariation: e,
16
- id: r
12
+ className: e,
13
+ baseClassName: o,
14
+ disable: s,
15
+ isLargeVariation: r,
16
+ id: c
17
17
  }) => {
18
- const i = c, l = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
19
- _,
18
+ const i = s, l = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
19
+ I,
20
20
  {
21
- className: u(t, e, "lock"),
22
- "data-testid": `${r}-lockedIcon`,
21
+ className: u(o, r, "lock"),
22
+ "data-testid": `${c}-lockedIcon`,
23
23
  "aria-hidden": !0
24
24
  }
25
- ) }), p = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
26
- $,
25
+ ) }), p = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
26
+ g,
27
27
  {
28
- className: u(t, e, "plus"),
29
- "data-testid": `${r}-plusIcon`,
28
+ className: u(o, r, "plus"),
29
+ "data-testid": `${c}-plusIcon`,
30
30
  "aria-hidden": !0
31
31
  }
32
- ) }), a = /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(
33
- I,
32
+ ) }), d = /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
33
+ v,
34
34
  {
35
- className: u(t, e, "minus"),
36
- "data-testid": `${r}-minusIcon`,
35
+ className: u(o, r, "minus"),
36
+ "data-testid": `${c}-minusIcon`,
37
37
  "aria-hidden": !0
38
38
  }
39
39
  ) });
40
- return /* @__PURE__ */ o(
40
+ return /* @__PURE__ */ t(
41
41
  x,
42
42
  {
43
- "data-disabled": c,
43
+ "data-disabled": s,
44
44
  asChild: !0,
45
- className: d(t, { [`${t}--hoverable`]: !c }, s),
46
- children: /* @__PURE__ */ g("div", { "data-testid": `${r}-trigger`, children: [
47
- /* @__PURE__ */ o("div", { className: d(`${t}__text`, { [`${t}__text--lg`]: e }), children: n }),
45
+ className: a(o, { [`${o}--hoverable`]: !s }, e),
46
+ children: /* @__PURE__ */ $("div", { "data-testid": `${c}-trigger`, children: [
47
+ /* @__PURE__ */ t("div", { className: a(`${o}__text`, { [`${o}__text--lg`]: r }), children: n }),
48
48
  i && l,
49
49
  !i && p,
50
- !i && a
50
+ !i && d
51
51
  ] })
52
52
  }
53
53
  );
54
- }, k = ({
54
+ }, N = ({
55
55
  children: n,
56
- baseClassName: s,
57
- disable: t,
58
- hasTransition: c,
59
- isLargeVariation: e,
60
- className: r
61
- }) => /* @__PURE__ */ o(f, { children: t && n ? /* @__PURE__ */ o("div", { children: n }) : /* @__PURE__ */ o(
62
- N,
56
+ baseClassName: e,
57
+ disable: o,
58
+ hasTransition: s,
59
+ isLargeVariation: r,
60
+ className: c
61
+ }) => o && n ? /* @__PURE__ */ t("div", { children: n }) : /* @__PURE__ */ t(
62
+ C,
63
63
  {
64
64
  asChild: !0,
65
- className: d(
66
- { [`${s}__content--lg`]: e },
67
- { [`${s}--transition`]: c },
68
- r
65
+ className: a(
66
+ `${e}__content`,
67
+ { [`${e}__content--lg`]: r },
68
+ { [`${e}--transition`]: s },
69
+ c
69
70
  ),
70
71
  children: n
71
72
  }
72
- ) }), q = ({
73
+ ), q = ({
73
74
  isLocked: n = !1,
74
- variant: s = h.sm,
75
- id: t,
76
- label: c,
77
- isLastItem: e,
78
- hasTransition: r = !1,
75
+ variant: e = h.sm,
76
+ id: o,
77
+ label: s,
78
+ isLastItem: r,
79
+ hasTransition: c = !1,
79
80
  children: i,
80
81
  ...l
81
82
  }) => {
82
- const { className: p } = v({ id: t }, "Accordion"), a = s === h.lg, m = `${p}-item`;
83
- return /* @__PURE__ */ g(
84
- C,
83
+ const { className: p } = f({ id: o }, "Accordion"), d = e === h.lg, m = `${p}-item`;
84
+ return /* @__PURE__ */ $(
85
+ _,
85
86
  {
86
87
  disabled: n,
87
- value: t,
88
- className: d(m, { [`${m}__border-bottom`]: !e }),
88
+ value: o,
89
+ className: a(m, { [`${m}__border-bottom`]: !r }),
89
90
  ...l,
90
91
  children: [
91
- /* @__PURE__ */ o(
92
+ /* @__PURE__ */ t(
92
93
  A,
93
94
  {
94
95
  disable: n,
95
- isLargeVariation: a,
96
- id: t,
96
+ isLargeVariation: d,
97
+ id: o,
97
98
  baseClassName: `${m}-label`,
98
- children: c
99
+ children: s
99
100
  }
100
101
  ),
101
- /* @__PURE__ */ o(
102
- k,
102
+ /* @__PURE__ */ t(
103
+ N,
103
104
  {
104
105
  disable: n,
105
- hasTransition: r,
106
- isLargeVariation: a,
106
+ hasTransition: c,
107
+ isLargeVariation: d,
107
108
  baseClassName: m,
108
- children: /* @__PURE__ */ o("div", { className: "radix-accordion-content", children: i })
109
+ children: /* @__PURE__ */ t("div", { className: "radix-accordion-content", children: i })
109
110
  }
110
111
  )
111
112
  ]
@@ -1,4 +1,4 @@
1
- import { __module as t } from "../../_virtual/index5.js";
1
+ import { __module as t } from "../../_virtual/index6.js";
2
2
  /*!
3
3
  Copyright (c) 2015 Jed Watson.
4
4
  Based on code that is Copyright 2013-2015, Facebook, Inc.
@@ -1,4 +1,4 @@
1
- import { __module as e } from "../../../../_virtual/index6.js";
1
+ import { __module as e } from "../../../../_virtual/index5.js";
2
2
  import { __require as o } from "./cjs/react-is.production.min.js";
3
3
  import { __require as t } from "./cjs/react-is.development.js";
4
4
  var r;
@@ -23,10 +23,12 @@
23
23
  height: auto;
24
24
  }
25
25
 
26
+ &__content {
27
+ margin: $spacing-sm 0;
28
+ }
29
+
26
30
  &__content--lg {
27
31
  @include text($body2);
28
-
29
- margin: 1.25rem 0;
30
32
  }
31
33
 
32
34
  &--transition {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.77.0",
3
+ "version": "1.77.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"