@ornikar/kitt-universal 1.1.0 → 1.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.
@@ -1196,7 +1196,7 @@ function NativeAnimatedContainer(_ref6) {
1196
1196
  };
1197
1197
  _f.asString = "function _f(){const{withSpring,pressed}=jsThis._closure;{return{opacity:withSpring(pressed.value?1:0)};}}";
1198
1198
  _f.__workletHash = 10645190329247;
1199
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (64:41)";
1199
+ _f.__location = "/home/chris/ornikar/kitt/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (64:41)";
1200
1200
  _f.__optimalization = 2;
1201
1201
 
1202
1202
  global.__reanimatedWorkletInit(_f);
@@ -1230,7 +1230,7 @@ function NativeAnimatedContainer(_ref6) {
1230
1230
  };
1231
1231
  _f.asString = "function _f(){const{withSpring,pressed,theme}=jsThis._closure;{return{transform:[{scale:withSpring(pressed.value?theme.kitt.iconButton.scale.base.active:theme.kitt.iconButton.scale.base.default)}]};}}";
1232
1232
  _f.__workletHash = 13861998831411;
1233
- _f.__location = "/home/circleci/repo/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (70:39)";
1233
+ _f.__location = "/home/chris/ornikar/kitt/@ornikar/kitt-universal/src/IconButton/PressableAnimatedContainer.tsx (70:39)";
1234
1234
  _f.__optimalization = 2;
1235
1235
 
1236
1236
  global.__reanimatedWorkletInit(_f);
@@ -2061,26 +2061,63 @@ var StoryGrid = {
2061
2061
  var Container = /*#__PURE__*/styled(PrimitiveView).withConfig({
2062
2062
  displayName: "Tag__Container",
2063
2063
  componentId: "kitt-universal__sc-19jmowi-0"
2064
- })(["background-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2064
+ })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2065
2065
  var theme = _ref.theme,
2066
- type = _ref.type;
2067
- return theme.kitt.tag[type].backgroundColor;
2066
+ type = _ref.type,
2067
+ variant = _ref.variant;
2068
+ return theme.kitt.tag[type][variant].backgroundColor;
2068
2069
  }, function (_ref2) {
2069
- var theme = _ref2.theme;
2070
- return theme.kitt.tag.padding;
2070
+ var theme = _ref2.theme,
2071
+ type = _ref2.type,
2072
+ variant = _ref2.variant;
2073
+ return theme.kitt.tag[type][variant].borderWidth;
2071
2074
  }, function (_ref3) {
2072
- var theme = _ref3.theme;
2075
+ var theme = _ref3.theme,
2076
+ type = _ref3.type,
2077
+ variant = _ref3.variant;
2078
+ return theme.kitt.tag[type][variant].borderColor;
2079
+ }, function (_ref4) {
2080
+ var theme = _ref4.theme;
2081
+ return theme.kitt.tag.padding;
2082
+ }, function (_ref5) {
2083
+ var theme = _ref5.theme;
2073
2084
  return theme.kitt.tag.borderRadius;
2074
2085
  });
2075
- function Tag(_ref4) {
2076
- var label = _ref4.label,
2077
- _ref4$type = _ref4.type,
2078
- type = _ref4$type === void 0 ? 'default' : _ref4$type;
2086
+ var getLabelColor = function (type, variant) {
2087
+ switch (type) {
2088
+ case 'danger':
2089
+ {
2090
+ return variant === 'outline' ? 'danger' : 'black';
2091
+ }
2092
+
2093
+ case 'primary':
2094
+ {
2095
+ return 'primary';
2096
+ }
2097
+
2098
+ case 'default':
2099
+ {
2100
+ return 'black';
2101
+ }
2102
+
2103
+ default:
2104
+ {
2105
+ return 'black';
2106
+ }
2107
+ }
2108
+ };
2109
+ function Tag(_ref6) {
2110
+ var label = _ref6.label,
2111
+ _ref6$type = _ref6.type,
2112
+ type = _ref6$type === void 0 ? 'default' : _ref6$type,
2113
+ _ref6$variant = _ref6.variant,
2114
+ variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2079
2115
  return /*#__PURE__*/React.createElement(Container, {
2080
- type: type
2116
+ type: type,
2117
+ variant: variant
2081
2118
  }, /*#__PURE__*/React.createElement(Typography.Text, {
2082
2119
  base: "body-xsmall",
2083
- color: type === 'primary' ? 'primary-light' : undefined
2120
+ color: getLabelColor(type, variant)
2084
2121
  }, label));
2085
2122
  }
2086
2123
 
@@ -2133,9 +2170,9 @@ var buttonLateOceanTheme = {
2133
2170
  disabledBorderColor: lateOceanColorPalette.black100
2134
2171
  },
2135
2172
  secondary: {
2136
- backgroundColor: lateOceanColorPalette.black50,
2173
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
2137
2174
  disabledBackgroundColor: lateOceanColorPalette.black50,
2138
- pressedBackgroundColor: lateOceanColorPalette.black100,
2175
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
2139
2176
  disabledBorderColor: lateOceanColorPalette.black100
2140
2177
  },
2141
2178
  subtle: {
@@ -2335,15 +2372,40 @@ var tagLateOceanTheme = {
2335
2372
  borderRadius: '10px',
2336
2373
  padding: '2px 12px',
2337
2374
  primary: {
2338
- // eslint-disable-next-line unicorn/expiring-todo-comments
2339
- // TODO: validate Moon shadow color with design team
2340
- backgroundColor: '#EDEBFC'
2375
+ fill: {
2376
+ backgroundColor: '#EDEBFC',
2377
+ borderWidth: '0',
2378
+ borderColor: lateOceanColorPalette.transparent
2379
+ },
2380
+ outline: {
2381
+ backgroundColor: lateOceanColorPalette.transparent,
2382
+ borderWidth: '1px',
2383
+ borderColor: lateOceanColorPalette.lateOcean
2384
+ }
2341
2385
  },
2342
2386
  "default": {
2343
- backgroundColor: lateOceanColorPalette.black50
2387
+ fill: {
2388
+ backgroundColor: lateOceanColorPalette.black50,
2389
+ borderWidth: '0',
2390
+ borderColor: lateOceanColorPalette.transparent
2391
+ },
2392
+ outline: {
2393
+ backgroundColor: lateOceanColorPalette.transparent,
2394
+ borderWidth: '1px',
2395
+ borderColor: lateOceanColorPalette.black1000
2396
+ }
2344
2397
  },
2345
2398
  danger: {
2346
- backgroundColor: lateOceanColorPalette.warmEmbrace
2399
+ fill: {
2400
+ backgroundColor: lateOceanColorPalette.warmEmbrace,
2401
+ borderWidth: '0',
2402
+ borderColor: lateOceanColorPalette.transparent
2403
+ },
2404
+ outline: {
2405
+ backgroundColor: lateOceanColorPalette.transparent,
2406
+ borderWidth: '1px',
2407
+ borderColor: colorsLateOceanTheme.danger
2408
+ }
2347
2409
  }
2348
2410
  };
2349
2411