@pimolu/web-styles 0.1.0-beta.1 → 0.1.0-beta.10
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.
- package/README.fr.md +109 -14
- package/README.md +125 -30
- package/dist/accordion.css +73 -1
- package/dist/alert.css +1 -1
- package/dist/api-table.css +6 -5
- package/dist/app-shell.css +87 -22
- package/dist/arc-carousel.css +261 -0
- package/dist/avatar.css +37 -0
- package/dist/badge.css +37 -0
- package/dist/button.css +8 -2
- package/dist/card.css +37 -0
- package/dist/carousel.css +25 -4
- package/dist/cascader.css +1 -1
- package/dist/chart.css +99 -2
- package/dist/chat.css +1 -0
- package/dist/checkbox.css +1 -1
- package/dist/circular-progress.css +23 -1
- package/dist/code-block.css +2 -2
- package/dist/color-picker.css +1 -1
- package/dist/combobox.css +1 -1
- package/dist/command.css +37 -0
- package/dist/coverflow-carousel.css +251 -0
- package/dist/currency-input.css +1 -1
- package/dist/dashboard-layout.css +92 -28
- package/dist/date-picker.css +1 -1
- package/dist/docs-layout.css +9 -0
- package/dist/form-field.css +50 -0
- package/dist/form.css +48 -0
- package/dist/gantt.css +19 -1
- package/dist/input-group.css +15 -3
- package/dist/input.css +14 -2
- package/dist/kanban.css +27 -2
- package/dist/layered.css +23822 -0
- package/dist/masked-input.css +1 -1
- package/dist/mentions.css +1 -1
- package/dist/modal.css +186 -0
- package/dist/motion.css +36 -0
- package/dist/multi-carousel.css +260 -0
- package/dist/multi-select.css +1 -1
- package/dist/navbar.css +343 -0
- package/dist/number-input.css +1 -1
- package/dist/page-header.css +29 -1
- package/dist/password-input.css +14 -2
- package/dist/peek-carousel.css +250 -0
- package/dist/phone-input.css +1 -1
- package/dist/pimolu.css +1990 -415
- package/dist/pimolu.min.css +1 -1
- package/dist/pin-input.css +1 -1
- package/dist/popover.css +4 -0
- package/dist/radio.css +1 -1
- package/dist/range-slider.css +8 -1
- package/dist/scheduler.css +19 -2
- package/dist/segmented-control.css +70 -3
- package/dist/select.css +3 -1
- package/dist/sidebar.css +116 -6
- package/dist/slider.css +71 -1
- package/dist/stack-carousel.css +250 -0
- package/dist/switch.css +1 -1
- package/dist/table.css +37 -0
- package/dist/tabs.css +129 -40
- package/dist/tags-input.css +9 -2
- package/dist/textarea.css +1 -1
- package/dist/themes.css +129 -0
- package/dist/thumbnail-carousel.css +244 -0
- package/dist/time-picker.css +1 -1
- package/dist/toast.css +225 -8
- package/dist/tokens.css +902 -0
- package/dist/toolbar.css +37 -0
- package/dist/tree-select.css +1 -1
- package/dist/tree-table.css +10 -0
- package/package.json +20 -8
- package/LICENSE +0 -21
package/README.fr.md
CHANGED
|
@@ -1,30 +1,125 @@
|
|
|
1
1
|
# @pimolu/web-styles
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Un langage visuel, exprimé en CSS natif.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
La couche de style derrière Pimolu UI. Chargez une feuille complète, optez pour des couches CSS prévisibles, ou assemblez uniquement le CSS des composants utilisés. Aucune dépendance à Tailwind, aucun runtime CSS-in-JS.
|
|
6
|
+
|
|
7
|
+
[Démarrage rapide](https://pimolu.com/docs/quick-start) · [Thèmes](https://pimolu.com/docs/theming) · [Personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
|
|
8
|
+
|
|
9
|
+
> **Bêta :** `0.1.0-beta.10` est une prévisualisation. Les entrées CSS publiques et les tokens visuels peuvent évoluer avant `1.0.0`.
|
|
10
|
+
|
|
11
|
+
## Pourquoi les styles Pimolu ?
|
|
12
|
+
|
|
13
|
+
- **Un import, le système complet.** `styles.css` combine les tokens primitifs, les thèmes sémantiques, les sept presets et chaque feuille de composant.
|
|
14
|
+
- **Des surcharges sans `!important`.** `layered.css` place la bibliothèque dans une couche `pimolu` pour que les règles applicatives et les utilitaires Tailwind gagnent de façon prévisible.
|
|
15
|
+
- **Le CSS par composant quand vous en avez besoin.** Chaque famille possède un sous-chemin CSS exporté : une petite application peut charger seulement les fondations et les contrôles utilisés.
|
|
16
|
+
- **CSS natif, zéro runtime.** Aucun calcul de style en JavaScript et aucun nom de classe généré. Les changements de thème passent par des attributs.
|
|
17
|
+
- **Des versions alignées.** Le CSS et React sont publiés à la même version. Gardez-les ensemble.
|
|
18
|
+
|
|
19
|
+
## En bref
|
|
20
|
+
|
|
21
|
+
| | |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Entrées | `styles.css`, `layered.css`, `tokens.css`, `themes.css`, `pimolu.min.css` |
|
|
24
|
+
| Styles de composants | 129 sous-chemins CSS exportés |
|
|
25
|
+
| Fondations | Tokens, thèmes sémantiques, sept presets visuels |
|
|
26
|
+
| Thèmes | Clair et sombre, y compris la préférence système via le Provider |
|
|
27
|
+
| Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
|
|
28
|
+
| Runtime | Aucun — Tailwind ou CSS-in-JS non requis |
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pnpm add @pimolu/web-styles@beta
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Vous utilisez aussi les composants React ?
|
|
6
37
|
|
|
7
38
|
```bash
|
|
8
|
-
pnpm add @pimolu/web-styles
|
|
39
|
+
pnpm add @pimolu/react@beta @pimolu/web-styles@beta
|
|
9
40
|
```
|
|
10
41
|
|
|
11
|
-
|
|
42
|
+
## Feuille complète
|
|
43
|
+
|
|
44
|
+
Importez-la une fois au point d'entrée de l'application :
|
|
12
45
|
|
|
13
|
-
```
|
|
14
|
-
import "@pimolu/web-styles/styles.css";
|
|
46
|
+
```css
|
|
47
|
+
@import "@pimolu/web-styles/styles.css";
|
|
15
48
|
```
|
|
16
49
|
|
|
17
|
-
|
|
50
|
+
Définissez ensuite le mode de couleur et le preset sur un conteneur, ou laissez `PimoluProvider` le faire :
|
|
18
51
|
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
|
|
52
|
+
```html
|
|
53
|
+
<div data-pimolu-theme="dark" data-pimolu-style="glass">
|
|
54
|
+
<!-- Votre application -->
|
|
55
|
+
</div>
|
|
22
56
|
```
|
|
23
57
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
Une version minifiée est disponible :
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
@import "@pimolu/web-styles/pimolu.min.css";
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Des surcharges prévisibles
|
|
65
|
+
|
|
66
|
+
Utilisez l'entrée en couches quand le CSS applicatif doit surcharger Pimolu sans escalade de spécificité :
|
|
67
|
+
|
|
68
|
+
```css
|
|
69
|
+
@import "@pimolu/web-styles/layered.css";
|
|
70
|
+
|
|
71
|
+
.checkout-action:hover:enabled {
|
|
72
|
+
background: var(--pimolu-success);
|
|
73
|
+
color: var(--pimolu-success-foreground);
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Importez `styles.css` ou `layered.css`, pas les deux. Avec Tailwind v4, déclarez l'ordre complet des couches avant l'un ou l'autre :
|
|
78
|
+
|
|
79
|
+
```css
|
|
80
|
+
@layer theme, base, pimolu, components, utilities;
|
|
81
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
82
|
+
@import "@pimolu/web-styles/layered.css";
|
|
83
|
+
@import "tailwindcss/utilities.css" layer(utilities);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Le contrat de personnalisation couvre les hooks de panneaux, le scope des portails et les responsabilités d'accessibilité.
|
|
87
|
+
|
|
88
|
+
## Assembler uniquement le nécessaire
|
|
89
|
+
|
|
90
|
+
Installez les fondations et importez le CSS des composants utilisés :
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pnpm add @pimolu/web-styles@beta @pimolu/themes@beta
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```css
|
|
97
|
+
@import "@pimolu/themes/styles.css";
|
|
98
|
+
@import "@pimolu/themes/presets.css";
|
|
99
|
+
@import "@pimolu/web-styles/button.css";
|
|
100
|
+
@import "@pimolu/web-styles/input.css";
|
|
101
|
+
@import "@pimolu/web-styles/card.css";
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Chaque famille possède son sous-chemin, de `accordion.css` à `watermark.css`. Gardez les versions CSS et React alignées.
|
|
105
|
+
|
|
106
|
+
## La famille de packages
|
|
107
|
+
|
|
108
|
+
| Package | Rôle |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | Composants, hooks et layouts React |
|
|
111
|
+
| [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | CSS complet, entrée en couches et CSS par composant |
|
|
112
|
+
| [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Thèmes clair/sombre, sept presets et données visuelles |
|
|
113
|
+
| [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Tokens primitifs en CSS et JSON |
|
|
114
|
+
| [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Utilitaire de classes de variantes indépendant du framework |
|
|
115
|
+
|
|
116
|
+
## Documentation et état
|
|
117
|
+
|
|
118
|
+
- [Démarrage rapide](https://pimolu.com/docs/quick-start)
|
|
119
|
+
- [Thèmes et presets](https://pimolu.com/docs/theming)
|
|
120
|
+
- [Contrat de personnalisation](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md)
|
|
121
|
+
- [Source et issues](https://github.com/pimoludev/ui)
|
|
27
122
|
|
|
28
|
-
|
|
123
|
+
Pimolu UI est en bêta. Le registre React est implémenté ; les registres native, Angular et web components sont des directions futures. La revue visuelle et d'assistance technique complète reste ouverte.
|
|
29
124
|
|
|
30
125
|
MIT © Pimolu
|
package/README.md
CHANGED
|
@@ -1,30 +1,125 @@
|
|
|
1
|
-
# @pimolu/web-styles
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
# @pimolu/web-styles
|
|
2
|
+
|
|
3
|
+
**One visual language, expressed in plain CSS.**
|
|
4
|
+
|
|
5
|
+
The styling layer behind Pimolu UI. Load one complete stylesheet, opt into predictable cascade layers, or assemble only the component CSS your application uses. No Tailwind requirement and no CSS-in-JS runtime.
|
|
6
|
+
|
|
7
|
+
[Quick start](https://pimolu.com/docs/quick-start) · [Theming](https://pimolu.com/docs/theming) · [Customization](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md) · [Source](https://github.com/pimoludev/ui/tree/main/packages/web-styles)
|
|
8
|
+
|
|
9
|
+
> **Beta:** `0.1.0-beta.10` is a preview. Public CSS entry points and visual tokens may change before `1.0.0`.
|
|
10
|
+
|
|
11
|
+
## Why Pimolu styles?
|
|
12
|
+
|
|
13
|
+
- **One import, the complete system.** `styles.css` combines primitive tokens, semantic themes, all seven presets and every component stylesheet.
|
|
14
|
+
- **Overrides without `!important`.** `layered.css` places the library in a `pimolu` cascade layer so normal application rules and Tailwind utilities can win predictably.
|
|
15
|
+
- **Component-level CSS when you need it.** Every family has an exported CSS subpath, so a small application can load only the foundations and controls it uses. `tokens.css` provides every custom property and `themes.css` the light/dark semantic themes, both without component rules. okens.css provides every custom property and hemes.css the light/dark semantic themes, both without component rules.
|
|
16
|
+
- **Plain CSS, zero runtime.** No style calculations in JavaScript and no generated class names. Theme changes are attribute-driven.
|
|
17
|
+
- **Aligned releases.** The CSS and React packages ship at the same version. Keep them together.
|
|
18
|
+
|
|
19
|
+
## At a glance
|
|
20
|
+
|
|
21
|
+
| | |
|
|
22
|
+
| --- | --- |
|
|
23
|
+
| Entries | `styles.css`, `layered.css`, `tokens.css`, `themes.css`, `pimolu.min.css` |
|
|
24
|
+
| Component styles | 129 exported CSS subpaths |
|
|
25
|
+
| Foundations | Tokens, semantic themes, seven visual presets |
|
|
26
|
+
| Themes | Light and dark, including system preference through the Provider |
|
|
27
|
+
| Presets | default, adaptive, cartoon, glass, luxury, monochrome, neo-brutalism |
|
|
28
|
+
| Runtime | None — no Tailwind or CSS-in-JS required |
|
|
29
|
+
|
|
30
|
+
## Install
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
pnpm add @pimolu/web-styles@latest
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Using React components as well?
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
pnpm add @pimolu/react@latest @pimolu/web-styles@latest
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
## Complete stylesheet
|
|
43
|
+
|
|
44
|
+
Import it once in your application entry:
|
|
45
|
+
|
|
46
|
+
```css
|
|
47
|
+
@import "@pimolu/web-styles/styles.css";
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Then set the colour mode and preset on a container, or let `PimoluProvider` do it:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div data-pimolu-theme="dark" data-pimolu-style="glass">
|
|
54
|
+
<!-- Your application -->
|
|
55
|
+
</div>
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
A pre-minified build is available as:
|
|
59
|
+
|
|
60
|
+
```css
|
|
61
|
+
@import "@pimolu/web-styles/pimolu.min.css";
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Predictable overrides
|
|
65
|
+
|
|
66
|
+
Use the layered entry when application CSS must override Pimolu without specificity escalation:
|
|
67
|
+
|
|
68
|
+
```css
|
|
69
|
+
@import "@pimolu/web-styles/layered.css";
|
|
70
|
+
|
|
71
|
+
.checkout-action:hover:enabled {
|
|
72
|
+
background: var(--pimolu-success);
|
|
73
|
+
color: var(--pimolu-success-foreground);
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Import either `styles.css` or `layered.css`, not both. With Tailwind v4, declare the complete layer order before importing either entry:
|
|
78
|
+
|
|
79
|
+
```css
|
|
80
|
+
@layer theme, base, pimolu, components, utilities;
|
|
81
|
+
@import "tailwindcss/theme.css" layer(theme);
|
|
82
|
+
@import "@pimolu/web-styles/layered.css";
|
|
83
|
+
@import "tailwindcss/utilities.css" layer(utilities);
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The customization contract covers panel hooks, portal scope and accessibility responsibilities.
|
|
87
|
+
|
|
88
|
+
## Assemble only what you use
|
|
89
|
+
|
|
90
|
+
Install the foundations package and import the component CSS you need:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pnpm add @pimolu/web-styles@latest @pimolu/themes@latest
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
```css
|
|
97
|
+
@import "@pimolu/themes/styles.css";
|
|
98
|
+
@import "@pimolu/themes/presets.css";
|
|
99
|
+
@import "@pimolu/web-styles/button.css";
|
|
100
|
+
@import "@pimolu/web-styles/input.css";
|
|
101
|
+
@import "@pimolu/web-styles/card.css";
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Each family has its own exported subpath, from `accordion.css` to `watermark.css`. Keep CSS and React versions aligned.
|
|
105
|
+
|
|
106
|
+
## The package family
|
|
107
|
+
|
|
108
|
+
| Package | Role |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| [`@pimolu/react`](https://www.npmjs.com/package/@pimolu/react) | React components, hooks and layouts |
|
|
111
|
+
| [`@pimolu/web-styles`](https://www.npmjs.com/package/@pimolu/web-styles) | Plain CSS bundle, layered entry and per-component CSS |
|
|
112
|
+
| [`@pimolu/themes`](https://www.npmjs.com/package/@pimolu/themes) | Light/dark themes, seven presets and visual data |
|
|
113
|
+
| [`@pimolu/design-tokens`](https://www.npmjs.com/package/@pimolu/design-tokens) | Primitive tokens in CSS and JSON |
|
|
114
|
+
| [`@pimolu/core`](https://www.npmjs.com/package/@pimolu/core) | Framework-independent variant class utility |
|
|
115
|
+
|
|
116
|
+
## Documentation and status
|
|
117
|
+
|
|
118
|
+
- [Quick start](https://pimolu.com/docs/quick-start)
|
|
119
|
+
- [Theming and presets](https://pimolu.com/docs/theming)
|
|
120
|
+
- [Customization contract](https://github.com/pimoludev/ui/blob/main/docs/CUSTOMIZATION.md)
|
|
121
|
+
- [Source and issues](https://github.com/pimoludev/ui)
|
|
122
|
+
|
|
123
|
+
Pimolu UI is a beta. The React registry is implemented; native, Angular and web-component registries are future directions. The full visual and assistive-technology audit remains open.
|
|
124
|
+
|
|
125
|
+
MIT © Pimolu
|
package/dist/accordion.css
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
|
+
/* src/motion.css */
|
|
2
|
+
:root {
|
|
3
|
+
--pimolu-interaction-duration: 150ms;
|
|
4
|
+
--pimolu-interaction-easing: ease-out;
|
|
5
|
+
}
|
|
6
|
+
:where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
|
|
7
|
+
transition:
|
|
8
|
+
background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
9
|
+
border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
10
|
+
color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
|
|
11
|
+
box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
|
|
12
|
+
}
|
|
13
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
|
|
14
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
|
|
15
|
+
:where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
|
|
16
|
+
animation: none !important;
|
|
17
|
+
transition: none !important;
|
|
18
|
+
scroll-behavior: auto !important;
|
|
19
|
+
}
|
|
20
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
|
|
21
|
+
:where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
|
|
22
|
+
display: none !important;
|
|
23
|
+
}
|
|
24
|
+
@media (prefers-reduced-motion: reduce) {
|
|
25
|
+
:where([class^=pimolu-], [class*=" pimolu-"]),
|
|
26
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::before,
|
|
27
|
+
:where([class^=pimolu-], [class*=" pimolu-"])::after {
|
|
28
|
+
animation: none !important;
|
|
29
|
+
transition: none !important;
|
|
30
|
+
scroll-behavior: auto !important;
|
|
31
|
+
}
|
|
32
|
+
.pimolu-accordion__content[hidden],
|
|
33
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
1
38
|
/* src/accordion.css */
|
|
2
39
|
.pimolu-accordion {
|
|
3
40
|
min-width: 0;
|
|
@@ -76,13 +113,32 @@
|
|
|
76
113
|
transform: rotate(180deg);
|
|
77
114
|
}
|
|
78
115
|
.pimolu-accordion__content {
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-template-rows: 1fr;
|
|
79
118
|
min-width: 0;
|
|
80
119
|
color: var(--pimolu-muted-foreground);
|
|
81
120
|
font-size: 0.875rem;
|
|
82
121
|
line-height: 1.6;
|
|
83
122
|
}
|
|
123
|
+
.pimolu-accordion__content[hidden] {
|
|
124
|
+
display: none;
|
|
125
|
+
}
|
|
126
|
+
.pimolu-accordion__content-clip {
|
|
127
|
+
min-height: 0;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
}
|
|
84
130
|
.pimolu-accordion__content[data-state=open] {
|
|
85
|
-
animation: pimolu-accordion-in
|
|
131
|
+
animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
132
|
+
}
|
|
133
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
134
|
+
display: grid;
|
|
135
|
+
animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
|
|
136
|
+
}
|
|
137
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__content {
|
|
138
|
+
animation: none;
|
|
139
|
+
}
|
|
140
|
+
.pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
|
|
141
|
+
transition: none;
|
|
86
142
|
}
|
|
87
143
|
.pimolu-accordion__content-inner {
|
|
88
144
|
padding: 0 0 16px;
|
|
@@ -96,14 +152,26 @@
|
|
|
96
152
|
}
|
|
97
153
|
@keyframes pimolu-accordion-in {
|
|
98
154
|
from {
|
|
155
|
+
grid-template-rows: 0fr;
|
|
99
156
|
opacity: 0;
|
|
100
157
|
transform: translateY(-3px);
|
|
101
158
|
}
|
|
102
159
|
to {
|
|
160
|
+
grid-template-rows: 1fr;
|
|
103
161
|
opacity: 1;
|
|
104
162
|
transform: translateY(0);
|
|
105
163
|
}
|
|
106
164
|
}
|
|
165
|
+
@keyframes pimolu-accordion-out {
|
|
166
|
+
from {
|
|
167
|
+
grid-template-rows: 1fr;
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
to {
|
|
171
|
+
grid-template-rows: 0fr;
|
|
172
|
+
opacity: 0;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
107
175
|
@media (prefers-reduced-motion: reduce) {
|
|
108
176
|
.pimolu-accordion__chevron {
|
|
109
177
|
transition: none;
|
|
@@ -111,6 +179,10 @@
|
|
|
111
179
|
.pimolu-accordion__content[data-state=open] {
|
|
112
180
|
animation: none;
|
|
113
181
|
}
|
|
182
|
+
.pimolu-accordion__content[data-state=closing] {
|
|
183
|
+
display: none;
|
|
184
|
+
animation: none;
|
|
185
|
+
}
|
|
114
186
|
}
|
|
115
187
|
@media (forced-colors: active) {
|
|
116
188
|
.pimolu-accordion__item {
|
package/dist/alert.css
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
.pimolu-alert__description {
|
|
71
71
|
margin: 0;
|
|
72
|
-
color: var(
|
|
72
|
+
color: color-mix(in srgb, var(--pimolu-muted-foreground, currentColor) 55%, var(--pimolu-foreground, currentColor));
|
|
73
73
|
font-size: 0.875rem;
|
|
74
74
|
line-height: 1.5;
|
|
75
75
|
text-wrap: pretty;
|
package/dist/api-table.css
CHANGED
|
@@ -29,19 +29,20 @@
|
|
|
29
29
|
border-radius: var(--pimolu-radius-sm, 6px);
|
|
30
30
|
}
|
|
31
31
|
.pimolu-api-table__table.pimolu-table {
|
|
32
|
-
min-width:
|
|
32
|
+
min-width: 0;
|
|
33
|
+
table-layout: fixed;
|
|
33
34
|
}
|
|
34
35
|
.pimolu-api-table__table :where(th, td):nth-child(1) {
|
|
35
|
-
width:
|
|
36
|
+
width: 20%;
|
|
36
37
|
}
|
|
37
38
|
.pimolu-api-table__table :where(th, td):nth-child(2) {
|
|
38
|
-
width:
|
|
39
|
+
width: 36%;
|
|
39
40
|
}
|
|
40
41
|
.pimolu-api-table__table :where(th, td):nth-child(3) {
|
|
41
|
-
width:
|
|
42
|
+
width: 10%;
|
|
42
43
|
}
|
|
43
44
|
.pimolu-api-table__table :where(th, td):nth-child(4) {
|
|
44
|
-
width:
|
|
45
|
+
width: 34%;
|
|
45
46
|
}
|
|
46
47
|
.pimolu-api-table__name {
|
|
47
48
|
display: flex;
|
package/dist/app-shell.css
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
/* src/app-shell.css */
|
|
2
2
|
.pimolu-app-shell {
|
|
3
3
|
--pimolu-app-shell-sidebar-width: 16rem;
|
|
4
|
+
--pimolu-app-shell-sidebar-track: var(--pimolu-app-shell-sidebar-width);
|
|
4
5
|
--pimolu-app-shell-aside-width: 18rem;
|
|
5
6
|
display: grid;
|
|
6
|
-
grid-template-columns: var(--pimolu-app-shell-sidebar-
|
|
7
|
+
grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
|
|
7
8
|
grid-template-areas: "header header" "sidebar main" "footer footer";
|
|
8
9
|
box-sizing: border-box;
|
|
10
|
+
min-width: 0;
|
|
9
11
|
min-height: 100dvh;
|
|
10
12
|
background: var(--pimolu-background);
|
|
11
13
|
color: var(--pimolu-foreground);
|
|
12
14
|
font-family: var(--pimolu-font-body, inherit);
|
|
13
15
|
}
|
|
14
16
|
.pimolu-app-shell[data-aside=true] {
|
|
15
|
-
grid-template-columns: var(--pimolu-app-shell-sidebar-
|
|
17
|
+
grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
|
|
16
18
|
grid-template-areas: "header header header" "sidebar main aside" "footer footer footer";
|
|
17
19
|
}
|
|
18
20
|
.pimolu-app-shell[data-sidebar=false] {
|
|
@@ -23,21 +25,14 @@
|
|
|
23
25
|
grid-template-columns: minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
|
|
24
26
|
grid-template-areas: "header header" "main aside" "footer footer";
|
|
25
27
|
}
|
|
26
|
-
.pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
27
|
-
--pimolu-app-shell-sidebar-
|
|
28
|
-
grid-template-columns: 3.75rem minmax(0, 1fr);
|
|
29
|
-
}
|
|
30
|
-
.pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
31
|
-
grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
|
|
28
|
+
.pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
29
|
+
--pimolu-app-shell-sidebar-track: 3.75rem;
|
|
32
30
|
}
|
|
33
|
-
@container (max-width:
|
|
31
|
+
@container (max-width: 900px) {
|
|
34
32
|
.pimolu-app-shell[data-aside=true] {
|
|
35
|
-
grid-template-columns: var(--pimolu-app-shell-sidebar-
|
|
33
|
+
grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
|
|
36
34
|
grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
|
|
37
35
|
}
|
|
38
|
-
.pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
39
|
-
grid-template-columns: 3.75rem minmax(0, 1fr);
|
|
40
|
-
}
|
|
41
36
|
.pimolu-app-shell[data-sidebar=false][data-aside=true] {
|
|
42
37
|
grid-template-columns: minmax(0, 1fr);
|
|
43
38
|
grid-template-areas: "header" "main" "aside" "footer";
|
|
@@ -48,6 +43,27 @@
|
|
|
48
43
|
}
|
|
49
44
|
}
|
|
50
45
|
@container (max-width: 720px) {
|
|
46
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
|
|
47
|
+
display: flex;
|
|
48
|
+
min-height: 40px;
|
|
49
|
+
padding-block: 0;
|
|
50
|
+
}
|
|
51
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
|
|
52
|
+
position: absolute;
|
|
53
|
+
}
|
|
54
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
|
|
55
|
+
width: 100%;
|
|
56
|
+
min-height: auto;
|
|
57
|
+
border-inline-end: 0;
|
|
58
|
+
}
|
|
59
|
+
.pimolu-app-shell__sidebar {
|
|
60
|
+
border-inline-end: 0;
|
|
61
|
+
border-block-end: 1px solid var(--pimolu-border);
|
|
62
|
+
}
|
|
63
|
+
.pimolu-app-shell__main,
|
|
64
|
+
.pimolu-app-shell__aside {
|
|
65
|
+
padding: var(--pimolu-spacing-4, 16px);
|
|
66
|
+
}
|
|
51
67
|
.pimolu-app-shell,
|
|
52
68
|
.pimolu-app-shell[data-aside=true],
|
|
53
69
|
.pimolu-app-shell[data-sidebar=false],
|
|
@@ -104,7 +120,34 @@
|
|
|
104
120
|
color: var(--pimolu-muted-foreground);
|
|
105
121
|
font-size: 0.8125rem;
|
|
106
122
|
}
|
|
107
|
-
@media (max-width:
|
|
123
|
+
@media (min-width: 721px) and (max-width: 900px) {
|
|
124
|
+
.pimolu-app-shell[data-aside=true] {
|
|
125
|
+
grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
|
|
126
|
+
grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
|
|
127
|
+
}
|
|
128
|
+
.pimolu-app-shell[data-sidebar=false][data-aside=true] {
|
|
129
|
+
grid-template-columns: minmax(0, 1fr);
|
|
130
|
+
grid-template-areas: "header" "main" "aside" "footer";
|
|
131
|
+
}
|
|
132
|
+
.pimolu-app-shell__aside {
|
|
133
|
+
border-inline-start: 0;
|
|
134
|
+
border-block-start: 1px solid var(--pimolu-border);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@media (max-width: 720px) {
|
|
138
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
|
|
139
|
+
display: flex;
|
|
140
|
+
min-height: 40px;
|
|
141
|
+
padding-block: 0;
|
|
142
|
+
}
|
|
143
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
|
|
144
|
+
position: absolute;
|
|
145
|
+
}
|
|
146
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
|
|
147
|
+
width: 100%;
|
|
148
|
+
min-height: auto;
|
|
149
|
+
border-inline-end: 0;
|
|
150
|
+
}
|
|
108
151
|
.pimolu-app-shell,
|
|
109
152
|
.pimolu-app-shell[data-aside=true],
|
|
110
153
|
.pimolu-app-shell[data-sidebar=false],
|
|
@@ -112,15 +155,15 @@
|
|
|
112
155
|
grid-template-columns: minmax(0, 1fr);
|
|
113
156
|
grid-template-areas: "header" "sidebar" "main" "aside" "footer";
|
|
114
157
|
}
|
|
115
|
-
.pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
|
|
116
|
-
.pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
158
|
+
.pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
|
|
159
|
+
.pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
117
160
|
grid-template-columns: minmax(0, 1fr);
|
|
118
161
|
}
|
|
119
|
-
.pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
|
|
162
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
|
|
120
163
|
width: 100%;
|
|
121
164
|
min-height: 60px;
|
|
122
165
|
}
|
|
123
|
-
.pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
166
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
124
167
|
display: none;
|
|
125
168
|
}
|
|
126
169
|
.pimolu-app-shell[data-sidebar=false] {
|
|
@@ -158,15 +201,37 @@
|
|
|
158
201
|
}
|
|
159
202
|
}
|
|
160
203
|
@container (max-width: 720px) {
|
|
161
|
-
.pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
|
|
162
|
-
.pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
|
|
204
|
+
.pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
|
|
205
|
+
.pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
|
|
163
206
|
grid-template-columns: minmax(0, 1fr);
|
|
164
207
|
}
|
|
165
|
-
.pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
|
|
208
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
|
|
166
209
|
width: 100%;
|
|
167
210
|
min-height: 60px;
|
|
168
211
|
}
|
|
169
|
-
.pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
212
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
|
|
170
213
|
display: none;
|
|
171
214
|
}
|
|
172
215
|
}
|
|
216
|
+
@container (max-width: 720px) {
|
|
217
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
|
|
218
|
+
display: contents;
|
|
219
|
+
}
|
|
220
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
|
|
221
|
+
display: none;
|
|
222
|
+
}
|
|
223
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
|
|
224
|
+
justify-content: flex-start;
|
|
225
|
+
padding-inline: 8px 100px;
|
|
226
|
+
}
|
|
227
|
+
.pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
|
|
228
|
+
position: absolute;
|
|
229
|
+
inset-inline-end: 64px;
|
|
230
|
+
inset-block-start: 12px;
|
|
231
|
+
margin: 0;
|
|
232
|
+
padding: 0;
|
|
233
|
+
border: 0;
|
|
234
|
+
height: 40px;
|
|
235
|
+
align-items: center;
|
|
236
|
+
}
|
|
237
|
+
}
|