Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Nothing yet!
## [0.1.1] - 2023-03-31
### Fixed
- Ensure types are published to npm ([#11](https://github.com/tailwindlabs/tailwindcss-container-queries/pull/11))
## [0.1.0] - 2022-10-19
### Added
- Add new `@container`, `@container-normal` utilities.
- Add new `@xs`, `@sm`, ..., `@[400px]`, variants.
[unreleased]: https://github.com/tailwindlabs/tailwindcss-container-queries/compare/v0.1.1...HEAD
[0.1.1]: https://github.com/tailwindlabs/tailwindcss-container-queries/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/tailwindlabs/tailwindcss-container-queries/releases/tag/v0.1.0

View File

@@ -0,0 +1,106 @@
# @tailwindcss/container-queries
A plugin for Tailwind CSS v3.2+ that provides utilities for container queries.
## Installation
Install the plugin from npm:
```sh
npm install @tailwindcss/container-queries
```
Then add the plugin to your `tailwind.config.js` file:
```js
// tailwind.config.js
module.exports = {
theme: {
// ...
},
plugins: [
require('@tailwindcss/container-queries'),
// ...
],
}
```
## Usage
Start by marking an element as a container using the `@container` class, and then applying styles based on the size of that container using the container variants like `@md:`, `@lg:`, and `@xl:`:
```html
<div class="@container">
<div class="@lg:underline">
<!-- This text will be underlined when the container is larger than `32rem` -->
</div>
</div>
```
By default we provide [container sizes](#configuration) from `@xs` (`20rem`) to `@7xl` (`80rem`).
### Named containers
You can optionally name containers using a `@container/{name}` class, and then include that name in the container variants using classes like `@lg/{name}:underline`:
```html
<div class="@container/main">
<!-- ... -->
<div class="@lg/main:underline">
<!-- This text will be underlined when the "main" container is larger than `32rem` -->
</div>
</div>
```
### Arbitrary container sizes
In addition to using one of the [container sizes](#configuration) provided by default, you can also create one-off sizes using any arbitrary value:
```html
<div class="@container">
<div class="@[17.5rem]:underline"></div>
<!-- This text will be underlined when the container is larger than `17.5rem` -->
</div>
</div>
```
### Removing a container
To stop an element from acting as a container, use the `@container-normal` class.
<div class="@container xl:@container-normal">
<!-- ... -->
</div>
## Configuration
By default we ship with the following configured values:
| Name | CSS |
| ------ | ------------------------------- |
| `@xs` | `@container (min-width: 20rem)` |
| `@sm` | `@container (min-width: 24rem)` |
| `@md` | `@container (min-width: 28rem)` |
| `@lg` | `@container (min-width: 32rem)` |
| `@xl` | `@container (min-width: 36rem)` |
| `@2xl` | `@container (min-width: 42rem)` |
| `@3xl` | `@container (min-width: 48rem)` |
| `@4xl` | `@container (min-width: 56rem)` |
| `@5xl` | `@container (min-width: 64rem)` |
| `@6xl` | `@container (min-width: 72rem)` |
| `@7xl` | `@container (min-width: 80rem)` |
You can configure which values are available for this plugin under the `containers` key in your `tailwind.config.js` file:
```js
// tailwind.config.js
module.exports = {
theme: {
extend: {
containers: {
'2xs': '16rem',
},
},
},
}
```

View File

@@ -0,0 +1,5 @@
declare const _default: {
handler: import("tailwindcss/types/config").PluginCreator;
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
};
export = _default;

View File

@@ -0,0 +1,80 @@
"use strict";
var _plugin = /*#__PURE__*/ _interopRequireDefault(require("tailwindcss/plugin"));
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
default: obj
};
}
module.exports = (0, _plugin.default)(function containerQueries(param) {
var matchUtilities = param.matchUtilities, matchVariant = param.matchVariant, theme = param.theme;
var parseValue = function parseValue(value) {
var _value_match;
var _value_match_;
var numericValue = (_value_match_ = (_value_match = value.match(/^(\d+\.\d+|\d+|\.\d+)\D+/)) === null || _value_match === void 0 ? void 0 : _value_match[1]) !== null && _value_match_ !== void 0 ? _value_match_ : null;
if (numericValue === null) return null;
return parseFloat(value);
};
var _theme;
var values = (_theme = theme("containers")) !== null && _theme !== void 0 ? _theme : {};
matchUtilities({
"@container": function(value, param) {
var modifier = param.modifier;
return {
"container-type": value,
"container-name": modifier
};
}
}, {
values: {
DEFAULT: "inline-size",
normal: "normal"
},
modifiers: "any"
});
matchVariant("@", function() {
var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", modifier = (arguments.length > 1 ? arguments[1] : void 0).modifier;
var parsed = parseValue(value);
return parsed !== null ? "@container ".concat(modifier !== null && modifier !== void 0 ? modifier : "", " (min-width: ").concat(value, ")") : [];
}, {
values: values,
sort: function sort(aVariant, zVariant) {
var a = parseFloat(aVariant.value);
var z = parseFloat(zVariant.value);
if (a === null || z === null) return 0;
// Sort values themselves regardless of unit
if (a - z !== 0) return a - z;
var _aVariant_modifier;
var aLabel = (_aVariant_modifier = aVariant.modifier) !== null && _aVariant_modifier !== void 0 ? _aVariant_modifier : "";
var _zVariant_modifier;
var zLabel = (_zVariant_modifier = zVariant.modifier) !== null && _zVariant_modifier !== void 0 ? _zVariant_modifier : "";
// Explicitly move empty labels to the end
if (aLabel === "" && zLabel !== "") {
return 1;
} else if (aLabel !== "" && zLabel === "") {
return -1;
}
// Sort labels alphabetically in the English locale
// We are intentionally overriding the locale because we do not want the sort to
// be affected by the machine's locale (be it a developer or CI environment)
return aLabel.localeCompare(zLabel, "en", {
numeric: true
});
}
});
}, {
theme: {
containers: {
xs: "20rem",
sm: "24rem",
md: "28rem",
lg: "32rem",
xl: "36rem",
"2xl": "42rem",
"3xl": "48rem",
"4xl": "56rem",
"5xl": "64rem",
"6xl": "72rem",
"7xl": "80rem"
}
}
});

View File

@@ -0,0 +1 @@
../../../../tailwindcss/lib/cli.js

View File

@@ -0,0 +1 @@
../../../../tailwindcss/lib/cli.js