UNPKG

@tiller-ds/icons

Version:

Icons module of Tiller Design System

1,014 lines (872 loc) 52.5 kB
import 'phosphor-icons/src/css/icons.css'; import * as React from 'react'; import React__default from 'react'; import { cx, useTokens } from '@tiller-ds/theme'; import { tillerTwMerge } from '@tiller-ds/util'; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global$a = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || Function('return this')(); var objectGetOwnPropertyDescriptor = {}; var fails$5 = function (exec) { try { return !!exec(); } catch (error) { return true; } }; var fails$4 = fails$5; // Detect IE8's incomplete defineProperty implementation var descriptors = !fails$4(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor$1(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable; var createPropertyDescriptor$2 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; var toString = {}.toString; var classofRaw = function (it) { return toString.call(it).slice(8, -1); }; var fails$3 = fails$5; var classof = classofRaw; var split = ''.split; // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$3(function () { // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346 // eslint-disable-next-line no-prototype-builtins -- safe return !Object('z').propertyIsEnumerable(0); }) ? function (it) { return classof(it) == 'String' ? split.call(it, '') : Object(it); } : Object; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible var requireObjectCoercible$2 = function (it) { if (it == undefined) throw TypeError("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings var IndexedObject$1 = indexedObject; var requireObjectCoercible$1 = requireObjectCoercible$2; var toIndexedObject$3 = function (it) { return IndexedObject$1(requireObjectCoercible$1(it)); }; var isObject$4 = function (it) { return typeof it === 'object' ? it !== null : typeof it === 'function'; }; var isObject$3 = isObject$4; // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive // instead of the ES6 spec version, we didn't implement @@toPrimitive case // and the second argument - flag - preferred type is a string var toPrimitive$2 = function (input, PREFERRED_STRING) { if (!isObject$3(input)) return input; var fn, val; if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val; if (typeof (fn = input.valueOf) == 'function' && !isObject$3(val = fn.call(input))) return val; if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject$3(val = fn.call(input))) return val; throw TypeError("Can't convert object to primitive value"); }; var hasOwnProperty = {}.hasOwnProperty; var has$5 = function (it, key) { return hasOwnProperty.call(it, key); }; var global$9 = global$a; var isObject$2 = isObject$4; var document = global$9.document; // typeof document.createElement is 'object' in old IE var EXISTS = isObject$2(document) && isObject$2(document.createElement); var documentCreateElement = function (it) { return EXISTS ? document.createElement(it) : {}; }; var DESCRIPTORS$4 = descriptors; var fails$2 = fails$5; var createElement = documentCreateElement; // Thank's IE8 for his funny defineProperty var ie8DomDefine = !DESCRIPTORS$4 && !fails$2(function () { // eslint-disable-next-line es/no-object-defineproperty -- requied for testing return Object.defineProperty(createElement('div'), 'a', { get: function () { return 7; } }).a != 7; }); var DESCRIPTORS$3 = descriptors; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var createPropertyDescriptor$1 = createPropertyDescriptor$2; var toIndexedObject$2 = toIndexedObject$3; var toPrimitive$1 = toPrimitive$2; var has$4 = has$5; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$2(O); P = toPrimitive$1(P, true); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor(O, P); } catch (error) { /* empty */ } if (has$4(O, P)) return createPropertyDescriptor$1(!propertyIsEnumerableModule$1.f.call(O, P), O[P]); }; var objectDefineProperty = {}; var isObject$1 = isObject$4; var anObject$2 = function (it) { if (!isObject$1(it)) { throw TypeError(String(it) + ' is not an object'); } return it; }; var DESCRIPTORS$2 = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var anObject$1 = anObject$2; var toPrimitive = toPrimitive$2; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty = Object.defineProperty; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$2 ? $defineProperty : function defineProperty(O, P, Attributes) { anObject$1(O); P = toPrimitive(P, true); anObject$1(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var DESCRIPTORS$1 = descriptors; var definePropertyModule$1 = objectDefineProperty; var createPropertyDescriptor = createPropertyDescriptor$2; var createNonEnumerableProperty$4 = DESCRIPTORS$1 ? function (object, key, value) { return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var redefine$1 = {exports: {}}; var global$8 = global$a; var createNonEnumerableProperty$3 = createNonEnumerableProperty$4; var setGlobal$3 = function (key, value) { try { createNonEnumerableProperty$3(global$8, key, value); } catch (error) { global$8[key] = value; } return value; }; var global$7 = global$a; var setGlobal$2 = setGlobal$3; var SHARED = '__core-js_shared__'; var store$3 = global$7[SHARED] || setGlobal$2(SHARED, {}); var sharedStore = store$3; var store$2 = sharedStore; var functionToString = Function.toString; // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper if (typeof store$2.inspectSource != 'function') { store$2.inspectSource = function (it) { return functionToString.call(it); }; } var inspectSource$2 = store$2.inspectSource; var global$6 = global$a; var inspectSource$1 = inspectSource$2; var WeakMap$1 = global$6.WeakMap; var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource$1(WeakMap$1)); var shared$2 = {exports: {}}; var store$1 = sharedStore; (shared$2.exports = function (key, value) { return store$1[key] || (store$1[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.10.1', mode: 'global', copyright: '© 2021 Denis Pushkarev (zloirock.ru)' }); var id = 0; var postfix = Math.random(); var uid$1 = function (key) { return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36); }; var shared$1 = shared$2.exports; var uid = uid$1; var keys = shared$1('keys'); var sharedKey$1 = function (key) { return keys[key] || (keys[key] = uid(key)); }; var hiddenKeys$3 = {}; var NATIVE_WEAK_MAP = nativeWeakMap; var global$5 = global$a; var isObject = isObject$4; var createNonEnumerableProperty$2 = createNonEnumerableProperty$4; var objectHas = has$5; var shared = sharedStore; var sharedKey = sharedKey$1; var hiddenKeys$2 = hiddenKeys$3; var WeakMap = global$5.WeakMap; var set, get, has$3; var enforce = function (it) { return has$3(it) ? get(it) : set(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject(it) || (state = get(it)).type !== TYPE) { throw TypeError('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP) { var store = shared.state || (shared.state = new WeakMap()); var wmget = store.get; var wmhas = store.has; var wmset = store.set; set = function (it, metadata) { metadata.facade = it; wmset.call(store, it, metadata); return metadata; }; get = function (it) { return wmget.call(store, it) || {}; }; has$3 = function (it) { return wmhas.call(store, it); }; } else { var STATE = sharedKey('state'); hiddenKeys$2[STATE] = true; set = function (it, metadata) { metadata.facade = it; createNonEnumerableProperty$2(it, STATE, metadata); return metadata; }; get = function (it) { return objectHas(it, STATE) ? it[STATE] : {}; }; has$3 = function (it) { return objectHas(it, STATE); }; } var internalState = { set: set, get: get, has: has$3, enforce: enforce, getterFor: getterFor }; var global$4 = global$a; var createNonEnumerableProperty$1 = createNonEnumerableProperty$4; var has$2 = has$5; var setGlobal$1 = setGlobal$3; var inspectSource = inspectSource$2; var InternalStateModule = internalState; var getInternalState = InternalStateModule.get; var enforceInternalState = InternalStateModule.enforce; var TEMPLATE = String(String).split('String'); (redefine$1.exports = function (O, key, value, options) { var unsafe = options ? !!options.unsafe : false; var simple = options ? !!options.enumerable : false; var noTargetGet = options ? !!options.noTargetGet : false; var state; if (typeof value == 'function') { if (typeof key == 'string' && !has$2(value, 'name')) { createNonEnumerableProperty$1(value, 'name', key); } state = enforceInternalState(value); if (!state.source) { state.source = TEMPLATE.join(typeof key == 'string' ? key : ''); } } if (O === global$4) { if (simple) O[key] = value; else setGlobal$1(key, value); return; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; else createNonEnumerableProperty$1(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, 'toString', function toString() { return typeof this == 'function' && getInternalState(this).source || inspectSource(this); }); var global$3 = global$a; var path$1 = global$3; var path = path$1; var global$2 = global$a; var aFunction = function (variable) { return typeof variable == 'function' ? variable : undefined; }; var getBuiltIn$1 = function (namespace, method) { return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global$2[namespace]) : path[namespace] && path[namespace][method] || global$2[namespace] && global$2[namespace][method]; }; var objectGetOwnPropertyNames = {}; var ceil = Math.ceil; var floor = Math.floor; // `ToInteger` abstract operation // https://tc39.es/ecma262/#sec-tointeger var toInteger$2 = function (argument) { return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument); }; var toInteger$1 = toInteger$2; var min$1 = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength var toLength$1 = function (argument) { return argument > 0 ? min$1(toInteger$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var toInteger = toInteger$2; var max = Math.max; var min = Math.min; // Helper for a popular repeating case of the spec: // Let integer be ? ToInteger(index). // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length). var toAbsoluteIndex$1 = function (index, length) { var integer = toInteger(index); return integer < 0 ? max(integer + length, 0) : min(integer, length); }; var toIndexedObject$1 = toIndexedObject$3; var toLength = toLength$1; var toAbsoluteIndex = toAbsoluteIndex$1; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$1($this); var length = toLength(O.length); var index = toAbsoluteIndex(fromIndex, length); var value; // Array#includes uses SameValueZero equality algorithm // eslint-disable-next-line no-self-compare -- NaN check if (IS_INCLUDES && el != el) while (length > index) { value = O[index++]; // eslint-disable-next-line no-self-compare -- NaN check if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod(false) }; var has$1 = has$5; var toIndexedObject = toIndexedObject$3; var indexOf = arrayIncludes.indexOf; var hiddenKeys$1 = hiddenKeys$3; var objectKeysInternal = function (object, names) { var O = toIndexedObject(object); var i = 0; var result = []; var key; for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key); // Don't enum bug & hidden keys while (names.length > i) if (has$1(O, key = names[i++])) { ~indexOf(result, key) || result.push(key); } return result; }; // IE8- don't enum bug keys var enumBugKeys$2 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$1 = enumBugKeys$2; var hiddenKeys = enumBugKeys$1.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames // eslint-disable-next-line es/no-object-getownpropertynames -- safe objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys$1(O, hiddenKeys); }; var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; var getBuiltIn = getBuiltIn$1; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; var anObject = anObject$2; // all object keys, includes non-enumerable and symbols var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule.f(anObject(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys; }; var has = has$5; var ownKeys = ownKeys$1; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; var definePropertyModule = objectDefineProperty; var copyConstructorProperties$1 = function (target, source) { var keys = ownKeys(source); var defineProperty = definePropertyModule.f; var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } }; var fails$1 = fails$5; var replacement = /#|\.prototype\./; var isForced$1 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : typeof detection == 'function' ? fails$1(detection) : !!detection; }; var normalize = isForced$1.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced$1.data = {}; var NATIVE = isForced$1.NATIVE = 'N'; var POLYFILL = isForced$1.POLYFILL = 'P'; var isForced_1 = isForced$1; var global$1 = global$a; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty = createNonEnumerableProperty$4; var redefine = redefine$1.exports; var setGlobal = setGlobal$3; var copyConstructorProperties = copyConstructorProperties$1; var isForced = isForced_1; /* options.target - name of the target object options.global - target is the global object options.stat - export as static methods of target options.proto - export as prototype methods of target options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.noTargetGet - prevent calling a getter on target */ var _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global$1; } else if (STATIC) { target = global$1[TARGET] || setGlobal(TARGET, {}); } else { target = (global$1[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty === typeof targetProperty) continue; copyConstructorProperties(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty(sourceProperty, 'sham', true); } // extend global redefine(target, key, sourceProperty, options); } }; var internalObjectKeys = objectKeysInternal; var enumBugKeys = enumBugKeys$2; // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es/no-object-keys -- safe var objectKeys$1 = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys); }; var requireObjectCoercible = requireObjectCoercible$2; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject var toObject$1 = function (argument) { return Object(requireObjectCoercible(argument)); }; var DESCRIPTORS = descriptors; var fails = fails$5; var objectKeys = objectKeys$1; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; var propertyIsEnumerableModule = objectPropertyIsEnumerable; var toObject = toObject$1; var IndexedObject = indexedObject; // eslint-disable-next-line es/no-object-assign -- safe var $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing var defineProperty = Object.defineProperty; // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign var objectAssign = !$assign || fails(function () { // should have correct order of operations (Edge bug) if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', { enumerable: true, get: function () { defineProperty(this, 'b', { value: 3, enumerable: false }); } }), { b: 2 })).b !== 1) return true; // should work with symbols and should have deterministic property order (V8 bug) var A = {}; var B = {}; // eslint-disable-next-line es/no-symbol -- safe var symbol = Symbol(); var alphabet = 'abcdefghijklmnopqrst'; A[symbol] = 7; alphabet.split('').forEach(function (chr) { B[chr] = chr; }); return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` var T = toObject(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule.f; var propertyIsEnumerable = propertyIsEnumerableModule.f; while (argumentsLength > index) { var S = IndexedObject(arguments[index++]); var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key]; } } return T; } : $assign; var $ = _export; var assign = objectAssign; // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign // eslint-disable-next-line es/no-object-assign -- required for testing $({ target: 'Object', stat: true, forced: Object.assign !== assign }, { assign: assign }); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function Icon(_a) { var { variant = "regular", type, className = "", size = 5 } = _a, props = __rest(_a, ["variant", "type", "className", "size"]); const iconSizes = { 1: "text-xs", 2: "text-sm", 3: "text-base", 4: "text-lg", 5: "text-xl", 6: "text-2xl", 7: "text-3xl", 8: "text-4xl", 9: "text-5xl", 10: "text-6xl", 11: "text-7xl", 12: "text-8xl", 13: "text-9xl" }; const iconSize = iconSizes[size]; const iconClassName = cx(iconSize, { [`ph-${type}`]: variant === "regular", [`ph-${type}-${variant}`]: variant !== "regular" }); return /*#__PURE__*/React.createElement("i", { className: tillerTwMerge(iconClassName, className), style: Object.assign({}, props.style), "data-testid": props["data-testid"] }); } const iconTypes = ["activity", "address-book", "airplane", "airplane-in-flight", "airplane-landing", "airplane-takeoff", "airplane-tilt", "airplay", "alarm", "alien", "align-bottom", "align-bottom-simple", "align-center-horizontal", "align-center-horizontal-simple", "align-center-vertical", "align-center-vertical-simple", "align-left", "align-left-simple", "align-right", "align-right-simple", "align-top", "align-top-simple", "anchor", "anchor-simple", "android-logo", "angular-logo", "aperture", "app-store-logo", "app-window", "apple-logo", "apple-podcasts-logo", "archive", "archive-box", "archive-tray", "armchair", "arrow-arc-left", "arrow-arc-right", "arrow-bend-double-up-left", "arrow-bend-double-up-right", "arrow-bend-down-left", "arrow-bend-down-right", "arrow-bend-left-down", "arrow-bend-left-up", "arrow-bend-right-down", "arrow-bend-right-up", "arrow-bend-up-left", "arrow-bend-up-right", "arrow-circle-down", "arrow-circle-down-left", "arrow-circle-down-right", "arrow-circle-left", "arrow-circle-right", "arrow-circle-up", "arrow-circle-up-left", "arrow-circle-up-right", "arrow-clockwise", "arrow-counter-clockwise", "arrow-down", "arrow-down-left", "arrow-down-right", "arrow-elbow-down-left", "arrow-elbow-down-right", "arrow-elbow-left", "arrow-elbow-left-down", "arrow-elbow-left-up", "arrow-elbow-right", "arrow-elbow-right-down", "arrow-elbow-right-up", "arrow-elbow-up-left", "arrow-elbow-up-right", "arrow-fat-down", "arrow-fat-left", "arrow-fat-line-down", "arrow-fat-line-left", "arrow-fat-line-right", "arrow-fat-line-up", "arrow-fat-lines-down", "arrow-fat-lines-left", "arrow-fat-lines-right", "arrow-fat-lines-up", "arrow-fat-right", "arrow-fat-up", "arrow-left", "arrow-line-down", "arrow-line-down-left", "arrow-line-down-right", "arrow-line-left", "arrow-line-right", "arrow-line-up", "arrow-line-up-left", "arrow-line-up-right", "arrow-right", "arrow-square-down", "arrow-square-down-left", "arrow-square-down-right", "arrow-square-in", "arrow-square-left", "arrow-square-out", "arrow-square-right", "arrow-square-up", "arrow-square-up-left", "arrow-square-up-right", "arrow-u-down-left", "arrow-u-down-right", "arrow-u-left-down", "arrow-u-left-up", "arrow-u-right-down", "arrow-u-right-up", "arrow-u-up-left", "arrow-u-up-right", "arrow-up", "arrow-up-left", "arrow-up-right", "arrows-clockwise", "arrows-counter-clockwise", "arrows-down-up", "arrows-horizontal", "arrows-in", "arrows-in-cardinal", "arrows-in-line-horizontal", "arrows-in-line-vertical", "arrows-in-simple", "arrows-left-right", "arrows-out", "arrows-out-cardinal", "arrows-out-line-horizontal", "arrows-out-line-vertical", "arrows-out-simple", "arrows-vertical", "article", "article-medium", "article-ny-times", "asterisk", "asterisk-simple", "at", "atom", "baby", "backpack", "backspace", "bag", "bag-simple", "balloon", "bandaids", "bank", "barbell", "barcode", "barricade", "baseball", "basketball", "bathtub", "battery-charging", "battery-charging-vertical", "battery-empty", "battery-full", "battery-high", "battery-low", "battery-medium", "battery-plus", "battery-warning", "battery-warning-vertical", "bed", "beer-bottle", "behance-logo", "bell", "bell-ringing", "bell-simple", "bell-simple-ringing", "bell-simple-slash", "bell-simple-z", "bell-slash", "bell-z", "bezier-curve", "bicycle", "binoculars", "bird", "bluetooth", "bluetooth-connected", "bluetooth-slash", "bluetooth-x", "boat", "book", "book-bookmark", "book-open", "bookmark", "bookmark-simple", "bookmarks", "bookmarks-simple", "books", "bounding-box", "brackets-angle", "brackets-curly", "brackets-round", "brackets-square", "brain", "brandy", "briefcase", "briefcase-metal", "broadcast", "browser", "browsers", "bug", "bug-beetle", "bug-droid", "buildings", "bus", "butterfly", "cactus", "cake", "calculator", "calendar", "calendar-blank", "calendar-check", "calendar-plus", "calendar-x", "camera", "camera-rotate", "camera-slash", "campfire", "car", "car-simple", "cardholder", "cards", "caret-circle-double-down", "caret-circle-double-left", "caret-circle-double-right", "caret-circle-double-up", "caret-circle-down", "caret-circle-left", "caret-circle-right", "caret-circle-up", "caret-double-down", "caret-double-left", "caret-double-right", "caret-double-up", "caret-down", "caret-left", "caret-right", "caret-up", "cat", "cell-signal-full", "cell-signal-high", "cell-signal-low", "cell-signal-medium", "cell-signal-none", "cell-signal-slash", "cell-signal-x", "chalkboard", "chalkboard-simple", "chalkboard-teacher", "chart-bar", "chart-bar-horizontal", "chart-line", "chart-line-up", "chart-pie", "chart-pie-slice", "chat", "chat-centered", "chat-centered-dots", "chat-centered-text", "chat-circle", "chat-circle-dots", "chat-circle-text", "chat-dots", "chat-teardrop", "chat-teardrop-dots", "chat-teardrop-text", "chat-text", "chats", "chats-circle", "chats-teardrop", "check", "check-circle", "check-square", "check-square-offset", "checks", "circle", "circle-dashed", "circle-half", "circle-half-tilt", "circle-notch", "circle-wavy", "circle-wavy-check", "circle-wavy-question", "circle-wavy-warning", "circles-four", "circles-three", "circles-three-plus", "clipboard", "clipboard-text", "clock", "clock-afternoon", "clock-clockwise", "clock-counter-clockwise", "closed-captioning", "cloud", "cloud-arrow-down", "cloud-arrow-up", "cloud-check", "cloud-fog", "cloud-lightning", "cloud-moon", "cloud-rain", "cloud-slash", "cloud-snow", "cloud-sun", "club", "coat-hanger", "code", "code-simple", "codepen-logo", "codesandbox-logo", "coffee", "coin", "coin-vertical", "coins", "columns", "command", "compass", "computer-tower", "confetti", "cookie", "cooking-pot", "copy", "copy-simple", "copyleft", "copyright", "corners-in", "corners-out", "cpu", "credit-card", "crop", "crosshair", "crosshair-simple", "crown", "crown-simple", "cube", "currency-btc", "currency-circle-dollar", "currency-cny", "currency-dollar", "currency-dollar-simple", "currency-eth", "currency-eur", "currency-gbp", "currency-inr", "currency-jpy", "currency-krw", "currency-kzt", "currency-ngn", "currency-rub", "cursor", "cursor-text", "cylinder", "database", "desktop", "desktop-tower", "detective", "device-mobile", "device-mobile-camera", "device-mobile-speaker", "device-tablet", "device-tablet-camera", "device-tablet-speaker", "diamond", "diamonds-four", "dice-five", "dice-four", "dice-one", "dice-six", "dice-three", "dice-two", "disc", "discord-logo", "divide", "dog", "door", "dots-nine", "dots-six", "dots-six-vertical", "dots-three", "dots-three-circle", "dots-three-circle-vertical", "dots-three-outline", "dots-three-outline-vertical", "dots-three-vertical", "download", "download-simple", "dribbble-logo", "drop", "drop-half", "drop-half-bottom", "ear", "ear-slash", "egg", "egg-crack", "eject", "eject-simple", "envelope", "envelope-open", "envelope-simple", "envelope-simple-open", "equalizer", "equals", "eraser", "exam", "export", "eye", "eye-closed", "eye-slash", "eyedropper", "eyedropper-sample", "eyeglasses", "face-mask", "facebook-logo", "factory", "faders", "faders-horizontal", "fast-forward", "fast-forward-circle", "figma-logo", "file", "file-arrow-down", "file-arrow-up", "file-audio", "file-cloud", "file-code", "file-css", "file-csv", "file-doc", "file-dotted", "file-html", "file-image", "file-jpg", "file-js", "file-jsx", "file-lock", "file-minus", "file-pdf", "file-plus", "file-png", "file-ppt", "file-rs", "file-search", "file-text", "file-ts", "file-tsx", "file-video", "file-vue", "file-x", "file-xls", "file-zip", "files", "film-script", "film-slate", "film-strip", "fingerprint", "fingerprint-simple", "finn-the-human", "fire", "fire-simple", "first-aid", "first-aid-kit", "fish", "fish-simple", "flag", "flag-banner", "flag-checkered", "flame", "flashlight", "flask", "floppy-disk", "floppy-disk-back", "flow-arrow", "flower", "flower-lotus", "flying-saucer", "folder", "folder-dotted", "folder-lock", "folder-minus", "folder-notch", "folder-notch-minus", "folder-notch-open", "folder-notch-plus", "folder-open", "folder-plus", "folder-simple", "folder-simple-dotted", "folder-simple-lock", "folder-simple-minus", "folder-simple-plus", "folder-simple-star", "folder-simple-user", "folder-star", "folder-user", "folders", "football", "fork-knife", "frame-corners", "framer-logo", "function", "funnel", "funnel-simple", "game-controller", "gas-pump", "gauge", "gear", "gear-six", "gender-female", "gender-intersex", "gender-male", "gender-neuter", "gender-nonbinary", "gender-transgender", "ghost", "gif", "gift", "git-branch", "git-commit", "git-diff", "git-fork", "git-merge", "git-pull-request", "github-logo", "gitlab-logo", "gitlab-logo-simple", "globe", "globe-hemisphere-east", "globe-hemisphere-west", "globe-simple", "globe-stand", "google-chrome-logo", "google-logo", "google-photos-logo", "google-play-logo", "google-podcasts-logo", "gradient", "graduation-cap", "graph", "grid-four", "hamburger", "hand", "hand-eye", "hand-fist", "hand-grabbing", "hand-palm", "hand-pointing", "hand-soap", "hand-waving", "handbag", "handbag-simple", "hands-clapping", "handshake", "hard-drive", "hard-drives", "hash", "hash-straight", "headlights", "headphones", "headset", "heart", "heart-break", "heart-straight", "heart-straight-break", "heartbeat", "hexagon", "highlighter-circle", "horse", "hourglass", "hourglass-high", "hourglass-low", "hourglass-medium", "hourglass-simple", "hourglass-simple-high", "hourglass-simple-low", "hourglass-simple-medium", "house", "house-line", "house-simple", "identification-badge", "identification-card", "image", "image-square", "infinity", "info", "instagram-logo", "intersect", "jeep", "kanban", "key", "key-return", "keyboard", "keyhole", "knife", "ladder", "ladder-simple", "lamp", "laptop", "layout", "leaf", "lifebuoy", "lightbulb", "lightbulb-filament", "lightning", "lightning-slash", "line-segment", "line-segments", "link", "link-break", "link-simple", "link-simple-break", "link-simple-horizontal", "link-simple-horizontal-break", "linkedin-logo", "linux-logo", "list", "list-bullets", "list-checks", "list-dashes", "list-numbers", "list-plus", "lock", "lock-key", "lock-key-open", "lock-laminated", "lock-laminated-open", "lock-open", "lock-simple", "lock-simple-open", "magic-wand", "magnet", "magnet-straight", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "map-pin", "map-pin-line", "map-trifold", "marker-circle", "martini", "mask-happy", "mask-sad", "math-operations", "medal", "medium-logo", "megaphone", "megaphone-simple", "messenger-logo", "microphone", "microphone-slash", "microphone-stage", "microsoft-excel-logo", "microsoft-powerpoint-logo", "microsoft-teams-logo", "microsoft-word-logo", "minus", "minus-circle", "money", "monitor", "monitor-play", "moon", "moon-stars", "mountains", "mouse", "mouse-simple", "music-note", "music-note-simple", "music-notes", "music-notes-plus", "music-notes-simple", "navigation-arrow", "needle", "newspaper", "newspaper-clipping", "note", "note-blank", "note-pencil", "notebook", "notepad", "notification", "number-circle-eight", "number-circle-five", "number-circle-four", "number-circle-nine", "number-circle-one", "number-circle-seven", "number-circle-six", "number-circle-three", "number-circle-two", "number-circle-zero", "number-eight", "number-five", "number-four", "number-nine", "number-one", "number-seven", "number-six", "number-square-eight", "number-square-five", "number-square-four", "number-square-nine", "number-square-one", "number-square-seven", "number-square-six", "number-square-three", "number-square-two", "number-square-zero", "number-three", "number-two", "number-zero", "nut", "ny-times-logo", "octagon", "option", "package", "paint-brush", "paint-brush-broad", "paint-brush-household", "paint-bucket", "paint-roller", "palette", "paper-plane", "paper-plane-right", "paper-plane-tilt", "paperclip", "paperclip-horizontal", "parachute", "password", "path", "pause", "pause-circle", "paw-print", "peace", "pen", "pen-nib", "pen-nib-straight", "pencil", "pencil-circle", "pencil-line", "pencil-simple", "pencil-simple-line", "percent", "person", "person-simple", "person-simple-run", "person-simple-walk", "perspective", "phone", "phone-call", "phone-disconnect", "phone-incoming", "phone-outgoing", "phone-slash", "phone-x", "phosphor-logo", "piano-keys", "picture-in-picture", "pill", "pinterest-logo", "pinwheel", "pizza", "placeholder", "planet", "play", "play-circle", "playlist", "plug", "plugs", "plugs-connected", "plus", "plus-circle", "plus-minus", "poker-chip", "police-car", "polygon", "popcorn", "power", "prescription", "presentation", "presentation-chart", "printer", "prohibit", "prohibit-inset", "projector-screen", "projector-screen-chart", "push-pin", "push-pin-simple", "push-pin-simple-slash", "push-pin-slash", "puzzle-piece", "qr-code", "question", "queue", "quotes", "radical", "radio", "radio-button", "rainbow", "rainbow-cloud", "receipt", "record", "rectangle", "recycle", "reddit-logo", "repeat", "repeat-once", "rewind", "rewind-circle", "robot", "rocket", "rocket-launch", "rows", "rss", "rss-simple", "rug", "ruler", "scales", "scan", "scissors", "screencast", "scribble-loop", "scroll", "selection", "selection-all", "selection-background", "selection-foreground", "selection-inverse", "selection-plus", "selection-slash", "share", "share-network", "shield", "shield-check", "shield-checkered", "shield-chevron", "shield-plus", "shield-slash", "shield-star", "shield-warning", "shopping-bag", "shopping-bag-open", "shopping-cart", "shopping-cart-simple", "shower", "shuffle", "shuffle-angular", "shuffle-simple", "sidebar", "sidebar-simple", "sign-in", "sign-out", "signpost", "sim-card", "sketch-logo", "skip-back", "skip-back-circle", "skip-forward", "skip-forward-circle", "skull", "slack-logo", "sliders", "sliders-horizontal", "smiley", "smiley-blank", "smiley-meh", "smiley-nervous", "smiley-sad", "smiley-sticker", "smiley-wink", "smiley-x-eyes", "snapchat-logo", "snowflake", "soccer-ball", "sort-ascending", "sort-descending", "spade", "sparkle", "speaker-high", "speaker-low", "speaker-none", "speaker-simple-high", "speaker-simple-low", "speaker-simple-none", "speaker-simple-slash", "speaker-simple-x", "speaker-slash", "speaker-x", "spinner", "spinner-gap", "spiral", "spotify-logo", "square", "square-half", "square-half-bottom", "square-logo", "squares-four", "stack", "stack-overflow-logo", "stack-simple", "stamp", "star", "star-four", "star-half", "sticker", "stop", "stop-circle", "storefront", "strategy", "stripe-logo", "student", "suitcase", "suitcase-simple", "sun", "sun-dim", "sun-horizon", "sunglasses", "swap", "swatches", "sword", "syringe", "t-shirt", "table", "tabs", "tag", "tag-chevron", "tag-simple", "target", "taxi", "telegram-logo", "television", "television-simple", "tennis-ball", "terminal", "terminal-window", "test-tube", "text-aa", "text-align-center", "text-align-justify", "text-align-left", "text-align-right", "text-bolder", "text-h", "text-h-five", "text-h-four", "text-h-one", "text-h-six", "text-h-three", "text-h-two", "text-indent", "text-italic", "text-outdent", "text-strikethrough", "text-t", "text-underline", "textbox", "thermometer", "thermometer-cold", "thermometer-hot", "thermometer-simple", "thumbs-down", "thumbs-up", "ticket", "tiktok-logo", "timer", "toggle-left", "toggle-right", "toilet", "toilet-paper", "tote", "tote-simple", "trademark-registered", "traffic-cone", "traffic-sign", "traffic-signal", "train", "train-regional", "train-simple", "translate", "trash", "trash-simple", "tray", "tree", "tree-evergreen", "tree-structure", "trend-down", "trend-up", "triangle", "trophy", "truck", "twitch-logo", "twitter-logo", "umbrella", "umbrella-simple", "upload", "upload-simple", "user", "user-circle", "user-circle-gear", "user-circle-minus", "user-circle-plus", "user-focus", "user-gear", "user-list", "user-minus", "user-plus", "user-rectangle", "user-square", "user-switch", "users", "users-four", "users-three", "vault", "vibrate", "video-camera", "video-camera-slash", "vignette", "voicemail", "volleyball", "wall", "wallet", "warning", "warning-circle", "warning-octagon", "watch", "wave-sawtooth", "wave-sine", "wave-square", "wave-triangle", "waves", "webcam", "whatsapp-logo", "wheelchair", "wifi-high", "wifi-low", "wifi-medium", "wifi-none", "wifi-slash", "wifi-x", "wind", "windows-logo", "wine", "wrench", "x", "x-circle", "x-square", "yin-yang", "youtube-logo"]; /* * Copyright 2025 CROZ d.o.o, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ function LoadingIcon(_a) { var { size = 5, className = "" } = _a, props = __rest(_a, ["size", "className"]); const svgClassName = cx("spinner", `w-${size} h-${size}`); return /*#__PURE__*/React.createElement("svg", { className: tillerTwMerge(svgClassName, className), viewBox: "0 0 66 66", xmlns: "http://www.w3.org/2000/svg", fill: "currentColor", "data-testid": props["data-testid"] }, /*#__PURE__*/React.createElement("circle", { className: "path stroke-current", fill: "none", strokeWidth: "6", strokeLinecap: "round", cx: "33", cy: "33", r: "30" })); } const iconConfig = { dismiss: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "x" })), breadcrumbs: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-right" })), openExpander: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-down" })), closeExpander: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-up" })), paginatorPrevious: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-left" })), paginatorNext: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-right" })), completed: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "check", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "bold" })); }, sortDesc: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-down", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "bold" })); }, sortAsc: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "caret-up", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "bold" })); }, date: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "calendar-blank", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, time: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "clock", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, inputError: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "warning-circle", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, showPassword: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "eye", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, hidePassword: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "eye-slash", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, menu: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "list" })), search: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "magnifying-glass" })), upload: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "paperclip" })), file: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "paperclip" })), loading: props => /*#__PURE__*/React__default.createElement(LoadingIcon, Object.assign({}, props)), undo: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "arrow-counter-clockwise" })), redo: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "arrow-clockwise" })), listBullets: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "list-bullets" })), listNumbers: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "list-numbers" })), textItalic: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-italic" })), textBolder: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-bolder" })), textUnderline: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-underline" })), textStrikethrough: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-strikethrough" })), textIndent: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-indent" })), textOutdent: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-outdent" })), textAlignLeft: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-align-left" })), textAlignCenter: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-align-center" })), textAlignRight: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-align-right" })), textAlignJustify: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "text-align-justify" })), table: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "table" })), link: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "link-simple-break" })), linkBreak: props => /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "link" })), success: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "check-circle", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, info: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "info", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, danger: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "x-circle", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); }, warning: props => { var _a; return /*#__PURE__*/React__default.createElement(Icon, Object.assign({}, props, { type: "warning-circle", variant: (_a = props.variant) !== null && _a !== void 0 ? _a : "fill" })); } }; /* * Copyright 2025 CROZ d.o.o, the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ function InlineMailIcon(_a) { var props = __rest(_a, []); const tokens = useTokens("Icon", props.tokens); retu