@sikka/hawa 0.13.13-next → 0.13.15-next

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.js CHANGED
@@ -2484,7 +2484,7 @@ var Chip = function(param) {
2484
2484
  var import_react16 = __toESM(require("react"));
2485
2485
  var import_clsx6 = __toESM(require("clsx"));
2486
2486
  var Alert = function(_param) {
2487
- var _param_variant = _param.variant, variant = _param_variant === void 0 ? "normal" : _param_variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_severity = _param.severity, severity = _param_severity === void 0 ? "info" : _param_severity, duration = _param.duration, icon = _param.icon, className = _param.className, props = _object_without_properties(_param, [
2487
+ var _param_variant = _param.variant, variant = _param_variant === void 0 ? "normal" : _param_variant, _param_direction = _param.direction, direction = _param_direction === void 0 ? "ltr" : _param_direction, _param_severity = _param.severity, severity = _param_severity === void 0 ? "none" : _param_severity, duration = _param.duration, icon = _param.icon, className = _param.className, props = _object_without_properties(_param, [
2488
2488
  "variant",
2489
2489
  "direction",
2490
2490
  "severity",
@@ -2540,9 +2540,9 @@ var Alert = function(_param) {
2540
2540
  }, icon), /* @__PURE__ */ import_react16.default.createElement("div", {
2541
2541
  className: "hawa-flex hawa-flex-col"
2542
2542
  }, /* @__PURE__ */ import_react16.default.createElement("span", {
2543
- className: (0, import_clsx6.default)("font-medium", direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
2543
+ className: (0, import_clsx6.default)("hawa-font-bold", direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
2544
2544
  }, props.title), /* @__PURE__ */ import_react16.default.createElement("span", {
2545
- className: (0, import_clsx6.default)(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
2545
+ className: (0, import_clsx6.default)(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8", props.persistant ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]")
2546
2546
  }, props.text), props.actions && /* @__PURE__ */ import_react16.default.createElement("div", {
2547
2547
  className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2"
2548
2548
  }, props.actions.map(function(act, index) {
@@ -2553,9 +2553,9 @@ var Alert = function(_param) {
2553
2553
  }, act.label);
2554
2554
  })))), !props.persistant && /* @__PURE__ */ import_react16.default.createElement("button", {
2555
2555
  type: "button",
2556
- className: (0, import_clsx6.default)("hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900", closeButtonStyle[severity], direction === "rtl" ? "hawa-left-2" : "hawa-right-2"),
2557
2556
  "data-dismiss-target": "#alert-default",
2558
2557
  "aria-label": "Close",
2558
+ className: (0, import_clsx6.default)("hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900", closeButtonStyle[severity], direction === "rtl" ? "hawa-left-2" : "hawa-right-2"),
2559
2559
  onClick: function() {
2560
2560
  setClosed(true);
2561
2561
  setTimeout(function() {
@@ -7126,7 +7126,7 @@ var AppLayout = function(_param) {
7126
7126
  delayDuration: 500,
7127
7127
  content: keepOpen ? ((_props_texts = props.texts) === null || _props_texts === void 0 ? void 0 : _props_texts.collapseSidebar) || "Collapse Sidebar" : ((_props_texts1 = props.texts) === null || _props_texts1 === void 0 ? void 0 : _props_texts1.expandSidebar) || "Expand Sidebar"
7128
7128
  }, /* @__PURE__ */ import_react36.default.createElement(Button, {
7129
- variant: "light",
7129
+ variant: "outline",
7130
7130
  onClick: function() {
7131
7131
  var newKeepOpenState = !keepOpen;
7132
7132
  if (props.onDrawerExpand) {
package/dist/index.mjs CHANGED
@@ -2003,7 +2003,7 @@ import clsx6 from "clsx";
2003
2003
  var Alert = ({
2004
2004
  variant = "normal",
2005
2005
  direction = "ltr",
2006
- severity = "info",
2006
+ severity = "none",
2007
2007
  duration,
2008
2008
  icon,
2009
2009
  className,
@@ -2064,7 +2064,7 @@ var Alert = ({
2064
2064
  "span",
2065
2065
  {
2066
2066
  className: clsx6(
2067
- "font-medium",
2067
+ "hawa-font-bold",
2068
2068
  direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8"
2069
2069
  )
2070
2070
  },
@@ -2072,7 +2072,10 @@ var Alert = ({
2072
2072
  ), /* @__PURE__ */ React25.createElement(
2073
2073
  "span",
2074
2074
  {
2075
- className: clsx6(direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8")
2075
+ className: clsx6(
2076
+ direction === "rtl" ? "hawa-ml-8" : "hawa-mr-8",
2077
+ props.persistant ? "hawa-w-full" : "hawa-w-[calc(100% - 40px)]"
2078
+ )
2076
2079
  },
2077
2080
  props.text
2078
2081
  ), props.actions && /* @__PURE__ */ React25.createElement("div", { className: "hawa-mt-2 hawa-flex hawa-flex-row hawa-gap-2" }, props.actions.map((act, index) => /* @__PURE__ */ React25.createElement(
@@ -2088,13 +2091,13 @@ var Alert = ({
2088
2091
  "button",
2089
2092
  {
2090
2093
  type: "button",
2094
+ "data-dismiss-target": "#alert-default",
2095
+ "aria-label": "Close",
2091
2096
  className: clsx6(
2092
2097
  "hawa-absolute hawa-top-2 hawa-inline-flex hawa-h-9 hawa-w-9 hawa-items-center hawa-justify-center hawa-rounded-inner hawa-p-1.5 hawa-transition-all hover:hawa-text-gray-900",
2093
2098
  closeButtonStyle[severity],
2094
2099
  direction === "rtl" ? "hawa-left-2" : "hawa-right-2"
2095
2100
  ),
2096
- "data-dismiss-target": "#alert-default",
2097
- "aria-label": "Close",
2098
2101
  onClick: () => {
2099
2102
  setClosed(true);
2100
2103
  setTimeout(() => {
@@ -7053,7 +7056,7 @@ var AppLayout = ({
7053
7056
  /* @__PURE__ */ React61.createElement(
7054
7057
  Button,
7055
7058
  {
7056
- variant: "light",
7059
+ variant: "outline",
7057
7060
  onClick: () => {
7058
7061
  const newKeepOpenState = !keepOpen;
7059
7062
  if (props.onDrawerExpand) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.13.13-next",
3
+ "version": "0.13.15-next",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -17,6 +17,7 @@
17
17
  "build": "next build",
18
18
  "start": "next start -p 3032",
19
19
  "lint": "next lint",
20
+ "test": "jest",
20
21
  "storybook": "storybook dev -p 6006",
21
22
  "build-storybook": "storybook build",
22
23
  "build-lib": "tsup components/index.tsx --format cjs,esm --dts",
@@ -65,6 +66,7 @@
65
66
  "zod": "^3.22.3"
66
67
  },
67
68
  "devDependencies": {
69
+ "@babel/preset-react": "^7.22.15",
68
70
  "@storybook/addon-essentials": "^7.5.2",
69
71
  "@storybook/addon-interactions": "^7.5.2",
70
72
  "@storybook/addon-links": "^7.5.2",
@@ -76,8 +78,13 @@
76
78
  "@storybook/react": "^7.5.2",
77
79
  "@storybook/testing-library": "^0.2.2",
78
80
  "@storybook/theming": "^7.5.2",
81
+ "@testing-library/jest-dom": "^6.1.4",
82
+ "@testing-library/react": "^14.0.0",
83
+ "@types/jest": "^29.5.7",
79
84
  "autoprefixer": "^10.4.16",
80
85
  "eslint-plugin-storybook": "^0.6.15",
86
+ "jest": "^29.7.0",
87
+ "jest-environment-jsdom": "^29.7.0",
81
88
  "lucide-react": "^0.290.0",
82
89
  "postcss": "^8.4.31",
83
90
  "postcss-cli": "^10.1.0",