@phillips/seldon 1.73.1 → 1.73.3

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/index.d.ts CHANGED
@@ -43,7 +43,7 @@ export { default as Video, type VideoProps } from './components/Video/Video';
43
43
  export * from './patterns/LanguageSelector';
44
44
  export * from './components/ContentPeek';
45
45
  export * from './components/Collapsible';
46
- export * from './providers/SeldonProvider';
46
+ export * from './providers/SeldonProvider/SeldonProvider';
47
47
  export { default as PageContentWrapper } from './components/PageContentWrapper/PageContentWrapper';
48
48
  export * from './components/Carousel';
49
49
  export * from './components/Detail';
package/dist/index.js CHANGED
@@ -52,7 +52,7 @@ import { default as ro } from "./components/ContentPeek/ContentPeek.js";
52
52
  import { default as fo } from "./components/Collapsible/Collapsible.js";
53
53
  import { default as mo } from "./components/Collapsible/CollapsibleContent.js";
54
54
  import { default as so } from "./components/Collapsible/CollapsibleTrigger.js";
55
- import { SeldonProvider as uo } from "./providers/SeldonProvider.js";
55
+ import { SeldonProvider as uo } from "./providers/SeldonProvider/SeldonProvider.js";
56
56
  import { default as no } from "./components/PageContentWrapper/PageContentWrapper.js";
57
57
  import { default as co } from "./components/Carousel/Carousel.js";
58
58
  import { default as Co } from "./components/Carousel/CarouselContent.js";
@@ -0,0 +1,9 @@
1
+ import { PropsWithChildren } from 'react';
2
+ /**
3
+ * The SeldonProvider provides the ability for our components to render differently based on different media queries,
4
+ * It also applies a global reset to the browser's default styles for all seldon components within.
5
+ * In the future it may provide other kinds of context data like common internationalization (i18n) data.
6
+ *
7
+ * It is recommended to wrap this provider once around your entire application to ensure that all Seldon components can access the same context.
8
+ */
9
+ export declare const SeldonProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsxs as o, jsx as r } from "react/jsx-runtime";
2
+ import { SSRMediaQuery as i, ssrMediaQueryStyle as d } from "../utils.js";
3
+ /* empty css */
4
+ import { px as t } from "../../utils/index.js";
5
+ const a = ({ children: e }) => /* @__PURE__ */ o(i.MediaContextProvider, { children: [
6
+ /* @__PURE__ */ r("style", { children: d }),
7
+ /* @__PURE__ */ r("div", { className: `${t}-provider`, children: e })
8
+ ] });
9
+ export {
10
+ a as SeldonProvider
11
+ };
@@ -0,0 +1 @@
1
+ .seldon-provider *,.seldon-provider *:before,.seldon-provider *:after{box-sizing:border-box}.seldon-provider *{margin:0}.seldon-provider img,.seldon-provider picture,.seldon-provider video,.seldon-provider canvas,.seldon-provider svg{display:block;max-width:100%}.seldon-provider input,.seldon-provider button,.seldon-provider textarea,.seldon-provider select{font:inherit}.seldon-provider strong{font-variation-settings:"wght" 700;font-weight:unset}.seldon-provider p,.seldon-provider h1,.seldon-provider h2,.seldon-provider h3,.seldon-provider h4,.seldon-provider h5,.seldon-provider h6{font-weight:unset;overflow-wrap:break-word}.seldon-provider a{color:inherit;text-decoration:none}.seldon-provider ul{list-style:none;padding:0}.seldon-provider li{list-style:none}
@@ -1,60 +1,10 @@
1
- *,
2
- *::before,
3
- *::after {
4
- box-sizing: border-box;
5
- }
6
-
7
- * {
8
- margin: 0;
9
- }
10
-
11
1
  body {
12
2
  -webkit-font-smoothing: antialiased;
13
3
  line-height: 1.5;
14
4
  }
15
5
 
16
- img,
17
- picture,
18
- video,
19
- canvas,
20
- svg {
21
- display: block;
22
- max-width: 100%;
23
- }
24
-
25
- input,
26
- button,
27
- textarea,
28
- select {
29
- font: inherit;
30
- }
31
-
32
- p,
33
- h1,
34
- h2,
35
- h3,
36
- h4,
37
- h5,
38
- h6 {
39
- /* stylelint-disable-next-line declaration-property-value-disallowed-list */
40
- font-weight: unset;
41
- overflow-wrap: break-word;
42
- }
43
-
44
- a {
45
- color: inherit;
46
- text-decoration: none;
47
- }
48
-
49
- ul {
50
- list-style: none;
51
- padding: 0;
52
- }
53
-
54
- li {
55
- list-style: none;
56
- }
57
-
58
6
  #root {
