@leitware/composables 1.6.1 → 1.7.1
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.md +88 -21
- package/dist/presets/brutalist.css +1 -1
- package/dist/presets/editorial-grid.css +1 -1
- package/dist/presets/kumo.css +16 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/rules/composables.md +37 -32
- package/skills/use-composables/references/public-api.md +2 -2
- package/src/_internal/button.tsx +1 -1
- package/src/_internal/clipboard-text.tsx +102 -0
- package/src/_internal/flow.tsx +390 -0
- package/src/_internal/layer-card.tsx +61 -0
- package/src/_internal/table-of-contents.tsx +124 -0
- package/src/_internal/tabs.tsx +34 -14
- package/src/hooks/use-table-of-contents-active-id.ts +63 -0
- package/src/index.ts +50 -0
- package/src/lib/clipboard.ts +57 -0
- package/src/lib/flow.ts +53 -0
- package/src/opinionated/clipboard-text.tsx +135 -0
- package/src/opinionated/flow.tsx +74 -0
- package/src/opinionated/layer-card.tsx +49 -0
- package/src/opinionated/table-of-contents.tsx +121 -0
- package/src/opinionated/tabs.tsx +2 -2
- package/src/styles/presets/brutalist.css +1 -1
- package/src/styles/presets/editorial-grid.css +1 -1
- package/src/styles/presets/kumo.css +16 -2
- package/src/styles/presets-data/brutalist.ts +1 -1
- package/src/styles/presets-data/editorial-grid.ts +1 -1
- package/src/styles/presets-data/kumo.ts +8 -1
- package/src/styles/tokens/components.css +28 -0
|
@@ -173,7 +173,7 @@ export const brutalist: Record<string, string> = {
|
|
|
173
173
|
'--transition-slow': 'var(--motion-duration-slow) var(--motion-ease-linear)',
|
|
174
174
|
'--hover-transform': 'none',
|
|
175
175
|
'--hover-shadow': 'none',
|
|
176
|
-
'--active-scale': '
|
|
176
|
+
'--active-scale': '0.98',
|
|
177
177
|
|
|
178
178
|
// ── Phase 1c: Typography - heavy, structural ──────────────────────────
|
|
179
179
|
'--heading-font-weight': '700',
|
|
@@ -137,7 +137,7 @@ export const editorialGrid: Record<string, string> = {
|
|
|
137
137
|
'--badge-radius': 'var(--radius)',
|
|
138
138
|
'--hover-shadow': 'none',
|
|
139
139
|
'--hover-transform': 'none',
|
|
140
|
-
'--active-scale': '
|
|
140
|
+
'--active-scale': '0.98',
|
|
141
141
|
'--motion-duration-fast': '100ms',
|
|
142
142
|
'--motion-duration-normal': '150ms',
|
|
143
143
|
'--motion-duration-slow': '200ms',
|
|
@@ -88,6 +88,13 @@ const shape: Record<string, string> = {
|
|
|
88
88
|
'--button-brand-font-weight': '600',
|
|
89
89
|
'--button-brand-text-shadow': '0 1px 1px #00000059, 0 0 1px #00000040',
|
|
90
90
|
'--card-radius': 'var(--radius-xl)',
|
|
91
|
+
'--layer-card-radius': 'var(--radius-lg)',
|
|
92
|
+
'--layer-card-shadow': '0 1px 2px #0000000D',
|
|
93
|
+
'--tabs-tab-height': 'calc(var(--spacing) * 8)',
|
|
94
|
+
'--tabs-list-shadow': '0 0 0 1px var(--border-secondary)',
|
|
95
|
+
'--tabs-indicator-shadow': '0 1px 2px #0000000D',
|
|
96
|
+
'--flow-node-shadow': '0 1px 2px #0000000D',
|
|
97
|
+
'--flow-canvas-background-image': 'radial-gradient(var(--border-disabled) 1px, transparent 1px)',
|
|
91
98
|
'--input-radius': 'var(--radius-lg)',
|
|
92
99
|
'--input-height': 'calc(var(--spacing) * 9)',
|
|
93
100
|
'--badge-radius': 'var(--radius-md)',
|
|
@@ -111,7 +118,7 @@ const shape: Record<string, string> = {
|
|
|
111
118
|
'--hover-ring-color': 'var(--border-secondary)',
|
|
112
119
|
'--hover-transform': 'none',
|
|
113
120
|
'--hover-shadow': 'none',
|
|
114
|
-
'--active-scale': '
|
|
121
|
+
'--active-scale': '0.98',
|
|
115
122
|
'--heading-font-weight': '600',
|
|
116
123
|
'--hero-font-weight': '600',
|
|
117
124
|
'--section-title-font-weight': '600',
|
|
@@ -103,6 +103,25 @@
|
|
|
103
103
|
--button-brand-5-hover-background-image: none;
|
|
104
104
|
--button-brand-5-shadow: none;
|
|
105
105
|
--button-brand-5-hover-shadow: initial;
|
|
106
|
+
/* Layered content surfaces, flow diagrams, and copy fields. */
|
|
107
|
+
--layer-card-radius: var(--card-radius);
|
|
108
|
+
--layer-card-padding: var(--card-padding);
|
|
109
|
+
--layer-card-shadow: var(--shadow-sm);
|
|
110
|
+
--clipboard-text-radius: var(--input-radius);
|
|
111
|
+
--clipboard-text-height: var(--input-height);
|
|
112
|
+
--clipboard-text-height-sm: calc(var(--spacing) * 6.5);
|
|
113
|
+
--clipboard-text-height-lg: calc(var(--spacing) * 10);
|
|
114
|
+
--flow-border-width: max(1px, var(--border-width-base));
|
|
115
|
+
--flow-gap: calc(var(--spacing) * 10);
|
|
116
|
+
--flow-branch-gap: calc(var(--spacing) * 4);
|
|
117
|
+
--flow-node-radius: var(--radius-md);
|
|
118
|
+
--flow-node-shadow: var(--shadow-sm);
|
|
119
|
+
--flow-connector-color: initial;
|
|
120
|
+
--flow-canvas-radius: var(--radius-lg);
|
|
121
|
+
--flow-canvas-padding-x: calc(var(--spacing) * 4);
|
|
122
|
+
--flow-canvas-padding-y: calc(var(--spacing) * 12);
|
|
123
|
+
--flow-canvas-background-image: none;
|
|
124
|
+
--flow-canvas-background-size: calc(var(--spacing) * 4);
|
|
106
125
|
--card-radius: var(--radius-lg);
|
|
107
126
|
--card-padding: calc(var(--spacing) * 4);
|
|
108
127
|
--input-radius: var(--radius-md);
|
|
@@ -110,6 +129,15 @@
|
|
|
110
129
|
--badge-radius: var(--radius-4xl);
|
|
111
130
|
--grid-overlay-color: color-mix(in srgb, var(--text-default) 6%, transparent);
|
|
112
131
|
|
|
132
|
+
/* Segmented tabs and the animated selection indicator. */
|
|
133
|
+
--tabs-list-radius: var(--radius-lg);
|
|
134
|
+
--tabs-tab-radius: var(--radius-md);
|
|
135
|
+
--tabs-list-padding: calc(var(--spacing) * 0.5);
|
|
136
|
+
--tabs-tab-height: calc(var(--spacing) * 8);
|
|
137
|
+
--tabs-list-shadow: none;
|
|
138
|
+
--tabs-indicator-border-width: var(--border-width-base);
|
|
139
|
+
--tabs-indicator-shadow: var(--shadow-sm);
|
|
140
|
+
|
|
113
141
|
/* ── Motion ────────────────────────────────────────────────────────── */
|
|
114
142
|
--motion-duration-fast: 100ms;
|
|
115
143
|
--motion-duration-normal: 200ms;
|