@phillips/seldon 1.134.1 → 1.135.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.
@@ -0,0 +1,18 @@
1
+ import { ComponentProps } from 'react';
2
+ export interface DividerProps extends ComponentProps<'div'> {
3
+ /**
4
+ * Optional element to render as the top-level component e.g. 'div', 'span', CustomComponent, etc. Defaults to the appropriate HTML based on the variant.
5
+ */
6
+ element?: React.ElementType;
7
+ }
8
+ /**
9
+ * ## Overview
10
+ *
11
+ * Overview of this widget
12
+ *
13
+ * [Figma Link](https://www.figma.com/design/rIefa3bRPyZbZmtyV9PSQv/My-Account?node-id=61-13461&m=dev)
14
+ *
15
+ * [Storybook Link](https://phillips-seldon.netlify.app/?path=/docs/components-divider--overview)
16
+ */
17
+ declare const Divider: import('react').ForwardRefExoticComponent<Omit<DividerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
18
+ export default Divider;
@@ -0,0 +1,12 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as o } from "react";
3
+ import { getCommonProps as t } from "../../utils/index.js";
4
+ import d from "../../node_modules/classnames/index.js";
5
+ const n = o(({ className: m, element: r, ...e }) => {
6
+ const s = r || "div", { className: a } = t(e, "Divider");
7
+ return /* @__PURE__ */ i(s, { className: d(a, m), ...e, "data-testid": `divider-${e.id}`, children: /* @__PURE__ */ i("hr", { className: `${a}-line` }) });
8
+ });
9
+ n.displayName = "Divider";
10
+ export {
11
+ n as default
12
+ };
@@ -0,0 +1,11 @@
1
+ import { DividerProps } from './Divider';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import('react').ForwardRefExoticComponent<Omit<DividerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
5
+ };
6
+ export default meta;
7
+ export declare const Playground: {
8
+ (props: DividerProps): import("react/jsx-runtime").JSX.Element;
9
+ args: {};
10
+ argTypes: {};
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export { default as Divider, type DividerProps } from './Divider';
package/dist/index.d.ts CHANGED
@@ -65,6 +65,7 @@ export * from './components/Countdown/types';
65
65
  export * from './patterns/ObjectTile';
66
66
  export * from './patterns/BidSnapshot';
67
67
  export * from './components/Article';
68
+ export * from './components/Divider';
68
69
  export * from './components/FavoritingTileButton';
69
70
  export * from './components/Icon';
70
71
  export * from './components/TextArea';
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as m, findChildrenExcludingTypes as d, findChildrenOfType as p, generatePaddingClassName as u, getCommonProps as i, noOp as n, px as x, useNormalizedInputProps as g } from "./utils/index.js";
1
+ import { PaddingTokens as a, SpacingTokens as f, defaultYear as s, emailValidation as l, encodeURLSearchParams as d, findChildrenExcludingTypes as m, findChildrenOfType as p, generatePaddingClassName as u, getCommonProps as i, noOp as n, px as x, useNormalizedInputProps as g } from "./utils/index.js";
2
2
  import { default as S } from "./pages/Page.js";
3
3
  import { usePendingState as T } from "./utils/hooks.js";
4
4
  import { SSRMediaQuery as B, ssrMediaQueryStyle as P } from "./providers/SeldonProvider/utils.js";
5
5
  import { AuctionStatus as I, LotStatus as V, SupportedLanguages as b } from "./types/commonTypes.js";
6
6
  import { default as k } from "./components/Button/Button.js";
7
7
  import { ButtonVariants as y } from "./components/Button/types.js";
8
- import { default as M } from "./components/IconButton/IconButton.js";
9
- import { default as D } from "./components/ErrorBoundary/ErrorBoundary.js";
8
+ import { default as D } from "./components/IconButton/IconButton.js";
9
+ import { default as M } from "./components/ErrorBoundary/ErrorBoundary.js";
10
10
  import { default as N } from "./site-furniture/Footer/Footer.js";
11
11
  import { Grid as E } from "./components/Grid/Grid.js";
12
12
  import { default as O } from "./site-furniture/Header/Header.js";
@@ -20,7 +20,7 @@ import { default as ee } from "./components/Link/Link.js";
20
20
  import { LinkVariants as oe } from "./components/Link/types.js";
21
21
  import { default as ae } from "./components/LinkBlock/LinkBlock.js";
22
22
  import { default as se } from "./components/LinkList/LinkList.js";
23
- import { default as me } from "./components/Row/Row.js";
23
+ import { default as de } from "./components/Row/Row.js";
24
24
  import { default as pe } from "./components/GridItem/GridItem.js";
25
25
  import { GridItemAlign as ie } from "./components/GridItem/types.js";
26
26
  import { default as xe } from "./components/Search/Search.js";
@@ -32,8 +32,8 @@ import { SubscriptionState as Ie } from "./patterns/Subscribe/types.js";
32
32
  import { default as be } from "./patterns/Social/Social.js";
33
33
  import { default as ke } from "./patterns/ViewingsList/ViewingsList.js";
34
34
  import { default as ye } from "./components/Modal/Modal.js";
35
- import { default as Me } from "./components/Drawer/Drawer.js";
36
- import { default as De } from "./components/Pagination/Pagination.js";
35
+ import { default as De } from "./components/Drawer/Drawer.js";
36
+ import { default as Me } from "./components/Pagination/Pagination.js";
37
37
  import { Tag as Ne, default as Ue } from "./components/Tags/Tags.js";
38
38
  import { default as Ge } from "./patterns/ViewingsList/StatefulViewingsList.js";
39
39
  import { TextAlignments as Re, TextVariants as Qe } from "./components/Text/types.js";
