@bubo-squared/ui-framework 0.1.77 → 0.1.91

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
@@ -130,8 +130,8 @@ var buttonTextVariants = (0, import_class_variance_authority.cva)("flex text-cen
130
130
  size: {
131
131
  sm: ["text-xl", "leading-7"],
132
132
  md: ["text-2xl", "leading-8"],
133
- lg: ["h-10", "text-3xl", "leading-9"],
134
- xl: ["h-11", "text-4xl", "leading-10"]
133
+ lg: ["text-3xl", "leading-9"],
134
+ xl: ["text-4xl", "leading-11"]
135
135
  }
136
136
  }
137
137
  });
@@ -601,7 +601,7 @@ var React8 = __toESM(require("react"), 1);
601
601
  var import_class_variance_authority8 = require("class-variance-authority");
602
602
  var import_jsx_runtime10 = require("react/jsx-runtime");
603
603
  var badgeDigitVariants = (0, import_class_variance_authority8.cva)(
604
- "inline-flex items-center justify-center leading-none whitespace-nowrap text-(--text-primary-inverse)",
604
+ "inline-flex items-center justify-center leading-none whitespace-nowrap text-(--color-b-white)",
605
605
  {
606
606
  variants: {
607
607
  size: {
@@ -1972,7 +1972,7 @@ var FlagComponent = ({ country, countryName }) => {
1972
1972
  var React27 = __toESM(require("react"), 1);
1973
1973
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
1974
1974
  var import_jsx_runtime29 = require("react/jsx-runtime");
1975
- var wrapperBase = "flex flex-col gap-2 items-start min-w-[343px]";
1975
+ var wrapperBase = "flex flex-col gap-2 items-start";
1976
1976
  var RadioGroup = ({
1977
1977
  label,
1978
1978
  hint,
@@ -2045,7 +2045,7 @@ var RadioGroup = ({
2045
2045
  "group-data-[state=unchecked]:group-hover:border-(--border-secondary-hover)",
2046
2046
  // 4: enabled, checked, hovered, unfocused
2047
2047
  "group-data-[state=checked]:group-hover:border-(--border-brand-hover)",
2048
- "group-data-[state=checked]:group-hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--color-b-100)]",
2048
+ "group-data-[state=checked]:group-hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
2049
2049
  // 5: enabled, unchecked, focused (override 1/3)
2050
2050
  "group-data-[state=unchecked]:group-focus-visible:border-(--border-secondary-hover)",
2051
2051
  // 6: enabled, checked, focused (override 2/4)
@@ -2557,11 +2557,12 @@ Slider.displayName = "Slider";
2557
2557
  var React30 = __toESM(require("react"), 1);
2558
2558
  var import_icons10 = require("@bubo-squared/icons");
2559
2559
  var import_jsx_runtime32 = require("react/jsx-runtime");
2560
- var wrapperBase3 = "flex flex-col gap-2 items-start min-w-[343px]";
2560
+ var wrapperBase3 = "flex flex-col gap-2 items-start w-full";
2561
2561
  var TextArea = (props) => {
2562
2562
  const {
2563
2563
  label,
2564
2564
  hint,
2565
+ hideHint,
2565
2566
  status = "default",
2566
2567
  type = "responsive",
2567
2568
  maxLength,
@@ -2726,7 +2727,7 @@ var TextArea = (props) => {
2726
2727
  ]
2727
2728
  }
2728
2729
  ) }),
2729
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2730
+ hint && !hideHint && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2730
2731
  "p",
2731
2732
  {
2732
2733
  id: hint ? hintId : void 0,
@@ -3193,8 +3194,14 @@ Breadcrumb.displayName = "Breadcrumb";
3193
3194
 
3194
3195
  // src/components/Logo/LogoIcon.tsx
3195
3196
  var import_class_variance_authority20 = require("class-variance-authority");
3196
- var import_icons12 = require("@bubo-squared/icons");
3197
3197
  var import_jsx_runtime38 = require("react/jsx-runtime");
3198
+ var LogoIconSvg = (props) => /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
3199
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M83.7156 3.88535C78.5352 -1.29512 70.136 -1.29512 64.9555 3.88535L43.9999 24.8409L43.9995 24.8405L62.3536 6.48637C52.2379 16.5949 35.8584 16.6179 25.7142 6.55523L23.4434 4.28438C18.2629 -0.896082 9.86373 -0.89608 4.68327 4.28438C-0.497191 9.46484 -0.49719 17.864 4.68327 23.0445L6.88526 25.2465C17.0191 35.3875 17.0168 51.8235 6.87859 61.9618L25.2395 43.6008L25.2398 43.601L3.88534 64.9555C-1.29512 70.136 -1.29511 78.5351 3.88535 83.7156C9.06581 88.8961 17.465 88.8961 22.6455 83.7156L25.6458 80.7151L25.6864 80.6747C35.7981 70.6137 52.1313 70.597 62.2636 80.6248L65.7534 84.1146C70.9339 89.2951 79.3331 89.2951 84.5135 84.1146C89.694 78.9342 89.694 70.535 84.5135 65.3545L62.76 43.601L62.7602 43.6009L81.1144 61.9552C70.9806 51.8142 70.9829 35.3782 81.1211 25.24L83.7156 22.6455C88.8961 17.465 88.8961 9.06581 83.7156 3.88535Z", fill: "#1685FF" }),
3200
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M44.0667 50.4863C44.1213 50.4317 44.21 50.4317 44.2646 50.4863L48.6465 54.8682C48.6942 54.9158 48.7011 54.9907 48.663 55.0463L44.2812 61.4453C44.2256 61.5265 44.1057 61.5265 44.0501 61.4453L39.6683 55.0463C39.6302 54.9907 39.6371 54.9158 39.6848 54.8682L44.0667 50.4863Z", fill: "white" }),
3201
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44.107 45.3938C44.0536 45.289 43.9013 45.289 43.8479 45.3938C41.8622 49.293 37.8104 51.9638 33.1347 51.9638C26.4991 51.9638 21.1199 46.5846 21.1199 39.9489C21.1199 33.3133 26.4991 27.9341 33.1347 27.9341C37.8104 27.9341 41.8622 30.6049 43.8479 34.5041C43.9013 34.6089 44.0536 34.6089 44.107 34.5041C46.0926 30.6049 50.1445 27.9341 54.8201 27.9341C61.4558 27.9341 66.835 33.3133 66.835 39.9489C66.835 46.5846 61.4558 51.9638 54.8201 51.9638C50.1445 51.9638 46.0926 49.293 44.107 45.3938Z", fill: "white" }),
3202
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M60.1113 40.0006C60.1113 43.052 57.6377 45.5256 54.5863 45.5256C51.535 45.5256 49.0614 43.052 49.0614 40.0006C49.0614 36.9493 51.535 34.4757 54.5863 34.4757C57.6377 34.4757 60.1113 36.9493 60.1113 40.0006Z", fill: "#1685FF" }),
3203
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("path", { d: "M38.8954 40.0006C38.8954 43.052 36.4218 45.5256 33.3705 45.5256C30.3192 45.5256 27.8456 43.052 27.8456 40.0006C27.8456 36.9493 30.3192 34.4757 33.3705 34.4757C36.4218 34.4757 38.8954 36.9493 38.8954 40.0006Z", fill: "#1685FF" })
3204
+ ] });
3198
3205
  var logoIconVariants = (0, import_class_variance_authority20.cva)(
3199
3206
  "relative bg-linear-to-t from-gray-800 to-gray-950 overflow-hidden flex justify-center items-center",
3200
3207
  {
@@ -3220,14 +3227,27 @@ var logoIconSizeClass = {
3220
3227
  xl: "size-96"
3221
3228
  };
3222
3229
  var LogoIcon = ({ className, size = "md" }) => {
3223
- const IconComponent = size === "xl" ? import_icons12.LogoIconLIcon : import_icons12.LogoIconMIcon;
3224
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: cn(logoIconVariants({ size }), className), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(IconComponent, { className: logoIconSizeClass[size] }) });
3230
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: cn(logoIconVariants({ size }), className), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(LogoIconSvg, { className: logoIconSizeClass[size] }) });
3225
3231
  };
3226
3232
 
3227
3233
  // src/components/Logo/Logo.tsx
3228
3234
  var import_class_variance_authority21 = require("class-variance-authority");
3229
- var import_icons13 = require("@bubo-squared/icons");
3230
3235
  var import_jsx_runtime39 = require("react/jsx-runtime");
3236
+ var LogoIconSvg2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("svg", { width: "89", height: "88", viewBox: "0 0 89 88", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
3237
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M83.7156 3.88535C78.5352 -1.29512 70.136 -1.29512 64.9555 3.88535L43.9999 24.8409L43.9995 24.8405L62.3536 6.48637C52.2379 16.5949 35.8584 16.6179 25.7142 6.55523L23.4434 4.28438C18.2629 -0.896082 9.86373 -0.89608 4.68327 4.28438C-0.497191 9.46484 -0.49719 17.864 4.68327 23.0445L6.88526 25.2465C17.0191 35.3875 17.0168 51.8235 6.87859 61.9618L25.2395 43.6008L25.2398 43.601L3.88534 64.9555C-1.29512 70.136 -1.29511 78.5351 3.88535 83.7156C9.06581 88.8961 17.465 88.8961 22.6455 83.7156L25.6458 80.7151L25.6864 80.6747C35.7981 70.6137 52.1313 70.597 62.2636 80.6248L65.7534 84.1146C70.9339 89.2951 79.3331 89.2951 84.5135 84.1146C89.694 78.9342 89.694 70.535 84.5135 65.3545L62.76 43.601L62.7602 43.6009L81.1144 61.9552C70.9806 51.8142 70.9829 35.3782 81.1211 25.24L83.7156 22.6455C88.8961 17.465 88.8961 9.06581 83.7156 3.88535Z", fill: "#1685FF" }),
3238
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M44.0667 50.4863C44.1213 50.4317 44.21 50.4317 44.2646 50.4863L48.6465 54.8682C48.6942 54.9158 48.7011 54.9907 48.663 55.0463L44.2812 61.4453C44.2256 61.5265 44.1057 61.5265 44.0501 61.4453L39.6683 55.0463C39.6302 54.9907 39.6371 54.9158 39.6848 54.8682L44.0667 50.4863Z", fill: "white" }),
3239
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44.107 45.3938C44.0536 45.289 43.9013 45.289 43.8479 45.3938C41.8622 49.293 37.8104 51.9638 33.1347 51.9638C26.4991 51.9638 21.1199 46.5846 21.1199 39.9489C21.1199 33.3133 26.4991 27.9341 33.1347 27.9341C37.8104 27.9341 41.8622 30.6049 43.8479 34.5041C43.9013 34.6089 44.0536 34.6089 44.107 34.5041C46.0926 30.6049 50.1445 27.9341 54.8201 27.9341C61.4558 27.9341 66.835 33.3133 66.835 39.9489C66.835 46.5846 61.4558 51.9638 54.8201 51.9638C50.1445 51.9638 46.0926 49.293 44.107 45.3938Z", fill: "white" }),
3240
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M60.1113 40.0006C60.1113 43.052 57.6377 45.5256 54.5863 45.5256C51.535 45.5256 49.0614 43.052 49.0614 40.0006C49.0614 36.9493 51.535 34.4757 54.5863 34.4757C57.6377 34.4757 60.1113 36.9493 60.1113 40.0006Z", fill: "#1685FF" }),
3241
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M38.8954 40.0006C38.8954 43.052 36.4218 45.5256 33.3705 45.5256C30.3192 45.5256 27.8456 43.052 27.8456 40.0006C27.8456 36.9493 30.3192 34.4757 33.3705 34.4757C36.4218 34.4757 38.8954 36.9493 38.8954 40.0006Z", fill: "#1685FF" })
3242
+ ] });
3243
+ var LogoTextSvg = (props) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("svg", { width: "111", height: "32", viewBox: "0 0 111 32", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
3244
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M72.7324 20.9658C72.7324 14.4559 77.4246 9.9751 83.8922 9.9751C90.3598 9.9751 95.052 14.4559 95.052 20.9658C95.052 27.4757 90.3598 31.9565 83.8922 31.9565C77.4246 31.9565 72.7324 27.4757 72.7324 20.9658ZM77.8896 20.9658C77.8896 24.7703 80.3414 27.3489 83.8922 27.3489C87.4431 27.3489 89.8948 24.7703 89.8948 20.9658C89.8948 17.1613 87.4431 14.5827 83.8922 14.5827C80.3414 14.5827 77.8896 17.1613 77.8896 20.9658Z", fill: "currentColor" }),
3245
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M53.4056 31.4503H48.6289V0H53.7861V13.6116C55.1388 11.2866 57.9287 9.89163 61.0991 9.89163C67.0595 9.89163 70.6949 14.5415 70.6949 21.136C70.6949 27.5613 66.7636 31.9998 60.761 31.9998C57.6328 31.9998 54.9697 30.6049 53.7438 28.1954L53.4056 31.4503ZM53.8284 20.9246C53.8284 24.6868 56.1533 27.2654 59.7042 27.2654C63.3395 27.2654 65.4954 24.6445 65.4954 20.9246C65.4954 17.2047 63.3395 14.5415 59.7042 14.5415C56.1533 14.5415 53.8284 17.1624 53.8284 20.9246Z", fill: "currentColor" }),
3246
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M38.9929 10.5681H44.15V31.4504H39.3733L38.9929 28.6605C37.7247 30.6473 35.0193 32 32.2293 32C27.4103 32 24.5781 28.745 24.5781 23.6301V10.5681H29.7353V21.8124C29.7353 25.786 31.2994 27.3923 34.1739 27.3923C37.4288 27.3923 38.9929 25.4901 38.9929 21.5165V10.5681Z", fill: "currentColor" }),
3247
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M4.77673 31.4503H0V0H5.15718V13.6116C6.50988 11.2866 9.29983 9.89163 12.4702 9.89163C18.4306 9.89163 22.066 14.5415 22.066 21.136C22.066 27.5613 18.1347 31.9998 12.132 31.9998C9.00392 31.9998 6.34079 30.6049 5.1149 28.1954L4.77673 31.4503ZM5.19945 20.9246C5.19945 24.6868 7.52441 27.2654 11.0752 27.2654C14.7106 27.2654 16.8665 24.6445 16.8665 20.9246C16.8665 17.2047 14.7106 14.5415 11.0752 14.5415C7.52441 14.5415 5.19945 17.1624 5.19945 20.9246Z", fill: "currentColor" }),
3248
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M103.555 0.5C107.084 0.5 109.944 3.36029 109.944 6.88867C109.944 10.4172 107.084 13.2773 103.555 13.2773C100.027 13.2772 97.1667 10.4171 97.1667 6.88867C97.1669 3.36036 100.027 0.500118 103.555 0.5Z", stroke: "currentColor" }),
3249
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("path", { d: "M105.778 9.98355L101.687 10.0001V9.00978L103.578 7.33457C104.19 6.79817 104.445 6.41856 104.445 5.91517C104.445 5.29625 104.159 4.96616 103.647 4.96616C103.113 4.96616 102.803 5.35402 102.803 6.03896H101.556C101.556 4.66908 102.377 3.77783 103.64 3.77783C104.949 3.77783 105.731 4.52879 105.731 5.83265C105.731 6.66613 105.259 7.34282 104.546 7.97825L103.686 8.74571H105.778V9.98355Z", fill: "currentColor" })
3250
+ ] });
3231
3251
  var logoWrapperVariants = (0, import_class_variance_authority21.cva)("inline-flex", {
3232
3252
  variants: {
3233
3253
  variant: {
@@ -3267,13 +3287,8 @@ var logoTextSizeVariants = (0, import_class_variance_authority21.cva)("", {
3267
3287
  var Logo = ({ className, textColor, variant = "inline" }) => {
3268
3288
  const textColorClass = textColor === "light" ? "text-(--color-b-white)" : textColor === "dark" ? "text-(--color-b-black)" : "text-(--text-primary)";
3269
3289
  return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn(logoWrapperVariants({ variant }), className), children: [
3270
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons13.LogoIconMIcon, { className: logoIconSizeVariants({ variant }) }),
3271
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3272
- import_icons13.LogoTextMIcon,
3273
- {
3274
- className: cn(logoTextSizeVariants({ variant }), textColorClass)
3275
- }
3276
- )
3290
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoIconSvg2, { className: logoIconSizeVariants({ variant }) }),
3291
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(LogoTextSvg, { className: cn(logoTextSizeVariants({ variant }), textColorClass) })
3277
3292
  ] });
3278
3293
  };
3279
3294
  // Annotate the CommonJS export names for ESM import in node: