@telefonica/mistica 14.28.1 → 14.30.0

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 (59) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.d.ts +3 -0
  3. package/dist/accordion.js +71 -70
  4. package/dist/button-layout.css-mistica.js +11 -19
  5. package/dist/button-layout.css.d.ts +1 -5
  6. package/dist/button-layout.js +19 -90
  7. package/dist/button.css-mistica.js +18 -21
  8. package/dist/card.d.ts +17 -7
  9. package/dist/card.js +275 -267
  10. package/dist/community/advanced-data-card.d.ts +1 -1
  11. package/dist/counter.css-mistica.js +48 -0
  12. package/dist/counter.css.d.ts +11 -0
  13. package/dist/counter.css.ts.vanilla.css-mistica.js +11 -0
  14. package/dist/counter.d.ts +19 -0
  15. package/dist/counter.js +240 -0
  16. package/dist/generated/mistica-icons/icon-add-more-filled.js +1 -1
  17. package/dist/generated/mistica-icons/icon-add-more-light.js +1 -1
  18. package/dist/generated/mistica-icons/icon-add-more-regular.js +2 -2
  19. package/dist/generated/mistica-icons/icon-subtract-filled.d.ts +4 -0
  20. package/dist/generated/mistica-icons/icon-subtract-light.js +21 -10
  21. package/dist/generated/mistica-icons/icon-subtract-regular.js +29 -8
  22. package/dist/index.d.ts +2 -1
  23. package/dist/index.js +7 -0
  24. package/dist/list.d.ts +3 -0
  25. package/dist/list.js +92 -92
  26. package/dist/loading-bar.js +5 -4
  27. package/dist/menu.js +11 -10
  28. package/dist/navigation-bar.js +27 -26
  29. package/dist/package-version.js +1 -1
  30. package/dist/snackbar.css-mistica.js +16 -13
  31. package/dist/snackbar.css.d.ts +3 -2
  32. package/dist/snackbar.d.ts +5 -1
  33. package/dist/snackbar.js +119 -64
  34. package/dist/theme.d.ts +6 -0
  35. package/dist/theme.js +52 -28
  36. package/dist-es/accordion.js +79 -78
  37. package/dist-es/button-layout.css-mistica.js +4 -6
  38. package/dist-es/button-layout.js +27 -98
  39. package/dist-es/button.css-mistica.js +3 -3
  40. package/dist-es/card.js +343 -338
  41. package/dist-es/counter.css-mistica.js +4 -0
  42. package/dist-es/counter.css.ts.vanilla.css-mistica.js +2 -0
  43. package/dist-es/counter.js +187 -0
  44. package/dist-es/generated/mistica-icons/icon-add-more-filled.js +1 -1
  45. package/dist-es/generated/mistica-icons/icon-add-more-light.js +1 -1
  46. package/dist-es/generated/mistica-icons/icon-add-more-regular.js +2 -2
  47. package/dist-es/generated/mistica-icons/icon-subtract-light.js +24 -13
  48. package/dist-es/generated/mistica-icons/icon-subtract-regular.js +33 -12
  49. package/dist-es/index.js +1765 -1764
  50. package/dist-es/list.js +125 -125
  51. package/dist-es/loading-bar.js +12 -11
  52. package/dist-es/menu.js +9 -8
  53. package/dist-es/navigation-bar.js +26 -25
  54. package/dist-es/package-version.js +1 -1
  55. package/dist-es/snackbar.css-mistica.js +5 -2
  56. package/dist-es/snackbar.js +140 -85
  57. package/dist-es/style.css +1 -1
  58. package/dist-es/theme.js +56 -32
  59. package/package.json +1 -1
