@gobolt/genesis 0.4.45 → 0.5.1
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/components/Table/TableControls/SecondaryTableControlsRow.d.ts +1 -5
- package/dist/components/Table/TableControls/TableControls.d.ts +0 -6
- package/dist/components/Table/TableControls/index.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts +3 -1
- package/dist/components/Typography/styles.d.ts +2 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/index.cjs +35 -81
- package/dist/index.js +35 -81
- package/package.json +2 -2
- package/dist/components/InputAddon/styles.d.ts +0 -3
|
@@ -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[]
|
|
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
|
|
1
|
+
export { default } from './TableControls';
|
|
2
2
|
export type { TableControlsProps } from './TableControls';
|
|
@@ -12,6 +12,8 @@ export interface TypographyProps {
|
|
|
12
12
|
isFullWidth?: boolean;
|
|
13
13
|
style?: CSSProperties;
|
|
14
14
|
isDisabled?: boolean;
|
|
15
|
+
fontWeight?: number;
|
|
16
|
+
fontSize?: string;
|
|
15
17
|
}
|
|
16
|
-
declare const Typography: ({ children, themeType, variant, state, color, isText, isFullWidth, style, isDisabled, ...rest }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare const Typography: ({ children, themeType, variant, state, color, isText, isFullWidth, style, fontSize, fontWeight, isDisabled, ...rest }: TypographyProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
export default Typography;
|
|
@@ -7,6 +7,8 @@ interface TypographyStyledProperties {
|
|
|
7
7
|
state?: keyof typeof STATE;
|
|
8
8
|
breakpoint?: string;
|
|
9
9
|
color?: string;
|
|
10
|
+
fontWeight?: number;
|
|
11
|
+
fontSize?: string;
|
|
10
12
|
$isFullWidth?: boolean;
|
|
11
13
|
}
|
|
12
14
|
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"> & {
|
|
@@ -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
|
@@ -59320,13 +59320,15 @@ const getFontFamily = (variant) => {
|
|
|
59320
59320
|
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
59321
59321
|
`;
|
|
59322
59322
|
};
|
|
59323
|
-
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
|
|
59323
|
+
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
|
|
59324
59324
|
&.ant-typography {
|
|
59325
59325
|
font-family: ${getFontFamily(variant)};
|
|
59326
59326
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59327
59327
|
${getVariant$2(typography2, variant)}
|
|
59328
59328
|
margin-bottom: 0 !important;
|
|
59329
|
-
width: ${
|
|
59329
|
+
width: ${"auto"};
|
|
59330
|
+
font-weight: ${fontWeight};
|
|
59331
|
+
font-size: ${fontSize};
|
|
59330
59332
|
line-height: 1;
|
|
59331
59333
|
-webkit-font-smoothing: antialiased;
|
|
59332
59334
|
|
|
@@ -59368,7 +59370,9 @@ const Paragraph = styled(
|
|
|
59368
59370
|
state,
|
|
59369
59371
|
breakpoint,
|
|
59370
59372
|
color: color2,
|
|
59371
|
-
$isFullWidth
|
|
59373
|
+
$isFullWidth,
|
|
59374
|
+
fontSize,
|
|
59375
|
+
fontWeight
|
|
59372
59376
|
}) => {
|
|
59373
59377
|
return getGenesisTypographyClass(
|
|
59374
59378
|
theme,
|
|
@@ -60367,6 +60371,8 @@ const Typography = ({
|
|
|
60367
60371
|
isText = false,
|
|
60368
60372
|
isFullWidth,
|
|
60369
60373
|
style: style2,
|
|
60374
|
+
fontSize,
|
|
60375
|
+
fontWeight,
|
|
60370
60376
|
isDisabled,
|
|
60371
60377
|
...rest
|
|
60372
60378
|
}) => {
|
|
@@ -60384,6 +60390,8 @@ const Typography = ({
|
|
|
60384
60390
|
level: Number.parseInt(level),
|
|
60385
60391
|
$isFullWidth: isFullWidth,
|
|
60386
60392
|
style: style2,
|
|
60393
|
+
fontSize,
|
|
60394
|
+
fontWeight,
|
|
60387
60395
|
disabled: isDisabled,
|
|
60388
60396
|
...rest,
|
|
60389
60397
|
children: children2
|
|
@@ -60403,6 +60411,8 @@ const Typography = ({
|
|
|
60403
60411
|
$isFullWidth: isFullWidth,
|
|
60404
60412
|
style: style2,
|
|
60405
60413
|
disabled: isDisabled,
|
|
60414
|
+
fontSize,
|
|
60415
|
+
fontWeight,
|
|
60406
60416
|
...rest,
|
|
60407
60417
|
children: children2
|
|
60408
60418
|
}
|
|
@@ -60419,6 +60429,8 @@ const Typography = ({
|
|
|
60419
60429
|
$isFullWidth: isFullWidth,
|
|
60420
60430
|
style: style2,
|
|
60421
60431
|
disabled: isDisabled,
|
|
60432
|
+
fontSize,
|
|
60433
|
+
fontWeight,
|
|
60422
60434
|
...rest,
|
|
60423
60435
|
children: children2
|
|
60424
60436
|
}
|
|
@@ -74768,53 +74780,6 @@ const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
74768
74780
|
const UnitNumber = ({ variant }) => {
|
|
74769
74781
|
return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
|
|
74770
74782
|
};
|
|
74771
|
-
const StyledFormInput = styled(Input2)`
|
|
74772
|
-
/* Ensure the border color matches regular Input using Genesis theme token */
|
|
74773
|
-
&.ant-input,
|
|
74774
|
-
.ant-input-group .ant-input {
|
|
74775
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74776
|
-
}
|
|
74777
|
-
|
|
74778
|
-
/* Input group wrapper styling - most specific selector for addon scenarios */
|
|
74779
|
-
&.ant-input-group-wrapper .ant-input-group {
|
|
74780
|
-
.ant-input {
|
|
74781
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74782
|
-
}
|
|
74783
|
-
|
|
74784
|
-
.ant-input-group-addon {
|
|
74785
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74786
|
-
background-color: #f5f5f5;
|
|
74787
|
-
}
|
|
74788
|
-
}
|
|
74789
|
-
|
|
74790
|
-
/* When input is in a group wrapper */
|
|
74791
|
-
.ant-input-group-wrapper & {
|
|
74792
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74793
|
-
}
|
|
74794
|
-
|
|
74795
|
-
/* Direct targeting of input group elements */
|
|
74796
|
-
.ant-input-group .ant-input {
|
|
74797
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74798
|
-
}
|
|
74799
|
-
|
|
74800
|
-
.ant-input-group-addon {
|
|
74801
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74802
|
-
}
|
|
74803
|
-
|
|
74804
|
-
/* Hover and focus states should maintain the correct colors */
|
|
74805
|
-
&.ant-input:hover,
|
|
74806
|
-
&.ant-input:focus,
|
|
74807
|
-
.ant-input-group .ant-input:hover,
|
|
74808
|
-
.ant-input-group .ant-input:focus,
|
|
74809
|
-
.ant-input-group-wrapper .ant-input-group:hover .ant-input,
|
|
74810
|
-
.ant-input-group-wrapper .ant-input-group:focus-within .ant-input,
|
|
74811
|
-
.ant-input-group-wrapper .ant-input-group:hover .ant-input-group-addon,
|
|
74812
|
-
.ant-input-group-wrapper
|
|
74813
|
-
.ant-input-group:focus-within
|
|
74814
|
-
.ant-input-group-addon {
|
|
74815
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74816
|
-
}
|
|
74817
|
-
`;
|
|
74818
74783
|
const defaultValidator = (_rule, value2) => {
|
|
74819
74784
|
console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
|
|
74820
74785
|
if (!value2 || /^\d+$/.test(value2)) {
|
|
@@ -74835,7 +74800,7 @@ const FormInput = React.forwardRef((props, ref) => {
|
|
|
74835
74800
|
const { addonBefore, addonAfter, placeholder } = inputProps;
|
|
74836
74801
|
if (addonBefore && !addonAfter) {
|
|
74837
74802
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74838
|
-
|
|
74803
|
+
Input2,
|
|
74839
74804
|
{
|
|
74840
74805
|
...inputProps,
|
|
74841
74806
|
ref,
|
|
@@ -74849,7 +74814,7 @@ const FormInput = React.forwardRef((props, ref) => {
|
|
|
74849
74814
|
}
|
|
74850
74815
|
if (addonAfter && !addonBefore) {
|
|
74851
74816
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74852
|
-
|
|
74817
|
+
Input2,
|
|
74853
74818
|
{
|
|
74854
74819
|
...inputProps,
|
|
74855
74820
|
ref,
|
|
@@ -74862,7 +74827,7 @@ const FormInput = React.forwardRef((props, ref) => {
|
|
|
74862
74827
|
);
|
|
74863
74828
|
}
|
|
74864
74829
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
74865
|
-
|
|
74830
|
+
Input2,
|
|
74866
74831
|
{
|
|
74867
74832
|
...inputProps,
|
|
74868
74833
|
ref,
|
|
@@ -82571,7 +82536,6 @@ const TypographyWideFontSizeBody1 = 16;
|
|
|
82571
82536
|
const TypographyMediumFontSizeBody1 = 16;
|
|
82572
82537
|
const TypographyWideFontSizeHeading3 = Size4;
|
|
82573
82538
|
const TypographyWideFontSizeSubHeading1 = 20;
|
|
82574
|
-
const TypographyWideFontSizeSubHeading2 = 16;
|
|
82575
82539
|
const TypographyWideFontSizeSubHeading3 = 14;
|
|
82576
82540
|
const TypographyWideFontSizeBody2 = 14;
|
|
82577
82541
|
const TypographyWideFontSizeBody3 = 12;
|
|
@@ -82770,9 +82734,9 @@ const wideTypography = {
|
|
|
82770
82734
|
letterSpacing: "0"
|
|
82771
82735
|
},
|
|
82772
82736
|
subHeading2: {
|
|
82773
|
-
fontSize:
|
|
82774
|
-
lineHeight: "
|
|
82775
|
-
fontWeight:
|
|
82737
|
+
fontSize: "24px",
|
|
82738
|
+
lineHeight: "32px",
|
|
82739
|
+
fontWeight: 400,
|
|
82776
82740
|
letterSpacing: "0"
|
|
82777
82741
|
},
|
|
82778
82742
|
subHeading3: {
|
|
@@ -85792,7 +85756,7 @@ const GroupItem = ({
|
|
|
85792
85756
|
onGroupItemClick,
|
|
85793
85757
|
getCustomIcon
|
|
85794
85758
|
}) => {
|
|
85795
|
-
if (
|
|
85759
|
+
if (items.length === 0) return null;
|
|
85796
85760
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
85797
85761
|
/* @__PURE__ */ jsxRuntime.jsx(Tooltip2, { tip: title, isAbsolutePositioned: false, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
85798
85762
|
"div",
|
|
@@ -85807,21 +85771,18 @@ const GroupItem = ({
|
|
|
85807
85771
|
children: getCustomIcon ? getCustomIcon(title) : getIcon$1(title)
|
|
85808
85772
|
}
|
|
85809
85773
|
) }),
|
|
85810
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", gap: 4 }, children: items
|
|
85811
|
-
|
|
85812
|
-
|
|
85813
|
-
|
|
85814
|
-
|
|
85815
|
-
|
|
85816
|
-
|
|
85817
|
-
|
|
85818
|
-
|
|
85819
|
-
|
|
85820
|
-
|
|
85821
|
-
|
|
85822
|
-
!item ? "Undefined" : item?.toString()
|
|
85823
|
-
);
|
|
85824
|
-
}) })
|
|
85774
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { display: "flex", gap: 4 }, children: items.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
85775
|
+
Badge$1,
|
|
85776
|
+
{
|
|
85777
|
+
label: item,
|
|
85778
|
+
hasClose: true,
|
|
85779
|
+
hasIcon: false,
|
|
85780
|
+
state: "generic",
|
|
85781
|
+
size: "small",
|
|
85782
|
+
onClick: () => onGroupItemClick(title, item)
|
|
85783
|
+
},
|
|
85784
|
+
item.toString()
|
|
85785
|
+
)) })
|
|
85825
85786
|
] });
|
|
85826
85787
|
};
|
|
85827
85788
|
const GroupsRow = ({
|
|
@@ -85838,7 +85799,7 @@ const GroupsRow = ({
|
|
|
85838
85799
|
GroupItem,
|
|
85839
85800
|
{
|
|
85840
85801
|
title: group.title,
|
|
85841
|
-
items: group
|
|
85802
|
+
items: group.items,
|
|
85842
85803
|
onGroupItemClick,
|
|
85843
85804
|
getCustomIcon
|
|
85844
85805
|
},
|
|
@@ -85939,12 +85900,6 @@ const SecondaryTableControlsRow = ({
|
|
|
85939
85900
|
}
|
|
85940
85901
|
);
|
|
85941
85902
|
};
|
|
85942
|
-
const TABLE_CONTROLS_EVENTS = {
|
|
85943
|
-
GROUP_ITEM_CLICK: "groupItemClick",
|
|
85944
|
-
ORDER_CLICK: "orderClick",
|
|
85945
|
-
PRIMARY_SORT_CHANGE: "primarySortChange",
|
|
85946
|
-
INPUT_CHANGE: "inputChange"
|
|
85947
|
-
};
|
|
85948
85903
|
const TableControls = ({
|
|
85949
85904
|
primaryTableRowData,
|
|
85950
85905
|
secondaryTableRowData,
|
|
@@ -87444,7 +87399,6 @@ exports.SegmentedControls = SegmentedControls;
|
|
|
87444
87399
|
exports.Select = Select;
|
|
87445
87400
|
exports.Shapes = Shapes;
|
|
87446
87401
|
exports.Switch = Switch;
|
|
87447
|
-
exports.TABLE_CONTROLS_EVENTS = TABLE_CONTROLS_EVENTS;
|
|
87448
87402
|
exports.Table = TablePagination;
|
|
87449
87403
|
exports.TableWithControls = TableWithControls;
|
|
87450
87404
|
exports.Tabs = Tabs;
|
package/dist/index.js
CHANGED
|
@@ -59302,13 +59302,15 @@ const getFontFamily = (variant) => {
|
|
|
59302
59302
|
${variant.includes("digits") ? "'Roboto Mono', sans-serif" : "'Inter', sans-serif"} !important;
|
|
59303
59303
|
`;
|
|
59304
59304
|
};
|
|
59305
|
-
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, $isFullWidth) => `
|
|
59305
|
+
const getGenesisTypographyClass = ({ colors: colors2, typography: typography2 }, $themeType, variant, state, breakpoint, color2, fontSize, fontWeight, $isFullWidth) => `
|
|
59306
59306
|
&.ant-typography {
|
|
59307
59307
|
font-family: ${getFontFamily(variant)};
|
|
59308
59308
|
color: ${getColor(color2, colors2, $themeType)} !important;
|
|
59309
59309
|
${getVariant$2(typography2, variant)}
|
|
59310
59310
|
margin-bottom: 0 !important;
|
|
59311
|
-
width: ${
|
|
59311
|
+
width: ${"auto"};
|
|
59312
|
+
font-weight: ${fontWeight};
|
|
59313
|
+
font-size: ${fontSize};
|
|
59312
59314
|
line-height: 1;
|
|
59313
59315
|
-webkit-font-smoothing: antialiased;
|
|
59314
59316
|
|
|
@@ -59350,7 +59352,9 @@ const Paragraph = styled(
|
|
|
59350
59352
|
state,
|
|
59351
59353
|
breakpoint,
|
|
59352
59354
|
color: color2,
|
|
59353
|
-
$isFullWidth
|
|
59355
|
+
$isFullWidth,
|
|
59356
|
+
fontSize,
|
|
59357
|
+
fontWeight
|
|
59354
59358
|
}) => {
|
|
59355
59359
|
return getGenesisTypographyClass(
|
|
59356
59360
|
theme,
|
|
@@ -60349,6 +60353,8 @@ const Typography = ({
|
|
|
60349
60353
|
isText = false,
|
|
60350
60354
|
isFullWidth,
|
|
60351
60355
|
style: style2,
|
|
60356
|
+
fontSize,
|
|
60357
|
+
fontWeight,
|
|
60352
60358
|
isDisabled,
|
|
60353
60359
|
...rest
|
|
60354
60360
|
}) => {
|
|
@@ -60366,6 +60372,8 @@ const Typography = ({
|
|
|
60366
60372
|
level: Number.parseInt(level),
|
|
60367
60373
|
$isFullWidth: isFullWidth,
|
|
60368
60374
|
style: style2,
|
|
60375
|
+
fontSize,
|
|
60376
|
+
fontWeight,
|
|
60369
60377
|
disabled: isDisabled,
|
|
60370
60378
|
...rest,
|
|
60371
60379
|
children: children2
|
|
@@ -60385,6 +60393,8 @@ const Typography = ({
|
|
|
60385
60393
|
$isFullWidth: isFullWidth,
|
|
60386
60394
|
style: style2,
|
|
60387
60395
|
disabled: isDisabled,
|
|
60396
|
+
fontSize,
|
|
60397
|
+
fontWeight,
|
|
60388
60398
|
...rest,
|
|
60389
60399
|
children: children2
|
|
60390
60400
|
}
|
|
@@ -60401,6 +60411,8 @@ const Typography = ({
|
|
|
60401
60411
|
$isFullWidth: isFullWidth,
|
|
60402
60412
|
style: style2,
|
|
60403
60413
|
disabled: isDisabled,
|
|
60414
|
+
fontSize,
|
|
60415
|
+
fontWeight,
|
|
60404
60416
|
...rest,
|
|
60405
60417
|
children: children2
|
|
60406
60418
|
}
|
|
@@ -74750,53 +74762,6 @@ const Solid = (properties) => /* @__PURE__ */ jsx(
|
|
|
74750
74762
|
const UnitNumber = ({ variant }) => {
|
|
74751
74763
|
return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
|
|
74752
74764
|
};
|
|
74753
|
-
const StyledFormInput = styled(Input2)`
|
|
74754
|
-
/* Ensure the border color matches regular Input using Genesis theme token */
|
|
74755
|
-
&.ant-input,
|
|
74756
|
-
.ant-input-group .ant-input {
|
|
74757
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74758
|
-
}
|
|
74759
|
-
|
|
74760
|
-
/* Input group wrapper styling - most specific selector for addon scenarios */
|
|
74761
|
-
&.ant-input-group-wrapper .ant-input-group {
|
|
74762
|
-
.ant-input {
|
|
74763
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74764
|
-
}
|
|
74765
|
-
|
|
74766
|
-
.ant-input-group-addon {
|
|
74767
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74768
|
-
background-color: #f5f5f5;
|
|
74769
|
-
}
|
|
74770
|
-
}
|
|
74771
|
-
|
|
74772
|
-
/* When input is in a group wrapper */
|
|
74773
|
-
.ant-input-group-wrapper & {
|
|
74774
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74775
|
-
}
|
|
74776
|
-
|
|
74777
|
-
/* Direct targeting of input group elements */
|
|
74778
|
-
.ant-input-group .ant-input {
|
|
74779
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74780
|
-
}
|
|
74781
|
-
|
|
74782
|
-
.ant-input-group-addon {
|
|
74783
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74784
|
-
}
|
|
74785
|
-
|
|
74786
|
-
/* Hover and focus states should maintain the correct colors */
|
|
74787
|
-
&.ant-input:hover,
|
|
74788
|
-
&.ant-input:focus,
|
|
74789
|
-
.ant-input-group .ant-input:hover,
|
|
74790
|
-
.ant-input-group .ant-input:focus,
|
|
74791
|
-
.ant-input-group-wrapper .ant-input-group:hover .ant-input,
|
|
74792
|
-
.ant-input-group-wrapper .ant-input-group:focus-within .ant-input,
|
|
74793
|
-
.ant-input-group-wrapper .ant-input-group:hover .ant-input-group-addon,
|
|
74794
|
-
.ant-input-group-wrapper
|
|
74795
|
-
.ant-input-group:focus-within
|
|
74796
|
-
.ant-input-group-addon {
|
|
74797
|
-
border-color: ${({ theme }) => theme.colors.inputs.surface.border} !important;
|
|
74798
|
-
}
|
|
74799
|
-
`;
|
|
74800
74765
|
const defaultValidator = (_rule, value2) => {
|
|
74801
74766
|
console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
|
|
74802
74767
|
if (!value2 || /^\d+$/.test(value2)) {
|
|
@@ -74817,7 +74782,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
|
|
|
74817
74782
|
const { addonBefore, addonAfter, placeholder } = inputProps;
|
|
74818
74783
|
if (addonBefore && !addonAfter) {
|
|
74819
74784
|
return /* @__PURE__ */ jsx(
|
|
74820
|
-
|
|
74785
|
+
Input2,
|
|
74821
74786
|
{
|
|
74822
74787
|
...inputProps,
|
|
74823
74788
|
ref,
|
|
@@ -74831,7 +74796,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
|
|
|
74831
74796
|
}
|
|
74832
74797
|
if (addonAfter && !addonBefore) {
|
|
74833
74798
|
return /* @__PURE__ */ jsx(
|
|
74834
|
-
|
|
74799
|
+
Input2,
|
|
74835
74800
|
{
|
|
74836
74801
|
...inputProps,
|
|
74837
74802
|
ref,
|
|
@@ -74844,7 +74809,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
|
|
|
74844
74809
|
);
|
|
74845
74810
|
}
|
|
74846
74811
|
return /* @__PURE__ */ jsx(
|
|
74847
|
-
|
|
74812
|
+
Input2,
|
|
74848
74813
|
{
|
|
74849
74814
|
...inputProps,
|
|
74850
74815
|
ref,
|
|
@@ -82553,7 +82518,6 @@ const TypographyWideFontSizeBody1 = 16;
|
|
|
82553
82518
|
const TypographyMediumFontSizeBody1 = 16;
|
|
82554
82519
|
const TypographyWideFontSizeHeading3 = Size4;
|
|
82555
82520
|
const TypographyWideFontSizeSubHeading1 = 20;
|
|
82556
|
-
const TypographyWideFontSizeSubHeading2 = 16;
|
|
82557
82521
|
const TypographyWideFontSizeSubHeading3 = 14;
|
|
82558
82522
|
const TypographyWideFontSizeBody2 = 14;
|
|
82559
82523
|
const TypographyWideFontSizeBody3 = 12;
|
|
@@ -82752,9 +82716,9 @@ const wideTypography = {
|
|
|
82752
82716
|
letterSpacing: "0"
|
|
82753
82717
|
},
|
|
82754
82718
|
subHeading2: {
|
|
82755
|
-
fontSize:
|
|
82756
|
-
lineHeight: "
|
|
82757
|
-
fontWeight:
|
|
82719
|
+
fontSize: "24px",
|
|
82720
|
+
lineHeight: "32px",
|
|
82721
|
+
fontWeight: 400,
|
|
82758
82722
|
letterSpacing: "0"
|
|
82759
82723
|
},
|
|
82760
82724
|
subHeading3: {
|
|
@@ -85774,7 +85738,7 @@ const GroupItem = ({
|
|
|
85774
85738
|
onGroupItemClick,
|
|
85775
85739
|
getCustomIcon
|
|
85776
85740
|
}) => {
|
|
85777
|
-
if (
|
|
85741
|
+
if (items.length === 0) return null;
|
|
85778
85742
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
85779
85743
|
/* @__PURE__ */ jsx(Tooltip2, { tip: title, isAbsolutePositioned: false, children: /* @__PURE__ */ jsx(
|
|
85780
85744
|
"div",
|
|
@@ -85789,21 +85753,18 @@ const GroupItem = ({
|
|
|
85789
85753
|
children: getCustomIcon ? getCustomIcon(title) : getIcon$1(title)
|
|
85790
85754
|
}
|
|
85791
85755
|
) }),
|
|
85792
|
-
/* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items
|
|
85793
|
-
|
|
85794
|
-
|
|
85795
|
-
|
|
85796
|
-
|
|
85797
|
-
|
|
85798
|
-
|
|
85799
|
-
|
|
85800
|
-
|
|
85801
|
-
|
|
85802
|
-
|
|
85803
|
-
|
|
85804
|
-
!item ? "Undefined" : item?.toString()
|
|
85805
|
-
);
|
|
85806
|
-
}) })
|
|
85756
|
+
/* @__PURE__ */ jsx("div", { style: { display: "flex", gap: 4 }, children: items.map((item) => /* @__PURE__ */ jsx(
|
|
85757
|
+
Badge$1,
|
|
85758
|
+
{
|
|
85759
|
+
label: item,
|
|
85760
|
+
hasClose: true,
|
|
85761
|
+
hasIcon: false,
|
|
85762
|
+
state: "generic",
|
|
85763
|
+
size: "small",
|
|
85764
|
+
onClick: () => onGroupItemClick(title, item)
|
|
85765
|
+
},
|
|
85766
|
+
item.toString()
|
|
85767
|
+
)) })
|
|
85807
85768
|
] });
|
|
85808
85769
|
};
|
|
85809
85770
|
const GroupsRow = ({
|
|
@@ -85820,7 +85781,7 @@ const GroupsRow = ({
|
|
|
85820
85781
|
GroupItem,
|
|
85821
85782
|
{
|
|
85822
85783
|
title: group.title,
|
|
85823
|
-
items: group
|
|
85784
|
+
items: group.items,
|
|
85824
85785
|
onGroupItemClick,
|
|
85825
85786
|
getCustomIcon
|
|
85826
85787
|
},
|
|
@@ -85921,12 +85882,6 @@ const SecondaryTableControlsRow = ({
|
|
|
85921
85882
|
}
|
|
85922
85883
|
);
|
|
85923
85884
|
};
|
|
85924
|
-
const TABLE_CONTROLS_EVENTS = {
|
|
85925
|
-
GROUP_ITEM_CLICK: "groupItemClick",
|
|
85926
|
-
ORDER_CLICK: "orderClick",
|
|
85927
|
-
PRIMARY_SORT_CHANGE: "primarySortChange",
|
|
85928
|
-
INPUT_CHANGE: "inputChange"
|
|
85929
|
-
};
|
|
85930
85885
|
const TableControls = ({
|
|
85931
85886
|
primaryTableRowData,
|
|
85932
85887
|
secondaryTableRowData,
|
|
@@ -87427,7 +87382,6 @@ export {
|
|
|
87427
87382
|
Select,
|
|
87428
87383
|
Shapes,
|
|
87429
87384
|
Switch,
|
|
87430
|
-
TABLE_CONTROLS_EVENTS,
|
|
87431
87385
|
TablePagination as Table,
|
|
87432
87386
|
TableWithControls,
|
|
87433
87387
|
Tabs,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gobolt/genesis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "genesis design system",
|
|
5
5
|
"author": "gobolt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
},
|
|
151
151
|
"dependencies": {
|
|
152
152
|
"@ant-design/icons": "^5.5.2",
|
|
153
|
-
"@gobolt/genesis-tokens": "^0.0.
|
|
153
|
+
"@gobolt/genesis-tokens": "^0.0.10",
|
|
154
154
|
"@mdx-js/react": "^3.0.1",
|
|
155
155
|
"@secondcloset/types": "^3.4.6",
|
|
156
156
|
"@types/d3": "^7.4.3",
|
|
@@ -1,3 +0,0 @@
|
|
|
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>>;
|