@ikatec/nebula-react 1.1.0-beta.2 → 1.3.0-beta.1

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
@@ -3044,7 +3044,10 @@ function AccordionTitle({
3044
3044
  "h2",
3045
3045
  {
3046
3046
  ...props,
3047
- className: cn("text-start font-semibold text-xl leading-none", className)
3047
+ className: cn(
3048
+ "text-start !text-accordion-text-title font-semibold text-xl leading-none",
3049
+ className
3050
+ )
3048
3051
  }
3049
3052
  );
3050
3053
  }
@@ -3579,7 +3582,7 @@ function InputPhone({
3579
3582
  RPNInput__namespace.default,
3580
3583
  {
3581
3584
  className: cn(
3582
- "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",
3583
3586
  { "bg-inputText-background-disabled": disabled },
3584
3587
  {
3585
3588
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -6053,7 +6056,9 @@ var ProfileImage = ({
6053
6056
  onRemove,
6054
6057
  image,
6055
6058
  cropperProps,
6056
- onChange
6059
+ onChange,
6060
+ size: size4 = "sm",
6061
+ icon
6057
6062
  }) => {
6058
6063
  const maxSize = maxSizeMB * 1024 * 1024;
6059
6064
  const id = React8.useId();
@@ -6163,7 +6168,11 @@ var ProfileImage = ({
6163
6168
  /* @__PURE__ */ jsxRuntime.jsxs(
6164
6169
  "div",
6165
6170
  {
6166
- 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
+ ),
6167
6176
  "aria-hidden": "true",
6168
6177
  children: [
6169
6178
  profileImagePreview && /* @__PURE__ */ jsxRuntime.jsx(
@@ -6174,7 +6183,7 @@ var ProfileImage = ({
6174
6183
  className: "nebula-ds rounded-[inherit] object-cover h-full w-full"
6175
6184
  }
6176
6185
  ),
6177
- !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, {}) })
6178
6187
  ]
6179
6188
  }
6180
6189
  ),
package/dist/index.mjs CHANGED
@@ -3002,7 +3002,10 @@ function AccordionTitle({
3002
3002
  "h2",
3003
3003
  {
3004
3004
  ...props,
3005
- className: cn("text-start font-semibold text-xl leading-none", className)
3005
+ className: cn(
3006
+ "text-start !text-accordion-text-title font-semibold text-xl leading-none",
3007
+ className
3008
+ )
3006
3009
  }
3007
3010
  );
3008
3011
  }
@@ -3537,7 +3540,7 @@ function InputPhone({
3537
3540
  RPNInput.default,
3538
3541
  {
3539
3542
  className: cn(
3540
- "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",
3541
3544
  { "bg-inputText-background-disabled": disabled },
3542
3545
  {
3543
3546
  "text-inputText-icon-danger border-inputText-border-danger focus-within:border-inputText-border-danger focus-within:ring-button-danger-border-focus": isError
@@ -6011,7 +6014,9 @@ var ProfileImage = ({
6011
6014
  onRemove,
6012
6015
  image,
6013
6016
  cropperProps,
6014
- onChange
6017
+ onChange,
6018
+ size: size4 = "sm",
6019
+ icon
6015
6020
  }) => {
6016
6021
  const maxSize = maxSizeMB * 1024 * 1024;
6017
6022
  const id = useId();
@@ -6121,7 +6126,11 @@ var ProfileImage = ({
6121
6126
  /* @__PURE__ */ jsxs(
6122
6127
  "div",
6123
6128
  {
6124
- 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
+ ),
6125
6134
  "aria-hidden": "true",
6126
6135
  children: [
6127
6136
  profileImagePreview && /* @__PURE__ */ jsx(
@@ -6132,7 +6141,7 @@ var ProfileImage = ({
6132
6141
  className: "nebula-ds rounded-[inherit] object-cover h-full w-full"
6133
6142
  }
6134
6143
  ),
6135
- !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, {}) })
6136
6145
  ]
6137
6146
  }
6138
6147
  ),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ikatec/nebula-react",
3
- "version": "1.1.0-beta.2",
4
- "description": "React components",
3
+ "version": "1.3.0-beta.1",
4
+ "description": "React components for Nebula Design System",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -30,7 +30,7 @@
30
30
  "@babel/preset-react": "^7.26.3",
31
31
  "@babel/preset-typescript": "^7.27.0",
32
32
  "@ikatec/eslint-config": "*",
33
- "@ikatec/nebula-tokens": "1.1.0-beta.1",
33
+ "@ikatec/nebula-tokens": "1.2.0",
34
34
  "@ikatec/typescript-config": "*",
35
35
  "ts-node": "^10.9.2",
36
36
  "tsup": "^8.3.5",