@gobolt/genesis 0.6.2 → 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.
@@ -9,7 +9,6 @@ export interface InputProps extends BaseInputProps {
9
9
  onChange?: (actionEvent: InputEvent) => void;
10
10
  value?: string;
11
11
  rest?: HTMLInputElement;
12
- isPassword?: boolean;
13
12
  }
14
13
  declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
15
14
  export default Input;
@@ -1,12 +1,8 @@
1
1
  import { Change } from '../Table';
2
2
  import { InfiniteScrollChangeEvent } from '../InfiniteScrollTable/types';
3
3
  import * as React from "react";
4
- type Item = {
5
- label: string;
6
- value: unknown;
7
- };
8
4
  export type Groups = {
9
- [key: string]: string[] | Item[];
5
+ [key: string]: string[];
10
6
  };
11
7
  export interface SecondaryTableControlsRowProps {
12
8
  groups: Groups | null;
@@ -1,12 +1,6 @@
1
1
  import { PrimaryTableControlsRowProps } from './PrimaryTableControlsRow';
2
2
  import { SecondaryTableControlsRowProps } from './SecondaryTableControlsRow';
3
3
  import { ActionEvent, TableEventPayload } from '../../../types/events';
4
- export declare const TABLE_CONTROLS_EVENTS: {
5
- GROUP_ITEM_CLICK: string;
6
- ORDER_CLICK: string;
7
- PRIMARY_SORT_CHANGE: string;
8
- INPUT_CHANGE: string;
9
- };
10
4
  export type TableControlsData = {
11
5
  primaryTableRowData: PrimaryTableControlsRowProps;
12
6
  secondaryTableRowData?: SecondaryTableControlsRowProps;
@@ -1,2 +1,2 @@
1
- export { default, TABLE_CONTROLS_EVENTS } from './TableControls';
1
+ export { default } from './TableControls';
2
2
  export type { TableControlsProps } from './TableControls';
@@ -5,11 +5,12 @@ interface TypographyStyledProperties {
5
5
  $themeType?: keyof typeof TYPE;
6
6
  variant?: string;
7
7
  state?: keyof typeof STATE;
8
- breakpoint?: keyof GenesisTheme["typography"];
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;
@@ -68,7 +68,6 @@ export type { TableWithControlsProps } from './TableWithControls';
68
68
  export { useTable } from './Table';
69
69
  export { useTableWithControls } from './TableWithControls';
70
70
  export type { UseTableConfig } from './Table';
71
- export { TABLE_CONTROLS_EVENTS } from './Table/TableControls';
72
71
  export { default as Tabs } from './Tabs';
73
72
  export type { TabsProps } from './Tabs';
74
73
  export { default as Tile } from './Tile';
package/dist/index.cjs CHANGED
@@ -59296,15 +59296,6 @@ const Avatar$1 = styled(Avatar$2)`
59296
59296
  return getGenesisClass$d(theme, type4, state);
59297
59297
  }}
59298
59298
  `;
59299
- const getVariant$2 = (typography2, variant, breakpoint, fontSize, fontWeight) => {
59300
- const typeClass = typography2["medium"];
59301
- return `
59302
- font-size: ${typeClass}.fontSize}px !important;
59303
- line-height: ${typeClass.lineHeight};
59304
- letter-spacing: ${typeClass.letterSpacing}px;
59305
- font-weight: ${typeClass.fontWeight};
59306
- `;
59307
- };
59308
59299
  const getColor = (color2, colors2, $themeType) => {
59309
59300
  if (color2) {
59310
59301
  return color2;
@@ -59320,12 +59311,13 @@ const getFontFamily = (variant) => {
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, $isFullWidth, fontSize, fontWeight) => `
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)}
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,
59388
59382
  $isFullWidth,
59389
59383
  fontSize,
59390
- fontWeight
59384
+ fontWeight,
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,
59402
59397
  $isFullWidth,
59403
59398
  fontSize,
59404
- fontWeight
59399
+ fontWeight,
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,
59413
59409
  $isFullWidth,
59414
59410
  fontSize,
59415
- fontWeight
59411
+ fontWeight,
59412
+ $letterSpacing,
59413
+ $lineHeight
59416
59414
  );
59417
59415
  }}
59418
59416
  `;
@@ -60180,14 +60178,15 @@ const ToastRow = styled.div`
60180
60178
  align-items: center;
60181
60179
  gap: ${({ theme }) => theme.sizing.Size4}px;
60182
60180
  padding: ${({ theme }) => theme.sizing.Size3}px;
60183
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60181
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60184
60182
  border-left: ${({ theme, state }) => `2px solid ${theme.colors.status[state].default}`};
60185
60183
  pointer-events: none;
60186
60184
  cursor: default;
60187
60185
  border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusXs}px;
60188
60186
  height: 56px;
60189
60187
  width: ${({ theme, state, size }) => size === "standard" ? "340px" : "240px"};
60190
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60188
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60189
+ background-color: white;
60191
60190
  box-shadow: 0px 4px 16px 0px #00000026;
60192
60191
  `;
60193
60192
  const ToastCloseButton = styled.button`
@@ -60387,7 +60386,7 @@ const Typography = ({
60387
60386
  isDisabled,
60388
60387
  ...rest
60389
60388
  }) => {
60390
- const { breakpoint } = useGenesis();
60389
+ const { breakpoint, theme } = useGenesis();
60391
60390
  if (variant.startsWith("display") || variant.startsWith("heading")) {
60392
60391
  const level = variant.split("heading")[1] || variant.split("display")[1];
60393
60392
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -60396,14 +60395,15 @@ const Typography = ({
60396
60395
  state,
60397
60396
  $themeType: themeType,
60398
60397
  variant,
60399
- breakpoint,
60400
60398
  color: color2,
60401
60399
  level: Number.parseInt(level),
60402
60400
  $isFullWidth: isFullWidth,
60403
60401
  style: style2,
60404
- fontSize,
60402
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60405
60403
  fontWeight,
60406
60404
  disabled: isDisabled,
60405
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60406
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60407
60407
  ...rest,
60408
60408
  children: children2
60409
60409
  }
@@ -60417,13 +60417,14 @@ const Typography = ({
60417
60417
  state,
60418
60418
  $themeType: themeType,
60419
60419
  variant: validVariant,
60420
- breakpoint,
60421
60420
  color: color2,
60422
60421
  $isFullWidth: isFullWidth,
60423
60422
  style: style2,
60424
60423
  disabled: isDisabled,
60425
- fontSize,
60424
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60426
60425
  fontWeight,
60426
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60427
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60427
60428
  ...rest,
60428
60429
  children: children2
60429
60430
  }
@@ -60435,13 +60436,14 @@ const Typography = ({
60435
60436
  state,
60436
60437
  $themeType: themeType,
60437
60438
  variant: validVariant,
60438
- breakpoint,
60439
60439
  color: color2,
60440
60440
  $isFullWidth: isFullWidth,
60441
60441
  style: style2,
60442
60442
  disabled: isDisabled,
60443
- fontSize,
60443
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60444
60444
  fontWeight,
60445
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60446
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60445
60447
  ...rest,
60446
60448
  children: children2
60447
60449
  }
@@ -74332,7 +74334,6 @@ const Input2 = React.forwardRef(
74332
74334
  size = "normal",
74333
74335
  onChange,
74334
74336
  value: value2,
74335
- isPassword,
74336
74337
  ...rest
74337
74338
  }, ref) => {
74338
74339
  const addonAfter = React.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React.cloneElement(
@@ -82611,7 +82612,6 @@ const TypographyWideFontSizeBody1 = 16;
82611
82612
  const TypographyMediumFontSizeBody1 = 16;
82612
82613
  const TypographyWideFontSizeHeading3 = Size4;
82613
82614
  const TypographyWideFontSizeSubHeading1 = 20;
82614
- const TypographyWideFontSizeSubHeading2 = 16;
82615
82615
  const TypographyWideFontSizeSubHeading3 = 14;
82616
82616
  const TypographyWideFontSizeBody2 = 14;
82617
82617
  const TypographyWideFontSizeBody3 = 12;
@@ -82810,9 +82810,9 @@ const wideTypography = {
82810
82810
  letterSpacing: "0"
82811
82811
  },
82812
82812
  subHeading2: {
82813
- fontSize: TypographyWideFontSizeSubHeading2,
82814
- lineHeight: "1.25rem",
82815
- fontWeight: 600,
82813
+ fontSize: "24px",
82814
+ lineHeight: "32px",
82815
+ fontWeight: 400,
82816
82816
  letterSpacing: "0"
82817
82817
  },
82818
82818
  subHeading3: {
@@ -85832,7 +85832,7 @@ const GroupItem = ({
85832
85832
  onGroupItemClick,
85833
85833
  getCustomIcon
85834
85834
  }) => {
85835
- if (!items || items?.length === 0) return null;
85835
+ if (items.length === 0) return null;
85836
85836
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
85837
85837
  /* @__PURE__ */ jsxRuntime.jsx(Tooltip2, { tip: title, isAbsolutePositioned: false, children: /* @__PURE__ */ jsxRuntime.jsx(
85838
85838
  "div",
@@ -85847,21 +85847,18 @@ const GroupItem = ({
85847
85847
  children: getCustomIcon ? getCustomIcon(title) : getIcon$1(title)
85848
85848
  }
85849
85849
  ) }),
85850
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", gap: 4 }, children: items?.map((item) => {
85851
- const isObjectItem = typeof item === "object" && item !== null && "label" in item && "value" in item;
85852
- return /* @__PURE__ */ jsxRuntime.jsx(
85853
- Badge$1,
85854
- {
85855
- label: isObjectItem ? item.label : item?.toString() || "Undefined",
85856
- hasClose: true,
85857
- hasIcon: false,
85858
- state: "generic",
85859
- size: "small",
85860
- onClick: () => onGroupItemClick(title, item)
85861
- },
85862
- !item ? "Undefined" : item?.toString()
85863
- );
85864
- }) })
85850
+ /* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", gap: 4 }, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
85851
+ Badge$1,
85852
+ {
85853
+ label: item,
85854
+ hasClose: true,
85855
+ hasIcon: false,
85856
+ state: "generic",
85857
+ size: "small",
85858
+ onClick: () => onGroupItemClick(title, item)
85859
+ },
85860
+ item.toString()
85861
+ )) })
85865
85862
  ] });
85866
85863
  };
85867
85864
  const GroupsRow = ({
@@ -85878,7 +85875,7 @@ const GroupsRow = ({
85878
85875
  GroupItem,
85879
85876
  {
85880
85877
  title: group.title,
85881
- items: group?.items,
85878
+ items: group.items,
85882
85879
  onGroupItemClick,
85883
85880
  getCustomIcon
85884
85881
  },
@@ -85979,12 +85976,6 @@ const SecondaryTableControlsRow = ({
85979
85976
  }
85980
85977
  );
85981
85978
  };
85982
- const TABLE_CONTROLS_EVENTS = {
85983
- GROUP_ITEM_CLICK: "groupItemClick",
85984
- ORDER_CLICK: "orderClick",
85985
- PRIMARY_SORT_CHANGE: "primarySortChange",
85986
- INPUT_CHANGE: "inputChange"
85987
- };
85988
85979
  const TableControls = ({
85989
85980
  primaryTableRowData,
85990
85981
  secondaryTableRowData,
@@ -87484,7 +87475,6 @@ exports.SegmentedControls = SegmentedControls;
87484
87475
  exports.Select = Select;
87485
87476
  exports.Shapes = Shapes;
87486
87477
  exports.Switch = Switch;
87487
- exports.TABLE_CONTROLS_EVENTS = TABLE_CONTROLS_EVENTS;
87488
87478
  exports.Table = TablePagination;
87489
87479
  exports.TableWithControls = TableWithControls;
87490
87480
  exports.Tabs = Tabs;
package/dist/index.js CHANGED
@@ -59278,15 +59278,6 @@ const Avatar$1 = styled(Avatar$2)`
59278
59278
  return getGenesisClass$d(theme, type4, state);
59279
59279
  }}
59280
59280
  `;
59281
- const getVariant$2 = (typography2, variant, breakpoint, fontSize, fontWeight) => {
59282
- const typeClass = typography2["medium"];
59283
- return `
59284
- font-size: ${typeClass}.fontSize}px !important;
59285
- line-height: ${typeClass.lineHeight};
59286
- letter-spacing: ${typeClass.letterSpacing}px;
59287
- font-weight: ${typeClass.fontWeight};
59288
- `;
59289
- };
59290
59281
  const getColor = (color2, colors2, $themeType) => {
59291
59282
  if (color2) {
59292
59283
  return color2;
@@ -59302,12 +59293,13 @@ const getFontFamily = (variant) => {
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, $isFullWidth, fontSize, fontWeight) => `
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)}
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,
59370
59364
  $isFullWidth,
