@ikatec/nebula-react 1.2.0 → 1.3.0-beta.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/dist/index.js CHANGED
@@ -165,7 +165,7 @@ var buttonVariantEnum = /* @__PURE__ */ ((buttonVariantEnum2) => {
165
165
  })(buttonVariantEnum || {});
166
166
  var buttonSizeEnum = /* @__PURE__ */ ((buttonSizeEnum2) => {
167
167
  buttonSizeEnum2["xs"] = "h-6 px-2 [&>svg]:size-3 text-sm";
168
- buttonSizeEnum2["sm"] = "h-8 px-2 [&>svg]:size-3 text-sm";
168
+ buttonSizeEnum2["sm"] = "h-8 px-2 [&>svg]:size-4 text-sm";
169
169
  buttonSizeEnum2["md"] = "h-10 px-4 [&>svg]:size-4 text-base";
170
170
  buttonSizeEnum2["lg"] = "h-12 px-6 [&>svg]:size-5 text-xl";
171
171
  return buttonSizeEnum2;
@@ -178,7 +178,7 @@ var variant = {
178
178
  };
179
179
  var size = {
180
180
  xs: "h-6 px-2 [&>svg]:size-3 text-sm" /* xs */,
181
- sm: "h-8 px-2 [&>svg]:size-3 text-sm" /* sm */,
181
+ sm: "h-8 px-2 [&>svg]:size-4 text-sm" /* sm */,
182
182
  md: "h-10 px-4 [&>svg]:size-4 text-base" /* md */,
183
183
  lg: "h-12 px-6 [&>svg]:size-5 text-xl" /* lg */
184
184
  };
@@ -3582,7 +3582,7 @@ function InputPhone({
3582
3582
  RPNInput__namespace.default,
3583
3583
  {
3584
3584
  className: cn(
3585
- "flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3585
+ "overflow-hidden flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3586
3586
  { "bg-inputText-background-disabled": disabled },
3587
3587
  {
3588
3588
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -6056,7 +6056,9 @@ var ProfileImage = ({
6056
6056
  onRemove,
6057
6057
  image,
6058
6058
  cropperProps,
6059
- onChange
6059
+ onChange,
6060
+ size: size4 = "sm",
6061
+ icon
6060
6062
  }) => {
6061
6063
  const maxSize = maxSizeMB * 1024 * 1024;
6062
6064
  const id = React8.useId();
@@ -6166,7 +6168,11 @@ var ProfileImage = ({
6166
6168
  /* @__PURE__ */ jsxRuntime.jsxs(
6167
6169
  "div",
6168
6170
  {
6169
- className: "nebula-ds flex size-12 shrink-0 items-center justify-center rounded-full",
6171
+ className: cn(
6172
+ "flex shrink-0 items-center justify-center rounded-full",
6173
+ size4 === "sm" && "size-12",
6174
+ size4 === "md" && "size-16"
6175
+ ),
6170
6176
  "aria-hidden": "true",
6171
6177
  children: [
6172
6178
  profileImagePreview && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6177,7 +6183,7 @@ var ProfileImage = ({
6177
6183
  className: "nebula-ds rounded-[inherit] object-cover h-full w-full"
6178
6184
  }
6179
6185
  ),
6180
- !file && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserIcon, { className: "nebula-ds size-4 opacity-60 text-fileUpload-icon" })
6186
+ !file && /* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slot, { className: "nebula-ds size-4 opacity-60 text-fileUpload-icon", children: icon || /* @__PURE__ */ jsxRuntime.jsx(lucideReact.UserIcon, {}) })
6181
6187
  ]
6182
6188
  }
6183
6189
  ),
package/dist/index.mjs CHANGED
@@ -123,7 +123,7 @@ var buttonVariantEnum = /* @__PURE__ */ ((buttonVariantEnum2) => {
123
123
  })(buttonVariantEnum || {});
124
124
  var buttonSizeEnum = /* @__PURE__ */ ((buttonSizeEnum2) => {
125
125
  buttonSizeEnum2["xs"] = "h-6 px-2 [&>svg]:size-3 text-sm";
126
- buttonSizeEnum2["sm"] = "h-8 px-2 [&>svg]:size-3 text-sm";
126
+ buttonSizeEnum2["sm"] = "h-8 px-2 [&>svg]:size-4 text-sm";
127
127
  buttonSizeEnum2["md"] = "h-10 px-4 [&>svg]:size-4 text-base";
128
128
  buttonSizeEnum2["lg"] = "h-12 px-6 [&>svg]:size-5 text-xl";
129
129
  return buttonSizeEnum2;
@@ -136,7 +136,7 @@ var variant = {
136
136
  };
137
137
  var size = {
138
138
  xs: "h-6 px-2 [&>svg]:size-3 text-sm" /* xs */,
139
- sm: "h-8 px-2 [&>svg]:size-3 text-sm" /* sm */,
139
+ sm: "h-8 px-2 [&>svg]:size-4 text-sm" /* sm */,
140
140
  md: "h-10 px-4 [&>svg]:size-4 text-base" /* md */,
141
141
  lg: "h-12 px-6 [&>svg]:size-5 text-xl" /* lg */
142
142
  };
@@ -3540,7 +3540,7 @@ function InputPhone({
3540
3540
  RPNInput.default,
3541
3541
  {
3542
3542
  className: cn(
3543
- "flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3543
+ "overflow-hidden flex w-full h-10 bg-inputText-background-default rounded-input border border-inputText-border-default focus-within:ring-[3px] focus-within:ring-inputText-border-focus focus-within:border-inputText-border-focus",
3544
3544
  { "bg-inputText-background-disabled": disabled },
3545
3545
  {
3546
3546
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -6014,7 +6014,9 @@ var ProfileImage = ({
6014
6014
  onRemove,
6015
6015
  image,
6016
6016
  cropperProps,
6017
- onChange
6017
+ onChange,
6018
+ size: size4 = "sm",
6019
+ icon
6018
6020
  }) => {
6019
6021
  const maxSize = maxSizeMB * 1024 * 1024;
6020
6022
  const id = useId();
@@ -6124,7 +6126,11 @@ var ProfileImage = ({
6124
6126
  /* @__PURE__ */ jsxs(
6125
6127
  "div",
6126
6128
  {
6127
- className: "nebula-ds flex size-12 shrink-0 items-center justify-center rounded-full",
6129
+ className: cn(
6130
+ "flex shrink-0 items-center justify-center rounded-full",
6131
+ size4 === "sm" && "size-12",
6132
+ size4 === "md" && "size-16"
6133
+ ),
6128
6134
  "aria-hidden": "true",
6129
6135
  children: [
6130
6136
  profileImagePreview && /* @__PURE__ */ jsx(
@@ -6135,7 +6141,7 @@ var ProfileImage = ({
6135
6141
  className: "nebula-ds rounded-[inherit] object-cover h-full w-full"
6136
6142
  }
6137
6143
  ),
6138
- !file && /* @__PURE__ */ jsx(UserIcon, { className: "nebula-ds size-4 opacity-60 text-fileUpload-icon" })
6144
+ !file && /* @__PURE__ */ jsx(Slot, { className: "nebula-ds size-4 opacity-60 text-fileUpload-icon", children: icon || /* @__PURE__ */ jsx(UserIcon, {}) })
6139
6145
  ]
6140
6146
  }
6141
6147
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikatec/nebula-react",
3
- "version": "1.2.0",
3
+ "version": "1.3.0-beta.2",
4
4
  "description": "React components for Nebula Design System",
5
5
  "publishConfig": {
6
6
  "access": "public"
Binary file