@gobolt/genesis 0.6.1 → 0.6.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.
@@ -1,7 +1,7 @@
1
1
  import { default as React, MouseEvent } from 'react';
2
2
  import { ButtonProps as AntButtonProperties } from 'antd/es/button';
3
3
  import { STATE } from '../../constants';
4
- type ButtonThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
4
+ type ButtonThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon" | "password";
5
5
  export interface ButtonProps extends Omit<AntButtonProperties, "type" | "size"> {
6
6
  onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
7
7
  children?: React.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
2
2
  interface StyledIconButtonProperties {
3
3
  theme?: GenesisTheme;
4
- $themeType?: "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
4
+ $themeType?: "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon" | "password";
5
5
  $state?: "active" | "hover" | "pressed" | "focus" | "disabled" | "selected";
6
6
  children?: React.ReactNode;
7
7
  $isIconButton?: boolean;
@@ -2,7 +2,7 @@ import { ButtonProps as AntButtonProperties } from 'antd/es/button';
2
2
  import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
3
3
  interface StyledButtonProperties extends Omit<AntButtonProperties, "type" | "size"> {
4
4
  theme?: GenesisTheme;
5
- $themeType?: "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
5
+ $themeType?: "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon" | "password";
6
6
  $state?: "active" | "hover" | "pressed" | "focus" | "disabled" | "selected";
7
7
  children?: React.ReactNode;
8
8
  $isIconButton?: boolean;
@@ -8,6 +8,7 @@ export interface InputProps extends BaseInputProps {
8
8
  size?: "normal" | "small" | "large";
9
9
  onChange?: (actionEvent: InputEvent) => void;
10
10
  value?: string;
11
+ rest?: HTMLInputElement;
11
12
  }
12
13
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
13
14
  export default Input;
@@ -0,0 +1,3 @@
1
+ export declare const StyledFormInput: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<import('..').InputProps & import('react').RefAttributes<import('rc-input').InputRef>, "ref"> & {
2
+ ref?: ((instance: import('rc-input').InputRef | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<import('rc-input').InputRef> | null | undefined;
3
+ }, never>> & string & Omit<import('react').ForwardRefExoticComponent<import('..').InputProps & import('react').RefAttributes<import('rc-input').InputRef>>, keyof import('react').Component<any, {}, any>>;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { STATE } from '../../constants';
3
3
  import { GenesisTheme } from '../../styles/theme/genesis-theme.types';
4
- type ThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
4
+ type ThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon" | "password";
5
5
  type Variant = "none" | "simple";
6
6
  interface SelectTriggerProperties {
7
7
  type?: ThemeType;
@@ -5,11 +5,12 @@ interface TypographyStyledProperties {
5
5
  $themeType?: keyof typeof TYPE;
6
6
  variant?: string;
7
7
  state?: keyof typeof STATE;
8
- breakpoint?: string;
9
8
  color?: string;
10
9
  fontWeight?: number;
11
10
  fontSize?: string;
12
11
  $isFullWidth?: boolean;
12
+ $letterSpacing?: string;
13
+ $lineHeight?: string;
13
14
  }
14
15
  export declare const Headline: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<Omit<import('antd/es/typography/Title').TitleProps & import('react').RefAttributes<HTMLElement>, "ref"> & {
15
16
  ref?: ((instance: HTMLElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLElement> | null | undefined;
@@ -5,6 +5,7 @@ export declare const TYPE: {
5
5
  destructive: string;
6
6
  utility: string;
7
7
  icon: string;
8
+ password: string;
8
9
  };
9
10
  export declare const BREAKPOINTS: {
10
11
  wide: string;
@@ -86,6 +87,7 @@ declare const _default: {
86
87
  destructive: string;
87
88
  utility: string;
88
89
  icon: string;
90
+ password: string;
89
91
  };
90
92
  BREAKPOINTS: {
91
93
  wide: string;
package/dist/index.cjs CHANGED
@@ -59296,36 +59296,28 @@ const Avatar$1 = styled(Avatar$2)`
59296
59296
  return getGenesisClass$d(theme, type4, state);
59297
59297
  }}
59298
59298
  `;
59299
- const getBreakpoint = (breakpoint) => {
59300
- {
59301
- return "medium";
59302
- }
59303
- };
59304
- const getVariant$2 = (typography2, variant, breakpoint) => {
59305
- return `
59306
- font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
59307
- line-height: ${typography2[getBreakpoint()][variant].lineHeight};
59308
- letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
59309
- font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
59310
- `;
59311
- };
59312
59299
  const getColor = (color2, colors2, $themeType) => {
59313
59300
  if (color2) {
59314
59301
  return color2;
59315
59302
  }
59316
- return colors2[$themeType].active.color;
59303
+ const themeColor = colors2[$themeType];
59304
+ if (themeColor?.active?.default) {
59305
+ return themeColor.active.default;
59306
+ }
59307
+ return colors2?.secondary?.active?.default || "#000000";
59317
59308
  };
59318
59309
  const getFontFamily = (variant) => {
59319
59310
  return `
59320
59311
  ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
59321
59312
  `;
59322
59313
  };
59323
- const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
59314
+ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, color2, $isFullWidth, fontSize, fontWeight, $letterSpacing, $lineHeight) => `
59324
59315
  &.ant-typography {
59325
59316
  font-family: ${getFontFamily(variant)};
59326
59317
  color: ${getColor(color2, colors2, $themeType)} !important;
59327
- ${getVariant$2(typography2, variant)}
59328
59318
  margin-bottom: 0 !important;
59319
+ letter-spacing: ${$letterSpacing} !important;
59320
+ line-height: ${$lineHeight} !important;
59329
59321
  width: ${$isFullWidth ? "100%" : "auto"};
59330
59322
  font-weight: ${fontWeight} !important;
59331
59323
  font-size: ${fontSize} !important;
@@ -59345,22 +59337,24 @@ const Headline = styled(Typography$1.Title)`
59345
59337
  $themeType,
59346
59338
  variant,
59347
59339
  state,
59348
- breakpoint,
59349
59340
  color: color2,
59350
59341
  fontSize,
59351
59342
  fontWeight,
59352
- $isFullWidth
59343
+ $isFullWidth,
59344
+ $letterSpacing,
59345
+ $lineHeight
59353
59346
  }) => {
59354
59347
  return getGenesisTypographyClass(
59355
59348
  theme,
59356
59349
  $themeType,
59357
59350
  variant,
59358
59351
  state,
59359
- breakpoint,
59360
59352
  color2,
59353
+ $isFullWidth,
59361
59354
  fontSize,
59362
59355
  fontWeight,
59363
- $isFullWidth
59356
+ $letterSpacing,
59357
+ $lineHeight
59364
59358
  );
59365
59359
  }}
59366
59360
  `;
@@ -59372,22 +59366,24 @@ const Paragraph = styled(
59372
59366
  $themeType,
59373
59367
  variant,
59374
59368
  state,
59375
- breakpoint,
59376
59369
  color: color2,
59377
59370
  $isFullWidth,
59378
59371
  fontSize,
59379
- fontWeight
59372
+ fontWeight,
59373
+ $letterSpacing,
59374
+ $lineHeight
59380
59375
  }) => {
59381
59376
  return getGenesisTypographyClass(
59382
59377
  theme,
59383
59378
  $themeType,
59384
59379
  variant,
59385
59380
  state,
59386
- breakpoint,
59387
59381
  color2,
59382
+ $isFullWidth,
59388
59383
  fontSize,
59389
59384
  fontWeight,
59390
- $isFullWidth
59385
+ $letterSpacing,
59386
+ $lineHeight
59391
59387
  );
59392
59388
  }}
59393
59389
  `;
@@ -59397,22 +59393,24 @@ const Text = styled(Typography$1.Text)`
59397
59393
  $themeType,
59398
59394
  variant,
59399
59395
  state,
59400
- breakpoint,
59401
59396
  color: color2,
59397
+ $isFullWidth,
59402
59398
  fontSize,
59403
59399
  fontWeight,
59404
- $isFullWidth
59400
+ $letterSpacing,
59401
+ $lineHeight
59405
59402
  }) => {
59406
59403
  return getGenesisTypographyClass(
59407
59404
  theme,
59408
59405
  $themeType,
59409
59406
  variant,
59410
59407
  state,
59411
- breakpoint,
59412
59408
  color2,
59409
+ $isFullWidth,
59413
59410
  fontSize,
59414
59411
  fontWeight,
59415
- $isFullWidth
59412
+ $letterSpacing,
59413
+ $lineHeight
59416
59414
  );
59417
59415
  }}
59418
59416
  `;
@@ -59842,7 +59840,8 @@ const TYPE = {
59842
59840
  tertiary: "tertiary",
59843
59841
  destructive: "destructive",
59844
59842
  utility: "utility",
59845
- icon: "icon"
59843
+ icon: "icon",
59844
+ password: "primary"
59846
59845
  };
59847
59846
  const BREAKPOINTS = {
59848
59847
  wide: "wide",
@@ -60179,14 +60178,15 @@ const ToastRow = styled.div`
60179
60178
  align-items: center;
60180
60179
  gap: ${({ theme }) => theme.sizing.Size4}px;
60181
60180
  padding: ${({ theme }) => theme.sizing.Size3}px;
60182
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60181
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60183
60182
  border-left: ${({ theme, state }) => `2px solid ${theme.colors.status[state].default}`};
60184
60183
  pointer-events: none;
60185
60184
  cursor: default;
60186
60185
  border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusXs}px;
60187
60186
  height: 56px;
60188
60187
  width: ${({ theme, state, size }) => size === "standard" ? "340px" : "240px"};
60189
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60188
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60189
+ background-color: white;
60190
60190
  box-shadow: 0px 4px 16px 0px #00000026;
60191
60191
  `;
60192
60192
  const ToastCloseButton = styled.button`
@@ -60386,7 +60386,7 @@ const Typography = ({
60386
60386
  isDisabled,
60387
60387
  ...rest
60388
60388
  }) => {
60389
- const { breakpoint } = useGenesis();
60389
+ const { breakpoint, theme } = useGenesis();
60390
60390
  if (variant.startsWith("display") || variant.startsWith("heading")) {
60391
60391
  const level = variant.split("heading")[1] || variant.split("display")[1];
60392
60392
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -60395,14 +60395,15 @@ const Typography = ({
60395
60395
  state,
60396
60396
  $themeType: themeType,
60397
60397
  variant,
60398
- breakpoint,
60399
60398
  color: color2,
60400
60399
  level: Number.parseInt(level),
60401
60400
  $isFullWidth: isFullWidth,
60402
60401
  style: style2,
60403
- fontSize,
60402
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60404
60403
  fontWeight,
60405
60404
  disabled: isDisabled,
60405
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60406
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60406
60407
  ...rest,
60407
60408
  children: children2
60408
60409
  }
@@ -60416,13 +60417,14 @@ const Typography = ({
60416
60417
  state,
60417
60418
  $themeType: themeType,
60418
60419
  variant: validVariant,
60419
- breakpoint,
60420
60420
  color: color2,
60421
60421
  $isFullWidth: isFullWidth,
60422
60422
  style: style2,
60423
60423
  disabled: isDisabled,
60424
- fontSize,
60424
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60425
60425
  fontWeight,
60426
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60427
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60426
60428
  ...rest,
60427
60429
  children: children2
60428
60430
  }
@@ -60434,13 +60436,14 @@ const Typography = ({
60434
60436
  state,
60435
60437
  $themeType: themeType,
60436
60438
  variant: validVariant,
60437
- breakpoint,
60438
60439
  color: color2,
60439
60440
  $isFullWidth: isFullWidth,
60440
60441
  style: style2,
60441
60442
  disabled: isDisabled,
60442
- fontSize,
60443
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60443
60444
  fontWeight,
60445
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60446
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60444
60447
  ...rest,
60445
60448
  children: children2
60446
60449
  }
@@ -74120,11 +74123,11 @@ const Message$1 = ({ message: message2, handle, isThinking = false }) => {
74120
74123
  /* @__PURE__ */ jsxRuntime.jsx(TextContainer, { $isBot: isBot, children: isThinking ? /* @__PURE__ */ jsxRuntime.jsx(ThinkingIndicator, {}) : handle === "bot" ? /* @__PURE__ */ jsxRuntime.jsx(Markdown, { children: message2 }) : /* @__PURE__ */ jsxRuntime.jsx(MessageText, { children: message2 }) })
74121
74124
  ] });
74122
74125
  };
74123
- const getStateColors = (colors2, type4, state) => {
74126
+ const getStateColors = (colors2, variant, state = "themeState") => {
74124
74127
  const filled = {
74125
74128
  color: colors2.inputs.onsurface.active,
74126
74129
  borderColor: colors2[TYPE.secondary].active.borderColor,
74127
- ringColor: colors2[type4]?.focussed?.ringColor
74130
+ ringColor: colors2[variant]?.focussed?.ringColor
74128
74131
  };
74129
74132
  const success = {
74130
74133
  color: colors2.status.success.default,
@@ -74140,7 +74143,7 @@ const getStateColors = (colors2, type4, state) => {
74140
74143
  color: colors2.inputs.onsurface.active,
74141
74144
  backgroundColor: colors2.inputs.surface.active,
74142
74145
  borderColor: colors2.inputs.surface.border,
74143
- ringColor: type4 && state ? colors2[type4]?.[state]?.ringColor : void 0
74146
+ ringColor: variant && state ? colors2[variant]?.[state]?.ringColor : void 0
74144
74147
  } : null;
74145
74148
  const stateMap = {
74146
74149
  filled,
@@ -74155,8 +74158,8 @@ const getStateColors = (colors2, type4, state) => {
74155
74158
  const css = stateMap[getValidKey(state)];
74156
74159
  return css;
74157
74160
  };
74158
- const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
74159
- const stateColors = getStateColors(colors2, type4, state);
74161
+ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size, variant) => {
74162
+ const stateColors = getStateColors(colors2, variant, state);
74160
74163
  const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
74161
74164
  if (hasAfterAddon2 && !hasBeforeAddon2) {
74162
74165
  return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
@@ -74180,8 +74183,8 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74180
74183
  &.ant-input.ant-input:focus-visible,
74181
74184
  &.ant-input.ant-input-focused {
74182
74185
  outline: none !important;
74183
- border-color: ${colors2[type4].focussed.borderColor} !important;
74184
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
74186
+ border-color: ${colors2[variant].focussed.borderColor} !important;
74187
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor} !important;
74185
74188
  }
74186
74189
 
74187
74190
  &.ant-input-outlined {
@@ -74197,13 +74200,13 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74197
74200
  outline: none;
74198
74201
  color: ${stateColors.color};
74199
74202
  box-shadow: none;
74200
- border-color: ${colors2[type4].focussed.borderColor};
74203
+ border-color: ${colors2[variant].focussed.borderColor};
74201
74204
  }
74202
74205
  }
74203
74206
 
74204
74207
  .ant-input-group:focus-within {
74205
74208
  outline: none;
74206
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74209
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74207
74210
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74208
74211
  transition: box-shadow 0.2s ease-in-out;
74209
74212
 
@@ -74211,7 +74214,7 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74211
74214
  .ant-input:focus-within {
74212
74215
  box-shadow: none;
74213
74216
  border-radius: 0;
74214
- border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
74217
+ border-radius: ${getBorderRadius(hasBeforeAddon || false, hasAfterAddon || false)};
74215
74218
  border-color: #ddd;
74216
74219
  }
74217
74220
  }
@@ -74222,13 +74225,13 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74222
74225
  .ant-input-group .ant-input:focus-within {
74223
74226
  outline: none;
74224
74227
  box-shadow: none;
74225
- border-color: ${colors2[type4].focussed.borderColor};
74228
+ border-color: ${colors2[variant].focussed.borderColor};
74226
74229
  }
74227
74230
 
74228
74231
  /* Single focus ring on group */
74229
74232
  .ant-input-group:focus-within {
74230
74233
  outline: none;
74231
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74234
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74232
74235
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74233
74236
  transition: box-shadow 0.2s ease-in-out;
74234
74237
  }
@@ -74237,18 +74240,18 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74237
74240
  &:not(.ant-input-group):focus-visible {
74238
74241
  outline: none;
74239
74242
  color: ${stateColors.color};
74240
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74243
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74241
74244
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74242
- border-color: ${colors2[type4].focussed.borderColor};
74245
+ border-color: ${colors2[variant].focussed.borderColor};
74243
74246
  transition: box-shadow 0.2s ease-in-out;
74244
74247
  }
74245
74248
 
74246
74249
  &:not(.ant-input-group .ant-input):focus-visible {
74247
74250
  outline: none;
74248
74251
  color: ${stateColors.color};
74249
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74252
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74250
74253
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74251
- border-color: ${colors2[type4].focussed.borderColor};
74254
+ border-color: ${colors2[variant].focussed.borderColor};
74252
74255
  transition: box-shadow 0.2s ease-in-out;
74253
74256
  }
74254
74257
 
@@ -74289,7 +74292,7 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74289
74292
  `;
74290
74293
  };
74291
74294
  const Input$1 = styled(Input$2)`
74292
- ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
74295
+ ${({ theme, state, type: type4, size = "normal", ...rest }) => {
74293
74296
  const hasBeforeAddon = !!rest.addonBefore;
74294
74297
  const hasAfterAddon = !!rest.addonAfter;
74295
74298
  return getGenesisInputClass(
@@ -74298,7 +74301,8 @@ const Input$1 = styled(Input$2)`
74298
74301
  state,
74299
74302
  hasBeforeAddon,
74300
74303
  hasAfterAddon,
74301
- size
74304
+ size,
74305
+ TYPE.primary
74302
74306
  );
74303
74307
  }}
74304
74308
  `;
@@ -74332,7 +74336,6 @@ const Input2 = React.forwardRef(
74332
74336
  value: value2,
74333
74337
  ...rest
74334
74338
  }, ref) => {
74335
- const { type: type4, ...validRest } = rest;
74336
74339
  const addonAfter = React.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React.cloneElement(
74337
74340
  rest.addonAfter,
74338
74341
  {
@@ -74355,7 +74358,7 @@ const Input2 = React.forwardRef(
74355
74358
  return /* @__PURE__ */ jsxRuntime.jsx(
74356
74359
  Input$1,
74357
74360
  {
74358
- ...validRest,
74361
+ ...rest,
74359
74362
  ref,
74360
74363
  size,
74361
74364
  state,
@@ -74790,6 +74793,53 @@ const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
74790
74793
  const UnitNumber = ({ variant }) => {
74791
74794
  return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
74792
74795
  };
74796
+ const StyledFormInput = styled(Input2)`
74797
+ /* Ensure the border color matches regular Input using Genesis theme token */
74798
+ &.ant-input,
74799
+ .ant-input-group .ant-input {
74800
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74801
+ }
74802
+
74803
+ /* Input group wrapper styling - most specific selector for addon scenarios */
74804
+ &.ant-input-group-wrapper .ant-input-group {
74805
+ .ant-input {
74806
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74807
+ }
74808
+
74809
+ .ant-input-group-addon {
74810
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74811
+ background-color: #f5f5f5;
74812
+ }
74813
+ }
74814
+
74815
+ /* When input is in a group wrapper */
74816
+ .ant-input-group-wrapper & {
74817
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74818
+ }
74819
+
74820
+ /* Direct targeting of input group elements */
74821
+ .ant-input-group .ant-input {
74822
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74823
+ }
74824
+
74825
+ .ant-input-group-addon {
74826
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74827
+ }
74828
+
74829
+ /* Hover and focus states should maintain the correct colors */
74830
+ &.ant-input:hover,
74831
+ &.ant-input:focus,
74832
+ .ant-input-group .ant-input:hover,
74833
+ .ant-input-group .ant-input:focus,
74834
+ .ant-input-group-wrapper .ant-input-group:hover .ant-input,
74835
+ .ant-input-group-wrapper .ant-input-group:focus-within .ant-input,
74836
+ .ant-input-group-wrapper .ant-input-group:hover .ant-input-group-addon,
74837
+ .ant-input-group-wrapper
74838
+ .ant-input-group:focus-within
74839
+ .ant-input-group-addon {
74840
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74841
+ }
74842
+ `;
74793
74843
  const defaultValidator = (_rule, value2) => {
74794
74844
  console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
74795
74845
  if (!value2 || /^\d+$/.test(value2)) {
@@ -74810,7 +74860,7 @@ const FormInput = React.forwardRef((props, ref) => {
74810
74860
  const { addonBefore, addonAfter, placeholder } = inputProps;
74811
74861
  if (addonBefore && !addonAfter) {
74812
74862
  return /* @__PURE__ */ jsxRuntime.jsx(
74813
- Input2,
74863
+ StyledFormInput,
74814
74864
  {
74815
74865
  ...inputProps,
74816
74866
  ref,
@@ -74824,7 +74874,7 @@ const FormInput = React.forwardRef((props, ref) => {
74824
74874
  }
74825
74875
  if (addonAfter && !addonBefore) {
74826
74876
  return /* @__PURE__ */ jsxRuntime.jsx(
74827
- Input2,
74877
+ StyledFormInput,
74828
74878
  {
74829
74879
  ...inputProps,
74830
74880
  ref,
@@ -74837,7 +74887,7 @@ const FormInput = React.forwardRef((props, ref) => {
74837
74887
  );
74838
74888
  }
74839
74889
  return /* @__PURE__ */ jsxRuntime.jsx(
74840
- Input2,
74890
+ StyledFormInput,
74841
74891
  {
74842
74892
  ...inputProps,
74843
74893
  ref,
@@ -81696,10 +81746,18 @@ const Progress = ({
81696
81746
  alignItems: "center",
81697
81747
  width: percentDisplayWidth
81698
81748
  },
81699
- children: /* @__PURE__ */ jsxRuntime.jsxs(Typography, { color: overrideTextColor ?? textColor, variant: "digits3", children: [
81700
- overallPercent,
81701
- "%"
81702
- ] })
81749
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
81750
+ Typography,
81751
+ {
81752
+ color: overrideTextColor ?? textColor,
81753
+ variant: "digits3",
81754
+ fontWeight: 700,
81755
+ children: [
81756
+ overallPercent,
81757
+ "%"
81758
+ ]
81759
+ }
81760
+ )
81703
81761
  }
81704
81762
  )
81705
81763
  ] });
@@ -81758,10 +81816,18 @@ const Progress = ({
81758
81816
  alignItems: "center",
81759
81817
  width: percentDisplayWidth
81760
81818
  },
81761
- children: /* @__PURE__ */ jsxRuntime.jsxs(Typography, { color: overrideTextColor ?? textColor, variant: "digits3", children: [
81762
- combinedPercent,
81763
- "%"
81764
- ] })
81819
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
81820
+ Typography,
81821
+ {
81822
+ color: overrideTextColor ?? textColor,
81823
+ variant: "digits3",
81824
+ fontWeight: 700,
81825
+ children: [
81826
+ combinedPercent,
81827
+ "%"
81828
+ ]
81829
+ }
81830
+ )
81765
81831
  }
81766
81832
  )
81767
81833
  ] });
package/dist/index.js CHANGED
@@ -59278,36 +59278,28 @@ const Avatar$1 = styled(Avatar$2)`
59278
59278
  return getGenesisClass$d(theme, type4, state);
59279
59279
  }}
59280
59280
  `;
59281
- const getBreakpoint = (breakpoint) => {
59282
- {
59283
- return "medium";
59284
- }
59285
- };
59286
- const getVariant$2 = (typography2, variant, breakpoint) => {
59287
- return `
59288
- font-size: ${typography2[getBreakpoint()][variant].fontSize}px !important;
59289
- line-height: ${typography2[getBreakpoint()][variant].lineHeight};
59290
- letter-spacing: ${typography2[getBreakpoint()][variant].letterSpacing}px;
59291
- font-weight: ${typography2[getBreakpoint()][variant].fontWeight};
59292
- `;
59293
- };
59294
59281
  const getColor = (color2, colors2, $themeType) => {
59295
59282
  if (color2) {
59296
59283
  return color2;
59297
59284
  }
59298
- return colors2[$themeType].active.color;
59285
+ const themeColor = colors2[$themeType];
59286
+ if (themeColor?.active?.default) {
59287
+ return themeColor.active.default;
59288
+ }
59289
+ return colors2?.secondary?.active?.default || "#000000";
59299
59290
  };
59300
59291
  const getFontFamily = (variant) => {
59301
59292
  return `
59302
59293
  ${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
59303
59294
  `;
59304
59295
  };
59305
- const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
59296
+ const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, color2, $isFullWidth, fontSize, fontWeight, $letterSpacing, $lineHeight) => `
59306
59297
  &.ant-typography {
59307
59298
  font-family: ${getFontFamily(variant)};
59308
59299
  color: ${getColor(color2, colors2, $themeType)} !important;
59309
- ${getVariant$2(typography2, variant)}
59310
59300
  margin-bottom: 0 !important;
59301
+ letter-spacing: ${$letterSpacing} !important;
59302
+ line-height: ${$lineHeight} !important;
59311
59303
  width: ${$isFullWidth ? "100%" : "auto"};
59312
59304
  font-weight: ${fontWeight} !important;
59313
59305
  font-size: ${fontSize} !important;
@@ -59327,22 +59319,24 @@ const Headline = styled(Typography$1.Title)`
59327
59319
  $themeType,
59328
59320
  variant,
59329
59321
  state,
59330
- breakpoint,
59331
59322
  color: color2,
59332
59323
  fontSize,
59333
59324
  fontWeight,
59334
- $isFullWidth
59325
+ $isFullWidth,
59326
+ $letterSpacing,
59327
+ $lineHeight
59335
59328
  }) => {
59336
59329
  return getGenesisTypographyClass(
59337
59330
  theme,
59338
59331
  $themeType,
59339
59332
  variant,
59340
59333
  state,
59341
- breakpoint,
59342
59334
  color2,
59335
+ $isFullWidth,
59343
59336
  fontSize,
59344
59337
  fontWeight,
59345
- $isFullWidth
59338
+ $letterSpacing,
59339
+ $lineHeight
59346
59340
  );
59347
59341
  }}
59348
59342
  `;
@@ -59354,22 +59348,24 @@ const Paragraph = styled(
59354
59348
  $themeType,
59355
59349
  variant,
59356
59350
  state,
59357
- breakpoint,
59358
59351
  color: color2,
59359
59352
  $isFullWidth,
59360
59353
  fontSize,
59361
- fontWeight
59354
+ fontWeight,
59355
+ $letterSpacing,
59356
+ $lineHeight
59362
59357
  }) => {
59363
59358
  return getGenesisTypographyClass(
59364
59359
  theme,
59365
59360
  $themeType,
59366
59361
  variant,
59367
59362
  state,
59368
- breakpoint,
59369
59363
  color2,
59364
+ $isFullWidth,
59370
59365
  fontSize,
59371
59366
  fontWeight,
59372
- $isFullWidth
59367
+ $letterSpacing,
59368
+ $lineHeight
59373
59369
  );
59374
59370
  }}
59375
59371
  `;
@@ -59379,22 +59375,24 @@ const Text = styled(Typography$1.Text)`
59379
59375
  $themeType,
59380
59376
  variant,
59381
59377
  state,
59382
- breakpoint,
59383
59378
  color: color2,
59379
+ $isFullWidth,
59384
59380
  fontSize,
59385
59381
  fontWeight,
59386
- $isFullWidth
59382
+ $letterSpacing,
59383
+ $lineHeight
59387
59384
  }) => {
59388
59385
  return getGenesisTypographyClass(
59389
59386
  theme,
59390
59387
  $themeType,
59391
59388
  variant,
59392
59389
  state,
59393
- breakpoint,
59394
59390
  color2,
59391
+ $isFullWidth,
59395
59392
  fontSize,
59396
59393
  fontWeight,
59397
- $isFullWidth
59394
+ $letterSpacing,
59395
+ $lineHeight
59398
59396
  );
59399
59397
  }}
