@sikka/hawa 0.26.39-next → 0.27.0-next
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/accordion/index.js +1 -1
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +1 -1
- package/dist/accordion/index.mjs.map +1 -1
- package/dist/appLayout/index.js +4 -1
- package/dist/appLayout/index.js.map +1 -1
- package/dist/appLayout/index.mjs +4 -1
- package/dist/appLayout/index.mjs.map +1 -1
- package/dist/appTopbar/index.js +4 -1
- package/dist/appTopbar/index.js.map +1 -1
- package/dist/appTopbar/index.mjs +4 -1
- package/dist/appTopbar/index.mjs.map +1 -1
- package/dist/blocks/auth/index.d.mts +13 -1
- package/dist/blocks/auth/index.d.ts +13 -1
- package/dist/blocks/auth/index.js +6 -3
- package/dist/blocks/auth/index.mjs +6 -3
- package/dist/blocks/feedback/index.d.mts +2 -2
- package/dist/blocks/feedback/index.d.ts +2 -2
- package/dist/blocks/index.d.mts +5 -1
- package/dist/blocks/index.d.ts +5 -1
- package/dist/blocks/index.js +11 -4
- package/dist/blocks/index.mjs +9 -5
- package/dist/blocks/misc/index.d.mts +3 -3
- package/dist/blocks/misc/index.d.ts +3 -3
- package/dist/blocks/misc/index.js +1 -0
- package/dist/blocks/misc/index.mjs +1 -0
- package/dist/{chunk-D3KUSRHL.mjs → chunk-3MC4JLSW.mjs} +4 -1
- package/dist/{chunk-AXTPTA3S.mjs → chunk-BOVZAUWD.mjs} +1 -1
- package/dist/{chunk-VCCUBQFI.mjs → chunk-U7BFMH2T.mjs} +1 -1
- package/dist/codeBlock/index.d.mts +12 -2
- package/dist/codeBlock/index.d.ts +12 -2
- package/dist/codeBlock/index.js +72 -44
- package/dist/codeBlock/index.js.map +1 -1
- package/dist/codeBlock/index.mjs +73 -49
- package/dist/codeBlock/index.mjs.map +1 -1
- package/dist/combobox/index.js.map +1 -1
- package/dist/combobox/index.mjs.map +1 -1
- package/dist/command/index.d.mts +24 -37
- package/dist/command/index.d.ts +24 -37
- package/dist/command/index.js +3 -1
- package/dist/command/index.js.map +1 -1
- package/dist/command/index.mjs +3 -1
- package/dist/command/index.mjs.map +1 -1
- package/dist/dataTable/index.js +4 -1
- package/dist/dataTable/index.js.map +1 -1
- package/dist/dataTable/index.mjs +4 -1
- package/dist/dataTable/index.mjs.map +1 -1
- package/dist/dropdownMenu/index.js +4 -1
- package/dist/dropdownMenu/index.js.map +1 -1
- package/dist/dropdownMenu/index.mjs +4 -1
- package/dist/dropdownMenu/index.mjs.map +1 -1
- package/dist/elements/index.d.mts +36 -39
- package/dist/elements/index.d.ts +36 -39
- package/dist/elements/index.js +77 -46
- package/dist/elements/index.mjs +80 -56
- package/dist/index.css +30 -11
- package/dist/index.d.mts +40 -39
- package/dist/index.d.ts +40 -39
- package/dist/index.js +84 -49
- package/dist/index.mjs +123 -92
- package/dist/layout/index.js +4 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/splitButton/index.js +4 -1
- package/dist/splitButton/index.js.map +1 -1
- package/dist/splitButton/index.mjs +4 -1
- package/dist/splitButton/index.mjs.map +1 -1
- package/package.json +8 -8
- package/README.md +0 -91
package/dist/index.d.ts
CHANGED
@@ -11,6 +11,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
11
11
|
import { RowData, ColumnDef } from '@tanstack/react-table';
|
12
12
|
export { ColumnDef } from '@tanstack/react-table';
|
13
13
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
14
|
+
import { Command as Command$1 } from 'cmdk';
|
14
15
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
15
16
|
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
16
17
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
@@ -673,47 +674,33 @@ declare const Input: React__default.ForwardRefExoticComponent<React__default.Inp
|
|
673
674
|
popupContent?: React__default.ReactNode;
|
674
675
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
675
676
|
|
676
|
-
|
677
|
-
children?: React$1.ReactNode;
|
678
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & {
|
679
|
-
label?: string | undefined;
|
680
|
-
shouldFilter?: boolean | undefined;
|
681
|
-
filter?: ((value: string, search: string) => number) | undefined;
|
682
|
-
value?: string | undefined;
|
683
|
-
onValueChange?: ((value: string) => void) | undefined;
|
684
|
-
loop?: boolean | undefined;
|
685
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
677
|
+
type CommandProps = React$1.ComponentPropsWithoutRef<typeof Command$1>;
|
686
678
|
interface CommandDialogProps extends DialogProps {
|
687
679
|
}
|
680
|
+
interface CommandInputProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Input> {
|
681
|
+
}
|
682
|
+
interface CommandListProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.List> {
|
683
|
+
}
|
684
|
+
interface CommandEmptyProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Empty> {
|
685
|
+
}
|
686
|
+
interface CommandGroupProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Group> {
|
687
|
+
}
|
688
|
+
interface CommandSeparatorProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Separator> {
|
689
|
+
}
|
690
|
+
interface CommandItemProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Item> {
|
691
|
+
}
|
692
|
+
interface CommandShortcutProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
693
|
+
}
|
694
|
+
declare const Command: React$1.ForwardRefExoticComponent<CommandProps & React$1.RefAttributes<React$1.ElementRef<typeof Command$1>>>;
|
688
695
|
declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => React$1.JSX.Element;
|
689
|
-
declare const CommandInput: React$1.ForwardRefExoticComponent<
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
declare const
|
694
|
-
|
695
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
696
|
-
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
697
|
-
children?: React$1.ReactNode;
|
698
|
-
} & React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
699
|
-
declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
|
700
|
-
children?: React$1.ReactNode;
|
701
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "heading" | "value"> & {
|
702
|
-
heading?: React$1.ReactNode;
|
703
|
-
value?: string | undefined;
|
704
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
705
|
-
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement> & {
|
706
|
-
alwaysRender?: boolean | undefined;
|
707
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
708
|
-
declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
|
709
|
-
children?: React$1.ReactNode;
|
710
|
-
} & Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect" | "disabled" | "value"> & {
|
711
|
-
disabled?: boolean | undefined;
|
712
|
-
onSelect?: ((value: string) => void) | undefined;
|
713
|
-
value?: string | undefined;
|
714
|
-
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
696
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<CommandInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
697
|
+
declare const CommandList: React$1.ForwardRefExoticComponent<CommandListProps & React$1.RefAttributes<HTMLDivElement>>;
|
698
|
+
declare const CommandEmpty: React$1.ForwardRefExoticComponent<CommandEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
699
|
+
declare const CommandGroup: React$1.ForwardRefExoticComponent<CommandGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
700
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<CommandSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
701
|
+
declare const CommandItem: React$1.ForwardRefExoticComponent<CommandItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
715
702
|
declare const CommandShortcut: {
|
716
|
-
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
703
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement> & CommandShortcutProps): React$1.JSX.Element;
|
717
704
|
displayName: string;
|
718
705
|
};
|
719
706
|
|
@@ -962,9 +949,19 @@ type CodeBlockTypes = {
|
|
962
949
|
fileName?: string;
|
963
950
|
/** Code content to be displayed within the code block.*/
|
964
951
|
code?: string;
|
952
|
+
/** line numbers for code block */
|
965
953
|
lineNumbers?: boolean;
|
966
|
-
|
967
|
-
|
954
|
+
/** Wrap text in code block */
|
955
|
+
wrapText?: boolean;
|
956
|
+
/** Custom class names for the code block */
|
957
|
+
classNames?: {
|
958
|
+
root?: string;
|
959
|
+
tabs?: string;
|
960
|
+
tab?: string;
|
961
|
+
code?: string;
|
962
|
+
fileName?: string;
|
963
|
+
codeBlockContainer?: string;
|
964
|
+
};
|
968
965
|
};
|
969
966
|
declare const CodeBlock: FC<CodeBlockTypes>;
|
970
967
|
|
@@ -1508,6 +1505,10 @@ type RegisterFormTypes = {
|
|
1508
1505
|
additionalButtons?: any;
|
1509
1506
|
/** To add more custom input fields */
|
1510
1507
|
additionalInputs?: any;
|
1508
|
+
/** To customize the username input field */
|
1509
|
+
usernameOptions: {
|
1510
|
+
label?: LabelProps;
|
1511
|
+
};
|
1511
1512
|
};
|
1512
1513
|
declare const RegisterForm: FC<RegisterFormTypes>;
|
1513
1514
|
|
package/dist/index.js
CHANGED
@@ -856,8 +856,11 @@ var DropdownMenu = ({
|
|
856
856
|
className: cn(
|
857
857
|
className,
|
858
858
|
widthStyles[width],
|
859
|
-
"hawa-flex hawa-flex-col hawa-gap-1"
|
859
|
+
"hawa-flex hawa-flex-col hawa-gap-1 hawa-overflow-y-auto"
|
860
860
|
),
|
861
|
+
style: {
|
862
|
+
maxHeight: "var(--radix-dropdown-menu-content-available-height)"
|
863
|
+
},
|
861
864
|
align,
|
862
865
|
alignOffset
|
863
866
|
},
|
@@ -1134,7 +1137,7 @@ var Accordion = React9.forwardRef(
|
|
1134
1137
|
{
|
1135
1138
|
disabled: item.disabled || false,
|
1136
1139
|
className: cn(
|
1137
|
-
"hawa-transition-all",
|
1140
|
+
"hawa-transition-all hawa-text-start",
|
1138
1141
|
design === "separated" ? "hawa-rounded data-[state=open]:hawa-rounded-b-none" : {
|
1139
1142
|
"hawa-rounded-t": index === 0,
|
1140
1143
|
"data-[state=closed]:hawa-rounded-b": index === items.length - 1
|
@@ -7120,13 +7123,30 @@ function useClipboard({ timeout = 2e3 } = {}) {
|
|
7120
7123
|
// elements/codeBlock/CodeBlock.tsx
|
7121
7124
|
(typeof global !== "undefined" ? global : window).Prism = import_prism_react_renderer.Prism;
|
7122
7125
|
require("prismjs/components/prism-bash");
|
7126
|
+
var CopyIcon = () => /* @__PURE__ */ import_react30.default.createElement(
|
7127
|
+
"svg",
|
7128
|
+
{
|
7129
|
+
"aria-label": "Copy",
|
7130
|
+
stroke: "currentColor",
|
7131
|
+
fill: "none",
|
7132
|
+
strokeWidth: "2",
|
7133
|
+
viewBox: "0 0 24 24",
|
7134
|
+
strokeLinecap: "round",
|
7135
|
+
strokeLinejoin: "round",
|
7136
|
+
height: "1em",
|
7137
|
+
width: "1em"
|
7138
|
+
},
|
7139
|
+
/* @__PURE__ */ import_react30.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7140
|
+
/* @__PURE__ */ import_react30.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7141
|
+
);
|
7123
7142
|
var CodeBlock = ({
|
7124
7143
|
tabs,
|
7125
7144
|
code,
|
7126
7145
|
fileName,
|
7127
|
-
|
7146
|
+
classNames,
|
7128
7147
|
language = "javascript",
|
7129
7148
|
// default to JavaScript if no language is provided
|
7149
|
+
wrapText = false,
|
7130
7150
|
width = "full",
|
7131
7151
|
...props
|
7132
7152
|
}) => {
|
@@ -7144,16 +7164,50 @@ var CodeBlock = ({
|
|
7144
7164
|
{
|
7145
7165
|
className: cn(
|
7146
7166
|
widthStyles[width],
|
7147
|
-
"hawa-w-full hawa-flex-col hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
|
7148
|
-
|
7167
|
+
"hawa-w-full hawa-flex-col hawa-relative hawa-items-center hawa-rounded hawa-bg-background hawa-text-left hawa-my-2 hawa-text-white sm:hawa-text-base",
|
7168
|
+
classNames == null ? void 0 : classNames.root
|
7149
7169
|
)
|
7150
7170
|
},
|
7171
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
7172
|
+
"div",
|
7173
|
+
{
|
7174
|
+
className: cn(
|
7175
|
+
"hawa-flex hawa-absolute hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-z-50 hawa-right-3.5",
|
7176
|
+
{
|
7177
|
+
"hawa-top-3.5": !tabs && !fileName,
|
7178
|
+
"hawa-top-[50px]": tabs && !fileName,
|
7179
|
+
"hawa-top-11": !tabs && fileName,
|
7180
|
+
"hawa-top-[80px]": tabs && fileName
|
7181
|
+
}
|
7182
|
+
)
|
7183
|
+
},
|
7184
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
7185
|
+
Tooltip,
|
7186
|
+
{
|
7187
|
+
open: clipboard.copied,
|
7188
|
+
side: "left",
|
7189
|
+
content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
|
7190
|
+
triggerProps: { asChild: true }
|
7191
|
+
},
|
7192
|
+
/* @__PURE__ */ import_react30.default.createElement(
|
7193
|
+
Button,
|
7194
|
+
{
|
7195
|
+
size: "smallIcon",
|
7196
|
+
onClick: () => clipboard.copy(tabs ? tabs[selectedTab].code : code),
|
7197
|
+
variant: "outline",
|
7198
|
+
className: "hawa-text-gray-200 hawa-opacity-50 "
|
7199
|
+
},
|
7200
|
+
/* @__PURE__ */ import_react30.default.createElement(CopyIcon, null)
|
7201
|
+
)
|
7202
|
+
)
|
7203
|
+
),
|
7151
7204
|
fileName && /* @__PURE__ */ import_react30.default.createElement(
|
7152
7205
|
"div",
|
7153
7206
|
{
|
7154
7207
|
className: cn(
|
7155
7208
|
"hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-2 hawa-py-0.5 hawa-pb-0 hawa-font-mono hawa-text-foreground",
|
7156
|
-
fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15"
|
7209
|
+
fileName && tabs ? "hawa-bg-primary/10" : "hawa-bg-primary/15",
|
7210
|
+
classNames == null ? void 0 : classNames.fileName
|
7157
7211
|
)
|
7158
7212
|
},
|
7159
7213
|
/* @__PURE__ */ import_react30.default.createElement(
|
@@ -7170,9 +7224,9 @@ var CodeBlock = ({
|
|
7170
7224
|
"div",
|
7171
7225
|
{
|
7172
7226
|
className: cn(
|
7173
|
-
// hawa-bg-gray-300 dark:hawa-bg-red-600
|
7174
7227
|
"hawa-flex hawa-flex-row hawa-gap-2 hawa-rounded-t hawa-p-1 hawa-bg-primary/15 hawa-pb-0 hawa-font-mono hawa-text-foreground",
|
7175
|
-
tabs && fileName && "hawa-rounded-t-none"
|
7228
|
+
tabs && fileName && "hawa-rounded-t-none",
|
7229
|
+
classNames == null ? void 0 : classNames.tabs
|
7176
7230
|
)
|
7177
7231
|
},
|
7178
7232
|
tabs.map((tab, i) => /* @__PURE__ */ import_react30.default.createElement(
|
@@ -7180,7 +7234,8 @@ var CodeBlock = ({
|
|
7180
7234
|
{
|
7181
7235
|
key: i,
|
7182
7236
|
className: cn(
|
7183
|
-
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent"
|
7237
|
+
selectedTab === i ? " hawa-border-b-2 hawa-border-primary" : "hawa-bg-transparent",
|
7238
|
+
classNames == null ? void 0 : classNames.tab
|
7184
7239
|
)
|
7185
7240
|
},
|
7186
7241
|
/* @__PURE__ */ import_react30.default.createElement(
|
@@ -7199,8 +7254,10 @@ var CodeBlock = ({
|
|
7199
7254
|
"div",
|
7200
7255
|
{
|
7201
7256
|
className: cn(
|
7202
|
-
"hawa-flex hawa-w-full hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base
|
7203
|
-
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded"
|
7257
|
+
"hawa-flex hawa-w-full hawa-relative hawa-flex-row hawa-items-start hawa-justify-between hawa-border hawa-bg-gray-800 hawa-p-0 hawa-text-left hawa-text-sm sm:hawa-text-base",
|
7258
|
+
tabs || fileName ? "hawa-rounded-b hawa-rounded-t-none" : "hawa-rounded",
|
7259
|
+
classNames == null ? void 0 : classNames.codeBlockContainer,
|
7260
|
+
"hawa-overflow-y-auto"
|
7204
7261
|
)
|
7205
7262
|
},
|
7206
7263
|
/* @__PURE__ */ import_react30.default.createElement(
|
@@ -7210,44 +7267,18 @@ var CodeBlock = ({
|
|
7210
7267
|
code: tabs ? tabs[selectedTab].code : code || "",
|
7211
7268
|
language
|
7212
7269
|
},
|
7213
|
-
({
|
7214
|
-
|
7215
|
-
/* @__PURE__ */ import_react30.default.createElement("div", { className: "hawa-flex hawa-w-fit hawa-flex-row hawa-items-center hawa-gap-2 hawa-p-2" }, /* @__PURE__ */ import_react30.default.createElement(
|
7216
|
-
Tooltip,
|
7217
|
-
{
|
7218
|
-
open: clipboard.copied,
|
7219
|
-
side: "left",
|
7220
|
-
content: /* @__PURE__ */ import_react30.default.createElement("div", null, "Copied!"),
|
7221
|
-
triggerProps: {
|
7222
|
-
asChild: true
|
7223
|
-
}
|
7224
|
-
},
|
7225
|
-
/* @__PURE__ */ import_react30.default.createElement(
|
7226
|
-
Button,
|
7270
|
+
({ tokens, getLineProps, getTokenProps }) => /* @__PURE__ */ import_react30.default.createElement(
|
7271
|
+
"pre",
|
7227
7272
|
{
|
7228
|
-
|
7229
|
-
|
7230
|
-
|
7231
|
-
|
7273
|
+
className: cn(
|
7274
|
+
"hawa-min-h-[37.75px] !hawa-pe-12 hawa-w-full hawa-p-4 hawa-font-mono hawa-text-foreground",
|
7275
|
+
classNames == null ? void 0 : classNames.code,
|
7276
|
+
wrapText && "hawa-text-wrap"
|
7277
|
+
)
|
7232
7278
|
},
|
7233
|
-
/* @__PURE__ */ import_react30.default.createElement(
|
7234
|
-
"svg",
|
7235
|
-
{
|
7236
|
-
"aria-label": "Copy",
|
7237
|
-
stroke: "currentColor",
|
7238
|
-
fill: "none",
|
7239
|
-
strokeWidth: "2",
|
7240
|
-
viewBox: "0 0 24 24",
|
7241
|
-
strokeLinecap: "round",
|
7242
|
-
strokeLinejoin: "round",
|
7243
|
-
height: "1em",
|
7244
|
-
width: "1em"
|
7245
|
-
},
|
7246
|
-
/* @__PURE__ */ import_react30.default.createElement("rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }),
|
7247
|
-
/* @__PURE__ */ import_react30.default.createElement("path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" })
|
7248
|
-
)
|
7279
|
+
tokens.map((line, i) => /* @__PURE__ */ import_react30.default.createElement("div", { key: i, ...getLineProps({ line }) }, props.lineNumbers && /* @__PURE__ */ import_react30.default.createElement("span", { className: "hawa-mr-4" }, i + 1), line.map((token, key) => /* @__PURE__ */ import_react30.default.createElement("span", { key, ...getTokenProps({ token }) }))))
|
7249
7280
|
)
|
7250
|
-
)
|
7281
|
+
)
|
7251
7282
|
)
|
7252
7283
|
);
|
7253
7284
|
};
|
@@ -9624,15 +9655,18 @@ var RegisterForm = ({
|
|
9624
9655
|
control,
|
9625
9656
|
name: "username",
|
9626
9657
|
render: ({ field }) => {
|
9627
|
-
var _a2, _b2, _c2;
|
9658
|
+
var _a2, _b2, _c2, _d2;
|
9628
9659
|
return /* @__PURE__ */ import_react47.default.createElement(
|
9629
9660
|
Input,
|
9630
9661
|
{
|
9631
9662
|
width: "full",
|
9632
9663
|
autoComplete: "username",
|
9633
9664
|
label: (_a2 = texts == null ? void 0 : texts.username) == null ? void 0 : _a2.label,
|
9634
|
-
|
9635
|
-
|
9665
|
+
labelProps: {
|
9666
|
+
...(_b2 = props.usernameOptions) == null ? void 0 : _b2.label
|
9667
|
+
},
|
9668
|
+
helperText: (_c2 = formState.errors.username) == null ? void 0 : _c2.message,
|
9669
|
+
placeholder: (_d2 = texts == null ? void 0 : texts.username) == null ? void 0 : _d2.placeholder,
|
9636
9670
|
...field
|
9637
9671
|
}
|
9638
9672
|
);
|
@@ -10941,6 +10975,7 @@ var ContactForm = ({
|
|
10941
10975
|
placeholder: texts == null ? void 0 : texts.message.placeholder,
|
10942
10976
|
...field
|
10943
10977
|
},
|
10978
|
+
classNames: { textarea: "hawa-min-h-20" },
|
10944
10979
|
helperText: (_a2 = errors.message) == null ? void 0 : _a2.message
|
10945
10980
|
}
|
10946
10981
|
);
|