@phillips/seldon 1.213.0 → 1.214.0-beta.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.
Files changed (158) hide show
  1. package/dist/_virtual/index4.js +2 -2
  2. package/dist/_virtual/index5.js +2 -2
  3. package/dist/_virtual/index6.js +2 -2
  4. package/dist/assets/formatted/Clock.d.ts +9 -0
  5. package/dist/assets/formatted/Clock.js +35 -0
  6. package/dist/assets/formatted/index.d.ts +1 -0
  7. package/dist/assets/formatted/index.js +14 -12
  8. package/dist/components/AddToCalendar/AddToCalendar.js +24 -25
  9. package/dist/components/Article/Article.js +17 -17
  10. package/dist/components/Breadcrumb/BreadcrumbItem.js +13 -13
  11. package/dist/components/Button/Button.d.ts +4 -0
  12. package/dist/components/Button/Button.js +71 -53
  13. package/dist/components/Button/Button.stories.d.ts +7 -1
  14. package/dist/components/ComboBox/ComboBox.js +34 -29
  15. package/dist/components/ComposedModal/ComposedModal.js +33 -33
  16. package/dist/components/ComposedModal/ComposedModal.stories.d.ts +1 -0
  17. package/dist/components/Countdown/Countdown.js +90 -51
  18. package/dist/components/Countdown/Duration.d.ts +3 -1
  19. package/dist/components/Countdown/Duration.js +17 -9
  20. package/dist/components/Countdown/types.d.ts +2 -1
  21. package/dist/components/Countdown/types.js +1 -1
  22. package/dist/components/DescriptiveRadioButton/DescriptiveRadioButton.js +21 -21
  23. package/dist/components/Detail/Detail.d.ts +2 -0
  24. package/dist/components/Detail/Detail.js +26 -15
  25. package/dist/components/Detail/Detail.stories.d.ts +9 -2
  26. package/dist/components/Drawer/DrawerHeader.js +22 -20
  27. package/dist/components/ExitGateCard/ExitGateCard.js +29 -29
  28. package/dist/components/FavoritingTileButton/FavoritingTileButton.js +30 -31
  29. package/dist/components/Filter/Filter.js +36 -34
  30. package/dist/components/Filter/FilterHeader.d.ts +4 -0
  31. package/dist/components/Filter/FilterHeader.js +30 -22
  32. package/dist/components/Input/Input.js +43 -39
  33. package/dist/components/Input/Input.stories.d.ts +16 -0
  34. package/dist/components/Link/Link.js +11 -11
  35. package/dist/components/Link/Link.stories.d.ts +17 -1
  36. package/dist/components/Link/types.d.ts +9 -4
  37. package/dist/components/Link/types.js +3 -3
  38. package/dist/components/LinkBlock/LinkBlock.js +19 -11
  39. package/dist/components/Modal/Modal.d.ts +0 -4
  40. package/dist/components/Modal/Modal.js +6 -6
  41. package/dist/components/Navigation/NavigationItem/NavigationItem.js +31 -23
  42. package/dist/components/Navigation/NavigationItemTrigger/NavigationItemTrigger.js +29 -29
  43. package/dist/components/Navigation/NavigationList/NavigationList.js +5 -5
  44. package/dist/components/Pagination/Pagination.js +22 -21
  45. package/dist/components/ProgressIndicator/ProgressIndicator.js +22 -22
  46. package/dist/components/Search/Search.js +55 -53
  47. package/dist/components/Search/SearchResults/SearchResults.js +16 -16
  48. package/dist/components/Select/Select.d.ts +4 -0
  49. package/dist/components/Select/Select.js +51 -45
  50. package/dist/components/Select/Select.stories.d.ts +1 -0
  51. package/dist/components/Tabs/TabsContainer.js +1 -1
  52. package/dist/components/Tags/Tags.js +32 -30
  53. package/dist/components/Text/Text.js +17 -9
  54. package/dist/components/Text/types.d.ts +42 -1
  55. package/dist/components/Text/types.js +3 -3
  56. package/dist/components/Text/utils.js +40 -7
  57. package/dist/components/TextArea/TextArea.js +38 -34
  58. package/dist/components/Toast/Toast.js +4 -4
  59. package/dist/node_modules/ics/dist/index.js +2 -2
  60. package/dist/node_modules/ics/dist/pipeline/index.js +1 -1
  61. package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
  62. package/dist/patterns/AccountPageHeader/AccountPageHeader.js +45 -28
  63. package/dist/patterns/BidSnapshot/BidMessage.d.ts +6 -1
  64. package/dist/patterns/BidSnapshot/BidMessage.js +14 -13
  65. package/dist/patterns/BidSnapshot/BidSnapshot.d.ts +7 -1
  66. package/dist/patterns/BidSnapshot/BidSnapshot.js +84 -66
  67. package/dist/patterns/BidSnapshot/BidSnapshot.stories.d.ts +100 -0
  68. package/dist/patterns/CountryPicker/CountryPickerCountryList.js +5 -5
  69. package/dist/patterns/CountryPicker/CountryPickerModal.js +8 -8
  70. package/dist/patterns/CountryPicker/CountryPickerOption.js +22 -20
  71. package/dist/patterns/CountryPicker/CountryPickerTrigger.js +39 -38
  72. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.js +52 -52
  73. package/dist/patterns/FavoritesCollectionTile/FavoritesCollectionTile.stories.d.ts +1 -0
  74. package/dist/patterns/FiltersInline/FilterButton.js +41 -25
  75. package/dist/patterns/FiltersInline/FilterDropdownMenuDesktop.js +50 -52
  76. package/dist/patterns/FiltersInline/FilterDropdownMenuMobile.js +31 -31
  77. package/dist/patterns/HeroBanner/HeroBanner.js +21 -21
  78. package/dist/patterns/LanguageSelector/LanguageSelector.js +34 -34
  79. package/dist/patterns/ObjectTile/ObjectTile.js +51 -66
  80. package/dist/patterns/ObjectTile/ObjectTile.stories.d.ts +36 -0
  81. package/dist/patterns/PhoneNumberInput/PhoneNumberInput.js +7 -6
  82. package/dist/patterns/SaleCard/SaleCard.js +37 -45
  83. package/dist/patterns/SaleCard/SaleCard.stories.d.ts +1 -1
  84. package/dist/patterns/SaleCard/SaleCardActions.js +9 -8
  85. package/dist/patterns/SaleHeaderBanner/SaleHeaderBanner.js +49 -49
  86. package/dist/patterns/SaleHeaderBanner/SaleHeaderBrowseAuctions.js +19 -12
  87. package/dist/patterns/Social/Social.js +20 -20
  88. package/dist/patterns/Subscribe/Subscribe.stories.d.ts +0 -1
  89. package/dist/patterns/TextBanner/TextBanner.js +12 -12
  90. package/dist/patterns/UserManagement/UserManagement.js +13 -13
  91. package/dist/patterns/ViewingDetails/ViewingDetails.d.ts +4 -0
  92. package/dist/patterns/ViewingDetails/ViewingDetails.js +36 -34
  93. package/dist/patterns/ViewingDetails/ViewingDetails.stories.d.ts +2 -0
  94. package/dist/patterns/ViewingDetails/ViewingDetailsMock.d.ts +2 -0
  95. package/dist/scss/_reset.scss +4 -0
  96. package/dist/scss/_type.scss +172 -65
  97. package/dist/scss/_vars.scss +92 -197
  98. package/dist/scss/_vars.scss.js +94 -199
  99. package/dist/scss/componentStyles.scss +178 -0
  100. package/dist/scss/components/Accordion/_accordion.scss +6 -4
  101. package/dist/scss/components/Breadcrumb/_breadcrumb.scss +8 -1
  102. package/dist/scss/components/Button/_button.scss +33 -7
  103. package/dist/scss/components/ComboBox/_combobox.scss +7 -5
  104. package/dist/scss/components/ComposedModal/_composedModal.scss +0 -4
  105. package/dist/scss/components/Countdown/_countdown.scss +8 -9
  106. package/dist/scss/components/Countdown/_duration.scss +0 -2
  107. package/dist/scss/components/DatePicker/_datePicker.scss +11 -10
  108. package/dist/scss/components/Detail/_detail.scss +15 -6
  109. package/dist/scss/components/Divider/_divider.scss +3 -3
  110. package/dist/scss/components/Drawer/_drawerHeader.scss +0 -7
  111. package/dist/scss/components/Dropdown/_dropdown.scss +2 -2
  112. package/dist/scss/components/FavoritingTileButton/_favoritingTileButton.scss +5 -0
  113. package/dist/scss/components/Filter/_filter.scss +23 -8
  114. package/dist/scss/components/Icon/_icon.stories.scss +1 -1
  115. package/dist/scss/components/IconButton/_iconButton.scss +3 -5
  116. package/dist/scss/components/Input/_input.scss +22 -14
  117. package/dist/scss/components/Link/_link.scss +13 -8
  118. package/dist/scss/components/LinkBlock/_linkBlock.scss +5 -1
  119. package/dist/scss/components/LinkList/_linkList.scss +8 -0
  120. package/dist/scss/components/Modal/_modal.scss +2 -2
  121. package/dist/scss/components/Navigation/NavigationItem/_navigationItem.scss +33 -14
  122. package/dist/scss/components/Navigation/NavigationItemTrigger/_navigationItemTrigger.scss +1 -1
  123. package/dist/scss/components/Navigation/NavigationList/_navigationList.scss +2 -2
  124. package/dist/scss/components/NotificationBanner/_notificationBanner.scss +4 -10
  125. package/dist/scss/components/Pagination/_pagination.scss +17 -1
  126. package/dist/scss/components/ProgressIndicator/_progressIndicator.scss +5 -0
  127. package/dist/scss/components/Search/SearchResults/_searchResults.scss +5 -0
  128. package/dist/scss/components/Search/_search.scss +9 -10
  129. package/dist/scss/components/Search/_searchButton.scss +0 -1
  130. package/dist/scss/components/Select/_select.scss +8 -3
  131. package/dist/scss/components/Tabs/_tabs.scss +4 -5
  132. package/dist/scss/components/Tags/_tags.scss +0 -2
  133. package/dist/scss/components/TextArea/_textArea.scss +2 -4
  134. package/dist/scss/components/TextSymbol/_textSymbol.scss +2 -2
  135. package/dist/scss/patterns/AccountPageHeader/_accountPageHeader.scss +4 -0
  136. package/dist/scss/patterns/BidSnapshot/_bidSnapshot.scss +9 -10
  137. package/dist/scss/patterns/CountryPicker/_countryPickerModal.scss +4 -0
  138. package/dist/scss/patterns/CountryPicker/_countryPickerOption.scss +3 -0
  139. package/dist/scss/patterns/CountryPicker/_countryPickerTrigger.scss +4 -7
  140. package/dist/scss/patterns/DetailList/_detailList.scss +4 -0
  141. package/dist/scss/patterns/FavoritesCollectionTile/_favoritesCollectionTile.scss +6 -8
  142. package/dist/scss/patterns/FilterMenu/_filterMenu.scss +2 -1
  143. package/dist/scss/patterns/FiltersInline/_filterButton.scss +11 -2
  144. package/dist/scss/patterns/FiltersInline/_filterDropdownMenu.scss +1 -9
  145. package/dist/scss/patterns/FiltersInline/_filtersInline.scss +5 -0
  146. package/dist/scss/patterns/HeroBanner/_heroBanner.scss +13 -6
  147. package/dist/scss/patterns/ObjectTile/_objectTile.scss +13 -12
  148. package/dist/scss/patterns/PhoneNumberInput/_phoneNumberInput.scss +9 -2
  149. package/dist/scss/patterns/SaleCard/_saleCard.scss +13 -22
  150. package/dist/scss/patterns/SaleHeaderBanner/_saleHeaderBanner.scss +16 -3
  151. package/dist/scss/patterns/Social/_social.scss +4 -1
  152. package/dist/scss/patterns/Subscribe/_subscribe.scss +3 -3
  153. package/dist/scss/patterns/TextBanner/_textBanner.scss +9 -3
  154. package/dist/scss/patterns/ViewingDetails/_viewingDetails.scss +15 -3
  155. package/dist/scss/site-furniture/Footer/_footer.scss +8 -2
  156. package/dist/scss/site-furniture/Header/_header.scss +8 -4
  157. package/dist/site-furniture/Footer/Footer.js +4 -4
  158. package/package.json +4 -3