@@ -31,7 +31,7 @@ interface AdvancedDataCardProps {
31
31
  footerTextLinesMax?: number;
32
32
  buttonLink?: RendersNullableElement<typeof ButtonLink>;
33
33
  dataAttributes?: DataAttributes;
34
- actions?: Array<CardAction>;
34
+ actions?: Array<CardAction | React.ReactElement>;
35
35
  'aria-label'?: string;
36
36
  onClose?: () => void;
37
37
  }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ button: function() {
13
+ return r;
14
+ },
15
+ buttonBackground: function() {
16
+ return s;
17
+ },
18
+ buttonContainer: function() {
19
+ return a;
20
+ },
21
+ counter: function() {
22
+ return f;
23
+ },
24
+ decreaseButtonIcon: function() {
25
+ return t;
26
+ },
27
+ defaultButtonIcon: function() {
28
+ return y;
29
+ },
30
+ disabled: function() {
31
+ return _;
32
+ },
33
+ hasTrashIcon: function() {
34
+ return i;
35
+ },
36
+ isButtonDisabled: function() {
37
+ return o;
38
+ },
39
+ trashButtonIcon: function() {
40
+ return b;
41
+ },
42
+ valueContainer: function() {
43
+ return e;
44
+ }
45
+ });
46
+ require("./sprinkles.css.ts.vanilla.css-mistica.js");
47
+ require("./counter.css.ts.vanilla.css-mistica.js");
48
+ var r = "rijsns8 _1y2v1nf5y _1y2v1nfdo _1y2v1nfb1 _1y2v1nfc4 _1y2v1nfck", s = "rijsnse _1y2v1nfc3 _1y2v1nfcj _1y2v1nfb1 _1y2v1nfdv _1y2v1nf5k", a = "rijsns6", f = "rijsns3 _1y2v1nfdv _1y2v1nf31 _1y2v1nfb7 _1y2v1nfe6", t = "rijsnsc rijsnsa _1y2v1nfb1", y = "rijsnsa _1y2v1nfb1", _ = "rijsns4", i = "rijsns0", o = "rijsns1", b = "rijsnsb rijsnsa _1y2v1nfb1", e = "_1y2v1nfb0 _1y2v1nfb6 _1y2v1nfbf";
@@ -0,0 +1,11 @@
1
+ export declare const hasTrashIcon: string;
2
+ export declare const isButtonDisabled: string;
3
+ export declare const counter: string;
4
+ export declare const disabled: string;
5
+ export declare const valueContainer: string;
6
+ export declare const buttonContainer: string;
7
+ export declare const button: string;
8
+ export declare const defaultButtonIcon: string;
9
+ export declare const trashButtonIcon: string;
10
+ export declare const decreaseButtonIcon: string;
11
+ export declare const buttonBackground: string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return s;
9
+ }
10
+ });
11
+ const s = "";
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import type { DataAttributes } from './utils/types';
3
+ type Props = {
4
+ value?: number;
5
+ defaultValue?: number;
6
+ min?: number;
7
+ max?: number;
8
+ onChangeValue?: (value: number) => void;
9
+ onRemove?: () => void;
10
+ children?: void;
11
+ disabled?: boolean;
12
+ dataAttributes?: DataAttributes;
13
+ removeLabel?: string;
14
+ increaseLabel?: string;
15
+ decreaseLabel?: string;
16
+ valueLabel?: string;
17
+ };
18
+ declare const Counter: React.FC<Props>;
19
+ export default Counter;
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return hr;
9
+ }
10
+ });
11
+ const _jsxruntime = require("react/jsx-runtime");
12
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
13
+ const _dom = require("./utils/dom.js");
14
+ const _countercssmistica = require("./counter.css-mistica.js");
15
+ const _themevariantcontext = require("./theme-variant-context.js");
16
+ const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
17
+ const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
18
+ const _text = require("./text.js");
19
+ const _touchable = require("./touchable.js");
20
+ const _iconsubtractregular = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-subtract-regular.js"));
21
+ const _iconaddmoreregular = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-add-more-regular.js"));
22
+ const _icontrashcanregular = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-trash-can-regular.js"));
23
+ const _hooks = require("./hooks.js");
24
+ const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
25
+ const _screenreaderonly = /*#__PURE__*/ _interop_require_default(require("./screen-reader-only.js"));
26
+ function _interop_require_default(obj) {
27
+ return obj && obj.__esModule ? obj : {
28
+ default: obj
29
+ };
30
+ }
31
+ function _getRequireWildcardCache(nodeInterop) {
32
+ if (typeof WeakMap !== "function") return null;
33
+ var cacheBabelInterop = new WeakMap();
34
+ var cacheNodeInterop = new WeakMap();
35
+ return (_getRequireWildcardCache = function(nodeInterop) {
36
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
37
+ })(nodeInterop);
38
+ }
39
+ function _interop_require_wildcard(obj, nodeInterop) {
40
+ if (!nodeInterop && obj && obj.__esModule) {
41
+ return obj;
42
+ }
43
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
44
+ return {
45
+ default: obj
46
+ };
47
+ }
48
+ var cache = _getRequireWildcardCache(nodeInterop);
49
+ if (cache && cache.has(obj)) {
50
+ return cache.get(obj);
51
+ }
52
+ var newObj = {};
53
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
54
+ for(var key in obj){
55
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
56
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
57
+ if (desc && (desc.get || desc.set)) {
58
+ Object.defineProperty(newObj, key, desc);
59
+ } else {
60
+ newObj[key] = obj[key];
61
+ }
62
+ }
63
+ }
64
+ newObj.default = obj;
65
+ if (cache) {
66
+ cache.set(obj, newObj);
67
+ }
68
+ return newObj;
69
+ }
70
+ function _define_property(obj, key, value) {
71
+ if (key in obj) {
72
+ Object.defineProperty(obj, key, {
73
+ value: value,
74
+ enumerable: true,
75
+ configurable: true,
76
+ writable: true
77
+ });
78
+ } else {
79
+ obj[key] = value;
80
+ }
81
+ return obj;
82
+ }
83
+ function _object_spread(target) {
84
+ for(var i = 1; i < arguments.length; i++){
85
+ var source = arguments[i] != null ? arguments[i] : {};
86
+ var ownKeys = Object.keys(source);
87
+ if (typeof Object.getOwnPropertySymbols === "function") {
88
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
89
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
90
+ }));
91
+ }
92
+ ownKeys.forEach(function(key) {
93
+ _define_property(target, key, source[key]);
94
+ });
95
+ }
96
+ return target;
97
+ }
98
+ function ownKeys(object, enumerableOnly) {
99
+ var keys = Object.keys(object);
100
+ if (Object.getOwnPropertySymbols) {
101
+ var symbols = Object.getOwnPropertySymbols(object);
102
+ if (enumerableOnly) {
103
+ symbols = symbols.filter(function(sym) {
104
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
105
+ });
106
+ }
107
+ keys.push.apply(keys, symbols);
108
+ }
109
+ return keys;
110
+ }
111
+ function _object_spread_props(target, source) {
112
+ source = source != null ? source : {};
113
+ if (Object.getOwnPropertyDescriptors) {
114
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
115
+ } else {
116
+ ownKeys(Object(source)).forEach(function(key) {
117
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
118
+ });
119
+ }
120
+ return target;
121
+ }
122
+ const x = 20, W = (param)=>{
123
+ let { value: h , defaultValue: b , min: m , max: s , onChangeValue: a } = param;
124
+ const i = h !== void 0, f = _react.useCallback((n)=>n === void 0 ? m : Math.max(m, Math.min(s, n)), [
125
+ m,
126
+ s
127
+ ]), [e, p] = _react.useState(f(b)), v = (n)=>{
128
+ i || p(n), a == null || a(n);
129
+ };
130
+ return [
131
+ i ? f(h) : e,
132
+ v
133
+ ];
134
+ }, X = (param)=>{
135
+ let { value: h , defaultValue: b , onChangeValue: m , onRemove: s , min: a , max: i , dataAttributes: f , disabled: e , removeLabel: p , increaseLabel: v , decreaseLabel: n , valueLabel: C } = param;
136
+ const A = (0, _themevariantcontext.useThemeVariant)(), { texts: u } = (0, _hooks.useTheme)(), l = a === void 0 ? 0 : a, d = Math.max(l, i === void 0 ? 999 : i), [t, T] = W({
137
+ value: h,
138
+ defaultValue: b,
139
+ min: l,
140
+ max: d,
141
+ onChangeValue: m
142
+ }), o = !!s && t === l, D = ()=>p === void 0 ? u.counterRemoveLabel : p, $ = ()=>v === void 0 ? u.counterIncreaseLabel : v, k = ()=>n === void 0 ? u.counterDecreaseLabel : n, z = ()=>`${t}, ${C === void 0 ? u.counterQuantity : C}${a !== void 0 ? `, ${u.counterMinValue} ${a}` : ""}${i !== void 0 ? `, ${u.counterMaxValue} ${i}` : ""}`;
143
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
144
+ className: (0, _classnames.default)(_countercssmistica.counter, {
145
+ [_countercssmistica.disabled]: e
146
+ })
147
+ }, (0, _dom.getPrefixedDataAttributes)(f, "Counter")), {
148
+ style: {
149
+ border: `1px solid ${A === "inverse" ? _skincontractcssmistica.vars.colors.backgroundContainer : _skincontractcssmistica.vars.colors.border}`
150
+ },
151
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
152
+ space: 8,
153
+ alignItems: "center",
154
+ children: [
155
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
156
+ className: (0, _classnames.default)(_countercssmistica.buttonContainer, {
157
+ [_countercssmistica.hasTrashIcon]: o,
158
+ [_countercssmistica.isButtonDisabled]: e || !o && t === l,
159
+ [_countercssmistica.disabled]: !e && !o && t === l
160
+ }),
161
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
162
+ className: _countercssmistica.button,
163
+ disabled: !o && t === l || e,
164
+ onPress: ()=>o ? s == null ? void 0 : s() : T(t - 1),
165
+ "aria-label": o ? D() : k(),
166
+ children: [
167
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
168
+ className: _countercssmistica.buttonBackground
169
+ }),
170
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
171
+ className: _countercssmistica.decreaseButtonIcon,
172
+ "aria-hidden": o,
173
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconsubtractregular.default, {
174
+ size: x,
175
+ color: t === l && !o || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
176
+ })
177
+ }),
178
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
179
+ className: _countercssmistica.trashButtonIcon,
180
+ "aria-hidden": !o,
181
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_icontrashcanregular.default, {
182
+ size: x,
183
+ color: _skincontractcssmistica.vars.colors.controlError
184
+ })
185
+ })
186
+ ]
187
+ })
188
+ }),
189
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
190
+ className: _countercssmistica.valueContainer,
191
+ style: {
192
+ width: `${Math.max(3, String(d).length) * 1.25}ch`
193
+ },
194
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
195
+ variant: "default",
196
+ children: [
197
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
198
+ "aria-hidden": !0,
199
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
200
+ regular: !0,
201
+ color: _skincontractcssmistica.vars.colors.textPrimary,
202
+ children: t
203
+ })
204
+ }),
205
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
206
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("span", {
207
+ children: z()
208
+ })
209
+ })
210
+ ]
211
+ })
212
+ }),
213
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
214
+ className: (0, _classnames.default)(_countercssmistica.buttonContainer, {
215
+ [_countercssmistica.isButtonDisabled]: e || t === d,
216
+ [_countercssmistica.disabled]: !e && t === d
217
+ }),
218
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, {
219
+ className: _countercssmistica.button,
220
+ disabled: t === d || e,
221
+ onPress: ()=>T(t + 1),
222
+ "aria-label": $(),
223
+ children: [
224
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
225
+ className: _countercssmistica.buttonBackground
226
+ }),
227
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
228
+ className: _countercssmistica.defaultButtonIcon,
229
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconaddmoreregular.default, {
230
+ size: x,
231
+ color: t === d || e ? _skincontractcssmistica.vars.colors.control : _skincontractcssmistica.vars.colors.controlActivated
232
+ })
233
+ })
234
+ ]
235
+ })
236
+ })
237
+ ]
238
+ })
239
+ }));
240
+ }, hr = X;
@@ -104,7 +104,7 @@ const a = (_param)=>{
104
104
  }, s), {
105
105
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
106
106
  fill: l,
107
- d: "M12 4a1 1 0 0 0-1 1v5.498H6.002a1.002 1.002 0 1 0 0 2.004H11V18a1 1 0 1 0 2 0v-5.498h4.998a1.002 1.002 0 1 0 0-2.004H13V5a1 1 0 0 0-1-1Z"
107
+ d: "M12 2a1 1 0 0 0-1 1v7.498H3.002a1.002 1.002 0 1 0 0 2.004H11V21a1 1 0 1 0 2 0v-8.498h7.998a1.002 1.002 0 1 0 0-2.004H13V3a1 1 0 0 0-1-1Z"
108
108
  })