59400
59398
  `;
@@ -59824,7 +59822,8 @@ const TYPE = {
59824
59822
  tertiary: "tertiary",
59825
59823
  destructive: "destructive",
59826
59824
  utility: "utility",
59827
- icon: "icon"
59825
+ icon: "icon",
59826
+ password: "primary"
59828
59827
  };
59829
59828
  const BREAKPOINTS = {
59830
59829
  wide: "wide",
@@ -60161,14 +60160,15 @@ const ToastRow = styled.div`
60161
60160
  align-items: center;
60162
60161
  gap: ${({ theme }) => theme.sizing.Size4}px;
60163
60162
  padding: ${({ theme }) => theme.sizing.Size3}px;
60164
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60163
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60165
60164
  border-left: ${({ theme, state }) => `2px solid ${theme.colors.status[state].default}`};
60166
60165
  pointer-events: none;
60167
60166
  cursor: default;
60168
60167
  border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusXs}px;
60169
60168
  height: 56px;
60170
60169
  width: ${({ theme, state, size }) => size === "standard" ? "340px" : "240px"};
60171
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60170
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60171
+ background-color: white;
60172
60172
  box-shadow: 0px 4px 16px 0px #00000026;
60173
60173
  `;
60174
60174
  const ToastCloseButton = styled.button`