@@ -48,7 +48,7 @@ import { AuthState as ft } from "./patterns/UserManagement/types.js";
48
48
  import { default as lt } from "./components/Breadcrumb/Breadcrumb.js";
49
49
  import "react/jsx-runtime";
50
50
  import "./node_modules/classnames/index.js";
51
- import { default as dt } from "./components/Icon/Icon.js";
51
+ import { default as mt } from "./components/Icon/Icon.js";
52
52
  import { default as ut } from "./components/Dropdown/Dropdown.js";
53
53
  import { default as nt } from "./components/Video/Video.js";
54
54
  import { default as gt } from "./patterns/LanguageSelector/LanguageSelector.js";
@@ -59,8 +59,8 @@ import { default as At } from "./components/Collapsible/CollapsibleContent.js";
59
59
  import { default as Vt } from "./components/Collapsible/CollapsibleTrigger.js";
60
60
  import { SeldonProvider as ht } from "./providers/SeldonProvider/SeldonProvider.js";
61
61
  import { default as wt } from "./components/PageContentWrapper/PageContentWrapper.js";
62
- import { default as Ht } from "./components/Carousel/Carousel.js";
63
- import { default as vt } from "./components/Carousel/CarouselArrows.js";
62
+ import { default as vt } from "./components/Carousel/Carousel.js";
63
+ import { default as Ht } from "./components/Carousel/CarouselArrows.js";
64
64
  import { default as Ft } from "./components/Carousel/CarouselContent.js";
65
65
  import { default as Ut } from "./components/Carousel/CarouselItem.js";
66
66
  import { default as Gt } from "./components/Carousel/CarouselDots.js";
@@ -84,7 +84,8 @@ import { default as Lo } from "./patterns/BidSnapshot/BidSnapshot.js";
84
84
  import { default as Po } from "./patterns/BidSnapshot/BidMessage.js";
85
85
  import { BidMessageVariants as Io, BidStatusEnum as Vo } from "./patterns/BidSnapshot/types.js";
86
86
  import { default as ho } from "./components/Article/Article.js";
87
- import { default as wo } from "./components/FavoritingTileButton/FavoritingTileButton.js";
87
+ import { default as wo } from "./components/Divider/Divider.js";
88
+ import { default as vo } from "./components/FavoritingTileButton/FavoritingTileButton.js";
88
89
  import { default as Ho } from "./components/TextArea/TextArea.js";
89
90
  export {
90
91
  Ke as Accordion,
@@ -101,8 +102,8 @@ export {
101
102
  lt as Breadcrumb,
102
103
  k as Button,
103
104
  y as ButtonVariants,
104
- Ht as Carousel,
105
- vt as CarouselArrows,
105
+ vt as Carousel,
106
+ Ht as CarouselArrows,
106
107
  Ft as CarouselContent,
107
108
  Gt as CarouselDots,
108
109
  Ut as CarouselItem,
@@ -116,10 +117,11 @@ export {
116
117
  Rt as Detail,
117
118
  jt as DetailList,
118
119
  Wt as DetailListAlignment,
119
- Me as Drawer,
120
+ wo as Divider,
121
+ De as Drawer,
120
122
  ut as Dropdown,
121
- D as ErrorBoundary,
122
- wo as FavoritingTileButton,
123
+ M as ErrorBoundary,
124
+ vo as FavoritingTileButton,
123
125
  lo as Filter,
124
126
  io as FilterHeader,
125
127
  po as FilterInput,
@@ -130,8 +132,8 @@ export {
130
132
  ie as GridItemAlign,
131
133
  O as Header,
132
134
  K as HeroBanner,
133
- dt as Icon,
134
- M as IconButton,
135
+ mt as Icon,
136
+ D as IconButton,
135
137
  _ as Input,
136
138
  gt as LanguageSelector,
137
139
  ee as Link,
@@ -148,9 +150,9 @@ export {
148
150
  a as PaddingTokens,
149
151
  S as Page,
150
152
  wt as PageContentWrapper,
151
- De as Pagination,
153
+ Me as Pagination,
152
154
  Zt as PinchZoom,
153
- me as Row,
155
+ de as Row,
154
156
  B as SSRMediaQuery,
155
157
  to as SaleHeaderBanner,
156
158
  ro as SaleHeaderBrowseAuctions,
@@ -181,8 +183,8 @@ export {
181
183
  ke as ViewingsList,
182
184
  s as defaultYear,
183
185
  l as emailValidation,
184
- m as encodeURLSearchParams,
185
- d as findChildrenExcludingTypes,
186
+ d as encodeURLSearchParams,
187
+ m as findChildrenExcludingTypes,
186
188
  p as findChildrenOfType,
187
189
  u as generatePaddingClassName,
188
190
  i as getCommonProps,
@@ -65,4 +65,5 @@
65
65
  @use 'site-furniture/Header/header';
66
66
  @use 'site-furniture/Footer/footer';
67
67
  @use 'components/Article/article';
68
+ @use 'components/Divider/divider';
68
69
  @use 'components/TextArea/textArea';
@@ -0,0 +1,17 @@
1
+ @use '../../allPartials' as *;
2
+
3
+ .#{$px}-divider {
4
+ margin: $spacing-sm 0;
5
+
6
+ &-line {
7
+ background-color: $keyline-gray;
8
+ border: none;
9
+ border-top: 1px solid $keyline-gray;
10
+ color: $keyline-gray;
11
+ display: block;
12
+ height: 1px;
13
+ margin: 1em 0;
14
+ padding: 0;
15
+ width: 100%;
16
+ }
17
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.134.1",
3
+ "version": "1.135.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"