@landtrustinc/design-system 1.1.2 → 1.1.3
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.d.ts +1 -1
- package/dist/index.js +201 -218
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -519,12 +519,12 @@ var GlobalStyle = import_react.css`
|
|
|
519
519
|
`;
|
|
520
520
|
|
|
521
521
|
// src/AIResponse/AIResponse.tsx
|
|
522
|
-
var
|
|
522
|
+
var import_react11 = require("react");
|
|
523
523
|
|
|
524
524
|
// src/Button/Button.tsx
|
|
525
|
-
var
|
|
525
|
+
var import_react5 = require("@emotion/react");
|
|
526
526
|
var import_lodash = require("lodash");
|
|
527
|
-
var
|
|
527
|
+
var import_react6 = __toESM(require("react"));
|
|
528
528
|
|
|
529
529
|
// src/Icon/Icon.tsx
|
|
530
530
|
var import_react2 = require("@emotion/react");
|
|
@@ -2785,8 +2785,39 @@ var Icon = ({
|
|
|
2785
2785
|
};
|
|
2786
2786
|
var Icon_default = Icon;
|
|
2787
2787
|
|
|
2788
|
-
// src/
|
|
2788
|
+
// src/Spinner/Spinner.styles.ts
|
|
2789
2789
|
var import_react3 = require("@emotion/react");
|
|
2790
|
+
var spinnerStyles = import_react3.css`
|
|
2791
|
+
animation: lt-spin 1s linear infinite;
|
|
2792
|
+
|
|
2793
|
+
@keyframes lt-spin {
|
|
2794
|
+
from {
|
|
2795
|
+
transform: rotate(0deg);
|
|
2796
|
+
}
|
|
2797
|
+
to {
|
|
2798
|
+
transform: rotate(360deg);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
`;
|
|
2802
|
+
|
|
2803
|
+
// src/Spinner/Spinner.tsx
|
|
2804
|
+
var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
|
|
2805
|
+
var Spinner = ({ size = 5, className, fill }) => {
|
|
2806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
|
|
2807
|
+
Icon_default,
|
|
2808
|
+
{
|
|
2809
|
+
variant: "Spinner",
|
|
2810
|
+
size,
|
|
2811
|
+
className,
|
|
2812
|
+
css: spinnerStyles,
|
|
2813
|
+
fill
|
|
2814
|
+
}
|
|
2815
|
+
);
|
|
2816
|
+
};
|
|
2817
|
+
var Spinner_default2 = Spinner;
|
|
2818
|
+
|
|
2819
|
+
// src/Button/Button.styles.ts
|
|
2820
|
+
var import_react4 = require("@emotion/react");
|
|
2790
2821
|
|
|
2791
2822
|
// src/Button/TopoPattern.ts
|
|
2792
2823
|
var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
@@ -2830,7 +2861,7 @@ var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
|
2830
2861
|
var TopoPattern_default = topoPattern;
|
|
2831
2862
|
|
|
2832
2863
|
// src/Button/Button.styles.ts
|
|
2833
|
-
var rootStyles =
|
|
2864
|
+
var rootStyles = import_react4.css`
|
|
2834
2865
|
position: relative;
|
|
2835
2866
|
padding: ${space["4"]} ${space["10"]};
|
|
2836
2867
|
max-height: ${space["12"]};
|
|
@@ -2859,40 +2890,40 @@ var rootStyles = import_react3.css`
|
|
|
2859
2890
|
}
|
|
2860
2891
|
`;
|
|
2861
2892
|
var styles = {
|
|
2862
|
-
primary:
|
|
2863
|
-
background-color:
|
|
2864
|
-
color:
|
|
2865
|
-
border-color:
|
|
2893
|
+
primary: import_react4.css`
|
|
2894
|
+
background-color: var(--surface-action);
|
|
2895
|
+
color: var(--text-on-action);
|
|
2896
|
+
border-color: var(--border-action);
|
|
2866
2897
|
|
|
2867
2898
|
&:hover {
|
|
2868
|
-
background-color:
|
|
2869
|
-
border-color:
|
|
2899
|
+
background-color: var(--surface-action-hover);
|
|
2900
|
+
border-color: var(--border-action-hover);
|
|
2870
2901
|
}
|
|
2871
2902
|
|
|
2872
2903
|
&:active {
|
|
2873
|
-
background-color:
|
|
2874
|
-
border-color:
|
|
2904
|
+
background-color: var(--surface-action-hover);
|
|
2905
|
+
border-color: var(--border-action-hover);
|
|
2875
2906
|
}
|
|
2876
2907
|
|
|
2877
2908
|
&:focus {
|
|
2878
|
-
outline: 2px solid
|
|
2909
|
+
outline: 2px solid var(--color-primary-100);
|
|
2879
2910
|
}
|
|
2880
2911
|
`,
|
|
2881
|
-
secondary:
|
|
2912
|
+
secondary: import_react4.css`
|
|
2882
2913
|
background-color: transparent;
|
|
2883
|
-
color:
|
|
2884
|
-
border-color:
|
|
2914
|
+
color: var(--text-primary);
|
|
2915
|
+
border-color: var(--border-secondary);
|
|
2885
2916
|
|
|
2886
2917
|
&:hover {
|
|
2887
|
-
background-color:
|
|
2888
|
-
color:
|
|
2918
|
+
background-color: var(--surface-action-3-hover);
|
|
2919
|
+
color: var(--text-primary);
|
|
2889
2920
|
}
|
|
2890
2921
|
|
|
2891
2922
|
&:focus {
|
|
2892
|
-
outline: 2px solid
|
|
2923
|
+
outline: 2px solid var(--color-neutral-700);
|
|
2893
2924
|
}
|
|
2894
2925
|
`,
|
|
2895
|
-
tertiary:
|
|
2926
|
+
tertiary: import_react4.css`
|
|
2896
2927
|
background-color: ${colors.gray["900"]};
|
|
2897
2928
|
color: ${colors.light["100"]};
|
|
2898
2929
|
border-color: ${colors.gray["900"]};
|
|
@@ -2911,25 +2942,25 @@ var styles = {
|
|
|
2911
2942
|
outline: 2px solid ${colors.olive["600"]};
|
|
2912
2943
|
}
|
|
2913
2944
|
`,
|
|
2914
|
-
plus:
|
|
2915
|
-
background-color:
|
|
2916
|
-
color:
|
|
2917
|
-
border-color:
|
|
2918
|
-
box-shadow:
|
|
2945
|
+
plus: import_react4.css`
|
|
2946
|
+
background-color: var(--surface-action-2);
|
|
2947
|
+
color: var(--text-primary);
|
|
2948
|
+
border-color: var(--border-secondary);
|
|
2949
|
+
box-shadow: var(--shadow-md);
|
|
2919
2950
|
|
|
2920
2951
|
&:hover {
|
|
2921
|
-
background-color:
|
|
2952
|
+
background-color: var(--surface-action-2-hover);
|
|
2922
2953
|
}
|
|
2923
2954
|
|
|
2924
2955
|
&:active {
|
|
2925
|
-
background-color:
|
|
2956
|
+
background-color: var(--surface-action-2-hover);
|
|
2926
2957
|
}
|
|
2927
2958
|
|
|
2928
2959
|
&:focus {
|
|
2929
|
-
outline: 2px solid
|
|
2960
|
+
outline: 2px solid var(--surface-action-2);
|
|
2930
2961
|
}
|
|
2931
2962
|
`,
|
|
2932
|
-
simple:
|
|
2963
|
+
simple: import_react4.css`
|
|
2933
2964
|
background-color: ${colors.light["100"]};
|
|
2934
2965
|
color: ${colors.dark["900"]};
|
|
2935
2966
|
border-color: ${colors.gray["200"]};
|
|
@@ -2946,37 +2977,22 @@ var styles = {
|
|
|
2946
2977
|
outline: 2px solid ${colors.gray["300"]};
|
|
2947
2978
|
}
|
|
2948
2979
|
`,
|
|
2949
|
-
text:
|
|
2980
|
+
text: import_react4.css`
|
|
2950
2981
|
text-decoration: none;
|
|
2951
2982
|
border-color: transparent;
|
|
2952
|
-
color:
|
|
2983
|
+
color: var(--text-primary);
|
|
2953
2984
|
|
|
2954
2985
|
&:hover {
|
|
2955
2986
|
text-decoration: none;
|
|
2956
|
-
background-color:
|
|
2957
|
-
border-color:
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
|
-
&:focus {
|
|
2961
|
-
outline: 2px solid ${colors.gray["900"]};
|
|
2962
|
-
}
|
|
2963
|
-
`,
|
|
2964
|
-
"text-underline": import_react3.css`
|
|
2965
|
-
text-decoration: underline;
|
|
2966
|
-
border-color: transparent;
|
|
2967
|
-
color: ${colors.dark["900"]};
|
|
2968
|
-
|
|
2969
|
-
&:hover {
|
|
2970
|
-
text-decoration: underline;
|
|
2971
|
-
background-color: ${colors.gray["100"]};
|
|
2972
|
-
border-color: ${colors.gray["100"]};
|
|
2987
|
+
background-color: var(--surface-action-3-hover);
|
|
2988
|
+
border-color: var(--surface-action-3-hover);
|
|
2973
2989
|
}
|
|
2974
2990
|
|
|
2975
2991
|
&:focus {
|
|
2976
|
-
outline: 2px solid
|
|
2992
|
+
outline: 2px solid var(--border-secondary);
|
|
2977
2993
|
}
|
|
2978
2994
|
`,
|
|
2979
|
-
topo:
|
|
2995
|
+
topo: import_react4.css`
|
|
2980
2996
|
background-color: ${colors.gray["900"]};
|
|
2981
2997
|
background-image: url(${TopoPattern_default});
|
|
2982
2998
|
background-size: cover;
|
|
@@ -2997,10 +3013,10 @@ var styles = {
|
|
|
2997
3013
|
outline: 2px solid ${colors.olive["500"]};
|
|
2998
3014
|
}
|
|
2999
3015
|
`,
|
|
3000
|
-
fullWidth:
|
|
3016
|
+
fullWidth: import_react4.css`
|
|
3001
3017
|
width: 100%;
|
|
3002
3018
|
`,
|
|
3003
|
-
sizeXs:
|
|
3019
|
+
sizeXs: import_react4.css`
|
|
3004
3020
|
padding-top: ${space["2"]};
|
|
3005
3021
|
padding-bottom: ${space["2"]};
|
|
3006
3022
|
padding-left: ${space["3"]};
|
|
@@ -3009,12 +3025,12 @@ var styles = {
|
|
|
3009
3025
|
font-size: ${fontSizes.xs};
|
|
3010
3026
|
font-weight: ${fontWeights.bold};
|
|
3011
3027
|
`,
|
|
3012
|
-
sizeSm:
|
|
3028
|
+
sizeSm: import_react4.css`
|
|
3013
3029
|
padding-top: ${space["3"]};
|
|
3014
3030
|
padding-bottom: ${space["3"]};
|
|
3015
3031
|
`,
|
|
3016
|
-
sizeBase: () =>
|
|
3017
|
-
sizeLg:
|
|
3032
|
+
sizeBase: () => import_react4.css``,
|
|
3033
|
+
sizeLg: import_react4.css`
|
|
3018
3034
|
padding-top: ${space["5"]};
|
|
3019
3035
|
padding-bottom: ${space["5"]};
|
|
3020
3036
|
padding-left: ${space["12"]};
|
|
@@ -3022,58 +3038,55 @@ var styles = {
|
|
|
3022
3038
|
max-height: ${space["14"]};
|
|
3023
3039
|
font-size: ${fontSizes.base};
|
|
3024
3040
|
`,
|
|
3025
|
-
iconOnly:
|
|
3041
|
+
iconOnly: import_react4.css`
|
|
3026
3042
|
height: var(--spacing-11);
|
|
3027
3043
|
min-width: var(--spacing-11);
|
|
3028
3044
|
max-height: var(--spacing-11);
|
|
3029
3045
|
padding: 0;
|
|
3030
3046
|
border-radius: var(--radius-round);
|
|
3031
3047
|
`,
|
|
3032
|
-
iconOnlyLg:
|
|
3048
|
+
iconOnlyLg: import_react4.css`
|
|
3033
3049
|
height: var(--spacing-20);
|
|
3034
3050
|
min-width: var(--spacing-20);
|
|
3035
3051
|
max-height: var(--spacing-20);
|
|
3036
3052
|
padding: 0;
|
|
3037
3053
|
border-radius: var(--radius-round);
|
|
3038
3054
|
`,
|
|
3039
|
-
disabled:
|
|
3055
|
+
disabled: import_react4.css`
|
|
3040
3056
|
opacity: ${opacity["50"]};
|
|
3041
3057
|
pointer-events: none;
|
|
3058
|
+
`,
|
|
3059
|
+
withIcon: import_react4.css`
|
|
3060
|
+
gap: var(--spacing-3);
|
|
3042
3061
|
`
|
|
3043
3062
|
};
|
|
3044
|
-
var
|
|
3063
|
+
var spinnerStyles2 = (variant) => import_react4.css`
|
|
3045
3064
|
position: absolute;
|
|
3046
|
-
left: calc(50% -
|
|
3047
|
-
stroke: ${colors.light["100"]};
|
|
3048
|
-
stroke-width: 3px;
|
|
3065
|
+
left: calc(50% - var(--spacing-2));
|
|
3049
3066
|
|
|
3050
3067
|
${variant === "secondary" && `
|
|
3051
|
-
|
|
3068
|
+
fill: var(--text-primary);
|
|
3052
3069
|
`}
|
|
3053
3070
|
|
|
3054
3071
|
${variant === "plus" && `
|
|
3055
|
-
|
|
3072
|
+
fill: var(--text-primary);
|
|
3056
3073
|
`}
|
|
3057
3074
|
|
|
3058
3075
|
${variant === "text" && `
|
|
3059
|
-
|
|
3076
|
+
fill: var(--text-primary);
|
|
3060
3077
|
`}
|
|
3061
|
-
|
|
3062
|
-
${variant === "text-underline" && `
|
|
3063
|
-
stroke: ${colors.gray["900"]};
|
|
3064
|
-
`}
|
|
3065
|
-
|
|
3078
|
+
|
|
3066
3079
|
${variant === "simple" && `
|
|
3067
|
-
|
|
3080
|
+
fill: var(--text-primary);
|
|
3068
3081
|
`}
|
|
3069
3082
|
`;
|
|
3070
|
-
var labelStyles = (isVisible) => () =>
|
|
3083
|
+
var labelStyles = (isVisible) => () => import_react4.css`
|
|
3071
3084
|
visibility: ${isVisible ? "visible" : "hidden"};
|
|
3072
3085
|
`;
|
|
3073
3086
|
|
|
3074
3087
|
// src/Button/Button.tsx
|
|
3075
|
-
var
|
|
3076
|
-
var Button =
|
|
3088
|
+
var import_jsx_runtime197 = require("@emotion/react/jsx-runtime");
|
|
3089
|
+
var Button = import_react6.default.forwardRef(
|
|
3077
3090
|
({
|
|
3078
3091
|
as: Component = "button",
|
|
3079
3092
|
variant = "primary",
|
|
@@ -3084,14 +3097,14 @@ var Button = import_react5.default.forwardRef(
|
|
|
3084
3097
|
type = "button",
|
|
3085
3098
|
isLoading = false,
|
|
3086
3099
|
className = "",
|
|
3087
|
-
labelStyleOverrides =
|
|
3100
|
+
labelStyleOverrides = import_react5.css``,
|
|
3088
3101
|
icon,
|
|
3089
3102
|
...props
|
|
3090
3103
|
}, ref) => {
|
|
3091
3104
|
const componentType = Component === "button" ? type : void 0;
|
|
3092
3105
|
const sizeKey = `size${(0, import_lodash.upperFirst)(size)}`;
|
|
3093
3106
|
const isIconOnly = icon && !children;
|
|
3094
|
-
return /* @__PURE__ */ (0,
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
|
|
3095
3108
|
Component,
|
|
3096
3109
|
{
|
|
3097
3110
|
ref,
|
|
@@ -3104,13 +3117,14 @@ var Button = import_react5.default.forwardRef(
|
|
|
3104
3117
|
size && styles[sizeKey],
|
|
3105
3118
|
isIconOnly && size === "lg" && styles.iconOnlyLg,
|
|
3106
3119
|
isIconOnly && size !== "lg" && styles.iconOnly,
|
|
3107
|
-
(isLoading || disabled) && styles.disabled
|
|
3120
|
+
(isLoading || disabled) && styles.disabled,
|
|
3121
|
+
icon && children && styles.withIcon
|
|
3108
3122
|
],
|
|
3109
3123
|
...props,
|
|
3110
3124
|
children: [
|
|
3111
3125
|
icon,
|
|
3112
|
-
children && /* @__PURE__ */ (0,
|
|
3113
|
-
isLoading && /* @__PURE__ */ (0,
|
|
3126
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { css: [labelStyles(!isLoading), labelStyleOverrides], children }),
|
|
3127
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Spinner_default2, { css: spinnerStyles2(variant) })
|
|
3114
3128
|
]
|
|
3115
3129
|
}
|
|
3116
3130
|
);
|
|
@@ -3143,9 +3157,9 @@ var Box = import_styled.default.div`
|
|
|
3143
3157
|
var Box_default = Box;
|
|
3144
3158
|
|
|
3145
3159
|
// src/Box/Container.tsx
|
|
3146
|
-
var
|
|
3147
|
-
var
|
|
3148
|
-
var baseStyles =
|
|
3160
|
+
var import_react7 = require("@emotion/react");
|
|
3161
|
+
var import_jsx_runtime198 = require("@emotion/react/jsx-runtime");
|
|
3162
|
+
var baseStyles = import_react7.css`
|
|
3149
3163
|
width: 100%;
|
|
3150
3164
|
margin: 0 auto;
|
|
3151
3165
|
padding-left: 1rem;
|
|
@@ -3167,7 +3181,7 @@ var baseStyles = import_react6.css`
|
|
|
3167
3181
|
max-width: ${screens.xl};
|
|
3168
3182
|
}
|
|
3169
3183
|
`;
|
|
3170
|
-
var fullWidthStyles =
|
|
3184
|
+
var fullWidthStyles = import_react7.css`
|
|
3171
3185
|
${media.sm} {
|
|
3172
3186
|
max-width: 100%;
|
|
3173
3187
|
}
|
|
@@ -3178,7 +3192,7 @@ var Container = ({
|
|
|
3178
3192
|
isFullWidth = false,
|
|
3179
3193
|
...props
|
|
3180
3194
|
}) => {
|
|
3181
|
-
return /* @__PURE__ */ (0,
|
|
3195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
3182
3196
|
Box_default,
|
|
3183
3197
|
{
|
|
3184
3198
|
css: [baseStyles, isFullWidth && fullWidthStyles],
|
|
@@ -3214,9 +3228,9 @@ var resolveColor = (colorToken) => {
|
|
|
3214
3228
|
};
|
|
3215
3229
|
|
|
3216
3230
|
// src/Typography/Heading.styles.ts
|
|
3217
|
-
var
|
|
3231
|
+
var import_react8 = require("@emotion/react");
|
|
3218
3232
|
var { fontWeights: fontWeights2, media: media2 } = ThemeTokens;
|
|
3219
|
-
var headingXl =
|
|
3233
|
+
var headingXl = import_react8.css`
|
|
3220
3234
|
letter-spacing: 0;
|
|
3221
3235
|
font-size: 32px;
|
|
3222
3236
|
line-height: 40px;
|
|
@@ -3234,7 +3248,7 @@ var headingXl = import_react7.css`
|
|
|
3234
3248
|
line-height: 72px;
|
|
3235
3249
|
}
|
|
3236
3250
|
`;
|
|
3237
|
-
var headingLg =
|
|
3251
|
+
var headingLg = import_react8.css`
|
|
3238
3252
|
letter-spacing: 0;
|
|
3239
3253
|
font-size: 28px;
|
|
3240
3254
|
line-height: 32px;
|
|
@@ -3252,7 +3266,7 @@ var headingLg = import_react7.css`
|
|
|
3252
3266
|
line-height: 56px;
|
|
3253
3267
|
}
|
|
3254
3268
|
`;
|
|
3255
|
-
var headingMd =
|
|
3269
|
+
var headingMd = import_react8.css`
|
|
3256
3270
|
letter-spacing: 0;
|
|
3257
3271
|
font-size: 24px;
|
|
3258
3272
|
line-height: 28px;
|
|
@@ -3270,7 +3284,7 @@ var headingMd = import_react7.css`
|
|
|
3270
3284
|
line-height: 48px;
|
|
3271
3285
|
}
|
|
3272
3286
|
`;
|
|
3273
|
-
var headingSm =
|
|
3287
|
+
var headingSm = import_react8.css`
|
|
3274
3288
|
letter-spacing: 0;
|
|
3275
3289
|
font-size: 24px;
|
|
3276
3290
|
line-height: 24px;
|
|
@@ -3288,7 +3302,7 @@ var headingSm = import_react7.css`
|
|
|
3288
3302
|
line-height: 40px;
|
|
3289
3303
|
}
|
|
3290
3304
|
`;
|
|
3291
|
-
var headingXs =
|
|
3305
|
+
var headingXs = import_react8.css`
|
|
3292
3306
|
letter-spacing: 0;
|
|
3293
3307
|
font-size: 20px;
|
|
3294
3308
|
line-height: 24px;
|
|
@@ -3306,7 +3320,7 @@ var headingXs = import_react7.css`
|
|
|
3306
3320
|
line-height: 28px;
|
|
3307
3321
|
}
|
|
3308
3322
|
`;
|
|
3309
|
-
var heading2xs =
|
|
3323
|
+
var heading2xs = import_react8.css`
|
|
3310
3324
|
letter-spacing: 0;
|
|
3311
3325
|
font-size: 20px;
|
|
3312
3326
|
line-height: 24px;
|
|
@@ -3324,37 +3338,37 @@ var heading2xs = import_react7.css`
|
|
|
3324
3338
|
line-height: 24px;
|
|
3325
3339
|
}
|
|
3326
3340
|
`;
|
|
3327
|
-
var headingUppercase =
|
|
3341
|
+
var headingUppercase = import_react8.css`
|
|
3328
3342
|
text-transform: uppercase;
|
|
3329
3343
|
`;
|
|
3330
|
-
var headingBold =
|
|
3344
|
+
var headingBold = import_react8.css`
|
|
3331
3345
|
font-weight: 500;
|
|
3332
3346
|
`;
|
|
3333
|
-
var textNormal =
|
|
3347
|
+
var textNormal = import_react8.css`
|
|
3334
3348
|
font-weight: ${fontWeights2.normal};
|
|
3335
3349
|
`;
|
|
3336
|
-
var textSemibold =
|
|
3350
|
+
var textSemibold = import_react8.css`
|
|
3337
3351
|
font-weight: ${fontWeights2.medium};
|
|
3338
3352
|
`;
|
|
3339
|
-
var textBold =
|
|
3353
|
+
var textBold = import_react8.css`
|
|
3340
3354
|
font-weight: ${fontWeights2.bold};
|
|
3341
3355
|
`;
|
|
3342
|
-
var textExtrabold =
|
|
3356
|
+
var textExtrabold = import_react8.css`
|
|
3343
3357
|
font-weight: ${fontWeights2.bolder};
|
|
3344
3358
|
`;
|
|
3345
|
-
var wrapPretty =
|
|
3359
|
+
var wrapPretty = import_react8.css`
|
|
3346
3360
|
text-wrap: pretty;
|
|
3347
3361
|
`;
|
|
3348
|
-
var wrapBalance =
|
|
3362
|
+
var wrapBalance = import_react8.css`
|
|
3349
3363
|
text-wrap: balance;
|
|
3350
3364
|
`;
|
|
3351
|
-
var wrapNowrap =
|
|
3365
|
+
var wrapNowrap = import_react8.css`
|
|
3352
3366
|
text-wrap: nowrap;
|
|
3353
3367
|
`;
|
|
3354
|
-
var wrapWrap =
|
|
3368
|
+
var wrapWrap = import_react8.css`
|
|
3355
3369
|
text-wrap: wrap;
|
|
3356
3370
|
`;
|
|
3357
|
-
var wrapStable =
|
|
3371
|
+
var wrapStable = import_react8.css`
|
|
3358
3372
|
text-wrap: stable;
|
|
3359
3373
|
`;
|
|
3360
3374
|
var headingSizeStyles = {
|
|
@@ -3380,7 +3394,7 @@ var textFontWeightStyles = {
|
|
|
3380
3394
|
};
|
|
3381
3395
|
|
|
3382
3396
|
// src/Typography/Heading.tsx
|
|
3383
|
-
var
|
|
3397
|
+
var import_jsx_runtime199 = require("@emotion/react/jsx-runtime");
|
|
3384
3398
|
var SIZE_TO_ELEMENT_MAP = {
|
|
3385
3399
|
xl: "h1",
|
|
3386
3400
|
lg: "h2",
|
|
@@ -3410,7 +3424,7 @@ var Heading = ({
|
|
|
3410
3424
|
...props
|
|
3411
3425
|
}) => {
|
|
3412
3426
|
const elementType = as != null ? as : SIZE_TO_ELEMENT_MAP[size];
|
|
3413
|
-
return /* @__PURE__ */ (0,
|
|
3427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
|
|
3414
3428
|
StyledHeading,
|
|
3415
3429
|
{
|
|
3416
3430
|
as: elementType,
|
|
@@ -3432,9 +3446,9 @@ var Heading_default = Heading;
|
|
|
3432
3446
|
var import_styled3 = __toESM(require("@emotion/styled"));
|
|
3433
3447
|
|
|
3434
3448
|
// src/Typography/Text.styles.ts
|
|
3435
|
-
var
|
|
3449
|
+
var import_react9 = require("@emotion/react");
|
|
3436
3450
|
var { fontWeights: fontWeights3, media: media3 } = ThemeTokens;
|
|
3437
|
-
var textMd =
|
|
3451
|
+
var textMd = import_react9.css`
|
|
3438
3452
|
font-size: 16px;
|
|
3439
3453
|
line-height: 22px;
|
|
3440
3454
|
letter-spacing: 0;
|
|
@@ -3452,7 +3466,7 @@ var textMd = import_react8.css`
|
|
|
3452
3466
|
line-height: 22px;
|
|
3453
3467
|
}
|
|
3454
3468
|
`;
|
|
3455
|
-
var textSm =
|
|
3469
|
+
var textSm = import_react9.css`
|
|
3456
3470
|
font-size: 14px;
|
|
3457
3471
|
line-height: 20px;
|
|
3458
3472
|
letter-spacing: 0;
|
|
@@ -3470,7 +3484,7 @@ var textSm = import_react8.css`
|
|
|
3470
3484
|
line-height: 20px;
|
|
3471
3485
|
}
|
|
3472
3486
|
`;
|
|
3473
|
-
var textXs =
|
|
3487
|
+
var textXs = import_react9.css`
|
|
3474
3488
|
font-size: 14px;
|
|
3475
3489
|
line-height: 16px;
|
|
3476
3490
|
letter-spacing: 0;
|
|
@@ -3488,7 +3502,7 @@ var textXs = import_react8.css`
|
|
|
3488
3502
|
line-height: 16px;
|
|
3489
3503
|
}
|
|
3490
3504
|
`;
|
|
3491
|
-
var text2xs =
|
|
3505
|
+
var text2xs = import_react9.css`
|
|
3492
3506
|
font-size: 10px;
|
|
3493
3507
|
line-height: 24px;
|
|
3494
3508
|
letter-spacing: 0;
|
|
@@ -3506,34 +3520,34 @@ var text2xs = import_react8.css`
|
|
|
3506
3520
|
line-height: 14px;
|
|
3507
3521
|
}
|
|
3508
3522
|
`;
|
|
3509
|
-
var textNormal2 =
|
|
3523
|
+
var textNormal2 = import_react9.css`
|
|
3510
3524
|
font-weight: ${fontWeights3.normal};
|
|
3511
3525
|
`;
|
|
3512
|
-
var textSemibold2 =
|
|
3526
|
+
var textSemibold2 = import_react9.css`
|
|
3513
3527
|
font-weight: ${fontWeights3.medium};
|
|
3514
3528
|
`;
|
|
3515
|
-
var textBold2 =
|
|
3529
|
+
var textBold2 = import_react9.css`
|
|
3516
3530
|
font-weight: ${fontWeights3.bold};
|
|
3517
3531
|
`;
|
|
3518
|
-
var textExtrabold2 =
|
|
3532
|
+
var textExtrabold2 = import_react9.css`
|
|
3519
3533
|
font-weight: ${fontWeights3.bolder};
|
|
3520
3534
|
`;
|
|
3521
|
-
var textUppercase =
|
|
3535
|
+
var textUppercase = import_react9.css`
|
|
3522
3536
|
text-transform: uppercase;
|
|
3523
3537
|
`;
|
|
3524
|
-
var wrapPretty2 =
|
|
3538
|
+
var wrapPretty2 = import_react9.css`
|
|
3525
3539
|
text-wrap: pretty;
|
|
3526
3540
|
`;
|
|
3527
|
-
var wrapBalance2 =
|
|
3541
|
+
var wrapBalance2 = import_react9.css`
|
|
3528
3542
|
text-wrap: balance;
|
|
3529
3543
|
`;
|
|
3530
|
-
var wrapNowrap2 =
|
|
3544
|
+
var wrapNowrap2 = import_react9.css`
|
|
3531
3545
|
text-wrap: nowrap;
|
|
3532
3546
|
`;
|
|
3533
|
-
var wrapWrap2 =
|
|
3547
|
+
var wrapWrap2 = import_react9.css`
|
|
3534
3548
|
text-wrap: wrap;
|
|
3535
3549
|
`;
|
|
3536
|
-
var wrapStable2 =
|
|
3550
|
+
var wrapStable2 = import_react9.css`
|
|
3537
3551
|
text-wrap: stable;
|
|
3538
3552
|
`;
|
|
3539
3553
|
var textSizeStyles = {
|
|
@@ -3557,7 +3571,7 @@ var textWrapStyles2 = {
|
|
|
3557
3571
|
};
|
|
3558
3572
|
|
|
3559
3573
|
// src/Typography/Text.tsx
|
|
3560
|
-
var
|
|
3574
|
+
var import_jsx_runtime200 = require("@emotion/react/jsx-runtime");
|
|
3561
3575
|
var StyledText = (0, import_styled3.default)("p")`
|
|
3562
3576
|
${({ size = "md" }) => textSizeStyles[size]}
|
|
3563
3577
|
${({ fontWeight = "normal" }) => textFontWeightStyles2[fontWeight]}
|
|
@@ -3579,7 +3593,7 @@ var Text = ({
|
|
|
3579
3593
|
...props
|
|
3580
3594
|
}) => {
|
|
3581
3595
|
const elementType = as;
|
|
3582
|
-
return /* @__PURE__ */ (0,
|
|
3596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
3583
3597
|
StyledText,
|
|
3584
3598
|
{
|
|
3585
3599
|
as: elementType,
|
|
@@ -3598,7 +3612,7 @@ var Text = ({
|
|
|
3598
3612
|
var Text_default = Text;
|
|
3599
3613
|
|
|
3600
3614
|
// src/IconLabel/IconLabel.tsx
|
|
3601
|
-
var
|
|
3615
|
+
var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
|
|
3602
3616
|
var IconLabel = ({
|
|
3603
3617
|
variant,
|
|
3604
3618
|
label,
|
|
@@ -3606,7 +3620,7 @@ var IconLabel = ({
|
|
|
3606
3620
|
className,
|
|
3607
3621
|
...rest
|
|
3608
3622
|
}) => {
|
|
3609
|
-
return /* @__PURE__ */ (0,
|
|
3623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
|
|
3610
3624
|
Box_default,
|
|
3611
3625
|
{
|
|
3612
3626
|
display: "flex",
|
|
@@ -3615,8 +3629,8 @@ var IconLabel = ({
|
|
|
3615
3629
|
className,
|
|
3616
3630
|
...rest,
|
|
3617
3631
|
children: [
|
|
3618
|
-
/* @__PURE__ */ (0,
|
|
3619
|
-
/* @__PURE__ */ (0,
|
|
3632
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Icon_default, { variant, size: iconSize }),
|
|
3633
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Text_default, { size: "xs", children: label })
|
|
3620
3634
|
]
|
|
3621
3635
|
}
|
|
3622
3636
|
);
|
|
@@ -3624,13 +3638,13 @@ var IconLabel = ({
|
|
|
3624
3638
|
var IconLabel_default = IconLabel;
|
|
3625
3639
|
|
|
3626
3640
|
// src/AIResponse/AIResponse.styles.ts
|
|
3627
|
-
var
|
|
3628
|
-
var rootStyles2 =
|
|
3641
|
+
var import_react10 = require("@emotion/react");
|
|
3642
|
+
var rootStyles2 = import_react10.css`
|
|
3629
3643
|
display: flex;
|
|
3630
3644
|
flex-direction: column;
|
|
3631
3645
|
gap: var(--spacing-4);
|
|
3632
3646
|
`;
|
|
3633
|
-
var getBannerStyles = (variant) =>
|
|
3647
|
+
var getBannerStyles = (variant) => import_react10.css`
|
|
3634
3648
|
background-color: ${variant === "error" ? "var(--surface-error)" : "var(--surface-neutral)"};
|
|
3635
3649
|
border: ${variant === "error" ? "1px solid var(--border-error)" : "none"};
|
|
3636
3650
|
border-radius: var(--radius-lg);
|
|
@@ -3640,23 +3654,23 @@ var getBannerStyles = (variant) => import_react9.css`
|
|
|
3640
3654
|
gap: var(--spacing-5);
|
|
3641
3655
|
min-width: 335px;
|
|
3642
3656
|
`;
|
|
3643
|
-
var footerStyles =
|
|
3657
|
+
var footerStyles = import_react10.css`
|
|
3644
3658
|
display: flex;
|
|
3645
3659
|
gap: var(--spacing-4);
|
|
3646
3660
|
align-items: center;
|
|
3647
3661
|
`;
|
|
3648
|
-
var actionsStyles =
|
|
3662
|
+
var actionsStyles = import_react10.css`
|
|
3649
3663
|
display: flex;
|
|
3650
3664
|
align-items: center;
|
|
3651
3665
|
gap: var(--spacing-2);
|
|
3652
3666
|
`;
|
|
3653
|
-
var errorRetryStyles =
|
|
3667
|
+
var errorRetryStyles = import_react10.css`
|
|
3654
3668
|
display: flex;
|
|
3655
3669
|
align-items: center;
|
|
3656
3670
|
`;
|
|
3657
3671
|
|
|
3658
3672
|
// src/AIResponse/AIResponse.tsx
|
|
3659
|
-
var
|
|
3673
|
+
var import_jsx_runtime202 = require("@emotion/react/jsx-runtime");
|
|
3660
3674
|
var AIResponse = ({
|
|
3661
3675
|
title = `Here\u2019s what I found`,
|
|
3662
3676
|
showDisclaimer = true,
|
|
@@ -3669,10 +3683,10 @@ var AIResponse = ({
|
|
|
3669
3683
|
onErrorRetry,
|
|
3670
3684
|
helpfulDebounceMs = 1e3
|
|
3671
3685
|
}) => {
|
|
3672
|
-
const [visualHelpful, setVisualHelpful] = (0,
|
|
3686
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react11.useState)(
|
|
3673
3687
|
void 0
|
|
3674
3688
|
);
|
|
3675
|
-
const debounceTimerRef = (0,
|
|
3689
|
+
const debounceTimerRef = (0, import_react11.useRef)(null);
|
|
3676
3690
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
3677
3691
|
const scheduleCallback = (next) => {
|
|
3678
3692
|
if (debounceTimerRef.current) {
|
|
@@ -3699,18 +3713,18 @@ var AIResponse = ({
|
|
|
3699
3713
|
setVisualHelpful(next);
|
|
3700
3714
|
scheduleCallback(next);
|
|
3701
3715
|
};
|
|
3702
|
-
(0,
|
|
3716
|
+
(0, import_react11.useEffect)(() => {
|
|
3703
3717
|
return () => {
|
|
3704
3718
|
if (debounceTimerRef.current) {
|
|
3705
3719
|
clearTimeout(debounceTimerRef.current);
|
|
3706
3720
|
}
|
|
3707
3721
|
};
|
|
3708
3722
|
}, []);
|
|
3709
|
-
return /* @__PURE__ */ (0,
|
|
3710
|
-
variant !== "error" && /* @__PURE__ */ (0,
|
|
3711
|
-
/* @__PURE__ */ (0,
|
|
3712
|
-
/* @__PURE__ */ (0,
|
|
3713
|
-
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0,
|
|
3723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { className, css: rootStyles2, children: [
|
|
3724
|
+
variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
3725
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: getBannerStyles(variant), children: [
|
|
3726
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: variant === "error" ? "An error occurred while generating your summary. Please try again." : children }),
|
|
3727
|
+
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3714
3728
|
IconLabel_default,
|
|
3715
3729
|
{
|
|
3716
3730
|
variant: "AiMagic",
|
|
@@ -3718,19 +3732,19 @@ var AIResponse = ({
|
|
|
3718
3732
|
iconSize: 10
|
|
3719
3733
|
}
|
|
3720
3734
|
),
|
|
3721
|
-
variant === "error" && /* @__PURE__ */ (0,
|
|
3735
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
|
|
3722
3736
|
] }),
|
|
3723
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
3724
|
-
/* @__PURE__ */ (0,
|
|
3725
|
-
/* @__PURE__ */ (0,
|
|
3726
|
-
/* @__PURE__ */ (0,
|
|
3737
|
+
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: footerStyles, children: [
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "Was this helpful?" }),
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: actionsStyles, children: [
|
|
3740
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3727
3741
|
Button_default,
|
|
3728
3742
|
{
|
|
3729
3743
|
variant: "text",
|
|
3730
3744
|
size: "xs",
|
|
3731
3745
|
onClick: handleHelpfulYes,
|
|
3732
3746
|
"aria-pressed": visualHelpful === "yes",
|
|
3733
|
-
children: /* @__PURE__ */ (0,
|
|
3747
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3734
3748
|
IconLabel_default,
|
|
3735
3749
|
{
|
|
3736
3750
|
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
@@ -3739,14 +3753,14 @@ var AIResponse = ({
|
|
|
3739
3753
|
)
|
|
3740
3754
|
}
|
|
3741
3755
|
),
|
|
3742
|
-
/* @__PURE__ */ (0,
|
|
3756
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3743
3757
|
Button_default,
|
|
3744
3758
|
{
|
|
3745
3759
|
variant: "text",
|
|
3746
3760
|
size: "xs",
|
|
3747
3761
|
onClick: handleHelpfulNo,
|
|
3748
3762
|
"aria-pressed": visualHelpful === "no",
|
|
3749
|
-
children: /* @__PURE__ */ (0,
|
|
3763
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3750
3764
|
IconLabel_default,
|
|
3751
3765
|
{
|
|
3752
3766
|
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
@@ -3762,34 +3776,34 @@ var AIResponse = ({
|
|
|
3762
3776
|
var AIResponse_default = AIResponse;
|
|
3763
3777
|
|
|
3764
3778
|
// src/AvailabilityChip/AvailabilityChip.styles.ts
|
|
3765
|
-
var
|
|
3779
|
+
var import_react12 = require("@emotion/react");
|
|
3766
3780
|
var availabilityChipVariantStyles = {
|
|
3767
|
-
primary:
|
|
3781
|
+
primary: import_react12.css`
|
|
3768
3782
|
background-color: var(--color-primary-100);
|
|
3769
3783
|
color: var(--text-primary);
|
|
3770
3784
|
`,
|
|
3771
|
-
error:
|
|
3785
|
+
error: import_react12.css`
|
|
3772
3786
|
background-color: var(--surface-error);
|
|
3773
3787
|
color: var(--text-error);
|
|
3774
3788
|
`,
|
|
3775
|
-
action:
|
|
3789
|
+
action: import_react12.css`
|
|
3776
3790
|
background-color: var(--surface-action-2);
|
|
3777
3791
|
color: var(--text-primary);
|
|
3778
3792
|
`,
|
|
3779
|
-
warning:
|
|
3793
|
+
warning: import_react12.css`
|
|
3780
3794
|
background-color: var(--color-brown-200);
|
|
3781
3795
|
color: var(--text-primary);
|
|
3782
3796
|
`
|
|
3783
3797
|
};
|
|
3784
3798
|
|
|
3785
3799
|
// src/AvailabilityChip/AvailabilityChip.tsx
|
|
3786
|
-
var
|
|
3800
|
+
var import_jsx_runtime203 = require("@emotion/react/jsx-runtime");
|
|
3787
3801
|
var AvailabilityChip = ({
|
|
3788
3802
|
children,
|
|
3789
3803
|
variant,
|
|
3790
3804
|
className
|
|
3791
3805
|
}) => {
|
|
3792
|
-
return /* @__PURE__ */ (0,
|
|
3806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
3793
3807
|
Box_default,
|
|
3794
3808
|
{
|
|
3795
3809
|
display: "inline-flex",
|
|
@@ -3799,7 +3813,7 @@ var AvailabilityChip = ({
|
|
|
3799
3813
|
borderRadius: "var(--spacing-2)",
|
|
3800
3814
|
css: availabilityChipVariantStyles[variant],
|
|
3801
3815
|
className,
|
|
3802
|
-
children: /* @__PURE__ */ (0,
|
|
3816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3803
3817
|
}
|
|
3804
3818
|
);
|
|
3805
3819
|
};
|
|
@@ -3813,8 +3827,8 @@ var import_styled4 = __toESM(require("@emotion/styled"));
|
|
|
3813
3827
|
var import_styled_system2 = require("styled-system");
|
|
3814
3828
|
|
|
3815
3829
|
// src/Divider/Divider.styles.ts
|
|
3816
|
-
var
|
|
3817
|
-
var dividerStyles =
|
|
3830
|
+
var import_react13 = require("@emotion/react");
|
|
3831
|
+
var dividerStyles = import_react13.css`
|
|
3818
3832
|
width: 100%;
|
|
3819
3833
|
height: 1px;
|
|
3820
3834
|
border: 0;
|
|
@@ -3822,28 +3836,28 @@ var dividerStyles = import_react12.css`
|
|
|
3822
3836
|
`;
|
|
3823
3837
|
|
|
3824
3838
|
// src/Divider/Divider.tsx
|
|
3825
|
-
var
|
|
3839
|
+
var import_jsx_runtime204 = require("@emotion/react/jsx-runtime");
|
|
3826
3840
|
var StyledHr = import_styled4.default.hr`
|
|
3827
3841
|
${dividerStyles}
|
|
3828
3842
|
${import_styled_system2.space}
|
|
3829
3843
|
`;
|
|
3830
3844
|
var Divider = ({ className, ...rest }) => {
|
|
3831
|
-
return /* @__PURE__ */ (0,
|
|
3845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(StyledHr, { className, ...rest });
|
|
3832
3846
|
};
|
|
3833
3847
|
var Divider_default = Divider;
|
|
3834
3848
|
|
|
3835
3849
|
// src/Form/TextArea.tsx
|
|
3836
|
-
var
|
|
3837
|
-
var
|
|
3850
|
+
var import_react15 = require("@emotion/react");
|
|
3851
|
+
var import_react16 = require("react");
|
|
3838
3852
|
|
|
3839
3853
|
// src/Form/TextArea.styles.ts
|
|
3840
|
-
var
|
|
3841
|
-
var wrapperStyles =
|
|
3854
|
+
var import_react14 = require("@emotion/react");
|
|
3855
|
+
var wrapperStyles = import_react14.css`
|
|
3842
3856
|
position: relative;
|
|
3843
3857
|
display: inline-block;
|
|
3844
3858
|
width: 100%;
|
|
3845
3859
|
`;
|
|
3846
|
-
var textareaBase =
|
|
3860
|
+
var textareaBase = import_react14.css`
|
|
3847
3861
|
width: 100%;
|
|
3848
3862
|
box-sizing: border-box;
|
|
3849
3863
|
font: inherit;
|
|
@@ -3877,32 +3891,32 @@ var textareaBase = import_react13.css`
|
|
|
3877
3891
|
cursor: default;
|
|
3878
3892
|
}
|
|
3879
3893
|
`;
|
|
3880
|
-
var variantError =
|
|
3894
|
+
var variantError = import_react14.css`
|
|
3881
3895
|
border-color: var(--border-error);
|
|
3882
3896
|
&:focus {
|
|
3883
3897
|
border-color: var(--border-error);
|
|
3884
3898
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
3885
3899
|
}
|
|
3886
3900
|
`;
|
|
3887
|
-
var variantSuccess =
|
|
3901
|
+
var variantSuccess = import_react14.css`
|
|
3888
3902
|
border-color: var(--color-success-500);
|
|
3889
3903
|
&:focus {
|
|
3890
3904
|
border-color: var(--color-success-500);
|
|
3891
3905
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
3892
3906
|
}
|
|
3893
3907
|
`;
|
|
3894
|
-
var submitButtonContainer =
|
|
3908
|
+
var submitButtonContainer = import_react14.css`
|
|
3895
3909
|
position: absolute;
|
|
3896
3910
|
right: var(--spacing-4);
|
|
3897
3911
|
bottom: var(--spacing-4);
|
|
3898
3912
|
`;
|
|
3899
|
-
var textareaWithSubmit =
|
|
3913
|
+
var textareaWithSubmit = import_react14.css`
|
|
3900
3914
|
padding-right: var(--spacing-16);
|
|
3901
3915
|
`;
|
|
3902
3916
|
|
|
3903
3917
|
// src/Form/TextArea.tsx
|
|
3904
|
-
var
|
|
3905
|
-
var TextArea = (0,
|
|
3918
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
3919
|
+
var TextArea = (0, import_react16.forwardRef)(
|
|
3906
3920
|
({
|
|
3907
3921
|
rows = 3,
|
|
3908
3922
|
variant = "default",
|
|
@@ -3922,8 +3936,8 @@ var TextArea = (0, import_react15.forwardRef)(
|
|
|
3922
3936
|
submitOnEnter = true,
|
|
3923
3937
|
...props
|
|
3924
3938
|
}, ref) => {
|
|
3925
|
-
const innerRef = (0,
|
|
3926
|
-
(0,
|
|
3939
|
+
const innerRef = (0, import_react16.useRef)(null);
|
|
3940
|
+
(0, import_react16.useEffect)(() => {
|
|
3927
3941
|
const el = innerRef.current;
|
|
3928
3942
|
if (!el || !autoExpand)
|
|
3929
3943
|
return;
|
|
@@ -3959,8 +3973,8 @@ var TextArea = (0, import_react15.forwardRef)(
|
|
|
3959
3973
|
onSubmit();
|
|
3960
3974
|
}
|
|
3961
3975
|
};
|
|
3962
|
-
return /* @__PURE__ */ (0,
|
|
3963
|
-
/* @__PURE__ */ (0,
|
|
3976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { css: wrapperStyles, children: [
|
|
3977
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
3964
3978
|
"textarea",
|
|
3965
3979
|
{
|
|
3966
3980
|
ref: (node) => {
|
|
@@ -3977,7 +3991,7 @@ var TextArea = (0, import_react15.forwardRef)(
|
|
|
3977
3991
|
textareaBase,
|
|
3978
3992
|
variant === "error" && variantError,
|
|
3979
3993
|
variant === "success" && variantSuccess,
|
|
3980
|
-
|
|
3994
|
+
import_react15.css`
|
|
3981
3995
|
resize: ${resize};
|
|
3982
3996
|
`,
|
|
3983
3997
|
showSubmit && textareaWithSubmit
|
|
@@ -3990,14 +4004,14 @@ var TextArea = (0, import_react15.forwardRef)(
|
|
|
3990
4004
|
...props
|
|
3991
4005
|
}
|
|
3992
4006
|
),
|
|
3993
|
-
showSubmit && /* @__PURE__ */ (0,
|
|
4007
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
3994
4008
|
Button_default,
|
|
3995
4009
|
{
|
|
3996
4010
|
size: "xs",
|
|
3997
4011
|
"aria-label": submitAriaLabel,
|
|
3998
4012
|
onClick: onSubmit,
|
|
3999
4013
|
disabled: disabled || submitDisabled,
|
|
4000
|
-
icon: /* @__PURE__ */ (0,
|
|
4014
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4001
4015
|
Icon_default,
|
|
4002
4016
|
{
|
|
4003
4017
|
variant: "PaperPlane",
|
|
@@ -4014,14 +4028,14 @@ TextArea.displayName = "TextArea";
|
|
|
4014
4028
|
var TextArea_default = TextArea;
|
|
4015
4029
|
|
|
4016
4030
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
4017
|
-
var
|
|
4018
|
-
var getRootStyles = (variant) =>
|
|
4031
|
+
var import_react17 = require("@emotion/react");
|
|
4032
|
+
var getRootStyles = (variant) => import_react17.css`
|
|
4019
4033
|
display: flex;
|
|
4020
4034
|
flex-direction: column;
|
|
4021
4035
|
gap: var(--spacing-1);
|
|
4022
4036
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4023
4037
|
`;
|
|
4024
|
-
var getBubbleStyles = (variant) =>
|
|
4038
|
+
var getBubbleStyles = (variant) => import_react17.css`
|
|
4025
4039
|
max-width: 100%;
|
|
4026
4040
|
width: 100%;
|
|
4027
4041
|
box-sizing: border-box;
|
|
@@ -4038,22 +4052,22 @@ var getBubbleStyles = (variant) => import_react16.css`
|
|
|
4038
4052
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4039
4053
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4040
4054
|
`;
|
|
4041
|
-
var contentStyles =
|
|
4055
|
+
var contentStyles = import_react17.css`
|
|
4042
4056
|
flex: 1 1 auto;
|
|
4043
4057
|
min-width: 1px;
|
|
4044
4058
|
min-height: 1px;
|
|
4045
4059
|
`;
|
|
4046
4060
|
|
|
4047
4061
|
// src/MessageBubble/MessageBubble.tsx
|
|
4048
|
-
var
|
|
4062
|
+
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4049
4063
|
var MessageBubble = ({
|
|
4050
4064
|
variant = "sent",
|
|
4051
4065
|
timestamp,
|
|
4052
4066
|
className,
|
|
4053
4067
|
children
|
|
4054
4068
|
}) => {
|
|
4055
|
-
return /* @__PURE__ */ (0,
|
|
4056
|
-
timestamp && /* @__PURE__ */ (0,
|
|
4069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
4070
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4057
4071
|
Text_default,
|
|
4058
4072
|
{
|
|
4059
4073
|
size: "xs",
|
|
@@ -4062,42 +4076,11 @@ var MessageBubble = ({
|
|
|
4062
4076
|
children: timestamp
|
|
4063
4077
|
}
|
|
4064
4078
|
),
|
|
4065
|
-
/* @__PURE__ */ (0,
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: contentStyles, children }) })
|
|
4066
4080
|
] });
|
|
4067
4081
|
};
|
|
4068
4082
|
var MessageBubble_default = MessageBubble;
|
|
4069
4083
|
|
|
4070
|
-
// src/Spinner/Spinner.styles.ts
|
|
4071
|
-
var import_react17 = require("@emotion/react");
|
|
4072
|
-
var spinnerStyles2 = import_react17.css`
|
|
4073
|
-
animation: lt-spin 1s linear infinite;
|
|
4074
|
-
|
|
4075
|
-
@keyframes lt-spin {
|
|
4076
|
-
from {
|
|
4077
|
-
transform: rotate(0deg);
|
|
4078
|
-
}
|
|
4079
|
-
to {
|
|
4080
|
-
transform: rotate(360deg);
|
|
4081
|
-
}
|
|
4082
|
-
}
|
|
4083
|
-
`;
|
|
4084
|
-
|
|
4085
|
-
// src/Spinner/Spinner.tsx
|
|
4086
|
-
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4087
|
-
var Spinner = ({ size = 5, className, fill }) => {
|
|
4088
|
-
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4089
|
-
Icon_default,
|
|
4090
|
-
{
|
|
4091
|
-
variant: "Spinner",
|
|
4092
|
-
size,
|
|
4093
|
-
className,
|
|
4094
|
-
css: spinnerStyles2,
|
|
4095
|
-
fill
|
|
4096
|
-
}
|
|
4097
|
-
);
|
|
4098
|
-
};
|
|
4099
|
-
var Spinner_default2 = Spinner;
|
|
4100
|
-
|
|
4101
4084
|
// src/Widget/Widget.tsx
|
|
4102
4085
|
var import_react19 = require("react");
|
|
4103
4086
|
|