@sps-woodland/page-title 7.17.12 → 7.19.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/lib/{index.es.js → index.js} +25 -25
- package/lib/index.umd.cjs +28 -0
- package/lib/style.css +1 -1
- package/package.json +12 -12
- package/sps-woodland-page-title-7.19.0.tgz +0 -0
- package/vite.config.js +13 -4
- package/lib/index.cjs.js +0 -28
- package/sps-woodland-page-title-7.17.11.tgz +0 -0
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { Metadata as
|
|
3
|
-
import { code as
|
|
4
|
-
var
|
|
5
|
-
function
|
|
1
|
+
import * as l from "react";
|
|
2
|
+
import { Metadata as r, selectChildren as m, Icon as _, addClassName as g, cl as i, modChildren as u } from "@sps-woodland/core";
|
|
3
|
+
import { code as n } from "@spscommerce/utils";
|
|
4
|
+
var b = "pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb0", P = "pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb2", v = "pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb1";
|
|
5
|
+
function c({
|
|
6
6
|
children: a,
|
|
7
7
|
className: o,
|
|
8
|
-
...
|
|
8
|
+
...s
|
|
9
9
|
}) {
|
|
10
|
-
const [[e], t] =
|
|
11
|
-
return /* @__PURE__ */
|
|
10
|
+
const [[e], t] = m(a, [{ type: _ }]), d = e ? g(e, P) : "";
|
|
11
|
+
return /* @__PURE__ */ l.createElement("div", { className: i(b, o), ...s }, d, /* @__PURE__ */ l.createElement("div", { className: v }, t));
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
r.set(c, {
|
|
14
14
|
name: "Page Title"
|
|
15
15
|
});
|
|
16
|
-
var
|
|
17
|
-
function
|
|
16
|
+
var h = "pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb0", T = "pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb1";
|
|
17
|
+
function p({
|
|
18
18
|
children: a,
|
|
19
19
|
className: o,
|
|
20
|
-
...
|
|
20
|
+
...s
|
|
21
21
|
}) {
|
|
22
|
-
const e =
|
|
23
|
-
className:
|
|
22
|
+
const e = u(a, (t) => t.type === _ ? [{
|
|
23
|
+
className: i(t.props.className, T)
|
|
24
24
|
}] : []);
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ l.createElement("div", { className: i(h, o), ...s }, e);
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
r.set(p, {
|
|
28
28
|
name: "Page Subtitle"
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
components: [
|
|
30
|
+
const w = {
|
|
31
|
+
components: [c, p],
|
|
32
32
|
examples: {
|
|
33
33
|
basic: {
|
|
34
34
|
label: "Basic",
|
|
35
35
|
examples: {
|
|
36
36
|
basic: {
|
|
37
|
-
react:
|
|
37
|
+
react: n`
|
|
38
38
|
import { PageTitle } from "@sps-woodland/page-title";
|
|
39
39
|
|
|
40
40
|
function Component() {
|
|
@@ -53,7 +53,7 @@ const f = {
|
|
|
53
53
|
label: "Subtitle",
|
|
54
54
|
examples: {
|
|
55
55
|
withSubtitle: {
|
|
56
|
-
react:
|
|
56
|
+
react: n`
|
|
57
57
|
import { PageTitle, PageSubtitle } from "@sps-woodland/page-title";
|
|
58
58
|
import { Icon } from "@sps-woodland/core";
|
|
59
59
|
|
|
@@ -74,11 +74,11 @@ const f = {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
},
|
|
78
|
-
"Page Title":
|
|
77
|
+
}, z = {
|
|
78
|
+
"Page Title": w
|
|
79
79
|
};
|
|
80
80
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
z as MANIFEST,
|
|
82
|
+
p as PageSubtitle,
|
|
83
|
+
c as PageTitle
|
|
84
84
|
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
(function(t,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("react"),require("@sps-woodland/core"),require("@spscommerce/utils")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/core","@spscommerce/utils"],o):(t=typeof globalThis<"u"?globalThis:t||self,o(t.PageTitle={},t.React,t.core,t.utils))})(this,function(t,o,a,_){"use strict";function p(e){if(e&&e.__esModule)return e;const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const n=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(s,i,n.get?n:{enumerable:!0,get:()=>e[i]})}}return s.default=e,Object.freeze(s)}const r=p(o),v="";var u="pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb0",g="pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb2",m="pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb1";function c({children:e,className:s,...i}){const[[n],l]=a.selectChildren(e,[{type:a.Icon}]),T=n?a.addClassName(n,g):"";return r.createElement("div",{className:a.cl(u,s),...i},T,r.createElement("div",{className:m},l))}a.Metadata.set(c,{name:"Page Title"});const h="";var b="pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb0",f="pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb1";function d({children:e,className:s,...i}){const n=a.modChildren(e,l=>l.type===a.Icon?[{className:a.cl(l.props.className,f)}]:[]);return r.createElement("div",{className:a.cl(b,s),...i},n)}a.Metadata.set(d,{name:"Page Subtitle"});const P={"Page Title":{components:[c,d],examples:{basic:{label:"Basic",examples:{basic:{react:_.code`
|
|
2
|
+
import { PageTitle } from "@sps-woodland/page-title";
|
|
3
|
+
|
|
4
|
+
function Component() {
|
|
5
|
+
return (
|
|
6
|
+
<PageTitle>
|
|
7
|
+
<Icon icon="status-error" color="red-medium" />
|
|
8
|
+
Cabela's Purchase Order #123456789012
|
|
9
|
+
</PageTitle>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
`}}},subtitle:{label:"Subtitle",examples:{withSubtitle:{react:_.code`
|
|
13
|
+
import { PageTitle, PageSubtitle } from "@sps-woodland/page-title";
|
|
14
|
+
import { Icon } from "@sps-woodland/core";
|
|
15
|
+
|
|
16
|
+
function Component() {
|
|
17
|
+
return (
|
|
18
|
+
<PageTitle>
|
|
19
|
+
<Icon aria-hidden="true" icon="status-error" color="red-medium" size="lg"/>
|
|
20
|
+
Cabela's Purchase Order #123456789012
|
|
21
|
+
<PageSubtitle>
|
|
22
|
+
MacNeil Automotive Parts
|
|
23
|
+
<Icon icon="outgoing" />
|
|
24
|
+
</PageSubtitle>
|
|
25
|
+
</PageTitle>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
`}}}}}};t.MANIFEST=P,t.PageSubtitle=d,t.PageTitle=c,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb0{display:flex;flex-direction:row}.pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb1{color:#1f282c;display:flex;flex-direction:column;font-size:1.5rem;line-height:1.5rem}.pkg_sps-woodland_page-title__version_7_19_0__hash_14vazzb2{align-self:flex-start;font-size:1.125rem;line-height:1.5rem;margin-right:.25rem}.pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb0{color:#4b5356;font-size:1.125rem;line-height:1.125rem;margin-top:.25rem}.pkg_sps-woodland_page-title__version_7_19_0__hash_30pzwb1{font-size:.75rem;line-height:1.125rem;margin-left:.25rem;margin-right:.25rem}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sps-woodland/page-title",
|
|
3
3
|
"description": "SPS Woodland Design System page title component",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.19.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/page-title",
|
|
8
8
|
"homepage": "https://github.com/SPSCommerce/woodland/tree/master/packages/@sps-woodland/page-title#readme",
|
|
9
|
-
"module": "./lib/index.es.js",
|
|
10
9
|
"type": "module",
|
|
11
|
-
"
|
|
10
|
+
"module": "./lib/index.js",
|
|
11
|
+
"main": "./lib/index.umd.cjs",
|
|
12
12
|
"types": "./lib/index.d.ts",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"default": "./lib/index.
|
|
15
|
+
"require": "./lib/index.umd.cjs",
|
|
16
|
+
"import": "./lib/index.js",
|
|
17
|
+
"default": "./lib/index.js",
|
|
18
18
|
"types": "./lib/index.d.ts"
|
|
19
19
|
},
|
|
20
20
|
"./lib/style.css": {
|
|
@@ -26,19 +26,19 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@sps-woodland/core": "7.17.12",
|
|
30
|
-
"@sps-woodland/tokens": "7.17.12",
|
|
31
29
|
"@spscommerce/utils": "^6.12.1",
|
|
32
30
|
"react": "^16.14.0",
|
|
33
|
-
"react-dom": "^16.14.0"
|
|
31
|
+
"react-dom": "^16.14.0",
|
|
32
|
+
"@sps-woodland/core": "7.19.0",
|
|
33
|
+
"@sps-woodland/tokens": "7.19.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@sps-woodland/core": "7.17.12",
|
|
37
|
-
"@sps-woodland/tokens": "7.17.12",
|
|
38
36
|
"@spscommerce/utils": "^6.12.1",
|
|
39
37
|
"@vanilla-extract/css": "^1.9.3",
|
|
40
38
|
"react": "^16.14.0",
|
|
41
|
-
"react-dom": "^16.14.0"
|
|
39
|
+
"react-dom": "^16.14.0",
|
|
40
|
+
"@sps-woodland/core": "7.19.0",
|
|
41
|
+
"@sps-woodland/tokens": "7.19.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "pnpm run build:js && pnpm run build:types",
|
|
Binary file
|
package/vite.config.js
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
3
3
|
import { defineConfig } from "vite";
|
|
4
|
-
|
|
4
|
+
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.js";
|
|
5
5
|
import pkg from "./package.json";
|
|
6
6
|
|
|
7
|
+
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
8
|
+
|
|
7
9
|
export default defineConfig({
|
|
8
|
-
plugins: [
|
|
10
|
+
plugins: [
|
|
11
|
+
vanillaExtractPlugin(
|
|
12
|
+
getVanillaExtractPluginProps({
|
|
13
|
+
packageName: pkg.name,
|
|
14
|
+
packageVersion,
|
|
15
|
+
})
|
|
16
|
+
),
|
|
17
|
+
],
|
|
9
18
|
build: {
|
|
10
19
|
lib: {
|
|
11
20
|
entry: path.resolve(__dirname, "src/index.ts"),
|
|
12
|
-
|
|
13
|
-
fileName:
|
|
21
|
+
name: "PageTitle",
|
|
22
|
+
fileName: "index",
|
|
14
23
|
},
|
|
15
24
|
outDir: path.resolve(__dirname, "./lib"),
|
|
16
25
|
emptyOutDir: false,
|
package/lib/index.cjs.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("react"),t=require("@sps-woodland/core"),s=require("@spscommerce/utils");function m(e){if(e&&e.__esModule)return e;const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(o,a,l.get?l:{enumerable:!0,get:()=>e[a]})}}return o.default=e,Object.freeze(o)}const i=m(d);var g="_14vazzb0",p="_14vazzb2",b="_14vazzb1";function n({children:e,className:o,...a}){const[[l],r]=t.selectChildren(e,[{type:t.Icon}]),u=l?t.addClassName(l,p):"";return i.createElement("div",{className:t.cl(g,o),...a},u,i.createElement("div",{className:b},r))}t.Metadata.set(n,{name:"Page Title"});var P="_30pzwb0",T="_30pzwb1";function c({children:e,className:o,...a}){const l=t.modChildren(e,r=>r.type===t.Icon?[{className:t.cl(r.props.className,T)}]:[]);return i.createElement("div",{className:t.cl(P,o),...a},l)}t.Metadata.set(c,{name:"Page Subtitle"});const _={components:[n,c],examples:{basic:{label:"Basic",examples:{basic:{react:s.code`
|
|
2
|
-
import { PageTitle } from "@sps-woodland/page-title";
|
|
3
|
-
|
|
4
|
-
function Component() {
|
|
5
|
-
return (
|
|
6
|
-
<PageTitle>
|
|
7
|
-
<Icon icon="status-error" color="red-medium" />
|
|
8
|
-
Cabela's Purchase Order #123456789012
|
|
9
|
-
</PageTitle>
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
`}}},subtitle:{label:"Subtitle",examples:{withSubtitle:{react:s.code`
|
|
13
|
-
import { PageTitle, PageSubtitle } from "@sps-woodland/page-title";
|
|
14
|
-
import { Icon } from "@sps-woodland/core";
|
|
15
|
-
|
|
16
|
-
function Component() {
|
|
17
|
-
return (
|
|
18
|
-
<PageTitle>
|
|
19
|
-
<Icon aria-hidden="true" icon="status-error" color="red-medium" size="lg"/>
|
|
20
|
-
Cabela's Purchase Order #123456789012
|
|
21
|
-
<PageSubtitle>
|
|
22
|
-
MacNeil Automotive Parts
|
|
23
|
-
<Icon icon="outgoing" />
|
|
24
|
-
</PageSubtitle>
|
|
25
|
-
</PageTitle>
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
`}}}}},f={"Page Title":_};exports.MANIFEST=f;exports.PageSubtitle=c;exports.PageTitle=n;
|
|
Binary file
|