@ttoss/theme 1.4.35 → 1.4.36

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.
@@ -55,9 +55,23 @@ var require_success_circle = __commonJS({
55
55
  }
56
56
  });
57
57
 
58
+ // ../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js
59
+ var require_three_dots_loading = __commonJS({
60
+ "../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js"(exports) {
61
+ var data = {
62
+ "width": 24,
63
+ "height": 24,
64
+ "body": '<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle>'
65
+ };
66
+ exports.__esModule = true;
67
+ exports.default = data;
68
+ }
69
+ });
70
+
58
71
  // src/themes/Bruttal/BruttalIcons.ts
59
72
  var import_loading = __toESM(require_loading());
60
73
  var import_success_circle = __toESM(require_success_circle());
74
+ var import_three_dots_loading = __toESM(require_three_dots_loading());
61
75
  import { addIcon } from "@iconify-icon/react";
62
76
  import addFilledIcon from "@iconify/icons-carbon/add-filled";
63
77
  import arrowRightIcon from "@iconify/icons-carbon/arrow-right";
@@ -91,6 +105,7 @@ import uploadIcon from "@iconify/icons-carbon/upload";
91
105
  import userAvatarFilledAltIcon from "@iconify/icons-carbon/user-avatar-filled-alt";
92
106
  import viewFilledIcon from "@iconify/icons-carbon/view-filled";
93
107
  import viewOffFilledIcon from "@iconify/icons-carbon/view-off-filled";
108
+ import warningAltIcon from "@iconify/icons-carbon/warning-alt";
94
109
  import warningFilledIcon from "@iconify/icons-carbon/warning-filled";
