@gobolt/genesis 0.4.19 → 0.4.21

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,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  export type State = "success" | "warning" | "error" | "info" | "generic" | "hollow";
2
3
  export interface BadgeProps {
3
4
  label?: string;
@@ -3,6 +3,7 @@ import { State } from './Badge';
3
3
  interface StyledBadgeProperties {
4
4
  theme?: GenesisTheme;
5
5
  state?: State;
6
+ $state?: State;
6
7
  label?: string;
7
8
  disabled?: boolean;
8
9
  $backgroundColor?: string;
package/dist/index.cjs CHANGED
@@ -60537,6 +60537,7 @@ const Badge$2 = styled.div`
60537
60537
  ${({
60538
60538
  theme,
60539
60539
  state,
60540
+ $state,
60540
60541
  label,
60541
60542
  disabled: disabled2,
60542
60543
  $backgroundColor,
@@ -60544,7 +60545,7 @@ const Badge$2 = styled.div`
60544
60545
  }) => {
60545
60546
  return getGenesisClass$c(
60546
60547
  theme,
60547
- state || "info",
60548
+ $state || state || "info",
60548
60549
  label,
60549
60550
  disabled2,
60550
60551
  $backgroundColor,
@@ -60863,7 +60864,7 @@ const Badge$1 = ({
60863
60864
  {
60864
60865
  label,
60865
60866
  role: "badge",
60866
- state,
60867
+ $state: state,
60867
60868
  disabled: isDisabled,
60868
60869
  style: {
60869
60870
  padding: "4px 4px"
@@ -60896,7 +60897,7 @@ const Badge$1 = ({
60896
60897
  label,
60897
60898
  role,
60898
60899
  onClick,
60899
- state,
60900
+ $state: state,
60900
60901
  disabled: isDisabled,
60901
60902
  style: { cursor: role === "button" ? "pointer" : "default" },
60902
60903
  $backgroundColor: backgroundColor || void 0,
@@ -85374,7 +85375,7 @@ const SecondaryTableControlsRow = ({
85374
85375
  children: [
85375
85376
  /* @__PURE__ */ jsxRuntime.jsx(GroupsRow, { groups, onGroupItemClick }),
85376
85377
  (totalRecords ?? 0) > 0 && !infiniteScrollData ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `${totalRecords} results` }) : null,
85377
- infiniteScrollData ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `Loaded ${infiniteScrollData.resultsShown} of ${infiniteScrollData.totalResults} Results` }) : null
85378
+ infiniteScrollData ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `${infiniteScrollData.resultsShown} results` }) : null
85378
85379
  ]
85379
85380
  }
85380
85381
  );
package/dist/index.js CHANGED
@@ -60519,6 +60519,7 @@ const Badge$2 = styled.div`
60519
60519
  ${({
60520
60520
  theme,
60521
60521
  state,
60522
+ $state,
60522
60523
  label,
60523
60524
  disabled: disabled2,
60524
60525
  $backgroundColor,
@@ -60526,7 +60527,7 @@ const Badge$2 = styled.div`
60526
60527
  }) => {
60527
60528
  return getGenesisClass$c(
60528
60529
  theme,
60529
- state || "info",
60530
+ $state || state || "info",
60530
60531
  label,
60531
60532
  disabled2,
60532
60533
  $backgroundColor,
@@ -60845,7 +60846,7 @@ const Badge$1 = ({
60845
60846
  {
60846
60847
  label,
60847
60848
  role: "badge",
60848
- state,
60849
+ $state: state,
60849
60850
  disabled: isDisabled,
60850
60851
  style: {
60851
60852
  padding: "4px 4px"
@@ -60878,7 +60879,7 @@ const Badge$1 = ({
60878
60879
  label,
60879
60880
  role,
60880
60881
  onClick,
60881
- state,
60882
+ $state: state,
60882
60883
  disabled: isDisabled,
60883
60884
  style: { cursor: role === "button" ? "pointer" : "default" },
60884
60885
  $backgroundColor: backgroundColor || void 0,
@@ -85356,7 +85357,7 @@ const SecondaryTableControlsRow = ({
85356
85357
  children: [
85357
85358
  /* @__PURE__ */ jsx(GroupsRow, { groups, onGroupItemClick }),
85358
85359
  (totalRecords ?? 0) > 0 && !infiniteScrollData ? /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `${totalRecords} results` }) : null,
85359
- infiniteScrollData ? /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `Loaded ${infiniteScrollData.resultsShown} of ${infiniteScrollData.totalResults} Results` }) : null
85360
+ infiniteScrollData ? /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "#6C6C6C", children: `${infiniteScrollData.resultsShown} results` }) : null
85360
85361
  ]
85361
85362
  }
85362
85363
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gobolt/genesis",
3
- "version": "0.4.19",
3
+ "version": "0.4.21",
4
4
  "description": "genesis design system",
5
5
  "author": "gobolt",
6
6
  "license": "MIT",