@hanzo/ui 5.3.36 → 5.3.39
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/assets/crypto.d.ts.map +1 -1
- package/dist/assets/file.d.ts.map +1 -1
- package/dist/assets/general.d.ts.map +1 -1
- package/dist/assets/hanzo-logo.d.ts.map +1 -1
- package/dist/assets/llm-provider.d.ts.map +1 -1
- package/dist/components/cal-embed.d.ts.map +1 -1
- package/dist/frameworks/react/hooks/index.d.ts.map +1 -1
- package/dist/frameworks/react-native/utils.d.ts.map +1 -1
- package/dist/frameworks/svelte/utils.d.ts.map +1 -1
- package/dist/frameworks/vue/utils.d.ts.map +1 -1
- package/dist/helpers/file.d.ts.map +1 -1
- package/dist/helpers/memoization.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/models/index.js +35 -0
- package/dist/models/index.mjs +35 -0
- package/dist/navigation/index.js +2 -1
- package/dist/navigation/index.mjs +2 -1
- package/dist/primitives/alert.d.ts +1 -1
- package/dist/primitives/cal-embed.d.ts.map +1 -1
- package/dist/primitives/chart.d.ts.map +1 -1
- package/dist/primitives/chat/chat-input.d.ts.map +1 -1
- package/dist/primitives/combobox.d.ts.map +1 -1
- package/dist/primitives/command.d.ts.map +1 -1
- package/dist/primitives/copy-to-clipboard-icon.d.ts.map +1 -1
- package/dist/primitives/dots-loader.d.ts.map +1 -1
- package/dist/primitives/error-message.d.ts.map +1 -1
- package/dist/primitives/file-uploader.d.ts.map +1 -1
- package/dist/primitives/form.d.ts.map +1 -1
- package/dist/primitives/input-otp.d.ts.map +1 -1
- package/dist/primitives/markdown-preview.d.ts.map +1 -1
- package/dist/primitives/pretty-json-print.d.ts.map +1 -1
- package/dist/primitives/resizable.d.ts +4 -20
- package/dist/primitives/resizable.d.ts.map +1 -1
- package/dist/primitives/resizable.js +4 -4
- package/dist/primitives/sonner.d.ts.map +1 -1
- package/dist/primitives/text-link.d.ts.map +1 -1
- package/dist/primitives/textfield.d.ts.map +1 -1
- package/dist/primitives/toast.d.ts.map +1 -1
- package/dist/resizable.js +1 -1
- package/dist/resizable.mjs +1 -1
- package/dist/src/billing/components/account-members.d.ts +10 -0
- package/dist/src/billing/components/account-members.d.ts.map +1 -0
- package/dist/src/billing/components/account-members.js +63 -0
- package/dist/src/billing/components/account-switcher.d.ts +9 -0
- package/dist/src/billing/components/account-switcher.d.ts.map +1 -0
- package/dist/src/billing/components/account-switcher.js +52 -0
- package/dist/src/billing/components/animated-card.d.ts +9 -0
- package/dist/src/billing/components/animated-card.d.ts.map +1 -0
- package/dist/src/billing/components/animated-card.js +161 -0
- package/dist/src/billing/components/billing-settings.d.ts +26 -0
- package/dist/src/billing/components/billing-settings.d.ts.map +1 -0
- package/dist/src/billing/components/billing-settings.js +23 -0
- package/dist/src/billing/components/business-profile-panel.d.ts.map +1 -1
- package/dist/src/billing/components/business-profile-panel.js +9 -8
- package/dist/src/billing/components/card-form.d.ts +18 -0
- package/dist/src/billing/components/card-form.d.ts.map +1 -0
- package/dist/src/billing/components/card-form.js +139 -0
- package/dist/src/billing/components/cost-explorer.d.ts +7 -0
- package/dist/src/billing/components/cost-explorer.d.ts.map +1 -0
- package/dist/src/billing/components/cost-explorer.js +73 -0
- package/dist/src/billing/components/credits-panel.d.ts +8 -0
- package/dist/src/billing/components/credits-panel.d.ts.map +1 -0
- package/dist/src/billing/components/credits-panel.js +58 -0
- package/dist/src/billing/components/guided-setup.d.ts +13 -0
- package/dist/src/billing/components/guided-setup.d.ts.map +1 -0
- package/dist/src/billing/components/guided-setup.js +44 -0
- package/dist/src/billing/components/index.d.ts +34 -0
- package/dist/src/billing/components/index.d.ts.map +1 -1
- package/dist/src/billing/components/index.js +17 -0
- package/dist/src/billing/components/invoice-manager.js +13 -13
- package/dist/src/billing/components/invoices-payments.d.ts +7 -0
- package/dist/src/billing/components/invoices-payments.d.ts.map +1 -0
- package/dist/src/billing/components/invoices-payments.js +44 -0
- package/dist/src/billing/components/overview-dashboard.d.ts +31 -0
- package/dist/src/billing/components/overview-dashboard.d.ts.map +1 -0
- package/dist/src/billing/components/overview-dashboard.js +105 -0
- package/dist/src/billing/components/payment-manager.d.ts.map +1 -1
- package/dist/src/billing/components/payment-manager.js +267 -83
- package/dist/src/billing/components/promotions-panel.d.ts +7 -0
- package/dist/src/billing/components/promotions-panel.d.ts.map +1 -0
- package/dist/src/billing/components/promotions-panel.js +48 -0
- package/dist/src/billing/components/spend-alerts.d.ts +9 -0
- package/dist/src/billing/components/spend-alerts.d.ts.map +1 -0
- package/dist/src/billing/components/spend-alerts.js +99 -0
- package/dist/src/billing/components/square-card-form.d.ts +32 -0
- package/dist/src/billing/components/square-card-form.d.ts.map +1 -0
- package/dist/src/billing/components/square-card-form.js +179 -0
- package/dist/src/billing/components/status-bar.d.ts +12 -0
- package/dist/src/billing/components/status-bar.d.ts.map +1 -0
- package/dist/src/billing/components/status-bar.js +32 -0
- package/dist/src/billing/components/subscription-portal.d.ts +2 -1
- package/dist/src/billing/components/subscription-portal.d.ts.map +1 -1
- package/dist/src/billing/components/subscription-portal.js +123 -26
- package/dist/src/billing/components/support-tiers-panel.d.ts +6 -0
- package/dist/src/billing/components/support-tiers-panel.d.ts.map +1 -0
- package/dist/src/billing/components/support-tiers-panel.js +90 -0
- package/dist/src/billing/components/tax-compliance-panel.js +5 -5
- package/dist/src/billing/components/transactions-panel.d.ts +8 -0
- package/dist/src/billing/components/transactions-panel.d.ts.map +1 -0
- package/dist/src/billing/components/transactions-panel.js +64 -0
- package/dist/src/billing/components/usage-panel.d.ts +7 -0
- package/dist/src/billing/components/usage-panel.d.ts.map +1 -0
- package/dist/src/billing/components/usage-panel.js +64 -0
- package/dist/src/billing/types/index.d.ts +136 -1
- package/dist/src/billing/types/index.d.ts.map +1 -1
- package/dist/src/form/form.d.ts.map +1 -1
- package/dist/src/hooks/use-copy-clipboard.d.ts.map +1 -1
- package/dist/src/hooks/use-fill-ids.d.ts.map +1 -1
- package/dist/src/hooks/use-scroll-restoration.d.ts.map +1 -1
- package/dist/src/models/ModelCard.d.ts +25 -0
- package/dist/src/models/ModelCard.d.ts.map +1 -0
- package/dist/src/models/ModelCard.js +73 -0
- package/dist/src/models/ModelLibrary.d.ts +41 -0
- package/dist/src/models/ModelLibrary.d.ts.map +1 -0
- package/dist/src/models/ModelLibrary.js +63 -0
- package/dist/src/models/ModelTable.d.ts +17 -0
- package/dist/src/models/ModelTable.d.ts.map +1 -0
- package/dist/src/models/ModelTable.js +35 -0
- package/dist/src/models/ZenEnso.d.ts +17 -0
- package/dist/src/models/ZenEnso.d.ts.map +1 -0
- package/dist/src/models/ZenEnso.js +50 -0
- package/dist/src/models/index.d.ts +23 -0
- package/dist/src/models/index.d.ts.map +1 -0
- package/dist/src/models/index.js +18 -0
- package/dist/src/models/types.d.ts +40 -0
- package/dist/src/models/types.d.ts.map +1 -0
- package/dist/src/models/types.js +7 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts +8 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/AppSwitcher.js +19 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts +9 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/BeamAvatar.js +38 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts +28 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoCommandPalette.js +124 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts +37 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoHeader.js +43 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts +17 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/HanzoMark.js +57 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts +15 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/UserAvatar.js +44 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts +11 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/UserOrgDropdown.js +26 -0
- package/dist/src/navigation/hanzo-shell/index.d.ts +14 -0
- package/dist/src/navigation/hanzo-shell/index.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/index.js +9 -0
- package/dist/src/navigation/hanzo-shell/types.d.ts +49 -0
- package/dist/src/navigation/hanzo-shell/types.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/types.js +32 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts +16 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.d.ts.map +1 -0
- package/dist/src/navigation/hanzo-shell/useHanzoAuth.js +93 -0
- package/dist/src/navigation/index.d.ts +2 -0
- package/dist/src/navigation/index.d.ts.map +1 -1
- package/dist/src/navigation/index.js +2 -0
- package/dist/src/ui/banner.d.ts +1 -1
- package/dist/util/blob.d.ts.map +1 -1
- package/dist/util/blob.js +1 -1
- package/dist/util/date.d.ts.map +1 -1
- package/dist/util/debounce.d.ts.map +1 -1
- package/dist/util/file.d.ts.map +1 -1
- package/dist/util/format-and-abbreviate-as-currency.d.ts +7 -1
- package/dist/util/format-and-abbreviate-as-currency.d.ts.map +1 -1
- package/dist/util/format-text.d.ts.map +1 -1
- package/dist/util/format-to-max-char.d.ts +7 -1
- package/dist/util/format-to-max-char.d.ts.map +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/util/number-abbreviate.d.ts.map +1 -1
- package/dist/util/specifier.d.ts.map +1 -1
- package/dist/util/step-animation.d.ts.map +1 -1
- package/package.json +20 -7
- package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts +0 -595
- package/dist/tailwind/typo-plugin/get-plugin-styles.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/get-plugin-styles.js +0 -661
- package/dist/tailwind/typo-plugin/index.d.ts +0 -3
- package/dist/tailwind/typo-plugin/index.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/index.js +0 -102
- package/dist/tailwind/typo-plugin/utils.d.ts +0 -6
- package/dist/tailwind/typo-plugin/utils.d.ts.map +0 -1
- package/dist/tailwind/typo-plugin/utils.js +0 -47
|
@@ -1,661 +0,0 @@
|
|
|
1
|
-
import { round, pxToRem, pxToEm, } from '../../util';
|
|
2
|
-
const typographyColorTheme = {
|
|
3
|
-
// vars are defined in global.css
|
|
4
|
-
// and dark mode is handled at that level.
|
|
5
|
-
'--tw-typo-plugin-body': "var(--hz-ui-fg-body)",
|
|
6
|
-
'--tw-typo-plugin-headings': "var(--hz-ui-fg-0)",
|
|
7
|
-
'--tw-typo-plugin-links': "var(--hz-ui-fg-0)",
|
|
8
|
-
'--tw-typo-plugin-links-hover': "var(--hz-ui-fg-2)",
|
|
9
|
-
'--tw-typo-plugin-bold': "var(--hz-ui-fg-0)",
|
|
10
|
-
'--tw-typo-plugin-counters': "var(--hz-ui-fg-4)",
|
|
11
|
-
'--tw-typo-plugin-bullets': "var(--hz-ui-fg-2)",
|
|
12
|
-
'--tw-typo-plugin-hr': "var(--hz-ui-fg-2)",
|
|
13
|
-
'--tw-typo-plugin-quotes': "var(--hz-ui-fg-body)",
|
|
14
|
-
'--tw-typo-plugin-quote-borders': "var(--hz-ui-fg-3)",
|
|
15
|
-
'--tw-typo-plugin-captions': "var(--hz-ui-fg-2)",
|
|
16
|
-
'--tw-typo-plugin-kbd': "var(--hz-ui-fg-0)",
|
|
17
|
-
'--tw-typo-plugin-kbd-shadows': "var(--hz-ui-fg-1)",
|
|
18
|
-
'--tw-typo-plugin-code': "var(--hz-ui-fg-0)",
|
|
19
|
-
'--tw-typo-plugin-pre-code': "var(--hz-ui-fg-1)",
|
|
20
|
-
'--tw-typo-plugin-pre-bg': "var(--hz-ui-bg-1)",
|
|
21
|
-
'--tw-typo-plugin-th-borders': "var(--hz-ui-fg-2)",
|
|
22
|
-
'--tw-typo-plugin-td-borders': "var(--hz-ui-fg-3)",
|
|
23
|
-
};
|
|
24
|
-
const defaultCSS = {
|
|
25
|
-
color: 'var(--tw-typo-plugin-body)',
|
|
26
|
-
// YUCK maxWidth: '65ch',
|
|
27
|
-
p: {
|
|
28
|
-
textAlign: 'inherit'
|
|
29
|
-
}, // Required to maintain correct order when merging
|
|
30
|
-
'p:first-child': {},
|
|
31
|
-
'p:last-child': {},
|
|
32
|
-
a: {
|
|
33
|
-
color: 'var(--tw-typo-plugin-links)',
|
|
34
|
-
textDecoration: 'underline',
|
|
35
|
-
fontWeight: '400',
|
|
36
|
-
},
|
|
37
|
-
'a:hover': {
|
|
38
|
-
color: 'var(--tw-typo-plugin-links-hover)',
|
|
39
|
-
},
|
|
40
|
-
blockquote: {
|
|
41
|
-
fontWeight: '400',
|
|
42
|
-
fontStyle: 'italic',
|
|
43
|
-
color: 'var(--tw-typo-plugin-quotes)',
|
|
44
|
-
quotes: '"\\201C""\\201D""\\2018""\\2019"',
|
|
45
|
-
},
|
|
46
|
-
//'blockquote::before': {},
|
|
47
|
-
//'blockquote::after': {},
|
|
48
|
-
'blockquote p:first-of-type::before': {
|
|
49
|
-
content: 'open-quote',
|
|
50
|
-
},
|
|
51
|
-
'blockquote p:last-of-type::after': {
|
|
52
|
-
content: 'close-quote',
|
|
53
|
-
},
|
|
54
|
-
'blockquote strong': {
|
|
55
|
-
color: 'inherit',
|
|
56
|
-
},
|
|
57
|
-
cite: {
|
|
58
|
-
display: 'block',
|
|
59
|
-
fontStyle: 'normal',
|
|
60
|
-
textAlign: 'right',
|
|
61
|
-
color: 'var(--tw-typo-plugin-quotes)',
|
|
62
|
-
},
|
|
63
|
-
ol: {
|
|
64
|
-
listStyleType: 'decimal',
|
|
65
|
-
},
|
|
66
|
-
ul: {
|
|
67
|
-
//listStyleType: 'disc',
|
|
68
|
-
},
|
|
69
|
-
'ol > li::marker': {
|
|
70
|
-
fontWeight: '400',
|
|
71
|
-
color: 'var(--tw-typo-plugin-counters)',
|
|
72
|
-
},
|
|
73
|
-
'ul > li::marker': {
|
|
74
|
-
color: 'var(--tw-typo-plugin-bullets)',
|
|
75
|
-
},
|
|
76
|
-
'ul > li::before': {},
|
|
77
|
-
hr: {
|
|
78
|
-
borderColor: 'var(--tw-typo-plugin-hr)',
|
|
79
|
-
borderTopWidth: 1,
|
|
80
|
-
},
|
|
81
|
-
h1: {
|
|
82
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
83
|
-
fontWeight: '800',
|
|
84
|
-
textAlign: 'inherit',
|
|
85
|
-
textTransform: 'uppercase'
|
|
86
|
-
},
|
|
87
|
-
h2: {
|
|
88
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
89
|
-
fontWeight: '700',
|
|
90
|
-
textAlign: 'inherit',
|
|
91
|
-
textTransform: 'uppercase'
|
|
92
|
-
},
|
|
93
|
-
h3: {
|
|
94
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
95
|
-
fontWeight: '600',
|
|
96
|
-
textAlign: 'inherit',
|
|
97
|
-
textTransform: 'uppercase'
|
|
98
|
-
},
|
|
99
|
-
h4: {
|
|
100
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
101
|
-
fontWeight: '600',
|
|
102
|
-
textAlign: 'inherit'
|
|
103
|
-
},
|
|
104
|
-
h5: {
|
|
105
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
106
|
-
fontWeight: '600',
|
|
107
|
-
textAlign: 'inherit'
|
|
108
|
-
},
|
|
109
|
-
h6: {
|
|
110
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
111
|
-
textAlign: 'inherit'
|
|
112
|
-
},
|
|
113
|
-
img: {},
|
|
114
|
-
'img:first-child': {},
|
|
115
|
-
'img:last-child': {},
|
|
116
|
-
picture: {
|
|
117
|
-
display: 'block',
|
|
118
|
-
},
|
|
119
|
-
strong: {
|
|
120
|
-
color: 'var(--tw-typo-plugin-bold)',
|
|
121
|
-
fontWeight: '600',
|
|
122
|
-
},
|
|
123
|
-
video: {},
|
|
124
|
-
kbd: {
|
|
125
|
-
fontWeight: '500',
|
|
126
|
-
fontFamily: 'inherit',
|
|
127
|
-
color: 'var(--tw-typo-plugin-kbd)',
|
|
128
|
-
boxShadow: '0 0 0 1px rgb(var(--tw-typo-plugin-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-typo-plugin-kbd-shadows) / 10%)',
|
|
129
|
-
},
|
|
130
|
-
code: {
|
|
131
|
-
color: 'var(--tw-typo-plugin-code)',
|
|
132
|
-
fontWeight: '500',
|
|
133
|
-
},
|
|
134
|
-
'code::before': {
|
|
135
|
-
content: '"`"',
|
|
136
|
-
},
|
|
137
|
-
'code::after': {
|
|
138
|
-
content: '"`"',
|
|
139
|
-
},
|
|
140
|
-
'a code': {
|
|
141
|
-
color: 'inherit',
|
|
142
|
-
},
|
|
143
|
-
'h1 code': {
|
|
144
|
-
color: 'inherit',
|
|
145
|
-
},
|
|
146
|
-
'h2 code': {
|
|
147
|
-
color: 'inherit',
|
|
148
|
-
},
|
|
149
|
-
'h3 code': {
|
|
150
|
-
color: 'inherit',
|
|
151
|
-
},
|
|
152
|
-
'h4 code': {
|
|
153
|
-
color: 'inherit',
|
|
154
|
-
},
|
|
155
|
-
'h5 code': {
|
|
156
|
-
color: 'inherit',
|
|
157
|
-
},
|
|
158
|
-
'h6 code': {
|
|
159
|
-
color: 'inherit',
|
|
160
|
-
},
|
|
161
|
-
'blockquote code': {
|
|
162
|
-
color: 'inherit',
|
|
163
|
-
},
|
|
164
|
-
'thead th code': {
|
|
165
|
-
color: 'inherit',
|
|
166
|
-
},
|
|
167
|
-
pre: {
|
|
168
|
-
color: 'var(--tw-typo-plugin-pre-code)',
|
|
169
|
-
backgroundColor: 'var(--tw-typo-plugin-pre-bg)',
|
|
170
|
-
overflowX: 'auto',
|
|
171
|
-
fontWeight: '400',
|
|
172
|
-
},
|
|
173
|
-
'pre code': {
|
|
174
|
-
backgroundColor: 'transparent',
|
|
175
|
-
borderWidth: '0',
|
|
176
|
-
borderRadius: '0',
|
|
177
|
-
padding: '0',
|
|
178
|
-
fontWeight: 'inherit',
|
|
179
|
-
color: 'inherit',
|
|
180
|
-
fontSize: 'inherit',
|
|
181
|
-
fontFamily: 'inherit',
|
|
182
|
-
lineHeight: 'inherit',
|
|
183
|
-
},
|
|
184
|
-
'pre code::before': {
|
|
185
|
-
content: 'none',
|
|
186
|
-
},
|
|
187
|
-
'pre code::after': {
|
|
188
|
-
content: 'none',
|
|
189
|
-
},
|
|
190
|
-
table: {
|
|
191
|
-
width: '100%',
|
|
192
|
-
tableLayout: 'auto',
|
|
193
|
-
textAlign: 'left',
|
|
194
|
-
},
|
|
195
|
-
thead: {
|
|
196
|
-
borderBottomWidth: '1px',
|
|
197
|
-
borderBottomColor: 'var(--tw-typo-plugin-th-borders)',
|
|
198
|
-
},
|
|
199
|
-
'thead th': {
|
|
200
|
-
color: 'var(--tw-typo-plugin-headings)',
|
|
201
|
-
fontWeight: '600',
|
|
202
|
-
verticalAlign: 'bottom',
|
|
203
|
-
},
|
|
204
|
-
'tbody tr': {},
|
|
205
|
-
'tbody tr:last-child': {},
|
|
206
|
-
'tbody td': {
|
|
207
|
-
verticalAlign: 'baseline',
|
|
208
|
-
},
|
|
209
|
-
tfoot: {
|
|
210
|
-
borderTopWidth: '1px',
|
|
211
|
-
borderTopColor: 'var(--tw-typo-plugin-th-borders)',
|
|
212
|
-
},
|
|
213
|
-
'tfoot td': {
|
|
214
|
-
verticalAlign: 'top',
|
|
215
|
-
},
|
|
216
|
-
};
|
|
217
|
-
const defaultModifiers = (base) => ({
|
|
218
|
-
base: {
|
|
219
|
-
css: [
|
|
220
|
-
{
|
|
221
|
-
fontSize: '1rem',
|
|
222
|
-
lineHeight: 1.4,
|
|
223
|
-
p: {
|
|
224
|
-
marginTop: '0.33rem',
|
|
225
|
-
marginBottom: '0.33rem',
|
|
226
|
-
},
|
|
227
|
-
'p:first-child': {
|
|
228
|
-
marginTop: 0,
|
|
229
|
-
},
|
|
230
|
-
'p:last-child': {
|
|
231
|
-
marginBottom: 0,
|
|
232
|
-
},
|
|
233
|
-
a: {},
|
|
234
|
-
'a:hover': {},
|
|
235
|
-
blockquote: {
|
|
236
|
-
//color: 'blue', //var(--tw-typo-plugin-quotes)',
|
|
237
|
-
//marginTop: pxToEm(32, 20),
|
|
238
|
-
//marginBottom: pxToEm(32, 20),
|
|
239
|
-
//paddingLeft: pxToEm(20, 20),
|
|
240
|
-
},
|
|
241
|
-
//'blockquote::before': {},
|
|
242
|
-
//'blockquote::after': {},
|
|
243
|
-
'blockquote p:first-of-type::before': {},
|
|
244
|
-
'blockquote p:last-of-type::after': {},
|
|
245
|
-
cite: {},
|
|
246
|
-
ol: {
|
|
247
|
-
fontSize: '1rem',
|
|
248
|
-
paddingLeft: '1.5rem',
|
|
249
|
-
margin: 0,
|
|
250
|
-
marginLeft: '-5px',
|
|
251
|
-
},
|
|
252
|
-
ul: {
|
|
253
|
-
fontSize: '1rem',
|
|
254
|
-
paddingLeft: '1.5rem',
|
|
255
|
-
margin: 0,
|
|
256
|
-
marginLeft: '-0.6rem',
|
|
257
|
-
listStylePosition: 'outside',
|
|
258
|
-
listStyleType: "'\u25BC'"
|
|
259
|
-
},
|
|
260
|
-
li: {},
|
|
261
|
-
'ol > li': {
|
|
262
|
-
paddingLeft: '0.4rem',
|
|
263
|
-
},
|
|
264
|
-
'ul > li': {
|
|
265
|
-
paddingLeft: '0.75rem',
|
|
266
|
-
marginBottom: '0.75rem',
|
|
267
|
-
},
|
|
268
|
-
'ul > li:last-child': {
|
|
269
|
-
marginBottom: 0,
|
|
270
|
-
},
|
|
271
|
-
'> ul > li p': {
|
|
272
|
-
margin: 0,
|
|
273
|
-
display: 'inline'
|
|
274
|
-
},
|
|
275
|
-
hr: {},
|
|
276
|
-
h1: {
|
|
277
|
-
fontSize: pxToRem(40, base),
|
|
278
|
-
lineHeight: 1.2,
|
|
279
|
-
},
|
|
280
|
-
h2: {
|
|
281
|
-
fontSize: pxToRem(36, base),
|
|
282
|
-
lineHeight: 1.2,
|
|
283
|
-
},
|
|
284
|
-
h3: {
|
|
285
|
-
fontSize: '1.4rem',
|
|
286
|
-
lineHeight: 1.2,
|
|
287
|
-
},
|
|
288
|
-
h4: {
|
|
289
|
-
marginTop: '0.5rem',
|
|
290
|
-
marginBottom: '0.5rem',
|
|
291
|
-
fontSize: '1.3rem',
|
|
292
|
-
lineHeight: 1.2,
|
|
293
|
-
},
|
|
294
|
-
h5: {
|
|
295
|
-
marginTop: '0.5rem',
|
|
296
|
-
marginBottom: '0.5rem',
|
|
297
|
-
fontSize: '1.2rem',
|
|
298
|
-
lineHeight: 1.4,
|
|
299
|
-
},
|
|
300
|
-
h6: {
|
|
301
|
-
marginTop: '0.5rem',
|
|
302
|
-
marginBottom: '0.5rem',
|
|
303
|
-
fontSize: '1.15rem',
|
|
304
|
-
lineHeight: 1.3,
|
|
305
|
-
},
|
|
306
|
-
'hr + *': {
|
|
307
|
-
marginTop: '0',
|
|
308
|
-
},
|
|
309
|
-
'h2 + *': {
|
|
310
|
-
marginTop: '0',
|
|
311
|
-
},
|
|
312
|
-
'h3 + *': {
|
|
313
|
-
marginTop: '0',
|
|
314
|
-
},
|
|
315
|
-
'h4 + *': {
|
|
316
|
-
marginTop: '0',
|
|
317
|
-
},
|
|
318
|
-
img: {
|
|
319
|
-
marginTop: '0.5rem',
|
|
320
|
-
marginBottom: '0.5rem',
|
|
321
|
-
},
|
|
322
|
-
'img:first-child': {
|
|
323
|
-
marginTop: 0,
|
|
324
|
-
},
|
|
325
|
-
'img:last-child': {
|
|
326
|
-
marginBottom: 0,
|
|
327
|
-
},
|
|
328
|
-
picture: {
|
|
329
|
-
marginTop: pxToRem(20, base),
|
|
330
|
-
marginBottom: pxToRem(20, base),
|
|
331
|
-
},
|
|
332
|
-
'picture > img': {
|
|
333
|
-
marginTop: '0',
|
|
334
|
-
marginBottom: '0',
|
|
335
|
-
},
|
|
336
|
-
video: {
|
|
337
|
-
marginTop: pxToRem(20, base),
|
|
338
|
-
marginBottom: pxToRem(20, base),
|
|
339
|
-
},
|
|
340
|
-
kbd: {
|
|
341
|
-
fontSize: pxToEm(14, 16),
|
|
342
|
-
borderRadius: pxToRem(5, base),
|
|
343
|
-
paddingTop: pxToEm(3, 16),
|
|
344
|
-
paddingRight: pxToEm(6, 16),
|
|
345
|
-
paddingBottom: pxToEm(3, 16),
|
|
346
|
-
paddingLeft: pxToEm(6, 16),
|
|
347
|
-
},
|
|
348
|
-
code: {
|
|
349
|
-
fontSize: pxToEm(14, 16),
|
|
350
|
-
},
|
|
351
|
-
'h2 code': {
|
|
352
|
-
fontSize: pxToEm(21, 24),
|
|
353
|
-
},
|
|
354
|
-
'h3 code': {
|
|
355
|
-
fontSize: pxToEm(18, 20),
|
|
356
|
-
},
|
|
357
|
-
pre: {
|
|
358
|
-
fontSize: pxToRem(14, 16),
|
|
359
|
-
lineHeight: round(24 / 14),
|
|
360
|
-
marginTop: pxToEm(24, 14),
|
|
361
|
-
marginBottom: pxToEm(24, 14),
|
|
362
|
-
borderRadius: pxToRem(6, base),
|
|
363
|
-
paddingTop: pxToEm(12, 14),
|
|
364
|
-
paddingRight: pxToEm(16, 14),
|
|
365
|
-
paddingBottom: pxToEm(12, 14),
|
|
366
|
-
paddingLeft: pxToEm(16, 14),
|
|
367
|
-
},
|
|
368
|
-
/*
|
|
369
|
-
'> ul > li > *:first-child': {},
|
|
370
|
-
'> ul > li > *:last-child': {},
|
|
371
|
-
'> ol > li > *:first-child': {},
|
|
372
|
-
'> ol > li > *:last-child': {},
|
|
373
|
-
*/
|
|
374
|
-
'ul ul, ul ol, ol ul, ol ol': {
|
|
375
|
-
marginTop: pxToRem(12, base),
|
|
376
|
-
marginBottom: pxToRem(12, base),
|
|
377
|
-
},
|
|
378
|
-
dl: {
|
|
379
|
-
marginTop: pxToEm(20, 16),
|
|
380
|
-
marginBottom: pxToEm(20, base),
|
|
381
|
-
},
|
|
382
|
-
dt: {
|
|
383
|
-
marginTop: pxToEm(20, base),
|
|
384
|
-
},
|
|
385
|
-
dd: {
|
|
386
|
-
marginTop: pxToEm(8, base),
|
|
387
|
-
paddingLeft: pxToEm(26, base),
|
|
388
|
-
},
|
|
389
|
-
table: {
|
|
390
|
-
fontSize: pxToEm(14, base),
|
|
391
|
-
lineHeight: round(24 / 14),
|
|
392
|
-
},
|
|
393
|
-
'thead th': {
|
|
394
|
-
paddingRight: pxToEm(8, 14),
|
|
395
|
-
paddingBottom: pxToEm(8, 14),
|
|
396
|
-
paddingLeft: pxToEm(8, 14),
|
|
397
|
-
},
|
|
398
|
-
'thead th:first-child': {
|
|
399
|
-
paddingLeft: '0',
|
|
400
|
-
},
|
|
401
|
-
'thead th:last-child': {
|
|
402
|
-
paddingRight: '0',
|
|
403
|
-
},
|
|
404
|
-
'tbody td, tfoot td': {
|
|
405
|
-
paddingTop: pxToEm(8, 14),
|
|
406
|
-
paddingRight: pxToEm(8, 14),
|
|
407
|
-
paddingBottom: pxToEm(8, 14),
|
|
408
|
-
paddingLeft: pxToEm(8, 14),
|
|
409
|
-
},
|
|
410
|
-
'tbody td:first-child, tfoot td:first-child': {
|
|
411
|
-
paddingLeft: '0',
|
|
412
|
-
},
|
|
413
|
-
'tbody td:last-child, tfoot td:last-child': {
|
|
414
|
-
paddingRight: '0',
|
|
415
|
-
},
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
},
|
|
419
|
-
sm: {
|
|
420
|
-
css: [
|
|
421
|
-
{
|
|
422
|
-
p: {},
|
|
423
|
-
'p:first-child': {},
|
|
424
|
-
'p:last-child': {},
|
|
425
|
-
a: {},
|
|
426
|
-
'a:hover': {},
|
|
427
|
-
blockquote: {},
|
|
428
|
-
//'blockquote::before': {},
|
|
429
|
-
//'blockquote::after': {},
|
|
430
|
-
'blockquote p:first-of-type::before': {},
|
|
431
|
-
'blockquote p:last-of-type::after': {},
|
|
432
|
-
cite: {},
|
|
433
|
-
ol: {},
|
|
434
|
-
ul: {},
|
|
435
|
-
li: {},
|
|
436
|
-
'ol > li': {},
|
|
437
|
-
'ul > li': {},
|
|
438
|
-
'ul > li:last-child': {},
|
|
439
|
-
'> ul > li p': {},
|
|
440
|
-
hr: {},
|
|
441
|
-
h1: {
|
|
442
|
-
fontSize: pxToRem(24, base),
|
|
443
|
-
},
|
|
444
|
-
h2: {
|
|
445
|
-
fontSize: pxToRem(20, base),
|
|
446
|
-
},
|
|
447
|
-
h3: {
|
|
448
|
-
fontSize: pxToEm(18, base),
|
|
449
|
-
},
|
|
450
|
-
h4: {},
|
|
451
|
-
h5: {},
|
|
452
|
-
h6: {},
|
|
453
|
-
'hr + *': {},
|
|
454
|
-
'h2 + *': {},
|
|
455
|
-
'h3 + *': {},
|
|
456
|
-
'h4 + *': {},
|
|
457
|
-
img: {},
|
|
458
|
-
'img:first-child': {},
|
|
459
|
-
'img:last-child': {},
|
|
460
|
-
picture: {},
|
|
461
|
-
'picture > img': {},
|
|
462
|
-
video: {},
|
|
463
|
-
kbd: {},
|
|
464
|
-
code: {},
|
|
465
|
-
'h2 code': {},
|
|
466
|
-
'h3 code': {},
|
|
467
|
-
pre: {},
|
|
468
|
-
/*
|
|
469
|
-
'> ul > li > *:first-child': {},
|
|
470
|
-
'> ul > li > *:last-child': {},
|
|
471
|
-
'> ol > li > *:first-child': {},
|
|
472
|
-
'> ol > li > *:last-child': {},
|
|
473
|
-
*/
|
|
474
|
-
'ul ul, ul ol, ol ul, ol ol': {},
|
|
475
|
-
dl: {},
|
|
476
|
-
dt: {},
|
|
477
|
-
dd: {},
|
|
478
|
-
table: {},
|
|
479
|
-
'thead th': {},
|
|
480
|
-
'thead th:first-child': {},
|
|
481
|
-
'thead th:last-child': {},
|
|
482
|
-
'tbody td, tfoot td': {},
|
|
483
|
-
'tbody td:first-child, tfoot td:first-child': {},
|
|
484
|
-
'tbody td:last-child, tfoot td:last-child': {},
|
|
485
|
-
}
|
|
486
|
-
],
|
|
487
|
-
},
|
|
488
|
-
lg: {
|
|
489
|
-
css: [
|
|
490
|
-
{
|
|
491
|
-
p: {},
|
|
492
|
-
'p:first-child': {},
|
|
493
|
-
'p:last-child': {},
|
|
494
|
-
a: {},
|
|
495
|
-
'a:hover': {},
|
|
496
|
-
blockquote: {},
|
|
497
|
-
//'blockquote::before': {},
|
|
498
|
-
//'blockquote::after': {},
|
|
499
|
-
'blockquote p:first-of-type::before': {},
|
|
500
|
-
'blockquote p:last-of-type::after': {},
|
|
501
|
-
cite: {},
|
|
502
|
-
ol: {},
|
|
503
|
-
ul: {},
|
|
504
|
-
li: {},
|
|
505
|
-
'ol > li': {},
|
|
506
|
-
'ul > li': {},
|
|
507
|
-
'ul > li:last-child': {},
|
|
508
|
-
'> ul > li p': {},
|
|
509
|
-
hr: {},
|
|
510
|
-
h1: {
|
|
511
|
-
fontSize: pxToRem(45, base),
|
|
512
|
-
lineHeight: 1.1,
|
|
513
|
-
},
|
|
514
|
-
h2: {
|
|
515
|
-
fontSize: pxToRem(40, base),
|
|
516
|
-
lineHeight: 1.1,
|
|
517
|
-
},
|
|
518
|
-
h3: {
|
|
519
|
-
fontSize: pxToRem(32, base),
|
|
520
|
-
lineHeight: 1.1,
|
|
521
|
-
},
|
|
522
|
-
h4: {
|
|
523
|
-
fontSize: pxToRem(26, base),
|
|
524
|
-
marginTop: pxToRem(13, base),
|
|
525
|
-
marginBottom: pxToRem(13, base),
|
|
526
|
-
},
|
|
527
|
-
h5: {
|
|
528
|
-
fontSize: pxToRem(22, base),
|
|
529
|
-
marginTop: pxToRem(11, base),
|
|
530
|
-
marginBottom: pxToRem(11, base),
|
|
531
|
-
},
|
|
532
|
-
h6: {},
|
|
533
|
-
'hr + *': {},
|
|
534
|
-
'h2 + *': {},
|
|
535
|
-
'h3 + *': {},
|
|
536
|
-
'h4 + *': {},
|
|
537
|
-
img: {},
|
|
538
|
-
'img:first-child': {},
|
|
539
|
-
'img:last-child': {},
|
|
540
|
-
picture: {},
|
|
541
|
-
'picture > img': {},
|
|
542
|
-
video: {},
|
|
543
|
-
kbd: {},
|
|
544
|
-
code: {},
|
|
545
|
-
'h2 code': {},
|
|
546
|
-
'h3 code': {},
|
|
547
|
-
pre: {},
|
|
548
|
-
/*
|
|
549
|
-
'> ul > li > *:first-child': {},
|
|
550
|
-
'> ul > li > *:last-child': {},
|
|
551
|
-
'> ol > li > *:first-child': {},
|
|
552
|
-
'> ol > li > *:last-child': {},
|
|
553
|
-
*/
|
|
554
|
-
'ul ul, ul ol, ol ul, ol ol': {},
|
|
555
|
-
dl: {},
|
|
556
|
-
dt: {},
|
|
557
|
-
dd: {},
|
|
558
|
-
table: {},
|
|
559
|
-
'thead th': {},
|
|
560
|
-
'thead th:first-child': {},
|
|
561
|
-
'thead th:last-child': {},
|
|
562
|
-
'tbody td, tfoot td': {},
|
|
563
|
-
'tbody td:first-child, tfoot td:first-child': {},
|
|
564
|
-
'tbody td:last-child, tfoot td:last-child': {},
|
|
565
|
-
}
|
|
566
|
-
],
|
|
567
|
-
},
|
|
568
|
-
xl: {
|
|
569
|
-
css: [
|
|
570
|
-
{
|
|
571
|
-
p: {},
|
|
572
|
-
'p:first-child': {},
|
|
573
|
-
'p:last-child': {},
|
|
574
|
-
a: {},
|
|
575
|
-
'a:hover': {},
|
|
576
|
-
blockquote: {},
|
|
577
|
-
//'blockquote::before': {},
|
|
578
|
-
//'blockquote::after': {},
|
|
579
|
-
'blockquote p:first-of-type::before': {},
|
|
580
|
-
'blockquote p:last-of-type::after': {},
|
|
581
|
-
cite: {},
|
|
582
|
-
ol: {},
|
|
583
|
-
ul: {},
|
|
584
|
-
li: {},
|
|
585
|
-
'ol > li': {},
|
|
586
|
-
'ul > li': {},
|
|
587
|
-
'ul > li:last-child': {},
|
|
588
|
-
'> ul > li p': {},
|
|
589
|
-
hr: {},
|
|
590
|
-
h1: {
|
|
591
|
-
fontSize: pxToRem(52, base),
|
|
592
|
-
lineHeight: 1.1,
|
|
593
|
-
},
|
|
594
|
-
h2: {
|
|
595
|
-
fontSize: pxToRem(45, base),
|
|
596
|
-
lineHeight: 1.1,
|
|
597
|
-
},
|
|
598
|
-
h3: {
|
|
599
|
-
fontSize: pxToRem(40, base),
|
|
600
|
-
lineHeight: 1.1,
|
|
601
|
-
},
|
|
602
|
-
h4: {
|
|
603
|
-
fontSize: pxToRem(28, base),
|
|
604
|
-
marginTop: pxToRem(13, base),
|
|
605
|
-
marginBottom: pxToRem(13, base),
|
|
606
|
-
},
|
|
607
|
-
h5: {
|
|
608
|
-
fontSize: pxToRem(22, base),
|
|
609
|
-
marginTop: pxToRem(11, base),
|
|
610
|
-
marginBottom: pxToRem(11, base),
|
|
611
|
-
},
|
|
612
|
-
h6: {},
|
|
613
|
-
'hr + *': {},
|
|
614
|
-
'h2 + *': {},
|
|
615
|
-
'h3 + *': {},
|
|
616
|
-
'h4 + *': {},
|
|
617
|
-
img: {},
|
|
618
|
-
'img:first-child': {},
|
|
619
|
-
'img:last-child': {},
|
|
620
|
-
picture: {},
|
|
621
|
-
'picture > img': {},
|
|
622
|
-
video: {},
|
|
623
|
-
kbd: {},
|
|
624
|
-
code: {},
|
|
625
|
-
'h2 code': {},
|
|
626
|
-
'h3 code': {},
|
|
627
|
-
pre: {},
|
|
628
|
-
/*
|
|
629
|
-
'> ul > li > *:first-child': {},
|
|
630
|
-
'> ul > li > *:last-child': {},
|
|
631
|
-
'> ol > li > *:first-child': {},
|
|
632
|
-
'> ol > li > *:last-child': {},
|
|
633
|
-
*/
|
|
634
|
-
'ul ul, ul ol, ol ul, ol ol': {},
|
|
635
|
-
dl: {},
|
|
636
|
-
dt: {},
|
|
637
|
-
dd: {},
|
|
638
|
-
table: {},
|
|
639
|
-
'thead th': {},
|
|
640
|
-
'thead th:first-child': {},
|
|
641
|
-
'thead th:last-child': {},
|
|
642
|
-
'tbody td, tfoot td': {},
|
|
643
|
-
'tbody td:first-child, tfoot td:first-child': {},
|
|
644
|
-
'tbody td:last-child, tfoot td:last-child': {},
|
|
645
|
-
}
|
|
646
|
-
],
|
|
647
|
-
},
|
|
648
|
-
});
|
|
649
|
-
const getStyles = (baseFontSize) => ({
|
|
650
|
-
DEFAULT: {
|
|
651
|
-
css: [
|
|
652
|
-
defaultCSS,
|
|
653
|
-
typographyColorTheme,
|
|
654
|
-
...defaultModifiers(baseFontSize).base.css,
|
|
655
|
-
],
|
|
656
|
-
},
|
|
657
|
-
sm: defaultModifiers(baseFontSize).sm,
|
|
658
|
-
lg: defaultModifiers(baseFontSize).lg,
|
|
659
|
-
xl: defaultModifiers(baseFontSize).xl,
|
|
660
|
-
});
|
|
661
|
-
export default getStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../tailwind/typo-plugin/index.js"],"names":[],"mappings":""}
|