@shopito/design-system-fe 0.1.7 → 0.1.8

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
@@ -99,13 +99,13 @@ var C = ({ size: e = "md" }) => /* @__PURE__ */ c("svg", {
99
99
  w.displayName = "IconButton";
100
100
  //#endregion
101
101
  //#region src/components/common/Input/Input.tsx
102
- var T = e(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, fullWidth: a = !1, className: o = "", id: l, ...u }, d) => {
103
- let f = l ?? e?.toLowerCase().replace(/\s+/g, "-");
102
+ var T = e(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, className: a = "", id: o, ...l }, u) => {
103
+ let d = o ?? e?.toLowerCase().replace(/\s+/g, "-");
104
104
  return /* @__PURE__ */ c("div", {
105
- className: a ? "w-full" : "inline-block",
105
+ className: "w-full",
106
106
  children: [
107
107
  e && /* @__PURE__ */ s("label", {
108
- htmlFor: f,
108
+ htmlFor: d,
109
109
  className: "input-label",
110
110
  children: e
111
111
  }),
@@ -117,10 +117,10 @@ var T = e(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, fullWidth:
117
117
  children: r
118
118
  }),
119
119
  /* @__PURE__ */ s("input", {
120
- ref: d,
121
- id: f,
122
- className: (0, x.default)("input", t && "has-error", !!r && "with-left-icon", !!i && "with-right-icon", a && "w-full", o),
123
- ...u
120
+ ref: u,
121
+ id: d,
122
+ className: (0, x.default)("input", t && "has-error", !!r && "with-left-icon", !!i && "with-right-icon", "w-full", a),
123
+ ...l
124
124
  }),
125
125
  i && /* @__PURE__ */ s("span", {
126
126
  className: "right-icon",
@@ -138,23 +138,23 @@ var T = e(({ label: e, error: t, hint: n, leftIcon: r, rightIcon: i, fullWidth:
138
138
  T.displayName = "Input";
139
139
  //#endregion
140
140
  //#region src/components/common/Select/Select.tsx
141
- var E = e(({ label: e, error: t, hint: n, options: r, placeholder: i, fullWidth: a = !0, className: o = "", id: l, ...u }, d) => {
142
- let f = l ?? e?.toLowerCase().replace(/\s+/g, "-");
141
+ var E = e(({ label: e, error: t, hint: n, options: r, placeholder: i, className: a = "", id: o, ...l }, u) => {
142
+ let d = o ?? e?.toLowerCase().replace(/\s+/g, "-");
143
143
  return /* @__PURE__ */ c("div", {
144
- className: (0, x.default)("select-wrapper", a && "w-full"),
144
+ className: (0, x.default)("select-wrapper", "w-full"),
145
145
  children: [
146
146
  e && /* @__PURE__ */ s("label", {
147
- htmlFor: f,
147
+ htmlFor: d,
148
148
  className: "select-label",
149
149
  children: e
150
150
  }),
151
151
  /* @__PURE__ */ c("div", {
152
152
  className: "relative",
153
153
  children: [/* @__PURE__ */ c("select", {
154
- ref: d,
155
- id: f,
156
- className: (0, x.default)("select", t && "has-error", a && "w-full", o),
157
- ...u,
154
+ ref: u,
155
+ id: d,
156
+ className: (0, x.default)("select", "w-full", t && "has-error", a),
157
+ ...l,
158
158
  children: [i && /* @__PURE__ */ s("option", {
159
159
  value: "",
160
160
  disabled: !0,
@@ -796,7 +796,6 @@ function K({ logo: e, searchPlaceholder: t = "Hledat produkty…", onSearch: n,
796
796
  /* @__PURE__ */ s("div", {
797
797
  className: "flex-1 max-w-xl",
798
798
  children: /* @__PURE__ */ s(T, {
799
- fullWidth: !0,
800
799
  placeholder: t,
801
800
  value: y,
802
801
  onChange: (e) => b(e.target.value),