@bgord/design 0.27.3 → 0.27.8

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.
@@ -1954,6 +1954,12 @@ var TransformsGenerator = /*#__PURE__*/function () {
1954
1954
  var _Object$entries$_i = _Object$entries[_i],
1955
1955
  key = _Object$entries$_i[0],
1956
1956
  value = _Object$entries$_i[1];
1957
+
1958
+ if (key === 'truncate') {
1959
+ output += "*[data-transform='" + key + "'] {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n";
1960
+ continue;
1961
+ }
1962
+
1957
1963
  output += "*[data-transform='" + key + "'] {\n text-transform: " + value + ";\n}\n";
1958
1964
  }
1959
1965
 
@@ -1967,6 +1973,37 @@ var TransformsGenerator = /*#__PURE__*/function () {
1967
1973
  return TransformsGenerator;
1968
1974
  }();
1969
1975
 
1976
+ var OverflowsGenerator = /*#__PURE__*/function () {
1977
+ function OverflowsGenerator(config) {
1978
+ this.overflows = config.overflows;
1979
+ }
1980
+
1981
+ var _proto = OverflowsGenerator.prototype;
1982
+
1983
+ _proto.generateHeader = function generateHeader() {
1984
+ return '/* Overflows */\n\n';
1985
+ };
1986
+
1987
+ _proto.generateCss = function generateCss() {
1988
+ var output = ''; // Regular display: data-overflow="*"
1989
+
1990
+ for (var _i = 0, _Object$entries = Object.entries(this.overflows); _i < _Object$entries.length; _i++) {
1991
+ var _Object$entries$_i = _Object$entries[_i],
1992
+ key = _Object$entries$_i[0],
1993
+ value = _Object$entries$_i[1];
1994
+ output += "*[data-overflow='" + key + "'] {\n overflow: " + value + ";\n}\n";
1995
+ }
1996
+
1997
+ return output;
1998
+ };
1999
+
2000
+ _proto.generateFooter = function generateFooter() {
2001
+ return '/* ===================== */\n\n';
2002
+ };
2003
+
2004
+ return OverflowsGenerator;
2005
+ }();
2006
+
1970
2007
  var Spacing = {
1971
2008
  '0': '0',
1972
2009
  '3': '3px',
@@ -2130,8 +2167,14 @@ var Transforms = {
2130
2167
  uppercase: 'uppercase',
2131
2168
  lowercase: 'lowercase',
2132
2169
  capitalize: 'capitalize',
2170
+ truncate: 'truncate',
2133
2171
  none: 'none'
2134
2172
  };
2173
+ var Overflows = {
2174
+ auto: 'auto',
2175
+ scroll: 'scroll',
2176
+ hidden: 'hidden'
2177
+ };
2135
2178
 
2136
2179
  var GeneratorProcessor = /*#__PURE__*/function () {
2137
2180
  function GeneratorProcessor() {}
@@ -2185,10 +2228,16 @@ var GeneratorProcessor = /*#__PURE__*/function () {
2185
2228
 
2186
2229
  case 21:
2187
2230
  output = _context.t4 += _context.sent;
2188
- _context.next = 24;
2231
+ _context.t5 = output;
2232
+ _context.next = 25;
2233
+ return new File('src/ui/checkbox.css').read();
2234
+
2235
+ case 25:
2236
+ output = _context.t5 += _context.sent;
2237
+ _context.next = 28;
2189
2238
  return new File('dist/main.css').save(output);
2190
2239
 
2191
- case 24:
2240
+ case 28:
2192
2241
  case "end":
2193
2242
  return _context.stop();
2194
2243
  }
@@ -2240,10 +2289,11 @@ function _main() {
2240
2289
  borderColors: BorderColors,
2241
2290
  borderRadiuses: BorderRadiuses,
2242
2291
  maxWidths: MaxWidths,
2243
- transforms: Transforms
2292
+ transforms: Transforms,
2293
+ overflows: Overflows
2244
2294
  };
2245
2295
  _context2.next = 3;
2246
- return new GeneratorProcessor().process([new Margins(config), new Paddings(config), new DisplaysGenerator(config), new AxisPlacementsGenerator(config), new FlexWrapGenerator(config), new FlexDirectionsGenerator(config), new FlexGrowsGenerator(config), new WidthsGenerator(config), new PositionsGenerator(config), new ZIndexGenerator(config), new FontSizeGenerator(config), new FontWeightGenerator(config), new FontColorsGenerator(config), new LineHeightsGenerator(config), new LetterSpacingsGenerator(config), new BackgroundsGenerator(config), new BorderWidthsGenerator(config), new BorderColorsGenerator(config), new BorderRadiusesGenerator(config), new MaxWidthsGenerator(config), new TransformsGenerator(config)]);
2296
+ return new GeneratorProcessor().process([new Margins(config), new Paddings(config), new DisplaysGenerator(config), new AxisPlacementsGenerator(config), new FlexWrapGenerator(config), new FlexDirectionsGenerator(config), new FlexGrowsGenerator(config), new WidthsGenerator(config), new PositionsGenerator(config), new ZIndexGenerator(config), new FontSizeGenerator(config), new FontWeightGenerator(config), new FontColorsGenerator(config), new LineHeightsGenerator(config), new LetterSpacingsGenerator(config), new BackgroundsGenerator(config), new BorderWidthsGenerator(config), new BorderColorsGenerator(config), new BorderRadiusesGenerator(config), new MaxWidthsGenerator(config), new TransformsGenerator(config), new OverflowsGenerator(config)]);
2247
2297
 
2248
2298
  case 3:
2249
2299
  case "end":