95
110
  var replicateIcon = {
96
111
  body: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -140,11 +155,13 @@ addIcon("replicate", replicateIcon);
140
155
  addIcon("subtract", subtractIcon);
141
156
  addIcon("success-circle", import_success_circle.default);
142
157
  addIcon("small-close", closeFilledIcon);
158
+ addIcon("three-dots-loading", import_three_dots_loading.default);
143
159
  addIcon("time", timeIcon);
144
160
  addIcon("upload", uploadIcon);
145
161
  addIcon("view-off", viewOffFilledIcon);
146
162
  addIcon("view-on", viewFilledIcon);
147
163
  addIcon("warning", warningFilledIcon);
164
+ addIcon("warning-alt", warningAltIcon);
148
165
 
149
166
  // src/themes/Bruttal/BruttalFonts.ts
150
167
  var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
@@ -205,7 +222,7 @@ var lineHeights = {
205
222
  "2xs": "0.422",
206
223
  xs: "0.562",
207
224
  sm: "calc(1 / 1.333)",
208
- base: "normal",
225
+ base: "1",
209
226
  lg: "calc(1 * 1.333)",
210
227
  xl: "1.776",
211
228
  "2xl": "2.368"
@@ -489,8 +506,10 @@ var BruttalTheme = {
489
506
  color: "primary",
490
507
  border: "default",
491
508
  borderColor: "primary",
509
+ borderRadius: "action",
492
510
  ":disabled": {
493
511
  border: "muted",
512
+ borderColor: "onMuted",
494
513
  backgroundColor: "muted",
495
514
  color: "onMuted",
496
515
  cursor: "not-allowed"
@@ -590,6 +609,7 @@ var BruttalTheme = {
590
609
  },
591
610
  ":disabled": {
592
611
  backgroundColor: "muted",
612
+ color: "onMuted",
593
613
  border: "muted",
594
614
  borderColor: "onMuted"
595
615
  },
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalTheme } from "./chunk-MT6XFJ5D.js";
2
+ import { BruttalTheme } from "./chunk-34FGL5GX.js";
3
3
 
4
4
  // src/createTheme.ts
5
5
  import deepmerge from "deepmerge";
@@ -1,3 +1,3 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
- import { BruttalFonts, BruttalTheme } from "../../chunk-MT6XFJ5D.js";
2
+ import { BruttalFonts, BruttalTheme } from "../../chunk-34FGL5GX.js";
3
3
  export { BruttalFonts, BruttalTheme };
package/dist/index.js CHANGED
@@ -66,6 +66,19 @@ var require_success_circle = __commonJS({
66
66
  }
67
67
  });
68
68
 
69
+ // ../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js
70
+ var require_three_dots_loading = __commonJS({
71
+ "../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js"(exports) {
72
+ var data = {
73
+ "width": 24,
74
+ "height": 24,
75
+ "body": '<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle>'
76
+ };
77
+ exports.__esModule = true;
78
+ exports.default = data;
79
+ }
80
+ });
81
+
69
82
  // src/index.ts
70
83
  var src_exports = {};
71
84
  __export(src_exports, {
@@ -103,12 +116,14 @@ var import_radio_button_checked = __toESM(require("@iconify/icons-carbon/radio-b
103
116
  var import_radio_button = __toESM(require("@iconify/icons-carbon/radio-button"));
104
117
  var import_renew = __toESM(require("@iconify/icons-carbon/renew"));
105
118
  var import_success_circle = __toESM(require_success_circle());
119
+ var import_three_dots_loading = __toESM(require_three_dots_loading());
106
120
  var import_time = __toESM(require("@iconify/icons-carbon/time"));
107
121
  var import_trash_can = __toESM(require("@iconify/icons-carbon/trash-can"));
108
122
  var import_upload = __toESM(require("@iconify/icons-carbon/upload"));
109
123
  var import_user_avatar_filled_alt = __toESM(require("@iconify/icons-carbon/user-avatar-filled-alt"));
110
124
  var import_view_filled = __toESM(require("@iconify/icons-carbon/view-filled"));
111
125
  var import_view_off_filled = __toESM(require("@iconify/icons-carbon/view-off-filled"));
126
+ var import_warning_alt = __toESM(require("@iconify/icons-carbon/warning-alt"));
112
127
  var import_warning_filled = __toESM(require("@iconify/icons-carbon/warning-filled"));
113
128
  var replicateIcon = {
114
129
  body: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -158,11 +173,13 @@ var subtractIcon = {
158
173
  (0, import_react.addIcon)("subtract", subtractIcon);
159
174
  (0, import_react.addIcon)("success-circle", import_success_circle.default);
160
175
  (0, import_react.addIcon)("small-close", import_close_filled.default);
176
+ (0, import_react.addIcon)("three-dots-loading", import_three_dots_loading.default);
161
177
  (0, import_react.addIcon)("time", import_time.default);
162
178
  (0, import_react.addIcon)("upload", import_upload.default);
163
179
  (0, import_react.addIcon)("view-off", import_view_off_filled.default);
164
180
  (0, import_react.addIcon)("view-on", import_view_filled.default);
165
181
  (0, import_react.addIcon)("warning", import_warning_filled.default);
182
+ (0, import_react.addIcon)("warning-alt", import_warning_alt.default);
166
183
 
167
184
  // src/helpers/geometricCalc.ts
168
185
  var SIZE_TYPE = "rem";
@@ -220,7 +237,7 @@ var lineHeights = {
220
237
  "2xs": "0.422",
221
238
  xs: "0.562",
222
239
  sm: "calc(1 / 1.333)",
223
- base: "normal",
240
+ base: "1",
224
241
  lg: "calc(1 * 1.333)",
225
242
  xl: "1.776",
226
243
  "2xl": "2.368"
@@ -504,8 +521,10 @@ var BruttalTheme = {
504
521
  color: "primary",
505
522
  border: "default",
506
523
  borderColor: "primary",
524
+ borderRadius: "action",
507
525
  ":disabled": {
508
526
  border: "muted",
527
+ borderColor: "onMuted",
509
528
  backgroundColor: "muted",
510
529
  color: "onMuted",
511
530
  cursor: "not-allowed"
@@ -605,6 +624,7 @@ var BruttalTheme = {
605
624
  },
606
625
  ":disabled": {
607
626
  backgroundColor: "muted",
627
+ color: "onMuted",
608
628
  border: "muted",
609
629
  borderColor: "onMuted"
610
630
  },
@@ -66,6 +66,19 @@ var require_success_circle = __commonJS({
66
66
  }
67
67
  });
68
68
 
69
+ // ../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js
70
+ var require_three_dots_loading = __commonJS({
71
+ "../../node_modules/.pnpm/@iconify+icons-eos-icons@1.2.6/node_modules/@iconify/icons-eos-icons/three-dots-loading.js"(exports) {
72
+ var data = {
73
+ "width": 24,
74
+ "height": 24,
75
+ "body": '<circle cx="18" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".67" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="12" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin=".33" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle><circle cx="6" cy="12" r="0" fill="currentColor"><animate attributeName="r" begin="0" calcMode="spline" dur="1.5s" keySplines="0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8;0.2 0.2 0.4 0.8" repeatCount="indefinite" values="0;2;0;0"/></circle>'
76
+ };
77
+ exports.__esModule = true;
78
+ exports.default = data;
79
+ }
80
+ });
81
+
69
82
  // src/themes/Bruttal/Bruttal.ts
70
83
  var Bruttal_exports = {};
71
84
  __export(Bruttal_exports, {
@@ -104,12 +117,14 @@ var import_radio_button_checked = __toESM(require("@iconify/icons-carbon/radio-b
104
117
  var import_radio_button = __toESM(require("@iconify/icons-carbon/radio-button"));
105
118
  var import_renew = __toESM(require("@iconify/icons-carbon/renew"));
106
119
  var import_success_circle = __toESM(require_success_circle());
120
+ var import_three_dots_loading = __toESM(require_three_dots_loading());
107
121
  var import_time = __toESM(require("@iconify/icons-carbon/time"));
108
122
  var import_trash_can = __toESM(require("@iconify/icons-carbon/trash-can"));
109
123
  var import_upload = __toESM(require("@iconify/icons-carbon/upload"));
110
124
  var import_user_avatar_filled_alt = __toESM(require("@iconify/icons-carbon/user-avatar-filled-alt"));
111
125
  var import_view_filled = __toESM(require("@iconify/icons-carbon/view-filled"));
112
126
  var import_view_off_filled = __toESM(require("@iconify/icons-carbon/view-off-filled"));
127
+ var import_warning_alt = __toESM(require("@iconify/icons-carbon/warning-alt"));
113
128
  var import_warning_filled = __toESM(require("@iconify/icons-carbon/warning-filled"));
114
129
  var replicateIcon = {
115
130
  body: `<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -159,11 +174,13 @@ var subtractIcon = {
159
174
  (0, import_react.addIcon)("subtract", subtractIcon);
160
175
  (0, import_react.addIcon)("success-circle", import_success_circle.default);
161
176
  (0, import_react.addIcon)("small-close", import_close_filled.default);
177
+ (0, import_react.addIcon)("three-dots-loading", import_three_dots_loading.default);
162
178
  (0, import_react.addIcon)("time", import_time.default);
163
179
  (0, import_react.addIcon)("upload", import_upload.default);
164
180
  (0, import_react.addIcon)("view-off", import_view_off_filled.default);
165
181
  (0, import_react.addIcon)("view-on", import_view_filled.default);
166
182
  (0, import_react.addIcon)("warning", import_warning_filled.default);
183
+ (0, import_react.addIcon)("warning-alt", import_warning_alt.default);
167
184
 
168
185
  // src/themes/Bruttal/BruttalFonts.ts
169
186
  var BruttalFonts = ["https://fonts.googleapis.com/css?family=Inconsolata:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css?family=Work+Sans:wght@100;200;300;400;500;700;800;900", "https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap"];
@@ -224,7 +241,7 @@ var lineHeights = {
224
241
  "2xs": "0.422",
225
242
  xs: "0.562",
226
243
  sm: "calc(1 / 1.333)",
227
- base: "normal",
244
+ base: "1",
228
245
  lg: "calc(1 * 1.333)",
229
246
  xl: "1.776",
230
247
  "2xl": "2.368"
@@ -508,8 +525,10 @@ var BruttalTheme = {
508
525
  color: "primary",
509
526
  border: "default",
510
527
  borderColor: "primary",
528
+ borderRadius: "action",
511
529
  ":disabled": {
512
530
  border: "muted",
531
+ borderColor: "onMuted",
513
532
  backgroundColor: "muted",
514
533
  color: "onMuted",
515
534
  cursor: "not-allowed"
@@ -609,6 +628,7 @@ var BruttalTheme = {
609
628
  },
610
629
  ":disabled": {
611
630
  backgroundColor: "muted",
631
+ color: "onMuted",
612
632
  border: "muted",
613
633
  borderColor: "onMuted"
614
634
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/theme",
3
- "version": "1.4.35",
3
+ "version": "1.4.36",
4
4
  "description": "Theme for packages.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -27,12 +27,14 @@ import radioButtonCheckedIcon from '@iconify/icons-carbon/radio-button-checked';
27
27
  import radioButtonIcon from '@iconify/icons-carbon/radio-button';
28
28
  import renewIcon from '@iconify/icons-carbon/renew';
29
29
  import successCircleIcon from '@iconify/icons-mdi/success-circle';
30
+ import threeDotsLoadingIcon from '@iconify/icons-eos-icons/three-dots-loading';
30
31
  import timeIcon from '@iconify/icons-carbon/time';
31
32
  import trashCanIcon from '@iconify/icons-carbon/trash-can';
32
33
  import uploadIcon from '@iconify/icons-carbon/upload';
33
34
  import userAvatarFilledAltIcon from '@iconify/icons-carbon/user-avatar-filled-alt';
34
35
  import viewFilledIcon from '@iconify/icons-carbon/view-filled';
35
36
  import viewOffFilledIcon from '@iconify/icons-carbon/view-off-filled';
37
+ import warningAltIcon from '@iconify/icons-carbon/warning-alt';
36
38
  import warningFilledIcon from '@iconify/icons-carbon/warning-filled';
37
39
  import type { IconifyIcon } from '@iconify/types';
38
40
 
@@ -86,8 +88,10 @@ addIcon('replicate', replicateIcon);
86
88
  addIcon('subtract', subtractIcon);
87
89
  addIcon('success-circle', successCircleIcon);
88
90
  addIcon('small-close', closeFilledIcon);
91
+ addIcon('three-dots-loading', threeDotsLoadingIcon);
89
92
  addIcon('time', timeIcon);
90
93
  addIcon('upload', uploadIcon);
91
94
  addIcon('view-off', viewOffFilledIcon);
92
95
  addIcon('view-on', viewFilledIcon);
93
96
  addIcon('warning', warningFilledIcon);
97
+ addIcon('warning-alt', warningAltIcon);
@@ -267,8 +267,10 @@ export const BruttalTheme: Theme = {
267
267
  color: 'primary',
268
268
  border: 'default',
269
269
  borderColor: 'primary',
270
+ borderRadius: 'action',
270
271
  ':disabled': {
271
272
  border: 'muted',
273
+ borderColor: 'onMuted',
272
274
  backgroundColor: 'muted',
273
275
  color: 'onMuted',
274
276
  cursor: 'not-allowed',
@@ -368,6 +370,7 @@ export const BruttalTheme: Theme = {
368
370
  },
369
371
  ':disabled': {
370
372
  backgroundColor: 'muted',
373
+ color: 'onMuted',
371
374
  border: 'muted',
372
375
  borderColor: 'onMuted',
373
376
  },
@@ -2,7 +2,7 @@ export const lineHeights = {
2
2
  '2xs': '0.422',
3
3
  xs: '0.562',
4
4
  sm: 'calc(1 / 1.333)',
5
- base: 'normal',
5
+ base: '1',
6
6
  lg: 'calc(1 * 1.333)',
7
7
  xl: '1.776',
8
8
  '2xl': '2.368',