59
7
  isolation: isolate;
60
8
  }
9
+
10
+ // Any other global styles should be added to `_seldonProvider.scss`
@@ -45,6 +45,9 @@
45
45
  @use 'patterns/Subscribe/subscribe';
46
46
  @use 'patterns/Social/social';
47
47
 
48
+ // Providers
49
+ @use 'providers/SeldonProvider/seldonProvider';
50
+
48
51
  // Site Furniture
49
52
  @use 'site-furniture/Header/header';
50
53
  @use 'site-furniture/Footer/footer';
@@ -34,7 +34,6 @@
34
34
 
35
35
  & > &__submenu {
36
36
  align-items: flex-start;
37
- border-top: 1px solid $light-gray;
38
37
  height: fit-content;
39
38
  max-height: 0;
40
39
  opacity: 0;
@@ -44,14 +43,12 @@
44
43
  right: 0;
45
44
  top: calc($header-height + 1px);
46
45
  transition:
47
- max-height 0.2s ease-in-out,
48
- opacity 0s ease-in-out 0.2s,
49
- z-index 0s ease-in-out 0.2s;
46
+ max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
47
+ opacity 0.2s cubic-bezier(0.65, 0, 0.35, 1);
50
48
  width: 100%;
51
- z-index: -1;
52
49
  .#{$px}-nav__list__section {
53
50
  opacity: 0;
54
- transition: opacity 0.5s ease-in-out;
51
+ transition: opacity 0.3s cubic-bezier(0.33, 1, 0.68, 1);
55
52
  }
56
53
  }
57
54
 
@@ -60,10 +57,7 @@
60
57
  max-height: 700px;
61
58
  opacity: 1;
62
59
  pointer-events: all;
63
- transition:
64
- max-height 0.25s ease-in-out,
65
- z-index 0s ease-in-out 0.25s;
66
- z-index: 1;
60
+ transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
67
61
 
68
62
  .#{$px}-nav__list__section {
69
63
  opacity: 1;
@@ -1,7 +1,7 @@
1
1
  @use '../../../allPartials' as *;
2
2
 
3
- $opacity-transition: opacity 0.25s ease-in;
4
- $top-transition: top 0.25s ease-in 0.1s;
3
+ $opacity-transition: opacity 0.2s cubic-bezier(0.65, 0, 0.35, 1);
4
+ $top-transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
5
5
 
6
6
  .#{$px}-nav__list {
7
7
  align-items: flex-start;
@@ -0,0 +1,59 @@
1
+ .seldon-provider {
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ * {
9
+ margin: 0;
10
+ }
11
+
12
+ img,
13
+ picture,
14
+ video,
15
+ canvas,
16
+ svg {
17
+ display: block;
18
+ max-width: 100%;
19
+ }
20
+
21
+ input,
22
+ button,
23
+ textarea,
24
+ select {
25
+ font: inherit;
26
+ }
27
+
28
+ strong {
29
+ font-variation-settings: 'wght' 700;
30
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list */
31
+ font-weight: unset;
32
+ }
33
+
34
+ p,
35
+ h1,
36
+ h2,
37
+ h3,
38
+ h4,
39
+ h5,
40
+ h6 {
41
+ /* stylelint-disable-next-line declaration-property-value-disallowed-list */
42
+ font-weight: unset;
43
+ overflow-wrap: break-word;
44
+ }
45
+
46
+ a {
47
+ color: inherit;
48
+ text-decoration: none;
49
+ }
50
+
51
+ ul {
52
+ list-style: none;
53
+ padding: 0;
54
+ }
55
+
56
+ li {
57
+ list-style: none;
58
+ }
59
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phillips/seldon",
3
- "version": "1.73.1",
3
+ "version": "1.73.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/PhillipsAuctionHouse/seldon"
@@ -1,7 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- /**
3
- * The SeldonProvider currently provides the ability for our components to render differently based on different media queries, but in the future it may provide other kinds of context data like common internationalization (i18n) data.
4
- *
5
- * It is recommended to wrap this provider once around your entire application to ensure that all Seldon components can access the same context.
6
- */
7
- export declare const SeldonProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { SSRMediaQuery as i, ssrMediaQueryStyle as d } from "./utils.js";
3
- const l = ({ children: e }) => /* @__PURE__ */ r(i.MediaContextProvider, { children: [
4
- /* @__PURE__ */ o("style", { children: d }),
5
- e
6
- ] });
7
- export {
8
- l as SeldonProvider
9
- };