@lukso/web-components 1.161.1 → 1.161.2

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.
Files changed (121) hide show
  1. package/dist/components/index.cjs +7 -5
  2. package/dist/components/index.js +5 -5
  3. package/dist/components/lukso-button/index.cjs +3 -3
  4. package/dist/components/lukso-button/index.js +3 -3
  5. package/dist/components/lukso-card/index.cjs +6 -6
  6. package/dist/components/lukso-card/index.js +6 -6
  7. package/dist/components/lukso-checkbox/index.cjs +3 -3
  8. package/dist/components/lukso-checkbox/index.js +3 -3
  9. package/dist/components/lukso-collapse/index.cjs +3 -3
  10. package/dist/components/lukso-collapse/index.js +3 -3
  11. package/dist/components/lukso-color-picker/index.cjs +5 -5
  12. package/dist/components/lukso-color-picker/index.js +5 -5
  13. package/dist/components/lukso-dropdown/index.cjs +4 -4
  14. package/dist/components/lukso-dropdown/index.js +4 -4
  15. package/dist/components/lukso-dropdown-option/index.cjs +2 -2
  16. package/dist/components/lukso-dropdown-option/index.js +2 -2
  17. package/dist/components/lukso-footer/index.cjs +3 -2
  18. package/dist/components/lukso-footer/index.d.ts.map +1 -1
  19. package/dist/components/lukso-footer/index.js +3 -2
  20. package/dist/components/lukso-icon/index.cjs +4 -4
  21. package/dist/components/lukso-icon/index.js +4 -4
  22. package/dist/components/lukso-image/index.cjs +4 -4
  23. package/dist/components/lukso-image/index.js +4 -4
  24. package/dist/components/lukso-input/index.cjs +4 -4
  25. package/dist/components/lukso-input/index.js +4 -4
  26. package/dist/components/lukso-markdown/index.cjs +13 -5
  27. package/dist/components/lukso-markdown/index.d.ts +1 -0
  28. package/dist/components/lukso-markdown/index.d.ts.map +1 -1
  29. package/dist/components/lukso-markdown/index.js +13 -5
  30. package/dist/components/lukso-markdown/lukso-markdown.stories.d.ts +2 -0
  31. package/dist/components/lukso-markdown/lukso-markdown.stories.d.ts.map +1 -1
  32. package/dist/components/lukso-markdown-editor/index.cjs +294 -252
  33. package/dist/components/lukso-markdown-editor/index.d.ts +4 -1
  34. package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
  35. package/dist/components/lukso-markdown-editor/index.js +294 -252
  36. package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts +6 -0
  37. package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts.map +1 -1
  38. package/dist/components/lukso-modal/index.cjs +2 -2
  39. package/dist/components/lukso-modal/index.js +2 -2
  40. package/dist/components/lukso-navbar/index.cjs +3 -3
  41. package/dist/components/lukso-navbar/index.js +3 -3
  42. package/dist/components/lukso-pagination/index.cjs +3 -3
  43. package/dist/components/lukso-pagination/index.js +3 -3
  44. package/dist/components/lukso-profile/index.cjs +3 -3
  45. package/dist/components/lukso-profile/index.js +3 -3
  46. package/dist/components/lukso-progress/index.cjs +3 -3
  47. package/dist/components/lukso-progress/index.js +3 -3
  48. package/dist/components/lukso-radio/index.cjs +3 -3
  49. package/dist/components/lukso-radio/index.js +3 -3
  50. package/dist/components/lukso-radio-group/index.cjs +3 -3
  51. package/dist/components/lukso-radio-group/index.js +3 -3
  52. package/dist/components/lukso-sanitize/index.cjs +9 -1390
  53. package/dist/components/lukso-sanitize/index.d.ts +17 -1
  54. package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
  55. package/dist/components/lukso-sanitize/index.js +4 -1396
  56. package/dist/components/lukso-sanitize/lukso-sanitize.stories.d.ts +17 -1
  57. package/dist/components/lukso-sanitize/lukso-sanitize.stories.d.ts.map +1 -1
  58. package/dist/components/lukso-search/index.cjs +6 -6
  59. package/dist/components/lukso-search/index.js +6 -6
  60. package/dist/components/lukso-select/index.cjs +6 -6
  61. package/dist/components/lukso-select/index.js +6 -6
  62. package/dist/components/lukso-share/index.cjs +2 -2
  63. package/dist/components/lukso-share/index.js +2 -2
  64. package/dist/components/lukso-switch/index.cjs +4 -4
  65. package/dist/components/lukso-switch/index.js +4 -4
  66. package/dist/components/lukso-tag/index.cjs +3 -3
  67. package/dist/components/lukso-tag/index.js +3 -3
  68. package/dist/components/lukso-terms/index.cjs +4 -4
  69. package/dist/components/lukso-terms/index.js +4 -4
  70. package/dist/components/lukso-textarea/index.cjs +4 -4
  71. package/dist/components/lukso-textarea/index.js +4 -4
  72. package/dist/components/lukso-tooltip/index.cjs +4 -4
  73. package/dist/components/lukso-tooltip/index.js +4 -4
  74. package/dist/components/lukso-username/index.cjs +4 -4
  75. package/dist/components/lukso-username/index.js +4 -4
  76. package/dist/components/lukso-wizard/index.cjs +2 -2
  77. package/dist/components/lukso-wizard/index.js +2 -2
  78. package/dist/{index-DNhzT2hA.cjs → index-BDC9pVk6.cjs} +2 -2
  79. package/dist/index-BFqOU6o6.cjs +50 -0
  80. package/dist/{index-NKnet_Ow.js → index-BJwLob67.js} +2 -2
  81. package/dist/{index-CKlH1beR.js → index-BOWftFAY.js} +1 -1
  82. package/dist/{index-CKjNXRek.cjs → index-C2uvRzO4.cjs} +3 -3
  83. package/dist/{index-C1JF-hTl.cjs → index-CEnG_x_7.cjs} +5 -5
  84. package/dist/index-CQq_Eyeu.js +41 -0
  85. package/dist/index-Chl2HHJ6.cjs +1408 -0
  86. package/dist/index-JvkSiEeQ.js +1404 -0
  87. package/dist/{index-C9Ins46B.cjs → index-Zriuvita.cjs} +1 -1
  88. package/dist/{index-BSwFyDEC.js → index-f-xajtU2.js} +3 -3
  89. package/dist/{index-CDUQ0-Uh.js → index-oQecUOlb.js} +5 -5
  90. package/dist/index.cjs +7 -5
  91. package/dist/index.js +5 -5
  92. package/dist/{property-Da9lvmME.js → property-CPkYmAYi.js} +1 -1
  93. package/dist/{property-dUn0JQiG.cjs → property-Cs8qVdri.cjs} +1 -1
  94. package/dist/shared/tailwind-element/index.cjs +1 -1
  95. package/dist/shared/tailwind-element/index.js +1 -1
  96. package/dist/{state-CD8hXUlY.cjs → state-Bh6EXopE.cjs} +1 -1
  97. package/dist/{state-CtpsBPdH.js → state-CtrTo6cC.js} +1 -1
  98. package/dist/{style-map-CDCcO0mt.js → style-map-BBz25umN.js} +1 -1
  99. package/dist/{style-map-nBexjTCa.cjs → style-map-DhbNG03r.cjs} +1 -1
  100. package/dist/tailwind-config.cjs +65 -0
  101. package/dist/tailwind-config.d.ts +85 -0
  102. package/dist/tailwind-config.d.ts.map +1 -1
  103. package/dist/tailwind-config.js +64 -1
  104. package/dist/{unsafe-html-DHNeIs-4.cjs → unsafe-html-Cb1yjpJn.cjs} +1 -1
  105. package/dist/{unsafe-html-Ci4jmi7b.js → unsafe-html-DTE5r2A7.js} +1 -1
  106. package/package.json +1 -1
  107. package/tailwind.config.cjs +208 -178
  108. package/tools/cn.cjs +1 -1
  109. package/tools/cn.js +1 -1
  110. package/tools/copy-assets.cjs +16 -16
  111. package/tools/copy-assets.js +2 -2
  112. package/tools/index.cjs +1 -1
  113. package/tools/index.js +1 -1
  114. package/tools/{tailwind-config-Ch2-b3Be.js → tailwind-config-DVTyRd7x.js} +64 -1
  115. package/tools/{tailwind-config-BIErjaAT.cjs → tailwind-config-DoMZEvsr.cjs} +65 -0
  116. package/tools/tailwind-config.cjs +3 -1
  117. package/tools/tailwind-config.d.ts +85 -0
  118. package/tools/tailwind-config.d.ts.map +1 -1
  119. package/tools/tailwind-config.js +1 -1
  120. package/dist/index-B5CXCi6j.js +0 -41
  121. package/dist/index-D4DEFira.cjs +0 -50
