@phillips/seldon 1.143.2 → 1.145.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.
- package/dist/_virtual/build.js +4 -0
- package/dist/_virtual/defaults.js +4 -0
- package/dist/_virtual/encode-new-lines.js +4 -0
- package/dist/_virtual/encode-param-value.js +4 -0
- package/dist/_virtual/fold-line.js +4 -0
- package/dist/_virtual/format-date.js +4 -0
- package/dist/_virtual/format-duration.js +4 -0
- package/dist/_virtual/format-text.js +4 -0
- package/dist/_virtual/format.js +4 -0
- package/dist/_virtual/index.browser.js +6 -0
- package/dist/_virtual/index.cjs.production.min.js +4 -0
- package/dist/_virtual/index.esm.js +6 -0
- package/dist/_virtual/index10.js +4 -0
- package/dist/_virtual/index11.js +4 -0
- package/dist/_virtual/index12.js +4 -0
- package/dist/_virtual/index7.js +4 -0
- package/dist/_virtual/index8.js +4 -0
- package/dist/_virtual/index9.js +4 -0
- package/dist/_virtual/set-alarm.js +4 -0
- package/dist/_virtual/set-contact.js +4 -0
- package/dist/_virtual/set-description.js +4 -0
- package/dist/_virtual/set-geolocation.js +4 -0
- package/dist/_virtual/set-location.js +4 -0
- package/dist/_virtual/set-organizer.js +4 -0
- package/dist/_virtual/set-summary.js +4 -0
- package/dist/_virtual/validate.js +4 -0
- package/dist/components/AddToCalendar/AddToCalendar.d.ts +10 -0
- package/dist/components/AddToCalendar/AddToCalendar.js +62 -0
- package/dist/components/AddToCalendar/AddToCalendar.stories.d.ts +25 -0
- package/dist/components/AddToCalendar/AddToCalendar.test.d.ts +1 -0
- package/dist/components/AddToCalendar/calendarLinks.d.ts +6 -0
- package/dist/components/AddToCalendar/calendarLinks.js +89 -0
- package/dist/components/AddToCalendar/calendarLinks.test.d.ts +1 -0
- package/dist/components/AddToCalendar/index.d.ts +1 -0
- package/dist/components/AddToCalendar/types.d.ts +8 -0
- package/dist/components/ComboBox/ComboBox.d.ts +69 -0
- package/dist/components/ComboBox/ComboBox.js +221 -0
- package/dist/components/ComboBox/ComboBox.stories.d.ts +18 -0
- package/dist/components/ComboBox/ComboBox.test.d.ts +1 -0
- package/dist/components/ComboBox/index.d.ts +1 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.d.ts +38 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.stories.d.ts +14 -0
- package/dist/components/PhoneNumberPicker/PhoneNumberPicker.test.d.ts +1 -0
- package/dist/index.d.ts +10 -1
- package/dist/index.js +116 -112
- package/dist/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +208 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-primitive/dist/index.js +32 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-dropdown-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +608 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-collection/dist/index.js +48 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-popper/dist/index.js +218 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-roving-focus/dist/index.js +183 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-menu/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +18 -17
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-arrow/dist/index.js +24 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +127 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-focus-scope/dist/index.js +136 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-popper/dist/index.js +218 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-portal/dist/index.js +15 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-presence/dist/index.js +70 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-primitive/dist/index.js +36 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +49 -0
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +52 -0
- package/dist/node_modules/cmdk/dist/chunk-NZJY6EH4.js +17 -0
- package/dist/node_modules/cmdk/dist/index.js +312 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +7 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +517 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +59 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +52 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +20 -0
- package/dist/node_modules/date-fns/addHours.js +9 -0
- package/dist/node_modules/date-fns/addMilliseconds.js +9 -0
- package/dist/node_modules/date-fns/constants.js +6 -5
- package/dist/node_modules/date-fns/format.js +58 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +11 -0
- package/dist/node_modules/date-fns/getISOWeek.js +12 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +15 -0
- package/dist/node_modules/date-fns/getWeek.js +12 -0
- package/dist/node_modules/date-fns/getWeekYear.js +16 -0
- package/dist/node_modules/date-fns/isDate.js +7 -0
- package/dist/node_modules/date-fns/isValid.js +9 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +8 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +11 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +12 -0
- package/dist/node_modules/date-fns/startOfYear.js +9 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/getTimezoneOffsetInMilliseconds/index.js +7 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/newDateUTC/index.js +7 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzParseTimezone/index.js +63 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzPattern/index.js +4 -0
- package/dist/node_modules/date-fns-tz/dist/esm/_lib/tzTokenizeDate/index.js +71 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toDate/index.js +180 -0
- package/dist/node_modules/date-fns-tz/dist/esm/toZonedTime/index.js +10 -0
- package/dist/node_modules/ics/dist/defaults.js +23 -0
- package/dist/node_modules/ics/dist/index.js +115 -0
- package/dist/node_modules/ics/dist/pipeline/build.js +50 -0
- package/dist/node_modules/ics/dist/pipeline/format.js +70 -0
- package/dist/node_modules/ics/dist/pipeline/index.js +53 -0
- package/dist/node_modules/ics/dist/pipeline/validate.js +17 -0
- package/dist/node_modules/ics/dist/schema/index.js +211 -0
- package/dist/node_modules/ics/dist/utils/encode-new-lines.js +9 -0
- package/dist/node_modules/ics/dist/utils/encode-param-value.js +9 -0
- package/dist/node_modules/ics/dist/utils/fold-line.js +14 -0
- package/dist/node_modules/ics/dist/utils/format-date.js +68 -0
- package/dist/node_modules/ics/dist/utils/format-duration.js +10 -0
- package/dist/node_modules/ics/dist/utils/format-text.js +9 -0
- package/dist/node_modules/ics/dist/utils/index.js +87 -0
- package/dist/node_modules/ics/dist/utils/set-alarm.js +49 -0
- package/dist/node_modules/ics/dist/utils/set-contact.js +18 -0
- package/dist/node_modules/ics/dist/utils/set-description.js +15 -0
- package/dist/node_modules/ics/dist/utils/set-geolocation.js +10 -0
- package/dist/node_modules/ics/dist/utils/set-location.js +15 -0
- package/dist/node_modules/ics/dist/utils/set-organizer.js +16 -0
- package/dist/node_modules/ics/dist/utils/set-summary.js +15 -0
- package/dist/node_modules/nanoid/index.browser.js +19 -0
- package/dist/node_modules/nanoid/url-alphabet/index.js +4 -0
- package/dist/node_modules/property-expr/index.js +77 -0
- package/dist/node_modules/runes2/dist/index.cjs.development.js +139 -0
- package/dist/node_modules/runes2/dist/index.cjs.production.min.js +86 -0
- package/dist/node_modules/runes2/dist/index.js +8 -0
- package/dist/node_modules/tiny-case/index.js +17 -0
- package/dist/node_modules/toposort/index.js +65 -0
- package/dist/node_modules/yup/index.esm.js +1899 -0
- package/dist/scss/_vars.scss +3 -0
- package/dist/scss/_vars.scss.js +3 -0
- package/dist/scss/componentStyles.scss +2 -0
- package/dist/scss/components/AddToCalendar/_addToCalendar.scss +64 -0
- package/dist/scss/components/ComboBox/_combobox.scss +149 -0
- package/package.json +8 -2
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { Root as D, Trigger as E, Portal as T, Content as j } from "../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
|
+
import p from "../../node_modules/classnames/index.js";
|
|
4
|
+
import { Command as w, CommandInput as F, CommandList as K, CommandGroup as G, CommandItem as X } from "../../node_modules/cmdk/dist/index.js";
|
|
5
|
+
import l from "react";
|
|
6
|
+
import { useOnClickOutside as q } from "../../node_modules/usehooks-ts/dist/index.js";
|
|
7
|
+
import "../../assets/formatted/AccountActive.js";
|
|
8
|
+
import "../../assets/formatted/Account.js";
|
|
9
|
+
import "../../assets/formatted/Add.js";
|
|
10
|
+
import "../../assets/formatted/AppleAppStoreBadge.js";
|
|
11
|
+
import "../../assets/formatted/ArrowDown.js";
|
|
12
|
+
import "../../assets/formatted/ArrowLeft.js";
|
|
13
|
+
import "../../assets/formatted/ArrowRight.js";
|
|
14
|
+
import "../../assets/formatted/ArrowUp.js";
|
|
15
|
+
import "../../assets/formatted/Bag.js";
|
|
16
|
+
import "../../assets/formatted/Calendar.js";
|
|
17
|
+
import z from "../../assets/formatted/ChevronDown.js";
|
|
18
|
+
import "../../assets/formatted/ChevronLeft.js";
|
|
19
|
+
import "../../assets/formatted/ChevronRight.js";
|
|
20
|
+
import "../../assets/formatted/ChevronUp.js";
|
|
21
|
+
import A from "../../assets/formatted/CloseX.js";
|
|
22
|
+
import "../../assets/formatted/ConditionReport.js";
|
|
23
|
+
import "../../assets/formatted/Delete.js";
|
|
24
|
+
import "../../assets/formatted/Download.js";
|
|
25
|
+
import "../../assets/formatted/Edit.js";
|
|
26
|
+
import "../../assets/formatted/Email.js";
|
|
27
|
+
import "../../assets/formatted/Error.js";
|
|
28
|
+
import "../../assets/formatted/ExternalLink.js";
|
|
29
|
+
import "../../assets/formatted/Facebook.js";
|
|
30
|
+
import "../../assets/formatted/FavoriteActive.js";
|
|
31
|
+
import "../../assets/formatted/Favorite.js";
|
|
32
|
+
import "../../assets/formatted/Filters.js";
|
|
33
|
+
import "../../assets/formatted/Fullscreen.js";
|
|
34
|
+
import "../../assets/formatted/FullscreenExit.js";
|
|
35
|
+
import "../../assets/formatted/GavelActive.js";
|
|
36
|
+
import "../../assets/formatted/Gavel.js";
|
|
37
|
+
import "../../assets/formatted/Grid.js";
|
|
38
|
+
import "../../assets/formatted/Hide.js";
|
|
39
|
+
import "../../assets/formatted/HomeActive.js";
|
|
40
|
+
import "../../assets/formatted/Home.js";
|
|
41
|
+
import "../../assets/formatted/IconGreenCircle.js";
|
|
42
|
+
import "../../assets/formatted/IconRedCircle.js";
|
|
43
|
+
import "../../assets/formatted/Icon.js";
|
|
44
|
+
import "../../assets/formatted/Instagram.js";
|
|
45
|
+
import "../../assets/formatted/LinkedIn.js";
|
|
46
|
+
import "../../assets/formatted/List.js";
|
|
47
|
+
import "../../assets/formatted/Lock.js";
|
|
48
|
+
import "../../assets/formatted/MagnificentSeven.js";
|
|
49
|
+
import "../../assets/formatted/Menu.js";
|
|
50
|
+
import "../../assets/formatted/Mute.js";
|
|
51
|
+
import "../../assets/formatted/Pause.js";
|
|
52
|
+
import "../../assets/formatted/PhillipsAppIcon.js";
|
|
53
|
+
import "../../assets/formatted/PhillipsLogo.js";
|
|
54
|
+
import "../../assets/formatted/Play.js";
|
|
55
|
+
import "../../assets/formatted/Red.js";
|
|
56
|
+
import "../../assets/formatted/Refresh.js";
|
|
57
|
+
import "../../assets/formatted/Search.js";
|
|
58
|
+
import "../../assets/formatted/SellActive.js";
|
|
59
|
+
import "../../assets/formatted/Sell.js";
|
|
60
|
+
import "../../assets/formatted/Share.js";
|
|
61
|
+
import "../../assets/formatted/Subtract.js";
|
|
62
|
+
import "../../assets/formatted/Success.js";
|
|
63
|
+
import "../../assets/formatted/Tooltip.js";
|
|
64
|
+
import "../../assets/formatted/TwitterX.js";
|
|
65
|
+
import "../../assets/formatted/Upload.js";
|
|
66
|
+
import "../../assets/formatted/View.js";
|
|
67
|
+
import "../../assets/formatted/VolumeMaximum.js";
|
|
68
|
+
import "../../assets/formatted/VolumeMid.js";
|
|
69
|
+
import "../../assets/formatted/VolumeMinimum.js";
|
|
70
|
+
import "../../assets/formatted/WeChat.js";
|
|
71
|
+
import { getCommonProps as H } from "../../utils/index.js";
|
|
72
|
+
import { getScssVar as v } from "../../utils/scssUtils.js";
|
|
73
|
+
const J = l.forwardRef(function({
|
|
74
|
+
options: N = [],
|
|
75
|
+
className: g,
|
|
76
|
+
id: r,
|
|
77
|
+
labelText: L,
|
|
78
|
+
placeholder: x,
|
|
79
|
+
inputValue: m = "",
|
|
80
|
+
setInputValue: i,
|
|
81
|
+
ariaLabelDropdown: d,
|
|
82
|
+
ariaLabelInput: f,
|
|
83
|
+
ariaLabelClear: u,
|
|
84
|
+
ariaLabelContent: _,
|
|
85
|
+
hideLabel: R = !1,
|
|
86
|
+
autoClearInput: O = !0,
|
|
87
|
+
...k
|
|
88
|
+
}, y) {
|
|
89
|
+
const { className: e, ...I } = H({ id: r }, "ComboBox"), [C, s] = l.useState(!1), $ = l.useRef(null), S = z, B = A, b = l.useRef(null), P = l.useRef({}), c = N.filter(
|
|
90
|
+
(o) => o.value.toLowerCase().includes(m.toLowerCase()) || o.label && o.label.toLowerCase().includes(m.toLowerCase())
|
|
91
|
+
);
|
|
92
|
+
return q(b, (o) => {
|
|
93
|
+
if (o.target.closest(`.${e}__item`) || o.target.closest(`.${e}__content`))
|
|
94
|
+
return;
|
|
95
|
+
!c.some(
|
|
96
|
+
(a) => a.value.toLowerCase() === m.toLowerCase()
|
|
97
|
+
) && O && i(""), s(!1), o.stopPropagation();
|
|
98
|
+
}), /* @__PURE__ */ t("div", { ref: y, className: p(e, g), id: r, ...I, ...k, children: /* @__PURE__ */ n("div", { ref: b, children: [
|
|
99
|
+
/* @__PURE__ */ t(
|
|
100
|
+
"label",
|
|
101
|
+
{
|
|
102
|
+
htmlFor: `${r}-input`,
|
|
103
|
+
className: p(`${e}__label`, {
|
|
104
|
+
[`${e}__label--hidden`]: R
|
|
105
|
+
}),
|
|
106
|
+
"data-testid": `${r}-label`,
|
|
107
|
+
children: L
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
/* @__PURE__ */ t(
|
|
111
|
+
w,
|
|
112
|
+
{
|
|
113
|
+
loop: !0,
|
|
114
|
+
onKeyDown: (o) => {
|
|
115
|
+
setTimeout(() => {
|
|
116
|
+
o.key === "Escape" && s(!1);
|
|
117
|
+
}, 0);
|
|
118
|
+
},
|
|
119
|
+
children: /* @__PURE__ */ n(D, { open: !0, children: [
|
|
120
|
+
/* @__PURE__ */ n("div", { className: `${e}__input-wrapper`, children: [
|
|
121
|
+
/* @__PURE__ */ t(E, { asChild: !0, children: /* @__PURE__ */ t(
|
|
122
|
+
F,
|
|
123
|
+
{
|
|
124
|
+
ref: $,
|
|
125
|
+
placeholder: x,
|
|
126
|
+
value: m,
|
|
127
|
+
onValueChange: (o) => {
|
|
128
|
+
i(o), s(!0);
|
|
129
|
+
},
|
|
130
|
+
onKeyDown: (o) => {
|
|
131
|
+
o.key === "Tab" && s(!1);
|
|
132
|
+
},
|
|
133
|
+
onFocus: () => {
|
|
134
|
+
s((o) => !o), i(m);
|
|
135
|
+
},
|
|
136
|
+
className: `${e}__input`,
|
|
137
|
+
tabIndex: 0,
|
|
138
|
+
"aria-label": f || `${r}-input`,
|
|
139
|
+
"data-testid": `${r}-input`
|
|
140
|
+
}
|
|
141
|
+
) }),
|
|
142
|
+
m.length > 0 && /* @__PURE__ */ t(
|
|
143
|
+
"button",
|
|
144
|
+
{
|
|
145
|
+
className: `${e}__close-button`,
|
|
146
|
+
"data-testid": `${r}-item-close-button`,
|
|
147
|
+
onClick: () => i(""),
|
|
148
|
+
"aria-label": u || `${r}-clear`,
|
|
149
|
+
tabIndex: -1,
|
|
150
|
+
children: /* @__PURE__ */ t("div", { className: `${e}__icon`, children: /* @__PURE__ */ t(
|
|
151
|
+
B,
|
|
152
|
+
{
|
|
153
|
+
color: v("", "$primary-black"),
|
|
154
|
+
height: 18,
|
|
155
|
+
width: 18,
|
|
156
|
+
className: `${e}__icon-button`
|
|
157
|
+
}
|
|
158
|
+
) })
|
|
159
|
+
}
|
|
160
|
+
),
|
|
161
|
+
/* @__PURE__ */ t(
|
|
162
|
+
"button",
|
|
163
|
+
{
|
|
164
|
+
"aria-label": d || `${r}-dropdown`,
|
|
165
|
+
className: `${e}__dropdown-button`,
|
|
166
|
+
onClick: () => $.current?.focus(),
|
|
167
|
+
"data-testid": `${r}-dropdown`,
|
|
168
|
+
tabIndex: -1,
|
|
169
|
+
children: /* @__PURE__ */ t(
|
|
170
|
+
"div",
|
|
171
|
+
{
|
|
172
|
+
className: p(`${e}__icon`, {
|
|
173
|
+
[`${e}__icon--flipped`]: C
|
|
174
|
+
}),
|
|
175
|
+
children: /* @__PURE__ */ t(
|
|
176
|
+
S,
|
|
177
|
+
{
|
|
178
|
+
color: v("", "$pure-black"),
|
|
179
|
+
height: 18,
|
|
180
|
+
width: 18,
|
|
181
|
+
className: `${e}__icon-button`
|
|
182
|
+
}
|
|
183
|
+
)
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
] }),
|
|
189
|
+
/* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(
|
|
190
|
+
j,
|
|
191
|
+
{
|
|
192
|
+
className: `${e}__content`,
|
|
193
|
+
"aria-label": _ || `${r}-content`,
|
|
194
|
+
children: C && /* @__PURE__ */ t(K, { className: `${e}__list`, children: c.some(
|
|
195
|
+
(o) => o.value.toLowerCase().includes(m.toLowerCase()) || o.label && o.label.toLowerCase().includes(m.toLowerCase())
|
|
196
|
+
) ? /* @__PURE__ */ t(G, { children: c.map(
|
|
197
|
+
(o, h) => (o.value.toLowerCase().includes(m.toLowerCase()) || o.label && o.label.toLowerCase().includes(m.toLowerCase())) && /* @__PURE__ */ t(
|
|
198
|
+
X,
|
|
199
|
+
{
|
|
200
|
+
className: `${e}__item`,
|
|
201
|
+
value: o.label ? `${o.label} ${o.value}` : o.value,
|
|
202
|
+
ref: (a) => P.current[o.value] = a,
|
|
203
|
+
onSelect: (a) => {
|
|
204
|
+
i(a), s(!1);
|
|
205
|
+
},
|
|
206
|
+
children: o.label ? `${o.label} ${o.value}` : o.value
|
|
207
|
+
},
|
|
208
|
+
`${o.value}-${h}`
|
|
209
|
+
)
|
|
210
|
+
) }) : /* @__PURE__ */ t(w.Empty, { children: "No Options." }) })
|
|
211
|
+
}
|
|
212
|
+
) })
|
|
213
|
+
] })
|
|
214
|
+
}
|
|
215
|
+
)
|
|
216
|
+
] }) });
|
|
217
|
+
});
|
|
218
|
+
J.displayName = "ComboBox";
|
|
219
|
+
export {
|
|
220
|
+
J as default
|
|
221
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ComboBoxProps } from './ComboBox';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<ComboBoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const Playground: {
|
|
9
|
+
(props: ComboBoxProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
args: {
|
|
11
|
+
options: {
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
id: string;
|
|
15
|
+
labelText: string;
|
|
16
|
+
};
|
|
17
|
+
argTypes: {};
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ComboBox, type ComboBoxProps } from './ComboBox';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface PhoneNumberPickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Unique id for the ComboBox.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Optional className for custom styling.
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Label for the ComboBox.
|
|
13
|
+
*/
|
|
14
|
+
labelText: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional placeholder text for the input.
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Input value for the ComboBox.
|
|
21
|
+
*/
|
|
22
|
+
inputValue: string;
|
|
23
|
+
/**
|
|
24
|
+
* Passed in function to handle input value changes.
|
|
25
|
+
*/
|
|
26
|
+
setInputValue: (value: string) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* ## Overview
|
|
30
|
+
*
|
|
31
|
+
* Overview of PhoneNumberPicker component
|
|
32
|
+
*
|
|
33
|
+
* [Figma Link] https://www.figma.com/design/rIefa3bRPyZbZmtyV9PSQv/My-Account?node-id=1-3&p=f&m=dev
|
|
34
|
+
*
|
|
35
|
+
* [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-PhoneNumberPicker--overview)
|
|
36
|
+
*/
|
|
37
|
+
declare const PhoneNumberPicker: React.ForwardRefExoticComponent<PhoneNumberPickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
38
|
+
export default PhoneNumberPicker;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { PhoneNumberPickerProps } from './PhoneNumberPicker';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: React.ForwardRefExoticComponent<PhoneNumberPickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
export declare const Playground: {
|
|
9
|
+
({ ...props }: PhoneNumberPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
args: {
|
|
11
|
+
labelText: string;
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export { default as Navigation, type NavigationProps } from './components/Naviga
|
|
|
28
28
|
export { default as NavigationItem, type NavigationItemProps, } from './components/Navigation/NavigationItem/NavigationItem';
|
|
29
29
|
export { default as NavigationItemTrigger, type NavigationItemTriggerProps, } from './components/Navigation/NavigationItemTrigger/NavigationItemTrigger';
|
|
30
30
|
export { default as NavigationList, type NavigationListProps, } from './components/Navigation/NavigationList/NavigationList';
|
|
31
|
-
export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
|
|
32
31
|
export { default as Pagination, type PaginationOption, type PaginationOptionValue, type PaginationProps, } from './components/Pagination/Pagination';
|
|
33
32
|
export * from './components/PinchZoom';
|
|
34
33
|
export { default as Row, type RowProps } from './components/Row/Row';
|
|
@@ -55,6 +54,15 @@ export { default as UserManagement, type UserManagementProps } from './patterns/
|
|
|
55
54
|
export { default as StatefulViewingsList, type StatefulViewingsListProps, } from './patterns/ViewingsList/StatefulViewingsList';
|
|
56
55
|
export { default as ViewingsList, type ViewingsListProps } from './patterns/ViewingsList/ViewingsList';
|
|
57
56
|
export * from './providers/SeldonProvider/SeldonProvider';
|
|
57
|
+
export * from './components/Carousel';
|
|
58
|
+
export * from './components/ComboBox';
|
|
59
|
+
export * from './components/Detail';
|
|
60
|
+
export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
|
|
61
|
+
export * from './components/PinchZoom';
|
|
62
|
+
export * from './components/SeldonImage';
|
|
63
|
+
export * from './components/Tabs';
|
|
64
|
+
export * from './patterns/DetailList';
|
|
65
|
+
export * from './patterns/SaleHeaderBanner';
|
|
58
66
|
export { default as Footer, type FooterProps } from './site-furniture/Footer/Footer';
|
|
59
67
|
export { default as Header, type HeaderProps } from './site-furniture/Header/Header';
|
|
60
68
|
export * from './types/commonTypes';
|
|
@@ -66,6 +74,7 @@ export * from './components/FavoritingTileButton';
|
|
|
66
74
|
export * from './components/Filter';
|
|
67
75
|
export * from './components/Icon';
|
|
68
76
|
export * from './components/TextArea';
|
|
77
|
+
export * from './components/AddToCalendar';
|
|
69
78
|
export * from './patterns/AccountPageHeader';
|
|
70
79
|
export * from './patterns/BidSnapshot';
|
|
71
80
|
export * from './patterns/FilterMenu';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as d, findChildrenExcludingTypes as m, findChildrenOfType as p, focusElementById as u, generatePaddingClassName as i, getCommonProps as n, noOp as x, px as g, useNormalizedInputProps as c } from "./utils/index.js";
|
|
2
2
|
import { default as C } from "./pages/Page.js";
|
|
3
|
-
import { SSRMediaQuery as B, ssrMediaQueryStyle as
|
|
4
|
-
import { usePendingState as
|
|
5
|
-
import { AuctionStatus as
|
|
3
|
+
import { SSRMediaQuery as B, ssrMediaQueryStyle as A } from "./providers/SeldonProvider/utils.js";
|
|
4
|
+
import { usePendingState as P } from "./utils/hooks.js";
|
|
5
|
+
import { AuctionStatus as b, LotStatus as V, SupportedLanguages as h } from "./types/commonTypes.js";
|
|
6
6
|
import { default as w } from "./components/Button/Button.js";
|
|
7
7
|
import { ButtonVariants as v } from "./components/Button/types.js";
|
|
8
8
|
import { default as D } from "./components/IconButton/IconButton.js";
|
|
@@ -28,9 +28,9 @@ import { default as xe } from "./components/Drawer/Drawer.js";
|
|
|
28
28
|
import { default as ce } from "./components/Dropdown/Dropdown.js";
|
|
29
29
|
import { default as Ce } from "./components/ErrorBoundary/ErrorBoundary.js";
|
|
30
30
|
import { Grid as Be } from "./components/Grid/Grid.js";
|
|
31
|
-
import { default as
|
|
31
|
+
import { default as Le } from "./components/GridItem/GridItem.js";
|
|
32
32
|
import { GridItemAlign as Ie } from "./components/GridItem/types.js";
|
|
33
|
-
import { default as
|
|
33
|
+
import { default as Ve } from "./components/Input/Input.js";
|
|
34
34
|
import { default as ke } from "./components/Link/Link.js";
|
|
35
35
|
import { LinkVariants as ye } from "./components/Link/types.js";
|
|
36
36
|
import { default as He } from "./components/LinkBlock/LinkBlock.js";
|
|
@@ -40,68 +40,71 @@ import { default as Ue } from "./components/Navigation/Navigation.js";
|
|
|
40
40
|
import { default as Oe } from "./components/Navigation/NavigationItem/NavigationItem.js";
|
|
41
41
|
import { default as Qe } from "./components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js";
|
|
42
42
|
import { default as ze } from "./components/Navigation/NavigationList/NavigationList.js";
|
|
43
|
-
import { default as Ye } from "./components/
|
|
44
|
-
import { default as qe } from "./components/
|
|
45
|
-
import { default as Ke } from "./components/
|
|
46
|
-
import { default as _e } from "./components/
|
|
47
|
-
import { default as et } from "./components/
|
|
48
|
-
import { default as ot } from "./components/
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import { default as dt } from "./components/
|
|
52
|
-
import { default as pt } from "./components/Tabs/
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import { default as It } from "./components/
|
|
59
|
-
import { default as
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { default as Ht } from "./patterns/
|
|
63
|
-
import { default as Ft } from "./patterns/
|
|
64
|
-
import { default as Nt } from "./patterns/
|
|
65
|
-
import { default as Ut } from "./patterns/SaleHeaderBanner/
|
|
66
|
-
import { default as Ot } from "./patterns/
|
|
67
|
-
import { default as Qt } from "./patterns/
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import { default as Kt } from "./patterns/
|
|
72
|
-
import { default as _t } from "./patterns/ViewingsList/
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import { default as ao } from "./
|
|
76
|
-
import { default as so } from "./site-furniture/
|
|
77
|
-
import { default as mo } from "./
|
|
78
|
-
import { default as uo } from "./components/
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import { default as So } from "./components/
|
|
82
|
-
import { default as To } from "./components/
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as ho } from "./
|
|
87
|
-
import { default as wo } from "./
|
|
88
|
-
import { default as vo } from "./patterns/
|
|
89
|
-
import {
|
|
90
|
-
import { default as
|
|
91
|
-
import {
|
|
43
|
+
import { default as Ye } from "./components/Pagination/Pagination.js";
|
|
44
|
+
import { default as qe } from "./components/PinchZoom/PinchZoom.js";
|
|
45
|
+
import { default as Ke } from "./components/Row/Row.js";
|
|
46
|
+
import { default as _e } from "./components/Search/Search.js";
|
|
47
|
+
import { default as et } from "./components/SeldonImage/SeldonImage.js";
|
|
48
|
+
import { default as ot } from "./components/Select/Select.js";
|
|
49
|
+
import { SelectVariants as at } from "./components/Select/types.js";
|
|
50
|
+
import { default as st } from "./components/SplitPanel/SplitPanel.js";
|
|
51
|
+
import { default as dt } from "./components/Tabs/TabsContainer.js";
|
|
52
|
+
import { default as pt } from "./components/Tabs/TabsContent.js";
|
|
53
|
+
import { Tag as it, default as nt } from "./components/Tags/Tags.js";
|
|
54
|
+
import { TextAlignments as gt, TextVariants as ct } from "./components/Text/types.js";
|
|
55
|
+
import { default as Ct } from "./components/Text/Text.js";
|
|
56
|
+
import { TextSymbolVariants as Bt } from "./components/TextSymbol/types.js";
|
|
57
|
+
import { default as Lt } from "./components/TextSymbol/TextSymbol.js";
|
|
58
|
+
import { default as It } from "./components/Video/Video.js";
|
|
59
|
+
import { default as Vt } from "./patterns/DetailList/DetailList.js";
|
|
60
|
+
import { DetailListAlignment as kt } from "./patterns/DetailList/types.js";
|
|
61
|
+
import { default as yt } from "./patterns/FavoritesCollectionTile/FavoritesCollectionTile.js";
|
|
62
|
+
import { default as Ht } from "./patterns/HeroBanner/HeroBanner.js";
|
|
63
|
+
import { default as Ft } from "./patterns/LanguageSelector/LanguageSelector.js";
|
|
64
|
+
import { default as Nt } from "./patterns/SaleHeaderBanner/SaleHeaderBanner.js";
|
|
65
|
+
import { default as Ut } from "./patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js";
|
|
66
|
+
import { default as Ot } from "./patterns/Social/Social.js";
|
|
67
|
+
import { default as Qt } from "./patterns/Subscribe/Subscribe.js";
|
|
68
|
+
import { SubscriptionState as zt } from "./patterns/Subscribe/types.js";
|
|
69
|
+
import { AuthState as Yt } from "./patterns/UserManagement/types.js";
|
|
70
|
+
import { default as qt } from "./patterns/UserManagement/UserManagement.js";
|
|
71
|
+
import { default as Kt } from "./patterns/ViewingsList/StatefulViewingsList.js";
|
|
72
|
+
import { default as _t } from "./patterns/ViewingsList/ViewingsList.js";
|
|
73
|
+
import { SeldonProvider as eo } from "./providers/SeldonProvider/SeldonProvider.js";
|
|
74
|
+
import { default as oo } from "./components/ComboBox/ComboBox.js";
|
|
75
|
+
import { default as ao } from "./components/PageContentWrapper/PageContentWrapper.js";
|
|
76
|
+
import { default as so } from "./site-furniture/Footer/Footer.js";
|
|
77
|
+
import { default as mo } from "./site-furniture/Header/Header.js";
|
|
78
|
+
import { default as uo } from "./components/Article/Article.js";
|
|
79
|
+
import { default as no } from "./components/Countdown/Countdown.js";
|
|
80
|
+
import { CountdownVariants as go } from "./components/Countdown/types.js";
|
|
81
|
+
import { default as So } from "./components/Divider/Divider.js";
|
|
82
|
+
import { default as To } from "./components/FavoritingTileButton/FavoritingTileButton.js";
|
|
83
|
+
import { default as Ao } from "./components/Filter/Filter.js";
|
|
84
|
+
import { default as Po } from "./components/Filter/FilterInput.js";
|
|
85
|
+
import { default as bo } from "./components/Filter/FilterHeader.js";
|
|
86
|
+
import { default as ho } from "./components/TextArea/TextArea.js";
|
|
87
|
+
import { default as wo } from "./components/AddToCalendar/AddToCalendar.js";
|
|
88
|
+
import { default as vo } from "./patterns/AccountPageHeader/AccountPageHeader.js";
|
|
89
|
+
import { default as Do } from "./patterns/BidSnapshot/BidSnapshot.js";
|
|
90
|
+
import { default as Mo } from "./patterns/BidSnapshot/BidMessage.js";
|
|
91
|
+
import { BidMessageVariants as Eo, BidStatusEnum as Uo } from "./patterns/BidSnapshot/types.js";
|
|
92
|
+
import { default as Oo } from "./patterns/FilterMenu/FilterMenu.js";
|
|
93
|
+
import { default as Qo } from "./patterns/ObjectTile/ObjectTile.js";
|
|
92
94
|
export {
|
|
93
95
|
M as Accordion,
|
|
94
96
|
E as AccordionItem,
|
|
95
97
|
G as AccordionItemVariant,
|
|
96
98
|
O as AccordionVariants,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
vo as AccountPageHeader,
|
|
100
|
+
wo as AddToCalendar,
|
|
101
|
+
uo as Article,
|
|
102
|
+
b as AuctionStatus,
|
|
103
|
+
Yt as AuthState,
|
|
104
|
+
Mo as BidMessage,
|
|
105
|
+
Eo as BidMessageVariants,
|
|
106
|
+
Do as BidSnapshot,
|
|
107
|
+
Uo as BidStatusEnum,
|
|
105
108
|
Q as Breadcrumb,
|
|
106
109
|
w as Button,
|
|
107
110
|
v as ButtonVariants,
|
|
@@ -113,78 +116,79 @@ export {
|
|
|
113
116
|
oe as Collapsible,
|
|
114
117
|
ae as CollapsibleContent,
|
|
115
118
|
se as CollapsibleTrigger,
|
|
119
|
+
oo as ComboBox,
|
|
116
120
|
de as ContentPeek,
|
|
117
121
|
pe as ContentPeekHeightUnits,
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
no as Countdown,
|
|
123
|
+
go as CountdownVariants,
|
|
120
124
|
ie as Detail,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
125
|
+
Vt as DetailList,
|
|
126
|
+
kt as DetailListAlignment,
|
|
127
|
+
So as Divider,
|
|
124
128
|
xe as Drawer,
|
|
125
129
|
ce as Dropdown,
|
|
126
130
|
Ce as ErrorBoundary,
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
yt as FavoritesCollectionTile,
|
|
132
|
+
To as FavoritingTileButton,
|
|
133
|
+
Ao as Filter,
|
|
134
|
+
bo as FilterHeader,
|
|
135
|
+
Po as FilterInput,
|
|
136
|
+
Oo as FilterMenu,
|
|
137
|
+
so as Footer,
|
|
134
138
|
Be as Grid,
|
|
135
|
-
|
|
139
|
+
Le as GridItem,
|
|
136
140
|
Ie as GridItemAlign,
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
mo as Header,
|
|
142
|
+
Ht as HeroBanner,
|
|
139
143
|
z as Icon,
|
|
140
144
|
D as IconButton,
|
|
141
|
-
|
|
142
|
-
|
|
145
|
+
Ve as Input,
|
|
146
|
+
Ft as LanguageSelector,
|
|
143
147
|
ke as Link,
|
|
144
148
|
He as LinkBlock,
|
|
145
149
|
Fe as LinkList,
|
|
146
150
|
ye as LinkVariants,
|
|
147
|
-
|
|
151
|
+
V as LotStatus,
|
|
148
152
|
Ne as Modal,
|
|
149
153
|
Ue as Navigation,
|
|
150
154
|
Oe as NavigationItem,
|
|
151
155
|
Qe as NavigationItemTrigger,
|
|
152
156
|
ze as NavigationList,
|
|
153
|
-
|
|
157
|
+
Qo as ObjectTile,
|
|
154
158
|
a as PaddingTokens,
|
|
155
159
|
C as Page,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
ao as PageContentWrapper,
|
|
161
|
+
Ye as Pagination,
|
|
162
|
+
qe as PinchZoom,
|
|
163
|
+
Ke as Row,
|
|
160
164
|
B as SSRMediaQuery,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
Nt as SaleHeaderBanner,
|
|
166
|
+
Ut as SaleHeaderBrowseAuctions,
|
|
167
|
+
_e as Search,
|
|
168
|
+
et as SeldonImage,
|
|
169
|
+
eo as SeldonProvider,
|
|
170
|
+
ot as Select,
|
|
171
|
+
at as SelectVariants,
|
|
172
|
+
Ot as Social,
|
|
169
173
|
f as SpacingTokens,
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
+
st as SplitPanel,
|
|
175
|
+
Kt as StatefulViewingsList,
|
|
176
|
+
Qt as Subscribe,
|
|
177
|
+
zt as SubscriptionState,
|
|
174
178
|
h as SupportedLanguages,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
179
|
+
dt as TabsContainer,
|
|
180
|
+
pt as TabsContent,
|
|
181
|
+
it as Tag,
|
|
182
|
+
nt as TagsList,
|
|
183
|
+
Ct as Text,
|
|
184
|
+
gt as TextAlignments,
|
|
185
|
+
ho as TextArea,
|
|
186
|
+
Bt as TextSymbolVariants,
|
|
187
|
+
Lt as TextSymbols,
|
|
188
|
+
ct as TextVariants,
|
|
189
|
+
qt as UserManagement,
|
|
190
|
+
It as Video,
|
|
191
|
+
_t as ViewingsList,
|
|
188
192
|
s as defaultYear,
|
|
189
193
|
l as emailValidation,
|
|
190
194
|
d as encodeURLSearchParams,
|
|
@@ -195,7 +199,7 @@ export {
|
|
|
195
199
|
n as getCommonProps,
|
|
196
200
|
x as noOp,
|
|
197
201
|
g as px,
|
|
198
|
-
|
|
202
|
+
A as ssrMediaQueryStyle,
|
|
199
203
|
c as useNormalizedInputProps,
|
|
200
|
-
|
|
204
|
+
P as usePendingState
|
|
201
205
|
};
|