109
109
  }));
110
110
  }, h = a;
@@ -105,7 +105,7 @@ const v = (_param)=>{
105
105
  }, e), {
106
106
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
107
107
  fill: t,
108
- d: "M11.676 4.35a.35.35 0 1 1 .7 0v6.8h4.414a.35.35 0 1 1 0 .7h-4.414v6.8a.35.35 0 1 1-.7 0v-6.8H5.35a.35.35 0 1 1 0-.7h6.326v-6.8Zm6.752 7.72a.573.573 0 0 0 .572-.574.573.573 0 0 0-.572-.574.573.573 0 0 0-.571.574c0 .317.256.574.572.574Z"
108
+ d: "M11.676 2.35a.35.35 0 1 1 .7 0v8.8h7.414a.35.35 0 1 1 0 .7h-7.414v9.8a.35.35 0 1 1-.7 0v-9.8H2.35a.35.35 0 1 1 0-.7h9.326v-8.8Zm9.752 9.72a.573.573 0 0 0 .572-.574.573.573 0 0 0-.572-.574.573.573 0 0 0-.571.574c0 .317.256.574.572.574Z"
109
109
  })
110
110
  })) : /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
111
111
  width: o,
@@ -105,7 +105,7 @@ const v = (_param)=>{
105
105
  }, o), {
106
106
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
107
107
  fill: t,
108
- d: "M18.524 11.525h-6.057v-6.05a.475.475 0 0 0-.951 0v6.05H5.459a.476.476 0 1 0 0 .95h6.057v6.05a.476.476 0 0 0 .95 0v-6.05h6.058a.475.475 0 1 0 0-.95Z"
108
+ d: "M21.321 11.321h-8.643V2.68a.679.679 0 1 0-1.357 0v8.642H2.679a.679.679 0 1 0 0 1.357h8.642v8.643a.679.679 0 0 0 1.357 0v-8.643h8.643a.679.679 0 1 0 0-1.357Z"
109
109
  })
