@tenphi/tasty 0.0.0-snapshot.c8bdaeb → 0.0.0-snapshot.c8c7b2a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -159
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/chunks/cacheKey.d.ts +1 -0
- package/dist/chunks/cacheKey.js +17 -10
- package/dist/chunks/cacheKey.js.map +1 -1
- package/dist/chunks/definitions.d.ts +1 -1
- package/dist/chunks/definitions.js +3 -5
- package/dist/chunks/definitions.js.map +1 -1
- package/dist/chunks/index.d.ts +1 -0
- package/dist/chunks/renderChunk.d.ts +1 -0
- package/dist/chunks/renderChunk.js +32 -34
- package/dist/chunks/renderChunk.js.map +1 -1
- package/dist/compute-styles.d.ts +31 -0
- package/dist/compute-styles.js +322 -0
- package/dist/compute-styles.js.map +1 -0
- package/dist/config.d.ts +157 -30
- package/dist/config.js +233 -45
- package/dist/config.js.map +1 -1
- package/dist/core/index.d.ts +12 -11
- package/dist/core/index.js +12 -11
- package/dist/counter-style/index.js +51 -0
- package/dist/counter-style/index.js.map +1 -0
- package/dist/debug.d.ts +26 -141
- package/dist/debug.js +359 -639
- package/dist/debug.js.map +1 -1
- package/dist/font-face/index.js +63 -0
- package/dist/font-face/index.js.map +1 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/useCounterStyle.d.ts +36 -0
- package/dist/hooks/useCounterStyle.js +65 -0
- package/dist/hooks/useCounterStyle.js.map +1 -0
- package/dist/hooks/useFontFace.d.ts +45 -0
- package/dist/hooks/useFontFace.js +66 -0
- package/dist/hooks/useFontFace.js.map +1 -0
- package/dist/hooks/useGlobalStyles.d.ts +21 -2
- package/dist/hooks/useGlobalStyles.js +60 -28
- package/dist/hooks/useGlobalStyles.js.map +1 -1
- package/dist/hooks/useKeyframes.d.ts +4 -2
- package/dist/hooks/useKeyframes.js +44 -43
- package/dist/hooks/useKeyframes.js.map +1 -1
- package/dist/hooks/useProperty.d.ts +4 -2
- package/dist/hooks/useProperty.js +36 -31
- package/dist/hooks/useProperty.js.map +1 -1
- package/dist/hooks/useRawCSS.d.ts +13 -44
- package/dist/hooks/useRawCSS.js +91 -16
- package/dist/hooks/useRawCSS.js.map +1 -1
- package/dist/hooks/useStyles.d.ts +3 -3
- package/dist/hooks/useStyles.js +8 -146
- package/dist/hooks/useStyles.js.map +1 -1
- package/dist/index.d.ts +15 -12
- package/dist/index.js +15 -12
- package/dist/injector/index.d.ts +36 -11
- package/dist/injector/index.js +43 -12
- package/dist/injector/index.js.map +1 -1
- package/dist/injector/injector.d.ts +62 -3
- package/dist/injector/injector.js +293 -46
- package/dist/injector/injector.js.map +1 -1
- package/dist/injector/sheet-manager.d.ts +22 -17
- package/dist/injector/sheet-manager.js +64 -79
- package/dist/injector/sheet-manager.js.map +1 -1
- package/dist/injector/types.d.ts +121 -21
- package/dist/keyframes/index.js +1 -1
- package/dist/parser/classify.js +6 -6
- package/dist/parser/classify.js.map +1 -1
- package/dist/parser/const.js +30 -3
- package/dist/parser/const.js.map +1 -1
- package/dist/parser/lru.js +1 -1
- package/dist/parser/lru.js.map +1 -1
- package/dist/parser/parser.js +2 -3
- package/dist/parser/parser.js.map +1 -1
- package/dist/parser/tokenizer.js +1 -1
- package/dist/parser/tokenizer.js.map +1 -1
- package/dist/parser/types.js +1 -1
- package/dist/parser/types.js.map +1 -1
- package/dist/pipeline/conditions.js +1 -1
- package/dist/pipeline/conditions.js.map +1 -1
- package/dist/pipeline/exclusive.js +58 -4
- package/dist/pipeline/exclusive.js.map +1 -1
- package/dist/pipeline/index.d.ts +3 -1
- package/dist/pipeline/index.js +82 -34
- package/dist/pipeline/index.js.map +1 -1
- package/dist/pipeline/materialize.js +436 -123
- package/dist/pipeline/materialize.js.map +1 -1
- package/dist/pipeline/parseStateKey.d.ts +1 -1
- package/dist/pipeline/parseStateKey.js +21 -13
- package/dist/pipeline/parseStateKey.js.map +1 -1
- package/dist/pipeline/simplify.js +181 -7
- package/dist/pipeline/simplify.js.map +1 -1
- package/dist/pipeline/warnings.js +1 -1
- package/dist/plugins/index.d.ts +2 -0
- package/dist/plugins/okhsl-plugin.js +3 -277
- package/dist/plugins/okhsl-plugin.js.map +1 -1
- package/dist/plugins/types.d.ts +20 -2
- package/dist/properties/index.js +83 -19
- package/dist/properties/index.js.map +1 -1
- package/dist/properties/property-type-resolver.d.ts +24 -0
- package/dist/properties/property-type-resolver.js +90 -0
- package/dist/properties/property-type-resolver.js.map +1 -0
- package/dist/rsc-cache.js +79 -0
- package/dist/rsc-cache.js.map +1 -0
- package/dist/ssr/astro-client.d.ts +1 -0
- package/dist/ssr/astro-client.js +19 -0
- package/dist/ssr/astro-client.js.map +1 -0
- package/dist/ssr/astro-middleware.d.ts +15 -0
- package/dist/ssr/astro-middleware.js +19 -0
- package/dist/ssr/astro-middleware.js.map +1 -0
- package/dist/ssr/astro.d.ts +108 -0
- package/dist/ssr/astro.js +149 -0
- package/dist/ssr/astro.js.map +1 -0
- package/dist/ssr/async-storage.d.ts +17 -0
- package/dist/ssr/async-storage.js +44 -0
- package/dist/ssr/async-storage.js.map +1 -0
- package/dist/ssr/collect-auto-properties.js +58 -0
- package/dist/ssr/collect-auto-properties.js.map +1 -0
- package/dist/ssr/collector.d.ts +98 -0
- package/dist/ssr/collector.js +235 -0
- package/dist/ssr/collector.js.map +1 -0
- package/dist/ssr/context.js +16 -0
- package/dist/ssr/context.js.map +1 -0
- package/dist/ssr/format-global-rules.js +22 -0
- package/dist/ssr/format-global-rules.js.map +1 -0
- package/dist/ssr/format-keyframes.js +69 -0
- package/dist/ssr/format-keyframes.js.map +1 -0
- package/dist/ssr/format-property.js +49 -0
- package/dist/ssr/format-property.js.map +1 -0
- package/dist/ssr/format-rules.js +73 -0
- package/dist/ssr/format-rules.js.map +1 -0
- package/dist/ssr/hydrate.d.ts +29 -0
- package/dist/ssr/hydrate.js +45 -0
- package/dist/ssr/hydrate.js.map +1 -0
- package/dist/ssr/index.d.ts +4 -0
- package/dist/ssr/index.js +10 -0
- package/dist/ssr/index.js.map +1 -0
- package/dist/ssr/next.d.ts +46 -0
- package/dist/ssr/next.js +75 -0
- package/dist/ssr/next.js.map +1 -0
- package/dist/ssr/ssr-collector-ref.js +29 -0
- package/dist/ssr/ssr-collector-ref.js.map +1 -0
- package/dist/states/index.js +13 -259
- package/dist/states/index.js.map +1 -1
- package/dist/static/index.js +1 -2
- package/dist/static/inject.d.ts +5 -0
- package/dist/static/inject.js +17 -0
- package/dist/static/inject.js.map +1 -0
- package/dist/static/tastyStatic.js +1 -2
- package/dist/static/tastyStatic.js.map +1 -1
- package/dist/static/types.js +1 -1
- package/dist/styles/border.d.ts +1 -1
- package/dist/styles/border.js +30 -24
- package/dist/styles/border.js.map +1 -1
- package/dist/styles/color.d.ts +1 -1
- package/dist/styles/color.js +11 -8
- package/dist/styles/color.js.map +1 -1
- package/dist/styles/const.js +17 -0
- package/dist/styles/const.js.map +1 -0
- package/dist/styles/createStyle.js +28 -26
- package/dist/styles/createStyle.js.map +1 -1
- package/dist/styles/dimension.js +15 -3
- package/dist/styles/dimension.js.map +1 -1
- package/dist/styles/directional.js +133 -0
- package/dist/styles/directional.js.map +1 -0
- package/dist/styles/display.d.ts +3 -10
- package/dist/styles/display.js +45 -39
- package/dist/styles/display.js.map +1 -1
- package/dist/styles/fade.d.ts +1 -1
- package/dist/styles/fade.js +9 -5
- package/dist/styles/fade.js.map +1 -1
- package/dist/styles/fill.d.ts +2 -2
- package/dist/styles/fill.js +9 -9
- package/dist/styles/fill.js.map +1 -1
- package/dist/styles/flow.js +1 -1
- package/dist/styles/gap.d.ts +1 -1
- package/dist/styles/gap.js +4 -3
- package/dist/styles/gap.js.map +1 -1
- package/dist/styles/height.d.ts +1 -1
- package/dist/styles/height.js +1 -2
- package/dist/styles/height.js.map +1 -1
- package/dist/styles/index.d.ts +0 -1
- package/dist/styles/index.js +3 -4
- package/dist/styles/index.js.map +1 -1
- package/dist/styles/inset.d.ts +1 -29
- package/dist/styles/inset.js +19 -135
- package/dist/styles/inset.js.map +1 -1
- package/dist/styles/list.d.ts +5 -5
- package/dist/styles/list.js +4 -2
- package/dist/styles/list.js.map +1 -1
- package/dist/styles/margin.d.ts +1 -1
- package/dist/styles/margin.js +17 -89
- package/dist/styles/margin.js.map +1 -1
- package/dist/styles/outline.d.ts +1 -1
- package/dist/styles/outline.js +6 -16
- package/dist/styles/outline.js.map +1 -1
- package/dist/styles/padding.d.ts +1 -1
- package/dist/styles/padding.js +17 -89
- package/dist/styles/padding.js.map +1 -1
- package/dist/styles/placement.d.ts +37 -0
- package/dist/styles/placement.js +74 -0
- package/dist/styles/placement.js.map +1 -0
- package/dist/styles/predefined.d.ts +4 -6
- package/dist/styles/predefined.js +9 -13
- package/dist/styles/predefined.js.map +1 -1
- package/dist/styles/preset.d.ts +6 -1
- package/dist/styles/preset.js +54 -53
- package/dist/styles/preset.js.map +1 -1
- package/dist/styles/radius.d.ts +1 -3
- package/dist/styles/radius.js +38 -6
- package/dist/styles/radius.js.map +1 -1
- package/dist/styles/scrollMargin.d.ts +24 -0
- package/dist/styles/scrollMargin.js +32 -0
- package/dist/styles/scrollMargin.js.map +1 -0
- package/dist/styles/scrollbar.d.ts +9 -5
- package/dist/styles/scrollbar.js +31 -92
- package/dist/styles/scrollbar.js.map +1 -1
- package/dist/styles/shadow.d.ts +1 -1
- package/dist/styles/shadow.js +4 -3
- package/dist/styles/shadow.js.map +1 -1
- package/dist/styles/shared.js +17 -0
- package/dist/styles/shared.js.map +1 -0
- package/dist/styles/transition.d.ts +1 -1
- package/dist/styles/transition.js +6 -5
- package/dist/styles/transition.js.map +1 -1
- package/dist/styles/types.d.ts +94 -28
- package/dist/styles/width.d.ts +1 -1
- package/dist/styles/width.js +1 -2
- package/dist/styles/width.js.map +1 -1
- package/dist/tasty.d.ts +46 -894
- package/dist/tasty.js +101 -59
- package/dist/tasty.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/cache-wrapper.js +4 -9
- package/dist/utils/cache-wrapper.js.map +1 -1
- package/dist/utils/case-converter.js +1 -1
- package/dist/utils/color-math.d.ts +46 -0
- package/dist/utils/color-math.js +749 -0
- package/dist/utils/color-math.js.map +1 -0
- package/dist/utils/color-space.d.ts +5 -0
- package/dist/utils/color-space.js +228 -0
- package/dist/utils/color-space.js.map +1 -0
- package/dist/utils/colors.js +3 -2
- package/dist/utils/colors.js.map +1 -1
- package/dist/utils/deps-equal.js +15 -0
- package/dist/utils/deps-equal.js.map +1 -0
- package/dist/utils/dotize.js +1 -1
- package/dist/utils/dotize.js.map +1 -1
- package/dist/utils/filter-base-props.d.ts +1 -1
- package/dist/utils/filter-base-props.js +1 -1
- package/dist/utils/filter-base-props.js.map +1 -1
- package/dist/utils/get-display-name.js +1 -1
- package/dist/utils/has-keys.js +13 -0
- package/dist/utils/has-keys.js.map +1 -0
- package/dist/utils/hash.js +14 -0
- package/dist/utils/hash.js.map +1 -0
- package/dist/utils/is-dev-env.js +1 -1
- package/dist/utils/is-dev-env.js.map +1 -1
- package/dist/utils/is-valid-element-type.js +1 -1
- package/dist/utils/merge-styles.js +1 -2
- package/dist/utils/merge-styles.js.map +1 -1
- package/dist/utils/mod-attrs.d.ts +0 -2
- package/dist/utils/mod-attrs.js +3 -4
- package/dist/utils/mod-attrs.js.map +1 -1
- package/dist/utils/process-tokens.d.ts +3 -17
- package/dist/utils/process-tokens.js +19 -107
- package/dist/utils/process-tokens.js.map +1 -1
- package/dist/utils/resolve-recipes.js +1 -2
- package/dist/utils/resolve-recipes.js.map +1 -1
- package/dist/utils/selector-transform.js +32 -0
- package/dist/utils/selector-transform.js.map +1 -0
- package/dist/utils/string.js +1 -1
- package/dist/utils/styles.d.ts +3 -82
- package/dist/utils/styles.js +29 -399
- package/dist/utils/styles.js.map +1 -1
- package/dist/utils/typography.d.ts +35 -13
- package/dist/utils/typography.js +16 -18
- package/dist/utils/typography.js.map +1 -1
- package/dist/utils/warnings.js +1 -1
- package/dist/zero/babel.d.ts +57 -84
- package/dist/zero/babel.js +217 -37
- package/dist/zero/babel.js.map +1 -1
- package/dist/zero/css-writer.js +1 -2
- package/dist/zero/css-writer.js.map +1 -1
- package/dist/zero/extractor.js +119 -3
- package/dist/zero/extractor.js.map +1 -1
- package/dist/zero/index.js +1 -2
- package/dist/zero/next.d.ts +56 -30
- package/dist/zero/next.js +105 -40
- package/dist/zero/next.js.map +1 -1
- package/docs/README.md +31 -0
- package/docs/adoption.md +298 -0
- package/docs/comparison.md +419 -0
- package/docs/configuration.md +394 -0
- package/docs/debug.md +320 -0
- package/docs/design-system.md +436 -0
- package/docs/dsl.md +688 -0
- package/docs/getting-started.md +217 -0
- package/docs/injector.md +544 -0
- package/docs/methodology.md +616 -0
- package/docs/pipeline.md +519 -0
- package/docs/react-api.md +557 -0
- package/docs/ssr.md +442 -0
- package/docs/styles.md +596 -0
- package/docs/tasty-static.md +532 -0
- package/package.json +68 -36
- package/dist/styles/align.d.ts +0 -15
- package/dist/styles/align.js +0 -14
- package/dist/styles/align.js.map +0 -1
- package/dist/styles/justify.d.ts +0 -15
- package/dist/styles/justify.js +0 -14
- package/dist/styles/justify.js.map +0 -1
- package/dist/styles/styledScrollbar.d.ts +0 -47
- package/dist/styles/styledScrollbar.js +0 -38
- package/dist/styles/styledScrollbar.js.map +0 -1
- package/dist/tokens/typography.d.ts +0 -19
- package/dist/tokens/typography.js +0 -237
- package/dist/tokens/typography.js.map +0 -1
- package/dist/utils/hsl-to-rgb.js +0 -38
- package/dist/utils/hsl-to-rgb.js.map +0 -1
- package/dist/utils/okhsl-to-rgb.js +0 -296
- package/dist/utils/okhsl-to-rgb.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/tasty",
|
|
3
|
-
"version": "0.0.0-snapshot.
|
|
3
|
+
"version": "0.0.0-snapshot.c8c7b2a",
|
|
4
4
|
"description": "A design-system-integrated styling system and DSL for concise, state-aware UI styling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,48 +8,73 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"default": "./dist/index.js"
|
|
15
14
|
},
|
|
16
15
|
"./static": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
"types": "./dist/static/index.d.ts",
|
|
17
|
+
"import": "./dist/static/index.js",
|
|
18
|
+
"default": "./dist/static/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./static/inject": {
|
|
21
|
+
"types": "./dist/static/inject.d.ts",
|
|
22
|
+
"import": "./dist/static/inject.js",
|
|
23
|
+
"default": "./dist/static/inject.js"
|
|
21
24
|
},
|
|
22
25
|
"./babel-plugin": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
26
|
+
"types": "./dist/zero/babel.d.ts",
|
|
27
|
+
"import": "./dist/zero/babel.js",
|
|
28
|
+
"default": "./dist/zero/babel.js"
|
|
27
29
|
},
|
|
28
30
|
"./zero": {
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
31
|
+
"types": "./dist/zero/index.d.ts",
|
|
32
|
+
"import": "./dist/zero/index.js",
|
|
33
|
+
"default": "./dist/zero/index.js"
|
|
33
34
|
},
|
|
34
35
|
"./next": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
36
|
+
"types": "./dist/zero/next.d.ts",
|
|
37
|
+
"import": "./dist/zero/next.js",
|
|
38
|
+
"default": "./dist/zero/next.js"
|
|
39
39
|
},
|
|
40
40
|
"./core": {
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
"types": "./dist/core/index.d.ts",
|
|
42
|
+
"import": "./dist/core/index.js",
|
|
43
|
+
"default": "./dist/core/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./ssr": {
|
|
46
|
+
"types": "./dist/ssr/index.d.ts",
|
|
47
|
+
"import": "./dist/ssr/index.js",
|
|
48
|
+
"default": "./dist/ssr/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./ssr/next": {
|
|
51
|
+
"types": "./dist/ssr/next.d.ts",
|
|
52
|
+
"import": "./dist/ssr/next.js",
|
|
53
|
+
"default": "./dist/ssr/next.js"
|
|
54
|
+
},
|
|
55
|
+
"./ssr/astro": {
|
|
56
|
+
"types": "./dist/ssr/astro.d.ts",
|
|
57
|
+
"import": "./dist/ssr/astro.js",
|
|
58
|
+
"default": "./dist/ssr/astro.js"
|
|
59
|
+
},
|
|
60
|
+
"./ssr/astro-client": {
|
|
61
|
+
"types": "./dist/ssr/astro-client.d.ts",
|
|
62
|
+
"import": "./dist/ssr/astro-client.js",
|
|
63
|
+
"default": "./dist/ssr/astro-client.js"
|
|
45
64
|
},
|
|
46
65
|
"./tasty.config": "./tasty.config.ts"
|
|
47
66
|
},
|
|
48
67
|
"files": [
|
|
49
68
|
"dist",
|
|
69
|
+
"docs",
|
|
50
70
|
"tasty.config.ts"
|
|
51
71
|
],
|
|
52
|
-
"sideEffects":
|
|
72
|
+
"sideEffects": [
|
|
73
|
+
"./dist/ssr/index.js",
|
|
74
|
+
"./dist/ssr/next.js",
|
|
75
|
+
"./dist/ssr/astro.js",
|
|
76
|
+
"./dist/ssr/astro-client.js"
|
|
77
|
+
],
|
|
53
78
|
"engines": {
|
|
54
79
|
"node": ">=20"
|
|
55
80
|
},
|
|
@@ -64,10 +89,13 @@
|
|
|
64
89
|
"format": "prettier --write \"src/**/*.{ts,tsx}\"",
|
|
65
90
|
"format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
|
|
66
91
|
"size": "size-limit",
|
|
92
|
+
"bench": "vitest bench",
|
|
67
93
|
"prepublishOnly": "pnpm run build",
|
|
68
94
|
"changeset": "changeset",
|
|
69
95
|
"version": "changeset version",
|
|
70
|
-
"release": "changeset publish"
|
|
96
|
+
"release": "changeset publish",
|
|
97
|
+
"hygiene": "pnpm lint && pnpm format:check && pnpm typecheck",
|
|
98
|
+
"hygiene:fix": "pnpm lint:fix && pnpm format && pnpm typecheck"
|
|
71
99
|
},
|
|
72
100
|
"repository": {
|
|
73
101
|
"type": "git",
|
|
@@ -94,6 +122,7 @@
|
|
|
94
122
|
"@babel/core": "^7.24.0",
|
|
95
123
|
"@babel/helper-plugin-utils": "^7.24.0",
|
|
96
124
|
"@babel/types": "^7.24.0",
|
|
125
|
+
"jiti": "^2.6.1",
|
|
97
126
|
"react": "^18.0.0 || ^19.0.0"
|
|
98
127
|
},
|
|
99
128
|
"peerDependenciesMeta": {
|
|
@@ -108,6 +137,9 @@
|
|
|
108
137
|
},
|
|
109
138
|
"react": {
|
|
110
139
|
"optional": true
|
|
140
|
+
},
|
|
141
|
+
"jiti": {
|
|
142
|
+
"optional": true
|
|
111
143
|
}
|
|
112
144
|
},
|
|
113
145
|
"dependencies": {
|
|
@@ -115,7 +147,7 @@
|
|
|
115
147
|
},
|
|
116
148
|
"devDependencies": {
|
|
117
149
|
"@babel/core": "^7.24.0",
|
|
118
|
-
"@changesets/changelog-github": "^0.
|
|
150
|
+
"@changesets/changelog-github": "^0.6.0",
|
|
119
151
|
"@changesets/cli": "^2.29.8",
|
|
120
152
|
"@eslint/js": "^10.0.1",
|
|
121
153
|
"@size-limit/esbuild": "^12.0.0",
|
|
@@ -129,12 +161,12 @@
|
|
|
129
161
|
"@vitest/runner": "^4.0.18",
|
|
130
162
|
"eslint": "^10.0.0",
|
|
131
163
|
"eslint-config-prettier": "^10.1.8",
|
|
132
|
-
"jsdom": "^
|
|
164
|
+
"jsdom": "^29.0.1",
|
|
133
165
|
"prettier": "^3.8.1",
|
|
134
166
|
"react": "^19.0.0",
|
|
135
167
|
"size-limit": "^12.0.0",
|
|
136
|
-
"tsdown": "^0.
|
|
137
|
-
"typescript": "^
|
|
168
|
+
"tsdown": "^0.21.7",
|
|
169
|
+
"typescript": "^6.0.2",
|
|
138
170
|
"typescript-eslint": "^8.56.0",
|
|
139
171
|
"vitest": "^4.0.18"
|
|
140
172
|
},
|
|
@@ -143,19 +175,19 @@
|
|
|
143
175
|
"esbuild"
|
|
144
176
|
]
|
|
145
177
|
},
|
|
146
|
-
"packageManager": "pnpm@10.
|
|
178
|
+
"packageManager": "pnpm@10.32.1",
|
|
147
179
|
"size-limit": [
|
|
148
180
|
{
|
|
149
181
|
"name": "main (import *)",
|
|
150
182
|
"path": "dist/index.js",
|
|
151
183
|
"import": "*",
|
|
152
|
-
"limit": "
|
|
184
|
+
"limit": "50 kB"
|
|
153
185
|
},
|
|
154
186
|
{
|
|
155
187
|
"name": "core (import *)",
|
|
156
188
|
"path": "dist/core/index.js",
|
|
157
189
|
"import": "*",
|
|
158
|
-
"limit": "
|
|
190
|
+
"limit": "47.5 kB"
|
|
159
191
|
},
|
|
160
192
|
{
|
|
161
193
|
"name": "static",
|
|
@@ -172,7 +204,7 @@
|
|
|
172
204
|
"path",
|
|
173
205
|
"crypto"
|
|
174
206
|
],
|
|
175
|
-
"limit": "
|
|
207
|
+
"limit": "29.5 kB"
|
|
176
208
|
},
|
|
177
209
|
{
|
|
178
210
|
"name": "babel-plugin",
|
|
@@ -183,7 +215,7 @@
|
|
|
183
215
|
"path",
|
|
184
216
|
"crypto"
|
|
185
217
|
],
|
|
186
|
-
"limit": "
|
|
218
|
+
"limit": "43.5 kB"
|
|
187
219
|
}
|
|
188
220
|
]
|
|
189
221
|
}
|
package/dist/styles/align.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/styles/align.d.ts
|
|
2
|
-
declare function alignStyle({
|
|
3
|
-
align
|
|
4
|
-
}: {
|
|
5
|
-
align?: string;
|
|
6
|
-
}): {
|
|
7
|
-
'align-items': string;
|
|
8
|
-
'align-content': string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
declare namespace alignStyle {
|
|
11
|
-
var __lookupStyles: string[];
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { alignStyle };
|
|
15
|
-
//# sourceMappingURL=align.d.ts.map
|
package/dist/styles/align.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/styles/align.ts
|
|
2
|
-
function alignStyle({ align }) {
|
|
3
|
-
if (typeof align !== "string") return;
|
|
4
|
-
if (!align) return;
|
|
5
|
-
return {
|
|
6
|
-
"align-items": align,
|
|
7
|
-
"align-content": align
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
alignStyle.__lookupStyles = ["align"];
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { alignStyle };
|
|
14
|
-
//# sourceMappingURL=align.js.map
|
package/dist/styles/align.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"align.js","names":[],"sources":["../../src/styles/align.ts"],"sourcesContent":["export function alignStyle({ align }: { align?: string }) {\n if (typeof align !== 'string') return;\n\n if (!align) return;\n\n return {\n 'align-items': align,\n 'align-content': align,\n };\n}\n\nalignStyle.__lookupStyles = ['align'];\n"],"mappings":";AAAA,SAAgB,WAAW,EAAE,SAA6B;AACxD,KAAI,OAAO,UAAU,SAAU;AAE/B,KAAI,CAAC,MAAO;AAEZ,QAAO;EACL,eAAe;EACf,iBAAiB;EAClB;;AAGH,WAAW,iBAAiB,CAAC,QAAQ"}
|
package/dist/styles/justify.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
//#region src/styles/justify.d.ts
|
|
2
|
-
declare function justifyStyle({
|
|
3
|
-
justify
|
|
4
|
-
}: {
|
|
5
|
-
justify?: string;
|
|
6
|
-
}): {
|
|
7
|
-
'justify-items': string;
|
|
8
|
-
'justify-content': string;
|
|
9
|
-
} | undefined;
|
|
10
|
-
declare namespace justifyStyle {
|
|
11
|
-
var __lookupStyles: string[];
|
|
12
|
-
}
|
|
13
|
-
//#endregion
|
|
14
|
-
export { justifyStyle };
|
|
15
|
-
//# sourceMappingURL=justify.d.ts.map
|
package/dist/styles/justify.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/styles/justify.ts
|
|
2
|
-
function justifyStyle({ justify }) {
|
|
3
|
-
if (typeof justify !== "string") return;
|
|
4
|
-
if (!justify) return;
|
|
5
|
-
return {
|
|
6
|
-
"justify-items": justify,
|
|
7
|
-
"justify-content": justify
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
justifyStyle.__lookupStyles = ["justify"];
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { justifyStyle };
|
|
14
|
-
//# sourceMappingURL=justify.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"justify.js","names":[],"sources":["../../src/styles/justify.ts"],"sourcesContent":["export function justifyStyle({ justify }: { justify?: string }) {\n if (typeof justify !== 'string') return;\n\n if (!justify) return;\n\n return {\n 'justify-items': justify,\n 'justify-content': justify,\n };\n}\n\njustifyStyle.__lookupStyles = ['justify'];\n"],"mappings":";AAAA,SAAgB,aAAa,EAAE,WAAiC;AAC9D,KAAI,OAAO,YAAY,SAAU;AAEjC,KAAI,CAAC,QAAS;AAEd,QAAO;EACL,iBAAiB;EACjB,mBAAmB;EACpB;;AAGH,aAAa,iBAAiB,CAAC,UAAU"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//#region src/styles/styledScrollbar.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated `styledScrollbar` is deprecated. Use `scrollbar` instead.
|
|
4
|
-
*/
|
|
5
|
-
declare function styledScrollbarStyle({
|
|
6
|
-
styledScrollbar: val
|
|
7
|
-
}: {
|
|
8
|
-
styledScrollbar?: string | boolean | null;
|
|
9
|
-
}): ({
|
|
10
|
-
$: string;
|
|
11
|
-
display: string;
|
|
12
|
-
'scrollbar-width'?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
'scrollbar-width': string;
|
|
15
|
-
$?: undefined;
|
|
16
|
-
display?: undefined;
|
|
17
|
-
})[] | ({
|
|
18
|
-
$: string;
|
|
19
|
-
width: string;
|
|
20
|
-
height: string;
|
|
21
|
-
'background-color'?: undefined;
|
|
22
|
-
'border-radius'?: undefined;
|
|
23
|
-
border?: undefined;
|
|
24
|
-
'background-clip'?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
$: string;
|
|
27
|
-
'background-color': string;
|
|
28
|
-
width?: undefined;
|
|
29
|
-
height?: undefined;
|
|
30
|
-
'border-radius'?: undefined;
|
|
31
|
-
border?: undefined;
|
|
32
|
-
'background-clip'?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
$: string;
|
|
35
|
-
'background-color': string;
|
|
36
|
-
'border-radius': string;
|
|
37
|
-
border: string;
|
|
38
|
-
'background-clip': string;
|
|
39
|
-
width?: undefined;
|
|
40
|
-
height?: undefined;
|
|
41
|
-
})[] | null;
|
|
42
|
-
declare namespace styledScrollbarStyle {
|
|
43
|
-
var __lookupStyles: string[];
|
|
44
|
-
}
|
|
45
|
-
//#endregion
|
|
46
|
-
export { styledScrollbarStyle };
|
|
47
|
-
//# sourceMappingURL=styledScrollbar.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
//#region src/styles/styledScrollbar.ts
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated `styledScrollbar` is deprecated. Use `scrollbar` instead.
|
|
4
|
-
*/
|
|
5
|
-
function styledScrollbarStyle({ styledScrollbar: val }) {
|
|
6
|
-
if (val == null) return null;
|
|
7
|
-
if (!val) return [{
|
|
8
|
-
$: "::-webkit-scrollbar",
|
|
9
|
-
display: "none"
|
|
10
|
-
}, { "scrollbar-width": "none" }];
|
|
11
|
-
return [
|
|
12
|
-
{
|
|
13
|
-
$: "::-webkit-scrollbar",
|
|
14
|
-
width: "var(--scrollbar-width)",
|
|
15
|
-
height: "var(--scrollbar-width)"
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
$: "::-webkit-scrollbar-track",
|
|
19
|
-
"background-color": "var(--scrollbar-bg-color)"
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
$: "::-webkit-scrollbar-thumb",
|
|
23
|
-
"background-color": "var(--scrollbar-thumb-color)",
|
|
24
|
-
"border-radius": "var(--scrollbar-radius)",
|
|
25
|
-
border: "var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)",
|
|
26
|
-
"background-clip": "padding-box"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
$: "::-webkit-scrollbar-corner",
|
|
30
|
-
"background-color": "var(--scrollbar-corner-color)"
|
|
31
|
-
}
|
|
32
|
-
];
|
|
33
|
-
}
|
|
34
|
-
styledScrollbarStyle.__lookupStyles = ["styledScrollbar"];
|
|
35
|
-
|
|
36
|
-
//#endregion
|
|
37
|
-
export { styledScrollbarStyle };
|
|
38
|
-
//# sourceMappingURL=styledScrollbar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styledScrollbar.js","names":[],"sources":["../../src/styles/styledScrollbar.ts"],"sourcesContent":["/**\n * @deprecated `styledScrollbar` is deprecated. Use `scrollbar` instead.\n */\nexport function styledScrollbarStyle({\n styledScrollbar: val,\n}: {\n styledScrollbar?: string | boolean | null;\n}) {\n if (val == null) return null;\n\n if (!val) {\n return [\n {\n $: '::-webkit-scrollbar',\n display: 'none',\n },\n {\n 'scrollbar-width': 'none',\n },\n ];\n }\n\n return [\n {\n $: '::-webkit-scrollbar',\n width: 'var(--scrollbar-width)',\n height: 'var(--scrollbar-width)',\n },\n {\n $: '::-webkit-scrollbar-track',\n 'background-color': 'var(--scrollbar-bg-color)',\n },\n {\n $: '::-webkit-scrollbar-thumb',\n 'background-color': 'var(--scrollbar-thumb-color)',\n 'border-radius': 'var(--scrollbar-radius)',\n border:\n 'var(--scrollbar-outline-width) solid var(--scrollbar-outline-color)',\n 'background-clip': 'padding-box',\n },\n {\n $: '::-webkit-scrollbar-corner',\n 'background-color': 'var(--scrollbar-corner-color)',\n },\n // Breaks the scrollbar in the latest Chromium browsers\n // {\n // 'scrollbar-width': 'thin',\n // 'scrollbar-color':\n // 'var(--scrollbar-bg-color) var(--scrollbar-thumb-color)',\n // },\n ];\n}\n\nstyledScrollbarStyle.__lookupStyles = ['styledScrollbar'];\n"],"mappings":";;;;AAGA,SAAgB,qBAAqB,EACnC,iBAAiB,OAGhB;AACD,KAAI,OAAO,KAAM,QAAO;AAExB,KAAI,CAAC,IACH,QAAO,CACL;EACE,GAAG;EACH,SAAS;EACV,EACD,EACE,mBAAmB,QACpB,CACF;AAGH,QAAO;EACL;GACE,GAAG;GACH,OAAO;GACP,QAAQ;GACT;EACD;GACE,GAAG;GACH,oBAAoB;GACrB;EACD;GACE,GAAG;GACH,oBAAoB;GACpB,iBAAiB;GACjB,QACE;GACF,mBAAmB;GACpB;EACD;GACE,GAAG;GACH,oBAAoB;GACrB;EAOF;;AAGH,qBAAqB,iBAAiB,CAAC,kBAAkB"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
//#region src/tokens/typography.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Typography preset configuration.
|
|
4
|
-
* Each preset defines font properties that get expanded into CSS custom properties.
|
|
5
|
-
*/
|
|
6
|
-
interface TypographyPreset {
|
|
7
|
-
fontSize: string;
|
|
8
|
-
lineHeight: string;
|
|
9
|
-
letterSpacing?: string;
|
|
10
|
-
fontWeight: string | number;
|
|
11
|
-
boldFontWeight?: string | number;
|
|
12
|
-
iconSize?: string;
|
|
13
|
-
textTransform?: string;
|
|
14
|
-
fontFamily?: string;
|
|
15
|
-
fontStyle?: string;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { TypographyPreset };
|
|
19
|
-
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
//#region src/tokens/typography.ts
|
|
2
|
-
/**
|
|
3
|
-
* Typography presets for headings, text, and special styles.
|
|
4
|
-
*
|
|
5
|
-
* Naming conventions:
|
|
6
|
-
* - `h1`-`h6`: Headings (bold by default)
|
|
7
|
-
* - `t1`-`t4`: Text styles (regular weight)
|
|
8
|
-
* - `t1m`-`t4m`: Text styles medium weight
|
|
9
|
-
* - `m1`-`m3`: Markdown/prose styles (larger line-height)
|
|
10
|
-
* - `p1`-`p4`: Paragraph styles
|
|
11
|
-
* - `c1`-`c2`: Caption/uppercase styles
|
|
12
|
-
* - `tag`: Tag/badge typography
|
|
13
|
-
* - `strong`, `em`: Inline semantic styles
|
|
14
|
-
* - `default`: Base text style
|
|
15
|
-
*/
|
|
16
|
-
const TYPOGRAPHY_PRESETS = {
|
|
17
|
-
text: {
|
|
18
|
-
fontSize: "14px",
|
|
19
|
-
lineHeight: "20px",
|
|
20
|
-
letterSpacing: "0",
|
|
21
|
-
fontWeight: "400"
|
|
22
|
-
},
|
|
23
|
-
h1: {
|
|
24
|
-
fontSize: "36px",
|
|
25
|
-
lineHeight: "44px",
|
|
26
|
-
letterSpacing: "-0.01em",
|
|
27
|
-
fontWeight: "600",
|
|
28
|
-
boldFontWeight: "700",
|
|
29
|
-
iconSize: "40px"
|
|
30
|
-
},
|
|
31
|
-
h2: {
|
|
32
|
-
fontSize: "24px",
|
|
33
|
-
lineHeight: "32px",
|
|
34
|
-
letterSpacing: "0em",
|
|
35
|
-
fontWeight: "600",
|
|
36
|
-
boldFontWeight: "700",
|
|
37
|
-
iconSize: "28px"
|
|
38
|
-
},
|
|
39
|
-
h3: {
|
|
40
|
-
fontSize: "20px",
|
|
41
|
-
lineHeight: "28px",
|
|
42
|
-
letterSpacing: "0em",
|
|
43
|
-
fontWeight: "600",
|
|
44
|
-
boldFontWeight: "700",
|
|
45
|
-
iconSize: "24px"
|
|
46
|
-
},
|
|
47
|
-
h4: {
|
|
48
|
-
fontSize: "18px",
|
|
49
|
-
lineHeight: "24px",
|
|
50
|
-
letterSpacing: "0",
|
|
51
|
-
fontWeight: "600",
|
|
52
|
-
boldFontWeight: "700",
|
|
53
|
-
iconSize: "22px"
|
|
54
|
-
},
|
|
55
|
-
h5: {
|
|
56
|
-
fontSize: "16px",
|
|
57
|
-
lineHeight: "22px",
|
|
58
|
-
letterSpacing: "0",
|
|
59
|
-
fontWeight: "600",
|
|
60
|
-
boldFontWeight: "700",
|
|
61
|
-
iconSize: "20px"
|
|
62
|
-
},
|
|
63
|
-
h6: {
|
|
64
|
-
fontSize: "14px",
|
|
65
|
-
lineHeight: "20px",
|
|
66
|
-
letterSpacing: "0.01em",
|
|
67
|
-
fontWeight: "600",
|
|
68
|
-
boldFontWeight: "700",
|
|
69
|
-
iconSize: "20px"
|
|
70
|
-
},
|
|
71
|
-
t1: {
|
|
72
|
-
fontSize: "18px",
|
|
73
|
-
lineHeight: "24px",
|
|
74
|
-
letterSpacing: "0",
|
|
75
|
-
fontWeight: "400",
|
|
76
|
-
boldFontWeight: "600",
|
|
77
|
-
iconSize: "20px"
|
|
78
|
-
},
|
|
79
|
-
t2: {
|
|
80
|
-
fontSize: "16px",
|
|
81
|
-
lineHeight: "22px",
|
|
82
|
-
letterSpacing: "0",
|
|
83
|
-
fontWeight: "400",
|
|
84
|
-
boldFontWeight: "600",
|
|
85
|
-
iconSize: "20px"
|
|
86
|
-
},
|
|
87
|
-
t2m: {
|
|
88
|
-
fontSize: "16px",
|
|
89
|
-
lineHeight: "22px",
|
|
90
|
-
letterSpacing: "0",
|
|
91
|
-
fontWeight: "500",
|
|
92
|
-
boldFontWeight: "600",
|
|
93
|
-
iconSize: "20px"
|
|
94
|
-
},
|
|
95
|
-
t3: {
|
|
96
|
-
fontSize: "14px",
|
|
97
|
-
lineHeight: "20px",
|
|
98
|
-
letterSpacing: "0",
|
|
99
|
-
fontWeight: "400",
|
|
100
|
-
boldFontWeight: "600",
|
|
101
|
-
iconSize: "18px"
|
|
102
|
-
},
|
|
103
|
-
t3m: {
|
|
104
|
-
fontSize: "14px",
|
|
105
|
-
lineHeight: "20px",
|
|
106
|
-
letterSpacing: "0",
|
|
107
|
-
fontWeight: "500",
|
|
108
|
-
boldFontWeight: "600",
|
|
109
|
-
iconSize: "18px"
|
|
110
|
-
},
|
|
111
|
-
t4: {
|
|
112
|
-
fontSize: "12px",
|
|
113
|
-
lineHeight: "18px",
|
|
114
|
-
letterSpacing: "0",
|
|
115
|
-
fontWeight: "500",
|
|
116
|
-
boldFontWeight: "600",
|
|
117
|
-
iconSize: "16px"
|
|
118
|
-
},
|
|
119
|
-
t4m: {
|
|
120
|
-
fontSize: "12px",
|
|
121
|
-
lineHeight: "18px",
|
|
122
|
-
letterSpacing: "0",
|
|
123
|
-
fontWeight: "600",
|
|
124
|
-
boldFontWeight: "700",
|
|
125
|
-
iconSize: "16px"
|
|
126
|
-
},
|
|
127
|
-
m1: {
|
|
128
|
-
fontSize: "18px",
|
|
129
|
-
lineHeight: "32px",
|
|
130
|
-
letterSpacing: "0",
|
|
131
|
-
fontWeight: "400",
|
|
132
|
-
boldFontWeight: "600",
|
|
133
|
-
iconSize: "22px"
|
|
134
|
-
},
|
|
135
|
-
m2: {
|
|
136
|
-
fontSize: "16px",
|
|
137
|
-
lineHeight: "28px",
|
|
138
|
-
letterSpacing: "0",
|
|
139
|
-
fontWeight: "400",
|
|
140
|
-
boldFontWeight: "600",
|
|
141
|
-
iconSize: "20px"
|
|
142
|
-
},
|
|
143
|
-
m3: {
|
|
144
|
-
fontSize: "14px",
|
|
145
|
-
lineHeight: "24px",
|
|
146
|
-
letterSpacing: "0",
|
|
147
|
-
fontWeight: "400",
|
|
148
|
-
boldFontWeight: "600",
|
|
149
|
-
iconSize: "20px"
|
|
150
|
-
},
|
|
151
|
-
p1: {
|
|
152
|
-
fontSize: "18px",
|
|
153
|
-
lineHeight: "28px",
|
|
154
|
-
letterSpacing: "0",
|
|
155
|
-
fontWeight: "400",
|
|
156
|
-
boldFontWeight: "600",
|
|
157
|
-
iconSize: "22px"
|
|
158
|
-
},
|
|
159
|
-
p2: {
|
|
160
|
-
fontSize: "16px",
|
|
161
|
-
lineHeight: "24px",
|
|
162
|
-
letterSpacing: "0",
|
|
163
|
-
fontWeight: "400",
|
|
164
|
-
boldFontWeight: "600",
|
|
165
|
-
iconSize: "20px"
|
|
166
|
-
},
|
|
167
|
-
p3: {
|
|
168
|
-
fontSize: "14px",
|
|
169
|
-
lineHeight: "22px",
|
|
170
|
-
letterSpacing: "0",
|
|
171
|
-
fontWeight: "400",
|
|
172
|
-
boldFontWeight: "600",
|
|
173
|
-
iconSize: "18px"
|
|
174
|
-
},
|
|
175
|
-
p4: {
|
|
176
|
-
fontSize: "12px",
|
|
177
|
-
lineHeight: "20px",
|
|
178
|
-
letterSpacing: "0",
|
|
179
|
-
fontWeight: "500",
|
|
180
|
-
boldFontWeight: "600",
|
|
181
|
-
iconSize: "16px"
|
|
182
|
-
},
|
|
183
|
-
c1: {
|
|
184
|
-
fontSize: "14px",
|
|
185
|
-
lineHeight: "20px",
|
|
186
|
-
letterSpacing: "0",
|
|
187
|
-
fontWeight: "600",
|
|
188
|
-
boldFontWeight: "700",
|
|
189
|
-
textTransform: "uppercase",
|
|
190
|
-
iconSize: "18px"
|
|
191
|
-
},
|
|
192
|
-
c2: {
|
|
193
|
-
fontSize: "12px",
|
|
194
|
-
lineHeight: "18px",
|
|
195
|
-
letterSpacing: "0.01em",
|
|
196
|
-
fontWeight: "600",
|
|
197
|
-
boldFontWeight: "700",
|
|
198
|
-
textTransform: "uppercase",
|
|
199
|
-
iconSize: "16px"
|
|
200
|
-
},
|
|
201
|
-
tag: {
|
|
202
|
-
fontSize: "12px",
|
|
203
|
-
lineHeight: "18px",
|
|
204
|
-
letterSpacing: "0.01em",
|
|
205
|
-
fontWeight: "600",
|
|
206
|
-
boldFontWeight: "700",
|
|
207
|
-
iconSize: "16px"
|
|
208
|
-
},
|
|
209
|
-
strong: {
|
|
210
|
-
fontSize: "inherit",
|
|
211
|
-
lineHeight: "inherit",
|
|
212
|
-
letterSpacing: "inherit",
|
|
213
|
-
fontFamily: "inherit",
|
|
214
|
-
fontStyle: "inherit",
|
|
215
|
-
fontWeight: "var(--bold-font-weight, var(--default-bold-font-weight, 600))"
|
|
216
|
-
},
|
|
217
|
-
em: {
|
|
218
|
-
fontSize: "inherit",
|
|
219
|
-
lineHeight: "inherit",
|
|
220
|
-
letterSpacing: "inherit",
|
|
221
|
-
fontFamily: "inherit",
|
|
222
|
-
fontStyle: "italic",
|
|
223
|
-
fontWeight: "inherit"
|
|
224
|
-
},
|
|
225
|
-
default: {
|
|
226
|
-
fontSize: "var(--t3-font-size)",
|
|
227
|
-
lineHeight: "var(--t3-line-height)",
|
|
228
|
-
letterSpacing: "var(--t3-letter-spacing)",
|
|
229
|
-
fontWeight: "var(--t3-font-weight)",
|
|
230
|
-
boldFontWeight: "600",
|
|
231
|
-
iconSize: "inherit"
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
//#endregion
|
|
236
|
-
export { TYPOGRAPHY_PRESETS };
|
|
237
|
-
//# sourceMappingURL=typography.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typography.js","names":[],"sources":["../../src/tokens/typography.ts"],"sourcesContent":["/**\n * Typography preset configuration.\n * Each preset defines font properties that get expanded into CSS custom properties.\n */\nexport interface TypographyPreset {\n fontSize: string;\n lineHeight: string;\n letterSpacing?: string;\n fontWeight: string | number;\n boldFontWeight?: string | number;\n iconSize?: string;\n textTransform?: string;\n fontFamily?: string;\n fontStyle?: string;\n}\n\n/**\n * Typography presets for headings, text, and special styles.\n *\n * Naming conventions:\n * - `h1`-`h6`: Headings (bold by default)\n * - `t1`-`t4`: Text styles (regular weight)\n * - `t1m`-`t4m`: Text styles medium weight\n * - `m1`-`m3`: Markdown/prose styles (larger line-height)\n * - `p1`-`p4`: Paragraph styles\n * - `c1`-`c2`: Caption/uppercase styles\n * - `tag`: Tag/badge typography\n * - `strong`, `em`: Inline semantic styles\n * - `default`: Base text style\n */\nexport const TYPOGRAPHY_PRESETS: Record<string, TypographyPreset> = {\n // Text (basic)\n text: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '400',\n },\n\n // Headings (h1-h6)\n h1: {\n fontSize: '36px',\n lineHeight: '44px',\n letterSpacing: '-0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '40px',\n },\n h2: {\n fontSize: '24px',\n lineHeight: '32px',\n letterSpacing: '0em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '28px',\n },\n h3: {\n fontSize: '20px',\n lineHeight: '28px',\n letterSpacing: '0em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '24px',\n },\n h4: {\n fontSize: '18px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '22px',\n },\n h5: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '20px',\n },\n h6: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '20px',\n },\n\n // Text styles (t1-t4)\n t1: {\n fontSize: '18px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t2: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t2m: {\n fontSize: '16px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n t3: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n t3m: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n t4: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '16px',\n },\n t4m: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '16px',\n },\n\n // Markdown/prose styles (m1-m3)\n m1: {\n fontSize: '18px',\n lineHeight: '32px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '22px',\n },\n m2: {\n fontSize: '16px',\n lineHeight: '28px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n m3: {\n fontSize: '14px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n\n // Paragraph styles (p1-p4)\n p1: {\n fontSize: '18px',\n lineHeight: '28px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '22px',\n },\n p2: {\n fontSize: '16px',\n lineHeight: '24px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '20px',\n },\n p3: {\n fontSize: '14px',\n lineHeight: '22px',\n letterSpacing: '0',\n fontWeight: '400',\n boldFontWeight: '600',\n iconSize: '18px',\n },\n p4: {\n fontSize: '12px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '500',\n boldFontWeight: '600',\n iconSize: '16px',\n },\n\n // Caption/uppercase styles (c1-c2)\n c1: {\n fontSize: '14px',\n lineHeight: '20px',\n letterSpacing: '0',\n fontWeight: '600',\n boldFontWeight: '700',\n textTransform: 'uppercase',\n iconSize: '18px',\n },\n c2: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n textTransform: 'uppercase',\n iconSize: '16px',\n },\n\n // Tag typography\n tag: {\n fontSize: '12px',\n lineHeight: '18px',\n letterSpacing: '0.01em',\n fontWeight: '600',\n boldFontWeight: '700',\n iconSize: '16px',\n },\n\n // Inline semantic styles\n strong: {\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit',\n fontFamily: 'inherit',\n fontStyle: 'inherit',\n fontWeight: 'var(--bold-font-weight, var(--default-bold-font-weight, 600))',\n },\n em: {\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit',\n fontFamily: 'inherit',\n fontStyle: 'italic',\n fontWeight: 'inherit',\n },\n\n // Default text style (references t3)\n default: {\n fontSize: 'var(--t3-font-size)',\n lineHeight: 'var(--t3-line-height)',\n letterSpacing: 'var(--t3-letter-spacing)',\n fontWeight: 'var(--t3-font-weight)',\n boldFontWeight: '600',\n iconSize: 'inherit',\n },\n};\n"],"mappings":"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"}
|