@sps-woodland/action-bar 8.26.1 → 8.26.2

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 CHANGED
@@ -1,9 +1,9 @@
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, I18nContext as S, selectChildren as b } from "@sps-woodland/core";
4
- import { Tag as A } from "@sps-woodland/tags";
3
+ import { Metadata as r, Box as h, cl as l, I18nContext as S, selectChildren as f } from "@sps-woodland/core";
4
+ import { Tag as b } from "@sps-woodland/tags";
5
5
  import { code as s } from "@spscommerce/utils";
6
- var f = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s95", w = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s97", v = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s96", k = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s91", g = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s92", x = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s93", C = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s94", E = "pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s90";
6
+ var A = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s95", w = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s97", v = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s96", k = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s91", g = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s92", x = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s93", C = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s94", E = "pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s90";
7
7
  function i({
8
8
  className: t,
9
9
  children: n,
@@ -30,7 +30,7 @@ function d({
30
30
  itemsSelectedLabel: m,
31
31
  ...u
32
32
  }) {
33
- const { t: a } = e.useContext(S), [p, _] = b(n, [
33
+ const { t: a } = e.useContext(S), [p, _] = f(n, [
34
34
  { type: i }
35
35
  ]);
36
36
  return Number(c) > 0 ? /* @__PURE__ */ e.createElement(
@@ -39,15 +39,15 @@ function d({
39
39
  className: l(E, t),
40
40
  ...u
41
41
  },
42
- /* @__PURE__ */ e.createElement("div", { className: k }, p, /* @__PURE__ */ e.createElement("div", { className: g }, /* @__PURE__ */ e.createElement("div", { className: x }, /* @__PURE__ */ e.createElement(A, { kind: "info", className: C }, c), m ?? a("design-system:listActionBar.itemsSelected")), /* @__PURE__ */ e.createElement("div", { className: f }, _), /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
42
+ /* @__PURE__ */ e.createElement("div", { className: k }, p, /* @__PURE__ */ e.createElement("div", { className: g }, /* @__PURE__ */ e.createElement("div", { className: x }, /* @__PURE__ */ e.createElement(b, { kind: "info", className: C }, c), m ?? a("design-system:listActionBar.itemsSelected", { defaultValue: "Items Selected" })), /* @__PURE__ */ e.createElement("div", { className: A }, _), /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
43
43
  B,
44
44
  {
45
- title: a("design-system:listActionBar.clearSelected"),
45
+ title: a("design-system:listActionBar.clearSelected", { defaultValue: "Clear Selected" }),
46
46
  kind: "link",
47
47
  icon: "x",
48
48
  onPress: o
49
49
  },
50
- a("design-system:listActionBar.clearSelected")
50
+ a("design-system:listActionBar.clearSelected", { defaultValue: "Clear Selected" })
51
51
  ))))
52
52
  ) : /* @__PURE__ */ e.createElement(e.Fragment, null);
53
53
  }
@@ -68,7 +68,7 @@ r.set(d, {
68
68
  }
69
69
  }
70
70
  });
71
- const y = {
71
+ const I = {
72
72
  components: [d, i],
73
73
  description: () => /* @__PURE__ */ e.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."),
74
74
  examples: {
@@ -224,7 +224,7 @@ const y = {
224
224
  }
225
225
  }
226
226
  }, R = {
227
- "Action Bar": y
227
+ "Action Bar": I
228
228
  };
229
229
  export {
230
230
  d as ActionBar,
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,a,p,d){"use strict";function _(n){const s=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(s,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return s.default=n,Object.freeze(s)}const t=_(i);var B="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s95",h="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s97",f="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s96",S="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s91",b="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s92",A="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s93",w="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s94",g="pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s90";function r({className:n,children:s,...o}){return t.createElement(a.Box,{className:a.cl(h,n),...o},s)}a.Metadata.set(r,{name:"ActionBarAdditionalContent",props:{}});function l({className:n,children:s,clearSelected:o,itemsSelected:c,itemsSelectedLabel:k,...y}){const{t:m}=t.useContext(a.I18nContext),[x,C]=a.selectChildren(s,[{type:r}]);return Number(c)>0?t.createElement("div",{className:a.cl(g,n),...y},t.createElement("div",{className:S},x,t.createElement("div",{className:b},t.createElement("div",{className:A},t.createElement(p.Tag,{kind:"info",className:w},c),k??m("design-system:listActionBar.itemsSelected")),t.createElement("div",{className:B},C),t.createElement("div",{className:f},t.createElement(u.Button,{title:m("design-system:listActionBar.clearSelected"),kind:"link",icon:"x",onPress:o},m("design-system:listActionBar.clearSelected")))))):t.createElement(t.Fragment,null)}a.Metadata.set(l,{name:"ActionBar",props:{clearSelected:{type:"() => void",required:!0},itemsSelected:{type:"number | string",required:!0},itemsSelectedLabel:{type:"string",required:!1}}});const v={"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`
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,a,p,d){"use strict";function _(n){const s=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(s,o,c.get?c:{enumerable:!0,get:()=>n[o]})}}return s.default=n,Object.freeze(s)}const t=_(i);var B="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s95",h="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s97",f="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s96",S="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s91",b="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s92",A="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s93",w="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s94",g="pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s90";function r({className:n,children:s,...o}){return t.createElement(a.Box,{className:a.cl(h,n),...o},s)}a.Metadata.set(r,{name:"ActionBarAdditionalContent",props:{}});function l({className:n,children:s,clearSelected:o,itemsSelected:c,itemsSelectedLabel:k,...y}){const{t:m}=t.useContext(a.I18nContext),[C,x]=a.selectChildren(s,[{type:r}]);return Number(c)>0?t.createElement("div",{className:a.cl(g,n),...y},t.createElement("div",{className:S},C,t.createElement("div",{className:b},t.createElement("div",{className:A},t.createElement(p.Tag,{kind:"info",className:w},c),k??m("design-system:listActionBar.itemsSelected",{defaultValue:"Items Selected"})),t.createElement("div",{className:B},x),t.createElement("div",{className:f},t.createElement(u.Button,{title:m("design-system:listActionBar.clearSelected",{defaultValue:"Clear Selected"}),kind:"link",icon:"x",onPress:o},m("design-system:listActionBar.clearSelected",{defaultValue:"Clear Selected"})))))):t.createElement(t.Fragment,null)}a.Metadata.set(l,{name:"ActionBar",props:{clearSelected:{type:"() => void",required:!0},itemsSelected:{type:"number | string",required:!0},itemsSelectedLabel:{type:"string",required:!1}}});const v={"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-bar__version_8_26_1__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_26_1__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_26_1__hash_9yu2s92{height:2rem;display:flex;align-items:center;width:100%}.pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s93{flex:1}.pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s94{margin-right:.25rem}.pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s95{display:flex;flex:2;align-items:center;justify-content:center}.pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s96{flex:1;text-align:right}.pkg_sps-woodland_action-bar__version_8_26_1__hash_9yu2s97{margin-bottom:.5rem}
1
+ .pkg_sps-woodland_action-bar__version_8_26_2__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_26_2__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_26_2__hash_9yu2s92{height:2rem;display:flex;align-items:center;width:100%}.pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s93{flex:1}.pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s94{margin-right:.25rem}.pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s95{display:flex;flex:2;align-items:center;justify-content:center}.pkg_sps-woodland_action-bar__version_8_26_2__hash_9yu2s96{flex:1;text-align:right}.pkg_sps-woodland_action-bar__version_8_26_2__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.26.1",
4
+ "version": "8.26.2",
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,10 @@
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.26.1",
33
- "@sps-woodland/core": "8.26.1",
34
- "@sps-woodland/tags": "8.26.1",
35
- "@sps-woodland/tokens": "8.26.1"
32
+ "@sps-woodland/buttons": "8.26.2",
33
+ "@sps-woodland/core": "8.26.2",
34
+ "@sps-woodland/tags": "8.26.2",
35
+ "@sps-woodland/tokens": "8.26.2"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@spscommerce/utils": "^7.0.0",
@@ -40,10 +40,10 @@
40
40
  "@vanilla-extract/recipes": "^0.2.5",
41
41
  "react": "^16.14.0",
42
42
  "react-dom": "^16.14.0",
43
- "@sps-woodland/buttons": "8.26.1",
44
- "@sps-woodland/core": "8.26.1",
45
- "@sps-woodland/tags": "8.26.1",
46
- "@sps-woodland/tokens": "8.26.1"
43
+ "@sps-woodland/buttons": "8.26.2",
44
+ "@sps-woodland/core": "8.26.2",
45
+ "@sps-woodland/tags": "8.26.2",
46
+ "@sps-woodland/tokens": "8.26.2"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "pnpm run build:js && pnpm run build:types",