110
110
  })) : a.match(/^o2/i) ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
111
111
  width: e,
@@ -115,7 +115,7 @@ const v = (_param)=>{
115
115
  }, o), {
116
116
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
117
117
  fill: t,
118
- d: "M11.42 4.72a.722.722 0 0 1 .716-.716.722.722 0 0 1 .716.716l.003 6.064 5.426.003a.722.722 0 0 1 .716.716.84.84 0 0 1-.22.552c-.127.127-.3.16-.493.16l-5.432.003v6.073a.703.703 0 0 1-.713.712.722.722 0 0 1-.715-.715v-6.072l-5.712.005a.722.722 0 0 1-.716-.715.722.722 0 0 1 .716-.716l5.712-.006-.003-6.064Z"
118
+ d: "M11.42 2.72a.722.722 0 0 1 .716-.716.722.722 0 0 1 .716.716l.003 8.064 8.426.003a.722.722 0 0 1 .716.716.84.84 0 0 1-.22.552c-.127.127-.3.16-.493.16l-8.432.003v9.073a.703.703 0 0 1-.713.712.722.722 0 0 1-.715-.715v-9.072l-8.712.005a.722.722 0 0 1-.716-.715.722.722 0 0 1 .716-.716l8.711-.006-.002-8.064Z"
119
119
  })
