@vincentgraul/react-components 1.0.66 → 1.0.68
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/button/button.d.ts +2 -1
- package/dist/flex/flex.d.ts +2 -1
- package/dist/react-components.css +1 -1
- package/dist/react-components.js +42 -33
- package/package.json +1 -1
package/dist/button/button.d.ts
CHANGED
|
@@ -12,7 +12,8 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
12
12
|
borderRadius?: number;
|
|
13
13
|
borderWidth?: number;
|
|
14
14
|
padding?: string;
|
|
15
|
+
hoverOpacity?: number;
|
|
15
16
|
className?: string;
|
|
16
17
|
};
|
|
17
|
-
export declare const Button: ({ className, children, width, height, alignSelf, fontSize, fontWeight, borderRadius, borderWidth, padding, color, backgroundColor, borderColor, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const Button: ({ className, children, width, height, alignSelf, fontSize, fontWeight, borderRadius, borderWidth, padding, color, backgroundColor, borderColor, hoverOpacity, ...rest }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export {};
|
package/dist/flex/flex.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export type FlexProps = {
|
|
|
4
4
|
direction?: "row" | "column";
|
|
5
5
|
justifyContent?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly" | "stretch";
|
|
6
6
|
alignItems?: "start" | "center" | "end" | "stretch";
|
|
7
|
+
alignSelf?: "start" | "center" | "end" | "stretch";
|
|
7
8
|
wrap?: "nowrap" | "wrap" | "wrap-reverse";
|
|
8
9
|
width?: number;
|
|
9
10
|
height?: number;
|
|
@@ -11,4 +12,4 @@ export type FlexProps = {
|
|
|
11
12
|
gap?: number;
|
|
12
13
|
className?: string;
|
|
13
14
|
};
|
|
14
|
-
export declare const Flex: ({ className, children, direction, justifyContent, alignItems, wrap, width, height, padding, gap, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare const Flex: ({ className, children, direction, justifyContent, alignItems, alignSelf, wrap, width, height, padding, gap, }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._container_1mzhz_1{display:flex;align-items:center;align-self:flex-start;margin:0 0 2rem 2rem}._link_1mzhz_8{color:#fff;font-size:2rem;text-decoration:none}._arrow_1mzhz_14{margin:0 1rem;width:1rem}._flag_1ci92_1{display:block;margin:auto;border-radius:2px}._container_qbw16_1{position:relative}._input-container_qbw16_5{display:inline-flex;align-items:center;position:relative;width:100%;height:100%}._input_qbw16_5{width:100%;height:100%;padding:10px;border:0;background-color:transparent;outline:none;z-index:1;color:#000}._input_qbw16_5:focus+._fieldset_qbw16_23:not(.success,.warning,.error){color:var(--focus-color, blue);border-color:var(--focus-color, blue)}._fieldset_qbw16_23{border:1px solid black;border-radius:5px;position:absolute;inset:-8.5px 0 0;font-size:15px;margin:0}._fieldset_qbw16_23.success{border-color:var(--success-color, green);color:var(--success-color, green)}._fieldset_qbw16_23.warning{border-color:var(--warning-color, orange);color:var(--warning-color, orange)}._fieldset_qbw16_23.error{border-color:var(--error-color, red);color:var(--error-color, red)}._legend_qbw16_55{padding:0 5px}._message-container_qbw16_59{display:flex;align-items:center;gap:5px;margin-top:5px}._message-container_qbw16_59.success{color:var(--success-color, green)}._message-container_qbw16_59.warning{color:var(--warning-color, orange)}._message-container_qbw16_59.error{color:var(--error-color, red)}._overlay_krtsr_1{position:fixed;inset:0;background-color:#000c;overflow-y:auto;z-index:2}._container_krtsr_12{position:absolute;top:50%;left:50%;width:50%;color:#f9fbff}._image-container_krtsr_20{display:flex;flex-flow:column;align-items:center;transform:translate(-50%)}@keyframes _loading_krtsr_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._image_krtsr_20{animation:_loading_krtsr_1 3s linear infinite;margin-bottom:2rem}._container_e4hb2_1{position:absolute;top:0;left:50%;transform:translate(-50%);background-color:#f9fbff;border-radius:.5rem;padding:1rem;z-index:1;margin:5rem 0}._overlay_e4hb2_13{position:fixed;inset:0;background-color:#00000080;overflow-y:auto;z-index:1}._container_12891_1{--hover-background-color: lightgrey;--hover-text-color: black;--selected-background-color: black;--selected-text-color: white;display:flex}._item_12891_10{border-style:solid;border-width:1px 1px 1px 0;padding:.5rem 1rem;display:flex;align-items:center;cursor:pointer}._item_12891_10:first-child{border-width:1px 1px 1px 1px}._item_12891_10:hover:not(._selected_12891_22){background-color:var(--hover-background-color);color:var(--hover-text-color)}._item_12891_10._selected_12891_22{background-color:var(--selected-background-color);color:var(--selected-text-color)}._container_1syfi_1{width:fit-content}._selected-option-container_1syfi_5{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px;background-color:#fff;border-radius:5px}._selected-option-text_1syfi_15{padding-right:10px;border-right:1px solid black}._selected-option-arrow_1syfi_20{width:15px;margin-left:10px}._options-list_1syfi_25{width:100%;list-style:none;padding:0;margin:10px 0 0;-webkit-user-select:none;user-select:none;background-color:#fff;border-radius:5px}._option_1syfi_25{padding:10px;cursor:pointer}._option_1syfi_25:hover{background-color:#ecf0f1}._option_1syfi_25:hover:first-child{border-radius:5px 5px 0 0}._option_1syfi_25:hover:last-child{border-radius:0 0 5px 5px}._option_1syfi_25:hover:only-child{border-radius:5px}._container_cds7q_1{display:flex;flex-flow:column}._main_cds7q_6{width:100%;table-layout:fixed;border-collapse:collapse}._tbody_cds7q_12{-webkit-user-select:text;user-select:text}._tbody_cds7q_12 tr:last-child{border:none}._th_cds7q_19{padding:2rem 1rem 1rem 0;word-wrap:break-word;white-space:nowrap}._tr_cds7q_25{text-align:center;border-bottom:2px solid black}._td_cds7q_30{padding:2rem 1rem 1rem 0;word-wrap:break-word}._container_ldyam_1{display:flex}.
|
|
1
|
+
._container_1mzhz_1{display:flex;align-items:center;align-self:flex-start;margin:0 0 2rem 2rem}._link_1mzhz_8{color:#fff;font-size:2rem;text-decoration:none}._arrow_1mzhz_14{margin:0 1rem;width:1rem}._flag_1ci92_1{display:block;margin:auto;border-radius:2px}._container_qbw16_1{position:relative}._input-container_qbw16_5{display:inline-flex;align-items:center;position:relative;width:100%;height:100%}._input_qbw16_5{width:100%;height:100%;padding:10px;border:0;background-color:transparent;outline:none;z-index:1;color:#000}._input_qbw16_5:focus+._fieldset_qbw16_23:not(.success,.warning,.error){color:var(--focus-color, blue);border-color:var(--focus-color, blue)}._fieldset_qbw16_23{border:1px solid black;border-radius:5px;position:absolute;inset:-8.5px 0 0;font-size:15px;margin:0}._fieldset_qbw16_23.success{border-color:var(--success-color, green);color:var(--success-color, green)}._fieldset_qbw16_23.warning{border-color:var(--warning-color, orange);color:var(--warning-color, orange)}._fieldset_qbw16_23.error{border-color:var(--error-color, red);color:var(--error-color, red)}._legend_qbw16_55{padding:0 5px}._message-container_qbw16_59{display:flex;align-items:center;gap:5px;margin-top:5px}._message-container_qbw16_59.success{color:var(--success-color, green)}._message-container_qbw16_59.warning{color:var(--warning-color, orange)}._message-container_qbw16_59.error{color:var(--error-color, red)}._overlay_krtsr_1{position:fixed;inset:0;background-color:#000c;overflow-y:auto;z-index:2}._container_krtsr_12{position:absolute;top:50%;left:50%;width:50%;color:#f9fbff}._image-container_krtsr_20{display:flex;flex-flow:column;align-items:center;transform:translate(-50%)}@keyframes _loading_krtsr_1{0%{transform:rotate(0)}to{transform:rotate(360deg)}}._image_krtsr_20{animation:_loading_krtsr_1 3s linear infinite;margin-bottom:2rem}._container_e4hb2_1{position:absolute;top:0;left:50%;transform:translate(-50%);background-color:#f9fbff;border-radius:.5rem;padding:1rem;z-index:1;margin:5rem 0}._overlay_e4hb2_13{position:fixed;inset:0;background-color:#00000080;overflow-y:auto;z-index:1}._container_12891_1{--hover-background-color: lightgrey;--hover-text-color: black;--selected-background-color: black;--selected-text-color: white;display:flex}._item_12891_10{border-style:solid;border-width:1px 1px 1px 0;padding:.5rem 1rem;display:flex;align-items:center;cursor:pointer}._item_12891_10:first-child{border-width:1px 1px 1px 1px}._item_12891_10:hover:not(._selected_12891_22){background-color:var(--hover-background-color);color:var(--hover-text-color)}._item_12891_10._selected_12891_22{background-color:var(--selected-background-color);color:var(--selected-text-color)}._container_1syfi_1{width:fit-content}._selected-option-container_1syfi_5{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none;padding:10px;background-color:#fff;border-radius:5px}._selected-option-text_1syfi_15{padding-right:10px;border-right:1px solid black}._selected-option-arrow_1syfi_20{width:15px;margin-left:10px}._options-list_1syfi_25{width:100%;list-style:none;padding:0;margin:10px 0 0;-webkit-user-select:none;user-select:none;background-color:#fff;border-radius:5px}._option_1syfi_25{padding:10px;cursor:pointer}._option_1syfi_25:hover{background-color:#ecf0f1}._option_1syfi_25:hover:first-child{border-radius:5px 5px 0 0}._option_1syfi_25:hover:last-child{border-radius:0 0 5px 5px}._option_1syfi_25:hover:only-child{border-radius:5px}._container_cds7q_1{display:flex;flex-flow:column}._main_cds7q_6{width:100%;table-layout:fixed;border-collapse:collapse}._tbody_cds7q_12{-webkit-user-select:text;user-select:text}._tbody_cds7q_12 tr:last-child{border:none}._th_cds7q_19{padding:2rem 1rem 1rem 0;word-wrap:break-word;white-space:nowrap}._tr_cds7q_25{text-align:center;border-bottom:2px solid black}._td_cds7q_30{padding:2rem 1rem 1rem 0;word-wrap:break-word}._container_ldyam_1{display:flex}._container_1xgvv_1{padding:.5rem 1rem;cursor:pointer;border-style:solid}._container_1xgvv_1:hover{opacity:var(--hover-opacity, .8)}._container_1qytk_1{display:flex;flex-direction:column;align-items:center}._drop-zone_1qytk_7{display:flex;width:100%;flex-direction:column;border:5px dashed black;align-items:center;cursor:pointer;padding:1rem}._drop-zone--dragging_1qytk_17{opacity:.5}._text_1qytk_21{margin:0;text-align:center}._preview-file_1qytk_26{width:100%}._remove-button_1qytk_30{background:none;border:none;padding:0;cursor:pointer}
|
package/dist/react-components.js
CHANGED
|
@@ -48861,28 +48861,30 @@ const ID = ({
|
|
|
48861
48861
|
direction: g,
|
|
48862
48862
|
justifyContent: y,
|
|
48863
48863
|
alignItems: w,
|
|
48864
|
-
|
|
48865
|
-
|
|
48866
|
-
|
|
48867
|
-
|
|
48868
|
-
|
|
48864
|
+
alignSelf: R,
|
|
48865
|
+
wrap: F,
|
|
48866
|
+
width: x,
|
|
48867
|
+
height: C,
|
|
48868
|
+
padding: H,
|
|
48869
|
+
gap: B
|
|
48869
48870
|
}) => /* @__PURE__ */ c(
|
|
48870
48871
|
"div",
|
|
48871
48872
|
{
|
|
48872
48873
|
className: O8(BD.container, r),
|
|
48873
48874
|
style: {
|
|
48874
|
-
width: `${
|
|
48875
|
-
height:
|
|
48875
|
+
width: `${x ?? 100}%`,
|
|
48876
|
+
height: C !== void 0 ? `${C}rem` : "auto",
|
|
48876
48877
|
flexDirection: g,
|
|
48877
48878
|
justifyContent: y,
|
|
48878
48879
|
alignItems: w,
|
|
48879
|
-
|
|
48880
|
-
|
|
48881
|
-
|
|
48880
|
+
alignSelf: R,
|
|
48881
|
+
flexWrap: F,
|
|
48882
|
+
padding: H,
|
|
48883
|
+
gap: `${B ?? 0}rem`
|
|
48882
48884
|
},
|
|
48883
48885
|
children: d
|
|
48884
48886
|
}
|
|
48885
|
-
), qD = "
|
|
48887
|
+
), qD = "_container_1xgvv_1", OD = {
|
|
48886
48888
|
container: qD
|
|
48887
48889
|
}, cV = ({
|
|
48888
48890
|
className: r,
|
|
@@ -48898,28 +48900,35 @@ const ID = ({
|
|
|
48898
48900
|
color: B,
|
|
48899
48901
|
backgroundColor: E,
|
|
48900
48902
|
borderColor: S,
|
|
48901
|
-
|
|
48902
|
-
|
|
48903
|
-
|
|
48904
|
-
{
|
|
48905
|
-
|
|
48906
|
-
|
|
48907
|
-
|
|
48908
|
-
|
|
48909
|
-
|
|
48910
|
-
|
|
48911
|
-
|
|
48912
|
-
|
|
48913
|
-
|
|
48914
|
-
|
|
48915
|
-
|
|
48916
|
-
|
|
48917
|
-
|
|
48918
|
-
|
|
48919
|
-
|
|
48920
|
-
|
|
48921
|
-
|
|
48922
|
-
|
|
48903
|
+
hoverOpacity: O,
|
|
48904
|
+
...D
|
|
48905
|
+
}) => {
|
|
48906
|
+
const Y = {
|
|
48907
|
+
"--hover-opacity": O
|
|
48908
|
+
};
|
|
48909
|
+
return /* @__PURE__ */ c(
|
|
48910
|
+
"button",
|
|
48911
|
+
{
|
|
48912
|
+
className: O8(OD.container, r),
|
|
48913
|
+
style: {
|
|
48914
|
+
width: `${g ?? 100}%`,
|
|
48915
|
+
height: y !== void 0 ? `${y}rem` : "auto",
|
|
48916
|
+
borderRadius: `${x ?? 0}px`,
|
|
48917
|
+
borderWidth: `${C ?? 1}px`,
|
|
48918
|
+
fontSize: `${R ?? 1}rem`,
|
|
48919
|
+
fontWeight: F ?? 400,
|
|
48920
|
+
alignSelf: w,
|
|
48921
|
+
padding: H,
|
|
48922
|
+
color: B ?? "black",
|
|
48923
|
+
backgroundColor: E ?? "white",
|
|
48924
|
+
borderColor: S ?? "black",
|
|
48925
|
+
...Y
|
|
48926
|
+
},
|
|
48927
|
+
...D,
|
|
48928
|
+
children: d
|
|
48929
|
+
}
|
|
48930
|
+
);
|
|
48931
|
+
}, DD = "_container_1qytk_1", VD = "_text_1qytk_21", n7 = {
|
|
48923
48932
|
container: DD,
|
|
48924
48933
|
"drop-zone": "_drop-zone_1qytk_7",
|
|
48925
48934
|
"drop-zone--dragging": "_drop-zone--dragging_1qytk_17",
|