@sps-woodland/action-bar 8.35.3 → 8.35.5
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 +1 -1
- package/lib/index.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/package.json +11 -11
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Metadata as r, Box as h, cl as l, selectChildren as S } from "@sps-wood
|
|
|
4
4
|
import { Tag as f } from "@sps-woodland/tags";
|
|
5
5
|
import { useWoodlandLanguage as b } from "@spscommerce/i18n";
|
|
6
6
|
import { code as s } from "@spscommerce/utils";
|
|
7
|
-
var A = "pkg_sps-woodland_action-
|
|
7
|
+
var A = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s90", w = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s91", v = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s92", k = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s93", g = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s94", x = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s95", C = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s96", E = "pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s97";
|
|
8
8
|
function i({
|
|
9
9
|
className: t,
|
|
10
10
|
children: n,
|
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/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-
|
|
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_35_5__hash_9yu2s90",f="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s91",S="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s92",b="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s93",A="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s94",w="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s95",v="pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s96",g="pkg_sps-woodland_action-bar__version_8_35_5__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";
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_action-
|
|
1
|
+
.pkg_sps-woodland_action-bar__version_8_35_5__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_35_5__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_35_5__hash_9yu2s92{height:2rem;display:flex;align-items:center;width:100%}.pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s93{flex:1}.pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s94{margin-right:.25rem}.pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s95{display:flex;flex:2;align-items:center;justify-content:center}.pkg_sps-woodland_action-bar__version_8_35_5__hash_9yu2s96{flex:1;text-align:right}.pkg_sps-woodland_action-bar__version_8_35_5__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.35.
|
|
4
|
+
"version": "8.35.5",
|
|
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,11 +29,11 @@
|
|
|
29
29
|
"@spscommerce/utils": "^7.0.0 || ^8.0.0",
|
|
30
30
|
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
31
31
|
"react-dom": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
32
|
-
"@sps-woodland/buttons": "8.35.
|
|
33
|
-
"@sps-woodland/core": "8.35.
|
|
34
|
-
"@sps-woodland/tags": "8.35.
|
|
35
|
-
"@sps-woodland/tokens": "8.35.
|
|
36
|
-
"@spscommerce/i18n": "8.35.
|
|
32
|
+
"@sps-woodland/buttons": "8.35.5",
|
|
33
|
+
"@sps-woodland/core": "8.35.5",
|
|
34
|
+
"@sps-woodland/tags": "8.35.5",
|
|
35
|
+
"@sps-woodland/tokens": "8.35.5",
|
|
36
|
+
"@spscommerce/i18n": "8.35.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@spscommerce/utils": "^8.1.1",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@vanilla-extract/recipes": "^0.2.5",
|
|
42
42
|
"react": "^16.14.0",
|
|
43
43
|
"react-dom": "^16.14.0",
|
|
44
|
-
"@sps-woodland/buttons": "8.35.
|
|
45
|
-
"@sps-woodland/core": "8.35.
|
|
46
|
-
"@sps-woodland/tags": "8.35.
|
|
47
|
-
"@sps-woodland/tokens": "8.35.
|
|
48
|
-
"@spscommerce/i18n": "8.35.
|
|
44
|
+
"@sps-woodland/buttons": "8.35.5",
|
|
45
|
+
"@sps-woodland/core": "8.35.5",
|
|
46
|
+
"@sps-woodland/tags": "8.35.5",
|
|
47
|
+
"@sps-woodland/tokens": "8.35.5",
|
|
48
|
+
"@spscommerce/i18n": "8.35.5"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "pnpm run build:js && pnpm run build:types",
|