120
120
  })) : /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
121
121
  width: e,
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { IconProps } from '../../utils/types';
3
+ declare const IconSubtractFilled: ({ color, size, ...rest }: IconProps) => JSX.Element;
4
+ export default IconSubtractFilled;
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
7
  get: function() {
8
- return m;
8
+ return v;
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
12
+ const _hooks = require("../../hooks.js");
12
13
  const _themevariantcontext = require("../../theme-variant-context.js");
13
14
  const _skincontractcssmistica = require("../../skins/skin-contract.css-mistica.js");
14
15
  function _define_property(obj, key, value) {
@@ -90,21 +91,31 @@ function _object_without_properties_loose(source, excluded) {
90
91
  }
91
92
  return target;
92
93
  }
93
- const a = (_param)=>{
94
- var { color: e , size: r = 24 } = _param, s = _object_without_properties(_param, [
94
+ const l = (_param)=>{
95
+ var { color: n , size: t = 24 } = _param, r = _object_without_properties(_param, [
95
96
  "color",
96
97
  "size"
97
98
  ]);
98
- const i = (0, _themevariantcontext.useIsInverseVariant)(), n = e !== null && e !== void 0 ? e : i ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralHigh;
99
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
100
- width: r,
101
- height: r,
99
+ const s = (0, _themevariantcontext.useIsInverseVariant)(), e = n !== null && n !== void 0 ? n : s ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralHigh, { skinName: a } = (0, _hooks.useTheme)();
100
+ return a.match(/^o2/i) ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
101
+ width: t,
102
+ height: t,
102
103
  viewBox: "0 0 24 24",
103
104
  role: "presentation"
104
- }, s), {
105
+ }, r), {
105
106
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
106
- fill: n,
107
+ fill: e,
108
+ d: "M19.79 11.15a.35.35 0 1 1 0 .7H2.35a.35.35 0 1 1 0-.7h17.44Zm1.639.92a.573.573 0 0 0 .571-.574.573.573 0 0 0-.572-.574.573.573 0 0 0-.571.574c0 .317.256.574.572.574Z"
109
+ })
110
+ })) : /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
111
+ width: t,
112
+ height: t,
113
+ viewBox: "0 0 24 24",
114
+ role: "presentation"
115
+ }, r), {
116
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
117
+ fill: e,
107
118
  d: "M3 12.001c0-.333.269-.6.6-.6h16.803a.6.6 0 0 1-.002 1.199H3.599A.6.6 0 0 1 3 12.002Z"
108
119
  })
