@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.
@@ -2130,26 +2130,63 @@ var StoryGrid = {
2130
2130
  var Container = /*#__PURE__*/styled(PrimitiveView).withConfig({
2131
2131
  displayName: "Tag__Container",
2132
2132
  componentId: "kitt-universal__sc-19jmowi-0"
2133
- })(["background-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2133
+ })(["background-color:", ";border-width:", ";border-color:", ";padding:", ";border-radius:", ";align-self:flex-start;"], function (_ref) {
2134
2134
  var theme = _ref.theme,
2135
- type = _ref.type;
2136
- return theme.kitt.tag[type].backgroundColor;
2135
+ type = _ref.type,
2136
+ variant = _ref.variant;
2137
+ return theme.kitt.tag[type][variant].backgroundColor;
2137
2138
  }, function (_ref2) {
2138
- var theme = _ref2.theme;
2139
- return theme.kitt.tag.padding;
2139
+ var theme = _ref2.theme,
2140
+ type = _ref2.type,
2141
+ variant = _ref2.variant;
2142
+ return theme.kitt.tag[type][variant].borderWidth;
2140
2143
  }, function (_ref3) {
2141
- var theme = _ref3.theme;
2144
+ var theme = _ref3.theme,
2145
+ type = _ref3.type,
2146
+ variant = _ref3.variant;
2147
+ return theme.kitt.tag[type][variant].borderColor;
2148
+ }, function (_ref4) {
2149
+ var theme = _ref4.theme;
2150
+ return theme.kitt.tag.padding;
2151
+ }, function (_ref5) {
2152
+ var theme = _ref5.theme;
2142
2153
  return theme.kitt.tag.borderRadius;
2143
2154
  });
2144
- function Tag(_ref4) {
2145
- var label = _ref4.label,
2146
- _ref4$type = _ref4.type,
2147
- type = _ref4$type === void 0 ? 'default' : _ref4$type;
2155
+ var getLabelColor = function (type, variant) {
2156
+ switch (type) {
2157
+ case 'danger':
2158
+ {
2159
+ return variant === 'outline' ? 'danger' : 'black';
2160
+ }
2161
+
2162
+ case 'primary':
2163
+ {
2164
+ return 'primary';
2165
+ }
2166
+
2167
+ case 'default':
2168
+ {
2169
+ return 'black';
2170
+ }
2171
+
2172
+ default:
2173
+ {
2174
+ return 'black';
2175
+ }
2176
+ }
2177
+ };
2178
+ function Tag(_ref6) {
2179
+ var label = _ref6.label,
2180
+ _ref6$type = _ref6.type,
2181
+ type = _ref6$type === void 0 ? 'default' : _ref6$type,
2182
+ _ref6$variant = _ref6.variant,
2183
+ variant = _ref6$variant === void 0 ? 'fill' : _ref6$variant;
2148
2184
  return /*#__PURE__*/React.createElement(Container, {
2149
- type: type
2185
+ type: type,
2186
+ variant: variant
2150
2187
  }, /*#__PURE__*/React.createElement(Typography.Text, {
2151
2188
  base: "body-xsmall",
2152
- color: type === 'primary' ? 'primary-light' : undefined
2189
+ color: getLabelColor(type, variant)
2153
2190
  }, label));
2154
2191
  }
2155
2192
 
@@ -2202,9 +2239,9 @@ var buttonLateOceanTheme = {
2202
2239
  disabledBorderColor: lateOceanColorPalette.black100
2203
2240
  },
2204
2241
  secondary: {
2205
- backgroundColor: lateOceanColorPalette.black50,
2242
+ backgroundColor: 'rgba(0, 0, 0, 0.05)',
2206
2243
  disabledBackgroundColor: lateOceanColorPalette.black50,
2207
- pressedBackgroundColor: lateOceanColorPalette.black100,
2244
+ pressedBackgroundColor: 'rgba(0, 0, 0, 0.1)',
2208
2245
  disabledBorderColor: lateOceanColorPalette.black100
2209
2246
  },
2210
2247
  subtle: {
@@ -2404,15 +2441,40 @@ var tagLateOceanTheme = {
2404
2441
  borderRadius: '10px',
2405
2442
  padding: '2px 12px',
2406
2443
  primary: {
2407
- // eslint-disable-next-line unicorn/expiring-todo-comments
2408
- // TODO: validate Moon shadow color with design team
2409
- backgroundColor: '#EDEBFC'
2444
+ fill: {
2445
+ backgroundColor: '#EDEBFC',
2446
+ borderWidth: '0',
2447
+ borderColor: lateOceanColorPalette.transparent
2448
+ },
2449
+ outline: {
2450
+ backgroundColor: lateOceanColorPalette.transparent,
2451
+ borderWidth: '1px',
2452
+ borderColor: lateOceanColorPalette.lateOcean
2453
+ }
2410
2454
  },
2411
2455
  "default": {
2412
- backgroundColor: lateOceanColorPalette.black50
2456
+ fill: {
2457
+ backgroundColor: lateOceanColorPalette.black50,
2458
+ borderWidth: '0',
2459
+ borderColor: lateOceanColorPalette.transparent
2460
+ },
2461
+ outline: {
2462
+ backgroundColor: lateOceanColorPalette.transparent,
2463
+ borderWidth: '1px',
2464
+ borderColor: lateOceanColorPalette.black1000
2465
+ }
2413
2466
  },
2414
2467
  danger: {
2415
- backgroundColor: lateOceanColorPalette.warmEmbrace
2468
+ fill: {
2469
+ backgroundColor: lateOceanColorPalette.warmEmbrace,
2470
+ borderWidth: '0',
2471
+ borderColor: lateOceanColorPalette.transparent
2472
+ },
2473
+ outline: {
2474
+ backgroundColor: lateOceanColorPalette.transparent,
2475
+ borderWidth: '1px',
2476
+ borderColor: colorsLateOceanTheme.danger
2477
+ }
2416
2478
  }
2417
2479
  };
2418
2480