59371
59365
  fontSize,
59372
- fontWeight
59366
+ fontWeight,
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,
59384
59379
  $isFullWidth,
59385
59380
  fontSize,
59386
- fontWeight
59381
+ fontWeight,
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,
59395
59391
  $isFullWidth,
59396
59392
  fontSize,
59397
- fontWeight
59393
+ fontWeight,
59394
+ $letterSpacing,
59395
+ $lineHeight
59398
59396
  );
59399
59397
  }}
59400
59398
  `;
@@ -60162,14 +60160,15 @@ const ToastRow = styled.div`
60162
60160
  align-items: center;
60163
60161
  gap: ${({ theme }) => theme.sizing.Size4}px;
60164
60162
  padding: ${({ theme }) => theme.sizing.Size3}px;
60165
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60163
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60166
60164
  border-left: ${({ theme, state }) => `2px solid ${theme.colors.status[state].default}`};
60167
60165
  pointer-events: none;
60168
60166
  cursor: default;
60169
60167
  border-radius: ${({ theme }) => theme.borderRadius.BorderRadiusXs}px;
60170
60168
  height: 56px;
60171
60169
  width: ${({ theme, state, size }) => size === "standard" ? "340px" : "240px"};
60172
- background-color: ${({ theme, state }) => theme.colors.surface.default};
60170
+ /* background-color: ${({ theme, state }) => theme.colors.surface.default}; */
60171
+ background-color: white;
60173
60172
  box-shadow: 0px 4px 16px 0px #00000026;
