@shell-shock/plugin-theme 0.3.13 → 0.3.15

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 (84) hide show
  1. package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -1
  2. package/dist/_virtual/_rolldown/runtime.mjs +3 -0
  3. package/dist/contexts/index.cjs +1 -0
  4. package/dist/contexts/theme.cjs +7 -6
  5. package/dist/contexts/theme.d.cts +0 -1
  6. package/dist/contexts/theme.d.cts.map +1 -1
  7. package/dist/contexts/theme.d.mts +0 -1
  8. package/dist/contexts/theme.d.mts.map +1 -1
  9. package/dist/contexts/theme.mjs.map +1 -1
  10. package/dist/core/dist/api.d.cts +1 -0
  11. package/dist/core/dist/api.d.mts +1 -0
  12. package/dist/core/dist/index.d.cts +3 -0
  13. package/dist/core/dist/index.d.mts +3 -0
  14. package/dist/core/dist/types/command.d.cts +185 -0
  15. package/dist/core/dist/types/command.d.cts.map +1 -0
  16. package/dist/core/dist/types/command.d.mts +185 -0
  17. package/dist/core/dist/types/command.d.mts.map +1 -0
  18. package/dist/core/dist/types/config.d.cts +95 -0
  19. package/dist/core/dist/types/config.d.cts.map +1 -0
  20. package/dist/core/dist/types/config.d.mts +95 -0
  21. package/dist/core/dist/types/config.d.mts.map +1 -0
  22. package/dist/core/dist/types/context.d.cts +28 -0
  23. package/dist/core/dist/types/context.d.cts.map +1 -0
  24. package/dist/core/dist/types/context.d.mts +28 -0
  25. package/dist/core/dist/types/context.d.mts.map +1 -0
  26. package/dist/helpers/ansi-utils.cjs +1 -0
  27. package/dist/helpers/ansi-utils.d.cts.map +1 -1
  28. package/dist/helpers/ansi-utils.d.mts.map +1 -1
  29. package/dist/helpers/ansi-utils.mjs.map +1 -1
  30. package/dist/helpers/border-styles.cjs +1 -1
  31. package/dist/helpers/border-styles.d.cts +0 -1
  32. package/dist/helpers/border-styles.d.cts.map +1 -1
  33. package/dist/helpers/border-styles.d.mts +0 -1
  34. package/dist/helpers/border-styles.d.mts.map +1 -1
  35. package/dist/helpers/border-styles.mjs +0 -1
  36. package/dist/helpers/border-styles.mjs.map +1 -1
  37. package/dist/helpers/index.cjs +2 -1
  38. package/dist/helpers/index.mjs +1 -1
  39. package/dist/helpers/merge.cjs +2 -1
  40. package/dist/helpers/merge.d.cts +0 -1
  41. package/dist/helpers/merge.d.cts.map +1 -1
  42. package/dist/helpers/merge.d.mts +0 -1
  43. package/dist/helpers/merge.d.mts.map +1 -1
  44. package/dist/helpers/merge.mjs.map +1 -1
  45. package/dist/helpers/spinners.cjs +3 -4
  46. package/dist/helpers/spinners.d.cts.map +1 -1
  47. package/dist/helpers/spinners.d.mts.map +1 -1
  48. package/dist/helpers/spinners.mjs +1 -2
  49. package/dist/helpers/spinners.mjs.map +1 -1
  50. package/dist/index.cjs +13 -14
  51. package/dist/index.d.cts +0 -1
  52. package/dist/index.d.cts.map +1 -1
  53. package/dist/index.d.mts +0 -1
  54. package/dist/index.d.mts.map +1 -1
  55. package/dist/index.mjs +1 -2
  56. package/dist/index.mjs.map +1 -1
  57. package/dist/style-dictionary/border-styles.cjs +54 -54
  58. package/dist/style-dictionary/border-styles.mjs +7 -7
  59. package/dist/style-dictionary/border-styles.mjs.map +1 -1
  60. package/dist/style-dictionary/colors.cjs +380 -380
  61. package/dist/style-dictionary/colors.mjs +185 -185
  62. package/dist/style-dictionary/colors.mjs.map +1 -1
  63. package/dist/style-dictionary/icons.cjs +64 -64
  64. package/dist/style-dictionary/icons.mjs +28 -28
  65. package/dist/style-dictionary/icons.mjs.map +1 -1
  66. package/dist/style-dictionary/labels.cjs +58 -58
  67. package/dist/style-dictionary/labels.mjs +33 -33
  68. package/dist/style-dictionary/labels.mjs.map +1 -1
  69. package/dist/style-dictionary/padding.cjs +61 -61
  70. package/dist/style-dictionary/padding.mjs +11 -11
  71. package/dist/style-dictionary/padding.mjs.map +1 -1
  72. package/dist/style-dictionary/settings.cjs +4 -4
  73. package/dist/style-dictionary/settings.mjs +2 -2
  74. package/dist/style-dictionary/settings.mjs.map +1 -1
  75. package/dist/style-dictionary/spinners.cjs +5 -5
  76. package/dist/style-dictionary/spinners.mjs.map +1 -1
  77. package/dist/themes/default.mjs.map +1 -1
  78. package/dist/types/plugin.d.cts +2 -1
  79. package/dist/types/plugin.d.cts.map +1 -1
  80. package/dist/types/plugin.d.mts +2 -1
  81. package/dist/types/plugin.d.mts.map +1 -1
  82. package/dist/types/theme.d.cts.map +1 -1
  83. package/dist/types/theme.d.mts.map +1 -1
  84. package/package.json +11 -11
