@ornikar/kitt-universal 2.1.1 → 2.2.0

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.
@@ -1942,23 +1942,57 @@ const StoryGrid = {
1942
1942
  const Container = /*#__PURE__*/styled__default(PrimitiveView).withConfig({
1943
1943
  displayName: "Tag__Container",
1944
1944
  componentId: "kitt-universal__sc-19jmowi-0"
1945
- })(["background-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], ({
1945
+ })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], ({
1946
1946
  theme,
1947
- type
1948
- }) => theme.kitt.tag[type].backgroundColor, ({
1947
+ type,
1948
+ variant
1949
+ }) => theme.kitt.tag[type][variant].backgroundColor, ({
1950
+ theme,
1951
+ type,
1952
+ variant
1953
+ }) => theme.kitt.tag[type][variant].borderWidth, ({
1954
+ theme,
1955
+ type,
1956
+ variant
1957
+ }) => theme.kitt.tag[type][variant].borderColor, ({
1949
1958
  theme
1950
1959
  }) => theme.kitt.tag.padding, ({
1951
1960
  theme
1952
1961
  }) => theme.kitt.tag.borderRadius);
1962
+ const getLabelColor = (type, variant) => {
1963
+ switch (type) {
1964
+ case 'danger':
1965
+ {
1966
+ return variant === 'outline' ? 'danger' : 'black';
1967
+ }
1968
+
1969
+ case 'primary':
1970
+ {
1971
+ return 'primary';
1972
+ }
1973
+
1974
+ case 'default':
1975
+ {
1976
+ return 'black';
1977
+ }
1978
+
1979
+ default:
1980
+ {
1981
+ return 'black';
1982
+ }
1983
+ }
1984
+ };
1953
1985
  function Tag({
1954
1986
  label,
1955
- type = 'default'
1987
+ type = 'default',
1988
+ variant = 'fill'
1956
1989
  }) {
1957
1990
  return /*#__PURE__*/React__default.createElement(Container, {
1958
- type: type
1991
+ type: type,
1992
+ variant: variant
1959
1993
  }, /*#__PURE__*/React__default.createElement(Typography.Text, {
1960
1994
  base: "body-xsmall",
1961
- color: type === 'primary' ? 'primary-light' : undefined
1995
+ color: getLabelColor(type, variant)
1962
1996
  }, label));
1963
1997
  }
1964
1998
 
@@ -2013,9 +2047,9 @@ const buttonLateOceanTheme = {
2013
2047
  disabledBorderColor: lateOceanColorPalette.black100
2014
2048
  },
2015
2049
  secondary: {
2016
- backgroundColor: lateOceanColorPalette.black50,
2050
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
2017
2051
  disabledBackgroundColor: lateOceanColorPalette.black50,
2018
- pressedBackgroundColor: lateOceanColorPalette.black100,
2052
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
2019
2053
  disabledBorderColor: lateOceanColorPalette.black100
2020
2054
  },
2021
2055
  subtle: {
@@ -2216,13 +2250,40 @@ const tagLateOceanTheme = {
2216
2250
  borderRadius: '10px',
2217
2251
  padding: '2px 12px',
2218
2252
  primary: {
2219
- backgroundColor: lateOceanColorPalette.moonPurpleLight1
2253
+ fill: {
2254
+ backgroundColor: lateOceanColorPalette.moonPurpleLight1,
2255
+ borderWidth: '0',
2256
+ borderColor: lateOceanColorPalette.transparent
2257
+ },
2258
+ outline: {
2259
+ backgroundColor: lateOceanColorPalette.transparent,
2260
+ borderWidth: '1px',
2261
+ borderColor: lateOceanColorPalette.lateOcean
2262
+ }
2220
2263
  },
2221
2264
  default: {
2222
- backgroundColor: lateOceanColorPalette.black50
2265
+ fill: {
2266
+ backgroundColor: lateOceanColorPalette.black50,
2267
+ borderWidth: '0',
2268
+ borderColor: lateOceanColorPalette.transparent
2269
+ },
2270
+ outline: {
2271
+ backgroundColor: lateOceanColorPalette.transparent,
2272
+ borderWidth: '1px',
2273
+ borderColor: lateOceanColorPalette.black1000
2274
+ }
2223
2275
  },
2224
2276
  danger: {
2225
- backgroundColor: lateOceanColorPalette.warmEmbrace
2277
+ fill: {
2278
+ backgroundColor: lateOceanColorPalette.warmEmbrace,
2279
+ borderWidth: '0',
2280
+ borderColor: lateOceanColorPalette.transparent
2281
+ },
2282
+ outline: {
2283
+ backgroundColor: lateOceanColorPalette.transparent,
2284
+ borderWidth: '1px',
2285
+ borderColor: colorsLateOceanTheme.danger
2286
+ }
2226
2287
  }
2227
2288
  };
2228
2289