theshtify 1.0.3 → 1.0.4

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.
package/index.html CHANGED
@@ -29,7 +29,7 @@
29
29
  bg: '#0C7059',
30
30
  color: '#E0BC29',
31
31
  border: {
32
- type: '#solid',
32
+ type: 'solid',
33
33
  color: '#E0BC29'
34
34
  },
35
35
  progress: {
package/lib/theshtify.js CHANGED
@@ -142,7 +142,7 @@ function configure(datas) {
142
142
  config.duration ? duration(config.duration) : '';
143
143
  config.custom_colors ? setCustomColors(config.custom_colors) : '';
144
144
  datas.type ? type(datas.type) : '';
145
- config.bordered ? bordered(config.border) : '';
145
+ config.bordered ? bordered(config.bordered) : '';
146
146
  config.bordered && config.border_width ? borderWidth(config.border_width) : '';
147
147
  config.radius ? radius(config.radius) : '';
148
148
  config.colors ? customColors(config.colors) : '';
@@ -242,13 +242,9 @@ function configureColor(colors) {
242
242
  // box text colors
243
243
  colors.color ? textColor(colors.color) : '';
244
244
  // borders
245
- if (colors.border && theshtify_infos.config.bordered) {
246
245
  colors.border.type ? borderType(colors.border.type) : '';
247
246
  colors.border.color ? borderColor(colors.border.color) : '';
248
- }
249
- if (colors.progress) {
250
247
  colors.progress.bg ? progressColor(colors.progress.bg) : '';
251
- }
252
248
  }
253
249
  function getColor(name) {
254
250
  return theshtify_infos.config.display.colors[name] ?? false;
@@ -142,7 +142,7 @@ function configure(datas) {
142
142
  config.duration ? duration(config.duration) : '';
143
143
  config.custom_colors ? setCustomColors(config.custom_colors) : '';
144
144
  datas.type ? type(datas.type) : '';
145
- config.bordered ? bordered(config.border) : '';
145
+ config.bordered ? bordered(config.bordered) : '';
146
146
  config.bordered && config.border_width ? borderWidth(config.border_width) : '';
147
147
  config.radius ? radius(config.radius) : '';
148
148
  config.colors ? customColors(config.colors) : '';
@@ -242,13 +242,9 @@ function configureColor(colors) {
242
242
  // box text colors
243
243
  colors.color ? textColor(colors.color) : '';
244
244
  // borders
245
- if (colors.border && theshtify_infos.config.bordered) {
246
245
  colors.border.type ? borderType(colors.border.type) : '';
247
246
  colors.border.color ? borderColor(colors.border.color) : '';
248
- }
249
- if (colors.progress) {
250
247
  colors.progress.bg ? progressColor(colors.progress.bg) : '';
251
- }
252
248
  }
253
249
  function getColor(name) {
254
250
  return theshtify_infos.config.display.colors[name] ?? false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theshtify",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Thesharsol notifyer is a lightweight, vanilla JS toast notification library.",
5
5
  "main": "index.js",
6
6
  "directories": {