@shoplflow/base 0.42.4 → 0.42.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/dist/index.cjs CHANGED
@@ -2605,6 +2605,14 @@ var DropdownButton = (_a) => {
2605
2605
  _styleVar = "SOLID";
2606
2606
  color = "coolgray50";
2607
2607
  }
2608
+ let customStyle = {};
2609
+ if (styleVar === "SECONDARY") {
2610
+ _styleVar = "SOLID";
2611
+ color = "neutral0";
2612
+ customStyle = {
2613
+ border: `1px solid ${exports.colorTokens.neutral350}`
2614
+ };
2615
+ }
2608
2616
  return /* @__PURE__ */ jsxRuntime.jsx(exports.DropdownButtonContext.Provider, { value: { isOpen, setIsOpen }, "data-shoplflow": "DropdownButton", children: /* @__PURE__ */ jsxRuntime.jsxs(exports.Popper, { placement, offset: 4, middlewares: [core.shift({ crossAxis: true, padding: 4 })], children: [
2609
2617
  /* @__PURE__ */ jsxRuntime.jsx(exports.Popper.Trigger, { isOpen, className: _className, children: /* @__PURE__ */ jsxRuntime.jsx(
2610
2618
  exports.Button,
@@ -2638,7 +2646,8 @@ var DropdownButton = (_a) => {
2638
2646
  return;
2639
2647
  }
2640
2648
  setIsOpen((prev) => !prev);
2641
- }
2649
+ },
2650
+ style: customStyle
2642
2651
  }, rest), {
2643
2652
  children: /* @__PURE__ */ jsxRuntime.jsx(exports.Text, { typography: "body2_400", color: "neutral700", children: text })
2644
2653
  })
package/dist/index.js CHANGED
@@ -2578,6 +2578,14 @@ var DropdownButton = (_a) => {
2578
2578
  _styleVar = "SOLID";
2579
2579
  color = "coolgray50";
2580
2580
  }
2581
+ let customStyle = {};
2582
+ if (styleVar === "SECONDARY") {
2583
+ _styleVar = "SOLID";
2584
+ color = "neutral0";
2585
+ customStyle = {
2586
+ border: `1px solid ${colorTokens.neutral350}`
2587
+ };
2588
+ }
2581
2589
  return /* @__PURE__ */ jsx(DropdownButtonContext.Provider, { value: { isOpen, setIsOpen }, "data-shoplflow": "DropdownButton", children: /* @__PURE__ */ jsxs(Popper_default, { placement, offset: 4, middlewares: [shift({ crossAxis: true, padding: 4 })], children: [
2582
2590
  /* @__PURE__ */ jsx(Popper_default.Trigger, { isOpen, className: _className, children: /* @__PURE__ */ jsx(
2583
2591
  Button_default,
@@ -2611,7 +2619,8 @@ var DropdownButton = (_a) => {
2611
2619
  return;
2612
2620
  }
2613
2621
  setIsOpen((prev) => !prev);
2614
- }
2622
+ },
2623
+ style: customStyle
2615
2624
  }, rest), {
2616
2625
  children: /* @__PURE__ */ jsx(Text_default, { typography: "body2_400", color: "neutral700", children: text })
2617
2626
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shoplflow/base",
3
- "version": "0.42.4",
3
+ "version": "0.42.5",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/index.js",
@@ -91,8 +91,8 @@
91
91
  "react-dom": "^18.2.0",
92
92
  "simplebar-react": "^3.2.6",
93
93
  "@shoplflow/hada-assets": "^0.1.7",
94
- "@shoplflow/shopl-assets": "^0.12.22",
95
- "@shoplflow/utils": "^0.7.0"
94
+ "@shoplflow/utils": "^0.7.0",
95
+ "@shoplflow/shopl-assets": "^0.12.22"
96
96
  },
97
97
  "scripts": {
98
98
  "type-check": "tsc --noEmit",