cirrojs 0.0.13 → 0.0.15

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/CHANGELOG.md CHANGED
@@ -13,6 +13,29 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
+ ## [0.0.15] - 2026-06-29
17
+
18
+ ### Added
19
+ - New properties on the `Properties` type: `accent_color`, `background_position_x`, `background_position_y`, `box_reflect`, `hyphenate_character`, `initial_letter`, `marker`, `marker_end`, `marker_mid`, `marker_start`, `offset_position`, and `zoom`.
20
+ - Exported helper types `Kw<T>` and `Multi<T>` used by the `Properties` value types.
21
+
22
+ ### Changed
23
+ - `Properties` value types now preserve keyword autocompletion. Properties whose values mix keywords with open values (lengths, colors, etc.) keep their keyword suggestions instead of collapsing to `string`, and closed enumerations no longer accept arbitrary strings.
24
+ - `PropertyName` now resolves to the union of valid property names (previously it resolved to the array's index keys).
25
+
26
+ ### Removed
27
+ - Nested-array value types (`string[][]`) from `text_shadow`, `transform_origin`, `transition_delay`, `transition_duration`, `transition_property`, `transition_timing_function`, and `mask_position`. Property values accept a string or an array of strings only.
28
+ - At-rule names (`@media`, `@layer`, `@keyframes`, etc.) from the property allowlist; at-rules are specified through the `atrules` option, not as property names.
29
+
30
+ ### Fixed
31
+ - Properties declared on the `Properties` type but missing from the runtime property allowlist (including `appearance`, `contain`, `touch_action`, `will_change`, `transform_box`, the `mask_border_*` longhands, `font_optical_sizing`, and `text_rendering`) were rejected during CSS generation despite passing type checks. They are now registered.
32
+ - Corrected the `hypenate_character` property name to `hyphenate_character`.
33
+
34
+ ## [0.0.14] - 2026-06-28
35
+
36
+ ### Added
37
+ - A new optional `centerGutters` field on `LayoutDefaults`. When `center` is called without a `gutters` option, it now applies `centerGutters` as the default inline padding.
38
+
16
39
  ## [0.0.13] - 2026-06-28
17
40
 
18
41
  ### Changed
@@ -104,7 +127,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
104
127
  ## 0.0.1 - 2026-06-15
105
128
  - initial release
106
129
 
107
- [Unreleased]: https://github.com/osawa-naotaka/cirro/compare/v0.0.13...HEAD
130
+ [Unreleased]: https://github.com/osawa-naotaka/cirro/compare/v0.0.15...HEAD
131
+ [0.0.15]: https://github.com/osawa-naotaka/cirro/compare/v0.0.14...v0.0.15
132
+ [0.0.14]: https://github.com/osawa-naotaka/cirro/compare/v0.0.13...v0.0.14
108
133
  [0.0.13]: https://github.com/osawa-naotaka/cirro/compare/v0.0.12...v0.0.13
109
134
  [0.0.12]: https://github.com/osawa-naotaka/cirro/compare/v0.0.11...v0.0.12
110
135
  [0.0.11]: https://github.com/osawa-naotaka/cirro/compare/v0.0.10...v0.0.11
package/dist/cli.js CHANGED
@@ -1 +1 @@
1
- import{r as e}from"./css-CPDjsrSK.js";import{Fragment as t,createElement as n}from"react";import{renderToStaticMarkup as r}from"react-dom/server";import{dirname as i,extname as a,join as o,resolve as s}from"node:path";import{mkdir as c,readFile as l,writeFile as u}from"node:fs/promises";import{build as d,createServer as f,createServerModuleRunner as p}from"vite";import{createServer as m}from"node:http";function h(e){let t=[];for(let n of e)switch(n.type){case`static`:t.push({type:`html`,path:n.path,cssPath:o(n.path,`index.css`),render:()=>n.component({params:{}})}),t.push({type:`css`,path:o(n.path,`index.css`),render:()=>n.component({params:{}})});break;case`dynamic`:for(let e of n.getStaticPaths())t.push({type:`html`,path:n.path(e),cssPath:n.cssPath,render:()=>n.component({params:e})});t.push({type:`css`,path:n.cssPath,render:()=>n.component({params:n.getStaticPaths()[0]})});break;case`file`:t.push({type:`file`,path:n.path,ext:a(n.path),render:()=>n.component({params:{}})});break}return t}function g(e){return e===`/`?`index.html`:`${e.replace(/^\/+|\/+$/g,``)}/index.html`}function _(e){return e===`/`?`index.css`:`${e.replace(/^\/+|\/+$/g,``)}`}function v(e,r,i){return n(t,null,e,n(`script`,{async:!0,type:`module`,src:r,key:`cirro-client`}),n(`link`,{rel:`stylesheet`,href:i,precedence:`default`,key:`cirro-css`}))}function y(e){for(let t of e.plugins){let e=t.api;if(t.name===`cirro`&&e?.options)return e.options}throw Error(`cirro: plugin not found in Vite config (did you add cirro() to plugins?)`)}async function b(){await d();let t=await f({server:{middlewareMode:!0,hmr:!1},appType:`custom`}),n=p(t.environments.ssr);try{let a=t.config,d=y(a),f=a.root,p=s(f,a.build.outDir),m=s(f,d.routes),b=JSON.parse(await l(o(p,`.vite/manifest.json`),`utf-8`))[`virtual:cirro/client`];if(!b)throw Error(`cirro: manifest entry "virtual:cirro/client" not found`);let x=`/${b.file}`,{routes:S,runWithRegistry:C}=await n.import(m);for(let t of h(S))switch(t.type){case`css`:{let{registry:n}=C(()=>r(t.render())),a=e(n),s=o(p,_(t.path));await c(i(s),{recursive:!0}),await u(s,a),console.log(`wrote ${s} (url: ${t.path})`);break}case`html`:{let{result:e}=C(()=>`<!DOCTYPE html>${r(v(t.render(),x,t.cssPath))}`),n=o(p,g(t.path));await c(i(n),{recursive:!0}),await u(n,e),console.log(`wrote ${n} (url: ${t.path})`);break}case`file`:{let e=t.render(),n=o(p,t.path);await c(i(n),{recursive:!0}),await u(n,e),console.log(`wrote ${n} (url: ${t.path})`);break}}}finally{await t.close()}}const x=[[`.aac`,`audio/aac`],[`.abw`,`application/x-abiword`],[`.arc`,`application/x-freearc`],[`.avi`,`video/x-msvideo`],[`.azw`,`application/vnd.amazon.ebook`],[`.bin`,`application/octet-stream`],[`.bmp`,`image/bmp`],[`.bz`,`application/x-bzip`],[`.bz2`,`application/x-bzip2`],[`.csh`,`application/x-csh`],[`.css`,`text/css`],[`.csv`,`text/csv`],[`.doc`,`application/msword`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.eot`,`application/vnd.ms-fontobject`],[`.epub`,`application/epub+zip`],[`.gz`,`application/gzip`],[`.gif`,`image/gif`],[`.htm`,`text/html`],[`.html`,`text/html`],[`.ico`,`image/vnd.microsoft.icon`],[`.ics`,`text/calendar`],[`.jar`,`application/java-archive`],[`.jpeg`,`image/jpeg`],[`.jpg`,`image/jpeg`],[`.js`,`text/javascript`],[`.json`,`application/json`],[`.jsonld`,`application/ld+json`],[`.mid`,`audio/midi`],[`.midi`,`audio/x-midi`],[`.mjs`,`text/javascript`],[`.mp3`,`audio/mpeg`],[`.mpeg`,`video/mpeg`],[`.mpkg`,`application/vnd.apple.installer+xml`],[`.odp`,`application/vnd.oasis.opendocument.presentation`],[`.ods`,`application/vnd.oasis.opendocument.spreadsheet`],[`.odt`,`application/vnd.oasis.opendocument.text`],[`.oga`,`audio/ogg`],[`.ogv`,`video/ogg`],[`.ogx`,`application/ogg`],[`.opus`,`audio/opus`],[`.otf`,`font/otf`],[`.png`,`image/png`],[`.pdf`,`application/pdf`],[`.php`,`application/x-httpd-php`],[`.ppt`,`application/vnd.ms-powerpoint`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.rar`,`application/vnd.rar`],[`.rtf`,`application/rtf`],[`.sh`,`application/x-sh`],[`.svg`,`image/svg+xml`],[`.swf`,`application/x-shockwave-flash`],[`.tar`,`application/x-tar`],[`.tif`,`image/tiff`],[`.tiff`,`image/tiff`],[`.ts`,`video/mp2t`],[`.ttf`,`font/ttf`],[`.txt`,`text/plain`],[`.vsd`,`application/vnd.visio`],[`.wav`,`audio/wav`],[`.weba`,`audio/webm`],[`.webm`,`video/webm`],[`.webp`,`image/webp`],[`.woff`,`font/woff`],[`.woff2`,`font/woff2`],[`.xhtml`,`application/xhtml+xml`],[`.xls`,`application/vnd.ms-excel`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xml`,`application/xml`],[`.xul`,`application/vnd.mozilla.xul+xml`],[`.zip`,`application/zip`],[`.3gp`,`video/3gpp`],[`.3g2`,`video/3gpp2`],[`.7z`,`application/x-7z-compressed`]];function S(e){return x.find(t=>t[0]===e)?.[1]||`text/plain`}function C(e,t){let n=[t,t.replaceAll(`\\`,`/`)];for(let t of Object.values(e.environments)){let e=t.moduleGraph;if(!e)continue;let r=new Set,i=t=>{if(!r.has(t)){r.add(t),e.invalidateModule(t);for(let e of t.importers)i(e)}};for(let t of n){let n=e.getModulesByFile(t);if(n)for(let e of n)i(e)}}}async function w(t=5173){let n=await f({server:{middlewareMode:!0},appType:`custom`}),a=p(n.environments.ssr),o=y(n.config),c=n.config.root,l=s(c,o.routes),u=i(s(c,o.islands)).replaceAll(`\\`,`/`),d=m((t,i)=>{function o(e,t){i.statusCode=200,i.setHeader(`Content-Type`,S(e)),i.end(t)}function s(e){i.statusCode=404,i.setHeader(`Content-Type`,S(e)),e===`.html`?i.end(`<!DOCTYPE html><meta charset="utf-8"><h1>404 Not Found</h1>`):i.end()}n.middlewares(t,i,async()=>{let c=t.url??`/`,u=new URL(c,`http://localhost`).pathname.replace(/\/+$/,``)||`/`;try{let{routes:t,runWithRegistry:i}=await a.import(l),d=h(t).find(e=>e.path===u);if(d===void 0){s(`.html`);return}switch(d.type){case`html`:{let{result:e}=i(()=>`<!DOCTYPE html>${r(v(d.render(),`/@id/__x00__virtual:cirro/client`,d.cssPath))}`);o(`.html`,await n.transformIndexHtml(c,e));break}case`css`:{let{registry:t}=i(()=>r(d.render()));o(`.css`,e(t));break}case`file`:{let e=d.render();o(d.ext,e);break}}return}catch(e){i.statusCode=500,e instanceof Error?i.end(e.stack):i.end(String(e))}})}),g=`${s(c,o.watchDir??`./src`).replaceAll(`\\`,`/`).replace(/\/+$/,``)}/`;n.watcher.on(`change`,e=>{let t=e.replaceAll(`\\`,`/`);t.startsWith(u)||t.startsWith(g)&&(C(n,e),n.ws.send({type:`full-reload`}))}),d.listen(t,()=>{console.log(`cirro dev: http://localhost:${t}`)})}async function T(e){let t=e[0];t===`dev`?await w():t===`build`?await b():(console.error(`usage: cirro <dev|build>`),process.exit(1))}export{T as main};
1
+ import{r as e}from"./css-D28QH0EJ.js";import{Fragment as t,createElement as n}from"react";import{renderToStaticMarkup as r}from"react-dom/server";import{dirname as i,extname as a,join as o,resolve as s}from"node:path";import{mkdir as c,readFile as l,writeFile as u}from"node:fs/promises";import{build as d,createServer as f,createServerModuleRunner as p}from"vite";import{createServer as m}from"node:http";function h(e){let t=[];for(let n of e)switch(n.type){case`static`:t.push({type:`html`,path:n.path,cssPath:o(n.path,`index.css`),render:()=>n.component({params:{}})}),t.push({type:`css`,path:o(n.path,`index.css`),render:()=>n.component({params:{}})});break;case`dynamic`:for(let e of n.getStaticPaths())t.push({type:`html`,path:n.path(e),cssPath:n.cssPath,render:()=>n.component({params:e})});t.push({type:`css`,path:n.cssPath,render:()=>n.component({params:n.getStaticPaths()[0]})});break;case`file`:t.push({type:`file`,path:n.path,ext:a(n.path),render:()=>n.component({params:{}})});break}return t}function g(e){return e===`/`?`index.html`:`${e.replace(/^\/+|\/+$/g,``)}/index.html`}function _(e){return e===`/`?`index.css`:`${e.replace(/^\/+|\/+$/g,``)}`}function v(e,r,i){return n(t,null,e,n(`script`,{async:!0,type:`module`,src:r,key:`cirro-client`}),n(`link`,{rel:`stylesheet`,href:i,precedence:`default`,key:`cirro-css`}))}function y(e){for(let t of e.plugins){let e=t.api;if(t.name===`cirro`&&e?.options)return e.options}throw Error(`cirro: plugin not found in Vite config (did you add cirro() to plugins?)`)}async function b(){await d();let t=await f({server:{middlewareMode:!0,hmr:!1},appType:`custom`}),n=p(t.environments.ssr);try{let a=t.config,d=y(a),f=a.root,p=s(f,a.build.outDir),m=s(f,d.routes),b=JSON.parse(await l(o(p,`.vite/manifest.json`),`utf-8`))[`virtual:cirro/client`];if(!b)throw Error(`cirro: manifest entry "virtual:cirro/client" not found`);let x=`/${b.file}`,{routes:S,runWithRegistry:C}=await n.import(m);for(let t of h(S))switch(t.type){case`css`:{let{registry:n}=C(()=>r(t.render())),a=e(n),s=o(p,_(t.path));await c(i(s),{recursive:!0}),await u(s,a),console.log(`wrote ${s} (url: ${t.path})`);break}case`html`:{let{result:e}=C(()=>`<!DOCTYPE html>${r(v(t.render(),x,t.cssPath))}`),n=o(p,g(t.path));await c(i(n),{recursive:!0}),await u(n,e),console.log(`wrote ${n} (url: ${t.path})`);break}case`file`:{let e=t.render(),n=o(p,t.path);await c(i(n),{recursive:!0}),await u(n,e),console.log(`wrote ${n} (url: ${t.path})`);break}}}finally{await t.close()}}const x=[[`.aac`,`audio/aac`],[`.abw`,`application/x-abiword`],[`.arc`,`application/x-freearc`],[`.avi`,`video/x-msvideo`],[`.azw`,`application/vnd.amazon.ebook`],[`.bin`,`application/octet-stream`],[`.bmp`,`image/bmp`],[`.bz`,`application/x-bzip`],[`.bz2`,`application/x-bzip2`],[`.csh`,`application/x-csh`],[`.css`,`text/css`],[`.csv`,`text/csv`],[`.doc`,`application/msword`],[`.docx`,`application/vnd.openxmlformats-officedocument.wordprocessingml.document`],[`.eot`,`application/vnd.ms-fontobject`],[`.epub`,`application/epub+zip`],[`.gz`,`application/gzip`],[`.gif`,`image/gif`],[`.htm`,`text/html`],[`.html`,`text/html`],[`.ico`,`image/vnd.microsoft.icon`],[`.ics`,`text/calendar`],[`.jar`,`application/java-archive`],[`.jpeg`,`image/jpeg`],[`.jpg`,`image/jpeg`],[`.js`,`text/javascript`],[`.json`,`application/json`],[`.jsonld`,`application/ld+json`],[`.mid`,`audio/midi`],[`.midi`,`audio/x-midi`],[`.mjs`,`text/javascript`],[`.mp3`,`audio/mpeg`],[`.mpeg`,`video/mpeg`],[`.mpkg`,`application/vnd.apple.installer+xml`],[`.odp`,`application/vnd.oasis.opendocument.presentation`],[`.ods`,`application/vnd.oasis.opendocument.spreadsheet`],[`.odt`,`application/vnd.oasis.opendocument.text`],[`.oga`,`audio/ogg`],[`.ogv`,`video/ogg`],[`.ogx`,`application/ogg`],[`.opus`,`audio/opus`],[`.otf`,`font/otf`],[`.png`,`image/png`],[`.pdf`,`application/pdf`],[`.php`,`application/x-httpd-php`],[`.ppt`,`application/vnd.ms-powerpoint`],[`.pptx`,`application/vnd.openxmlformats-officedocument.presentationml.presentation`],[`.rar`,`application/vnd.rar`],[`.rtf`,`application/rtf`],[`.sh`,`application/x-sh`],[`.svg`,`image/svg+xml`],[`.swf`,`application/x-shockwave-flash`],[`.tar`,`application/x-tar`],[`.tif`,`image/tiff`],[`.tiff`,`image/tiff`],[`.ts`,`video/mp2t`],[`.ttf`,`font/ttf`],[`.txt`,`text/plain`],[`.vsd`,`application/vnd.visio`],[`.wav`,`audio/wav`],[`.weba`,`audio/webm`],[`.webm`,`video/webm`],[`.webp`,`image/webp`],[`.woff`,`font/woff`],[`.woff2`,`font/woff2`],[`.xhtml`,`application/xhtml+xml`],[`.xls`,`application/vnd.ms-excel`],[`.xlsx`,`application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`],[`.xml`,`application/xml`],[`.xul`,`application/vnd.mozilla.xul+xml`],[`.zip`,`application/zip`],[`.3gp`,`video/3gpp`],[`.3g2`,`video/3gpp2`],[`.7z`,`application/x-7z-compressed`]];function S(e){return x.find(t=>t[0]===e)?.[1]||`text/plain`}function C(e,t){let n=[t,t.replaceAll(`\\`,`/`)];for(let t of Object.values(e.environments)){let e=t.moduleGraph;if(!e)continue;let r=new Set,i=t=>{if(!r.has(t)){r.add(t),e.invalidateModule(t);for(let e of t.importers)i(e)}};for(let t of n){let n=e.getModulesByFile(t);if(n)for(let e of n)i(e)}}}async function w(t=5173){let n=await f({server:{middlewareMode:!0},appType:`custom`}),a=p(n.environments.ssr),o=y(n.config),c=n.config.root,l=s(c,o.routes),u=i(s(c,o.islands)).replaceAll(`\\`,`/`),d=m((t,i)=>{function o(e,t){i.statusCode=200,i.setHeader(`Content-Type`,S(e)),i.end(t)}function s(e){i.statusCode=404,i.setHeader(`Content-Type`,S(e)),e===`.html`?i.end(`<!DOCTYPE html><meta charset="utf-8"><h1>404 Not Found</h1>`):i.end()}n.middlewares(t,i,async()=>{let c=t.url??`/`,u=new URL(c,`http://localhost`).pathname.replace(/\/+$/,``)||`/`;try{let{routes:t,runWithRegistry:i}=await a.import(l),d=h(t).find(e=>e.path===u);if(d===void 0){s(`.html`);return}switch(d.type){case`html`:{let{result:e}=i(()=>`<!DOCTYPE html>${r(v(d.render(),`/@id/__x00__virtual:cirro/client`,d.cssPath))}`);o(`.html`,await n.transformIndexHtml(c,e));break}case`css`:{let{registry:t}=i(()=>r(d.render()));o(`.css`,e(t));break}case`file`:{let e=d.render();o(d.ext,e);break}}return}catch(e){i.statusCode=500,e instanceof Error?i.end(e.stack):i.end(String(e))}})}),g=`${s(c,o.watchDir??`./src`).replaceAll(`\\`,`/`).replace(/\/+$/,``)}/`;n.watcher.on(`change`,e=>{let t=e.replaceAll(`\\`,`/`);t.startsWith(u)||t.startsWith(g)&&(C(n,e),n.ws.send({type:`full-reload`}))}),d.listen(t,()=>{console.log(`cirro dev: http://localhost:${t}`)})}async function T(e){let t=e[0];t===`dev`?await w():t===`build`?await b():(console.error(`usage: cirro <dev|build>`),process.exit(1))}export{T as main};
@@ -1,4 +1,4 @@
1
- import { t as Properties } from "./properties-FKQ-gJeC.js";
1
+ import { t as Properties } from "./properties-FD59BzEy.js";
2
2
 
3
3
  //#region src/css.d.ts
4
4
  type CssOpt = {
@@ -0,0 +1,4 @@
1
+ import{registerCss as e}from"cirrojs/registry";const t=`accent_color.align_content.align_items.align_self.alignment_baseline.all.anchor_name.animation.animation_composition.animation_delay.animation_direction.animation_duration.animation_fill_mode.animation_iteration_count.animation_name.animation_play_state.animation_range.animation_range_end.animation_range_start.animation_timeline.animation_timing_function.appearance.aspect_ratio.backdrop_filter.backface_visibility.background.background_attachment.background_blend_mode.background_clip.background_color.background_image.background_origin.background_position.background_position_x.background_position_y.background_repeat.background_size.block_size.border.border_block.border_block_color.border_block_end.border_block_end_color.border_block_end_style.border_block_end_width.border_block_start.border_block_start_color.border_block_start_style.border_block_start_width.border_block_style.border_block_width.border_bottom.border_bottom_color.border_bottom_left_radius.border_bottom_right_radius.border_bottom_style.border_bottom_width.border_collapse.border_color.border_end_end_radius.border_end_start_radius.border_image.border_image_outset.border_image_repeat.border_image_slice.border_image_source.border_image_width.border_inline.border_inline_color.border_inline_end.border_inline_end_color.border_inline_end_style.border_inline_end_width.border_inline_start.border_inline_start_color.border_inline_start_style.border_inline_start_width.border_inline_style.border_inline_width.border_left.border_left_color.border_left_style.border_left_width.border_radius.border_right.border_right_color.border_right_style.border_right_width.border_spacing.border_start_end_radius.border_start_start_radius.border_style.border_top.border_top_color.border_top_left_radius.border_top_right_radius.border_top_style.border_top_width.border_width.bottom.box_decoration_break.box_reflect.box_shadow.box_sizing.break_after.break_before.break_inside.caption_side.caret_color.clear.clip.clip_path.color.color_scheme.column_count.column_fill.column_gap.column_rule.column_rule_color.column_rule_style.column_rule_width.column_span.column_width.columns.contain.contain_intrinsic_block_size.contain_intrinsic_height.contain_intrinsic_inline_size.contain_intrinsic_size.contain_intrinsic_width.content.content_visibility.counter_increment.counter_reset.counter_set.cursor.direction.display.empty_cells.filter.flex.flex_basis.flex_direction.flex_flow.flex_grow.flex_shrink.flex_wrap.float.font.font_family.font_feature_settings.font_kerning.font_language_override.font_optical_sizing.font_size.font_size_adjust.font_stretch.font_style.font_synthesis.font_variant.font_variant_alternates.font_variant_caps.font_variant_east_asian.font_variant_ligatures.font_variant_numeric.font_variant_position.font_variation_settings.font_weight.gap.grid.grid_area.grid_auto_columns.grid_auto_flow.grid_auto_rows.grid_column.grid_column_end.grid_column_gap.grid_column_start.grid_gap.grid_row.grid_row_end.grid_row_gap.grid_row_start.grid_template.grid_template_areas.grid_template_columns.grid_template_rows.hanging_punctuation.height.hyphenate_character.hyphens.image_orientation.image_rendering.image_resolution.initial_letter.inline_size.inset.inset_block.inset_block_end.inset_block_start.inset_inline.inset_inline_end.inset_inline_start.isolation.justify_content.justify_items.justify_self.left.letter_spacing.line_break.line_height.list_style.list_style_image.list_style_position.list_style_type.margin.margin_block.margin_block_end.margin_block_start.margin_bottom.margin_inline.margin_inline_end.margin_inline_start.margin_left.margin_right.margin_top.marker.marker_end.marker_mid.marker_start.mask.mask_border.mask_border_mode.mask_border_outset.mask_border_repeat.mask_border_slice.mask_border_source.mask_border_width.mask_clip.mask_composite.mask_image.mask_mode.mask_origin.mask_position.mask_repeat.mask_size.mask_type.max_block_size.max_height.max_inline_size.max_width.min_block_size.min_height.min_inline_size.min_width.mix_blend_mode.object_fit.object_position.offset.offset_anchor.offset_distance.offset_path.offset_position.offset_rotate.opacity.order.orphans.outline.outline_color.outline_offset.outline_style.outline_width.overflow.overflow_anchor.overflow_block.overflow_clip_margin.overflow_inline.overflow_wrap.overflow_x.overflow_y.overscroll_behavior.overscroll_behavior_block.overscroll_behavior_inline.overscroll_behavior_x.overscroll_behavior_y.padding.padding_block.padding_block_end.padding_block_start.padding_bottom.padding_inline.padding_inline_end.padding_inline_start.padding_left.padding_right.padding_top.page_break_after.page_break_before.page_break_inside.paint_order.perspective.perspective_origin.place_content.place_items.place_self.pointer_events.position.quotes.resize.right.rotate.row_gap.scale.scroll_behavior.scroll_margin.scroll_margin_block.scroll_margin_block_end.scroll_margin_block_start.scroll_margin_bottom.scroll_margin_inline.scroll_margin_inline_end.scroll_margin_inline_start.scroll_margin_left.scroll_margin_right.scroll_margin_top.scroll_padding.scroll_padding_block.scroll_padding_block_end.scroll_padding_block_start.scroll_padding_bottom.scroll_padding_inline.scroll_padding_inline_end.scroll_padding_inline_start.scroll_padding_left.scroll_padding_right.scroll_padding_top.scroll_snap_align.scroll_snap_stop.scroll_snap_type.scrollbar_color.scrollbar_width.shape_image_threshold.shape_margin.shape_outside.tab_size.table_layout.text_align.text_align_last.text_combine_upright.text_decoration.text_decoration_color.text_decoration_line.text_decoration_skip.text_decoration_skip_ink.text_decoration_style.text_decoration_thickness.text_emphasis.text_emphasis_color.text_emphasis_position.text_emphasis_style.text_indent.text_justify.text_orientation.text_overflow.text_rendering.text_shadow.text_size_adjust.text_transform.text_underline_offset.text_underline_position.top.touch_action.transform.transform_box.transform_origin.transform_style.transition.transition_delay.transition_duration.transition_property.transition_timing_function.translate.unicode_bidi.user_select.vertical_align.visibility.white_space.widows.width.will_change.word_break.word_spacing.word_wrap.writing_mode.z_index.zoom`.split(`.`);function n(e,t){let n=t?.selector??`&`,r=t?.atrules??[],i=l({selector:n,atrules:r,properties:e}),a=`${t?.name??`cirro`}-${i.toString(16)}`;return c([...r,n],e,a),a}function r(e){let t=[];return e.layer&&t.push(`@layer ${e.layer}`),e.atRules&&t.push(...e.atRules),(e,r)=>n(e,{atrules:t,name:r?.name,selector:r?.selector})}function i(e){let t=`@charset "utf-8";
2
+ @layer base, font, low, main, high;
3
+ `;for(let[n,[r,i]]of e)t+=r.reduceRight((e,t)=>{if(t.length>512)throw Error(`At rule or selector "${t}" is too long(max 512 characters)`);return`${t} { ${e} }`},Object.entries(i).map(([e,t])=>s(e,t)).join(` `)),t+=`
4
+ `;return t}const a=new Set(t);function o(e){return e.startsWith(`--`)||a.has(e)}function s(e,t){if(e.length>128)throw Error(`Property name "${e}" is too long(max 128 characters)`);if(!o(e))throw Error(`Property name "${e}" is not a valid CSS property name`);if(Array.isArray(t)){for(let e of t){if(typeof e!=`string`)throw Error(`Property value "${e}" is not a string`);if(e.length>512)throw Error(`Property value "${e}" is too long(max 512 characters)`)}return`${e.replaceAll(`_`,`-`)}: ${t.join(` `)};`}if(typeof t!=`string`)throw Error(`Property value "${t}" is not a string`);if(t.length>512)throw Error(`Property value "${t}" is too long(max 512 characters)`);return`${e.replaceAll(`_`,`-`)}: ${t};`}function c(t,n,r){e(r,t.map(e=>e.replaceAll(`&`,`.${r}`)),n)}function l(...e){return u(e.map(e=>JSON.stringify(e)).join(``))}function u(e){let t=5381;for(let n of[...e])t=(t<<5)+t+n.charCodeAt(0)&4294967295;return t>>>0}export{r as n,i as r,n as t};
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { t as Properties } from "./properties-FKQ-gJeC.js";
2
- import { t as Registry } from "./registry-Bg8dxPHm.js";
3
- import { i as genCssFn, n as CssOpt, r as css } from "./css-J_tbT4BH.js";
1
+ import { t as Properties } from "./properties-FD59BzEy.js";
2
+ import { t as Registry } from "./registry-DxeMToNF.js";
3
+ import { i as genCssFn, n as CssOpt, r as css } from "./css-BcGyv9s_.js";
4
4
  import { runWithRegistry } from "cirrojs/registry";
5
5
  import { ReactElement } from "react";
6
6
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{n as e,t}from"./css-CPDjsrSK.js";import{runWithRegistry as n}from"cirrojs/registry";export{t as css,e as genCssFn,n as runWithRegistry};
1
+ import{n as e,t}from"./css-D28QH0EJ.js";import{runWithRegistry as n}from"cirrojs/registry";export{t as css,e as genCssFn,n as runWithRegistry};
package/dist/layout.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { t as Properties } from "./properties-FKQ-gJeC.js";
2
- import { t as CssFnT } from "./css-J_tbT4BH.js";
1
+ import { t as Properties } from "./properties-FD59BzEy.js";
2
+ import { t as CssFnT } from "./css-BcGyv9s_.js";
3
3
  import { ComponentPropsWithoutRef, ReactNode } from "react";
4
4
 
5
5
  //#region src/layout.d.ts
@@ -14,6 +14,7 @@ interface LayoutDefaults {
14
14
  clusterJustify: Properties["justify_content"];
15
15
  clusterAlign: Properties["align_items"];
16
16
  centerMax: string;
17
+ centerGutters?: string;
17
18
  gridMin: string;
18
19
  switcherThreshold: string;
19
20
  switcherLimit: number;
package/dist/layout.js CHANGED
@@ -1 +1 @@
1
- import{n as e}from"./css-CPDjsrSK.js";import{jsx as t}from"react/jsx-runtime";const n={gap:`1rem`,clusterJustify:`flex-start`,clusterAlign:`center`,centerMax:`60ch`,gridMin:`16rem`,switcherThreshold:`30rem`,switcherLimit:4,sidebarContentMin:`65ch`,sidebarSideWidth:`30ch`,coverMinHeight:`100vh`,frameRatio:`16 / 9`};function r(...e){return e.filter(Boolean).join(` `)}function i(i={}){let a=i.css??e({layer:`low`}),o={...n,...i.defaults};function s(e){return a({display:`flex`,flex_direction:`column`,gap:e?.gap??o.stackGap??o.gap},{name:`stack`})}function c(e){return a({display:`flex`,flex_wrap:e?.wrap??o.clusterWrap??`wrap`,gap:e?.gap??o.clusterGap??o.gap,justify_content:e?.justify??o.clusterJustify,align_items:e?.align??o.clusterAlign},{name:`cluster`})}function l(e){return r(a({box_sizing:`border-box`,margin_inline:`auto`,max_inline_size:e?.max??o.centerMax},{name:`center`}),e?.gutters?a({padding_inline:e.gutters},{name:`center-gutters`}):``,e?.intrinsic?a({display:`flex`,flex_direction:`column`,align_items:`center`},{name:`center-intrinsic`}):``,e?.andText?a({text_align:`center`},{name:`center-andText`}):``)}function u(e){let t=e?.min??o.gridMin;return a({display:`grid`,gap:e?.gap??o.gridGap??o.gap,grid_template_columns:`repeat(auto-fit, minmax(min(${t}, 100%), 1fr))`},{name:`grid`})}function d(e){let t=e?.threshold??o.switcherThreshold,n=e?.limit??o.switcherLimit;return r(a({display:`flex`,flex_wrap:`wrap`,gap:e?.gap??o.switcherGap??o.gap},{name:`switcher`}),a({flex_grow:`1`,flex_basis:`calc((${t} - 100%) * 999)`},{selector:`& > *`,name:`switcher-item`}),a({flex_basis:`100%`},{selector:`& > :nth-last-child(n+${n+1})`,name:`switcher-item-last`}),a({flex_basis:`100%`},{selector:`& > :nth-last-child(n+${n+1}) ~ *`,name:`switcher-item-last-child`}))}function f(e){return{root:a({display:`flex`,flex_wrap:`wrap`,gap:e?.gap??o.sidebarGap??o.gap},{name:`sidebar`}),side:a({flex_grow:`1`,flex_basis:e?.sideWidth??o.sidebarSideWidth??`auto`},{name:`sidebar-side`}),content:a({flex_grow:`999`,flex_basis:`0`,min_inline_size:e?.contentMin??o.sidebarContentMin},{name:`sidebar-content`})}}function p(e){let t=e?.gap??o.gap,n=a({margin_block:`auto`},{name:`cover-centered`});return{root:r(a({display:`flex`,flex_direction:`column`,min_block_size:e?.minHeight??o.coverMinHeight,padding:e?.padding??t},{name:`cover`}),a({margin_block:t},{selector:`& > :not(.${n})`,name:`cover-gap`}),a({margin_block_start:`0`},{selector:`& > :first-child:not(.${n})`,name:`cover-gap-first`}),a({margin_block_end:`0`},{selector:`& > :last-child:not(.${n})`,name:`cover-gap-last`})),centered:n}}function m(e){return r(a({aspect_ratio:e?.ratio??o.frameRatio,overflow:`hidden`,display:`flex`,justify_content:`center`,align_items:`center`},{name:`frame`}),a({inline_size:`100%`,block_size:`100%`,object_fit:`cover`},{selector:`& > img, & > video`,name:`frame-img`}))}function h(e){return r(a({display:`flex`,block_size:e?.height??`auto`,overflow_x:`auto`,overflow_y:`hidden`,gap:e?.gap??o.gap},{name:`reel`}),a({flex:`0 0 ${e?.itemWidth??`auto`}`},{selector:`& > *`,name:`reel-child`}),a({block_size:`100%`,flex_basis:`auto`,inline_size:`auto`},{selector:`& > img`,name:`reel-img`}))}function g(e){let t=e?.margin??`0px`;return r(a({position:e?.fixed?`fixed`:`absolute`,inset_block_start:`50%`,inset_inline_start:`50%`,transform:`translate(-50%, -50%)`},{name:`imposter`}),e?.contain?a({overflow:`auto`,max_inline_size:`calc(100% - (${t} * 2))`,max_block_size:`calc(100% - (${t} * 2))`},{name:`imposter-contain`}):``)}function _(e){return r(a({box_sizing:`border-box`,padding:e?.padding??o.boxPadding??o.gap},{name:`box`}),e?.border?a({border:e.border},{name:`box-border`}):``)}function v({gap:e,className:n,children:i,...a}={}){return t(`div`,{className:r(s({gap:e}),n),...a,children:i})}function y({gap:e,wrap:n,justify:i,align:a,className:o,children:s,...l}={}){return t(`div`,{className:r(c({gap:e,wrap:n,justify:i,align:a}),o),...l,children:s})}function b({max:e,gutters:n,intrinsic:i,andText:a,className:o,children:s,...c}={}){return t(`div`,{className:r(l({max:e,gutters:n,intrinsic:i,andText:a}),o),...c,children:s})}function x({gap:e,min:n,className:i,children:a,...o}={}){return t(`div`,{className:r(u({gap:e,min:n}),i),...o,children:a})}function S({threshold:e,gap:n,limit:i,className:a,children:o,...s}={}){return t(`div`,{className:r(d({threshold:e,gap:n,limit:i}),a),...s,children:o})}function C({ratio:e,className:n,children:i,...a}={}){return t(`div`,{className:r(m({ratio:e}),n),...a,children:i})}function w({itemWidth:e,height:n,gap:i,className:a,children:o,...s}={}){return t(`div`,{className:r(h({itemWidth:e,height:n,gap:i}),a),...s,children:o})}function T({fixed:e,contain:n,margin:i,className:a,children:o,...s}={}){return t(`div`,{className:r(g({fixed:e,contain:n,margin:i}),a),...s,children:o})}function E({padding:e,border:n,className:i,children:a,...o}={}){return t(`div`,{className:r(_({padding:e,border:n}),i),...o,children:a})}return{stack:s,cluster:c,center:l,grid:u,switcher:d,sidebar:f,cover:p,frame:m,reel:h,imposter:g,box:_,Stack:v,Cluster:y,Center:b,Grid:x,Switcher:S,Frame:C,Reel:w,Imposter:T,Box:E}}export{i as createLayout,r as cx};
1
+ import{n as e}from"./css-D28QH0EJ.js";import{jsx as t}from"react/jsx-runtime";const n={gap:`1rem`,clusterJustify:`flex-start`,clusterAlign:`center`,centerMax:`60ch`,gridMin:`16rem`,switcherThreshold:`30rem`,switcherLimit:4,sidebarContentMin:`65ch`,sidebarSideWidth:`30ch`,coverMinHeight:`100vh`,frameRatio:`16 / 9`};function r(...e){return e.filter(Boolean).join(` `)}function i(i={}){let a=i.css??e({layer:`low`}),o={...n,...i.defaults};function s(e){return a({display:`flex`,flex_direction:`column`,gap:e?.gap??o.stackGap??o.gap},{name:`stack`})}function c(e){return a({display:`flex`,flex_wrap:e?.wrap??o.clusterWrap??`wrap`,gap:e?.gap??o.clusterGap??o.gap,justify_content:e?.justify??o.clusterJustify,align_items:e?.align??o.clusterAlign},{name:`cluster`})}function l(e){return r(a({box_sizing:`border-box`,margin_inline:`auto`,max_inline_size:e?.max??o.centerMax},{name:`center`}),e?.gutters?a({padding_inline:e.gutters},{name:`center-gutters`}):o.centerGutters?a({padding_inline:o.centerGutters},{name:`center-gutters`}):``,e?.intrinsic?a({display:`flex`,flex_direction:`column`,align_items:`center`},{name:`center-intrinsic`}):``,e?.andText?a({text_align:`center`},{name:`center-andText`}):``)}function u(e){let t=e?.min??o.gridMin;return a({display:`grid`,gap:e?.gap??o.gridGap??o.gap,grid_template_columns:`repeat(auto-fit, minmax(min(${t}, 100%), 1fr))`},{name:`grid`})}function d(e){let t=e?.threshold??o.switcherThreshold,n=e?.limit??o.switcherLimit;return r(a({display:`flex`,flex_wrap:`wrap`,gap:e?.gap??o.switcherGap??o.gap},{name:`switcher`}),a({flex_grow:`1`,flex_basis:`calc((${t} - 100%) * 999)`},{selector:`& > *`,name:`switcher-item`}),a({flex_basis:`100%`},{selector:`& > :nth-last-child(n+${n+1})`,name:`switcher-item-last`}),a({flex_basis:`100%`},{selector:`& > :nth-last-child(n+${n+1}) ~ *`,name:`switcher-item-last-child`}))}function f(e){return{root:a({display:`flex`,flex_wrap:`wrap`,gap:e?.gap??o.sidebarGap??o.gap},{name:`sidebar`}),side:a({flex_grow:`1`,flex_basis:e?.sideWidth??o.sidebarSideWidth??`auto`},{name:`sidebar-side`}),content:a({flex_grow:`999`,flex_basis:`0`,min_inline_size:e?.contentMin??o.sidebarContentMin},{name:`sidebar-content`})}}function p(e){let t=e?.gap??o.gap,n=a({margin_block:`auto`},{name:`cover-centered`});return{root:r(a({display:`flex`,flex_direction:`column`,min_block_size:e?.minHeight??o.coverMinHeight,padding:e?.padding??t},{name:`cover`}),a({margin_block:t},{selector:`& > :not(.${n})`,name:`cover-gap`}),a({margin_block_start:`0`},{selector:`& > :first-child:not(.${n})`,name:`cover-gap-first`}),a({margin_block_end:`0`},{selector:`& > :last-child:not(.${n})`,name:`cover-gap-last`})),centered:n}}function m(e){return r(a({aspect_ratio:e?.ratio??o.frameRatio,overflow:`hidden`,display:`flex`,justify_content:`center`,align_items:`center`},{name:`frame`}),a({inline_size:`100%`,block_size:`100%`,object_fit:`cover`},{selector:`& > img, & > video`,name:`frame-img`}))}function h(e){return r(a({display:`flex`,block_size:e?.height??`auto`,overflow_x:`auto`,overflow_y:`hidden`,gap:e?.gap??o.gap},{name:`reel`}),a({flex:`0 0 ${e?.itemWidth??`auto`}`},{selector:`& > *`,name:`reel-child`}),a({block_size:`100%`,flex_basis:`auto`,inline_size:`auto`},{selector:`& > img`,name:`reel-img`}))}function g(e){let t=e?.margin??`0px`;return r(a({position:e?.fixed?`fixed`:`absolute`,inset_block_start:`50%`,inset_inline_start:`50%`,transform:`translate(-50%, -50%)`},{name:`imposter`}),e?.contain?a({overflow:`auto`,max_inline_size:`calc(100% - (${t} * 2))`,max_block_size:`calc(100% - (${t} * 2))`},{name:`imposter-contain`}):``)}function _(e){return r(a({box_sizing:`border-box`,padding:e?.padding??o.boxPadding??o.gap},{name:`box`}),e?.border?a({border:e.border},{name:`box-border`}):``)}function v({gap:e,className:n,children:i,...a}={}){return t(`div`,{className:r(s({gap:e}),n),...a,children:i})}function y({gap:e,wrap:n,justify:i,align:a,className:o,children:s,...l}={}){return t(`div`,{className:r(c({gap:e,wrap:n,justify:i,align:a}),o),...l,children:s})}function b({max:e,gutters:n,intrinsic:i,andText:a,className:o,children:s,...c}={}){return t(`div`,{className:r(l({max:e,gutters:n,intrinsic:i,andText:a}),o),...c,children:s})}function x({gap:e,min:n,className:i,children:a,...o}={}){return t(`div`,{className:r(u({gap:e,min:n}),i),...o,children:a})}function S({threshold:e,gap:n,limit:i,className:a,children:o,...s}={}){return t(`div`,{className:r(d({threshold:e,gap:n,limit:i}),a),...s,children:o})}function C({ratio:e,className:n,children:i,...a}={}){return t(`div`,{className:r(m({ratio:e}),n),...a,children:i})}function w({itemWidth:e,height:n,gap:i,className:a,children:o,...s}={}){return t(`div`,{className:r(h({itemWidth:e,height:n,gap:i}),a),...s,children:o})}function T({fixed:e,contain:n,margin:i,className:a,children:o,...s}={}){return t(`div`,{className:r(g({fixed:e,contain:n,margin:i}),a),...s,children:o})}function E({padding:e,border:n,className:i,children:a,...o}={}){return t(`div`,{className:r(_({padding:e,border:n}),i),...o,children:a})}return{stack:s,cluster:c,center:l,grid:u,switcher:d,sidebar:f,cover:p,frame:m,reel:h,imposter:g,box:_,Stack:v,Cluster:y,Center:b,Grid:x,Switcher:S,Frame:C,Reel:w,Imposter:T,Box:E}}export{i as createLayout,r as cx};
@@ -0,0 +1,476 @@
1
+ //#region src/properties.d.ts
2
+ type Kw<T extends string> = T | (string & {});
3
+ type Multi<T extends string> = T | T[];
4
+ type AlignContentBaseKeyword = "normal" | "start" | "center" | "end" | "flex-start" | "flex-end" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
5
+ type AlignContentKeyword = AlignContentBaseKeyword | ["safe", AlignContentBaseKeyword] | ["unsafe", AlignContentBaseKeyword];
6
+ type BackgroundPositionKeyword = "left" | "center" | "right" | "top" | "bottom";
7
+ type BackgroundPositionValue = Kw<BackgroundPositionKeyword>;
8
+ type PInherit = "inherit";
9
+ type PInitial = "initial";
10
+ type PRevert = "revert";
11
+ type PRevertLayer = "revert-layer";
12
+ type PUnset = "unset";
13
+ type PGlobal = PInherit | PInitial | PRevert | PRevertLayer | PUnset;
14
+ type DisplayOutsideValue = "block" | "inline" | "run-in";
15
+ type DisplayInsideValue = "flow" | "flow-root" | "table" | "flex" | "grid" | "ruby";
16
+ type DisplayListItemValue = "list-item";
17
+ type DisplayInternalValue = "table-row-group" | "table-header-group" | "table-footer-group" | "table-row" | "table-cell" | "table-column-group" | "table-column" | "table-caption" | "ruby-base" | "ruby-text" | "ruby-base-container" | "ruby-text-container";
18
+ type DisplayBoxValue = "contents" | "none";
19
+ type DisplayLegacyValue = "inline-block" | "inline-table" | "inline-flex" | "inline-grid";
20
+ type DisplayValue = DisplayOutsideValue | DisplayInsideValue | DisplayListItemValue | DisplayInternalValue | DisplayBoxValue | DisplayLegacyValue;
21
+ type DisplayMultiValue = DisplayValue | DisplayValue[];
22
+ type PositionValue = "static" | "relative" | "absolute" | "fixed" | "sticky";
23
+ type PAnimationGlobal = PGlobal;
24
+ type PTransitionGlobal = PGlobal;
25
+ type PColorGlobal = PGlobal;
26
+ type PBoxModelGlobal = PGlobal;
27
+ type PFontGlobal = PGlobal;
28
+ type PPositionGlobal = PGlobal;
29
+ type FlexDirectionValue = "row" | "row-reverse" | "column" | "column-reverse";
30
+ type FlexWrapValue = "nowrap" | "wrap" | "wrap-reverse";
31
+ type FlexFlowSingleValue = FlexDirectionValue | FlexWrapValue;
32
+ type FlexFlowMultiValue = FlexFlowSingleValue | [FlexFlowSingleValue, FlexFlowSingleValue];
33
+ type JustifyContentValue = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "left" | "right";
34
+ type AlignItemsSelfPosition = "center" | "start" | "end" | "self-start" | "self-end" | "flex-start" | "flex-end";
35
+ type AlignItemsValue = "normal" | "stretch" | "anchor-center" | "baseline" | "first baseline" | "last baseline" | AlignItemsSelfPosition | ["safe", AlignItemsSelfPosition] | ["unsafe", AlignItemsSelfPosition];
36
+ type AlignSelfValue = "auto" | "normal" | "stretch" | "baseline" | "first baseline" | "last baseline" | "anchor-center" | AlignItemsSelfPosition | ["unsafe", AlignItemsSelfPosition] | ["safe", AlignItemsSelfPosition];
37
+ type AlignmentBaselineValue = "baseline" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "text-top";
38
+ type TextAlignValue = "left" | "right" | "center" | "justify" | "start" | "end";
39
+ type OverflowValue = "visible" | "hidden" | "scroll" | "auto" | "clip";
40
+ type OverflowMultiValue = OverflowValue | [OverflowValue, OverflowValue];
41
+ type TextDecorationLineValue = "none" | "underline" | "overline" | "line-through" | "blink";
42
+ type TextDecorationStyleValue = "solid" | "double" | "dotted" | "dashed" | "wavy";
43
+ type TextDecorationValue = Kw<TextDecorationLineValue | TextDecorationStyleValue>;
44
+ type TextDecorationMultiValue = TextDecorationValue | TextDecorationValue[];
45
+ type TextTransformValue = "none" | "capitalize" | "uppercase" | "lowercase" | "full-width" | "full-size-kana";
46
+ type BorderStyleValue = "none" | "hidden" | "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset";
47
+ type BorderWidthValue = Kw<"thin" | "medium" | "thick">;
48
+ type BorderValue = BorderStyleValue | BorderWidthValue;
49
+ type BlendModeValue = "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity";
50
+ type CursorValue = "auto" | "default" | "none" | "context-menu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "vertical-text" | "alias" | "copy" | "move" | "no-drop" | "not-allowed" | "grab" | "grabbing" | "all-scroll" | "col-resize" | "row-resize" | "n-resize" | "e-resize" | "s-resize" | "w-resize" | "ne-resize" | "nw-resize" | "se-resize" | "sw-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "zoom-in" | "zoom-out";
51
+ type AnimationNameValue = string;
52
+ type AnimationDurationValue = string;
53
+ type AnimationTimingFunctionValue = Kw<"ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end">;
54
+ type AnimationDelayValue = string;
55
+ type AnimationIterationCountValue = Kw<"infinite">;
56
+ type AnimationDirectionValue = "normal" | "reverse" | "alternate" | "alternate-reverse";
57
+ type AnimationFillModeValue = "none" | "forwards" | "backwards" | "both";
58
+ type AnimationPlayStateValue = "running" | "paused";
59
+ type AnimationCompositionValue = "replace" | "add" | "accumulate";
60
+ type AnimationTimeline = string;
61
+ type AnimationValueBase = AnimationNameValue | AnimationDurationValue | AnimationTimingFunctionValue | AnimationDelayValue | AnimationIterationCountValue | AnimationDirectionValue | AnimationFillModeValue | AnimationPlayStateValue | AnimationTimeline;
62
+ type AnimationValue = AnimationValueBase | AnimationValueBase[];
63
+ type FontStyleValue = Kw<"normal" | "italic" | "oblique">;
64
+ type FontWeightValue = "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
65
+ type FontSizeValue = Kw<"xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large" | "xxx-large" | "smaller" | "larger">;
66
+ type LineHeightValue = Kw<"normal">;
67
+ type FontValue = string | string[];
68
+ type GridTemplateAreasValue = Kw<"none"> | string[];
69
+ type GridTemplateValue = string | string[];
70
+ type GridTemplateColumnsValue = Kw<"none"> | string[];
71
+ type GridTemplateRowsValue = Kw<"none"> | string[];
72
+ type TransformValue = Kw<"none"> | string[];
73
+ type TransitionPropertyValue = Kw<"none" | "all">;
74
+ type TransitionTimingFunctionValue = Kw<"ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end">;
75
+ type TransitionValue = string | string[];
76
+ type Properties = Partial<{
77
+ accent_color: Kw<"auto"> | PColorGlobal;
78
+ align_content: AlignContentKeyword | PGlobal;
79
+ align_items: AlignItemsValue | PGlobal;
80
+ align_self: AlignSelfValue | PGlobal;
81
+ alignment_baseline: AlignmentBaselineValue | PGlobal;
82
+ all: PGlobal;
83
+ anchor_name: Kw<"none"> | string[] | PGlobal;
84
+ animation: AnimationValue | PAnimationGlobal;
85
+ animation_composition: Multi<AnimationCompositionValue> | PAnimationGlobal;
86
+ animation_delay: string | string[] | PAnimationGlobal;
87
+ animation_direction: Multi<AnimationDirectionValue> | PAnimationGlobal;
88
+ animation_duration: string | string[] | PAnimationGlobal;
89
+ animation_fill_mode: Multi<AnimationFillModeValue> | PAnimationGlobal;
90
+ animation_iteration_count: AnimationIterationCountValue | AnimationIterationCountValue[] | PAnimationGlobal;
91
+ animation_name: string | string[] | PAnimationGlobal;
92
+ animation_play_state: Multi<AnimationPlayStateValue> | PAnimationGlobal;
93
+ animation_range: string | string[] | PAnimationGlobal;
94
+ animation_range_end: string | string[] | PAnimationGlobal;
95
+ animation_range_start: string | string[] | PAnimationGlobal;
96
+ animation_timeline: string | string[] | PAnimationGlobal;
97
+ animation_timing_function: AnimationTimingFunctionValue | AnimationTimingFunctionValue[] | PAnimationGlobal;
98
+ appearance: "none" | "auto" | PGlobal;
99
+ aspect_ratio: Kw<"auto"> | [string, "/", string] | PGlobal;
100
+ backdrop_filter: Kw<"none"> | string[] | PGlobal;
101
+ backface_visibility: "visible" | "hidden" | PGlobal;
102
+ background: string | string[] | PGlobal;
103
+ background_attachment: Multi<"scroll" | "fixed" | "local"> | PGlobal;
104
+ background_blend_mode: Multi<BlendModeValue> | PGlobal;
105
+ background_clip: Multi<"border-box" | "padding-box" | "content-box" | "text"> | PGlobal;
106
+ background_color: string | PColorGlobal;
107
+ background_image: Kw<"none"> | string[] | PGlobal;
108
+ background_origin: Multi<"border-box" | "padding-box" | "content-box"> | PGlobal;
109
+ background_position: BackgroundPositionValue | BackgroundPositionValue[] | PGlobal;
110
+ background_position_x: Kw<"left" | "center" | "right"> | string[] | PGlobal;
111
+ background_position_y: Kw<"top" | "center" | "bottom"> | string[] | PGlobal;
112
+ background_repeat: Multi<"repeat" | "repeat-x" | "repeat-y" | "no-repeat" | "space" | "round"> | PGlobal;
113
+ background_size: Kw<"auto" | "cover" | "contain"> | string[] | PGlobal;
114
+ block_size: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
115
+ border: BorderValue | BorderValue[] | PGlobal;
116
+ border_block: BorderValue | BorderValue[] | PGlobal;
117
+ border_block_color: string | string[] | PGlobal;
118
+ border_block_end: BorderValue | BorderValue[] | PGlobal;
119
+ border_block_end_color: string | PGlobal;
120
+ border_block_end_style: BorderStyleValue | PGlobal;
121
+ border_block_end_width: BorderWidthValue | PGlobal;
122
+ border_block_start: BorderValue | BorderValue[] | PGlobal;
123
+ border_block_start_color: string | PGlobal;
124
+ border_block_start_style: BorderStyleValue | PGlobal;
125
+ border_block_start_width: BorderWidthValue | PGlobal;
126
+ border_block_style: BorderStyleValue | PGlobal;
127
+ border_block_width: BorderWidthValue | PGlobal;
128
+ border_bottom: BorderValue | BorderValue[] | PGlobal;
129
+ border_bottom_color: string | PGlobal;
130
+ border_bottom_left_radius: string | string[] | PGlobal;
131
+ border_bottom_right_radius: string | string[] | PGlobal;
132
+ border_bottom_style: BorderStyleValue | PGlobal;
133
+ border_bottom_width: BorderWidthValue | PGlobal;
134
+ border_collapse: "collapse" | "separate" | PGlobal;
135
+ border_color: string | string[] | PGlobal;
136
+ border_end_end_radius: string | string[] | PGlobal;
137
+ border_end_start_radius: string | string[] | PGlobal;
138
+ border_image: string | string[] | PGlobal;
139
+ border_image_outset: string | string[] | PGlobal;
140
+ border_image_repeat: Multi<"stretch" | "repeat" | "round" | "space"> | PGlobal;
141
+ border_image_slice: string | string[] | PGlobal;
142
+ border_image_source: Kw<"none"> | PGlobal;
143
+ border_image_width: string | string[] | PGlobal;
144
+ border_inline: BorderValue | BorderValue[] | PGlobal;
145
+ border_inline_color: string | string[] | PGlobal;
146
+ border_inline_end: BorderValue | BorderValue[] | PGlobal;
147
+ border_inline_end_color: string | PGlobal;
148
+ border_inline_end_style: BorderStyleValue | PGlobal;
149
+ border_inline_end_width: BorderWidthValue | PGlobal;
150
+ border_inline_start: BorderValue | BorderValue[] | PGlobal;
151
+ border_inline_start_color: string | PGlobal;
152
+ border_inline_start_style: BorderStyleValue | PGlobal;
153
+ border_inline_start_width: BorderWidthValue | PGlobal;
154
+ border_inline_style: BorderStyleValue | PGlobal;
155
+ border_inline_width: BorderWidthValue | PGlobal;
156
+ border_left: BorderValue | BorderValue[] | PGlobal;
157
+ border_left_color: string | PGlobal;
158
+ border_left_style: BorderStyleValue | PGlobal;
159
+ border_left_width: BorderWidthValue | PGlobal;
160
+ border_radius: string | string[] | PGlobal;
161
+ border_right: BorderValue | BorderValue[] | PGlobal;
162
+ border_right_color: string | PGlobal;
163
+ border_right_style: BorderStyleValue | PGlobal;
164
+ border_right_width: BorderWidthValue | PGlobal;
165
+ border_spacing: string | string[] | PGlobal;
166
+ border_start_end_radius: string | string[] | PGlobal;
167
+ border_start_start_radius: string | string[] | PGlobal;
168
+ border_style: BorderStyleValue | BorderStyleValue[] | PGlobal;
169
+ border_top: BorderValue | BorderValue[] | PGlobal;
170
+ border_top_color: string | PGlobal;
171
+ border_top_left_radius: string | string[] | PGlobal;
172
+ border_top_right_radius: string | string[] | PGlobal;
173
+ border_top_style: BorderStyleValue | PGlobal;
174
+ border_top_width: BorderWidthValue | PGlobal;
175
+ border_width: BorderWidthValue | BorderWidthValue[] | PGlobal;
176
+ bottom: Kw<"auto"> | PGlobal;
177
+ box_decoration_break: "slice" | "clone" | PGlobal;
178
+ box_reflect: Kw<"none" | "above" | "below" | "left" | "right"> | string[] | PGlobal;
179
+ box_shadow: Kw<"none"> | string[] | PGlobal;
180
+ box_sizing: "content-box" | "border-box" | PGlobal;
181
+ break_after: "auto" | "avoid" | "always" | "all" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region" | PGlobal;
182
+ break_before: "auto" | "avoid" | "always" | "all" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region" | PGlobal;
183
+ break_inside: "auto" | "avoid" | "avoid-page" | "avoid-column" | "avoid-region" | PGlobal;
184
+ caption_side: "top" | "bottom" | "block-start" | "block-end" | "inline-start" | "inline-end" | PGlobal;
185
+ caret_color: Kw<"auto"> | PColorGlobal;
186
+ clear: "none" | "left" | "right" | "both" | "inline-start" | "inline-end" | PGlobal;
187
+ clip: Kw<"auto"> | PGlobal;
188
+ clip_path: Kw<"none"> | string[] | PGlobal;
189
+ color: string | PColorGlobal;
190
+ color_scheme: Kw<"normal" | "light" | "dark" | "only"> | string[] | PGlobal;
191
+ column_count: Kw<"auto"> | PGlobal;
192
+ column_fill: "auto" | "balance" | "balance-all" | PGlobal;
193
+ column_gap: Kw<"normal"> | PGlobal;
194
+ column_rule: BorderValue | BorderValue[] | PGlobal;
195
+ column_rule_color: string | PGlobal;
196
+ column_rule_style: BorderStyleValue | PGlobal;
197
+ column_rule_width: BorderWidthValue | PGlobal;
198
+ column_span: "none" | "all" | PGlobal;
199
+ column_width: Kw<"auto"> | PGlobal;
200
+ columns: string | string[] | PGlobal;
201
+ contain: Multi<"none" | "strict" | "content" | "size" | "inline-size" | "layout" | "style" | "paint"> | PGlobal;
202
+ contain_intrinsic_block_size: Kw<"none"> | string[] | PGlobal;
203
+ contain_intrinsic_height: Kw<"none"> | string[] | PGlobal;
204
+ contain_intrinsic_inline_size: Kw<"none"> | string[] | PGlobal;
205
+ contain_intrinsic_size: Kw<"none"> | string[] | PGlobal;
206
+ contain_intrinsic_width: Kw<"none"> | string[] | PGlobal;
207
+ content: Kw<"normal" | "none"> | string[] | PGlobal;
208
+ content_visibility: "visible" | "auto" | "hidden" | PGlobal;
209
+ counter_increment: Kw<"none"> | string[] | PGlobal;
210
+ counter_reset: Kw<"none"> | string[] | PGlobal;
211
+ counter_set: Kw<"none"> | string[] | PGlobal;
212
+ cursor: Kw<CursorValue> | string[] | PGlobal;
213
+ direction: "ltr" | "rtl" | PGlobal;
214
+ display: DisplayMultiValue | PGlobal;
215
+ empty_cells: "show" | "hide" | PGlobal;
216
+ filter: Kw<"none"> | string[] | PGlobal;
217
+ flex: Kw<"auto" | "none" | "content"> | string[] | PGlobal;
218
+ flex_basis: Kw<"auto" | "fill" | "max-content" | "min-content" | "fit-content" | "content"> | PGlobal;
219
+ flex_direction: FlexDirectionValue | PGlobal;
220
+ flex_flow: FlexFlowMultiValue | PGlobal;
221
+ flex_grow: string | PGlobal;
222
+ flex_shrink: string | PGlobal;
223
+ flex_wrap: FlexWrapValue | PGlobal;
224
+ float: "left" | "right" | "none" | "inline-start" | "inline-end" | PGlobal;
225
+ font: FontValue | PFontGlobal;
226
+ font_family: string | string[] | PFontGlobal;
227
+ font_feature_settings: Kw<"normal"> | string[] | PFontGlobal;
228
+ font_kerning: "auto" | "normal" | "none" | PFontGlobal;
229
+ font_language_override: Kw<"normal"> | PFontGlobal;
230
+ font_optical_sizing: "auto" | "none" | PFontGlobal;
231
+ font_size: FontSizeValue | PFontGlobal;
232
+ font_size_adjust: Kw<"none" | "from-font"> | string[] | PFontGlobal;
233
+ font_stretch: Kw<"normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" | "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded"> | PFontGlobal;
234
+ font_style: FontStyleValue | PFontGlobal;
235
+ font_synthesis: Multi<"none" | "weight" | "style" | "small-caps" | "position"> | PFontGlobal;
236
+ font_variant: Kw<"normal" | "none"> | string[] | PFontGlobal;
237
+ font_variant_alternates: Kw<"normal"> | string[] | PFontGlobal;
238
+ font_variant_caps: "normal" | "small-caps" | "all-small-caps" | "petite-caps" | "all-petite-caps" | "unicase" | "titling-caps" | PFontGlobal;
239
+ font_variant_east_asian: Kw<"normal"> | string[] | PFontGlobal;
240
+ font_variant_ligatures: Kw<"normal" | "none"> | string[] | PFontGlobal;
241
+ font_variant_numeric: Kw<"normal"> | string[] | PFontGlobal;
242
+ font_variant_position: "normal" | "sub" | "super" | PFontGlobal;
243
+ font_variation_settings: Kw<"normal"> | string[] | PFontGlobal;
244
+ font_weight: FontWeightValue | PFontGlobal;
245
+ gap: Kw<"normal"> | string[] | PGlobal;
246
+ grid: string | string[] | PGlobal;
247
+ grid_area: string | PGlobal;
248
+ grid_auto_columns: Kw<"auto" | "max-content" | "min-content"> | string[] | PGlobal;
249
+ grid_auto_flow: Multi<"row" | "column" | "dense"> | PGlobal;
250
+ grid_auto_rows: Kw<"auto" | "max-content" | "min-content"> | string[] | PGlobal;
251
+ grid_column: Kw<"auto"> | string[] | PGlobal;
252
+ grid_column_end: Kw<"auto"> | PGlobal;
253
+ grid_column_gap: Kw<"normal"> | PGlobal;
254
+ grid_column_start: Kw<"auto"> | PGlobal;
255
+ grid_gap: Kw<"normal"> | string[] | PGlobal;
256
+ grid_row: Kw<"auto"> | string[] | PGlobal;
257
+ grid_row_end: Kw<"auto"> | PGlobal;
258
+ grid_row_gap: Kw<"normal"> | PGlobal;
259
+ grid_row_start: Kw<"auto"> | PGlobal;
260
+ grid_template: GridTemplateValue | PGlobal;
261
+ grid_template_areas: GridTemplateAreasValue | PGlobal;
262
+ grid_template_columns: GridTemplateColumnsValue | PGlobal;
263
+ grid_template_rows: GridTemplateRowsValue | PGlobal;
264
+ hanging_punctuation: Multi<"none" | "first" | "last" | "force-end" | "allow-end"> | PGlobal;
265
+ height: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
266
+ hyphenate_character: Kw<"auto"> | PGlobal;
267
+ hyphens: "none" | "manual" | "auto" | PGlobal;
268
+ image_orientation: Kw<"none" | "from-image"> | PGlobal;
269
+ image_rendering: "auto" | "crisp-edges" | "pixelated" | PGlobal;
270
+ image_resolution: string | string[] | PGlobal;
271
+ initial_letter: Kw<"normal"> | string[] | PGlobal;
272
+ inline_size: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
273
+ inset: Kw<"auto"> | string[] | PGlobal;
274
+ inset_block: Kw<"auto"> | string[] | PGlobal;
275
+ inset_block_end: Kw<"auto"> | PGlobal;
276
+ inset_block_start: Kw<"auto"> | PGlobal;
277
+ inset_inline: Kw<"auto"> | string[] | PGlobal;
278
+ inset_inline_end: Kw<"auto"> | PGlobal;
279
+ inset_inline_start: Kw<"auto"> | PGlobal;
280
+ isolation: "auto" | "isolate" | PGlobal;
281
+ justify_content: JustifyContentValue | PGlobal;
282
+ justify_items: "normal" | "stretch" | "baseline" | "start" | "end" | "center" | "self-start" | "self-end" | "flex-start" | "flex-end" | "left" | "right" | PGlobal;
283
+ justify_self: "auto" | "normal" | "stretch" | "baseline" | "start" | "end" | "center" | "self-start" | "self-end" | "flex-start" | "flex-end" | "left" | "right" | PGlobal;
284
+ left: Kw<"auto"> | PGlobal;
285
+ letter_spacing: Kw<"normal"> | PGlobal;
286
+ line_break: "auto" | "loose" | "normal" | "strict" | "anywhere" | PGlobal;
287
+ line_height: LineHeightValue | PGlobal;
288
+ list_style: string | string[] | PGlobal;
289
+ list_style_image: Kw<"none"> | PGlobal;
290
+ list_style_position: "inside" | "outside" | PGlobal;
291
+ list_style_type: Kw<"none" | "disc" | "circle" | "square" | "decimal" | "decimal-leading-zero" | "lower-roman" | "upper-roman" | "lower-alpha" | "upper-alpha" | "lower-latin" | "upper-latin" | "lower-greek"> | PGlobal;
292
+ margin: Kw<"auto"> | string[] | PBoxModelGlobal;
293
+ margin_block: Kw<"auto"> | string[] | PBoxModelGlobal;
294
+ margin_block_end: Kw<"auto"> | PBoxModelGlobal;
295
+ margin_block_start: Kw<"auto"> | PBoxModelGlobal;
296
+ margin_bottom: Kw<"auto"> | PBoxModelGlobal;
297
+ margin_inline: Kw<"auto"> | string[] | PBoxModelGlobal;
298
+ margin_inline_end: Kw<"auto"> | PBoxModelGlobal;
299
+ margin_inline_start: Kw<"auto"> | PBoxModelGlobal;
300
+ margin_left: Kw<"auto"> | PBoxModelGlobal;
301
+ margin_right: Kw<"auto"> | PBoxModelGlobal;
302
+ margin_top: Kw<"auto"> | PBoxModelGlobal;
303
+ marker: Kw<"none"> | PGlobal;
304
+ marker_end: Kw<"none"> | PGlobal;
305
+ marker_mid: Kw<"none"> | PGlobal;
306
+ marker_start: Kw<"none"> | PGlobal;
307
+ mask: Kw<"none"> | string[] | PGlobal;
308
+ mask_border: string | string[] | PGlobal;
309
+ mask_border_mode: "luminance" | "alpha" | PGlobal;
310
+ mask_border_outset: string | string[] | PGlobal;
311
+ mask_border_repeat: Multi<"stretch" | "repeat" | "round" | "space"> | PGlobal;
312
+ mask_border_slice: string | string[] | PGlobal;
313
+ mask_border_source: Kw<"none"> | PGlobal;
314
+ mask_border_width: Kw<"auto"> | string[] | PGlobal;
315
+ mask_clip: Multi<"content-box" | "padding-box" | "border-box" | "margin-box" | "fill-box" | "stroke-box" | "view-box" | "no-clip"> | PGlobal;
316
+ mask_composite: Multi<"add" | "subtract" | "intersect" | "exclude"> | PGlobal;
317
+ mask_image: Kw<"none"> | string[] | PGlobal;
318
+ mask_mode: Multi<"alpha" | "luminance" | "match-source"> | PGlobal;
319
+ mask_origin: Multi<"content-box" | "padding-box" | "border-box" | "margin-box" | "fill-box" | "stroke-box" | "view-box"> | PGlobal;
320
+ mask_position: string | string[] | PGlobal;
321
+ mask_repeat: Multi<"repeat" | "repeat-x" | "repeat-y" | "space" | "round" | "no-repeat"> | PGlobal;
322
+ mask_size: Kw<"auto" | "cover" | "contain"> | string[] | PGlobal;
323
+ mask_type: "luminance" | "alpha" | PGlobal;
324
+ max_block_size: Kw<"none" | "max-content" | "min-content" | "fit-content"> | PGlobal;
325
+ max_height: Kw<"none" | "max-content" | "min-content" | "fit-content"> | PGlobal;
326
+ max_inline_size: Kw<"none" | "max-content" | "min-content" | "fit-content"> | PGlobal;
327
+ max_width: Kw<"none" | "max-content" | "min-content" | "fit-content"> | PGlobal;
328
+ min_block_size: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
329
+ min_height: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
330
+ min_inline_size: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
331
+ min_width: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
332
+ mix_blend_mode: BlendModeValue | "plus-darker" | "plus-lighter" | PGlobal;
333
+ object_fit: "fill" | "contain" | "cover" | "none" | "scale-down" | PGlobal;
334
+ object_position: string | string[] | PGlobal;
335
+ offset: string | string[] | PGlobal;
336
+ offset_anchor: Kw<"auto"> | string[] | PGlobal;
337
+ offset_distance: string | PGlobal;
338
+ offset_path: Kw<"none"> | PGlobal;
339
+ offset_position: Kw<"auto" | "normal"> | string[] | PGlobal;
340
+ offset_rotate: Kw<"auto" | "reverse"> | string[] | PGlobal;
341
+ opacity: string | PGlobal;
342
+ order: string | PGlobal;
343
+ orphans: string | PGlobal;
344
+ outline: BorderValue | BorderValue[] | PGlobal;
345
+ outline_color: Kw<"invert"> | PGlobal;
346
+ outline_offset: string | PGlobal;
347
+ outline_style: BorderStyleValue | "auto" | PGlobal;
348
+ outline_width: BorderWidthValue | PGlobal;
349
+ overflow: OverflowValue | OverflowMultiValue | PGlobal;
350
+ overflow_anchor: "auto" | "none" | PGlobal;
351
+ overflow_block: OverflowValue | PGlobal;
352
+ overflow_clip_margin: Kw<"content-box" | "padding-box" | "border-box"> | PGlobal;
353
+ overflow_inline: OverflowValue | PGlobal;
354
+ overflow_wrap: "normal" | "break-word" | "anywhere" | PGlobal;
355
+ overflow_x: OverflowValue | PGlobal;
356
+ overflow_y: OverflowValue | PGlobal;
357
+ overscroll_behavior: Multi<"auto" | "contain" | "none"> | PGlobal;
358
+ overscroll_behavior_block: "auto" | "contain" | "none" | PGlobal;
359
+ overscroll_behavior_inline: "auto" | "contain" | "none" | PGlobal;
360
+ overscroll_behavior_x: "auto" | "contain" | "none" | PGlobal;
361
+ overscroll_behavior_y: "auto" | "contain" | "none" | PGlobal;
362
+ padding: string | string[] | PBoxModelGlobal;
363
+ padding_block: string | string[] | PBoxModelGlobal;
364
+ padding_block_end: string | PBoxModelGlobal;
365
+ padding_block_start: string | PBoxModelGlobal;
366
+ padding_bottom: string | PBoxModelGlobal;
367
+ padding_inline: string | string[] | PBoxModelGlobal;
368
+ padding_inline_end: string | PBoxModelGlobal;
369
+ padding_inline_start: string | PBoxModelGlobal;
370
+ padding_left: string | PBoxModelGlobal;
371
+ padding_right: string | PBoxModelGlobal;
372
+ padding_top: string | PBoxModelGlobal;
373
+ page_break_after: "auto" | "always" | "avoid" | "left" | "right" | PGlobal;
374
+ page_break_before: "auto" | "always" | "avoid" | "left" | "right" | PGlobal;
375
+ page_break_inside: "auto" | "avoid" | PGlobal;
376
+ paint_order: Multi<"normal" | "fill" | "stroke" | "markers"> | PGlobal;
377
+ perspective: Kw<"none"> | PGlobal;
378
+ perspective_origin: string | string[] | PGlobal;
379
+ place_content: string | string[] | PGlobal;
380
+ place_items: string | string[] | PGlobal;
381
+ place_self: string | string[] | PGlobal;
382
+ pointer_events: "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | PGlobal;
383
+ position: PositionValue | PPositionGlobal;
384
+ quotes: Kw<"none" | "auto"> | string[] | PGlobal;
385
+ resize: "none" | "both" | "horizontal" | "vertical" | "block" | "inline" | PGlobal;
386
+ right: Kw<"auto"> | PGlobal;
387
+ rotate: Kw<"none"> | string[] | PGlobal;
388
+ row_gap: Kw<"normal"> | PGlobal;
389
+ scale: Kw<"none"> | string[] | PGlobal;
390
+ scroll_behavior: "auto" | "smooth" | PGlobal;
391
+ scroll_margin: string | string[] | PGlobal;
392
+ scroll_margin_block: string | string[] | PGlobal;
393
+ scroll_margin_block_end: string | PGlobal;
394
+ scroll_margin_block_start: string | PGlobal;
395
+ scroll_margin_bottom: string | PGlobal;
396
+ scroll_margin_inline: string | string[] | PGlobal;
397
+ scroll_margin_inline_end: string | PGlobal;
398
+ scroll_margin_inline_start: string | PGlobal;
399
+ scroll_margin_left: string | PGlobal;
400
+ scroll_margin_right: string | PGlobal;
401
+ scroll_margin_top: string | PGlobal;
402
+ scroll_padding: Kw<"auto"> | string[] | PGlobal;
403
+ scroll_padding_block: Kw<"auto"> | string[] | PGlobal;
404
+ scroll_padding_block_end: Kw<"auto"> | PGlobal;
405
+ scroll_padding_block_start: Kw<"auto"> | PGlobal;
406
+ scroll_padding_bottom: Kw<"auto"> | PGlobal;
407
+ scroll_padding_inline: Kw<"auto"> | string[] | PGlobal;
408
+ scroll_padding_inline_end: Kw<"auto"> | PGlobal;
409
+ scroll_padding_inline_start: Kw<"auto"> | PGlobal;
410
+ scroll_padding_left: Kw<"auto"> | PGlobal;
411
+ scroll_padding_right: Kw<"auto"> | PGlobal;
412
+ scroll_padding_top: Kw<"auto"> | PGlobal;
413
+ scroll_snap_align: Multi<"none" | "start" | "end" | "center"> | PGlobal;
414
+ scroll_snap_stop: "normal" | "always" | PGlobal;
415
+ scroll_snap_type: Multi<"none" | "x" | "y" | "block" | "inline" | "both" | "mandatory" | "proximity"> | PGlobal;
416
+ scrollbar_color: Kw<"auto"> | string[] | PGlobal;
417
+ scrollbar_width: "auto" | "thin" | "none" | PGlobal;
418
+ shape_image_threshold: string | PGlobal;
419
+ shape_margin: string | PGlobal;
420
+ shape_outside: Kw<"none" | "margin-box" | "content-box" | "border-box" | "padding-box"> | string[] | PGlobal;
421
+ tab_size: string | PGlobal;
422
+ table_layout: "auto" | "fixed" | PGlobal;
423
+ text_align: TextAlignValue | PGlobal;
424
+ text_align_last: TextAlignValue | "auto" | PGlobal;
425
+ text_combine_upright: Kw<"none" | "all" | "digits"> | string[] | PGlobal;
426
+ text_decoration: TextDecorationMultiValue | PGlobal;
427
+ text_decoration_color: string | PGlobal;
428
+ text_decoration_line: TextDecorationLineValue | TextDecorationLineValue[] | PGlobal;
429
+ text_decoration_skip: Multi<"none" | "objects" | "spaces" | "leading-spaces" | "trailing-spaces" | "edges" | "box-decoration"> | PGlobal;
430
+ text_decoration_skip_ink: "auto" | "none" | "all" | PGlobal;
431
+ text_decoration_style: TextDecorationStyleValue | PGlobal;
432
+ text_decoration_thickness: Kw<"auto" | "from-font"> | PGlobal;
433
+ text_emphasis: string | string[] | PGlobal;
434
+ text_emphasis_color: string | PGlobal;
435
+ text_emphasis_position: Kw<"over" | "under" | "left" | "right"> | string[] | PGlobal;
436
+ text_emphasis_style: Kw<"none" | "filled" | "open" | "dot" | "circle" | "double-circle" | "triangle" | "sesame"> | string[] | PGlobal;
437
+ text_indent: string | string[] | PGlobal;
438
+ text_justify: "auto" | "inter-character" | "inter-word" | "none" | PGlobal;
439
+ text_orientation: "mixed" | "upright" | "sideways" | PGlobal;
440
+ text_overflow: Kw<"clip" | "ellipsis"> | string[] | PGlobal;
441
+ text_rendering: "auto" | "optimizeSpeed" | "optimizeLegibility" | "geometricPrecision" | PGlobal;
442
+ text_shadow: Kw<"none"> | string[] | PGlobal;
443
+ text_size_adjust: Kw<"none" | "auto"> | PGlobal;
444
+ text_transform: TextTransformValue | PGlobal;
445
+ text_underline_offset: Kw<"auto"> | PGlobal;
446
+ text_underline_position: Multi<"auto" | "from-font" | "under" | "left" | "right"> | PGlobal;
447
+ top: Kw<"auto"> | PGlobal;
448
+ touch_action: Multi<"auto" | "none" | "pan-x" | "pan-y" | "pan-left" | "pan-right" | "pan-up" | "pan-down" | "pinch-zoom" | "manipulation"> | PGlobal;
449
+ transform: TransformValue | PGlobal;
450
+ transform_box: "content-box" | "border-box" | "fill-box" | "stroke-box" | "view-box" | PGlobal;
451
+ transform_origin: string | string[] | PGlobal;
452
+ transform_style: "flat" | "preserve-3d" | PGlobal;
453
+ transition: TransitionValue | PTransitionGlobal;
454
+ transition_delay: string | string[] | PTransitionGlobal;
455
+ transition_duration: string | string[] | PTransitionGlobal;
456
+ transition_property: TransitionPropertyValue | TransitionPropertyValue[] | PTransitionGlobal;
457
+ transition_timing_function: TransitionTimingFunctionValue | TransitionTimingFunctionValue[] | PTransitionGlobal;
458
+ translate: Kw<"none"> | string[] | PGlobal;
459
+ unicode_bidi: "normal" | "embed" | "isolate" | "bidi-override" | "isolate-override" | "plaintext" | PGlobal;
460
+ user_select: "auto" | "none" | "text" | "contain" | "all" | PGlobal;
461
+ vertical_align: Kw<"baseline" | "sub" | "super" | "text-top" | "text-bottom" | "middle" | "top" | "bottom"> | PGlobal;
462
+ visibility: "visible" | "hidden" | "collapse" | PGlobal;
463
+ white_space: "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces" | PGlobal;
464
+ widows: string | PGlobal;
465
+ width: Kw<"auto" | "max-content" | "min-content" | "fit-content"> | PGlobal;
466
+ will_change: Kw<"auto" | "scroll-position" | "contents"> | string[] | PGlobal;
467
+ word_break: "normal" | "break-all" | "keep-all" | "break-word" | PGlobal;
468
+ word_spacing: Kw<"normal"> | PGlobal;
469
+ word_wrap: "normal" | "break-word" | PGlobal;
470
+ writing_mode: "horizontal-tb" | "vertical-rl" | "vertical-lr" | "sideways-rl" | "sideways-lr" | PGlobal;
471
+ z_index: Kw<"auto"> | PGlobal;
472
+ zoom: Kw<"normal" | "reset"> | PGlobal;
473
+ [key: `--${string}`]: string;
474
+ }>;
475
+ //#endregion
476
+ export { Properties as t };
@@ -1,4 +1,4 @@
1
- import { t as Properties } from "./properties-FKQ-gJeC.js";
1
+ import { t as Properties } from "./properties-FD59BzEy.js";
2
2
 
3
3
  //#region src/registry.d.ts
4
4
  type Registry = Map<string, [string[], Partial<Properties>]>;
@@ -1,4 +1,4 @@
1
- import { t as Properties } from "./properties-FKQ-gJeC.js";
1
+ import { t as Properties } from "./properties-FD59BzEy.js";
2
2
 
3
3
  //#region src/registry.browser.d.ts
4
4
  type Registry = Map<string, [string[], Partial<Properties>]>;
@@ -1,2 +1,2 @@
1
- import { i as runWithRegistry, n as RunWithRegistry, r as registerCss, t as Registry } from "./registry-Bg8dxPHm.js";
1
+ import { i as runWithRegistry, n as RunWithRegistry, r as registerCss, t as Registry } from "./registry-DxeMToNF.js";
2
2
  export { Registry, RunWithRegistry, registerCss, runWithRegistry };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cirrojs",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "React islands SSG with strict CSP (no unsafe-inline). Vite-based, MPA-first.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,4 +0,0 @@
1
- import{registerCss as e}from"cirrojs/registry";function t(e,t){let n=t?.selector??`&`,r=t?.atrules??[],o=a({selector:n,atrules:r,properties:e}),s=`${t?.name??`cirro`}-${o.toString(16)}`;return i([...r,n],e,s),s}function n(e){let n=[];return e.layer&&n.push(`@layer ${e.layer}`),e.atRules&&n.push(...e.atRules),(e,r)=>t(e,{atrules:n,name:r?.name,selector:r?.selector})}function r(e){let t=`@charset "utf-8";
2
- @layer base, font, low, main, high;
3
- `;for(let[n,[r,i]]of e)t+=r.reduceRight((e,t)=>`${t} { ${e} }`,Object.entries(i).map(([e,t])=>`${e.replaceAll(`_`,`-`)}: ${t};`).join(` `)),t+=`
4
- `;return t}function i(t,n,r){e(r,t.map(e=>e.replaceAll(`&`,`.${r}`)),n)}function a(...e){return o(e.map(e=>JSON.stringify(e)).join(``))}function o(e){let t=5381;for(let n of[...e])t=(t<<5)+t+n.charCodeAt(0)&4294967295;return t>>>0}export{n,r,t};
@@ -1,461 +0,0 @@
1
- //#region src/properties.d.ts
2
- type AlignContentBaseKeyword = "normal" | "start" | "center" | "end" | "flex-start" | "flex-end" | "baseline" | "first baseline" | "last baseline" | "space-between" | "space-around" | "space-evenly" | "stretch";
3
- type AlignContentKeyword = AlignContentBaseKeyword | ["safe", AlignContentBaseKeyword] | ["unsafe", AlignContentBaseKeyword];
4
- type BackgroundPositionKeyword = "left" | "center" | "right" | "top" | "bottom";
5
- type BackgroundPositionValue = BackgroundPositionKeyword | string;
6
- type PInherit = "inherit";
7
- type PInitial = "initial";
8
- type PRevert = "revert";
9
- type PRevertLayer = "revert-layer";
10
- type PUnset = "unset";
11
- type PGlobal = PInherit | PInitial | PRevert | PRevertLayer | PUnset;
12
- type DisplayOutsideValue = "block" | "inline" | "run-in";
13
- type DisplayInsideValue = "flow" | "flow-root" | "table" | "flex" | "grid" | "ruby";
14
- type DisplayListItemValue = "list-item";
15
- type DisplayInternalValue = "table-row-group" | "table-header-group" | "table-footer-group" | "table-row" | "table-cell" | "table-column-group" | "table-column" | "table-caption" | "ruby-base" | "ruby-text" | "ruby-base-container" | "ruby-text-container";
16
- type DisplayBoxValue = "contents" | "none";
17
- type DisplayLegacyValue = "inline-block" | "inline-table" | "inline-flex" | "inline-grid";
18
- type DisplayValue = DisplayOutsideValue | DisplayInsideValue | DisplayListItemValue | DisplayInternalValue | DisplayBoxValue | DisplayLegacyValue | "table" | "inline-block" | "inline-flex" | "inline-grid";
19
- type DisplayMultiValue = DisplayValue | DisplayValue[];
20
- type PositionValue = "static" | "relative" | "absolute" | "fixed" | "sticky";
21
- type PAnimationGlobal = PGlobal;
22
- type PTransitionGlobal = PGlobal;
23
- type PColorGlobal = PGlobal;
24
- type PBoxModelGlobal = PGlobal;
25
- type PFontGlobal = PGlobal;
26
- type PPositionGlobal = PGlobal;
27
- type FlexDirectionValue = "row" | "row-reverse" | "column" | "column-reverse";
28
- type FlexWrapValue = "nowrap" | "wrap" | "wrap-reverse";
29
- type FlexFlowSingleValue = FlexDirectionValue | FlexWrapValue;
30
- type FlexFlowMultiValue = FlexFlowSingleValue | [FlexFlowSingleValue, FlexFlowSingleValue];
31
- type JustifyContentValue = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "left" | "right";
32
- type AlignItemsSelfPosition = "center" | "start" | "end" | "self-start" | "self-end" | "flex-start" | "flex-end";
33
- type AlignItemsValue = "normal" | "stretch" | "anchor-center" | "baseline" | "first baseline" | "last baseline" | AlignItemsSelfPosition | ["safe", AlignItemsSelfPosition] | ["unsafe", AlignItemsSelfPosition];
34
- type AlignSelfValue = "auto" | "normal" | "stretch" | "baseline" | "first baseline" | "last baseline" | "anchor-center" | AlignItemsSelfPosition | ["unsafe", AlignItemsSelfPosition] | ["safe", AlignItemsSelfPosition];
35
- type AlignmentBaselineValue = "baseline" | "text-bottom" | "alphabetic" | "ideographic" | "middle" | "central" | "mathematical" | "text-top";
36
- type TextAlignValue = "left" | "right" | "center" | "justify" | "start" | "end";
37
- type OverflowValue = "visible" | "hidden" | "scroll" | "auto" | "clip";
38
- type OverflowMultiValue = OverflowValue | [OverflowValue, OverflowValue];
39
- type TextDecorationLineValue = "none" | "underline" | "overline" | "line-through";
40
- type TextDecorationStyleValue = "solid" | "double" | "dotted" | "dashed" | "wavy";
41
- type TextDecorationColorValue = string;
42
- type TextDecorationValue = TextDecorationLineValue | TextDecorationStyleValue | TextDecorationColorValue;
43
- type TextDecorationMultiValue = TextDecorationValue | TextDecorationValue[];
44
- type TextTransformValue = "none" | "capitalize" | "uppercase" | "lowercase" | "full-width";
45
- type BorderStyleValue = "none" | "hidden" | "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset";
46
- type BorderWidthValue = "thin" | "medium" | "thick" | string;
47
- type BorderColorValue = string;
48
- type BorderValue = BorderStyleValue | BorderWidthValue | BorderColorValue;
49
- type CursorValue = "auto" | "default" | "pointer" | "wait" | "text" | "move" | "not-allowed" | "grab" | "grabbing" | "zoom-in" | "zoom-out" | "help" | "crosshair";
50
- type AnimationNameValue = string;
51
- type AnimationDurationValue = string;
52
- type AnimationTimingFunctionValue = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end" | string;
53
- type AnimationDelayValue = string;
54
- type AnimationIterationCountValue = string | "infinite";
55
- type AnimationDirectionValue = "normal" | "reverse" | "alternate" | "alternate-reverse";
56
- type AnimationFillModeValue = "none" | "forwards" | "backwards" | "both";
57
- type AnimationPlayStateValue = "running" | "paused";
58
- type AnimationCompositionValue = "replace" | "add" | "accumulate";
59
- type AnimationTimeline = string;
60
- type AnimationValueBase = AnimationNameValue | AnimationDurationValue | AnimationTimingFunctionValue | AnimationDelayValue | AnimationIterationCountValue | AnimationDirectionValue | AnimationFillModeValue | AnimationPlayStateValue | AnimationTimeline;
61
- type AnimationValue = AnimationValueBase | AnimationValueBase[] | AnimationValueBase[][];
62
- type FontWeightValue = "normal" | "bold" | "bolder" | "lighter" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
63
- type FontValue = string | string[] | string[];
64
- type GridTemplateAreasValue = "none" | string | string[];
65
- type GridTemplateValue = string | string[] | string[][];
66
- type GridTemplateColumnsValue = string | string[] | string[][] | "none";
67
- type GridTemplateRowsValue = string | string[] | string[][] | "none";
68
- type TransformFunctionValue = string;
69
- type TransformValue = "none" | TransformFunctionValue | TransformFunctionValue[] | string[];
70
- type TransitionPropertyValue = string | "none" | "all";
71
- type TransitionTimingFunctionValue = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end" | string;
72
- type TransitionValue = string | string[] | string[][];
73
- type Properties = Partial<{
74
- align_content: AlignContentKeyword | PGlobal;
75
- align_items: AlignItemsValue | PGlobal;
76
- align_self: AlignSelfValue | PGlobal;
77
- alignment_baseline: AlignmentBaselineValue | PGlobal;
78
- all: PGlobal;
79
- anchor_name: string | string[][];
80
- animation: AnimationValue | PAnimationGlobal;
81
- animation_composition: AnimationCompositionValue | AnimationCompositionValue[] | PAnimationGlobal;
82
- animation_delay: string | string[][] | PAnimationGlobal;
83
- animation_direction: AnimationDirectionValue | AnimationDirectionValue[][] | PAnimationGlobal;
84
- animation_duration: string | string[][] | PAnimationGlobal;
85
- animation_fill_mode: AnimationFillModeValue | AnimationFillModeValue[][] | PAnimationGlobal;
86
- animation_iteration_count: AnimationIterationCountValue | AnimationIterationCountValue[][] | PAnimationGlobal;
87
- animation_name: string | string[][] | PAnimationGlobal;
88
- animation_play_state: AnimationPlayStateValue | AnimationPlayStateValue[][] | PAnimationGlobal;
89
- animation_range: string | string[] | string[][] | PAnimationGlobal;
90
- animation_range_end: string | string[] | string[][] | PAnimationGlobal;
91
- animation_range_start: string | string[] | string[][] | PAnimationGlobal;
92
- animation_timeline: string | string[][] | PAnimationGlobal;
93
- animation_timing_function: AnimationTimingFunctionValue | AnimationTimingFunctionValue[][] | PAnimationGlobal;
94
- appearance: "none" | "auto" | PGlobal;
95
- aspect_ratio: "auto" | string | [string, "/", string];
96
- backdrop_filter: string | string[] | PGlobal;
97
- backface_visibility: "visible" | "hidden" | PGlobal;
98
- background: string | string[] | string[][] | PGlobal;
99
- background_attachment: "scroll" | "fixed" | "local" | string | string[] | string[][] | PGlobal;
100
- background_blend_mode: string | string[] | string[][] | PGlobal;
101
- background_clip: "border-box" | "padding-box" | "content-box" | "text" | string | string[] | string[][] | PGlobal;
102
- background_color: string | PColorGlobal;
103
- background_image: string | string[] | string[][] | PGlobal;
104
- background_origin: "border-box" | "padding-box" | "content-box" | string | string[] | string[][] | PGlobal;
105
- background_position: BackgroundPositionValue | BackgroundPositionValue[] | BackgroundPositionValue[][] | PGlobal;
106
- background_repeat: "repeat" | "repeat-x" | "repeat-y" | "no-repeat" | "space" | "round" | string | string[] | string[][] | PGlobal;
107
- background_size: string | string[] | string[][] | PGlobal;
108
- block_size: string | "auto" | PGlobal;
109
- border: BorderValue | BorderValue[] | PGlobal;
110
- border_block: string | PGlobal;
111
- border_block_color: string | PGlobal;
112
- border_block_end: BorderValue | BorderValue[] | PGlobal;
113
- border_block_end_color: string | PGlobal;
114
- border_block_end_style: BorderStyleValue | PGlobal;
115
- border_block_end_width: string | PGlobal;
116
- border_block_start: string | PGlobal;
117
- border_block_start_color: string | PGlobal;
118
- border_block_start_style: BorderStyleValue | PGlobal;
119
- border_block_start_width: string | PGlobal;
120
- border_block_style: BorderStyleValue | PGlobal;
121
- border_block_width: string | PGlobal;
122
- border_bottom: string | PGlobal;
123
- border_bottom_color: string | PGlobal;
124
- border_bottom_left_radius: string | PGlobal;
125
- border_bottom_right_radius: string | PGlobal;
126
- border_bottom_style: BorderStyleValue | PGlobal;
127
- border_bottom_width: string | PGlobal;
128
- border_collapse: "collapse" | "separate" | PGlobal;
129
- border_color: string | string[] | PGlobal;
130
- border_end_end_radius: string | PGlobal;
131
- border_end_start_radius: string | PGlobal;
132
- border_image: string | PGlobal;
133
- border_image_outset: string | string[] | PGlobal;
134
- border_image_repeat: "stretch" | "repeat" | "round" | "space" | string | string[] | PGlobal;
135
- border_image_slice: string | string[] | PGlobal;
136
- border_image_source: string | PGlobal;
137
- border_image_width: string | string[] | PGlobal;
138
- border_inline: string | PGlobal;
139
- border_inline_color: string | PGlobal;
140
- border_inline_end: string | PGlobal;
141
- border_inline_end_color: string | PGlobal;
142
- border_inline_end_style: BorderStyleValue | PGlobal;
143
- border_inline_end_width: string | PGlobal;
144
- border_inline_start: BorderValue | BorderValue[] | PGlobal;
145
- border_inline_start_color: string | PGlobal;
146
- border_inline_start_style: BorderStyleValue | PGlobal;
147
- border_inline_start_width: string | PGlobal;
148
- border_inline_style: BorderStyleValue | PGlobal;
149
- border_inline_width: string | PGlobal;
150
- border_left: string | PGlobal;
151
- border_left_color: string | PGlobal;
152
- border_left_style: BorderStyleValue | PGlobal;
153
- border_left_width: string | PGlobal;
154
- border_radius: string | string[] | PGlobal;
155
- border_right: string | PGlobal;
156
- border_right_color: string | PGlobal;
157
- border_right_style: BorderStyleValue | PGlobal;
158
- border_right_width: string | PGlobal;
159
- border_spacing: string | string[] | PGlobal;
160
- border_start_end_radius: string | PGlobal;
161
- border_start_start_radius: string | PGlobal;
162
- border_style: BorderStyleValue | string | string[] | PGlobal;
163
- border_top: string | PGlobal;
164
- border_top_color: string | PGlobal;
165
- border_top_left_radius: string | PGlobal;
166
- border_top_right_radius: string | PGlobal;
167
- border_top_style: BorderStyleValue | PGlobal;
168
- border_top_width: string | PGlobal;
169
- border_width: string | string[] | PGlobal;
170
- bottom: string | "auto" | PGlobal;
171
- box_decoration_break: "slice" | "clone" | PGlobal;
172
- box_shadow: string | string[] | string[][] | PGlobal;
173
- box_sizing: "content-box" | "border-box" | PGlobal;
174
- break_after: "auto" | "avoid" | "always" | "all" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region" | PGlobal;
175
- break_before: "auto" | "avoid" | "always" | "all" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region" | PGlobal;
176
- break_inside: "auto" | "avoid" | "avoid-page" | "avoid-column" | "avoid-region" | PGlobal;
177
- caption_side: "top" | "bottom" | PGlobal;
178
- caret_color: string | "auto" | PGlobal;
179
- clear: "none" | "left" | "right" | "both" | "inline-start" | "inline-end" | PGlobal;
180
- clip: string | "auto" | PGlobal;
181
- clip_path: string | PGlobal;
182
- color: string | PColorGlobal;
183
- color_scheme: string | string[] | PGlobal;
184
- column_count: string | "auto" | PGlobal;
185
- column_fill: "auto" | "balance" | "balance-all" | PGlobal;
186
- column_gap: string | "normal" | PGlobal;
187
- column_rule: string | PGlobal;
188
- column_rule_color: string | PGlobal;
189
- column_rule_style: BorderStyleValue | PGlobal;
190
- column_rule_width: string | PGlobal;
191
- column_span: "none" | "all" | PGlobal;
192
- column_width: string | "auto" | PGlobal;
193
- columns: string | string[] | PGlobal;
194
- contain: "none" | "strict" | "content" | "size" | "layout" | "style" | "paint" | string | string[] | PGlobal;
195
- contain_intrinsic_block_size: string | "none" | PGlobal;
196
- contain_intrinsic_height: string | "none" | PGlobal;
197
- contain_intrinsic_inline_size: string | "none" | PGlobal;
198
- contain_intrinsic_size: string | string[] | "none" | PGlobal;
199
- contain_intrinsic_width: string | "none" | PGlobal;
200
- content: string | "normal" | "none" | PGlobal;
201
- content_visibility: "visible" | "auto" | "hidden" | PGlobal;
202
- counter_increment: string | string[] | "none" | PGlobal;
203
- counter_reset: string | string[] | "none" | PGlobal;
204
- counter_set: string | string[] | "none" | PGlobal;
205
- cursor: CursorValue | string | string[] | PGlobal;
206
- direction: "ltr" | "rtl" | PGlobal;
207
- display: DisplayValue | DisplayMultiValue | PGlobal;
208
- empty_cells: "show" | "hide" | PGlobal;
209
- filter: string | string[] | PGlobal;
210
- flex: string | string[] | "auto" | "none" | PGlobal;
211
- flex_basis: string | "auto" | "fill" | "max-content" | "min-content" | "fit-content" | PGlobal;
212
- flex_direction: FlexDirectionValue | PGlobal;
213
- flex_flow: FlexFlowMultiValue | PGlobal;
214
- flex_grow: string | PGlobal;
215
- flex_shrink: string | PGlobal;
216
- flex_wrap: FlexWrapValue | PGlobal;
217
- float: "left" | "right" | "none" | "inline-start" | "inline-end" | PGlobal;
218
- font: FontValue | PFontGlobal;
219
- font_family: string | string[] | string[][] | PFontGlobal;
220
- font_feature_settings: string | string[] | "normal" | PFontGlobal;
221
- font_kerning: "auto" | "normal" | "none" | PFontGlobal;
222
- font_language_override: string | "normal" | PFontGlobal;
223
- font_optical_sizing: "auto" | "none" | PFontGlobal;
224
- font_size: string | PFontGlobal;
225
- font_size_adjust: string | "none" | PFontGlobal;
226
- font_stretch: string | PFontGlobal;
227
- font_style: "normal" | "italic" | "oblique" | string | PFontGlobal;
228
- font_synthesis: "none" | "weight" | "style" | string | string[] | PFontGlobal;
229
- font_variant: string | string[] | "normal" | "none" | PFontGlobal;
230
- font_variant_alternates: string | "normal" | PFontGlobal;
231
- font_variant_caps: "normal" | "small-caps" | "all-small-caps" | "petite-caps" | "all-petite-caps" | "unicase" | "titling-caps" | PFontGlobal;
232
- font_variant_east_asian: string | string[] | "normal" | PFontGlobal;
233
- font_variant_ligatures: string | string[] | "normal" | "none" | PFontGlobal;
234
- font_variant_numeric: string | string[] | "normal" | PFontGlobal;
235
- font_variant_position: "normal" | "sub" | "super" | PFontGlobal;
236
- font_variation_settings: string | string[] | "normal" | PFontGlobal;
237
- font_weight: FontWeightValue | PFontGlobal;
238
- gap: string | string[] | PGlobal;
239
- grid: string | string[] | string[][] | PGlobal;
240
- grid_area: string | PGlobal;
241
- grid_auto_columns: string | string[] | PGlobal;
242
- grid_auto_flow: "row" | "column" | "dense" | string | string[] | PGlobal;
243
- grid_auto_rows: string | string[] | PGlobal;
244
- grid_column: string | string[] | "auto" | PGlobal;
245
- grid_column_end: string | "auto" | PGlobal;
246
- grid_column_gap: string | PGlobal;
247
- grid_column_start: string | "auto" | PGlobal;
248
- grid_gap: string | string[] | PGlobal;
249
- grid_row: string | string[] | "auto" | PGlobal;
250
- grid_row_end: string | "auto" | PGlobal;
251
- grid_row_gap: string | PGlobal;
252
- grid_row_start: string | "auto" | PGlobal;
253
- grid_template: GridTemplateValue | PGlobal;
254
- grid_template_areas: GridTemplateAreasValue | PGlobal;
255
- grid_template_columns: GridTemplateColumnsValue | PGlobal;
256
- grid_template_rows: GridTemplateRowsValue | PGlobal;
257
- hanging_punctuation: "none" | "first" | "last" | "force-end" | "allow-end" | string | string[] | PGlobal;
258
- height: string | "auto" | "max-content" | "min-content" | "fit-content" | PGlobal;
259
- hyphens: "none" | "manual" | "auto" | PGlobal;
260
- image_orientation: string | "none" | "from-image" | PGlobal;
261
- image_rendering: "auto" | "crisp-edges" | "pixelated" | PGlobal;
262
- image_resolution: string | PGlobal;
263
- inline_size: string | "auto" | PGlobal;
264
- inset: string | string[] | "auto" | PGlobal;
265
- inset_block: string | string[] | "auto" | PGlobal;
266
- inset_block_end: string | "auto" | PGlobal;
267
- inset_block_start: string | "auto" | PGlobal;
268
- inset_inline: string | string[] | "auto" | PGlobal;
269
- inset_inline_end: string | "auto" | PGlobal;
270
- inset_inline_start: string | "auto" | PGlobal;
271
- isolation: "auto" | "isolate" | PGlobal;
272
- justify_content: JustifyContentValue | PGlobal;
273
- justify_items: "start" | "end" | "center" | "stretch" | "self-start" | "self-end" | "flex-start" | "flex-end" | "left" | "right" | string | PGlobal;
274
- justify_self: "auto" | "start" | "end" | "center" | "stretch" | "self-start" | "self-end" | "flex-start" | "flex-end" | "left" | "right" | PGlobal;
275
- left: string | "auto" | PGlobal;
276
- letter_spacing: string | "normal" | PGlobal;
277
- line_break: "auto" | "loose" | "normal" | "strict" | "anywhere" | PGlobal;
278
- line_height: string | "normal" | PGlobal;
279
- list_style: string | string[] | PGlobal;
280
- list_style_image: string | "none" | PGlobal;
281
- list_style_position: "inside" | "outside" | PGlobal;
282
- list_style_type: string | "none" | PGlobal;
283
- margin: string | string[] | "auto" | PBoxModelGlobal;
284
- margin_block: string | string[] | "auto" | PBoxModelGlobal;
285
- margin_block_end: string | "auto" | PBoxModelGlobal;
286
- margin_block_start: string | "auto" | PBoxModelGlobal;
287
- margin_bottom: string | "auto" | PBoxModelGlobal;
288
- margin_inline: string | string[] | "auto" | PBoxModelGlobal;
289
- margin_inline_end: string | "auto" | PBoxModelGlobal;
290
- margin_inline_start: string | "auto" | PBoxModelGlobal;
291
- margin_left: string | "auto" | PBoxModelGlobal;
292
- margin_right: string | "auto" | PBoxModelGlobal;
293
- margin_top: string | "auto" | PBoxModelGlobal;
294
- mask: string | string[] | PGlobal;
295
- mask_border: string | PGlobal;
296
- mask_border_mode: "luminance" | "alpha" | PGlobal;
297
- mask_border_outset: string | string[] | PGlobal;
298
- mask_border_repeat: string | string[] | PGlobal;
299
- mask_border_slice: string | string[] | PGlobal;
300
- mask_border_source: string | "none" | PGlobal;
301
- mask_border_width: string | string[] | "auto" | PGlobal;
302
- mask_clip: string | string[] | "content-box" | "padding-box" | "border-box" | "margin-box" | "fill-box" | "stroke-box" | "view-box" | "no-clip" | PGlobal;
303
- mask_composite: string | string[] | PGlobal;
304
- mask_image: string | string[] | "none" | PGlobal;
305
- mask_mode: string | string[] | "alpha" | "luminance" | "match-source" | PGlobal;
306
- mask_origin: string | string[] | "content-box" | "padding-box" | "border-box" | "margin-box" | "fill-box" | "stroke-box" | "view-box" | PGlobal;
307
- mask_position: string | string[] | string[][] | PGlobal;
308
- mask_repeat: string | string[] | PGlobal;
309
- mask_size: string | string[] | "auto" | "cover" | "contain" | PGlobal;
310
- mask_type: "luminance" | "alpha" | PGlobal;
311
- max_block_size: string | "none" | PGlobal;
312
- max_height: string | "none" | "max-content" | "min-content" | "fit-content" | PGlobal;
313
- max_inline_size: string | "none" | PGlobal;
314
- max_width: string | "none" | "max-content" | "min-content" | "fit-content" | PGlobal;
315
- min_block_size: string | "auto" | PGlobal;
316
- min_height: string | "auto" | "max-content" | "min-content" | "fit-content" | PGlobal;
317
- min_inline_size: string | "auto" | PGlobal;
318
- min_width: string | "auto" | "max-content" | "min-content" | "fit-content" | PGlobal;
319
- mix_blend_mode: string | PGlobal;
320
- object_fit: "fill" | "contain" | "cover" | "none" | "scale-down" | PGlobal;
321
- object_position: string | string[] | PGlobal;
322
- offset: string | string[] | PGlobal;
323
- offset_anchor: string | string[] | "auto" | PGlobal;
324
- offset_distance: string | PGlobal;
325
- offset_path: string | "none" | PGlobal;
326
- offset_rotate: string | "auto" | "reverse" | PGlobal;
327
- opacity: string | PGlobal;
328
- order: string | PGlobal;
329
- orphans: string | PGlobal;
330
- outline: string | string[] | PGlobal;
331
- outline_color: string | "invert" | PGlobal;
332
- outline_offset: string | PGlobal;
333
- outline_style: BorderStyleValue | "auto" | PGlobal;
334
- outline_width: string | PGlobal;
335
- overflow: OverflowValue | OverflowMultiValue | PGlobal;
336
- overflow_anchor: "auto" | "none" | PGlobal;
337
- overflow_block: OverflowValue | PGlobal;
338
- overflow_clip_margin: string | "content-box" | PGlobal;
339
- overflow_inline: OverflowValue | PGlobal;
340
- overflow_wrap: "normal" | "break-word" | "anywhere" | PGlobal;
341
- overflow_x: OverflowValue | PGlobal;
342
- overflow_y: OverflowValue | PGlobal;
343
- overscroll_behavior: "auto" | "contain" | "none" | string | string[] | PGlobal;
344
- overscroll_behavior_block: "auto" | "contain" | "none" | PGlobal;
345
- overscroll_behavior_inline: "auto" | "contain" | "none" | PGlobal;
346
- overscroll_behavior_x: "auto" | "contain" | "none" | PGlobal;
347
- overscroll_behavior_y: "auto" | "contain" | "none" | PGlobal;
348
- padding: string | string[] | PBoxModelGlobal;
349
- padding_block: string | string[] | PBoxModelGlobal;
350
- padding_block_end: string | PBoxModelGlobal;
351
- padding_block_start: string | PBoxModelGlobal;
352
- padding_bottom: string | PBoxModelGlobal;
353
- padding_inline: string | string[] | PBoxModelGlobal;
354
- padding_inline_end: string | PBoxModelGlobal;
355
- padding_inline_start: string | PBoxModelGlobal;
356
- padding_left: string | PBoxModelGlobal;
357
- padding_right: string | PBoxModelGlobal;
358
- padding_top: string | PBoxModelGlobal;
359
- page_break_after: "auto" | "always" | "avoid" | "left" | "right" | PGlobal;
360
- page_break_before: "auto" | "always" | "avoid" | "left" | "right" | PGlobal;
361
- page_break_inside: "auto" | "avoid" | PGlobal;
362
- paint_order: "normal" | "fill" | "stroke" | "markers" | string | string[] | PGlobal;
363
- perspective: string | "none" | PGlobal;
364
- perspective_origin: string | string[] | PGlobal;
365
- place_content: string | string[] | PGlobal;
366
- place_items: string | string[] | PGlobal;
367
- place_self: string | string[] | PGlobal;
368
- pointer_events: "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | PGlobal;
369
- position: PositionValue | PPositionGlobal;
370
- quotes: string | string[] | "auto" | "none" | PGlobal;
371
- resize: "none" | "both" | "horizontal" | "vertical" | "block" | "inline" | PGlobal;
372
- right: string | "auto" | PGlobal;
373
- rotate: string | "none" | PGlobal;
374
- row_gap: string | "normal" | PGlobal;
375
- scale: string | string[] | "none" | PGlobal;
376
- scroll_behavior: "auto" | "smooth" | PGlobal;
377
- scroll_margin: string | string[] | PGlobal;
378
- scroll_margin_block: string | string[] | PGlobal;
379
- scroll_margin_block_end: string | PGlobal;
380
- scroll_margin_block_start: string | PGlobal;
381
- scroll_margin_bottom: string | PGlobal;
382
- scroll_margin_inline: string | string[] | PGlobal;
383
- scroll_margin_inline_end: string | PGlobal;
384
- scroll_margin_inline_start: string | PGlobal;
385
- scroll_margin_left: string | PGlobal;
386
- scroll_margin_right: string | PGlobal;
387
- scroll_margin_top: string | PGlobal;
388
- scroll_padding: string | string[] | "auto" | PGlobal;
389
- scroll_padding_block: string | string[] | "auto" | PGlobal;
390
- scroll_padding_block_end: string | "auto" | PGlobal;
391
- scroll_padding_block_start: string | "auto" | PGlobal;
392
- scroll_padding_bottom: string | "auto" | PGlobal;
393
- scroll_padding_inline: string | string[] | "auto" | PGlobal;
394
- scroll_padding_inline_end: string | "auto" | PGlobal;
395
- scroll_padding_inline_start: string | "auto" | PGlobal;
396
- scroll_padding_left: string | "auto" | PGlobal;
397
- scroll_padding_right: string | "auto" | PGlobal;
398
- scroll_padding_top: string | "auto" | PGlobal;
399
- scroll_snap_align: "none" | "start" | "end" | "center" | string | string[] | PGlobal;
400
- scroll_snap_stop: "normal" | "always" | PGlobal;
401
- scroll_snap_type: "none" | "x" | "y" | "block" | "inline" | "both" | string | string[] | PGlobal;
402
- scrollbar_color: string | string[] | "auto" | PGlobal;
403
- scrollbar_width: "auto" | "thin" | "none" | PGlobal;
404
- shape_image_threshold: string | PGlobal;
405
- shape_margin: string | PGlobal;
406
- shape_outside: "none" | "margin-box" | "content-box" | "border-box" | "padding-box" | string | PGlobal;
407
- tab_size: string | PGlobal;
408
- table_layout: "auto" | "fixed" | PGlobal;
409
- text_align: TextAlignValue | PGlobal;
410
- text_align_last: TextAlignValue | "auto" | PGlobal;
411
- text_combine_upright: "none" | "all" | string | PGlobal;
412
- text_decoration: TextDecorationMultiValue | PGlobal;
413
- text_decoration_color: string | PGlobal;
414
- text_decoration_line: TextDecorationLineValue | string | string[] | PGlobal;
415
- text_decoration_skip: "none" | "objects" | "spaces" | "ink" | "edges" | "box-decoration" | string | string[] | PGlobal;
416
- text_decoration_skip_ink: "auto" | "none" | "all" | PGlobal;
417
- text_decoration_style: "solid" | "double" | "dotted" | "dashed" | "wavy" | PGlobal;
418
- text_decoration_thickness: string | "auto" | "from-font" | PGlobal;
419
- text_emphasis: string | string[] | PGlobal;
420
- text_emphasis_color: string | PGlobal;
421
- text_emphasis_position: string | string[] | PGlobal;
422
- text_emphasis_style: "none" | "filled" | "open" | "dot" | "circle" | "double-circle" | "triangle" | "sesame" | string | PGlobal;
423
- text_indent: string | PGlobal;
424
- text_justify: "auto" | "inter-character" | "inter-word" | "none" | PGlobal;
425
- text_orientation: "mixed" | "upright" | "sideways" | PGlobal;
426
- text_overflow: "clip" | "ellipsis" | string | PGlobal;
427
- text_rendering: "auto" | "optimizeSpeed" | "optimizeLegibility" | "geometricPrecision" | PGlobal;
428
- text_shadow: string | string[] | string[][] | "none" | PGlobal;
429
- text_size_adjust: "none" | "auto" | string | PGlobal;
430
- text_transform: TextTransformValue | PGlobal;
431
- text_underline_offset: string | "auto" | PGlobal;
432
- text_underline_position: "auto" | "from-font" | "under" | "left" | "right" | string | string[] | PGlobal;
433
- top: string | "auto" | PGlobal;
434
- touch_action: "auto" | "none" | "pan-x" | "pan-y" | "pan-left" | "pan-right" | "pan-up" | "pan-down" | "pinch-zoom" | "manipulation" | string | string[] | PGlobal;
435
- transform: TransformValue | PGlobal;
436
- transform_box: "content-box" | "border-box" | "fill-box" | "stroke-box" | "view-box" | PGlobal;
437
- transform_origin: string | string[] | string[][] | PGlobal;
438
- transform_style: "flat" | "preserve-3d" | PGlobal;
439
- transition: TransitionValue | PTransitionGlobal;
440
- transition_delay: string | string[] | string[][] | PTransitionGlobal;
441
- transition_duration: string | string[] | string[][] | PTransitionGlobal;
442
- transition_property: TransitionPropertyValue | TransitionPropertyValue[] | TransitionPropertyValue[][] | PTransitionGlobal;
443
- transition_timing_function: TransitionTimingFunctionValue | TransitionTimingFunctionValue[] | TransitionTimingFunctionValue[][] | PTransitionGlobal;
444
- translate: string | string[] | "none" | PGlobal;
445
- unicode_bidi: "normal" | "embed" | "isolate" | "bidi-override" | "isolate-override" | "plaintext" | PGlobal;
446
- user_select: "auto" | "none" | "text" | "contain" | "all" | PGlobal;
447
- vertical_align: "baseline" | "sub" | "super" | "text-top" | "text-bottom" | "middle" | "top" | "bottom" | string | PGlobal;
448
- visibility: "visible" | "hidden" | "collapse" | PGlobal;
449
- white_space: "normal" | "nowrap" | "pre" | "pre-wrap" | "pre-line" | "break-spaces" | PGlobal;
450
- widows: string | PGlobal;
451
- width: string | "auto" | "max-content" | "min-content" | "fit-content" | PGlobal;
452
- will_change: string | string[] | "auto" | PGlobal;
453
- word_break: "normal" | "break-all" | "keep-all" | "break-word" | PGlobal;
454
- word_spacing: string | "normal" | PGlobal;
455
- word_wrap: "normal" | "break-word" | PGlobal;
456
- writing_mode: "horizontal-tb" | "vertical-rl" | "vertical-lr" | "sideways-rl" | "sideways-lr" | PGlobal;
457
- z_index: string | "auto" | PGlobal;
458
- [key: `--${string}`]: string;
459
- }>;
460
- //#endregion
461
- export { Properties as t };