@fangxinyan/lumina 0.1.2 → 0.1.3
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/dist/Typography-NKPWTJCV.css +235 -0
- package/dist/Typography.cjs +29 -0
- package/dist/Typography.cjs.map +1 -0
- package/dist/Typography.d.cts +151 -0
- package/dist/Typography.d.ts +151 -0
- package/dist/Typography.js +4 -0
- package/dist/Typography.js.map +1 -0
- package/dist/chunk-5WF6M47X.cjs +510 -0
- package/dist/chunk-5WF6M47X.cjs.map +1 -0
- package/dist/chunk-GZGZR4FT.js +484 -0
- package/dist/chunk-GZGZR4FT.js.map +1 -0
- package/dist/index.cjs +22 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +217 -0
- package/package.json +1 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCO,IAAM,OAAA,GAAU","file":"index.js","sourcesContent":["/* lumina — public exports */\n\nexport * from \"./components/Icon\";\nexport * from \"./components/Button\";\nexport * from \"./components/Input\";\nexport * from \"./components/Switch\";\nexport * from \"./components/Checkbox\";\nexport * from \"./components/Slider\";\nexport * from \"./components/Select\";\nexport * from \"./components/Tabs\";\nexport * from \"./components/Accordion\";\nexport * from \"./components/Card\";\nexport * from \"./components/Tag\";\nexport * from \"./components/Avatar\";\nexport * from \"./components/Divider\";\nexport * from \"./components/Progress\";\nexport * from \"./components/Modal\";\nexport * from \"./components/Toast\";\nexport * from \"./components/Tooltip\";\nexport * from \"./components/Popover\";\nexport * from \"./components/Alert\";\nexport * from \"./components/Table\";\nexport * from \"./components/Pagination\";\nexport * from \"./components/Calendar\";\nexport * from \"./components/List\";\nexport * from \"./components/AppShell\";\nexport * from \"./components/Empty\";\nexport * from \"./components/Image\";\nexport * from \"./components/Cascader\";\nexport * from \"./components/Typography\";\nexport * from \"./components/Theme\";\n\n/** Package version — bumped by release scripts. */\nexport const VERSION = \"0.1.3\";\n"]}
|
package/dist/styles.css
CHANGED
|
@@ -1908,6 +1908,223 @@ input, textarea, select { font-family: inherit; color: inherit; }
|
|
|
1908
1908
|
}
|
|
1909
1909
|
.cascader-item .chev { margin-left: auto; color: var(--fg-subtle); display: inline-flex; }
|
|
1910
1910
|
.cascader-item.active .chev { color: var(--accent); }
|
|
1911
|
+
/* ============================================================================
|
|
1912
|
+
* Typography
|
|
1913
|
+
* ========================================================================== */
|
|
1914
|
+
.typo-root {
|
|
1915
|
+
font-family: var(--font-sans);
|
|
1916
|
+
color: var(--fg);
|
|
1917
|
+
line-height: 1.7;
|
|
1918
|
+
font-size: 14px;
|
|
1919
|
+
}
|
|
1920
|
+
.typo-root > * + * { margin-top: 0.85em; }
|
|
1921
|
+
.typo-root .typo-title + .typo-paragraph,
|
|
1922
|
+
.typo-root .typo-paragraph + .typo-paragraph { margin-top: 1em; }
|
|
1923
|
+
.typo-root .typo-title { margin-top: 1.2em; }
|
|
1924
|
+
.typo-root > .typo-title:first-child { margin-top: 0; }
|
|
1925
|
+
/* ---- Base ---- */
|
|
1926
|
+
.typo {
|
|
1927
|
+
color: var(--fg);
|
|
1928
|
+
font-family: var(--font-sans);
|
|
1929
|
+
word-wrap: break-word;
|
|
1930
|
+
}
|
|
1931
|
+
/* Semantic colors */
|
|
1932
|
+
.typo.secondary { color: var(--fg-muted); }
|
|
1933
|
+
.typo.success { color: var(--success); }
|
|
1934
|
+
.typo.warning { color: var(--warning); }
|
|
1935
|
+
.typo.danger { color: var(--danger); }
|
|
1936
|
+
.typo.disabled { color: var(--fg-subtle); cursor: not-allowed; user-select: none; }
|
|
1937
|
+
/* Decorations */
|
|
1938
|
+
.typo.strong { font-weight: 600; }
|
|
1939
|
+
.typo.italic { font-style: italic; }
|
|
1940
|
+
.typo.underline { text-decoration: underline; text-underline-offset: 3px; }
|
|
1941
|
+
.typo.del { text-decoration: line-through; text-decoration-thickness: 1.5px; }
|
|
1942
|
+
/* mark / code / kbd render their own elements; we still color the shell */
|
|
1943
|
+
.typo mark {
|
|
1944
|
+
background: color-mix(in oklch, var(--warning) 35%, transparent);
|
|
1945
|
+
color: inherit;
|
|
1946
|
+
padding: 0 3px;
|
|
1947
|
+
border-radius: 3px;
|
|
1948
|
+
}
|
|
1949
|
+
.typo code {
|
|
1950
|
+
font-family: var(--font-mono);
|
|
1951
|
+
font-size: 0.88em;
|
|
1952
|
+
padding: 1px 6px;
|
|
1953
|
+
border-radius: 5px;
|
|
1954
|
+
background: var(--bg-sunken);
|
|
1955
|
+
box-shadow: var(--neu-in-sm);
|
|
1956
|
+
color: var(--accent-ink);
|
|
1957
|
+
margin: 0 2px;
|
|
1958
|
+
}
|
|
1959
|
+
.typo kbd {
|
|
1960
|
+
font-family: var(--font-mono);
|
|
1961
|
+
font-size: 0.82em;
|
|
1962
|
+
padding: 1px 7px;
|
|
1963
|
+
border-radius: 5px;
|
|
1964
|
+
background: var(--bg-raised);
|
|
1965
|
+
box-shadow: var(--neu-flat);
|
|
1966
|
+
border: 1px solid var(--border);
|
|
1967
|
+
color: var(--fg);
|
|
1968
|
+
margin: 0 2px;
|
|
1969
|
+
line-height: 1.4;
|
|
1970
|
+
display: inline-block;
|
|
1971
|
+
}
|
|
1972
|
+
/* ---- Title ---- */
|
|
1973
|
+
.typo-title {
|
|
1974
|
+
display: block;
|
|
1975
|
+
font-family: var(--font-display);
|
|
1976
|
+
font-weight: 700;
|
|
1977
|
+
letter-spacing: -0.01em;
|
|
1978
|
+
line-height: 1.25;
|
|
1979
|
+
color: var(--fg);
|
|
1980
|
+
margin: 0;
|
|
1981
|
+
}
|
|
1982
|
+
.typo-title.h1 { font-size: 32px; letter-spacing: -0.02em; }
|
|
1983
|
+
.typo-title.h2 { font-size: 26px; letter-spacing: -0.015em; }
|
|
1984
|
+
.typo-title.h3 { font-size: 21px; }
|
|
1985
|
+
.typo-title.h4 { font-size: 17px; }
|
|
1986
|
+
.typo-title.h5 { font-size: 14px; }
|
|
1987
|
+
/* ---- Paragraph ---- */
|
|
1988
|
+
.typo-paragraph {
|
|
1989
|
+
display: block;
|
|
1990
|
+
font-size: 14px;
|
|
1991
|
+
line-height: 1.75;
|
|
1992
|
+
margin: 0;
|
|
1993
|
+
color: var(--fg);
|
|
1994
|
+
}
|
|
1995
|
+
/* ---- Text ---- */
|
|
1996
|
+
.typo-text { font-size: inherit; line-height: inherit; }
|
|
1997
|
+
/* ---- Link ---- */
|
|
1998
|
+
.typo-link {
|
|
1999
|
+
color: var(--accent-ink);
|
|
2000
|
+
text-decoration: none;
|
|
2001
|
+
transition: color var(--dur-fast) var(--ease), text-decoration-color var(--dur-fast) var(--ease);
|
|
2002
|
+
cursor: pointer;
|
|
2003
|
+
text-underline-offset: 3px;
|
|
2004
|
+
display: inline-flex;
|
|
2005
|
+
align-items: center;
|
|
2006
|
+
gap: 3px;
|
|
2007
|
+
}
|
|
2008
|
+
.typo-link:hover { color: var(--accent); text-decoration: underline; }
|
|
2009
|
+
.typo-link:focus-visible {
|
|
2010
|
+
outline: 2px solid var(--accent-glow);
|
|
2011
|
+
outline-offset: 2px;
|
|
2012
|
+
border-radius: 2px;
|
|
2013
|
+
}
|
|
2014
|
+
.typo-link.disabled {
|
|
2015
|
+
color: var(--fg-subtle);
|
|
2016
|
+
cursor: not-allowed;
|
|
2017
|
+
pointer-events: none;
|
|
2018
|
+
text-decoration: none;
|
|
2019
|
+
}
|
|
2020
|
+
.typo-link-ext {
|
|
2021
|
+
display: inline-flex;
|
|
2022
|
+
align-items: center;
|
|
2023
|
+
opacity: 0.7;
|
|
2024
|
+
transform: rotate(-45deg);
|
|
2025
|
+
transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
|
|
2026
|
+
}
|
|
2027
|
+
.typo-link:hover .typo-link-ext { opacity: 1; transform: rotate(-45deg) translateX(1px); }
|
|
2028
|
+
/* ---- Action affordances (copy / edit) ---- */
|
|
2029
|
+
.typo-action {
|
|
2030
|
+
display: inline-flex;
|
|
2031
|
+
align-items: center;
|
|
2032
|
+
justify-content: center;
|
|
2033
|
+
width: 22px;
|
|
2034
|
+
height: 22px;
|
|
2035
|
+
margin-left: 6px;
|
|
2036
|
+
border-radius: 7px;
|
|
2037
|
+
cursor: pointer;
|
|
2038
|
+
color: var(--fg-subtle);
|
|
2039
|
+
transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
|
|
2040
|
+
vertical-align: middle;
|
|
2041
|
+
user-select: none;
|
|
2042
|
+
}
|
|
2043
|
+
.typo-action:hover {
|
|
2044
|
+
color: var(--accent-ink);
|
|
2045
|
+
background: var(--bg);
|
|
2046
|
+
box-shadow: var(--neu-flat);
|
|
2047
|
+
}
|
|
2048
|
+
.typo-action:focus-visible {
|
|
2049
|
+
outline: 2px solid var(--accent-glow);
|
|
2050
|
+
outline-offset: 1px;
|
|
2051
|
+
}
|
|
2052
|
+
.typo-copy.copied { color: var(--success); }
|
|
2053
|
+
/* Editable text trigger overlays */
|
|
2054
|
+
.typo-edit-text-trigger {
|
|
2055
|
+
cursor: text;
|
|
2056
|
+
border-radius: 4px;
|
|
2057
|
+
transition: background var(--dur-fast) var(--ease);
|
|
2058
|
+
padding: 0 2px;
|
|
2059
|
+
margin: 0 -2px;
|
|
2060
|
+
}
|
|
2061
|
+
.typo-edit-text-trigger:hover { background: color-mix(in oklch, var(--accent) 8%, transparent); }
|
|
2062
|
+
/* ---- Editor (input / textarea) ---- */
|
|
2063
|
+
.typo.editing { display: block; }
|
|
2064
|
+
.typo-editor {
|
|
2065
|
+
font: inherit;
|
|
2066
|
+
color: inherit;
|
|
2067
|
+
background: var(--bg-sunken);
|
|
2068
|
+
box-shadow: var(--neu-in);
|
|
2069
|
+
border: none;
|
|
2070
|
+
outline: none;
|
|
2071
|
+
width: 100%;
|
|
2072
|
+
border-radius: var(--r-sm);
|
|
2073
|
+
padding: 6px 12px;
|
|
2074
|
+
resize: none;
|
|
2075
|
+
line-height: inherit;
|
|
2076
|
+
letter-spacing: inherit;
|
|
2077
|
+
font-weight: inherit;
|
|
2078
|
+
font-style: inherit;
|
|
2079
|
+
font-size: inherit;
|
|
2080
|
+
font-family: inherit;
|
|
2081
|
+
}
|
|
2082
|
+
.typo-editor:focus {
|
|
2083
|
+
box-shadow: var(--neu-in), 0 0 0 3px var(--accent-glow);
|
|
2084
|
+
}
|
|
2085
|
+
/* ---- Ellipsis ---- */
|
|
2086
|
+
.typo.ellipsis {
|
|
2087
|
+
display: inline-block;
|
|
2088
|
+
max-width: 100%;
|
|
2089
|
+
overflow: hidden;
|
|
2090
|
+
white-space: nowrap;
|
|
2091
|
+
text-overflow: ellipsis;
|
|
2092
|
+
vertical-align: bottom;
|
|
2093
|
+
}
|
|
2094
|
+
.typo.ellipsis-multi {
|
|
2095
|
+
display: -webkit-box;
|
|
2096
|
+
-webkit-box-orient: vertical;
|
|
2097
|
+
overflow: hidden;
|
|
2098
|
+
/* WebkitLineClamp set inline by component */
|
|
2099
|
+
}
|
|
2100
|
+
/* Block-level (paragraph/title) keeps block layout for clamp container */
|
|
2101
|
+
.typo-paragraph.ellipsis,
|
|
2102
|
+
.typo-title.ellipsis {
|
|
2103
|
+
display: block;
|
|
2104
|
+
max-width: 100%;
|
|
2105
|
+
white-space: nowrap;
|
|
2106
|
+
overflow: hidden;
|
|
2107
|
+
text-overflow: ellipsis;
|
|
2108
|
+
}
|
|
2109
|
+
.typo-paragraph.ellipsis-multi,
|
|
2110
|
+
.typo-title.ellipsis-multi {
|
|
2111
|
+
display: -webkit-box;
|
|
2112
|
+
-webkit-box-orient: vertical;
|
|
2113
|
+
overflow: hidden;
|
|
2114
|
+
}
|
|
2115
|
+
.typo-expand {
|
|
2116
|
+
margin-left: 4px;
|
|
2117
|
+
color: var(--accent-ink);
|
|
2118
|
+
cursor: pointer;
|
|
2119
|
+
font-size: 0.92em;
|
|
2120
|
+
user-select: none;
|
|
2121
|
+
}
|
|
2122
|
+
.typo-expand:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
|
|
2123
|
+
/* In dark mode, mark needs slightly higher contrast */
|
|
2124
|
+
[data-theme="dark"] .typo mark {
|
|
2125
|
+
background: color-mix(in oklch, var(--warning) 30%, transparent);
|
|
2126
|
+
color: var(--fg);
|
|
2127
|
+
}
|
|
1911
2128
|
/* ============ TitleBar (Electron) ============ */
|
|
1912
2129
|
.titlebar {
|
|
1913
2130
|
display: flex;
|