@phillips/seldon 1.119.0 → 1.121.0

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.
Files changed (116) hide show
  1. package/dist/_virtual/_commonjsHelpers.js +1 -1
  2. package/dist/components/Accordion/Accordion.js +18 -18
  3. package/dist/components/Accordion/AccordionItem.js +67 -68
  4. package/dist/components/Carousel/Carousel.js +49 -51
  5. package/dist/components/Carousel/CarouselDots.js +46 -47
  6. package/dist/components/ContentPeek/ContentPeek.js +47 -47
  7. package/dist/components/ErrorBoundary/ErrorBoundary.js +11 -12
  8. package/dist/components/Filter/Filter.js +40 -41
  9. package/dist/components/Filter/FilterHeader.js +24 -24
  10. package/dist/components/Input/Input.d.ts +1 -1
  11. package/dist/components/Input/Input.js +21 -20
  12. package/dist/components/Input/Input.stories.d.ts +7 -0
  13. package/dist/components/Link/utils.js +2 -2
  14. package/dist/components/LinkBlock/LinkBlock.js +12 -13
  15. package/dist/components/LinkList/LinkList.js +8 -11
  16. package/dist/components/Navigation/Navigation.js +21 -22
  17. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +48 -50
  18. package/dist/components/Navigation/NavigationList/NavigationList.js +33 -35
  19. package/dist/components/Pagination/Pagination.js +7 -7
  20. package/dist/components/Pagination/utils.js +1 -1
  21. package/dist/components/PinchZoom/PinchZoom.js +40 -43
  22. package/dist/components/Search/Search.js +94 -98
  23. package/dist/components/Search/SearchButton.js +19 -19
  24. package/dist/components/SeldonImage/SeldonImage.js +1 -1
  25. package/dist/components/Select/Select.js +22 -14
  26. package/dist/components/Select/Select.stories.d.ts +15 -0
  27. package/dist/components/Tabs/TabTrigger.js +13 -13
  28. package/dist/node_modules/@artsy/fresnel/dist/Breakpoints.js +2 -2
  29. package/dist/node_modules/@artsy/fresnel/dist/DynamicResponsive.js +1 -1
  30. package/dist/node_modules/@artsy/fresnel/dist/Interactions.js +2 -2
  31. package/dist/node_modules/@artsy/fresnel/dist/Media.js +2 -2
  32. package/dist/node_modules/@artsy/fresnel/dist/MediaQueries.js +1 -1
  33. package/dist/node_modules/@artsy/fresnel/dist/Utils.js +1 -1
  34. package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +1 -1
  35. package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +1 -1
  36. package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +2 -2
  37. package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +2 -2
  38. package/dist/node_modules/@radix-ui/primitive/dist/index.js +5 -5
  39. package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +63 -67
  40. package/dist/node_modules/@radix-ui/react-context/dist/index.js +35 -35
  41. package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +79 -83
  42. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/primitive/dist/index.js +5 -5
  43. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-context/dist/index.js +43 -45
  44. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
  45. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
  46. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
  47. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
  48. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
  49. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  50. package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
  51. package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +86 -87
  52. package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +7 -8
  53. package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +56 -57
  54. package/dist/node_modules/@radix-ui/react-id/dist/index.js +10 -10
  55. package/dist/node_modules/@radix-ui/react-popper/dist/index.js +113 -115
  56. package/dist/node_modules/@radix-ui/react-portal/dist/index.js +12 -13
  57. package/dist/node_modules/@radix-ui/react-presence/dist/index.js +33 -37
  58. package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +1 -1
  59. package/dist/node_modules/@radix-ui/react-select/dist/index.js +422 -439
  60. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
  61. package/dist/node_modules/@radix-ui/react-select/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +1 -1
  62. package/dist/node_modules/@radix-ui/react-slot/dist/index.js +18 -19
  63. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-context/dist/index.js +39 -41
  64. package/dist/node_modules/@radix-ui/react-tabs/node_modules/@radix-ui/react-presence/dist/index.js +37 -42
  65. package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +7 -10
  66. package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +1 -1
  67. package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
  68. package/dist/node_modules/aria-hidden/dist/es2015/index.js +1 -1
  69. package/dist/node_modules/change-case/dist/index.js +41 -44
  70. package/dist/node_modules/date-fns/differenceInCalendarDays.js +11 -11
  71. package/dist/node_modules/date-fns/differenceInDays.js +9 -9
  72. package/dist/node_modules/date-fns/differenceInHours.js +11 -11
  73. package/dist/node_modules/date-fns/differenceInMinutes.js +8 -8
  74. package/dist/node_modules/date-fns/differenceInSeconds.js +7 -7
  75. package/dist/node_modules/date-fns/formatDuration.js +11 -12
  76. package/dist/node_modules/date-fns/isSameWeek.js +8 -8
  77. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +12 -12
  78. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +3 -3
  79. package/dist/node_modules/date-fns/locale/zh-CN/_lib/formatDistance.js +5 -5
  80. package/dist/node_modules/date-fns/locale/zh-CN/_lib/localize.js +10 -10
  81. package/dist/node_modules/date-fns/startOfDay.js +6 -6
  82. package/dist/node_modules/date-fns/startOfWeek.js +7 -8
  83. package/dist/node_modules/embla-carousel/esm/embla-carousel.esm.js +1 -1
  84. package/dist/node_modules/embla-carousel-reactive-utils/esm/embla-carousel-reactive-utils.esm.js +1 -1
  85. package/dist/node_modules/exenv/index.js +2 -2
  86. package/dist/node_modules/get-nonce/dist/es2015/index.js +1 -1
  87. package/dist/node_modules/prop-types/checkPropTypes.js +2 -2
  88. package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
  89. package/dist/node_modules/react-intersection-observer/dist/index.js +2 -2
  90. package/dist/node_modules/react-lifecycles-compat/react-lifecycles-compat.es.js +1 -1
  91. package/dist/node_modules/react-modal/lib/components/ModalPortal.js +1 -1
  92. package/dist/node_modules/react-modal/lib/helpers/scopeTab.js +1 -1
  93. package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +1 -1
  94. package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +1 -1
  95. package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +1 -1
  96. package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
  97. package/dist/node_modules/react-zoom-pan-pinch/dist/index.esm.js +14 -14
  98. package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +1 -1
  99. package/dist/node_modules/usehooks-ts/dist/index.js +1 -1
  100. package/dist/node_modules/warning/warning.js +1 -1
  101. package/dist/node_modules/wheel-gestures/dist/wheel-gestures.esm.js +1 -1
  102. package/dist/patterns/BidSnapshot/BidSnapshot.js +58 -58
  103. package/dist/patterns/DetailList/DetailList.js +22 -22
  104. package/dist/patterns/FilterMenu/FilterMenu.js +15 -15
  105. package/dist/patterns/LanguageSelector/LanguageSelector.js +23 -23
  106. package/dist/patterns/LanguageSelector/utils.js +2 -5
  107. package/dist/patterns/ObjectTile/ObjectTile.d.ts +4 -0
  108. package/dist/patterns/ObjectTile/ObjectTile.js +50 -48
  109. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +2 -0
  110. package/dist/patterns/ViewingsList/StatefulViewingsList.js +16 -16
  111. package/dist/patterns/ViewingsList/ViewingsList.js +42 -42
  112. package/dist/patterns/ViewingsList/ViewingsListCard.js +122 -123
  113. package/dist/patterns/ViewingsList/ViewingsListCardForm.js +170 -170
  114. package/dist/scss/patterns/ObjectTile/_objectTile.scss +17 -1
  115. package/dist/site-furniture/Header/Header.js +32 -32
  116. package/package.json +2 -1