@@ -41,202 +41,202 @@ const colors = (context) => ({
41
41
  }
42
42
  }
43
43
  };
44
- const colors$1 = dictionary.colors;
45
- if (isSetString(colors$1)) resolvedConfig.colors = {
44
+ const colors = dictionary.colors;
45
+ if (isSetString(colors)) resolvedConfig.colors = {
46
46
  text: {
47
47
  banner: {
48
48
  title: {
49
- primary: colors$1,
50
- secondary: colors$1,
51
- tertiary: colors$1
49
+ primary: colors,
50
+ secondary: colors,
51
+ tertiary: colors
52
52
  },
53
53
  header: {
54
- primary: colors$1,
55
- secondary: colors$1,
56
- tertiary: colors$1
54
+ primary: colors,
55
+ secondary: colors,
56
+ tertiary: colors
57
57
  },
58
58
  footer: {
59
- primary: colors$1,
60
- secondary: colors$1,
61
- tertiary: colors$1
59
+ primary: colors,
60
+ secondary: colors,
61
+ tertiary: colors
62
62
  },
63
63
  command: {
64
- primary: colors$1,
65
- secondary: colors$1,
66
- tertiary: colors$1
64
+ primary: colors,
65
+ secondary: colors,
66
+ tertiary: colors
67
67
  },
68
68
  description: {
69
- primary: colors$1,
70
- secondary: colors$1,
71
- tertiary: colors$1
69
+ primary: colors,
70
+ secondary: colors,
71
+ tertiary: colors
72
72
  },
73
73
  link: {
74
- primary: colors$1,
75
- secondary: colors$1,
76
- tertiary: colors$1
74
+ primary: colors,
75
+ secondary: colors,
76
+ tertiary: colors
77
77
  }
78
78
  },
79
79
  heading: {
80
- primary: colors$1,
81
- secondary: colors$1,
82
- tertiary: colors$1
80
+ primary: colors,
81
+ secondary: colors,
82
+ tertiary: colors
83
83
  },
84
84
  body: {
85
- primary: colors$1,
86
- secondary: colors$1,
87
- tertiary: colors$1,
88
- link: colors$1
85
+ primary: colors,
86
+ secondary: colors,
87
+ tertiary: colors,
88
+ link: colors
89
89
  },
90
90
  message: {
91
91
  link: {
92
- help: colors$1,
93
- success: colors$1,
94
- info: colors$1,
95
- debug: colors$1,
96
- warning: colors$1,
97
- danger: colors$1,
98
- error: colors$1
92
+ help: colors,
93
+ success: colors,
94
+ info: colors,
95
+ debug: colors,
96
+ warning: colors,
97
+ danger: colors,
98
+ error: colors
99
99
  },
100
100
  header: {
101
- help: colors$1,
102
- success: colors$1,
103
- info: colors$1,
104
- debug: colors$1,
105
- warning: colors$1,
106
- danger: colors$1,
107
- error: colors$1
101
+ help: colors,
102
+ success: colors,
103
+ info: colors,
104
+ debug: colors,
105
+ warning: colors,
106
+ danger: colors,
107
+ error: colors
108
108
  },
109
109
  footer: {
110
- help: colors$1,
111
- success: colors$1,
112
- info: colors$1,
113
- debug: colors$1,
114
- warning: colors$1,
115
- danger: colors$1,
116
- error: colors$1
110
+ help: colors,
111
+ success: colors,
112
+ info: colors,
113
+ debug: colors,
114
+ warning: colors,
115
+ danger: colors,
116
+ error: colors
117
117
  },
118
118
  description: {
119
- help: colors$1,
120
- success: colors$1,
121
- info: colors$1,
122
- debug: colors$1,
123
- warning: colors$1,
124
- danger: colors$1,
125
- error: colors$1
119
+ help: colors,
120
+ success: colors,
121
+ info: colors,
122
+ debug: colors,
123
+ warning: colors,
124
+ danger: colors,
125
+ error: colors
126
126
  }
127
127
  },
128
128
  usage: {
129
- bin: colors$1,
130
- command: colors$1,
131
- dynamic: colors$1,
132
- options: colors$1,
133
- args: colors$1,
134
- description: colors$1
129
+ bin: colors,
130
+ command: colors,
131
+ dynamic: colors,
132
+ options: colors,
133
+ args: colors,
134
+ description: colors
135
135
  },
136
136
  prompt: {
137
137
  icon: {
138
- active: colors$1,
139
- cancelled: colors$1,
140
- warning: colors$1,
141
- error: colors$1,
142
- submitted: colors$1,
143
- disabled: colors$1
138
+ active: colors,
139
+ cancelled: colors,
140
+ warning: colors,
141
+ error: colors,
142
+ submitted: colors,
143
+ disabled: colors
144
144
  },
145
145
  message: {
146
- active: colors$1,
147
- cancelled: colors$1,
148
- warning: colors$1,
149
- error: colors$1,
150
- submitted: colors$1,
151
- disabled: colors$1
146
+ active: colors,
147
+ cancelled: colors,
148
+ warning: colors,
149
+ error: colors,
150
+ submitted: colors,
151
+ disabled: colors
152
152
  },
153
153
  input: {
154
- active: colors$1,
155
- inactive: colors$1,
156
- cancelled: colors$1,
157
- warning: colors$1,
158
- error: colors$1,
159
- submitted: colors$1,
160
- placeholder: colors$1,
161
- disabled: colors$1
154
+ active: colors,
155
+ inactive: colors,
156
+ cancelled: colors,
157
+ warning: colors,
158
+ error: colors,
159
+ submitted: colors,
160
+ placeholder: colors,
161
+ disabled: colors
162
162
  },
163
163
  description: {
164
- active: colors$1,
165
- inactive: colors$1,
166
- cancelled: colors$1,
167
- warning: colors$1,
168
- error: colors$1,
169
- submitted: colors$1,
170
- disabled: colors$1
164
+ active: colors,
165
+ inactive: colors,
166
+ cancelled: colors,
167
+ warning: colors,
168
+ error: colors,
169
+ submitted: colors,
170
+ disabled: colors
171
171
  }
172
172
  },
173
173
  spinner: {
174
174
  icon: {
175
- active: colors$1,
176
- error: colors$1,
177
- success: colors$1,
178
- help: colors$1,
179
- info: colors$1,
180
- warning: colors$1
175
+ active: colors,
176
+ error: colors,
177
+ success: colors,
178
+ help: colors,
179
+ info: colors,
180
+ warning: colors
181
181
  },
182
182
  message: {
183
- active: colors$1,
184
- error: colors$1,
185
- success: colors$1,
186
- help: colors$1,
187
- info: colors$1,
188
- warning: colors$1
183
+ active: colors,
184
+ error: colors,
185
+ success: colors,
186
+ help: colors,
187
+ info: colors,
188
+ warning: colors
189
189
  }
190
190
  }
191
191
  },
192
192
  border: {
193
193
  banner: {
194
194
  outline: {
195
- primary: colors$1,
196
- secondary: colors$1,
197
- tertiary: colors$1
195
+ primary: colors,
196
+ secondary: colors,
197
+ tertiary: colors
198
198
  },
199
199
  divider: {
200
- primary: colors$1,
201
- secondary: colors$1,
202
- tertiary: colors$1
200
+ primary: colors,
201
+ secondary: colors,
202
+ tertiary: colors
203
203
  }
204
204
  },
205
205
  app: {
206
206
  table: {
207
- primary: colors$1,
208
- secondary: colors$1,
209
- tertiary: colors$1
207
+ primary: colors,
208
+ secondary: colors,
209
+ tertiary: colors
210
210
  },
211
211
  divider: {
212
- primary: colors$1,
213
- secondary: colors$1,
214
- tertiary: colors$1
212
+ primary: colors,
213
+ secondary: colors,
214
+ tertiary: colors
215
215
  }
216
216
  },
217
217
  message: {
218
218
  outline: {
219
- help: colors$1,
220
- success: colors$1,
221
- info: colors$1,
222
- debug: colors$1,
223
- warning: colors$1,
224
- danger: colors$1,
225
- error: colors$1
219
+ help: colors,
220
+ success: colors,
221
+ info: colors,
222
+ debug: colors,
223
+ warning: colors,
224
+ danger: colors,
225
+ error: colors
226
226
  },
227
227
  divider: {
228
- help: colors$1,
229
- success: colors$1,
230
- info: colors$1,
231
- debug: colors$1,
232
- warning: colors$1,
233
- danger: colors$1,
234
- error: colors$1
228
+ help: colors,
229
+ success: colors,
230
+ info: colors,
231
+ debug: colors,
232
+ warning: colors,
233
+ danger: colors,
234
+ error: colors
235
235
  }
236
236
  }
237
237
  }
238
238
  };
239
- else if (isSetObject(colors$1)) {
239
+ else if (isSetObject(colors)) {
240
240
  resolvedConfig.colors.text ??= {
241
241
  banner: {},
242
242
  heading: {},
@@ -248,7 +248,7 @@ const colors = (context) => ({
248
248
  description: {}
249
249
  }
250
250
  };
251
- const text = colors$1.text;
251
+ const text = colors.text;
252
252
  if (isSetString(text)) resolvedConfig.colors.text = {
253
253
  banner: {
254
254
  title: {
@@ -740,14 +740,14 @@ const colors = (context) => ({
740
740
  if (isSetString(prompt.icon.disabled)) resolvedConfig.colors.text.prompt.icon.disabled = prompt.icon.disabled;
741
741
  }
742
742
  if (isSetString(prompt.message)) {
743
- const message$1 = prompt.message;
743
+ const message = prompt.message;
744
744
  resolvedConfig.colors.text.prompt.message = {
745
- active: message$1,
746
- cancelled: message$1,
747
- warning: message$1,
748
- error: message$1,
749
- submitted: message$1,
750
- disabled: message$1
745
+ active: message,
746
+ cancelled: message,
747
+ warning: message,
748
+ error: message,
749
+ submitted: message,
750
+ disabled: message
751
751
  };
752
752
  } else if (isSetObject(prompt.message)) {
753
753
  if (isSetString(prompt.message.active)) resolvedConfig.colors.text.prompt.message.active = prompt.message.active;
@@ -843,14 +843,14 @@ const colors = (context) => ({
843
843
  if (isSetString(spinner.icon.warning)) resolvedConfig.colors.text.spinner.icon.warning = spinner.icon.warning;
844
844
  }
845
845
  if (isSetString(spinner.message)) {
846
- const message$1 = spinner.message;
846
+ const message = spinner.message;
847
847
  resolvedConfig.colors.text.spinner.message = {
848
- active: message$1,
849
- error: message$1,
850
- success: message$1,
851
- help: message$1,
852
- info: message$1,
853
- warning: message$1
848
+ active: message,
849
+ error: message,
850
+ success: message,
851
+ help: message,
852
+ info: message,
853
+ warning: message
854
854
  };
855
855
  } else if (isSetObject(spinner.message)) {
856
856
  if (isSetString(spinner.message.active)) resolvedConfig.colors.text.spinner.message.active = spinner.message.active;
@@ -876,7 +876,7 @@ const colors = (context) => ({
876
876
  divider: {}
877
877
  }
878
878
  };
879
- const border = colors$1.border;
879
+ const border = colors.border;
880
880
  if (isSetString(border)) resolvedConfig.colors.border = {
881
881
  banner: {
882
882
  outline: {
@@ -969,18 +969,18 @@ const colors = (context) => ({
969
969
  } else {
970
970
  resolvedConfig.colors.border.banner.outline ??= {};
971
971
  resolvedConfig.colors.border.banner.divider ??= {};
972
- const banner$1 = border.banner;
973
- if (isSetString(banner$1.primary)) {
974
- resolvedConfig.colors.border.banner.outline.primary = banner$1.primary;
975
- resolvedConfig.colors.border.banner.divider.primary = banner$1.primary;
972
+ const banner = border.banner;
973
+ if (isSetString(banner.primary)) {
974
+ resolvedConfig.colors.border.banner.outline.primary = banner.primary;
975
+ resolvedConfig.colors.border.banner.divider.primary = banner.primary;
976
976
  }
977
- if (isSetString(banner$1.secondary)) {
978
- resolvedConfig.colors.border.banner.outline.secondary = banner$1.secondary;
979
- resolvedConfig.colors.border.banner.divider.secondary = banner$1.secondary;
977
+ if (isSetString(banner.secondary)) {
978
+ resolvedConfig.colors.border.banner.outline.secondary = banner.secondary;
979
+ resolvedConfig.colors.border.banner.divider.secondary = banner.secondary;
980
980
  }
981
- if (isSetString(banner$1.tertiary)) {
982
- resolvedConfig.colors.border.banner.outline.tertiary = banner$1.tertiary;
983
- resolvedConfig.colors.border.banner.divider.tertiary = banner$1.tertiary;
981
+ if (isSetString(banner.tertiary)) {
982
+ resolvedConfig.colors.border.banner.outline.tertiary = banner.tertiary;
983
+ resolvedConfig.colors.border.banner.divider.tertiary = banner.tertiary;
984
984
  }
985
985
  }
986
986
  resolvedConfig.colors.border.app ??= {
@@ -1030,18 +1030,18 @@ const colors = (context) => ({
1030
1030
  } else {
1031
1031
  resolvedConfig.colors.border.app.table ??= {};
1032
1032
  resolvedConfig.colors.border.app.divider ??= {};
1033
- const app$1 = border.app;
1034
- if (isSetString(app$1.primary)) {
1035
- resolvedConfig.colors.border.app.table.primary = app$1.primary;
1036
- resolvedConfig.colors.border.app.divider.primary = app$1.primary;
1033
+ const app = border.app;
1034
+ if (isSetString(app.primary)) {
1035
+ resolvedConfig.colors.border.app.table.primary = app.primary;
1036
+ resolvedConfig.colors.border.app.divider.primary = app.primary;
1037
1037
  }
1038
- if (isSetString(app$1.secondary)) {
1039
- resolvedConfig.colors.border.app.table.secondary = app$1.secondary;
1040
- resolvedConfig.colors.border.app.divider.secondary = app$1.secondary;
1038
+ if (isSetString(app.secondary)) {
1039
+ resolvedConfig.colors.border.app.table.secondary = app.secondary;
1040
+ resolvedConfig.colors.border.app.divider.secondary = app.secondary;
1041
1041
  }
1042
- if (isSetString(app$1.tertiary)) {
1043
- resolvedConfig.colors.border.app.table.tertiary = app$1.tertiary;
1044
- resolvedConfig.colors.border.app.divider.tertiary = app$1.tertiary;
1042
+ if (isSetString(app.tertiary)) {
1043
+ resolvedConfig.colors.border.app.table.tertiary = app.tertiary;
1044
+ resolvedConfig.colors.border.app.divider.tertiary = app.tertiary;
1045
1045
  }
1046
1046
  }
1047
1047
  }
@@ -1116,34 +1116,34 @@ const colors = (context) => ({
1116
1116
  } else {
1117
1117
  resolvedConfig.colors.border.message.outline ??= {};
1118
1118
  resolvedConfig.colors.border.message.divider ??= {};
1119
- const message$1 = border.message;
1120
- if (isSetString(message$1.help)) {
1121
- resolvedConfig.colors.border.message.outline.help = message$1.help;
1122
- resolvedConfig.colors.border.message.divider.help = message$1.help;
1119
+ const message = border.message;
1120
+ if (isSetString(message.help)) {
1121
+ resolvedConfig.colors.border.message.outline.help = message.help;
1122
+ resolvedConfig.colors.border.message.divider.help = message.help;
1123
1123
  }
1124
- if (isSetString(message$1.success)) {
1125
- resolvedConfig.colors.border.message.outline.success = message$1.success;
1126
- resolvedConfig.colors.border.message.divider.success = message$1.success;
1124
+ if (isSetString(message.success)) {
1125
+ resolvedConfig.colors.border.message.outline.success = message.success;
1126
+ resolvedConfig.colors.border.message.divider.success = message.success;
1127
1127
  }
1128
- if (isSetString(message$1.info)) {
1129
- resolvedConfig.colors.border.message.outline.info = message$1.info;
1130
- resolvedConfig.colors.border.message.divider.info = message$1.info;
1128
+ if (isSetString(message.info)) {
1129
+ resolvedConfig.colors.border.message.outline.info = message.info;
1130
+ resolvedConfig.colors.border.message.divider.info = message.info;
1131
1131
  }
1132
- if (isSetString(message$1.debug)) {
1133
- resolvedConfig.colors.border.message.outline.debug = message$1.debug;
1134
- resolvedConfig.colors.border.message.divider.debug = message$1.debug;
1132
+ if (isSetString(message.debug)) {
1133
+ resolvedConfig.colors.border.message.outline.debug = message.debug;
1134
+ resolvedConfig.colors.border.message.divider.debug = message.debug;
1135
1135
  }
1136
- if (isSetString(message$1.warning)) {
1137
- resolvedConfig.colors.border.message.outline.warning = message$1.warning;
1138
- resolvedConfig.colors.border.message.divider.warning = message$1.warning;
1136
+ if (isSetString(message.warning)) {
1137
+ resolvedConfig.colors.border.message.outline.warning = message.warning;
1138
+ resolvedConfig.colors.border.message.divider.warning = message.warning;
1139
1139
  }
1140
- if (isSetString(message$1.danger)) {
1141
- resolvedConfig.colors.border.message.outline.danger = message$1.danger;
1142
- resolvedConfig.colors.border.message.divider.danger = message$1.danger;
1140
+ if (isSetString(message.danger)) {
1141
+ resolvedConfig.colors.border.message.outline.danger = message.danger;
1142
+ resolvedConfig.colors.border.message.divider.danger = message.danger;
1143
1143
  }
1144
- if (isSetString(message$1.error)) {
1145
- resolvedConfig.colors.border.message.outline.error = message$1.error;
1146
- resolvedConfig.colors.border.message.divider.error = message$1.error;
1144
+ if (isSetString(message.error)) {
1145
+ resolvedConfig.colors.border.message.outline.error = message.error;
1146
+ resolvedConfig.colors.border.message.divider.error = message.error;
1147
1147
  }
1148
1148
  }
1149
1149
  }