@postenbring/hedwig-react 4.2.0 → 4.2.2
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/{chunk-J2DJ6ELO.mjs → chunk-62VLFCXX.mjs} +2 -2
- package/dist/{chunk-GIFDGUFW.mjs → chunk-DMRQEQQK.mjs} +2 -2
- package/dist/{chunk-54HLJVAF.mjs → chunk-DOW6EHBI.mjs} +2 -2
- package/dist/{chunk-7REW23LO.mjs → chunk-F23MNQCK.mjs} +4 -8
- package/dist/chunk-F23MNQCK.mjs.map +1 -0
- package/dist/chunk-JGQTAIEP.mjs +67 -0
- package/dist/chunk-JGQTAIEP.mjs.map +1 -0
- package/dist/{chunk-BUFV457A.mjs → chunk-JGYPZ7ET.mjs} +3 -3
- package/dist/{chunk-NMW3IWZ4.mjs → chunk-OQD4GKOS.mjs} +2 -2
- package/dist/{chunk-OHPDYPZ5.mjs → chunk-QER35NXN.mjs} +2 -2
- package/dist/{chunk-4K54KSRB.mjs → chunk-QOIBRXYT.mjs} +2 -2
- package/dist/{chunk-6O5AEAIL.mjs → chunk-RGZSYJFL.mjs} +2 -2
- package/dist/chunk-RJ763KDH.mjs +21 -0
- package/dist/chunk-RJ763KDH.mjs.map +1 -0
- package/dist/{chunk-77UAHNU6.mjs → chunk-VNH7CZJ4.mjs} +2 -2
- package/dist/form/checkbox/checkbox.js +3 -6
- package/dist/form/checkbox/checkbox.js.map +1 -1
- package/dist/form/checkbox/checkbox.mjs +4 -4
- package/dist/form/checkbox/index.js +3 -6
- package/dist/form/checkbox/index.js.map +1 -1
- package/dist/form/checkbox/index.mjs +4 -4
- package/dist/form/date-picker/date-picker.js +3 -6
- package/dist/form/date-picker/date-picker.js.map +1 -1
- package/dist/form/date-picker/date-picker.mjs +4 -4
- package/dist/form/date-picker/index.js +3 -6
- package/dist/form/date-picker/index.js.map +1 -1
- package/dist/form/date-picker/index.mjs +4 -4
- package/dist/form/error-message/error-message.js +3 -6
- package/dist/form/error-message/error-message.js.map +1 -1
- package/dist/form/error-message/error-message.mjs +2 -2
- package/dist/form/error-message/index.js +3 -6
- package/dist/form/error-message/index.js.map +1 -1
- package/dist/form/error-message/index.mjs +2 -2
- package/dist/form/error-summary/error-summary.mjs +1 -1
- package/dist/form/error-summary/index.mjs +1 -1
- package/dist/form/fieldset/fieldset.js +3 -6
- package/dist/form/fieldset/fieldset.js.map +1 -1
- package/dist/form/fieldset/fieldset.mjs +3 -3
- package/dist/form/fieldset/index.js +3 -6
- package/dist/form/fieldset/index.js.map +1 -1
- package/dist/form/fieldset/index.mjs +3 -3
- package/dist/form/index.js +51 -60
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +13 -13
- package/dist/form/input/index.js +3 -6
- package/dist/form/input/index.js.map +1 -1
- package/dist/form/input/index.mjs +4 -4
- package/dist/form/input/input.js +3 -6
- package/dist/form/input/input.js.map +1 -1
- package/dist/form/input/input.mjs +4 -4
- package/dist/form/input-group/index.js +3 -6
- package/dist/form/input-group/index.js.map +1 -1
- package/dist/form/input-group/index.mjs +3 -3
- package/dist/form/input-group/input-group.js +3 -6
- package/dist/form/input-group/input-group.js.map +1 -1
- package/dist/form/input-group/input-group.mjs +3 -3
- package/dist/form/radio-button/index.js +3 -6
- package/dist/form/radio-button/index.js.map +1 -1
- package/dist/form/radio-button/index.mjs +5 -5
- package/dist/form/radio-button/radio-button.js +3 -6
- package/dist/form/radio-button/radio-button.js.map +1 -1
- package/dist/form/radio-button/radio-button.mjs +5 -5
- package/dist/form/radio-button/radio-group.js +3 -6
- package/dist/form/radio-button/radio-group.js.map +1 -1
- package/dist/form/radio-button/radio-group.mjs +4 -4
- package/dist/form/search-wrapper/index.js +6 -17
- package/dist/form/search-wrapper/index.js.map +1 -1
- package/dist/form/search-wrapper/index.mjs +1 -1
- package/dist/form/search-wrapper/search-wrapper.d.ts +2 -5
- package/dist/form/search-wrapper/search-wrapper.d.ts.map +1 -1
- package/dist/form/search-wrapper/search-wrapper.js +6 -17
- package/dist/form/search-wrapper/search-wrapper.js.map +1 -1
- package/dist/form/search-wrapper/search-wrapper.mjs +1 -1
- package/dist/form/select/index.js +45 -46
- package/dist/form/select/index.js.map +1 -1
- package/dist/form/select/index.mjs +4 -4
- package/dist/form/select/select.d.ts.map +1 -1
- package/dist/form/select/select.js +45 -46
- package/dist/form/select/select.js.map +1 -1
- package/dist/form/select/select.mjs +4 -4
- package/dist/form/textarea/index.js +3 -6
- package/dist/form/textarea/index.js.map +1 -1
- package/dist/form/textarea/index.mjs +4 -4
- package/dist/form/textarea/textarea.js +3 -6
- package/dist/form/textarea/textarea.js.map +1 -1
- package/dist/form/textarea/textarea.mjs +4 -4
- package/dist/form/validation-message/index.js +3 -9
- package/dist/form/validation-message/index.js.map +1 -1
- package/dist/form/validation-message/index.mjs +1 -1
- package/dist/form/validation-message/validation-message.d.ts +2 -4
- package/dist/form/validation-message/validation-message.d.ts.map +1 -1
- package/dist/form/validation-message/validation-message.js +3 -9
- package/dist/form/validation-message/validation-message.js.map +1 -1
- package/dist/form/validation-message/validation-message.mjs +1 -1
- package/dist/index.js +51 -60
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -27
- package/package.json +2 -2
- package/src/form/search-wrapper/search-wrapper.tsx +7 -22
- package/src/form/select/select.tsx +21 -21
- package/src/form/validation-message/validation-message.tsx +4 -9
- package/dist/chunk-7REW23LO.mjs.map +0 -1
- package/dist/chunk-D7L7OLFL.mjs +0 -65
- package/dist/chunk-D7L7OLFL.mjs.map +0 -1
- package/dist/chunk-ZIVURWHY.mjs +0 -30
- package/dist/chunk-ZIVURWHY.mjs.map +0 -1
- /package/dist/{chunk-J2DJ6ELO.mjs.map → chunk-62VLFCXX.mjs.map} +0 -0
- /package/dist/{chunk-GIFDGUFW.mjs.map → chunk-DMRQEQQK.mjs.map} +0 -0
- /package/dist/{chunk-54HLJVAF.mjs.map → chunk-DOW6EHBI.mjs.map} +0 -0
- /package/dist/{chunk-BUFV457A.mjs.map → chunk-JGYPZ7ET.mjs.map} +0 -0
- /package/dist/{chunk-NMW3IWZ4.mjs.map → chunk-OQD4GKOS.mjs.map} +0 -0
- /package/dist/{chunk-OHPDYPZ5.mjs.map → chunk-QER35NXN.mjs.map} +0 -0
- /package/dist/{chunk-4K54KSRB.mjs.map → chunk-QOIBRXYT.mjs.map} +0 -0
- /package/dist/{chunk-6O5AEAIL.mjs.map → chunk-RGZSYJFL.mjs.map} +0 -0
- /package/dist/{chunk-77UAHNU6.mjs.map → chunk-VNH7CZJ4.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -31,14 +31,14 @@ import "./chunk-SRLM3K2X.mjs";
|
|
|
31
31
|
import {
|
|
32
32
|
ShowMoreButton
|
|
33
33
|
} from "./chunk-JUHJZLH2.mjs";
|
|
34
|
-
import "./chunk-AJFQHFQT.mjs";
|
|
35
|
-
import {
|
|
36
|
-
Spinner
|
|
37
|
-
} from "./chunk-ZTZAPNZB.mjs";
|
|
38
34
|
import "./chunk-JTZPQHKD.mjs";
|
|
39
35
|
import {
|
|
40
36
|
Skeleton
|
|
41
37
|
} from "./chunk-QTC4ATZD.mjs";
|
|
38
|
+
import "./chunk-AJFQHFQT.mjs";
|
|
39
|
+
import {
|
|
40
|
+
Spinner
|
|
41
|
+
} from "./chunk-ZTZAPNZB.mjs";
|
|
42
42
|
import "./chunk-TJH5QJMS.mjs";
|
|
43
43
|
import {
|
|
44
44
|
StepIndicator
|
|
@@ -91,7 +91,11 @@ import {
|
|
|
91
91
|
} from "./chunk-FUIKSOJF.mjs";
|
|
92
92
|
import "./chunk-7ROE6ADK.mjs";
|
|
93
93
|
import "./chunk-NE6W2PCD.mjs";
|
|
94
|
+
import "./chunk-2YL2MVWN.mjs";
|
|
94
95
|
import "./chunk-K2CB2NLY.mjs";
|
|
96
|
+
import {
|
|
97
|
+
Figure
|
|
98
|
+
} from "./chunk-OE6RISJS.mjs";
|
|
95
99
|
import "./chunk-HQVL3ZJ2.mjs";
|
|
96
100
|
import {
|
|
97
101
|
Footer,
|
|
@@ -100,45 +104,41 @@ import {
|
|
|
100
104
|
FooterLinkSections,
|
|
101
105
|
FooterLogo
|
|
102
106
|
} from "./chunk-QDG2QLFV.mjs";
|
|
103
|
-
import "./chunk-2YL2MVWN.mjs";
|
|
104
|
-
import {
|
|
105
|
-
DescriptionList
|
|
106
|
-
} from "./chunk-C7ZTOZP3.mjs";
|
|
107
107
|
import "./chunk-CVE23PMJ.mjs";
|
|
108
108
|
import "./chunk-AGZHQDCQ.mjs";
|
|
109
109
|
import {
|
|
110
110
|
Textarea
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-OQD4GKOS.mjs";
|
|
112
112
|
import "./chunk-XAFNJELJ.mjs";
|
|
113
113
|
import {
|
|
114
114
|
RadioButton
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-DOW6EHBI.mjs";
|
|
116
116
|
import {
|
|
117
117
|
RadioGroup,
|
|
118
118
|
useRadioGroupContext
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-QER35NXN.mjs";
|
|
120
120
|
import "./chunk-CAIGPMDS.mjs";
|
|
121
121
|
import {
|
|
122
122
|
SearchWrapper
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-RJ763KDH.mjs";
|
|
124
124
|
import "./chunk-BYEJZSG5.mjs";
|
|
125
125
|
import {
|
|
126
126
|
Select
|
|
127
|
-
} from "./chunk-
|
|
127
|
+
} from "./chunk-JGQTAIEP.mjs";
|
|
128
128
|
import "./chunk-KPPLVGZ3.mjs";
|
|
129
129
|
import "./chunk-7LPYJC6S.mjs";
|
|
130
130
|
import {
|
|
131
131
|
Input
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-62VLFCXX.mjs";
|
|
133
133
|
import "./chunk-YJOOSTJC.mjs";
|
|
134
134
|
import {
|
|
135
135
|
Checkbox
|
|
136
|
-
} from "./chunk-
|
|
136
|
+
} from "./chunk-JGYPZ7ET.mjs";
|
|
137
137
|
import "./chunk-CSIXGT7P.mjs";
|
|
138
138
|
import {
|
|
139
139
|
Fieldset,
|
|
140
140
|
useFieldsetContext
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-QOIBRXYT.mjs";
|
|
142
142
|
import {
|
|
143
143
|
FieldsetDescription
|
|
144
144
|
} from "./chunk-D2XZT2RA.mjs";
|
|
@@ -148,26 +148,26 @@ import {
|
|
|
148
148
|
import "./chunk-TDLSHJ4Z.mjs";
|
|
149
149
|
import {
|
|
150
150
|
DatePicker
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-RGZSYJFL.mjs";
|
|
152
152
|
import "./chunk-Y5SUMFYJ.mjs";
|
|
153
|
-
import "./chunk-
|
|
153
|
+
import "./chunk-DMRQEQQK.mjs";
|
|
154
154
|
import "./chunk-NSLSA7F7.mjs";
|
|
155
155
|
import {
|
|
156
156
|
ErrorMessage
|
|
157
|
-
} from "./chunk-
|
|
157
|
+
} from "./chunk-VNH7CZJ4.mjs";
|
|
158
158
|
import "./chunk-5M6MEYM7.mjs";
|
|
159
159
|
import {
|
|
160
160
|
ValidationMessage
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-F23MNQCK.mjs";
|
|
162
162
|
import {
|
|
163
163
|
ErrorSummary
|
|
164
164
|
} from "./chunk-NAXSP4VU.mjs";
|
|
165
165
|
import "./chunk-CKAL5ZJZ.mjs";
|
|
166
|
-
import "./chunk-6QV3OV66.mjs";
|
|
167
166
|
import "./chunk-XLLYMQLW.mjs";
|
|
168
167
|
import {
|
|
169
168
|
Link
|
|
170
169
|
} from "./chunk-QE2ZES72.mjs";
|
|
170
|
+
import "./chunk-6QV3OV66.mjs";
|
|
171
171
|
import {
|
|
172
172
|
LinkList
|
|
173
173
|
} from "./chunk-OS24UCTD.mjs";
|
|
@@ -184,6 +184,10 @@ import "./chunk-HT2EIJAD.mjs";
|
|
|
184
184
|
import {
|
|
185
185
|
Button
|
|
186
186
|
} from "./chunk-45Q2TCH6.mjs";
|
|
187
|
+
import "./chunk-Y6NOEN7R.mjs";
|
|
188
|
+
import {
|
|
189
|
+
ButtonList
|
|
190
|
+
} from "./chunk-ME746XCZ.mjs";
|
|
187
191
|
import "./chunk-ARHJZUZG.mjs";
|
|
188
192
|
import {
|
|
189
193
|
Card,
|
|
@@ -197,13 +201,9 @@ import {
|
|
|
197
201
|
CardMedia,
|
|
198
202
|
CardMediaImg
|
|
199
203
|
} from "./chunk-TTDR3NZL.mjs";
|
|
200
|
-
import "./chunk-Y6NOEN7R.mjs";
|
|
201
204
|
import {
|
|
202
|
-
|
|
203
|
-
} from "./chunk-
|
|
204
|
-
import {
|
|
205
|
-
Figure
|
|
206
|
-
} from "./chunk-OE6RISJS.mjs";
|
|
205
|
+
DescriptionList
|
|
206
|
+
} from "./chunk-C7ZTOZP3.mjs";
|
|
207
207
|
import "./chunk-OVKUPO5U.mjs";
|
|
208
208
|
import "./chunk-K6PP3ACJ.mjs";
|
|
209
209
|
import {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@radix-ui/react-popover": "1.1.14",
|
|
33
33
|
"@radix-ui/react-slot": "1.2.3",
|
|
34
|
-
"@postenbring/hedwig-css": "4.2.
|
|
34
|
+
"@postenbring/hedwig-css": "4.2.2"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
@@ -1,29 +1,14 @@
|
|
|
1
|
-
import { forwardRef } from "react";
|
|
2
|
-
import type { ReactNode, CSSProperties } from "react";
|
|
1
|
+
import { forwardRef, type HTMLAttributes } from "react";
|
|
3
2
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
4
3
|
|
|
5
|
-
export interface SearchWrapperProps {
|
|
6
|
-
id?: string;
|
|
4
|
+
export interface SearchWrapperProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
5
|
className?: string;
|
|
8
|
-
style?: CSSProperties;
|
|
9
|
-
children: ReactNode;
|
|
10
6
|
}
|
|
11
7
|
|
|
12
|
-
export const SearchWrapper = forwardRef<HTMLDivElement, SearchWrapperProps>(
|
|
13
|
-
{
|
|
14
|
-
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
<div
|
|
18
|
-
id={id}
|
|
19
|
-
className={clsx("hds-search-wrapper", className as undefined)}
|
|
20
|
-
ref={ref}
|
|
21
|
-
style={style}
|
|
22
|
-
{...rest}
|
|
23
|
-
>
|
|
24
|
-
{children}
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
});
|
|
8
|
+
export const SearchWrapper = forwardRef<HTMLDivElement, SearchWrapperProps>(
|
|
9
|
+
({ className, ...rest }, ref) => (
|
|
10
|
+
<div className={clsx("hds-search-wrapper", className as undefined)} ref={ref} {...rest} />
|
|
11
|
+
),
|
|
12
|
+
);
|
|
28
13
|
|
|
29
14
|
SearchWrapper.displayName = "SearchWrapper";
|
|
@@ -8,25 +8,25 @@ export type SelectProps = Omit<
|
|
|
8
8
|
"readOnly" | "children"
|
|
9
9
|
> & { children: ReactNode };
|
|
10
10
|
|
|
11
|
-
export const Select = forwardRef<HTMLSelectElement, SelectProps>(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
11
|
+
export const Select = forwardRef<HTMLSelectElement, SelectProps>(
|
|
12
|
+
(
|
|
13
|
+
{
|
|
14
|
+
className,
|
|
15
|
+
size,
|
|
16
|
+
validationMessage,
|
|
17
|
+
validationMessageProps,
|
|
18
|
+
errorMessage,
|
|
19
|
+
labelProps,
|
|
20
|
+
label,
|
|
21
|
+
id,
|
|
22
|
+
style,
|
|
23
|
+
disabled,
|
|
24
|
+
"data-color": dataColor,
|
|
25
|
+
children,
|
|
26
|
+
...rest
|
|
27
|
+
},
|
|
28
|
+
ref,
|
|
29
|
+
) => (
|
|
30
30
|
<InputGroup
|
|
31
31
|
className={clsx("hds-select", className as undefined)}
|
|
32
32
|
disabled={disabled}
|
|
@@ -44,7 +44,7 @@ export const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select
|
|
|
44
44
|
{children}
|
|
45
45
|
</select>
|
|
46
46
|
</InputGroup>
|
|
47
|
-
)
|
|
48
|
-
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
49
|
|
|
50
50
|
Select.displayName = "Select";
|
|
@@ -1,23 +1,18 @@
|
|
|
1
1
|
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
2
|
-
import { forwardRef, type
|
|
2
|
+
import { forwardRef, type HTMLAttributes } from "react";
|
|
3
3
|
|
|
4
|
-
export interface ValidationMessageProps extends
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
id: string;
|
|
4
|
+
export interface ValidationMessageProps extends HTMLAttributes<HTMLDivElement> {
|
|
7
5
|
className?: string;
|
|
8
6
|
}
|
|
9
7
|
|
|
10
8
|
export const ValidationMessage = forwardRef<HTMLDivElement, ValidationMessageProps>(
|
|
11
|
-
({
|
|
9
|
+
({ className, ...rest }, ref) => (
|
|
12
10
|
<div
|
|
13
11
|
aria-live="polite"
|
|
14
12
|
className={clsx("hds-validation-message", className as undefined)}
|
|
15
|
-
id={id}
|
|
16
13
|
ref={ref}
|
|
17
14
|
{...rest}
|
|
18
|
-
|
|
19
|
-
{children}
|
|
20
|
-
</div>
|
|
15
|
+
/>
|
|
21
16
|
),
|
|
22
17
|
);
|
|
23
18
|
ValidationMessage.displayName = "ValidationMessage";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/form/validation-message/validation-message.tsx"],"sourcesContent":["import { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { forwardRef, type ReactNode } from \"react\";\n\nexport interface ValidationMessageProps extends React.HTMLAttributes<HTMLDivElement> {\n children: ReactNode;\n id: string;\n className?: string;\n}\n\nexport const ValidationMessage = forwardRef<HTMLDivElement, ValidationMessageProps>(\n ({ children, id, className, ...rest }, ref) => (\n <div\n aria-live=\"polite\"\n className={clsx(\"hds-validation-message\", className as undefined)}\n id={id}\n ref={ref}\n {...rest}\n >\n {children}\n </div>\n ),\n);\nValidationMessage.displayName = \"ValidationMessage\";\n"],"mappings":";;;;;;;AAAA,SAAS,YAAY;AACrB,SAAS,kBAAkC;AAUvC;AAFG,IAAM,oBAAoB;AAAA,EAC/B,CAAC,IAAsC,QAAK;AAA3C,iBAAE,YAAU,IAAI,UAVnB,IAUG,IAA8B,iBAA9B,IAA8B,CAA5B,YAAU,MAAI;AACf;AAAA,MAAC;AAAA;AAAA,QACC,aAAU;AAAA,QACV,WAAW,KAAK,0BAA0B,SAAsB;AAAA,QAChE;AAAA,QACA;AAAA,SACI,OALL;AAAA,QAOE;AAAA;AAAA,IACH;AAAA;AAEJ;AACA,kBAAkB,cAAc;","names":[]}
|
package/dist/chunk-D7L7OLFL.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
InputGroup
|
|
3
|
-
} from "./chunk-GIFDGUFW.mjs";
|
|
4
|
-
import {
|
|
5
|
-
__objRest,
|
|
6
|
-
__spreadProps,
|
|
7
|
-
__spreadValues
|
|
8
|
-
} from "./chunk-YOSPWY5K.mjs";
|
|
9
|
-
|
|
10
|
-
// src/form/select/select.tsx
|
|
11
|
-
import { forwardRef } from "react";
|
|
12
|
-
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
13
|
-
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
var Select = forwardRef(function Select2(_a, ref) {
|
|
15
|
-
var _b = _a, {
|
|
16
|
-
className,
|
|
17
|
-
size,
|
|
18
|
-
validationMessage,
|
|
19
|
-
validationMessageProps,
|
|
20
|
-
errorMessage,
|
|
21
|
-
labelProps,
|
|
22
|
-
label,
|
|
23
|
-
id,
|
|
24
|
-
style,
|
|
25
|
-
disabled,
|
|
26
|
-
"data-color": dataColor,
|
|
27
|
-
children
|
|
28
|
-
} = _b, rest = __objRest(_b, [
|
|
29
|
-
"className",
|
|
30
|
-
"size",
|
|
31
|
-
"validationMessage",
|
|
32
|
-
"validationMessageProps",
|
|
33
|
-
"errorMessage",
|
|
34
|
-
"labelProps",
|
|
35
|
-
"label",
|
|
36
|
-
"id",
|
|
37
|
-
"style",
|
|
38
|
-
"disabled",
|
|
39
|
-
"data-color",
|
|
40
|
-
"children"
|
|
41
|
-
]);
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
InputGroup,
|
|
44
|
-
{
|
|
45
|
-
className: clsx("hds-select", className),
|
|
46
|
-
disabled,
|
|
47
|
-
validationMessage,
|
|
48
|
-
validationMessageProps,
|
|
49
|
-
errorMessage,
|
|
50
|
-
id,
|
|
51
|
-
label,
|
|
52
|
-
labelProps,
|
|
53
|
-
style,
|
|
54
|
-
size,
|
|
55
|
-
"data-color": dataColor,
|
|
56
|
-
children: /* @__PURE__ */ jsx("select", __spreadProps(__spreadValues({ disabled, ref }, rest), { children }))
|
|
57
|
-
}
|
|
58
|
-
);
|
|
59
|
-
});
|
|
60
|
-
Select.displayName = "Select";
|
|
61
|
-
|
|
62
|
-
export {
|
|
63
|
-
Select
|
|
64
|
-
};
|
|
65
|
-
//# sourceMappingURL=chunk-D7L7OLFL.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/form/select/select.tsx"],"sourcesContent":["import { forwardRef, type ReactNode, type SelectHTMLAttributes } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\nimport { InputGroup } from \"../input-group\";\nimport type { InputGroupProps } from \"../input-group\";\n\nexport type SelectProps = Omit<\n InputGroupProps & Omit<SelectHTMLAttributes<HTMLSelectElement>, \"size\">,\n \"readOnly\" | \"children\"\n> & { children: ReactNode };\n\nexport const Select = forwardRef<HTMLSelectElement, SelectProps>(function Select(\n {\n className,\n size,\n validationMessage,\n validationMessageProps,\n errorMessage,\n labelProps,\n label,\n id,\n style,\n disabled,\n \"data-color\": dataColor,\n children,\n ...rest\n },\n ref,\n) {\n return (\n <InputGroup\n className={clsx(\"hds-select\", className as undefined)}\n disabled={disabled}\n validationMessage={validationMessage}\n validationMessageProps={validationMessageProps}\n errorMessage={errorMessage}\n id={id}\n label={label}\n labelProps={labelProps}\n style={style}\n size={size}\n data-color={dataColor}\n >\n <select disabled={disabled} ref={ref} {...rest}>\n {children}\n </select>\n </InputGroup>\n );\n});\n\nSelect.displayName = \"Select\";\n"],"mappings":";;;;;;;;;;AAAA,SAAS,kBAA6D;AACtE,SAAS,YAAY;AAyCf;AAhCC,IAAM,SAAS,WAA2C,SAASA,QACxE,IAeA,KACA;AAhBA,eACE;AAAA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,cAAc;AAAA,IACd;AAAA,EAvBJ,IAWE,IAaK,iBAbL,IAaK;AAAA,IAZH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAKF,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,KAAK,cAAc,SAAsB;AAAA,MACpD;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,cAAY;AAAA,MAEZ,8BAAC,yCAAO,UAAoB,OAAc,OAAzC,EACE,WACH;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,OAAO,cAAc;","names":["Select"]}
|
package/dist/chunk-ZIVURWHY.mjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
|
-
__spreadValues
|
|
5
|
-
} from "./chunk-YOSPWY5K.mjs";
|
|
6
|
-
|
|
7
|
-
// src/form/search-wrapper/search-wrapper.tsx
|
|
8
|
-
import { forwardRef } from "react";
|
|
9
|
-
import { clsx } from "@postenbring/hedwig-css/typed-classname";
|
|
10
|
-
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var SearchWrapper = forwardRef(function SearchWrapper2(_a, ref) {
|
|
12
|
-
var _b = _a, { id, className, style, children } = _b, rest = __objRest(_b, ["id", "className", "style", "children"]);
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
"div",
|
|
15
|
-
__spreadProps(__spreadValues({
|
|
16
|
-
id,
|
|
17
|
-
className: clsx("hds-search-wrapper", className),
|
|
18
|
-
ref,
|
|
19
|
-
style
|
|
20
|
-
}, rest), {
|
|
21
|
-
children
|
|
22
|
-
})
|
|
23
|
-
);
|
|
24
|
-
});
|
|
25
|
-
SearchWrapper.displayName = "SearchWrapper";
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
SearchWrapper
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=chunk-ZIVURWHY.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/form/search-wrapper/search-wrapper.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { ReactNode, CSSProperties } from \"react\";\nimport { clsx } from \"@postenbring/hedwig-css/typed-classname\";\n\nexport interface SearchWrapperProps {\n id?: string;\n className?: string;\n style?: CSSProperties;\n children: ReactNode;\n}\n\nexport const SearchWrapper = forwardRef<HTMLDivElement, SearchWrapperProps>(function SearchWrapper(\n { id, className, style, children, ...rest },\n ref,\n) {\n return (\n <div\n id={id}\n className={clsx(\"hds-search-wrapper\", className as undefined)}\n ref={ref}\n style={style}\n {...rest}\n >\n {children}\n </div>\n );\n});\n\nSearchWrapper.displayName = \"SearchWrapper\";\n"],"mappings":";;;;;;;AAAA,SAAS,kBAAkB;AAE3B,SAAS,YAAY;AAcjB;AALG,IAAM,gBAAgB,WAA+C,SAASA,eACnF,IACA,KACA;AAFA,eAAE,MAAI,WAAW,OAAO,SAZ1B,IAYE,IAAqC,iBAArC,IAAqC,CAAnC,MAAI,aAAW,SAAO;AAGxB,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,WAAW,KAAK,sBAAsB,SAAsB;AAAA,MAC5D;AAAA,MACA;AAAA,OACI,OALL;AAAA,MAOE;AAAA;AAAA,EACH;AAEJ,CAAC;AAED,cAAc,cAAc;","names":["SearchWrapper"]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|