60174
60173
  `;
60175
60174
  const ToastCloseButton = styled.button`
@@ -60369,7 +60368,7 @@ const Typography = ({
60369
60368
  isDisabled,
60370
60369
  ...rest
60371
60370
  }) => {
60372
- const { breakpoint } = useGenesis();
60371
+ const { breakpoint, theme } = useGenesis();
60373
60372
  if (variant.startsWith("display") || variant.startsWith("heading")) {
60374
60373
  const level = variant.split("heading")[1] || variant.split("display")[1];
60375
60374
  return /* @__PURE__ */ jsx(
@@ -60378,14 +60377,15 @@ const Typography = ({
60378
60377
  state,
60379
60378
  $themeType: themeType,
60380
60379
  variant,
60381
- breakpoint,
60382
60380
  color: color2,
60383
60381
  level: Number.parseInt(level),
60384
60382
  $isFullWidth: isFullWidth,
60385
60383
  style: style2,
60386
- fontSize,
60384
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60387
60385
  fontWeight,
60388
60386
  disabled: isDisabled,
60387
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60388
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60389
60389
  ...rest,
60390
60390
  children: children2
60391
60391
  }
@@ -60399,13 +60399,14 @@ const Typography = ({
60399
60399
  state,
60400
60400
  $themeType: themeType,
60401
60401
  variant: validVariant,
60402
- breakpoint,
60403
60402
  color: color2,
60404
60403
  $isFullWidth: isFullWidth,
60405
60404
  style: style2,
60406
60405
  disabled: isDisabled,
60407
- fontSize,
60406
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60408
60407
  fontWeight,
60408
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60409
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60409
60410
  ...rest,
60410
60411
  children: children2
60411
60412
  }
@@ -60417,13 +60418,14 @@ const Typography = ({
60417
60418
  state,
60418
60419
  $themeType: themeType,
60419
60420
  variant: validVariant,
60420
- breakpoint,
60421
60421
  color: color2,
60422
60422
  $isFullWidth: isFullWidth,
60423
60423
  style: style2,
60424
60424
  disabled: isDisabled,
60425
- fontSize,
60425
+ fontSize: fontSize ?? theme.typography[breakpoint][variant].fontSize,
60426
60426
  fontWeight,
60427
+ $letterSpacing: theme.typography[breakpoint][variant].letterSpacing,
60428
+ $lineHeight: theme.typography[breakpoint][variant].lineHeight,
60427
60429
  ...rest,
60428
60430
  children: children2
60429
60431
  }
@@ -74314,7 +74316,6 @@ const Input2 = React__default.forwardRef(
74314
74316
  size = "normal",
74315
74317
  onChange,
74316
74318
  value: value2,
74317
- isPassword,
74318
74319
  ...rest
74319
74320
  }, ref) => {
74320
74321
  const addonAfter = React__default.isValidElement(rest.addonAfter) && rest.addonAfter.type === Select$1 ? React__default.cloneElement(
@@ -82593,7 +82594,6 @@ const TypographyWideFontSizeBody1 = 16;
82593
82594
  const TypographyMediumFontSizeBody1 = 16;
82594
82595
  const TypographyWideFontSizeHeading3 = Size4;
82595
82596
  const TypographyWideFontSizeSubHeading1 = 20;
82596
- const TypographyWideFontSizeSubHeading2 = 16;
82597
82597
  const TypographyWideFontSizeSubHeading3 = 14;
82598
82598
  const TypographyWideFontSizeBody2 = 14;
82599
82599
  const TypographyWideFontSizeBody3 = 12;
@@ -82792,9 +82792,9 @@ const wideTypography = {
82792
82792
  letterSpacing: "0"
82793
82793
  },
82794
82794
  subHeading2: {
82795
- fontSize: TypographyWideFontSizeSubHeading2,
82796
- lineHeight: "1.25rem",
82797
- fontWeight: 600,
82795
+ fontSize: "24px",
82796
+ lineHeight: "32px",
82797
+ fontWeight: 400,
82798
82798
  letterSpacing: "0"
82799
82799
  },
82800
82800
  subHeading3: {
@@ -85814,7 +85814,7 @@ const GroupItem = ({
85814
85814
  onGroupItemClick,
85815
85815
  getCustomIcon
85816
85816
  }) => {
85817
- if (!items || items?.length === 0) return null;
85817
+ if (items.length === 0) return null;
85818
85818
  return /* @__PURE__ */ jsxs(Fragment, { children: [
85819
85819
  /* @__PURE__ */ jsx(Tooltip2, { tip: title, isAbsolutePositioned: false, children: /* @__PURE__ */ jsx(
85820
85820
  "div",
@@ -85829,21 +85829,18 @@ const GroupItem = ({
85829
85829
  children: getCustomIcon ? getCustomIcon(title) : getIcon$1(title)
85830
85830
  }
85831
85831
  ) }),
85832
- /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items?.map((item) => {
85833
- const isObjectItem = typeof item === "object" && item !== null && "label" in item && "value" in item;
85834
- return /* @__PURE__ */ jsx(
85835
- Badge$1,
85836
- {
85837
- label: isObjectItem ? item.label : item?.toString() || "Undefined",
85838
- hasClose: true,
85839
- hasIcon: false,
85840
- state: "generic",
85841
- size: "small",
85842
- onClick: () => onGroupItemClick(title, item)
85843
- },
85844
- !item ? "Undefined" : item?.toString()
85845
- );
85846
- }) })
85832
+ /* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items.map((item) => /* @__PURE__ */ jsx(
85833
+ Badge$1,
85834
+ {
85835
+ label: item,
85836
+ hasClose: true,
85837
+ hasIcon: false,
85838
+ state: "generic",
85839
+ size: "small",
85840
+ onClick: () => onGroupItemClick(title, item)
85841
+ },
85842
+ item.toString()
85843
+ )) })
85847
85844
  ] });
85848
85845
  };
85849
85846
  const GroupsRow = ({
@@ -85860,7 +85857,7 @@ const GroupsRow = ({
85860
85857
  GroupItem,
85861
85858
  {
85862
85859
  title: group.title,
85863
- items: group?.items,
85860
+ items: group.items,
85864
85861
  onGroupItemClick,
85865
85862
  getCustomIcon
85866
85863
  },
@@ -85961,12 +85958,6 @@ const SecondaryTableControlsRow = ({
85961
85958
  }
85962
85959
  );
85963
85960
  };
85964
- const TABLE_CONTROLS_EVENTS = {
85965
- GROUP_ITEM_CLICK: "groupItemClick",
85966
- ORDER_CLICK: "orderClick",
85967
- PRIMARY_SORT_CHANGE: "primarySortChange",
85968
- INPUT_CHANGE: "inputChange"
85969
- };
85970
85961
  const TableControls = ({
85971
85962
  primaryTableRowData,
85972
85963
  secondaryTableRowData,
@@ -87467,7 +87458,6 @@ export {
87467
87458
  Select,
87468
87459
  Shapes,
87469
87460
  Switch,
87470
- TABLE_CONTROLS_EVENTS,
87471
87461
  TablePagination as Table,
87472
87462
  TableWithControls,
87473
87463
  Tabs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",