untitledui 0.1.1
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/commands/add.js +339 -0
- package/dist/commands/init.js +436 -0
- package/dist/helper/download-tar-api.js +129 -0
- package/dist/helper/download-tar.js +81 -0
- package/dist/helper/find-css-file.js +19 -0
- package/dist/helper/formatText.js +37 -0
- package/dist/helper/get-components-api.js +47 -0
- package/dist/helper/get-components-list.js +62 -0
- package/dist/helper/get-components.js +19 -0
- package/dist/helper/get-config.js +163 -0
- package/dist/helper/get-package-info.js +99 -0
- package/dist/helper/get-pkg-manager.js +16 -0
- package/dist/helper/get-project.js +176 -0
- package/dist/helper/install-template.js +29 -0
- package/dist/helper/match-color-css.js +82 -0
- package/dist/helper/update-color-css.js +134 -0
- package/dist/index.js +25 -0
- package/dist/package.json +50 -0
- package/dist/res/components.json +520 -0
- package/dist/res/config.json +3 -0
- package/package.json +61 -0
- package/templates/default/.prettierrc +10 -0
- package/templates/default/README.md +36 -0
- package/templates/default/eslint.config.mjs +58 -0
- package/templates/default/next.config.ts +6 -0
- package/templates/default/package.json +57 -0
- package/templates/default/postcss.config.js +5 -0
- package/templates/default/public/favicon.ico +0 -0
- package/templates/default/public/marketing/smiling-girl.png +0 -0
- package/templates/default/public/marketing/spirals.webp +0 -0
- package/templates/default/src/app/home-screen.tsx +109 -0
- package/templates/default/src/app/layout.tsx +42 -0
- package/templates/default/src/app/not-found.tsx +40 -0
- package/templates/default/src/app/page.tsx +3 -0
- package/templates/default/src/components/foundations/dot-icon.tsx +27 -0
- package/templates/default/src/components/foundations/featured-icon/featured-icons.tsx +153 -0
- package/templates/default/src/components/foundations/logo/UntitledLogo.tsx +63 -0
- package/templates/default/src/components/foundations/logo/UntitledLogoMinimal.tsx +164 -0
- package/templates/default/src/components/foundations/payment-icons/amex-icon.tsx +19 -0
- package/templates/default/src/components/foundations/payment-icons/apple-pay-icon.tsx +27 -0
- package/templates/default/src/components/foundations/payment-icons/discover-icon.tsx +34 -0
- package/templates/default/src/components/foundations/payment-icons/index.tsx +10 -0
- package/templates/default/src/components/foundations/payment-icons/mastercard-icon.tsx +39 -0
- package/templates/default/src/components/foundations/payment-icons/paypal-icon.tsx +45 -0
- package/templates/default/src/components/foundations/payment-icons/stripe-icon.tsx +27 -0
- package/templates/default/src/components/foundations/payment-icons/union-pay-icon.tsx +37 -0
- package/templates/default/src/components/foundations/payment-icons/visa-icon.tsx +27 -0
- package/templates/default/src/components/marketing/header-navigation/base-components/nav-menu-item.tsx +41 -0
- package/templates/default/src/components/marketing/header-navigation/components/header.tsx +245 -0
- package/templates/default/src/components/marketing/header-navigation/dropdown-header-navigation.tsx +53 -0
- package/templates/default/src/components/shared/avatar/avatar-label-group.tsx +32 -0
- package/templates/default/src/components/shared/avatar/avatar-profile-photo.tsx +84 -0
- package/templates/default/src/components/shared/avatar/avatar.tsx +131 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-add-button.tsx +33 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-company-icon.tsx +26 -0
- package/templates/default/src/components/shared/avatar/base-components/avatar-online-indicator.tsx +31 -0
- package/templates/default/src/components/shared/avatar/base-components/index.ts +4 -0
- package/templates/default/src/components/shared/avatar/base-components/verified-tick.tsx +34 -0
- package/templates/default/src/components/shared/avatar/utils.ts +12 -0
- package/templates/default/src/components/shared/badges/badge-groups.tsx +176 -0
- package/templates/default/src/components/shared/badges/badge-types.ts +264 -0
- package/templates/default/src/components/shared/badges/badges.tsx +479 -0
- package/templates/default/src/components/shared/button-group/button-group.tsx +97 -0
- package/templates/default/src/components/shared/buttons/app-store-buttons-outline.tsx +454 -0
- package/templates/default/src/components/shared/buttons/app-store-buttons.tsx +806 -0
- package/templates/default/src/components/shared/buttons/button-utility.tsx +87 -0
- package/templates/default/src/components/shared/buttons/button.tsx +284 -0
- package/templates/default/src/components/shared/buttons/close-button.tsx +39 -0
- package/templates/default/src/components/shared/buttons/social-button.tsx +135 -0
- package/templates/default/src/components/shared/buttons/social-logos.tsx +115 -0
- package/templates/default/src/components/shared/checkbox/checkbox.tsx +120 -0
- package/templates/default/src/components/shared/dropdown/dropdown.tsx +138 -0
- package/templates/default/src/components/shared/input-dropdown/combobox.tsx +161 -0
- package/templates/default/src/components/shared/input-dropdown/dropdown-item.tsx +98 -0
- package/templates/default/src/components/shared/input-dropdown/input-dropdown.tsx +172 -0
- package/templates/default/src/components/shared/input-dropdown/multi-select.tsx +373 -0
- package/templates/default/src/components/shared/input-dropdown/popover.tsx +36 -0
- package/templates/default/src/components/shared/input-dropdown/select.tsx +63 -0
- package/templates/default/src/components/shared/inputs/file-upload-trigger.tsx +74 -0
- package/templates/default/src/components/shared/inputs/form/form.tsx +10 -0
- package/templates/default/src/components/shared/inputs/hint-text.tsx +34 -0
- package/templates/default/src/components/shared/inputs/input/index.tsx +189 -0
- package/templates/default/src/components/shared/inputs/input/input-payment.tsx +134 -0
- package/templates/default/src/components/shared/inputs/input/input-with-button.tsx +69 -0
- package/templates/default/src/components/shared/inputs/input/input-with-dropdown.tsx +178 -0
- package/templates/default/src/components/shared/inputs/input/input-with-prefix.tsx +74 -0
- package/templates/default/src/components/shared/inputs/label.tsx +46 -0
- package/templates/default/src/components/shared/inputs/textarea/textarea.tsx +82 -0
- package/templates/default/src/components/shared/progress-indicators/progress-circles.tsx +176 -0
- package/templates/default/src/components/shared/progress-indicators/progress-indicators.tsx +86 -0
- package/templates/default/src/components/shared/progress-indicators/simple-circle.tsx +29 -0
- package/templates/default/src/components/shared/radio-buttons/radio-buttons.tsx +125 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-avatar.tsx +62 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-checkbox.tsx +72 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-card.tsx +95 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-simple.tsx +70 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-payment-icon.tsx +71 -0
- package/templates/default/src/components/shared/radio-groups/radio-group-radio-button.tsx +76 -0
- package/templates/default/src/components/shared/radio-groups/radio-groups.tsx +8 -0
- package/templates/default/src/components/shared/slider/slider.tsx +76 -0
- package/templates/default/src/components/shared/tags/base-components/tag-checkbox.tsx +47 -0
- package/templates/default/src/components/shared/tags/base-components/tag-close-x.tsx +34 -0
- package/templates/default/src/components/shared/tags/tags.tsx +162 -0
- package/templates/default/src/components/shared/toggle/toggle.tsx +140 -0
- package/templates/default/src/components/shared/tooltips/tooltips.tsx +140 -0
- package/templates/default/src/components/utils/index.ts +48 -0
- package/templates/default/src/components/utils/isDeepEqual.ts +31 -0
- package/templates/default/src/components/utils/isReactComponent.ts +22 -0
- package/templates/default/src/components/utils/mergeRefs.ts +19 -0
- package/templates/default/src/components/utils/useBreakpoint.ts +36 -0
- package/templates/default/src/components/utils/uuid.ts +9 -0
- package/templates/default/src/fonts/GeistMonoVF.woff +0 -0
- package/templates/default/src/fonts/GeistVF.woff +0 -0
- package/templates/default/src/hooks/use-resize-observer.tsx +55 -0
- package/templates/default/src/providers/theme.tsx +11 -0
- package/templates/default/src/styles/colors.css +805 -0
- package/templates/default/src/styles/globals.css +86 -0
- package/templates/default/src/styles/text-styles.css +177 -0
- package/templates/default/src/styles/theme.css +1310 -0
- package/templates/default/src/styles/typography.css +428 -0
- package/templates/default/tsconfig.json +27 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
|
|
3
|
+
@plugin "@tailwindcss/typography";
|
|
4
|
+
@plugin "tailwindcss-react-aria-components";
|
|
5
|
+
@plugin "tailwindcss-animate";
|
|
6
|
+
@plugin "@designbycode/tailwindcss-mask-image";
|
|
7
|
+
|
|
8
|
+
@import "./theme.css";
|
|
9
|
+
@import "./text-styles.css";
|
|
10
|
+
@import "./typography.css";
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
14
|
+
so we've added these compatibility styles to make sure everything still
|
|
15
|
+
looks the same as it did with Tailwind CSS v3.
|
|
16
|
+
|
|
17
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
18
|
+
color utility to any element that depends on these defaults.
|
|
19
|
+
*/
|
|
20
|
+
@layer base {
|
|
21
|
+
*,
|
|
22
|
+
::after,
|
|
23
|
+
::before,
|
|
24
|
+
::backdrop,
|
|
25
|
+
::file-selector-button {
|
|
26
|
+
border-color: var(--color-gray-200, currentColor);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
31
|
+
@custom-variant label (& [data-label]);
|
|
32
|
+
@custom-variant focus-input-within (&:has(input:focus));
|
|
33
|
+
|
|
34
|
+
@utility scrollbar-hide {
|
|
35
|
+
/* For Webkit-based browsers (Chrome, Safari and Opera) */
|
|
36
|
+
&::-webkit-scrollbar {
|
|
37
|
+
display: none;
|
|
38
|
+
-webkit-appearance: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* For IE, Edge and Firefox */
|
|
42
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
43
|
+
scrollbar-width: none; /* Firefox */
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@utility animation-duration-150 {
|
|
47
|
+
animation-duration: 150ms;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@utility animation-duration-300 {
|
|
51
|
+
animation-duration: 300ms;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@utility transition-inherit-all {
|
|
55
|
+
transition-property: inherit;
|
|
56
|
+
transition-duration: inherit;
|
|
57
|
+
transition-timing-function: inherit;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
html,
|
|
61
|
+
body {
|
|
62
|
+
font-family: var(--font-body);
|
|
63
|
+
-webkit-font-smoothing: antialiased;
|
|
64
|
+
-moz-osx-font-smoothing: grayscale;
|
|
65
|
+
-webkit-font-variant-ligatures: contextual;
|
|
66
|
+
font-variant-ligatures: contextual;
|
|
67
|
+
-webkit-font-kerning: normal;
|
|
68
|
+
font-kerning: normal;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Hide the default expand arrow on Safari. */
|
|
72
|
+
details summary::-webkit-details-marker {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Hide default arrows from number inputs. */
|
|
77
|
+
/* Chrome, Safari, Edge, Opera */
|
|
78
|
+
input::-webkit-outer-spin-button,
|
|
79
|
+
input::-webkit-inner-spin-button {
|
|
80
|
+
-webkit-appearance: none;
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
/* Firefox */
|
|
84
|
+
input[type="number"] {
|
|
85
|
+
-moz-appearance: textfield;
|
|
86
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@utility tt-xs {
|
|
2
|
+
font-weight: 400;
|
|
3
|
+
font-size: var(--text-xs);
|
|
4
|
+
line-height: var(--leading-xs);
|
|
5
|
+
}
|
|
6
|
+
@utility tt-sm {
|
|
7
|
+
font-weight: 400;
|
|
8
|
+
font-size: var(--text-sm);
|
|
9
|
+
line-height: var(--leading-sm);
|
|
10
|
+
}
|
|
11
|
+
@utility tt-md {
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
font-size: var(--text-md);
|
|
14
|
+
line-height: var(--leading-md);
|
|
15
|
+
}
|
|
16
|
+
@utility tt-lg {
|
|
17
|
+
font-weight: 400;
|
|
18
|
+
font-size: var(--text-lg);
|
|
19
|
+
line-height: var(--leading-lg);
|
|
20
|
+
}
|
|
21
|
+
@utility tt-xl {
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
font-size: var(--text-xl);
|
|
24
|
+
line-height: var(--leading-xl);
|
|
25
|
+
}
|
|
26
|
+
@utility td-xs {
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
font-size: var(--text-display-xs);
|
|
29
|
+
line-height: var(--leading-display-sm);
|
|
30
|
+
}
|
|
31
|
+
@utility td-sm {
|
|
32
|
+
font-weight: 400;
|
|
33
|
+
font-size: var(--text-display-sm);
|
|
34
|
+
line-height: var(--leading-display-sm);
|
|
35
|
+
}
|
|
36
|
+
@utility td-md {
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
font-size: var(--text-display-md);
|
|
39
|
+
line-height: var(--leading-display-md);
|
|
40
|
+
letter-spacing: var(--tracking-display-md);
|
|
41
|
+
}
|
|
42
|
+
@utility td-lg {
|
|
43
|
+
font-weight: 400;
|
|
44
|
+
font-size: var(--text-display-lg);
|
|
45
|
+
line-height: var(--leading-display-lg);
|
|
46
|
+
letter-spacing: var(--tracking-display-lg);
|
|
47
|
+
}
|
|
48
|
+
@utility td-xl {
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
font-size: var(--text-display-xl);
|
|
51
|
+
line-height: var(--leading-display-xl);
|
|
52
|
+
letter-spacing: var(--tracking-display-xl);
|
|
53
|
+
}
|
|
54
|
+
@utility td-2xl {
|
|
55
|
+
font-size: var(--text-display-2xl);
|
|
56
|
+
line-height: var(--leading-display-2xl);
|
|
57
|
+
letter-spacing: var(--tracking-display-2xl);
|
|
58
|
+
}
|
|
59
|
+
@utility tt-xs-md {
|
|
60
|
+
font-weight: 500;
|
|
61
|
+
font-size: var(--text-xs);
|
|
62
|
+
line-height: var(--leading-xs);
|
|
63
|
+
}
|
|
64
|
+
@utility tt-sm-md {
|
|
65
|
+
font-weight: 500;
|
|
66
|
+
font-size: var(--text-sm);
|
|
67
|
+
line-height: var(--leading-sm);
|
|
68
|
+
}
|
|
69
|
+
@utility tt-md-md {
|
|
70
|
+
font-weight: 500;
|
|
71
|
+
font-size: var(--text-md);
|
|
72
|
+
line-height: var(--leading-md);
|
|
73
|
+
}
|
|
74
|
+
@utility tt-lg-md {
|
|
75
|
+
font-weight: 500;
|
|
76
|
+
font-size: var(--text-lg);
|
|
77
|
+
line-height: var(--leading-lg);
|
|
78
|
+
}
|
|
79
|
+
@utility tt-xl-md {
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
font-size: var(--text-xl);
|
|
82
|
+
line-height: var(--leading-xl);
|
|
83
|
+
}
|
|
84
|
+
@utility td-xs-md {
|
|
85
|
+
font-weight: 500;
|
|
86
|
+
font-size: var(--text-display-xs);
|
|
87
|
+
line-height: var(--leading-display-xs);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@utility td-sm-md {
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: var(--text-display-sm);
|
|
93
|
+
line-height: var(--leading-display-sm);
|
|
94
|
+
}
|
|
95
|
+
@utility td-md-md {
|
|
96
|
+
font-weight: 500;
|
|
97
|
+
font-size: var(--text-display-md);
|
|
98
|
+
line-height: var(--leading-display-md);
|
|
99
|
+
letter-spacing: var(--tracking-display-md);
|
|
100
|
+
}
|
|
101
|
+
@utility td-lg-md {
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
font-size: var(--text-display-lg);
|
|
104
|
+
line-height: var(--leading-display-lg);
|
|
105
|
+
letter-spacing: var(--tracking-display-lg);
|
|
106
|
+
}
|
|
107
|
+
@utility td-xl-md {
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
font-size: var(--text-display-xl);
|
|
110
|
+
line-height: var(--leading-display-xl);
|
|
111
|
+
letter-spacing: var(--tracking-display-xl);
|
|
112
|
+
}
|
|
113
|
+
@utility td-2xl-md {
|
|
114
|
+
font-weight: 500;
|
|
115
|
+
font-size: var(--text-display-2xl);
|
|
116
|
+
line-height: var(--leading-display-2xl);
|
|
117
|
+
letter-spacing: var(--tracking-display-2xl);
|
|
118
|
+
}
|
|
119
|
+
@utility tt-xs-semi {
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
font-size: var(--text-xs);
|
|
122
|
+
line-height: var(--leading-xs);
|
|
123
|
+
}
|
|
124
|
+
@utility tt-sm-semi {
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
font-size: var(--text-sm);
|
|
127
|
+
line-height: var(--leading-sm);
|
|
128
|
+
}
|
|
129
|
+
@utility tt-md-semi {
|
|
130
|
+
font-weight: 600;
|
|
131
|
+
font-size: var(--text-md);
|
|
132
|
+
line-height: var(--leading-md);
|
|
133
|
+
}
|
|
134
|
+
@utility tt-lg-semi {
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
font-size: var(--text-lg);
|
|
137
|
+
line-height: var(--leading-lg);
|
|
138
|
+
}
|
|
139
|
+
@utility tt-xl-semi {
|
|
140
|
+
font-weight: 600;
|
|
141
|
+
font-size: var(--text-xl);
|
|
142
|
+
line-height: var(--leading-xl);
|
|
143
|
+
}
|
|
144
|
+
@utility td-xs-semi {
|
|
145
|
+
font-weight: 600;
|
|
146
|
+
font-size: var(--text-display-xs);
|
|
147
|
+
line-height: var(--leading-display-xs);
|
|
148
|
+
}
|
|
149
|
+
@utility td-sm-semi {
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
font-size: var(--text-display-sm);
|
|
152
|
+
line-height: var(--leading-display-sm);
|
|
153
|
+
}
|
|
154
|
+
@utility td-md-semi {
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
font-size: var(--text-display-md);
|
|
157
|
+
line-height: var(--leading-display-md);
|
|
158
|
+
letter-spacing: var(--tracking-display-md);
|
|
159
|
+
}
|
|
160
|
+
@utility td-lg-semi {
|
|
161
|
+
font-weight: 600;
|
|
162
|
+
font-size: var(--text-display-lg);
|
|
163
|
+
line-height: var(--leading-display-lg);
|
|
164
|
+
letter-spacing: var(--tracking-display-lg);
|
|
165
|
+
}
|
|
166
|
+
@utility td-xl-semi {
|
|
167
|
+
font-weight: 600;
|
|
168
|
+
font-size: var(--text-display-xl);
|
|
169
|
+
line-height: var(--leading-display-xl);
|
|
170
|
+
letter-spacing: var(--tracking-display-xl);
|
|
171
|
+
}
|
|
172
|
+
@utility td-2xl-semi {
|
|
173
|
+
font-weight: 600;
|
|
174
|
+
font-size: var(--text-display-2xl);
|
|
175
|
+
line-height: var(--leading-display-2xl);
|
|
176
|
+
letter-spacing: var(--tracking-display-2xl);
|
|
177
|
+
}
|