@gobolt/genesis 0.4.42 → 0.4.43

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.
@@ -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,6 +1,12 @@
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
+ };
4
10
  export type TableControlsData = {
5
11
  primaryTableRowData: PrimaryTableControlsRowProps;
6
12
  secondaryTableRowData?: SecondaryTableControlsRowProps;
@@ -1,2 +1,2 @@
1
- export { default } from './TableControls';
1
+ export { default, TABLE_CONTROLS_EVENTS } from './TableControls';
2
2
  export type { TableControlsProps } from './TableControls';
@@ -68,6 +68,7 @@ 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';
71
72
  export { default as Tabs } from './Tabs';
72
73
  export type { TabsProps } from './Tabs';
73
74
  export { default as Tile } from './Tile';
package/dist/index.cjs CHANGED
@@ -74768,6 +74768,53 @@ const Solid = (properties) => /* @__PURE__ */ jsxRuntime.jsx(
74768
74768
  const UnitNumber = ({ variant }) => {
74769
74769
  return variant === "outline" ? /* @__PURE__ */ jsxRuntime.jsx(Outline, {}) : /* @__PURE__ */ jsxRuntime.jsx(Solid, {});
74770
74770
  };
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
+ `;
74771
74818
  const defaultValidator = (_rule, value2) => {
74772
74819
  console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
74773
74820
  if (!value2 || /^\d+$/.test(value2)) {
@@ -74788,7 +74835,7 @@ const FormInput = React.forwardRef((props, ref) => {
74788
74835
  const { addonBefore, addonAfter, placeholder } = inputProps;
74789
74836
  if (addonBefore && !addonAfter) {
74790
74837
  return /* @__PURE__ */ jsxRuntime.jsx(
74791
- Input2,
74838
+ StyledFormInput,
74792
74839
  {
74793
74840
  ...inputProps,
74794
74841
  ref,
@@ -74802,7 +74849,7 @@ const FormInput = React.forwardRef((props, ref) => {
74802
74849
  }
74803
74850
  if (addonAfter && !addonBefore) {
74804
74851
  return /* @__PURE__ */ jsxRuntime.jsx(
74805
- Input2,
74852
+ StyledFormInput,
74806
74853
  {
74807
74854
  ...inputProps,
74808
74855
  ref,
@@ -74815,7 +74862,7 @@ const FormInput = React.forwardRef((props, ref) => {
74815
74862
  );
74816
74863
  }
74817
74864
  return /* @__PURE__ */ jsxRuntime.jsx(
74818
- Input2,
74865
+ StyledFormInput,
74819
74866
  {
74820
74867
  ...inputProps,
74821
74868
  ref,
@@ -85889,6 +85936,12 @@ const SecondaryTableControlsRow = ({
85889
85936
  }
85890
85937
  );
85891
85938
  };
85939
+ const TABLE_CONTROLS_EVENTS = {
85940
+ GROUP_ITEM_CLICK: "groupItemClick",
85941
+ ORDER_CLICK: "orderClick",
85942
+ PRIMARY_SORT_CHANGE: "primarySortChange",
85943
+ INPUT_CHANGE: "inputChange"
85944
+ };
85892
85945
  const TableControls = ({
85893
85946
  primaryTableRowData,
85894
85947
  secondaryTableRowData,
@@ -87388,6 +87441,7 @@ exports.SegmentedControls = SegmentedControls;
87388
87441
  exports.Select = Select;
87389
87442
  exports.Shapes = Shapes;
87390
87443
  exports.Switch = Switch;
87444
+ exports.TABLE_CONTROLS_EVENTS = TABLE_CONTROLS_EVENTS;
87391
87445
  exports.Table = TablePagination;
87392
87446
  exports.TableWithControls = TableWithControls;
87393
87447
  exports.Tabs = Tabs;
package/dist/index.js CHANGED
@@ -74750,6 +74750,53 @@ const Solid = (properties) => /* @__PURE__ */ jsx(
74750
74750
  const UnitNumber = ({ variant }) => {
74751
74751
  return variant === "outline" ? /* @__PURE__ */ jsx(Outline, {}) : /* @__PURE__ */ jsx(Solid, {});
74752
74752
  };
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
+ `;
74753
74800
  const defaultValidator = (_rule, value2) => {
74754
74801
  console.log(`Validating value: ${value2}, Type: ${typeof value2}`);
74755
74802
  if (!value2 || /^\d+$/.test(value2)) {
@@ -74770,7 +74817,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74770
74817
  const { addonBefore, addonAfter, placeholder } = inputProps;
74771
74818
  if (addonBefore && !addonAfter) {
74772
74819
  return /* @__PURE__ */ jsx(
74773
- Input2,
74820
+ StyledFormInput,
74774
74821
  {
74775
74822
  ...inputProps,
74776
74823
  ref,
@@ -74784,7 +74831,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74784
74831
  }
74785
74832
  if (addonAfter && !addonBefore) {
74786
74833
  return /* @__PURE__ */ jsx(
74787
- Input2,
74834
+ StyledFormInput,
74788
74835
  {
74789
74836
  ...inputProps,
74790
74837
  ref,
@@ -74797,7 +74844,7 @@ const FormInput = React__default.forwardRef((props, ref) => {
74797
74844
  );
74798
74845
  }
74799
74846
  return /* @__PURE__ */ jsx(
74800
- Input2,
74847
+ StyledFormInput,
74801
74848
  {
74802
74849
  ...inputProps,
74803
74850
  ref,
@@ -85871,6 +85918,12 @@ const SecondaryTableControlsRow = ({
85871
85918
  }
85872
85919
  );
85873
85920
  };
85921
+ const TABLE_CONTROLS_EVENTS = {
85922
+ GROUP_ITEM_CLICK: "groupItemClick",
85923
+ ORDER_CLICK: "orderClick",
85924
+ PRIMARY_SORT_CHANGE: "primarySortChange",
85925
+ INPUT_CHANGE: "inputChange"
85926
+ };
85874
85927
  const TableControls = ({
85875
85928
  primaryTableRowData,
85876
85929
  secondaryTableRowData,
@@ -87371,6 +87424,7 @@ export {
87371
87424
  Select,
87372
87425
  Shapes,
87373
87426
  Switch,
87427
+ TABLE_CONTROLS_EVENTS,
87374
87428
  TablePagination as Table,
87375
87429
  TableWithControls,
87376
87430
  Tabs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.4.42",
3
+ "version": "0.4.43",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",