@bubo-squared/ui-framework 0.1.81 → 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 +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -379,15 +379,20 @@ interface SliderProps {
|
|
|
379
379
|
}
|
|
380
380
|
declare const Slider: React$1.FC<SliderProps>;
|
|
381
381
|
|
|
382
|
-
type TextAreaType = "responsive" | "character-limit";
|
|
382
|
+
type TextAreaType = "responsive" | "character-limit" | "plain";
|
|
383
383
|
interface TextAreaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled"> {
|
|
384
384
|
label?: string;
|
|
385
385
|
hint?: string;
|
|
386
|
+
/**
|
|
387
|
+
* If true, the hint will not be rendered even if provided.
|
|
388
|
+
*/
|
|
389
|
+
hideHint?: boolean;
|
|
386
390
|
status?: TextInputStatus;
|
|
387
391
|
/**
|
|
388
392
|
* Visual/behavioural variant.
|
|
389
|
-
* - "responsive": regular textarea.
|
|
393
|
+
* - "responsive": regular textarea with resize handle.
|
|
390
394
|
* - "character-limit": shows character counter, expects maxLength.
|
|
395
|
+
* - "plain": no character limit or resize icon.
|
|
391
396
|
*/
|
|
392
397
|
type?: TextAreaType;
|
|
393
398
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -379,15 +379,20 @@ interface SliderProps {
|
|
|
379
379
|
}
|
|
380
380
|
declare const Slider: React$1.FC<SliderProps>;
|
|
381
381
|
|
|
382
|
-
type TextAreaType = "responsive" | "character-limit";
|
|
382
|
+
type TextAreaType = "responsive" | "character-limit" | "plain";
|
|
383
383
|
interface TextAreaProps extends Omit<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, "disabled"> {
|
|
384
384
|
label?: string;
|
|
385
385
|
hint?: string;
|
|
386
|
+
/**
|
|
387
|
+
* If true, the hint will not be rendered even if provided.
|
|
388
|
+
*/
|
|
389
|
+
hideHint?: boolean;
|
|
386
390
|
status?: TextInputStatus;
|
|
387
391
|
/**
|
|
388
392
|
* Visual/behavioural variant.
|
|
389
|
-
* - "responsive": regular textarea.
|
|
393
|
+
* - "responsive": regular textarea with resize handle.
|
|
390
394
|
* - "character-limit": shows character counter, expects maxLength.
|
|
395
|
+
* - "plain": no character limit or resize icon.
|
|
391
396
|
*/
|
|
392
397
|
type?: TextAreaType;
|
|
393
398
|
/**
|
package/dist/index.js
CHANGED
|
@@ -63,8 +63,8 @@ var buttonTextVariants = cva("flex text-center justify-center font-normal", {
|
|
|
63
63
|
size: {
|
|
64
64
|
sm: ["text-xl", "leading-7"],
|
|
65
65
|
md: ["text-2xl", "leading-8"],
|
|
66
|
-
lg: ["
|
|
67
|
-
xl: ["
|
|
66
|
+
lg: ["text-3xl", "leading-9"],
|
|
67
|
+
xl: ["text-4xl", "leading-11"]
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -534,7 +534,7 @@ import * as React8 from "react";
|
|
|
534
534
|
import { cva as cva8 } from "class-variance-authority";
|
|
535
535
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
536
536
|
var badgeDigitVariants = cva8(
|
|
537
|
-
"inline-flex items-center justify-center leading-none whitespace-nowrap text-(--
|
|
537
|
+
"inline-flex items-center justify-center leading-none whitespace-nowrap text-(--color-b-white)",
|
|
538
538
|
{
|
|
539
539
|
variants: {
|
|
540
540
|
size: {
|
|
@@ -1911,7 +1911,7 @@ var FlagComponent = ({ country, countryName }) => {
|
|
|
1911
1911
|
import * as React27 from "react";
|
|
1912
1912
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
1913
1913
|
import { jsx as jsx29, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1914
|
-
var wrapperBase = "flex flex-col gap-2 items-start
|
|
1914
|
+
var wrapperBase = "flex flex-col gap-2 items-start";
|
|
1915
1915
|
var RadioGroup = ({
|
|
1916
1916
|
label,
|
|
1917
1917
|
hint,
|
|
@@ -1984,7 +1984,7 @@ var RadioGroup = ({
|
|
|
1984
1984
|
"group-data-[state=unchecked]:group-hover:border-(--border-secondary-hover)",
|
|
1985
1985
|
// 4: enabled, checked, hovered, unfocused
|
|
1986
1986
|
"group-data-[state=checked]:group-hover:border-(--border-brand-hover)",
|
|
1987
|
-
"group-data-[state=checked]:group-hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--
|
|
1987
|
+
"group-data-[state=checked]:group-hover:shadow-[0_0_0_var(--focus-ring-spread)_var(--focus-secondary)]",
|
|
1988
1988
|
// 5: enabled, unchecked, focused (override 1/3)
|
|
1989
1989
|
"group-data-[state=unchecked]:group-focus-visible:border-(--border-secondary-hover)",
|
|
1990
1990
|
// 6: enabled, checked, focused (override 2/4)
|
|
@@ -2496,11 +2496,12 @@ Slider.displayName = "Slider";
|
|
|
2496
2496
|
import * as React30 from "react";
|
|
2497
2497
|
import { MaximizeIcon } from "@bubo-squared/icons";
|
|
2498
2498
|
import { jsx as jsx32, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
2499
|
-
var wrapperBase3 = "flex flex-col gap-2 items-start
|
|
2499
|
+
var wrapperBase3 = "flex flex-col gap-2 items-start w-full";
|
|
2500
2500
|
var TextArea = (props) => {
|
|
2501
2501
|
const {
|
|
2502
2502
|
label,
|
|
2503
2503
|
hint,
|
|
2504
|
+
hideHint,
|
|
2504
2505
|
status = "default",
|
|
2505
2506
|
type = "responsive",
|
|
2506
2507
|
maxLength,
|
|
@@ -2665,7 +2666,7 @@ var TextArea = (props) => {
|
|
|
2665
2666
|
]
|
|
2666
2667
|
}
|
|
2667
2668
|
) }),
|
|
2668
|
-
/* @__PURE__ */ jsx32(
|
|
2669
|
+
hint && !hideHint && /* @__PURE__ */ jsx32(
|
|
2669
2670
|
"p",
|
|
2670
2671
|
{
|
|
2671
2672
|
id: hint ? hintId : void 0,
|