109
120
  }));
110
- }, m = a;
121
+ }, v = l;
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  Object.defineProperty(exports, "default", {
6
6
  enumerable: true,
7
7
  get: function() {
8
- return f;
8
+ return d;
9
9
  }
10
10
  });
11
11
  const _jsxruntime = require("react/jsx-runtime");
12
+ const _hooks = require("../../hooks.js");
12
13
  const _themevariantcontext = require("../../theme-variant-context.js");
13
14
  const _skincontractcssmistica = require("../../skins/skin-contract.css-mistica.js");
14
15
  function _define_property(obj, key, value) {
@@ -90,21 +91,41 @@ function _object_without_properties_loose(source, excluded) {
90
91
  }
91
92
  return target;
92
93
  }
93
- const l = (_param)=>{
94
- var { color: e , size: r = 24 } = _param, s = _object_without_properties(_param, [
94
+ const c = (_param)=>{
95
+ var { color: n , size: r = 24 } = _param, e = _object_without_properties(_param, [
95
96
  "color",
96
97
  "size"
97
98
  ]);
98
- const n = (0, _themevariantcontext.useIsInverseVariant)(), a = e !== null && e !== void 0 ? e : n ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralHigh;
99
- return /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
99
+ const l = (0, _themevariantcontext.useIsInverseVariant)(), o = n !== null && n !== void 0 ? n : l ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralHigh, { skinName: i } = (0, _hooks.useTheme)();
100
+ return i.match(/^blau/i) ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
100
101
  width: r,
101
102
  height: r,
102
103
  viewBox: "0 0 24 24",
103
104
  role: "presentation"
104
- }, s), {
105
+ }, e), {
105
106
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
106
- fill: a,
107
+ fill: o,
108
+ d: "M21.321 11.321H2.679a.679.679 0 1 0 0 1.357h18.642a.679.679 0 1 0 0-1.357Z"
109
+ })
110
+ })) : i.match(/^o2/i) ? /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
111
+ width: r,
112
+ height: r,
113
+ viewBox: "0 0 24 24",
114
+ role: "presentation"
115
+ }, e), {
116
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
117
+ fill: o,
118
+ d: "M21.285 10.783a.722.722 0 0 1 .715.716.84.84 0 0 1-.219.551c-.127.128-.3.161-.493.161-11.82.004-6.036-.002-18.572.006A.722.722 0 0 1 2 11.5a.722.722 0 0 1 .716-.715c11.312-.008 6.967-.007 18.569-.003Z"
119
+ })
120
+ })) : /* @__PURE__ */ (0, _jsxruntime.jsx)("svg", _object_spread_props(_object_spread({
121
+ width: r,
122
+ height: r,
123
+ viewBox: "0 0 24 24",
124
+ role: "presentation"
125
+ }, e), {
126
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
127
+ fill: o,
107
128
  d: "M3.001 12.047a.879.879 0 0 1 .828-.924h16.34a.876.876 0 0 1 .003 1.752H3.829A.876.876 0 0 1 3 12.047Z"
108
129
  })
109
130
  }));
