Skip to content

Commit

Permalink
chore: sort package json + cleanup dist files (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa authored Oct 1, 2023
1 parent 912eb0a commit 9f50581
Show file tree
Hide file tree
Showing 7 changed files with 331 additions and 394 deletions.
29 changes: 14 additions & 15 deletions packages/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
{
"name": "@hiogawa/unocss-preset-antd",
"version": "2.2.1-pre.5",
"version": "2.2.1-pre.6",
"homepage": "https://github.com/hi-ogawa/unocss-preset-antd/packages/lib",
"repository": {
"type": "git",
"url": "https://github.com/hi-ogawa/unocss-preset-antd",
"directory": "packages/lib"
},
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"types": "./dist/index.d.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/index.*",
"dist/reset-dev.*",
"dist/reset.css"
"dist"
],
"license": "MIT",
"homepage": "https://github.com/hi-ogawa/unocss-preset-antd/packages/lib",
"repository": {
"type": "git",
"url": "https://github.com/hi-ogawa/unocss-preset-antd",
"directory": "packages/lib"
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
Expand All @@ -34,7 +32,8 @@
"release": "pnpm publish --no-git-checks --access public"
},
"devDependencies": {
"antd": "^5.1.7"
"antd": "^5.1.7",
"unocss": "^0.55.7"
},
"peerDependencies": {
"unocss": "*"
Expand Down
180 changes: 167 additions & 13 deletions packages/lib/src/tw/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,18 @@ export type Theme_fontSize =
| `9xl`
;

export type Theme_fontWeight =
| `thin`
| `extralight`
| `light`
| `normal`
| `medium`
| `semibold`
| `bold`
| `extrabold`
| `black`
;

export type Theme_breakpoints =
| `sm`
| `md`
Expand Down Expand Up @@ -587,6 +599,10 @@ export type Theme_containers =
| `prose`
;

export type Theme_zIndex =
| `auto`
;

export type Theme_aria =
| `busy`
| `checked`
Expand Down Expand Up @@ -1042,6 +1058,7 @@ export type RuleStatic =
| `list_outside`
| `list_inside`
| `list_none`
| `list_image_none`
| `list_inherit`
| `list_initial`
| `list_revert`
Expand Down Expand Up @@ -1152,6 +1169,7 @@ export type RuleStatic =
| `justify_between`
| `justify_around`
| `justify_evenly`
| `justify_stretch`
| `justify_inherit`
| `justify_initial`
| `justify_revert`
Expand All @@ -1176,6 +1194,132 @@ export type RuleStatic =
| `justify_self_revert`
| `justify_self_revert_layer`
| `justify_self_unset`
| `flex_justify_start`
| `grid_justify_start`
| `flex_justify_end`
| `grid_justify_end`
| `flex_justify_center`
| `grid_justify_center`
| `flex_justify_between`
| `grid_justify_between`
| `flex_justify_around`
| `grid_justify_around`
| `flex_justify_evenly`
| `grid_justify_evenly`
| `flex_justify_stretch`
| `grid_justify_stretch`
| `flex_justify_inherit`
| `grid_justify_inherit`
| `flex_justify_initial`
| `grid_justify_initial`
| `flex_justify_revert`
| `grid_justify_revert`
| `flex_justify_revert_layer`
| `grid_justify_revert_layer`
| `flex_justify_unset`
| `grid_justify_unset`
| `flex_justify_items_start`
| `grid_justify_items_start`
| `flex_justify_items_end`
| `grid_justify_items_end`
| `flex_justify_items_center`
| `grid_justify_items_center`
| `flex_justify_items_stretch`
| `grid_justify_items_stretch`
| `flex_justify_items_inherit`
| `grid_justify_items_inherit`
| `flex_justify_items_initial`
| `grid_justify_items_initial`
| `flex_justify_items_revert`
| `grid_justify_items_revert`
| `flex_justify_items_revert_layer`
| `grid_justify_items_revert_layer`
| `flex_justify_items_unset`
| `grid_justify_items_unset`
| `flex_justify_self_auto`
| `grid_justify_self_auto`
| `flex_justify_self_start`
| `grid_justify_self_start`
| `flex_justify_self_end`
| `grid_justify_self_end`
| `flex_justify_self_center`
| `grid_justify_self_center`
| `flex_justify_self_stretch`
| `grid_justify_self_stretch`
| `flex_justify_self_inherit`
| `grid_justify_self_inherit`
| `flex_justify_self_initial`
| `grid_justify_self_initial`
| `flex_justify_self_revert`
| `grid_justify_self_revert`
| `flex_justify_self_revert_layer`
| `grid_justify_self_revert_layer`
| `flex_justify_self_unset`
| `grid_justify_self_unset`
| `flex_content_center`
| `grid_content_center`
| `flex_content_start`
| `grid_content_start`
| `flex_content_end`
| `grid_content_end`
| `flex_content_between`
| `grid_content_between`
| `flex_content_around`
| `grid_content_around`
| `flex_content_evenly`
| `grid_content_evenly`
| `flex_content_inherit`
| `grid_content_inherit`
| `flex_content_initial`
| `grid_content_initial`
| `flex_content_revert`
| `grid_content_revert`
| `flex_content_revert_layer`
| `grid_content_revert_layer`
| `flex_content_unset`
| `grid_content_unset`
| `flex_items_start`
| `grid_items_start`
| `flex_items_end`
| `grid_items_end`
| `flex_items_center`
| `grid_items_center`
| `flex_items_baseline`
| `grid_items_baseline`
| `flex_items_stretch`
| `grid_items_stretch`
| `flex_items_inherit`
| `grid_items_inherit`
| `flex_items_initial`
| `grid_items_initial`
| `flex_items_revert`
| `grid_items_revert`
| `flex_items_revert_layer`
| `grid_items_revert_layer`
| `flex_items_unset`
| `grid_items_unset`
| `flex_self_auto`
| `grid_self_auto`
| `flex_self_start`
| `grid_self_start`
| `flex_self_end`
| `grid_self_end`
| `flex_self_center`
| `grid_self_center`
| `flex_self_stretch`
| `grid_self_stretch`
| `flex_self_baseline`
| `grid_self_baseline`
| `flex_self_inherit`
| `grid_self_inherit`
| `flex_self_initial`
| `grid_self_initial`
| `flex_self_revert`
| `grid_self_revert`
| `flex_self_revert_layer`
| `grid_self_revert_layer`
| `flex_self_unset`
| `grid_self_unset`
| `divide_solid`
| `divide_dashed`
| `divide_dotted`
Expand Down Expand Up @@ -1223,12 +1367,14 @@ export type RuleStatic =
| `scroll_revert_layer`
| `scroll_unset`
| `truncate`
| `text_truncate`
| `text_ellipsis`
| `text_clip`
| `break_normal`
| `break_words`
| `break_all`
| `break_keep`
| `break_anywhere`
| `bg_none`
| `box_decoration_slice`
| `box_decoration_clone`
Expand Down Expand Up @@ -1292,11 +1438,9 @@ export type RuleStatic =
| `text_justify`
| `text_start`
| `text_end`
| `text_inherit`
| `text_initial`
| `text_revert`
| `text_revert_layer`
| `text_unset`
| `text_wrap`
| `text_nowrap`
| `text_balance`
| `font_synthesis_weight`
| `font_synthesis_style`
| `font_synthesis_small_caps`
Expand Down Expand Up @@ -1529,6 +1673,7 @@ export type RuleDynamic =
| `brightness_${Autocomplete_percent}`
| `${"backdrop" | "filter"}_blur_${Theme_blur}`
| `blur_${Theme_blur}`
| `filter_blur`
| `ring_offset_opacity_${Autocomplete_percent}`
| `ring_offset_${Theme_colors}`
| `ring_opacity_${Autocomplete_percent}`
Expand Down Expand Up @@ -1561,8 +1706,9 @@ export type RuleDynamic =
| `${"underline" | "decoration"}_${Autocomplete_num}`
| `decoration_${"underline" | "overline" | "line_through"}`
| `text_opacity_${Autocomplete_percent}`
| `text_${"inherit" | "initial" | "revert" | "revert_layer" | "unset"}`
| `text_${Theme_colors}`
| `text_${Theme_colors}`
| `${"color" | "c"}_${Theme_colors}`
| `stacked_fractions`
| `diagonal_fractions`
| `tabular_nums`
Expand All @@ -1571,14 +1717,16 @@ export type RuleDynamic =
| `lining_nums`
| `slashed_zero`
| `ordinal`
| `font_${Theme_fontFamily}`
| `word_spacing_${Theme_wordSpacing}`
| `tracking_${Theme_letterSpacing}`
| `${"leading" | "lh"}_${Theme_lineHeight}`
| `${"font" | "fw"}_${"100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black"}`
| `${"leading" | "lh" | "line_height"}_${Theme_lineHeight}`
| `${"font" | "fw"}_${"100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"}`
| `${"font" | "fw"}_${Theme_fontWeight}`
| `text_size_${Theme_fontSize}`
| `text_${Theme_fontSize}`
| `font_${Theme_fontFamily}`
| `${"vertical" | "align" | "v"}_${"mid" | "base" | "btm" | "baseline" | "top" | "start" | "middle" | "bottom" | "end" | "text_top" | "text_bottom" | "sub" | "super" | "inherit" | "initial" | "revert" | "revert_layer" | "unset"}`
| `${"vertical" | "align" | "v"}_${Autocomplete_percentage}`
| `indent_${Theme_textIndent}`
| `${"m" | "p"}_${"bs" | "be" | "is" | "ie"}_${Autocomplete_num}`
| `${"m" | "p"}_${"block" | "inline"}_${Autocomplete_num}`
Expand Down Expand Up @@ -1662,7 +1810,8 @@ export type RuleDynamic =
| `animate_${"fill" | "mode" | "fill_mode"}`
| `animate_${"fill" | "mode" | "fill_mode"}_${"none" | "forwards" | "backwards" | "both" | "inherit" | "initial" | "revert" | "revert_layer" | "unset"}`
| `animate_${"none" | "forwards" | "backwards" | "both" | "inherit" | "initial" | "revert" | "revert_layer" | "unset"}`
| `animate_delay_${Theme_easing}`
| `animate_ease`
| `animate_ease_${Theme_easing}`
| `animate_delay`
| `animate_delay_${Theme_duration}`
| `animate_duration`
Expand Down Expand Up @@ -1695,6 +1844,8 @@ export type RuleDynamic =
| `${"block" | "inline"}_${Theme_width}`
| `${"max" | "min"}_${"w" | "h" | "block" | "inline"}`
| `${"max" | "min"}_${"w" | "h" | "block" | "inline"}_${Theme_width}`
| `${"w" | "h"}_full`
| `${"max" | "min"}_${"w" | "h"}_full`
| `aspect_${"square" | "video" | "ratio"}`
| `aspect_ratio_${"square" | "video"}`
| `grid_${"rows" | "cols"}_${Autocomplete_num}`
Expand All @@ -1711,13 +1862,16 @@ export type RuleDynamic =
| `${"position" | "pos"}_inset_${"block" | "inline"}_${Theme_spacing}`
| `${"position" | "pos"}_inset_${"bs" | "be" | "is" | "ie"}_${Theme_spacing}`
| `${"position" | "pos"}_${"top" | "left" | "right" | "bottom"}_${Theme_spacing}`
| `${"position" | "pos"}_${Autocomplete_position}`
| `${"position" | "pos"}_${Autocomplete_globalKeyword}`
| `${Autocomplete_position}`
;

export type Variant =
| `print`
| `${"at_" | "lt_" | ""}${Theme_breakpoints}`
| `${"first_letter" | "first_line" | "any_link" | "link" | "visited" | "target" | "open" | "hover" | "active" | "focus_visible" | "focus_within" | "focus" | "autofill" | "enabled" | "disabled" | "read_only" | "read_write" | "placeholder_shown" | "default" | "checked" | "indeterminate" | "valid" | "invalid" | "in_range" | "out_of_range" | "required" | "optional" | "root" | "empty" | "even_of_type" | "even" | "odd_of_type" | "odd" | "first_of_type" | "first" | "last_of_type" | "last" | "only_child" | "only_of_type" | "placeholder" | "before" | "after" | "selection" | "marker" | "file"}`
| `${"not" | "is" | "where" | "has"}_${"any_link" | "link" | "visited" | "target" | "open" | "hover" | "active" | "focus_visible" | "focus_within" | "focus" | "autofill" | "enabled" | "disabled" | "read_only" | "read_write" | "placeholder_shown" | "default" | "checked" | "indeterminate" | "valid" | "invalid" | "in_range" | "out_of_range" | "required" | "optional" | "root" | "empty" | "even_of_type" | "even" | "odd_of_type" | "odd" | "first_of_type" | "first" | "last_of_type" | "last" | "only_child" | "only_of_type" | ""}`
| `${"at_" | "lt_" | "max_" | ""}${Theme_breakpoints}`
| `${"placeholder_shown" | "backdrop_element" | "indeterminate" | "focus_visible" | "first_of_type" | "first_letter" | "out_of_range" | "focus_within" | "even_of_type" | "last_of_type" | "only_of_type" | "odd_of_type" | "placeholder" | "first_line" | "read_write" | "only_child" | "read_only" | "selection" | "any_link" | "autofill" | "optional" | "required" | "in_range" | "disabled" | "visited" | "default" | "checked" | "invalid" | "enabled" | "target" | "active" | "before" | "marker" | "valid" | "empty" | "hover" | "focus" | "first" | "after" | "link" | "open" | "root" | "even" | "last" | "file" | "odd" | "backdrop"}`
| `${"not" | "is" | "where" | "has"}_${"placeholder_shown" | "indeterminate" | "focus_visible" | "first_of_type" | "out_of_range" | "focus_within" | "even_of_type" | "last_of_type" | "only_of_type" | "odd_of_type" | "read_write" | "only_child" | "read_only" | "any_link" | "autofill" | "optional" | "required" | "in_range" | "disabled" | "visited" | "default" | "checked" | "invalid" | "enabled" | "target" | "active" | "valid" | "empty" | "hover" | "focus" | "first" | "link" | "open" | "root" | "even" | "last" | "odd" | ""}`
| `dark`
| `light`
| `rtl`
Expand Down
20 changes: 10 additions & 10 deletions packages/tiny-form/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"name": "@hiogawa/tiny-form",
"version": "0.0.1-pre.10",
"homepage": "https://github.com/hi-ogawa/unocss-preset-antd/tree/main/packages/tiny-form",
"repository": {
"type": "git",
"url": "https://github.com/hi-ogawa/unocss-preset-antd/",
"directory": "packages/tiny-form"
},
"license": "MIT",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
Expand All @@ -17,16 +21,12 @@
"types": "./dist/react.d.ts"
}
},
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"license": "MIT",
"homepage": "https://github.com/hi-ogawa/unocss-preset-antd/tree/main/packages/tiny-form",
"repository": {
"type": "git",
"url": "https://github.com/hi-ogawa/unocss-preset-antd/",
"directory": "packages/tiny-form"
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
Expand Down
Loading

0 comments on commit 9f50581

Please sign in to comment.