@cryptlex/web-components 1.3.4 → 1.4.0
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 +6 -3
- package/dist/components/data-table/column-picker.es.js +12 -11
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +112 -95
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +8 -8
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +20 -15
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-filter.es.js +264 -0
- package/dist/components/data-table/table-filter.es.js.map +1 -0
- package/dist/components/data-table/table-utils/constants.es.js +20 -6
- package/dist/components/data-table/table-utils/constants.es.js.map +1 -1
- package/dist/components/data-table/table-utils/link-display.es.js +4 -4
- package/dist/components/data-table/table-utils/link-display.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +87 -0
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -0
- package/dist/components/sidebar/app-layout.es.js +41 -47
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/breadcrumb.es.js +58 -0
- package/dist/components/sidebar/breadcrumb.es.js.map +1 -0
- package/dist/components/sidebar/nav-main.es.js +65 -51
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +8 -8
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +1 -1
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +1 -1
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/button.es.js +15 -14
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/calendar.es.js +3 -3
- package/dist/components/ui/chart.es.js +16 -16
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/checkbox.es.js +1 -1
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/command.es.js +28 -28
- package/dist/components/ui/command.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +76 -0
- package/dist/components/ui/copy-button.es.js.map +1 -0
- package/dist/components/ui/dialog.es.js +8 -8
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +18 -21
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +38 -38
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/form.es.js +4 -4
- package/dist/components/ui/input-otp.es.js +2 -2
- package/dist/components/ui/input-otp.es.js.map +1 -1
- package/dist/components/ui/input.es.js +7 -7
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/link-button.es.js +22 -0
- package/dist/components/ui/link-button.es.js.map +1 -0
- package/dist/components/ui/mutli-select.es.js +17 -15
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +3 -3
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/password-input.es.js +10 -10
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +1 -1
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/radio-group.es.js +7 -7
- package/dist/components/ui/radio-group.es.js.map +1 -1
- package/dist/components/ui/select.es.js +20 -20
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +8 -8
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +76 -76
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/table-page-layout.es.js +8 -8
- package/dist/components/ui/table-page-layout.es.js.map +1 -1
- package/dist/components/ui/table.es.js +19 -19
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +11 -11
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/index.es.d.ts +54 -21
- package/dist/index.es.js +231 -226
- package/dist/index.es.js.map +1 -1
- package/dist/utils/index.es.js +19 -14
- package/dist/utils/index.es.js.map +1 -1
- package/lib/index.css +15 -87
- package/lib/tailwind.preset.css +220 -0
- package/lib/tokens.css +54 -54
- package/package.json +9 -8
- package/dist/components/info-card/info-card.es.js +0 -71
- package/dist/components/info-card/info-card.es.js.map +0 -1
- package/tailwind.preset.ts +0 -183
package/tailwind.preset.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import type { Config } from 'tailwindcss';
|
|
2
|
-
|
|
3
|
-
const tokenRamps = (paletteName: string) => {
|
|
4
|
-
const ramps: Record<number, string> = {};
|
|
5
|
-
for (let i = 1; i <= 10; i++) {
|
|
6
|
-
ramps[i] = `oklch(var(--${paletteName}-${i}) / <alpha-value>)`
|
|
7
|
-
}
|
|
8
|
-
return ramps;
|
|
9
|
-
}
|
|
10
|
-
export default {
|
|
11
|
-
// Enable dark mode based on class.
|
|
12
|
-
darkMode: ['class'],
|
|
13
|
-
// The preset does not define content, this is done in the host.
|
|
14
|
-
content: [],
|
|
15
|
-
theme: {
|
|
16
|
-
borderRadius: {
|
|
17
|
-
lg: 'var(--radius)',
|
|
18
|
-
md: 'calc(var(--radius) - 2px)',
|
|
19
|
-
sm: 'calc(var(--radius) - 4px)',
|
|
20
|
-
},
|
|
21
|
-
fontSize: {
|
|
22
|
-
// text-caption
|
|
23
|
-
caption: [
|
|
24
|
-
"var(--font-sm)",
|
|
25
|
-
{
|
|
26
|
-
lineHeight: "1.5"
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
// text-body
|
|
30
|
-
body: [
|
|
31
|
-
"var(--font-base)",
|
|
32
|
-
{
|
|
33
|
-
lineHeight: "1.6",
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
// text-heading-6
|
|
37
|
-
"heading-6": [
|
|
38
|
-
"var(--font-base)",
|
|
39
|
-
{
|
|
40
|
-
lineHeight: "1.2",
|
|
41
|
-
fontWeight: 700
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
// text-heading-5
|
|
45
|
-
"heading-5": [
|
|
46
|
-
"var(--font-md)",
|
|
47
|
-
{
|
|
48
|
-
lineHeight: "1.2"
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
// text-heading-4
|
|
52
|
-
"heading-4": [
|
|
53
|
-
"var(--font-lg)",
|
|
54
|
-
{
|
|
55
|
-
lineHeight: "1.2",
|
|
56
|
-
fontWeight: 500
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
// text-heading-3
|
|
60
|
-
"heading-3": [
|
|
61
|
-
"var(--font-xl)",
|
|
62
|
-
{
|
|
63
|
-
lineHeight: "1.1",
|
|
64
|
-
fontWeight: 500
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
|
|
68
|
-
// text-heading-2
|
|
69
|
-
"heading-2": [
|
|
70
|
-
"var(--font-2xl)",
|
|
71
|
-
{
|
|
72
|
-
lineHeight: "1",
|
|
73
|
-
fontWeight: 300
|
|
74
|
-
},
|
|
75
|
-
],
|
|
76
|
-
|
|
77
|
-
// text-heading-1
|
|
78
|
-
"heading-1": [
|
|
79
|
-
"var(--font-3xl)",
|
|
80
|
-
{
|
|
81
|
-
lineHeight: "1",
|
|
82
|
-
},
|
|
83
|
-
],
|
|
84
|
-
},
|
|
85
|
-
colors: {
|
|
86
|
-
transparent: 'transparent',
|
|
87
|
-
current: 'currentColor',
|
|
88
|
-
white: '#ffffff',
|
|
89
|
-
black: '#000000',
|
|
90
|
-
background: 'oklch(var(--background) / <alpha-value>)',
|
|
91
|
-
foreground: 'oklch(var(--foreground) / <alpha-value>)',
|
|
92
|
-
card: {
|
|
93
|
-
DEFAULT: 'oklch(var(--card) / <alpha-value>)',
|
|
94
|
-
foreground: 'oklch(var(--card-foreground) / <alpha-value>)',
|
|
95
|
-
},
|
|
96
|
-
popover: {
|
|
97
|
-
DEFAULT: 'oklch(var(--popover) / <alpha-value>)',
|
|
98
|
-
foreground: 'oklch(var(--popover-foreground) / <alpha-value>)',
|
|
99
|
-
},
|
|
100
|
-
primary: {
|
|
101
|
-
DEFAULT: 'oklch(var(--primary) / <alpha-value>)',
|
|
102
|
-
foreground: 'oklch(var(--primary-foreground) / <alpha-value>)',
|
|
103
|
-
...tokenRamps('primary')
|
|
104
|
-
},
|
|
105
|
-
secondary: {
|
|
106
|
-
DEFAULT: 'oklch(var(--secondary) / <alpha-value>)',
|
|
107
|
-
foreground: 'oklch(var(--secondary-foreground) / <alpha-value>)',
|
|
108
|
-
...tokenRamps('secondary')
|
|
109
|
-
},
|
|
110
|
-
neutral: {
|
|
111
|
-
...tokenRamps('neutral')
|
|
112
|
-
},
|
|
113
|
-
muted: {
|
|
114
|
-
DEFAULT: 'oklch(var(--muted) / <alpha-value>)',
|
|
115
|
-
foreground: 'oklch(var(--muted-foreground) / <alpha-value>)',
|
|
116
|
-
},
|
|
117
|
-
accent: {
|
|
118
|
-
DEFAULT: 'oklch(var(--accent) / <alpha-value>)',
|
|
119
|
-
foreground: 'oklch(var(--accent-foreground) / <alpha-value>)',
|
|
120
|
-
},
|
|
121
|
-
destructive: {
|
|
122
|
-
DEFAULT: 'oklch(var(--destructive) / <alpha-value>)',
|
|
123
|
-
foreground: 'oklch(var(--destructive-foreground) / <alpha-value>)',
|
|
124
|
-
...tokenRamps('destructive')
|
|
125
|
-
},
|
|
126
|
-
success: {
|
|
127
|
-
DEFAULT: 'oklch(var(--success) / <alpha-value>)',
|
|
128
|
-
foreground: 'oklch(var(--success-foreground) / <alpha-value>)',
|
|
129
|
-
...tokenRamps('success')
|
|
130
|
-
},
|
|
131
|
-
border: 'oklch(var(--border) / <alpha-value>)',
|
|
132
|
-
input: 'oklch(var(--input) / <alpha-value>)',
|
|
133
|
-
ring: 'oklch(var(--ring) / <alpha-value>)',
|
|
134
|
-
chart: {
|
|
135
|
-
1: 'oklch(var(--chart-1) / <alpha-value>)',
|
|
136
|
-
2: 'oklch(var(--chart-2) / <alpha-value>)',
|
|
137
|
-
3: 'oklch(var(--chart-3) / <alpha-value>)',
|
|
138
|
-
4: 'oklch(var(--chart-4) / <alpha-value>)',
|
|
139
|
-
5: 'oklch(var(--chart-5) / <alpha-value>)',
|
|
140
|
-
},
|
|
141
|
-
sidebar: {
|
|
142
|
-
DEFAULT: 'oklch(var(--sidebar-background) / <alpha-value>)',
|
|
143
|
-
foreground: 'oklch(var(--sidebar-foreground) / <alpha-value>)',
|
|
144
|
-
primary: 'oklch(var(--sidebar-primary) / <alpha-value>)',
|
|
145
|
-
primaryForeground:
|
|
146
|
-
'oklch(var(--sidebar-primary-foreground) / <alpha-value>)',
|
|
147
|
-
accent: 'oklch(var(--sidebar-accent) / <alpha-value>)',
|
|
148
|
-
accentForeground:
|
|
149
|
-
'oklch(var(--sidebar-accent-foreground) / <alpha-value>)',
|
|
150
|
-
border: 'oklch(var(--sidebar-border) / <alpha-value>)',
|
|
151
|
-
ring: 'oklch(var(--sidebar-ring) / <alpha-value>)',
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
extend: {
|
|
155
|
-
gridTemplateColumns: {
|
|
156
|
-
'fluid': "repeat(auto-fill, minmax(var(--grid-fluid-min), 1fr))"
|
|
157
|
-
},
|
|
158
|
-
keyframes: {
|
|
159
|
-
'accordion-down': {
|
|
160
|
-
from: {
|
|
161
|
-
height: '0'
|
|
162
|
-
},
|
|
163
|
-
to: {
|
|
164
|
-
height: 'var(--radix-accordion-content-height)'
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
'accordion-up': {
|
|
168
|
-
from: {
|
|
169
|
-
height: 'var(--radix-accordion-content-height)'
|
|
170
|
-
},
|
|
171
|
-
to: {
|
|
172
|
-
height: '0'
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
animation: {
|
|
177
|
-
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
178
|
-
'accordion-up': 'accordion-up 0.2s ease-out'
|
|
179
|
-
},
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
plugins: [require('tailwindcss-animate')], // Include any plugins you need
|
|
183
|
-
} satisfies Config;
|