110
- }, f = l;
131
+ }, d = c;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export { default as FadeIn } from './fade-in';
10
10
  export { AccordionItem, BoxedAccordionItem, Accordion, BoxedAccordion } from './accordion';
11
11
  export { ButtonPrimary, ButtonSecondary, ButtonDanger, ButtonLink } from './button';
12
12
  export { default as ButtonLayout } from './button-layout';
13
+ export { default as Counter } from './counter';
13
14
  export { default as FixedFooterLayout } from './fixed-footer-layout';
14
15
  export { default as ButtonFixedFooterLayout } from './button-fixed-footer-layout';
15
16
  export { default as Snackbar } from './snackbar';
@@ -52,7 +53,7 @@ export { default as HorizontalScroll } from './horizontal-scroll';
52
53
  export { default as HighlightedCard } from './highlighted-card';
53
54
  export { default as Stepper } from './stepper';
54
55
  export { ProgressBar, ProgressBarStepped } from './progress-bar';
55
- export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard, PosterCard, NakedCard, SmallNakedCard, CardActionSpinner, } from './card';
56
+ export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard, PosterCard, NakedCard, SmallNakedCard, CardActionSpinner, CardActionIconButton, } from './card';
56
57
  export { default as Hero } from './hero';
57
58
  export { default as Divider } from './divider';
58
59
  export { Menu, MenuItem, MenuSection } from './menu';
package/dist/index.js CHANGED
@@ -72,6 +72,9 @@ _export(exports, {
72
72
  Callout: function() {
73
73
  return _callout.default;
74
74
  },
75
+ CardActionIconButton: function() {
76
+ return _card.CardActionIconButton;
77
+ },
75
78
  CardActionSpinner: function() {
76
79
  return _card.CardActionSpinner;
77
80
  },
@@ -114,6 +117,9 @@ _export(exports, {
114
117
  CommunityValueBlock: function() {
115
118
  return _blocks.ValueBlock;
116
119
  },
120
+ Counter: function() {
121
+ return _counter.default;
122
+ },
117
123
  CreditCardExpirationField: function() {
118
124
  return _creditcardexpirationfield.default;
119
125
  },
@@ -5633,6 +5639,7 @@ const _fadein = /*#__PURE__*/ _interop_require_default(require("./fade-in.js"));
5633
5639
  const _accordion = require("./accordion.js");
5634
5640
  const _button = require("./button.js");
5635
5641
  const _buttonlayout = /*#__PURE__*/ _interop_require_default(require("./button-layout.js"));
5642
+ const _counter = /*#__PURE__*/ _interop_require_default(require("./counter.js"));
5636
5643
  const _fixedfooterlayout = /*#__PURE__*/ _interop_require_default(require("./fixed-footer-layout.js"));
5637
5644
  const _buttonfixedfooterlayout = /*#__PURE__*/ _interop_require_default(require("./button-fixed-footer-layout.js"));
5638
5645
  const _snackbar = /*#__PURE__*/ _interop_require_default(require("./snackbar.js"));
package/dist/list.d.ts CHANGED
@@ -76,6 +76,9 @@ type RowListProps = {
76
76
  children: React.ReactNode;
77
77
  ariaLabelledby?: string;
78
78
  role?: string;
79
+ /**
80
+ * @deprecated This field is deprecated and it has no effect.
81
+ */
79
82
  noLastDivider?: boolean;
80
83
  dataAttributes?: DataAttributes;
81
84
  };