@@ -60368,7 +60368,7 @@ const Typography = ({
60368
60368
  isDisabled,
60369
60369
  ...rest
60370
60370
  }) => {
60371
- const { breakpoint } = useGenesis();
60371
+ const { breakpoint, theme } = useGenesis();
60372
60372
  if (variant.startsWith("display") || variant.startsWith("heading")) {
60373
60373
  const level = variant.split("heading")[1] || variant.split("display")[1];
60374
60374
  return /* @__PURE__ */ jsx(
@@ -60377,14 +60377,15 @@ const Typography = ({
60377
60377
  state,
60378
60378
  $themeType: themeType,
60379
60379
  variant,
60380
- breakpoint,
60381
60380
  color: color2,
60382
60381
  level: Number.parseInt(level),
60383
60382
  $isFullWidth: isFullWidth,
60384
60383
  style: style2,
60385
- fontSize,
60384
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60386
60385
  fontWeight,
60387
60386
  disabled: isDisabled,
60387
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60388
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60388
60389
  ...rest,
60389
60390
  children: children2
60390
60391
  }
@@ -60398,13 +60399,14 @@ const Typography = ({
60398
60399
  state,
60399
60400
  $themeType: themeType,
60400
60401
  variant: validVariant,
60401
- breakpoint,
60402
60402
  color: color2,
60403
60403
  $isFullWidth: isFullWidth,
60404
60404
  style: style2,
60405
60405
  disabled: isDisabled,
60406
- fontSize,
60406
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60407
60407
  fontWeight,
60408
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60409
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60408
60410
  ...rest,
60409
60411
  children: children2
60410
60412
  }
@@ -60416,13 +60418,14 @@ const Typography = ({
60416
60418
  state,
60417
60419
  $themeType: themeType,
60418
60420
  variant: validVariant,
60419
- breakpoint,
60420
60421
  color: color2,
60421
60422
  $isFullWidth: isFullWidth,
60422
60423
  style: style2,
60423
60424
  disabled: isDisabled,
60424
- fontSize,
60425
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60425
60426
  fontWeight,
60427
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60428
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60426
60429
  ...rest,
60427
60430
  children: children2
60428
60431
  }
@@ -74102,11 +74105,11 @@ const Message$1 = ({ message: message2, handle, isThinking = false }) => {
74102
74105
  /* @__PURE__ */ jsx(TextContainer, { $isBot: isBot, children: isThinking ? /* @__PURE__ */ jsx(ThinkingIndicator, {}) : handle === "bot" ? /* @__PURE__ */ jsx(Markdown, { children: message2 }) : /* @__PURE__ */ jsx(MessageText, { children: message2 }) })
74103
74106
  ] });
74104
74107
  };
74105
- const getStateColors = (colors2, type4, state) => {
74108
+ const getStateColors = (colors2, variant, state = "themeState") => {
74106
74109
  const filled = {
74107
74110
  color: colors2.inputs.onsurface.active,
74108
74111
  borderColor: colors2[TYPE.secondary].active.borderColor,
74109
- ringColor: colors2[type4]?.focussed?.ringColor
74112
+ ringColor: colors2[variant]?.focussed?.ringColor
74110
74113
  };
74111
74114
  const success = {
74112
74115
  color: colors2.status.success.default,
@@ -74122,7 +74125,7 @@ const getStateColors = (colors2, type4, state) => {
74122
74125
  color: colors2.inputs.onsurface.active,
74123
74126
  backgroundColor: colors2.inputs.surface.active,
74124
74127
  borderColor: colors2.inputs.surface.border,
74125
- ringColor: type4 && state ? colors2[type4]?.[state]?.ringColor : void 0
74128
+ ringColor: variant && state ? colors2[variant]?.[state]?.ringColor : void 0
74126
74129
  } : null;
74127
74130
  const stateMap = {
74128
74131
  filled,
@@ -74137,8 +74140,8 @@ const getStateColors = (colors2, type4, state) => {
74137
74140
  const css = stateMap[getValidKey(state)];
74138
74141
  return css;
74139
74142
  };
74140
- const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size) => {
74141
- const stateColors = getStateColors(colors2, type4, state);
74143
+ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, components: components2, shadows: shadows2 }, type4, state, hasBeforeAddon, hasAfterAddon, size, variant) => {
74144
+ const stateColors = getStateColors(colors2, variant, state);
74142
74145
  const getBorderRadius = (hasBeforeAddon2, hasAfterAddon2) => {
74143
74146
  if (hasAfterAddon2 && !hasBeforeAddon2) {
74144
74147
  return `${borderRadius2.BorderRadiusMd}px 0px 0px ${borderRadius2.BorderRadiusMd}px`;
@@ -74162,8 +74165,8 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74162
74165
  &.ant-input.ant-input:focus-visible,
74163
74166
  &.ant-input.ant-input-focused {
74164
74167
  outline: none !important;
74165
- border-color: ${colors2[type4].focussed.borderColor} !important;
74166
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor} !important;
74168
+ border-color: ${colors2[variant].focussed.borderColor} !important;
74169
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor} !important;
74167
74170
  }
74168
74171
 
74169
74172
  &.ant-input-outlined {
@@ -74179,13 +74182,13 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74179
74182
  outline: none;
74180
74183
  color: ${stateColors.color};
74181
74184
  box-shadow: none;
74182
- border-color: ${colors2[type4].focussed.borderColor};
74185
+ border-color: ${colors2[variant].focussed.borderColor};
74183
74186
  }
74184
74187
  }
74185
74188
 
74186
74189
  .ant-input-group:focus-within {
74187
74190
  outline: none;
74188
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74191
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74189
74192
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74190
74193
  transition: box-shadow 0.2s ease-in-out;
74191
74194
 
@@ -74193,7 +74196,7 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74193
74196
  .ant-input:focus-within {
74194
74197
  box-shadow: none;
74195
74198
  border-radius: 0;
74196
- border-radius: ${getBorderRadius(hasBeforeAddon, hasAfterAddon)};
74199
+ border-radius: ${getBorderRadius(hasBeforeAddon || false, hasAfterAddon || false)};
74197
74200
  border-color: #ddd;
74198
74201
  }
74199
74202
  }
@@ -74204,13 +74207,13 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74204
74207
  .ant-input-group .ant-input:focus-within {
74205
74208
  outline: none;
74206
74209
  box-shadow: none;
74207
- border-color: ${colors2[type4].focussed.borderColor};
74210
+ border-color: ${colors2[variant].focussed.borderColor};
74208
74211
  }
74209
74212
 
74210
74213
  /* Single focus ring on group */
74211
74214
  .ant-input-group:focus-within {
74212
74215
  outline: none;
74213
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74216
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74214
74217
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74215
74218
  transition: box-shadow 0.2s ease-in-out;
74216
74219
  }
@@ -74219,18 +74222,18 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74219
74222
  &:not(.ant-input-group):focus-visible {
74220
74223
  outline: none;
74221
74224
  color: ${stateColors.color};
74222
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74225
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74223
74226
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74224
- border-color: ${colors2[type4].focussed.borderColor};
74227
+ border-color: ${colors2[variant].focussed.borderColor};
74225
74228
  transition: box-shadow 0.2s ease-in-out;
74226
74229
  }
74227
74230
 
74228
74231
  &:not(.ant-input-group .ant-input):focus-visible {
74229
74232
  outline: none;
74230
74233
  color: ${stateColors.color};
74231
- box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[type4].focussed.ringColor};
74234
+ box-shadow: 0 0 0 1px #fff, 0 0 0 3px ${colors2[variant].focussed.ringColor};
74232
74235
  border-radius: ${borderRadius2.BorderRadiusMd}px;
74233
- border-color: ${colors2[type4].focussed.borderColor};
74236
+ border-color: ${colors2[variant].focussed.borderColor};
74234
74237
  transition: box-shadow 0.2s ease-in-out;
74235
74238
  }
74236
74239
 
@@ -74271,7 +74274,7 @@ const getGenesisInputClass = ({ colors: colors2, borderRadius: borderRadius2, co
74271
74274
  `;
74272
74275
  };
74273
74276
  const Input$1 = styled(Input$2)`
74274
- ${({ theme, state, type: type4 = TYPE.primary, size = "normal", ...rest }) => {
74277
+ ${({ theme, state, type: type4, size = "normal", ...rest }) => {
74275
74278
  const hasBeforeAddon = !!rest.addonBefore;
74276
74279
  const hasAfterAddon = !!rest.addonAfter;
74277
74280
  return getGenesisInputClass(
@@ -74280,7 +74283,8 @@ const Input$1 = styled(Input$2)`
74280
74283
  state,
74281
74284
  hasBeforeAddon,
74282
74285
  hasAfterAddon,
74283
- size
74286
+ size,
74287
+ TYPE.primary
74284
74288
  );
74285
74289
  }}
74286
74290
  `;
@@ -74314,7 +74318,6 @@ const Input2 = React__default.forwardRef(
74314
74318
  value: value2,
74315
74319
  ...rest
74316
74320
  }, ref) => {
74317
- const { type: type4, ...validRest } = rest;
74318
74321
  const addonAfter = React__default.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React__default.cloneElement(
74319
74322
  rest.addonAfter,
74320
74323
  {
@@ -74337,7 +74340,7 @@ const Input2 = React__default.forwardRef(
74337
74340
  return /* @__PURE__ */ jsx(
74338
74341
  Input$1,
74339
74342
  {
74340
- ...validRest,
74343
+ ...rest,
74341
74344
  ref,
74342
74345
  size,
74343
74346
  state,
@@ -74772,6 +74775,53 @@ const Solid = (properties) => /* @__PURE__ */ jsx(
74772
74775
  const UnitNumber = ({ variant }) => {
74773
74776
  return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
74774
74777
  };
74778
+ const StyledFormInput = styled(Input2)`
74779
+ /* Ensure the border color matches regular Input using Genesis theme token */
74780
+ &.ant-input,
74781
+ .ant-input-group .ant-input {
74782
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74783
+ }
74784
+
74785
+ /* Input group wrapper styling - most specific selector for addon scenarios */
74786
+ &.ant-input-group-wrapper .ant-input-group {
74787
+ .ant-input {
74788
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74789
+ }
74790
+
74791
+ .ant-input-group-addon {
74792
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74793
+ background-color: #f5f5f5;
74794
+ }
74795
+ }
74796
+
74797
+ /* When input is in a group wrapper */
74798
+ .ant-input-group-wrapper & {
74799
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74800
+ }
74801
+
74802
+ /* Direct targeting of input group elements */
74803
+ .ant-input-group .ant-input {
74804
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74805
+ }
74806
+
74807
+ .ant-input-group-addon {
74808
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74809
+ }
74810
+
74811
+ /* Hover and focus states should maintain the correct colors */
74812
+ &.ant-input:hover,
74813
+ &.ant-input:focus,
74814
+ .ant-input-group .ant-input:hover,
74815
+ .ant-input-group .ant-input:focus,
74816
+ .ant-input-group-wrapper .ant-input-group:hover .ant-input,
74817
+ .ant-input-group-wrapper .ant-input-group:focus-within .ant-input,
74818
+ .ant-input-group-wrapper .ant-input-group:hover .ant-input-group-addon,
74819
+ .ant-input-group-wrapper
74820
+ .ant-input-group:focus-within
74821
+ .ant-input-group-addon {
74822
+ border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
74823
+ }
74824
+ `;
74775
74825
  const defaultValidator = (_rule, value2) => {
74776
74826
  console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
74777
74827
  if (!value2 || /^\d+$/.test(value2)) {
@@ -74792,7 +74842,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74792
74842
  const { addonBefore, addonAfter, placeholder } = inputProps;
74793
74843
  if (addonBefore && !addonAfter) {
74794
74844
  return /* @__PURE__ */ jsx(
74795
- Input2,
74845
+ StyledFormInput,
74796
74846
  {
74797
74847
  ...inputProps,
74798
74848
  ref,
@@ -74806,7 +74856,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74806
74856
  }
74807
74857
  if (addonAfter && !addonBefore) {
74808
74858
  return /* @__PURE__ */ jsx(
74809
- Input2,
74859
+ StyledFormInput,
74810
74860
  {
74811
74861
  ...inputProps,
74812
74862
  ref,
@@ -74819,7 +74869,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74819
74869
  );
74820
74870
  }
74821
74871
  return /* @__PURE__ */ jsx(
74822
- Input2,
74872
+ StyledFormInput,
74823
74873
  {
74824
74874
  ...inputProps,
74825
74875
  ref,
@@ -81678,10 +81728,18 @@ const Progress = ({
81678
81728
  alignItems: "center",
81679
81729
  width: percentDisplayWidth
81680
81730
  },
81681
- children: /* @__PURE__ */ jsxs(Typography, { color: overrideTextColor ?? textColor, variant: "digits3", children: [
81682
- overallPercent,
81683
- "%"
81684
- ] })
81731
+ children: /* @__PURE__ */ jsxs(
81732
+ Typography,
81733
+ {
81734
+ color: overrideTextColor ?? textColor,
81735
+ variant: "digits3",
81736
+ fontWeight: 700,
81737
+ children: [
81738
+ overallPercent,
81739
+ "%"
81740
+ ]
81741
+ }
81742
+ )
81685
81743
  }
81686
81744
  )
81687
81745
  ] });
@@ -81740,10 +81798,18 @@ const Progress = ({
81740
81798
  alignItems: "center",
81741
81799
  width: percentDisplayWidth
81742
81800
  },
81743
- children: /* @__PURE__ */ jsxs(Typography, { color: overrideTextColor ?? textColor, variant: "digits3", children: [
81744
- combinedPercent,
81745
- "%"
81746
- ] })
81801
+ children: /* @__PURE__ */ jsxs(
81802
+ Typography,
81803
+ {
81804
+ color: overrideTextColor ?? textColor,
81805
+ variant: "digits3",
81806
+ fontWeight: 700,
81807
+ children: [
81808
+ combinedPercent,
81809
+ "%"
81810
+ ]
81811
+ }
81812
+ )
81747
81813
  }
81748
81814
  )
81749
81815
  ] });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",