@@ -1,4 +1,4 @@
1
- var r = {};
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ e as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = {};
1
+ var r = {};
2
2
  export {
3
- e as __exports
3
+ r as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var e = {};
2
2
  export {
3
- e as __module
3
+ e as __exports
4
4
  };
@@ -0,0 +1,9 @@
1
+ interface ClockProps extends React.HTMLAttributes<SVGSVGElement> {
2
+ color?: string;
3
+ height?: number | string;
4
+ width?: number | string;
5
+ title?: string;
6
+ titleId?: string;
7
+ }
8
+ declare const Clock: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<ClockProps & import('react').RefAttributes<SVGSVGElement>>>;
9
+ export default Clock;
@@ -0,0 +1,35 @@
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { memo as n, forwardRef as f } from "react";
3
+ import { kebabCase as h } from "../../node_modules/change-case/dist/index.js";
4
+ const g = n(
5
+ f((t, i) => {
6
+ const { color: r, height: a, width: d, title: l, titleId: m } = t, e = m || h(l || "");
7
+ return /* @__PURE__ */ s(
8
+ "svg",
9
+ {
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ fill: "none",
12
+ viewBox: "0 0 19 19",
13
+ height: a,
14
+ width: d,
15
+ role: "img",
16
+ ref: i,
17
+ "aria-labelledby": e,
18
+ ...t,
19
+ children: [
20
+ l ? /* @__PURE__ */ o("title", { id: e, children: l }) : null,
21
+ /* @__PURE__ */ o(
22
+ "path",
23
+ {
24
+ fill: r,
25
+ d: "M9.906 1.595A7.917 7.917 0 0 1 17.415 9.5l-.01.407A7.917 7.917 0 0 1 9.5 17.417l-.408-.01a7.917 7.917 0 0 1-7.498-7.499l-.011-.407a7.92 7.92 0 0 1 7.917-7.917zM9.5 3.084A6.418 6.418 0 1 0 9.5 15.919 6.418 6.418 0 0 0 9.5 3.084m.79 6.874L6.716 13.46l-1.177-1.153 3.085-3.024v-3.74h1.665z"
26
+ }
27
+ )
28
+ ]
29
+ }
30
+ );
31
+ })
32
+ );
33
+ export {
34
+ g as default
35
+ };
@@ -78,4 +78,5 @@ export { default as VolumeMaximum } from './VolumeMaximum';
78
78
  export { default as VolumeMid } from './VolumeMid';
79
79
  export { default as VolumeMinimum } from './VolumeMinimum';
80
80
  export { default as WeChat } from './WeChat';
81
+ export { default as Clock } from './Clock';
81
82
  export { default as LiveNow } from './LiveNow';
@@ -11,8 +11,8 @@ import { default as w } from "./AdminFullscreenExit.js";
11
11
  import { default as S } from "./AdminCheck.js";
12
12
  import { default as F } from "./AdminChevronLeft.js";
13
13
  import { default as P } from "./AdminChevronRight.js";
14
- import { default as E } from "./AdminChevronUp.js";
15
- import { default as k } from "./AdminClose.js";
14
+ import { default as k } from "./AdminChevronUp.js";
15
+ import { default as M } from "./AdminClose.js";
16
16
  import { default as D } from "./AdminHome.js";
17
17
  import { default as U } from "./AdminPencil.js";
18
18
  import { default as B } from "./AdminSearch.js";
@@ -38,8 +38,8 @@ import { default as we } from "./ExternalLink.js";
38
38
  import { default as Se } from "./Facebook.js";
39
39
  import { default as Fe } from "./FavoriteActive.js";
40
40
  import { default as Pe } from "./Favorite.js";
41
- import { default as Ee } from "./Filters.js";
42
- import { default as ke } from "./Fullscreen.js";
41
+ import { default as ke } from "./Filters.js";
42
+ import { default as Me } from "./Fullscreen.js";
43
43
  import { default as De } from "./FullscreenExit.js";
44
44
  import { default as Ue } from "./GavelActive.js";
45
45
  import { default as Be } from "./Gavel.js";
@@ -65,7 +65,7 @@ import { default as Lo } from "./Play.js";
65
65
  import { default as go } from "./Red.js";
66
66
  import { default as Io } from "./Refresh.js";
67
67
  import { default as Ro } from "./Search.js";
68
- import { default as Mo } from "./SellActive.js";
68
+ import { default as Eo } from "./SellActive.js";
69
69
  import { default as Go } from "./Sell.js";
70
70
  import { default as Ho } from "./Share.js";
71
71
  import { default as Vo } from "./Subtract.js";
@@ -78,7 +78,8 @@ import { default as Jo } from "./VolumeMaximum.js";
78
78
  import { default as Qo } from "./VolumeMid.js";
79
79
  import { default as Zo } from "./VolumeMinimum.js";
80
80
  import { default as $o } from "./WeChat.js";
81
- import { default as or } from "./LiveNow.js";
81
+ import { default as or } from "./Clock.js";
82
+ import { default as tr } from "./LiveNow.js";
82
83
  export {
83
84
  a as Account,
84
85
  r as AccountActive,
@@ -86,8 +87,8 @@ export {
86
87
  S as AdminCheck,
87
88
  F as AdminChevronLeft,
88
89
  P as AdminChevronRight,
89
- E as AdminChevronUp,
90
- k as AdminClose,
90
+ k as AdminChevronUp,
91
+ M as AdminClose,
91
92
  h as AdminFullscreen,
92
93
  w as AdminFullscreenExit,
93
94
  m as AdminGavel,
@@ -109,6 +110,7 @@ export {
109
110
  ee as ChevronLeft,
110
111
  re as ChevronRight,
111
112
  ae as ChevronUp,
113
+ or as Clock,
112
114
  le as CloseX,
113
115
  me as ConditionReport,
114
116
  se as Delete,
@@ -120,8 +122,8 @@ export {
120
122
  Se as Facebook,
121
123
  Pe as Favorite,
122
124
  Fe as FavoriteActive,
123
- Ee as Filters,
124
- ke as Fullscreen,
125
+ ke as Filters,
126
+ Me as Fullscreen,
125
127
  De as FullscreenExit,
126
128
  Be as Gavel,
127
129
  Ue as GavelActive,
@@ -136,7 +138,7 @@ export {
136
138
  eo as Instagram,
137
139
  ro as LinkedIn,
138
140
  ao as List,
139
- or as LiveNow,
141
+ tr as LiveNow,
140
142
  lo as Lock,
141
143
  uo as MagnificentSeven,
142
144
  po as Menu,
@@ -149,7 +151,7 @@ export {
149
151
  Io as Refresh,
150
152
  Ro as Search,
151
153
  Go as Sell,
152
- Mo as SellActive,
154
+ Eo as SellActive,
153
155
  Ho as Share,
154
156
  Vo as Subtract,
155
157
  To as Success,
@@ -1,30 +1,29 @@
1
- import { jsx as e, jsxs as b } from "react/jsx-runtime";
2
- import { forwardRef as C, useState as h } from "react";
1
+ import { jsx as a, jsxs as C } from "react/jsx-runtime";
2
+ import { forwardRef as b, useState as h } from "react";
3
3
  import { getCommonProps as g } from "../../utils/index.js";
4
4
  import u from "../../node_modules/classnames/index.js";
5
- import { TextVariants as N } from "../Text/types.js";
6
- import O from "../Text/Text.js";
7
- import { Root as T, Trigger as x, Portal as I, Content as A, Item as L } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
8
- import P from "../Icon/Icon.js";
5
+ import N from "../Text/Text.js";
6
+ import { Root as O, Trigger as I, Portal as T, Content as x, Item as A } from "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
7
+ import L from "../Icon/Icon.js";
9
8
  import "../Link/types.js";
10
- import $ from "../Link/Link.js";
11
- import { generateGoogleCalendarLink as w, generateOutlookOnlineLink as R, generateYahooCalendarLink as S, generateCalendarFile as j } from "./calendarLinks.js";
12
- import y from "../IconButton/IconButton.js";
13
- const G = C(
14
- ({ className: r, event: o, label: s = "Add to calendar", linkElement: d = $, ...n }, m) => {
15
- const { className: l, ...c } = g(n, "AddToCalendar"), [t, f] = h(!1), k = (a, i) => {
16
- a === "file" ? j(o) : a === "link" && i && window.open(i, "_blank");
9
+ import P from "../Link/Link.js";
10
+ import { generateGoogleCalendarLink as $, generateOutlookOnlineLink as w, generateYahooCalendarLink as R, generateCalendarFile as S } from "./calendarLinks.js";
11
+ import j from "../IconButton/IconButton.js";
12
+ const G = b(
13
+ ({ className: r, event: o, label: s = "Add to calendar", linkElement: d = P, ...n }, c) => {
14
+ const { className: l, ...m } = g(n, "AddToCalendar"), [t, f] = h(!1), k = (e, i) => {
15
+ e === "file" ? S(o) : e === "link" && i && window.open(i, "_blank");
17
16
  }, p = [
18
17
  { label: "iCalendar", action: "file" },
19
- { label: "Google Calendar", action: "link", link: w(o) },
18
+ { label: "Google Calendar", action: "link", link: $(o) },
20
19
  { label: "Outlook", action: "file" },
21
- { label: "Outlook Online", action: "link", link: R(o) },
22
- { label: "Yahoo Calendar", action: "link", link: S(o) }
20
+ { label: "Outlook Online", action: "link", link: w(o) },
21
+ { label: "Yahoo Calendar", action: "link", link: R(o) }
23
22
  ];
24
- return /* @__PURE__ */ e("div", { ...c, className: u(l, r), ...n, ref: m, children: /* @__PURE__ */ b(T, { open: t, onOpenChange: f, children: [
25
- /* @__PURE__ */ e(x, { asChild: !0, children: /* @__PURE__ */ e(y, { children: /* @__PURE__ */ e(P, { icon: t ? "CloseX" : "Calendar", title: s }) }) }),
26
- /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(
27
- A,
23
+ return /* @__PURE__ */ a("div", { ...m, className: u(l, r), ...n, ref: c, children: /* @__PURE__ */ C(O, { open: t, onOpenChange: f, children: [
24
+ /* @__PURE__ */ a(I, { asChild: !0, children: /* @__PURE__ */ a(j, { children: /* @__PURE__ */ a(L, { icon: t ? "CloseX" : "Calendar", title: s }) }) }),
25
+ /* @__PURE__ */ a(T, { children: /* @__PURE__ */ a(
26
+ x,
28
27
  {
29
28
  sideOffset: 5,
30
29
  align: "start",
@@ -32,14 +31,14 @@ const G = C(
32
31
  "data-side": "bottom",
33
32
  avoidCollisions: !1,
34
33
  className: `${l}-atcb-list`,
35
- children: p.map((a) => /* @__PURE__ */ e(
36
- L,
34
+ children: p.map((e) => /* @__PURE__ */ a(
35
+ A,
37
36
  {
38
37
  className: `${l}-atcb-item`,
39
- onSelect: () => k(a.action, a.link),
40
- children: a.action === "link" ? /* @__PURE__ */ e(d, { className: `${l}-atcb-item-link`, href: a.link, children: a.label }) : /* @__PURE__ */ e("button", { className: `${l}-atcb-item-link`, children: /* @__PURE__ */ e(O, { variant: N.body2, children: a.label }) })
38
+ onSelect: () => k(e.action, e.link),
39
+ children: e.action === "link" ? /* @__PURE__ */ a(d, { className: `${l}-atcb-item-link`, href: e.link, children: e.label }) : /* @__PURE__ */ a("button", { className: `${l}-atcb-item-link`, children: /* @__PURE__ */ a(N, { children: e.label }) })
41
40
  },
42
- a.label
41
+ e.label
43
42
  ))
44
43
  }
45
44
  ) })
@@ -1,27 +1,27 @@
1
- import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as u } from "react";
1
+ import { jsxs as s, jsx as l } from "react/jsx-runtime";
2
+ import { forwardRef as N } from "react";
3
3
  import { getCommonProps as h } from "../../utils/index.js";
4
4
  import x from "../../node_modules/classnames/index.js";
5
5
  import $ from "../SeldonImage/SeldonImage.js";
6
- import { TextVariants as l } from "../Text/types.js";
7
- import n from "../Text/Text.js";
8
- import "../Link/types.js";
6
+ import { TextVariants as c } from "../Text/types.js";
7
+ import t from "../Text/Text.js";
8
+ import { LinkVariants as k } from "../Link/types.js";
9
9
  import v from "../Link/Link.js";
10
- const b = u(
11
- ({ className: p, imageSrc: r, label: a, header: o, description: m, linkElement: d = v, linkLabel: s, linkHref: f, ...i }, _) => {
12
- const { className: t, ...N } = h(i, "Article");
13
- return /* @__PURE__ */ c("article", { ...N, className: x(t, p), ...i, ref: _, children: [
14
- r ? /* @__PURE__ */ e($, { aspectRatio: "16/9", src: r, alt: "bull" }) : null,
15
- /* @__PURE__ */ c("div", { className: `${t}__content`, children: [
16
- a ? /* @__PURE__ */ e(n, { variant: l.label, className: `${t}__content-label`, children: a }) : null,
17
- o ? /* @__PURE__ */ e(n, { variant: l.heading3, className: `${t}__content-title`, children: o }) : null,
18
- m ? /* @__PURE__ */ e(n, { variant: l.body2, className: `${t}__content-description`, element: "p", children: m }) : null,
19
- s ? /* @__PURE__ */ e(d, { href: f, className: `${t}__content-link`, children: s }) : null
10
+ const A = N(
11
+ ({ className: d, imageSrc: n, label: a, header: r, description: m, linkElement: f = v, linkLabel: i, linkHref: p, ...o }, u) => {
12
+ const { className: e, ..._ } = h(o, "Article");
13
+ return /* @__PURE__ */ s("article", { ..._, className: x(e, d), ...o, ref: u, children: [
14
+ n ? /* @__PURE__ */ l($, { aspectRatio: "16/9", src: n, alt: "bull" }) : null,
15
+ /* @__PURE__ */ s("div", { className: `${e}__content`, children: [
16
+ a ? /* @__PURE__ */ l(t, { variant: c.labelSmall, className: `${e}__content-label`, children: a }) : null,
17
+ r ? /* @__PURE__ */ l(t, { variant: c.headingMedium, className: `${e}__content-title`, children: r }) : null,
18
+ m ? /* @__PURE__ */ l(t, { className: `${e}__content-description`, element: "p", children: m }) : null,
19
+ i ? /* @__PURE__ */ l(f, { href: p, variant: k.linkMedium, className: `${e}__content-link`, children: i }) : null
20
20
  ] })
21
21
  ] });
22
22
  }
23
23
  );
24
- b.displayName = "Article";
24
+ A.displayName = "Article";
25
25
  export {
26
- b as default
26
+ A as default
27
27
  };
@@ -1,36 +1,36 @@
1
- import { jsxs as p, jsx as m } from "react/jsx-runtime";
1
+ import { jsxs as h, jsx as m } from "react/jsx-runtime";
2
2
  import { getCommonProps as d } from "../../utils/index.js";
3
3
  import o from "../../node_modules/classnames/index.js";
4
4
  import u from "../Icon/Icon.js";
5
5
  const b = ({
6
6
  className: c,
7
7
  href: s,
8
- label: a,
8
+ label: r,
9
9
  isCurrent: e = !1,
10
10
  isTruncateText: t = !1,
11
11
  element: n = "a",
12
12
  ...l
13
13
  }) => {
14
- const { className: r, ...i } = d(l, "Breadcrumb"), f = e ? "page" : !1, h = e ? "" : s;
15
- return /* @__PURE__ */ p(
14
+ const { className: a, ...i } = d(l, "Breadcrumb"), p = e ? "page" : !1, f = e ? "" : s;
15
+ return /* @__PURE__ */ h(
16
16
  "li",
17
17
  {
18
- "aria-label": a,
19
- className: o(`${r}__item`, { [`${r}--truncate`]: t }),
18
+ "aria-label": r,
19
+ className: o(`${a}__item`, { [`${a}--truncate`]: t }),
20
20
  children: [
21
- e ? /* @__PURE__ */ m("span", { className: o(r, c, { [`${r}--current`]: e }), children: a }) : /* @__PURE__ */ m(
21
+ e ? /* @__PURE__ */ m("span", { className: o(a, c, { [`${a}--current`]: e }), children: r }) : /* @__PURE__ */ m(
22
22
  n,
23
23
  {
24
- "aria-current": f,
25
- className: o(r, c, {
26
- [`${r}--current`]: e
24
+ "aria-current": p,
25
+ className: o(a, c, {
26
+ [`${a}--current`]: e
27
27
  }),
28
- href: h,
28
+ href: f,
29
29
  ...i,
30
- children: a
30
+ children: r
31
31
  }
32
32
  ),
33
- e ? null : /* @__PURE__ */ m(u, { icon: "ChevronRight", height: "1.5rem", width: "1.5rem" })
33
+ e ? null : /* @__PURE__ */ m(u, { icon: "ChevronRight", height: "20px", width: "20px" })
34
34
  ]
35
35
  }
36
36
  );
@@ -40,6 +40,10 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLButtonElement | HT
40
40
  * Boolean to specify whether we need to display skeleton loader
41
41
  */
42
42
  isSkeletonLoading?: boolean;
43
+ /**
44
+ * This is only used when a button is rendered as a link. It controls the size of the link.
45
+ */
46
+ linkSize?: 'sm' | 'md' | 'lg';
43
47
  }
44
48
  /**
45
49
  * ## Overview
@@ -1,78 +1,96 @@
1
- import { jsxs as N, Fragment as k, jsx as o } from "react/jsx-runtime";
2
- import $ from "../../node_modules/classnames/index.js";
3
- import { getCommonProps as b, px as P } from "../../utils/index.js";
4
- import { ButtonVariants as j } from "./types.js";
5
- import { forwardRef as y, useState as H } from "react";
6
- const L = y(
1
+ import { jsxs as P, Fragment as B, jsx as n } from "react/jsx-runtime";
2
+ import C from "../../node_modules/classnames/index.js";
3
+ import { getCommonProps as V, px as j } from "../../utils/index.js";
4
+ import { ButtonVariants as s } from "./types.js";
5
+ import { forwardRef as v, useState as w } from "react";
6
+ import { LinkVariants as l } from "../Link/types.js";
7
+ import H from "../Link/Link.js";
8
+ const g = v(
7
9
  ({
8
- variant: s = j.primary,
9
- children: a,
10
- className: l,
11
- isIconLast: m = !1,
12
- type: v = "button",
13
- isDisabled: t = !1,
14
- href: n,
15
- target: i,
16
- prefetch: c = "none",
17
- isSkeletonLoading: x,
18
- ...r
19
- }, f) => {
20
- const { className: e, ...u } = b(r, "Button"), [B, C] = H(!1);
21
- if (n) {
22
- const d = () => /* @__PURE__ */ o(k, { children: /* @__PURE__ */ o("link", { "data-testid": "prefetch-link", rel: "prefetch", href: n }) });
23
- return /* @__PURE__ */ N(k, { children: [
24
- /* @__PURE__ */ o(
25
- "a",
10
+ variant: t = s.primary,
11
+ children: k,
12
+ className: c,
13
+ isIconLast: u = !1,
14
+ type: N = "button",
15
+ isDisabled: a = !1,
16
+ href: o,
17
+ target: f,
18
+ prefetch: d = "none",
19
+ isSkeletonLoading: i,
20
+ linkSize: y = "md",
21
+ ...m
22
+ }, p) => {
23
+ const { className: e, ...$ } = V(m, "Button"), [L, M] = w(!1);
24
+ if (o || t === s.link) {
25
+ const b = () => /* @__PURE__ */ n(B, { children: /* @__PURE__ */ n("link", { "data-testid": "prefetch-link", rel: "prefetch", href: o }) });
26
+ let r = l.linkMedium;
27
+ switch (y) {
28
+ case "lg":
29
+ r = l.linkLarge;
30
+ break;
31
+ case "md":
32
+ r = l.linkMedium;
33
+ break;
34
+ case "sm":
35
+ r = l.linkSmall;
36
+ break;
37
+ }
38
+ return /* @__PURE__ */ P(B, { children: [
39
+ /* @__PURE__ */ n(
40
+ H,
26
41
  {
27
- ...u,
28
- ref: f,
29
- href: n,
30
- className: $(
42
+ ...$,
43
+ variant: r,
44
+ ref: p,
45
+ href: o,
46
+ className: C(
31
47
  `${e}`,
32
- `${e}--${s}`,
48
+ { [`${e}--${t}`]: t !== s.link },
49
+ { [`${e}--link`]: t === s.link },
33
50
  {
34
- [`${e}--icon-last`]: m
51
+ [`${e}--icon-last`]: u
35
52
  },
36
- l
53
+ c
37
54
  ),
38
- target: i,
39
- rel: i === "_blank" ? "noopener noreferrer" : void 0,
55
+ target: f,
56
+ rel: f === "_blank" ? "noopener noreferrer" : void 0,
40
57
  onMouseOver: () => {
41
- t || C(!0);
58
+ a || M(!0);
42
59
  },
43
- onClick: (p) => {
44
- t ? p.preventDefault() : r.onClick?.(p);
60
+ onClick: (x) => {
61
+ a ? x.preventDefault() : m.onClick?.(x);
45
62
  },
46
- children: a
63
+ children: k
47
64
  }
48
65
  ),
49
- c === "intent" && B && /* @__PURE__ */ o(d, {}),
50
- c === "render" && /* @__PURE__ */ o(d, {})
66
+ d === "intent" && o && L && /* @__PURE__ */ n(b, {}),
67
+ d === "render" && o && /* @__PURE__ */ n(b, {})
51
68
  ] });
52
69
  } else
53
- return /* @__PURE__ */ o(
70
+ return /* @__PURE__ */ n(
54
71
  "button",
55
72
  {
56
- ...u,
57
- ref: f,
58
- type: v,
59
- className: $(
73
+ ...$,
74
+ ref: p,
75
+ type: N,
76
+ "aria-busy": i,
77
+ className: C(
60
78
  `${e}`,
61
- `${e}--${s}`,
79
+ `${e}--${t}`,
62
80
  {
63
- [`${e}--icon-last`]: m,
64
- [`${P}-skeleton`]: x
81
+ [`${e}--icon-last`]: u,
82
+ [`${j}-skeleton`]: i
65
83
  },
66
- l
84
+ c
67
85
  ),
68
- disabled: t,
69
- ...r,
70
- children: a
86
+ disabled: i || a,
87
+ ...m,
88
+ children: k
71
89
  }
72
90
  );
73
91
  }
74
92
  );
75
- L.displayName = "Button";
93
+ g.displayName = "Button";
76
94
  export {
77
- L as default
95
+ g as default
78
96
  };
@@ -10,12 +10,19 @@ declare const meta: {
10
10
  type: "select";
11
11
  };
12
12
  };
13
+ linkSize: {
14
+ options: string[];
15
+ control: {
16
+ type: "select";
17
+ };
18
+ };
13
19
  isIconLast: {
14
20
  control: "boolean";
15
21
  };
16
22
  };
17
23
  };
18
24
  export default meta;
25
+ export declare const Default: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
19
26
  export declare const ButtonDisabled: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
20
27
  export declare const ButtonWithIcon: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
21
28
  export declare const ButtonWithIconDisabled: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -23,7 +30,6 @@ export declare const ButtonAsLink: {
23
30
  (props: ButtonProps): import("react/jsx-runtime").JSX.Element;
24
31
  args: {
25
32
  variant: ButtonVariants;
26
- size: string;
27
33
  };
28
34
  };
29
35
  export declare const ButtonAsLinkWithPrefetch: {