@bolttech/atoms-segmented-control 0.17.0 → 0.18.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.
Files changed (2) hide show
  1. package/index.cjs +6 -11
  2. package/package.json +5 -5
package/index.cjs CHANGED
@@ -1855,16 +1855,13 @@ const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
1855
1855
  }) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}`, ({
1856
1856
  theme
1857
1857
  }) => tokenToInteger(theme.components.segmentControl.gap) === 0 && styled.css(["&:last-of-type{border-left:0;}&:first-of-type:nth-last-child(3){border-right:0;}&:not(:first-of-type) + &:not(:last-of-type){border-right:0;border-left:0;}"]), ({
1858
- disabled
1859
- }) => disabled && styled.css(["border:1px solid ", ";background-color:", ";cursor:default;*{cursor:default;}"], ({
1858
+ disabled,
1859
+ $pressed
1860
+ }) => disabled && !$pressed && styled.css(["border:1px solid ", ";background-color:", ";cursor:default;*{cursor:default;}"], ({
1860
1861
  theme
1861
- }) =>
1862
- // @ts-ignore
1863
- theme.components.segmentControl.border.color.disabled, ({
1862
+ }) => theme.components.segmentControl.border.color.disabled, ({
1864
1863
  theme
1865
- }) =>
1866
- // @ts-ignore
1867
- theme.components.segmentControl.container.color.disabled));
1864
+ }) => theme.components.segmentControl.container.color.disabled));
1868
1865
  const SegmentedControlContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
1869
1866
  displayName: "atoms-segmented-controlstyles__SegmentedControlContainer",
1870
1867
  componentId: "sc-1lpqq2u-1"
@@ -1911,9 +1908,7 @@ const OptionLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
1911
1908
  $disabled
1912
1909
  }) => $disabled && styled.css(["color:", ";"], ({
1913
1910
  theme
1914
- }) =>
1915
- // @ts-ignore
1916
- theme.components.segmentControl.text.color.disabled));
1911
+ }) => theme.components.segmentControl.text.color.disabled));
1917
1912
  const LabelError = /*#__PURE__*/styled__default["default"].label.withConfig({
1918
1913
  displayName: "atoms-segmented-controlstyles__LabelError",
1919
1914
  componentId: "sc-1lpqq2u-4"
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@bolttech/atoms-segmented-control",
3
- "version": "0.17.0",
3
+ "version": "0.18.1",
4
4
  "main": "./index.cjs",
5
5
  "type": "commonjs",
6
6
  "types": "./src/index.d.ts",
7
7
  "dependencies": {
8
- "@bolttech/default-theme": "0.3.0",
9
- "@bolttech/form-engine": "0.5.0",
10
- "@bolttech/frontend-foundations": "0.3.1",
11
- "@bolttech/ui-utils": "0.2.3",
8
+ "@bolttech/default-theme": "0.3.1",
9
+ "@bolttech/form-engine": "0.10.3",
10
+ "@bolttech/frontend-foundations": "0.6.0",
11
+ "@bolttech/ui-utils": "0.2.4",
12
12
  "react": "18.2.0",
13
13
  "styled-components": "6.1.1"
14
14
  },