@@ -1,201 +1,231 @@
1
- const plugin = require('tailwindcss/plugin')
1
+ const plugin = require("tailwindcss/plugin");
2
2
 
3
- const { colorPalette, boxShadows, fontWeights, fontSizes, lineHeights, scales, heights, borderRadius, spacing } = require('./tools/tailwind-config.cjs')
3
+ const {
4
+ colorPalette,
5
+ boxShadows,
6
+ fontWeights,
7
+ fontSizes,
8
+ lineHeights,
9
+ scales,
10
+ heights,
11
+ borderRadius,
12
+ spacing,
13
+ proseSpacing,
14
+ proseVariants,
15
+ } = require("./tools/tailwind-config.cjs");
4
16
 
5
17
  /**
6
18
  * Add animation delay utilities. Example: .animation-delay-1000
7
19
  */
8
20
  const animationDelayPlugin = plugin(({ addUtilities, theme, e }) => {
9
- const values = theme('animationDelay')
10
- const utilities = Object.entries(values).map(([key, value]) => {
11
- return {
12
- [`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
13
- }
14
- })
15
- addUtilities(utilities)
16
- })
21
+ const values = theme("animationDelay");
22
+ const utilities = Object.entries(values).map(([key, value]) => {
23
+ return {
24
+ [`.${e(`animation-delay-${key}`)}`]: { animationDelay: `${value}` },
25
+ };
26
+ });
27
+ addUtilities(utilities);
28
+ });
17
29
 
18
30
  /**
19
31
  * Add animation iteration utilities. Example: .animation-iteration-infinite
20
32
  */
21
33
  const animationIterationPlugin = plugin(({ addUtilities, theme, e }) => {
22
- const values = theme('animationIteration')
23
- const utilities = Object.entries(values).map(([key, value]) => {
24
- return {
25
- [`.${e(`animation-iteration-${key}`)}`]: {
26
- animationIterationCount: `${value}`,
27
- },
28
- }
29
- })
30
- addUtilities(utilities)
31
- })
34
+ const values = theme("animationIteration");
35
+ const utilities = Object.entries(values).map(([key, value]) => {
36
+ return {
37
+ [`.${e(`animation-iteration-${key}`)}`]: {
38
+ animationIterationCount: `${value}`,
39
+ },
40
+ };
41
+ });
42
+ addUtilities(utilities);
43
+ });
32
44
 
33
45
  /**
34
46
  * Add animation duration utilities. Example: .animation-duration-1000
35
47
  */
36
48
  const animationDuration = plugin(({ addUtilities, theme, e }) => {
37
- const values = theme('animationDuration')
38
- const utilities = Object.entries(values).map(([key, value]) => {
39
- return {
40
- [`.${e(`animation-duration-${key}`)}`]: {
41
- animationDuration: `${value}`,
42
- },
43
- }
44
- })
45
- addUtilities(utilities)
46
- })
49
+ const values = theme("animationDuration");
50
+ const utilities = Object.entries(values).map(([key, value]) => {
51
+ return {
52
+ [`.${e(`animation-duration-${key}`)}`]: {
53
+ animationDuration: `${value}`,
54
+ },
55
+ };
56
+ });
57
+ addUtilities(utilities);
58
+ });
47
59
 
48
60
  /**
49
61
  * Add animation fill mode utilities. Example: .animation-fill-forwards
50
62
  */
51
63
  const animationFill = plugin(({ addUtilities, theme, e }) => {
52
- const values = theme('animationFill')
53
- const utilities = Object.entries(values).map(([key, value]) => {
54
- return {
55
- [`.${e(`animation-fill-${key}`)}`]: {
56
- animationFillMode: `${value}`,
57
- },
58
- }
59
- })
60
- addUtilities(utilities)
61
- })
64
+ const values = theme("animationFill");
65
+ const utilities = Object.entries(values).map(([key, value]) => {
66
+ return {
67
+ [`.${e(`animation-fill-${key}`)}`]: {
68
+ animationFillMode: `${value}`,
69
+ },
70
+ };
71
+ });
72
+ addUtilities(utilities);
73
+ });
62
74
 
63
75
  module.exports = {
64
- content: [
65
- './src/**/*.{ts,html,css,scss,mdx}',
66
- './package/**/*.{ts,html,css,scss,mdx}',
67
- './stories/**/*.{ts,html,css,scss,mdx}',
68
- './*.{ts,html,css,scss,mdx}'
69
- ],
70
- theme: {
71
- fontFamily: {
72
- inter: ['Inter', 'sans-serif'],
73
- apax: ['Apax', 'sans-serif'],
74
- mono: ['"PT Mono"', 'sans-serif'],
75
- },
76
- extend: {
77
- colors: colorPalette,
78
- boxShadow: boxShadows,
79
- fontSize: fontSizes,
80
- fontWeight: fontWeights,
81
- lineHeight: lineHeights,
82
- transitionDuration: {
83
- 25: '25ms',
84
- 250: '250ms',
85
- },
86
- transitionProperty: {
87
- width: 'width',
88
- height: 'height',
89
- },
90
- scale: scales,
91
- height: heights,
92
- animation: {
93
- 'pulse-resize': 'pulse-resize 1s ease-in-out infinite',
94
- 'resize-in': 'resize-in 0.5s ease-in-out',
95
- 'fade-in': 'fade-in 0.5s ease-in-out',
96
- bounce2: 'bounce2 1s ease-in-out infinite alternate',
97
- 'fade-in-up': 'fade-in-up 0.5s ease-out forwards',
98
- },
99
- keyframes: {
100
- 'pulse-resize': {
101
- '0%, 100%': { transform: 'scale(1)' },
102
- '50%': { transform: 'scale(0.7)' },
103
- },
104
- 'resize-in': {
105
- '0%': { transform: 'scale(0.5)' },
106
- '100%': { transform: 'scale(1)' },
107
- },
108
- 'fade-in': {
109
- '0%': { opacity: '0' },
110
- '100%': { opacity: '1' },
111
- },
112
- bounce2: {
113
- '0%': { transform: 'translateY(-6px)' },
114
- '100%': { transform: 'translateY(10)' },
115
- },
116
- 'fade-in-up': {
117
- '0%': {
118
- opacity: '0',
119
- transform: 'translateY(10px)',
120
- },
121
- '100%': {
122
- opacity: '1',
123
- transform: 'translateY(0)',
124
- },
125
- },
126
- },
127
- animationDelay: {
128
- none: '0s',
129
- 75: '75ms',
130
- 100: '100ms',
131
- 150: '150ms',
132
- 200: '200ms',
133
- 300: '300ms',
134
- 400: '400ms',
135
- 500: '500ms',
136
- 600: '600ms',
137
- 700: '700ms',
138
- 800: '800ms',
139
- 900: '900ms',
140
- 1000: '1000ms',
141
- 1500: '1500ms',
142
- 2000: '2000ms',
143
- 3000: '3000ms',
144
- 5000: '5000ms',
145
- },
146
- animationIteration: {
147
- infinite: 'infinite',
148
- 1: '1',
149
- 2: '2',
150
- 3: '3',
151
- },
152
- animationDuration: {
153
- 25: '25ms',
154
- 50: '50ms',
155
- 75: '75ms',
156
- 100: '100ms',
157
- 150: '150ms',
158
- 200: '200ms',
159
- 300: '300ms',
160
- 400: '400ms',
161
- 500: '500ms',
162
- 600: '600ms',
163
- 700: '700ms',
164
- 800: '800ms',
165
- 900: '900ms',
166
- 1000: '1000ms',
167
- 1500: '1500ms',
168
- 2000: '2000ms',
169
- 3000: '3000ms',
170
- },
171
- animationFill: {
172
- none: 'none',
173
- forwards: 'forwards',
174
- backwards: 'backwards',
175
- both: 'both',
176
- },
177
- borderRadius,
178
- spacing,
179
- typography: () => ({
180
- inherit: {
181
- css: {
182
- '--tw-prose-body': 'inherit',
183
- '--tw-prose-headings': 'inherit',
184
- '--tw-prose-lead': 'inherit',
185
- '--tw-prose-links': 'inherit',
186
- '--tw-prose-bold': 'inherit',
187
- '--tw-prose-counters': 'inherit',
188
- '--tw-prose-bullets': 'inherit',
189
- },
190
- },
191
- }),
192
- },
193
- },
194
- plugins: [
195
- animationDelayPlugin,
196
- animationIterationPlugin,
197
- animationDuration,
198
- animationFill,
199
- require('@tailwindcss/typography'),
200
- ],
201
- }
76
+ content: [
77
+ "./src/**/*.{ts,html,css,scss,mdx}",
78
+ "./package/**/*.{ts,html,css,scss,mdx}",
79
+ "./stories/**/*.{ts,html,css,scss,mdx}",
80
+ "./*.{ts,html,css,scss,mdx}",
81
+ ],
82
+ theme: {
83
+ fontFamily: {
84
+ inter: ["Inter", "sans-serif"],
85
+ apax: ["Apax", "sans-serif"],
86
+ mono: ['"PT Mono"', "sans-serif"],
87
+ },
88
+ extend: {
89
+ colors: colorPalette,
90
+ boxShadow: boxShadows,
91
+ fontSize: fontSizes,
92
+ fontWeight: fontWeights,
93
+ lineHeight: lineHeights,
94
+ transitionDuration: {
95
+ 25: "25ms",
96
+ 250: "250ms",
97
+ },
98
+ transitionProperty: {
99
+ width: "width",
100
+ height: "height",
101
+ },
102
+ scale: scales,
103
+ height: heights,
104
+ animation: {
105
+ "pulse-resize": "pulse-resize 1s ease-in-out infinite",
106
+ "resize-in": "resize-in 0.5s ease-in-out",
107
+ "fade-in": "fade-in 0.5s ease-in-out",
108
+ bounce2: "bounce2 1s ease-in-out infinite alternate",
109
+ "fade-in-up": "fade-in-up 0.5s ease-out forwards",
110
+ },
111
+ keyframes: {
112
+ "pulse-resize": {
113
+ "0%, 100%": { transform: "scale(1)" },
114
+ "50%": { transform: "scale(0.7)" },
115
+ },
116
+ "resize-in": {
117
+ "0%": { transform: "scale(0.5)" },
118
+ "100%": { transform: "scale(1)" },
119
+ },
120
+ "fade-in": {
121
+ "0%": { opacity: "0" },
122
+ "100%": { opacity: "1" },
123
+ },
124
+ bounce2: {
125
+ "0%": { transform: "translateY(-6px)" },
126
+ "100%": { transform: "translateY(10)" },
127
+ },
128
+ "fade-in-up": {
129
+ "0%": {
130
+ opacity: "0",
131
+ transform: "translateY(10px)",
132
+ },
133
+ "100%": {
134
+ opacity: "1",
135
+ transform: "translateY(0)",
136
+ },
137
+ },
138
+ },
139
+ animationDelay: {
140
+ none: "0s",
141
+ 75: "75ms",
142
+ 100: "100ms",
143
+ 150: "150ms",
144
+ 200: "200ms",
145
+ 300: "300ms",
146
+ 400: "400ms",
147
+ 500: "500ms",
148
+ 600: "600ms",
149
+ 700: "700ms",
150
+ 800: "800ms",
151
+ 900: "900ms",
152
+ 1000: "1000ms",
153
+ 1500: "1500ms",
154
+ 2000: "2000ms",
155
+ 3000: "3000ms",
156
+ 5000: "5000ms",
157
+ },
158
+ animationIteration: {
159
+ infinite: "infinite",
160
+ 1: "1",
161
+ 2: "2",
162
+ 3: "3",
163
+ },
164
+ animationDuration: {
165
+ 25: "25ms",
166
+ 50: "50ms",
167
+ 75: "75ms",
168
+ 100: "100ms",
169
+ 150: "150ms",
170
+ 200: "200ms",
171
+ 300: "300ms",
172
+ 400: "400ms",
173
+ 500: "500ms",
174
+ 600: "600ms",
175
+ 700: "700ms",
176
+ 800: "800ms",
177
+ 900: "900ms",
178
+ 1000: "1000ms",
179
+ 1500: "1500ms",
180
+ 2000: "2000ms",
181
+ 3000: "3000ms",
182
+ },
183
+ animationFill: {
184
+ none: "none",
185
+ forwards: "forwards",
186
+ backwards: "backwards",
187
+ both: "both",
188
+ },
189
+ borderRadius,
190
+ spacing,
191
+ typography: {
192
+ ...Object.fromEntries(
193
+ proseVariants.map((variant) => [
194
+ variant,
195
+ {
196
+ css: {
197
+ maxWidth: "none",
198
+ lineHeight: "1.6", // general baseline line-height for prose content
199
+ ...proseSpacing,
200
+ },
201
+ },
202
+ ]),
203
+ ),
204
+ inherit: {
205
+ css: {
206
+ "--tw-prose-body": "inherit",
207
+ "--tw-prose-headings": "inherit",
208
+ "--tw-prose-lead": "inherit",
209
+ "--tw-prose-links": "inherit",
210
+ "--tw-prose-bold": "inherit",
211
+ "--tw-prose-counters": "inherit",
212
+ "--tw-prose-bullets": "inherit",
213
+ },
214
+ },
215
+ },
216
+ },
217
+ },
218
+ // styles that will be always included in the build
219
+ safelist: [
220
+ {
221
+ pattern: /^prose(-[a-z0-9]+)?$/,
222
+ },
223
+ ],
224
+ plugins: [
225
+ animationDelayPlugin,
226
+ animationIterationPlugin,
227
+ animationDuration,
228
+ animationFill,
229
+ require("@tailwindcss/typography"),
230
+ ],
231
+ };
package/tools/cn.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const tailwindConfig = require('./tailwind-config-BIErjaAT.cjs');
5
+ const tailwindConfig = require('./tailwind-config-DoMZEvsr.cjs');
6
6
 
7
7
  const CLASS_PART_SEPARATOR = '-';
8
8
  const createClassGroupUtils = config => {
package/tools/cn.js CHANGED
@@ -1,4 +1,4 @@
1
- import { l as lineHeights, a as heights, s as scales, f as fontWeights, b as fontSizes, c as boxShadows, d as borderRadius, e as colorPalette } from './tailwind-config-Ch2-b3Be.js';
1
+ import { l as lineHeights, a as heights, s as scales, f as fontWeights, b as fontSizes, c as boxShadows, d as borderRadius, e as colorPalette } from './tailwind-config-DVTyRd7x.js';
2
2
 
3
3
  const CLASS_PART_SEPARATOR = '-';
4
4
  const createClassGroupUtils = config => {
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const fs = require('fs');
6
- const path = require('path');
5
+ const node_fs = require('node:fs');
6
+ const node_path = require('node:path');
7
7
 
8
8
  const fileExtensionWhitelist = [
9
9
  ".woff2",
@@ -15,27 +15,27 @@ const fileExtensionWhitelist = [
15
15
  ];
16
16
  function copyFileSync(source, target) {
17
17
  let targetFile = target;
18
- if (fs.existsSync(target)) {
19
- if (fs.lstatSync(target).isDirectory()) {
20
- targetFile = path.join(target, path.basename(source));
18
+ if (node_fs.existsSync(target)) {
19
+ if (node_fs.lstatSync(target).isDirectory()) {
20
+ targetFile = node_path.join(target, node_path.basename(source));
21
21
  }
22
22
  }
23
- if (!fileExtensionWhitelist.includes(path.extname(source))) {
23
+ if (!fileExtensionWhitelist.includes(node_path.extname(source))) {
24
24
  return;
25
25
  }
26
- fs.copyFileSync(source, targetFile);
26
+ node_fs.copyFileSync(source, targetFile);
27
27
  }
28
28
  function copyFolderRecursiveSync(source, target) {
29
29
  let files = [];
30
- const targetFolder = path.join(target, path.basename(source));
31
- if (!fs.existsSync(targetFolder)) {
32
- fs.mkdirSync(targetFolder);
30
+ const targetFolder = node_path.join(target, node_path.basename(source));
31
+ if (!node_fs.existsSync(targetFolder)) {
32
+ node_fs.mkdirSync(targetFolder);
33
33
  }
34
- if (fs.lstatSync(source).isDirectory()) {
35
- files = fs.readdirSync(source);
34
+ if (node_fs.lstatSync(source).isDirectory()) {
35
+ files = node_fs.readdirSync(source);
36
36
  for (const file of files) {
37
- const curSource = path.join(source, file);
38
- if (fs.lstatSync(curSource).isDirectory()) {
37
+ const curSource = node_path.join(source, file);
38
+ if (node_fs.lstatSync(curSource).isDirectory()) {
39
39
  copyFolderRecursiveSync(curSource, targetFolder);
40
40
  } else {
41
41
  copyFileSync(curSource, targetFolder);
@@ -44,8 +44,8 @@ function copyFolderRecursiveSync(source, target) {
44
44
  }
45
45
  }
46
46
  const copyAssets = (assetDir, assets) => {
47
- if (!fs.existsSync(assetDir)) {
48
- fs.mkdirSync(assetDir, { recursive: true });
47
+ if (!node_fs.existsSync(assetDir)) {
48
+ node_fs.mkdirSync(assetDir, { recursive: true });
49
49
  }
50
50
  copyFolderRecursiveSync(assets, assetDir);
51
51
  };
@@ -1,5 +1,5 @@
1
- import { existsSync, mkdirSync, lstatSync, readdirSync, copyFileSync as copyFileSync$1 } from 'fs';
2
- import { join, basename, extname } from 'path';
1
+ import { existsSync, mkdirSync, lstatSync, readdirSync, copyFileSync as copyFileSync$1 } from 'node:fs';
2
+ import { join, basename, extname } from 'node:path';
3
3
 
4
4
  const fileExtensionWhitelist = [
5
5
  ".woff2",
package/tools/index.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const tailwindConfig = require('./tailwind-config-BIErjaAT.cjs');
5
+ const tailwindConfig = require('./tailwind-config-DoMZEvsr.cjs');
6
6
  const assets_index = require('./assets/index.cjs');
7
7
  const cn = require('./cn.cjs');
8
8
  const assets_fonts_index = require('./assets/fonts/index.cjs');
package/tools/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { h as hslColorMap } from './tailwind-config-Ch2-b3Be.js';
1
+ export { h as hslColorMap } from './tailwind-config-DVTyRd7x.js';
2
2
  export { assets } from './assets/index.js';
3
3
  export { cn } from './cn.js';
4
4
  export { fonts } from './assets/fonts/index.js';
@@ -1377,5 +1377,68 @@ const grey2 = splitColor(
1377
1377
  8,
1378
1378
  Object.keys(colorPalette.grey).length
1379
1379
  );
1380
+ const proseSpacing = {
1381
+ // Paragraphs
1382
+ p: {
1383
+ marginTop: "0.5em",
1384
+ marginBottom: "0.5em",
1385
+ lineHeight: "1.5"
1386
+ // slightly tighter
1387
+ },
1388
+ // Horizontal rule
1389
+ hr: { marginTop: "2em", marginBottom: "2em" },
1390
+ // Headings
1391
+ h1: { marginTop: "0.75em", marginBottom: "0.5em", lineHeight: "1.2" },
1392
+ h2: { marginTop: "0.65em", marginBottom: "0.45em", lineHeight: "1.25" },
1393
+ h3: { marginTop: "0.6em", marginBottom: "0.4em", lineHeight: "1.3" },
1394
+ h4: { marginTop: "0.5em", marginBottom: "0.35em", lineHeight: "1.35" },
1395
+ h5: { marginTop: "0.45em", marginBottom: "0.3em", lineHeight: "1.4" },
1396
+ h6: { marginTop: "0.4em", marginBottom: "0.25em", lineHeight: "1.45" },
1397
+ // Lists
1398
+ ul: {
1399
+ marginTop: "0.5em",
1400
+ marginBottom: "0.5em",
1401
+ paddingLeft: "1.25em"
1402
+ },
1403
+ ol: {
1404
+ marginTop: "0.5em",
1405
+ marginBottom: "0.5em",
1406
+ paddingLeft: "1.25em"
1407
+ },
1408
+ "ul ul, ul ol, ol ul, ol ol": {
1409
+ marginTop: "0.25em",
1410
+ marginBottom: "0.25em"
1411
+ },
1412
+ li: {
1413
+ marginTop: "0.25em",
1414
+ marginBottom: "0.25em"
1415
+ },
1416
+ // Blockquotes
1417
+ blockquote: {
1418
+ marginTop: "0.5em",
1419
+ marginBottom: "0.5em",
1420
+ paddingLeft: "1em",
1421
+ borderLeftWidth: "0.25rem",
1422
+ fontStyle: "italic",
1423
+ color: "inherit"
1424
+ },
1425
+ // Links (restore default link look)
1426
+ a: {
1427
+ color: "var(--tw-prose-links)",
1428
+ textDecoration: "underline",
1429
+ fontWeight: "500",
1430
+ "&:hover": {
1431
+ color: "var(--tw-prose-links-hover, var(--tw-prose-links))",
1432
+ textDecoration: "none"
1433
+ }
1434
+ },
1435
+ // Code blocks
1436
+ pre: {
1437
+ marginTop: "0.5em",
1438
+ marginBottom: "0.5em",
1439
+ lineHeight: "1.45"
1440
+ }
1441
+ };
1442
+ const proseVariants = ["sm", "base", "lg", "xl"];
1380
1443
 
1381
- export { heights as a, fontSizes as b, boxShadows as c, borderRadius as d, colorPalette as e, fontWeights as f, spacing as g, hslColorMap as h, neutral2 as i, neutral3 as j, grey1 as k, lineHeights as l, grey2 as m, neutral1 as n, scales as s };
1444
+ export { heights as a, fontSizes as b, boxShadows as c, borderRadius as d, colorPalette as e, fontWeights as f, spacing as g, hslColorMap as h, neutral2 as i, neutral3 as j, grey1 as k, lineHeights as l, grey2 as m, neutral1 as n, proseVariants as o, proseSpacing as p, scales as s };
@@ -1379,6 +1379,69 @@ const grey2 = splitColor(
1379
1379
  8,
1380
1380
  Object.keys(colorPalette.grey).length
1381
1381
  );
1382
+ const proseSpacing = {
1383
+ // Paragraphs
1384
+ p: {
1385
+ marginTop: "0.5em",
1386
+ marginBottom: "0.5em",
1387
+ lineHeight: "1.5"
1388
+ // slightly tighter
1389
+ },
1390
+ // Horizontal rule
1391
+ hr: { marginTop: "2em", marginBottom: "2em" },
1392
+ // Headings
1393
+ h1: { marginTop: "0.75em", marginBottom: "0.5em", lineHeight: "1.2" },
1394
+ h2: { marginTop: "0.65em", marginBottom: "0.45em", lineHeight: "1.25" },
1395
+ h3: { marginTop: "0.6em", marginBottom: "0.4em", lineHeight: "1.3" },
1396
+ h4: { marginTop: "0.5em", marginBottom: "0.35em", lineHeight: "1.35" },
1397
+ h5: { marginTop: "0.45em", marginBottom: "0.3em", lineHeight: "1.4" },
1398
+ h6: { marginTop: "0.4em", marginBottom: "0.25em", lineHeight: "1.45" },
1399
+ // Lists
1400
+ ul: {
1401
+ marginTop: "0.5em",
1402
+ marginBottom: "0.5em",
1403
+ paddingLeft: "1.25em"
1404
+ },
1405
+ ol: {
1406
+ marginTop: "0.5em",
1407
+ marginBottom: "0.5em",
1408
+ paddingLeft: "1.25em"
1409
+ },
1410
+ "ul ul, ul ol, ol ul, ol ol": {
1411
+ marginTop: "0.25em",
1412
+ marginBottom: "0.25em"
1413
+ },
1414
+ li: {
1415
+ marginTop: "0.25em",
1416
+ marginBottom: "0.25em"
1417
+ },
1418
+ // Blockquotes
1419
+ blockquote: {
1420
+ marginTop: "0.5em",
1421
+ marginBottom: "0.5em",
1422
+ paddingLeft: "1em",
1423
+ borderLeftWidth: "0.25rem",
1424
+ fontStyle: "italic",
1425
+ color: "inherit"
1426
+ },
1427
+ // Links (restore default link look)
1428
+ a: {
1429
+ color: "var(--tw-prose-links)",
1430
+ textDecoration: "underline",
1431
+ fontWeight: "500",
1432
+ "&:hover": {
1433
+ color: "var(--tw-prose-links-hover, var(--tw-prose-links))",
1434
+ textDecoration: "none"
1435
+ }
1436
+ },
1437
+ // Code blocks
1438
+ pre: {
1439
+ marginTop: "0.5em",
1440
+ marginBottom: "0.5em",
1441
+ lineHeight: "1.45"
1442
+ }
1443
+ };
1444
+ const proseVariants = ["sm", "base", "lg", "xl"];
1382
1445
 
1383
1446
  exports.borderRadius = borderRadius;
1384
1447
  exports.boxShadows = boxShadows;
@@ -1393,5 +1456,7 @@ exports.lineHeights = lineHeights;
1393
1456
  exports.neutral1 = neutral1;
1394
1457
  exports.neutral2 = neutral2;
1395
1458
  exports.neutral3 = neutral3;
1459
+ exports.proseSpacing = proseSpacing;
1460
+ exports.proseVariants = proseVariants;
1396
1461
  exports.scales = scales;
1397
1462
  exports.spacing = spacing;