PHP 8.2.30
Preview: textInputs.js Size: 2.17 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/polished/lib/shorthands/textInputs.js

"use strict";

exports.__esModule = true;
exports["default"] = textInputs;
var _statefulSelectors = _interopRequireDefault(require("../internalHelpers/_statefulSelectors"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var stateMap = [undefined, null, 'active', 'focus', 'hover'];
function template(state) {
  return "input[type=\"color\"]" + state + ",\n    input[type=\"date\"]" + state + ",\n    input[type=\"datetime\"]" + state + ",\n    input[type=\"datetime-local\"]" + state + ",\n    input[type=\"email\"]" + state + ",\n    input[type=\"month\"]" + state + ",\n    input[type=\"number\"]" + state + ",\n    input[type=\"password\"]" + state + ",\n    input[type=\"search\"]" + state + ",\n    input[type=\"tel\"]" + state + ",\n    input[type=\"text\"]" + state + ",\n    input[type=\"time\"]" + state + ",\n    input[type=\"url\"]" + state + ",\n    input[type=\"week\"]" + state + ",\n    input:not([type])" + state + ",\n    textarea" + state;
}

/**
 * Populates selectors that target all text inputs. You can pass optional states to append to the selectors.
 * @example
 * // Styles as object usage
 * const styles = {
 *   [textInputs('active')]: {
 *     'border': 'none'
 *   }
 * }
 *
 * // styled-components usage
 * const div = styled.div`
 *   > ${textInputs('active')} {
 *     border: none;
 *   }
 * `
 *
 * // CSS in JS Output
 *
 *  'input[type="color"]:active,
 *  input[type="date"]:active,
 *  input[type="datetime"]:active,
 *  input[type="datetime-local"]:active,
 *  input[type="email"]:active,
 *  input[type="month"]:active,
 *  input[type="number"]:active,
 *  input[type="password"]:active,
 *  input[type="search"]:active,
 *  input[type="tel"]:active,
 *  input[type="text"]:active,
 *  input[type="time"]:active,
 *  input[type="url"]:active,
 *  input[type="week"]:active,
 *  input:not([type]):active,
 *  textarea:active': {
 *   'border': 'none'
 * }
 */
function textInputs() {
  for (var _len = arguments.length, states = new Array(_len), _key = 0; _key < _len; _key++) {
    states[_key] = arguments[_key];
  }
  return (0, _statefulSelectors["default"])(states, template, stateMap);
}
module.exports = exports.default;

Directory Contents

Dirs: 0 × Files: 45

Name Size Perms Modified Actions
167 B lrw-r--r-- 2026-02-28 00:31:10
Edit Download
1.79 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
1.58 KB lrw-r--r-- 2026-02-28 00:28:44
Edit Download
149 B lrw-r--r-- 2026-02-28 00:31:10
Edit Download
911 B lrw-r--r-- 2026-02-28 00:30:16
Edit Download
760 B lrw-r--r-- 2026-02-28 00:28:48
Edit Download
139 B lrw-r--r-- 2026-02-28 00:31:10
Edit Download
934 B lrw-r--r-- 2026-02-28 00:30:16
Edit Download
788 B lrw-r--r-- 2026-02-28 00:28:50
Edit Download
236 B lrw-r--r-- 2026-02-28 00:31:10
Edit Download
1.93 KB lrw-r--r-- 2026-02-28 00:30:16
Edit Download
1.67 KB lrw-r--r-- 2026-02-28 00:28:54
Edit Download
149 B lrw-r--r-- 2026-02-28 00:31:10
Edit Download
1.07 KB lrw-r--r-- 2026-02-28 00:30:18
Edit Download
795 B lrw-r--r-- 2026-02-28 00:28:56
Edit Download
150 B lrw-r--r-- 2026-02-28 00:31:12
Edit Download
1.46 KB lrw-r--r-- 2026-02-28 00:30:20
Edit Download
1.21 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
149 B lrw-r--r-- 2026-02-28 00:31:12
Edit Download
1.08 KB lrw-r--r-- 2026-02-28 00:30:20
Edit Download
810 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
176 B lrw-r--r-- 2026-02-28 00:31:12
Edit Download
1.06 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
799 B lrw-r--r-- 2026-02-28 00:28:58
Edit Download
158 B lrw-r--r-- 2026-02-28 00:31:12
Edit Download
1.28 KB lrw-r--r-- 2026-02-28 00:30:22
Edit Download
1.03 KB lrw-r--r-- 2026-02-28 00:28:58
Edit Download
166 B lrw-r--r-- 2026-02-28 00:31:18
Edit Download
1.02 KB lrw-r--r-- 2026-02-28 00:30:42
Edit Download
759 B lrw-r--r-- 2026-02-28 00:29:40
Edit Download
168 B lrw-r--r-- 2026-02-28 00:31:20
Edit Download
1.03 KB lrw-r--r-- 2026-02-28 00:30:46
Edit Download
767 B lrw-r--r-- 2026-02-28 00:29:48
Edit Download
208 B lrw-r--r-- 2026-02-28 00:31:20
Edit Download
2.09 KB lrw-r--r-- 2026-02-28 00:30:56
Edit Download
1.45 KB lrw-r--r-- 2026-02-28 00:29:52
Edit Download
145 B lrw-r--r-- 2026-02-28 00:31:24
Edit Download
604 B lrw-r--r-- 2026-02-28 00:31:00
Edit Download
559 B lrw-r--r-- 2026-02-28 00:29:58
Edit Download
164 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
2.17 KB lrw-r--r-- 2026-02-28 00:31:00
Edit Download
1.82 KB lrw-r--r-- 2026-02-28 00:30:00
Edit Download
159 B lrw-r--r-- 2026-02-28 00:31:26
Edit Download
1.71 KB lrw-r--r-- 2026-02-28 00:31:02
Edit Download
1.46 KB lrw-r--r-- 2026-02-28 00:30:04
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).