@roku-ui/preset 0.7.5 → 0.7.6

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/dist/index.cjs +2 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -49,7 +49,7 @@ const shortcuts = colorKeys.filter(d => d !== 'surface').reduce((shortcuts, colo
49
49
  shortcuts[`btn-constrast-${color}`] = `container-constrast-${color} hover:text-surface-base hover:bg-${color}-container focus-visible:outline-2 outline-offset-2 focus-visible:outline-${color}-container outline-none`;
50
50
  return shortcuts;
51
51
  }, {});
52
- const rokuPreset = options => () => {
52
+ const rokuPreset = (options = {}) => () => {
53
53
  let file = '';
54
54
  try {
55
55
  file = fs.readFileSync('node_modules/@roku-ui/vue/dist/index.js', 'utf-8');
@@ -84,7 +84,7 @@ const rokuPreset = options => () => {
84
84
  'display': 'inline-block',
85
85
  'vertical-align': 'middle',
86
86
  },
87
- ...options.icon,
87
+ ...options === null || options === void 0 ? void 0 : options.icon,
88
88
  }),
89
89
  ],
90
90
  content: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@roku-ui/preset",
3
3
  "type": "module",
4
- "version": "0.7.5",
4
+ "version": "0.7.6",
5
5
  "author": "Jianqi Pan <jannchie@gmail.com>",
6
6
  "repository": {
7
7
  "type": "git",