@sps-woodland/action-bar 8.33.9 → 8.34.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.js +10 -9
- package/lib/index.umd.cjs +2 -2
- package/lib/style.css +1 -1
- package/package.json +11 -9
package/lib/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
2
|
import { Button as B } from "@sps-woodland/buttons";
|
|
3
|
-
import { Metadata as r, Box as h, cl as l,
|
|
4
|
-
import { Tag as
|
|
3
|
+
import { Metadata as r, Box as h, cl as l, selectChildren as S } from "@sps-woodland/core";
|
|
4
|
+
import { Tag as f } from "@sps-woodland/tags";
|
|
5
|
+
import { useWoodlandLanguage as b } from "@spscommerce/i18n";
|
|
5
6
|
import { code as s } from "@spscommerce/utils";
|
|
6
|
-
var A = "pkg_sps-woodland_action-
|
|
7
|
+
var A = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s90", w = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s91", v = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s92", k = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s93", g = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s94", x = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s95", C = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s96", E = "pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s97";
|
|
7
8
|
function i({
|
|
8
9
|
className: t,
|
|
9
10
|
children: n,
|
|
@@ -30,7 +31,7 @@ function d({
|
|
|
30
31
|
itemsSelectedLabel: m,
|
|
31
32
|
...u
|
|
32
33
|
}) {
|
|
33
|
-
const { t: a } =
|
|
34
|
+
const { t: a } = b(), [p, _] = S(n, [
|
|
34
35
|
{ type: i }
|
|
35
36
|
]);
|
|
36
37
|
return Number(c) > 0 ? /* @__PURE__ */ e.createElement(
|
|
@@ -39,15 +40,15 @@ function d({
|
|
|
39
40
|
className: l(A, t),
|
|
40
41
|
...u
|
|
41
42
|
},
|
|
42
|
-
/* @__PURE__ */ e.createElement("div", { className: w }, p, /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement("div", { className: k }, /* @__PURE__ */ e.createElement(
|
|
43
|
+
/* @__PURE__ */ e.createElement("div", { className: w }, p, /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement("div", { className: k }, /* @__PURE__ */ e.createElement(f, { kind: "info", className: g }, c), m ?? a("listActionBar.itemsSelected", { defaultValue: "Items Selected" })), /* @__PURE__ */ e.createElement("div", { className: x }, _), /* @__PURE__ */ e.createElement("div", { className: C }, /* @__PURE__ */ e.createElement(
|
|
43
44
|
B,
|
|
44
45
|
{
|
|
45
|
-
title: a("
|
|
46
|
+
title: a("listActionBar.clearSelected", { defaultValue: "Clear Selected" }),
|
|
46
47
|
kind: "link",
|
|
47
48
|
icon: "x",
|
|
48
49
|
onPress: o
|
|
49
50
|
},
|
|
50
|
-
a("
|
|
51
|
+
a("listActionBar.clearSelected", { defaultValue: "Clear Selected" })
|
|
51
52
|
))))
|
|
52
53
|
) : /* @__PURE__ */ e.createElement(e.Fragment, null);
|
|
53
54
|
}
|
|
@@ -223,11 +224,11 @@ const I = {
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
},
|
|
227
|
+
}, V = {
|
|
227
228
|
"Action Bar": I
|
|
228
229
|
};
|
|
229
230
|
export {
|
|
230
231
|
d as ActionBar,
|
|
231
232
|
i as ActionBarAdditionalContent,
|
|
232
|
-
|
|
233
|
+
V as MANIFEST
|
|
233
234
|
};
|
package/lib/index.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("@sps-woodland/buttons"),require("@sps-woodland/core"),require("@sps-woodland/tags"),require("@spscommerce/utils")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/buttons","@sps-woodland/core","@sps-woodland/tags","@spscommerce/utils"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.ActionBar={},e.React,e.buttons,e.core,e.tags,e.utils))})(this,function(e,i,u,
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("react"),require("@sps-woodland/buttons"),require("@sps-woodland/core"),require("@sps-woodland/tags"),require("@spscommerce/i18n"),require("@spscommerce/utils")):typeof define=="function"&&define.amd?define(["exports","react","@sps-woodland/buttons","@sps-woodland/core","@sps-woodland/tags","@spscommerce/i18n","@spscommerce/utils"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.ActionBar={},e.React,e.buttons,e.core,e.tags,e.i18n,e.utils))})(this,function(e,i,u,s,p,_,d){"use strict";function B(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const c=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(a,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return a.default=n,Object.freeze(a)}const t=B(i);var h="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s90",f="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s91",S="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s92",b="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s93",A="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s94",w="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s95",v="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s96",g="pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s97";function r({className:n,children:a,...o}){return t.createElement(s.Box,{className:s.cl(g,n),...o},a)}s.Metadata.set(r,{name:"ActionBarAdditionalContent",props:{}});function l({className:n,children:a,clearSelected:o,itemsSelected:c,itemsSelectedLabel:C,...x}){const{t:m}=_.useWoodlandLanguage(),[y,E]=s.selectChildren(a,[{type:r}]);return Number(c)>0?t.createElement("div",{className:s.cl(h,n),...x},t.createElement("div",{className:f},y,t.createElement("div",{className:S},t.createElement("div",{className:b},t.createElement(p.Tag,{kind:"info",className:A},c),C??m("listActionBar.itemsSelected",{defaultValue:"Items Selected"})),t.createElement("div",{className:w},E),t.createElement("div",{className:v},t.createElement(u.Button,{title:m("listActionBar.clearSelected",{defaultValue:"Clear Selected"}),kind:"link",icon:"x",onPress:o},m("listActionBar.clearSelected",{defaultValue:"Clear Selected"})))))):t.createElement(t.Fragment,null)}s.Metadata.set(l,{name:"ActionBar",props:{clearSelected:{type:"() => void",required:!0},itemsSelected:{type:"number | string",required:!0},itemsSelectedLabel:{type:"string",required:!1}}});const k={"Action Bar":{components:[l,r],description:()=>t.createElement("p",null,"The Action Bar contains the action buttons relevant to selected items from a Table List, Row List, or Card List. The Action Bar is only visible when one or more list items have been selected and appears anchored to the bottom of the page above all other content."),examples:{general:{label:"General Usage",description:""},actionBar:{label:"Action Bar",description:"This example makes use of the Text Buttons + Icon Buttons + Basic Buttons Group.",examples:{basic:{react:d.code`
|
|
2
2
|
import { ActionBar } from "@sps-woodland/action-bar";
|
|
3
3
|
import { Button } from "@sps-woodland/buttons";
|
|
4
4
|
import { Vr } from "@sps-woodland/core";
|
|
@@ -116,4 +116,4 @@
|
|
|
116
116
|
</ActionBar>
|
|
117
117
|
</>
|
|
118
118
|
}
|
|
119
|
-
`}}}}}};e.ActionBar=l,e.ActionBarAdditionalContent=r,e.MANIFEST=
|
|
119
|
+
`}}}}}};e.ActionBar=l,e.ActionBarAdditionalContent=r,e.MANIFEST=k,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_action-
|
|
1
|
+
.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s90{background-color:#fff;display:flex;bottom:0;position:fixed;justify-content:center;left:0;right:0;padding:.5rem;box-shadow:0 0 .25rem .25rem #1f282c1a;z-index:99}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s91{display:flex;flex-direction:column;max-width:1280px;padding-left:1.25rem;padding-right:1.25rem;width:100%}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s92{height:2rem;display:flex;align-items:center;width:100%}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s93{flex:1}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s94{margin-right:.25rem}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s95{display:flex;flex:2;align-items:center;justify-content:center}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s96{flex:1;text-align:right}.pkg_sps-woodland_action-bar__version_8_34_0__hash_9yu2s97{margin-bottom:.5rem}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sps-woodland/action-bar",
|
|
3
3
|
"description": "SPS Woodland Design System Action Bar component",
|
|
4
|
-
"version": "8.
|
|
4
|
+
"version": "8.34.0",
|
|
5
5
|
"author": "SPS Commerce",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": "https://github.com/SPSCommerce/woodland/tree/main/packages/@sps-woodland/action-bar",
|
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
"@spscommerce/utils": "^7.0.0",
|
|
30
30
|
"react": "^16.14.0",
|
|
31
31
|
"react-dom": "^16.14.0",
|
|
32
|
-
"@sps-woodland/buttons": "8.
|
|
33
|
-
"@sps-woodland/core": "8.
|
|
34
|
-
"@sps-woodland/tags": "8.
|
|
35
|
-
"@sps-woodland/tokens": "8.
|
|
32
|
+
"@sps-woodland/buttons": "8.34.0",
|
|
33
|
+
"@sps-woodland/core": "8.34.0",
|
|
34
|
+
"@sps-woodland/tags": "8.34.0",
|
|
35
|
+
"@sps-woodland/tokens": "8.34.0",
|
|
36
|
+
"@spscommerce/i18n": "8.34.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@spscommerce/utils": "^7.0.0",
|
|
@@ -40,10 +41,11 @@
|
|
|
40
41
|
"@vanilla-extract/recipes": "^0.2.5",
|
|
41
42
|
"react": "^16.14.0",
|
|
42
43
|
"react-dom": "^16.14.0",
|
|
43
|
-
"@sps-woodland/buttons": "8.
|
|
44
|
-
"@sps-woodland/core": "8.
|
|
45
|
-
"@sps-woodland/tags": "8.
|
|
46
|
-
"@sps-woodland/tokens": "8.
|
|
44
|
+
"@sps-woodland/buttons": "8.34.0",
|
|
45
|
+
"@sps-woodland/core": "8.34.0",
|
|
46
|
+
"@sps-woodland/tags": "8.34.0",
|
|
47
|
+
"@sps-woodland/tokens": "8.34.0",
|
|
48
|
+
"@spscommerce/i18n": "8.34.0"
|
|
47
49
|
},
|
|
48
50
|
"scripts": {
|
|
49
51
|
"build": "pnpm run build:js && pnpm run build:types",
|