@rovula/ui 0.0.72 → 0.0.73

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.
@@ -298,3 +298,9 @@ export declare const Diabled: {
298
298
  };
299
299
  render: (args: {}) => import("react/jsx-runtime").JSX.Element;
300
300
  };
301
+ export declare const Horizontal: {
302
+ args: {
303
+ disabled: boolean;
304
+ };
305
+ render: (args: {}) => import("react/jsx-runtime").JSX.Element;
306
+ };
@@ -34,6 +34,7 @@ export * from "./components/Toast/Toaster";
34
34
  export * from "./components/Toast/useToast";
35
35
  export * from "./components/Tree";
36
36
  export * from "./components/FocusedScrollView/FocusedScrollView";
37
+ export * from "./components/RadioGroup/RadioGroup";
37
38
  export type { ButtonProps } from "./components/Button/Button";
38
39
  export type { InputProps } from "./components/TextInput/TextInput";
39
40
  export type { DropdownProps, Options } from "./components/Dropdown/Dropdown";
@@ -1,11 +1,11 @@
1
1
  import { cva } from "class-variance-authority";
2
2
  export const labelVariant = cva([
3
- "block duration-450 transition-all px-[2px] text-input-text peer-focus:text-input-text-active",
3
+ "block cursor-pointer duration-450 transition-all px-[2px] text-foreground peer-focus:text-input-text-active",
4
4
  ], {
5
5
  variants: {
6
6
  size: {
7
7
  sm: "typography-small1",
8
- md: "typography-subtitile4",
8
+ md: "typography-subtitile2",
9
9
  lg: "typography-subtitile1",
10
10
  },
11
11
  disabled: {
@@ -31,3 +31,12 @@ export const Diabled = {
31
31
  return (_jsx("div", { className: "flex items-center space-x-2", children: _jsxs(RadioGroup, { defaultValue: "option-one", disabled: true, children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(RadioGroupItem, { value: "option-one", id: "option-one" }), _jsx(Label, { htmlFor: "option-one", children: "Option One" })] }), _jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(RadioGroupItem, { value: "option-two", id: "option-two" }), _jsx(Label, { htmlFor: "option-two", children: "Option Two" })] })] }) }));
32
32
  },
33
33
  };
34
+ export const Horizontal = {
35
+ args: {
36
+ disabled: true,
37
+ },
38
+ render: (args) => {
39
+ const props = Object.assign({}, args);
40
+ return (_jsxs(RadioGroup, { defaultValue: "option1", className: "flex flex-row space-x-4", children: [_jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(RadioGroupItem, { value: "option1", id: "option1" }), _jsx(Label, { htmlFor: "option1", children: "Option 1" })] }), _jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(RadioGroupItem, { value: "option2", id: "option2" }), _jsx(Label, { htmlFor: "option2", children: "Option 2" })] }), _jsxs("div", { className: "flex items-center space-x-2", children: [_jsx(RadioGroupItem, { value: "option3", id: "option3" }), _jsx(Label, { htmlFor: "option3", children: "Option 3" })] })] }));
41
+ },
42
+ };
@@ -123,7 +123,7 @@ export const TextInput = forwardRef((_a, ref) => {
123
123
  ]);
124
124
  return (_jsxs("div", { className: `inline-flex flex-col ${fullwidth ? "w-full" : ""}`, children: [_jsxs("div", { className: "relative", children: [hasSearchIcon && !hasLeftSectionIcon && (_jsx("div", { className: iconSearchWrapperClassname, children: _jsx(MagnifyingGlassIcon, { className: iconClassname }) })), _jsx("input", Object.assign({}, props, { placeholder: " ", ref: inputRef, type: type, id: _id, disabled: disabled, className: cn(inputClassname, props.className) })), startIconElement, hasClearIcon && !hasRightSectionIcon && (_jsx("div", { className: iconWrapperClassname, style: {
125
125
  display: keepCloseIconOnValue && props.value ? "flex" : undefined,
126
- }, children: _jsx(XCircleIcon, { type: "button", className: iconClassname, onMouseDown: handleClearInput }) })), endIconElement, _jsxs("label", { htmlFor: _id, className: cn(labelClassname, labelClassName), children: [label, " ", required && (_jsx("span", { className: cn("text-error", {
126
+ }, children: _jsx(XCircleIcon, { type: "button", className: iconClassname, onMouseDown: handleClearInput }) })), endIconElement, _jsxs("label", { htmlFor: _id, className: cn(labelClassname), children: [label, " ", required && (_jsx("span", { className: cn("text-error", {
127
127
  "text-input-disable-text": disabled,
128
128
  }), children: "*" }))] })] }), (errorMessage || helperText) && (_jsxs("span", { className: helperTextClassname, children: [_jsx("span", { className: "h-full", children: _jsx(ExclamationCircleIcon, { width: 16, height: 16, className: error ? "fill-error" : "" }) }), errorMessage || helperText] }))] }));
129
129
  });
@@ -1159,6 +1159,11 @@ input[type=number] {
1159
1159
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
1160
1160
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
1161
1161
  }
1162
+ .space-x-4 > :not([hidden]) ~ :not([hidden]){
1163
+ --tw-space-x-reverse: 0;
1164
+ margin-right: calc(1rem * var(--tw-space-x-reverse));
1165
+ margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
1166
+ }
1162
1167
  .space-y-2 > :not([hidden]) ~ :not([hidden]){
1163
1168
  --tw-space-y-reverse: 0;
1164
1169
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));