@@ -1,167 +1,166 @@
1
- import { jsxs as f, jsx as t, Fragment as $ } from "react/jsx-runtime";
2
- import * as c from "react";
3
- import ft from "../../node_modules/classnames/index.js";
4
- import { px as i } from "../../utils/index.js";
5
- import y from "../../components/Input/Input.js";
6
- import s from "../../components/Button/Button.js";
7
- import { ButtonVariants as l } from "../../components/Button/types.js";
8
- import mt from "./ViewingsListCardForm.js";
9
- const u = `${i}-viewings-list-card`, dt = ({
10
- address1: d,
11
- address1Label: C,
12
- addressUrl: O,
13
- addressUrlLabel: w,
14
- address2: v,
15
- address2Label: x,
16
- address3: A,
17
- address3Label: L,
18
- cancelBtnLabel: T = "CANCEL",
19
- cardTitle: V = "Add New Viewing",
20
- deleteBtnLabel: _ = "DELETE",
21
- editBtnLabel: k = "EDIT",
22
- isEditState: o,
1
+ import { jsxs as f, jsx as t, Fragment as g } from "react/jsx-runtime";
2
+ import * as l from "react";
3
+ import ut from "../../node_modules/classnames/index.js";
4
+ import { px as c } from "../../utils/index.js";
5
+ import v from "../../components/Input/Input.js";
6
+ import o from "../../components/Button/Button.js";
7
+ import { ButtonVariants as r } from "../../components/Button/types.js";
8
+ import ft from "./ViewingsListCardForm.js";
9
+ const s = `${c}-viewings-list-card`, Et = ({
10
+ address1: E,
11
+ address1Label: $,
12
+ addressUrl: y,
13
+ addressUrlLabel: C,
14
+ address2: O,
15
+ address2Label: w,
16
+ address3: x,
17
+ address3Label: A,
18
+ cancelBtnLabel: L = "CANCEL",
19
+ cardTitle: T = "Add New Viewing",
20
+ deleteBtnLabel: V = "DELETE",
21
+ editBtnLabel: _ = "EDIT",
22
+ isEditState: n,
23
23
  enableOnSite: m = "false",
24
- enableOnSiteToggleLabel: I = "Enabled on website",
25
- email: N,
26
- emailLabel: S = "Email",
27
- emailLink: j,
28
- emailLinkLabel: z = "Email Address",
29
- emailOn: B = "false",
30
- emailToggleLabel: D = "Include Email Address",
24
+ enableOnSiteToggleLabel: k = "Enabled on website",
25
+ email: I,
26
+ emailLabel: N = "Email",
27
+ emailLink: S,
28
+ emailLinkLabel: j = "Email Address",
29
+ emailOn: z = "false",
30
+ emailToggleLabel: B = "Include Email Address",
31
31
  id: e,
32
- invalidFields: n,
33
- location: R,
34
- locationLabel: q = "Location",
35
- onCancel: p,
36
- onEdit: h,
37
- onDelete: b,
38
- onSave: g,
39
- previewDates: G,
40
- previewDatesLabel: H,
41
- previewHours1: J,
42
- previewHours1Label: K,
43
- previewHours2: M,
44
- previewHours2Label: P,
45
- previewLabel: Q,
46
- previewLabelValue: U,
47
- previewOn: W,
48
- previewToggleLabel: X,
49
- saveBtnLabel: Y = "SAVE DETAILS",
50
- viewingLabel: Z,
51
- viewingLabelValue: F,
52
- viewingDates: tt,
53
- viewingDatesLabel: et,
54
- viewingHours1: nt,
55
- viewingHours1Label: ot,
56
- viewingHours2: rt,
32
+ invalidFields: i,
33
+ location: D,
34
+ locationLabel: R = "Location",
35
+ onCancel: d,
36
+ onEdit: p,
37
+ onDelete: h,
38
+ onSave: b,
39
+ previewDates: q,
40
+ previewDatesLabel: G,
41
+ previewHours1: H,
42
+ previewHours1Label: J,
43
+ previewHours2: K,
44
+ previewHours2Label: M,
45
+ previewLabel: P,
46
+ previewLabelValue: Q,
47
+ previewOn: U,
48
+ previewToggleLabel: W,
49
+ saveBtnLabel: X = "SAVE DETAILS",
50
+ viewingLabel: Y,
51
+ viewingLabelValue: Z,
52
+ viewingDates: F,
53
+ viewingDatesLabel: tt,
54
+ viewingHours1: et,
55
+ viewingHours1Label: nt,
56
+ viewingHours2: it,
57
57
  viewingHours2Label: at
58
58
  }) => {
59
- const [ct, st] = c.useState(m === "true"), a = c.useRef(null);
60
- c.useEffect(() => {
61
- o && a.current && a.current.focus();
62
- }, [o]), c.useEffect(() => {
63
- var r, E;
64
- n && a.current && ((E = (r = a.current.closest(`.${i}-viewings-list-card`)) == null ? void 0 : r.querySelector(`.${i}-input--invalid input`)) == null || E.focus());
65
- }, [n]);
66
- const lt = () => {
59
+ const [lt, ot] = l.useState(m === "true"), a = l.useRef(null);
60
+ l.useEffect(() => {
61
+ n && a.current && a.current.focus();
62
+ }, [n]), l.useEffect(() => {
63
+ i && a.current && a.current.closest(`.${c}-viewings-list-card`)?.querySelector(`.${c}-input--invalid input`)?.focus();
64
+ }, [i]);
65
+ const rt = () => {
66
+ typeof d == "function" && d();
67
+ }, st = () => {
67
68
  typeof p == "function" && p();
68
- }, ut = () => {
69
- typeof h == "function" && h();
70
- }, it = (r) => {
71
- typeof g == "function" && g(r);
69
+ }, ct = (u) => {
70
+ typeof b == "function" && b(u);
72
71
  };
73
72
  return /* @__PURE__ */ f(
74
73
  "section",
75
74
  {
76
75
  "data-testid": `viewings-list-card-${e}`,
77
76
  id: e,
78
- className: ft(`${u}`, { [`${u}--edit-state`]: o }),
77
+ className: ut(`${s}`, { [`${s}--edit-state`]: n }),
79
78
  children: [
80
- /* @__PURE__ */ t("h3", { className: `${u}__title`, children: V }),
79
+ /* @__PURE__ */ t("h3", { className: `${s}__title`, children: T }),
81
80
  /* @__PURE__ */ t("input", { type: "hidden", name: "id", value: e }),
82
81
  /* @__PURE__ */ t(
83
- y,
82
+ v,
84
83
  {
85
84
  ref: a,
86
85
  id: `location-${e}`,
87
- defaultValue: R,
88
- labelText: q,
86
+ defaultValue: D,
87
+ labelText: R,
89
88
  size: "sm",
90
89
  name: "location",
91
- invalid: !!(n != null && n.location),
92
- invalidText: n == null ? void 0 : n.location,
93
- readOnly: !o
90
+ invalid: !!i?.location,
91
+ invalidText: i?.location,
92
+ readOnly: !n
94
93
  }
95
94
  ),
96
- o ? /* @__PURE__ */ t(
97
- mt,
95
+ n ? /* @__PURE__ */ t(
96
+ ft,
98
97
  {
99
- address1: d,
100
- address1Label: C,
101
- addressUrl: O,
102
- addressUrlLabel: w,
103
- address2: v,
104
- address2Label: x,
105
- address3: A,
106
- address3Label: L,
107
- email: N,
108
- emailLabel: S,
109
- emailLink: j,
110
- emailLinkLabel: z,
111
- emailOn: B,
112
- emailToggleLabel: D,
98
+ address1: E,
99
+ address1Label: $,
100
+ addressUrl: y,
101
+ addressUrlLabel: C,
102
+ address2: O,
103
+ address2Label: w,
104
+ address3: x,
105
+ address3Label: A,
106
+ email: I,
107
+ emailLabel: N,
108
+ emailLink: S,
109
+ emailLinkLabel: j,
110
+ emailOn: z,
111
+ emailToggleLabel: B,
113
112
  id: e,
114
- invalidFields: n,
115
- previewDates: G,
116
- previewDatesLabel: H,
117
- previewHours1: J,
118
- previewHours1Label: K,
119
- previewHours2: M,
120
- previewHours2Label: P,
121
- previewLabel: Q,
122
- previewLabelValue: U,
123
- previewOn: W,
124
- previewToggleLabel: X,
125
- viewingLabel: Z,
126
- viewingLabelValue: F,
127
- viewingDates: tt,
128
- viewingDatesLabel: et,
129
- viewingHours1: nt,
130
- viewingHours1Label: ot,
131
- viewingHours2: rt,
113
+ invalidFields: i,
114
+ previewDates: q,
115
+ previewDatesLabel: G,
116
+ previewHours1: H,
117
+ previewHours1Label: J,
118
+ previewHours2: K,
119
+ previewHours2Label: M,
120
+ previewLabel: P,
121
+ previewLabelValue: Q,
122
+ previewOn: U,
123
+ previewToggleLabel: W,
124
+ viewingLabel: Y,
125
+ viewingLabelValue: Z,
126
+ viewingDates: F,
127
+ viewingDatesLabel: tt,
128
+ viewingHours1: et,
129
+ viewingHours1Label: nt,
130
+ viewingHours2: it,
132
131
  viewingHours2Label: at
133
132
  }
134
133
  ) : null,
135
134
  /* @__PURE__ */ t(
136
- y,
135
+ v,
137
136
  {
138
137
  id: `enableOnSite-${e}`,
139
138
  type: "toggle",
140
139
  defaultChecked: m === "true",
141
- labelText: I,
140
+ labelText: k,
142
141
  size: "md",
143
142
  inline: !0,
144
143
  value: "true",
145
144
  name: "enableOnSite",
146
- onChange: () => st((r) => !r),
147
- readOnly: !o
145
+ onChange: () => ot((u) => !u),
146
+ readOnly: !n
148
147
  }
149
148
  ),
150
- ct ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "enableOnSite", value: "false" }),
149
+ lt ? null : /* @__PURE__ */ t("input", { type: "hidden", name: "enableOnSite", value: "false" }),
151
150
  /* @__PURE__ */ t("hr", {}),
152
- /* @__PURE__ */ t("div", { className: `${u}__btn-group ${i}-button__group`, children: o ? /* @__PURE__ */ f($, { children: [
153
- /* @__PURE__ */ t(s, { id: `vlc-save-btn-${e}`, variant: l.ghost, type: "submit", onClick: it, children: Y }),
154
- /* @__PURE__ */ t(s, { id: `vlc-cancel-btn-${e}`, variant: l.ghost, type: "button", onClick: lt, children: T })
155
- ] }) : /* @__PURE__ */ f($, { children: [
156
- /* @__PURE__ */ t(s, { id: `vlc-edit-btn-${e}`, variant: l.ghost, type: "button", onClick: ut, children: k }),
151
+ /* @__PURE__ */ t("div", { className: `${s}__btn-group ${c}-button__group`, children: n ? /* @__PURE__ */ f(g, { children: [
152
+ /* @__PURE__ */ t(o, { id: `vlc-save-btn-${e}`, variant: r.ghost, type: "submit", onClick: ct, children: X }),
153
+ /* @__PURE__ */ t(o, { id: `vlc-cancel-btn-${e}`, variant: r.ghost, type: "button", onClick: rt, children: L })
154
+ ] }) : /* @__PURE__ */ f(g, { children: [
155
+ /* @__PURE__ */ t(o, { id: `vlc-edit-btn-${e}`, variant: r.ghost, type: "button", onClick: st, children: _ }),
157
156
  /* @__PURE__ */ t(
158
- s,
157
+ o,
159
158
  {
160
159
  id: `vlc-delete-btn-${e}`,
161
- variant: l.ghost,
160
+ variant: r.ghost,
162
161
  type: "button",
163
- onClick: () => typeof b == "function" && b(e),
164
- children: _
162
+ onClick: () => typeof h == "function" && h(e),
163
+ children: V
165
164
  }
166
165
  )
167
166
  ] }) })
@@ -170,5 +169,5 @@ const u = `${i}-viewings-list-card`, dt = ({
170
169
  );
171
170
  };
172
171
  export {
173
- dt as default
172
+ Et as default
174
173
  };