untitledui 0.1.2 → 0.1.4
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/index.mjs +19 -0
- package/package.json +10 -8
- package/templates/default/package.json +20 -21
- package/templates/default/src/app/home-screen.tsx +3 -4
- package/templates/default/src/app/layout.tsx +6 -14
- package/templates/default/src/components/foundations/featured-icon/featured-icons.tsx +1 -1
- package/templates/default/src/components/marketing/header-navigation/base-components/nav-menu-item.tsx +1 -1
- package/templates/default/src/components/marketing/header-navigation/components/header.tsx +1 -1
- package/templates/default/src/components/marketing/header-navigation/dropdown-header-navigation.tsx +1 -1
- package/templates/default/src/components/shared/avatar/avatar-label-group.tsx +1 -1
- package/templates/default/src/components/shared/avatar/avatar-profile-photo.tsx +1 -1
- package/templates/default/src/components/shared/avatar/avatar.tsx +1 -1
- package/templates/default/src/components/shared/avatar/base-components/avatar-add-button.tsx +1 -1
- package/templates/default/src/components/shared/avatar/base-components/avatar-company-icon.tsx +1 -1
- package/templates/default/src/components/shared/avatar/base-components/avatar-online-indicator.tsx +1 -1
- package/templates/default/src/components/shared/avatar/base-components/verified-tick.tsx +1 -1
- package/templates/default/src/components/shared/badges/badge-groups.tsx +1 -1
- package/templates/default/src/components/shared/badges/badges.tsx +1 -1
- package/templates/default/src/components/shared/button-group/button-group.tsx +1 -1
- package/templates/default/src/components/shared/buttons/app-store-buttons-outline.tsx +1 -1
- package/templates/default/src/components/shared/buttons/app-store-buttons.tsx +1 -1
- package/templates/default/src/components/shared/buttons/button-utility.tsx +1 -1
- package/templates/default/src/components/shared/buttons/button.tsx +3 -2
- package/templates/default/src/components/shared/buttons/close-button.tsx +1 -1
- package/templates/default/src/components/shared/buttons/social-button.tsx +1 -1
- package/templates/default/src/components/shared/checkbox/checkbox.tsx +1 -1
- package/templates/default/src/components/shared/dropdown/dropdown.tsx +28 -19
- package/templates/default/src/components/shared/form/hook-form.tsx +75 -0
- package/templates/default/src/components/shared/{inputs → input}/hint-text.tsx +1 -1
- package/templates/default/src/components/shared/{inputs/input → input}/index.tsx +4 -4
- package/templates/default/src/components/shared/{inputs/input → input}/input-payment.tsx +5 -5
- package/templates/default/src/components/shared/{inputs/input → input}/input-with-button.tsx +5 -5
- package/templates/default/src/components/shared/{inputs/input → input}/input-with-dropdown.tsx +5 -5
- package/templates/default/src/components/shared/{inputs/input → input}/input-with-prefix.tsx +5 -5
- package/templates/default/src/components/shared/{inputs → input}/label.tsx +1 -1
- package/templates/default/src/components/shared/progress-indicators/progress-circles.tsx +1 -1
- package/templates/default/src/components/shared/progress-indicators/progress-indicators.tsx +1 -1
- package/templates/default/src/components/shared/radio-buttons/radio-buttons.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-avatar.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-checkbox.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-card.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-icon-simple.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-payment-icon.tsx +1 -1
- package/templates/default/src/components/shared/radio-groups/radio-group-radio-button.tsx +1 -1
- package/templates/default/src/components/shared/{input-dropdown → select}/combobox.tsx +10 -10
- package/templates/default/src/components/shared/{input-dropdown → select}/multi-select.tsx +167 -167
- package/templates/default/src/components/shared/{input-dropdown → select}/popover.tsx +3 -3
- package/templates/default/src/components/shared/select/select-item.tsx +70 -0
- package/templates/default/src/components/shared/{input-dropdown/select.tsx → select/select-native.tsx} +2 -2
- package/templates/default/src/components/shared/select/select.tsx +143 -0
- package/templates/default/src/components/shared/slider/slider.tsx +1 -1
- package/templates/default/src/components/shared/tags/base-components/tag-checkbox.tsx +1 -1
- package/templates/default/src/components/shared/tags/base-components/tag-close-x.tsx +1 -1
- package/templates/default/src/components/shared/tags/tags.tsx +1 -1
- package/templates/default/src/components/shared/{inputs/textarea → textarea}/textarea.tsx +3 -3
- package/templates/default/src/components/shared/toggle/toggle.tsx +1 -1
- package/templates/default/src/components/shared/tooltips/tooltips.tsx +1 -1
- package/templates/default/src/providers/theme.tsx +1 -1
- package/templates/default/src/styles/globals.css +3 -1
- package/templates/default/src/styles/theme.css +392 -380
- package/templates/default/src/styles/typography.css +20 -20
- package/dist/commands/add.js +0 -339
- package/dist/commands/init.js +0 -436
- package/dist/helper/download-tar-api.js +0 -129
- package/dist/helper/download-tar.js +0 -81
- package/dist/helper/find-css-file.js +0 -19
- package/dist/helper/formatText.js +0 -37
- package/dist/helper/get-components-api.js +0 -47
- package/dist/helper/get-components-list.js +0 -62
- package/dist/helper/get-components.js +0 -19
- package/dist/helper/get-config.js +0 -163
- package/dist/helper/get-package-info.js +0 -99
- package/dist/helper/get-pkg-manager.js +0 -16
- package/dist/helper/get-project.js +0 -176
- package/dist/helper/install-template.js +0 -29
- package/dist/helper/match-color-css.js +0 -82
- package/dist/helper/update-color-css.js +0 -134
- package/dist/index.js +0 -25
- package/dist/package.json +0 -50
- package/dist/res/components.json +0 -520
- package/dist/res/config.json +0 -3
- package/templates/default/src/components/shared/input-dropdown/dropdown-item.tsx +0 -98
- package/templates/default/src/components/shared/input-dropdown/input-dropdown.tsx +0 -172
- package/templates/default/src/fonts/GeistMonoVF.woff +0 -0
- package/templates/default/src/fonts/GeistVF.woff +0 -0
- package/templates/default/src/styles/colors.css +0 -805
- /package/templates/default/src/components/shared/{inputs → file-upload-trigger}/file-upload-trigger.tsx +0 -0
- /package/templates/default/src/components/shared/{inputs/form → form}/form.tsx +0 -0
|
@@ -4,9 +4,9 @@ import type { ReactNode, Ref } from "react";
|
|
|
4
4
|
import React from "react";
|
|
5
5
|
import type { TextAreaProps as AriaTextAreaProps, TextFieldProps as AriaTextFieldProps } from "react-aria-components";
|
|
6
6
|
import { TextArea as AriaTextArea } from "react-aria-components";
|
|
7
|
-
import HintText from "@/components/shared/
|
|
8
|
-
import Label from "@/components/shared/
|
|
9
|
-
import { cx } from "@/components/utils";
|
|
7
|
+
import HintText from "@/components/shared/input/hint-text";
|
|
8
|
+
import Label from "@/components/shared/input/label";
|
|
9
|
+
import { cx } from "@/components/utils/cx";
|
|
10
10
|
import { TextField } from "../input";
|
|
11
11
|
|
|
12
12
|
interface TextAreaBaseProps extends AriaTextAreaProps {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
4
|
import type { SwitchProps } from "react-aria-components";
|
|
5
5
|
import { Switch } from "react-aria-components";
|
|
6
|
-
import { cx } from "@/components/utils";
|
|
6
|
+
import { cx } from "@/components/utils/cx";
|
|
7
7
|
|
|
8
8
|
interface ToggleBaseProps {
|
|
9
9
|
size?: "sm" | "md";
|
|
@@ -7,7 +7,7 @@ import type { FocusableElement } from "@react-types/shared";
|
|
|
7
7
|
import { mergeProps, useFocusable } from "react-aria";
|
|
8
8
|
import { Tooltip as AriaTooltip, TooltipTrigger as AriaTooltipTrigger, Button, OverlayArrow } from "react-aria-components";
|
|
9
9
|
import type { TooltipProps as AriaTooltipProps, ButtonProps, TooltipTriggerComponentProps } from "react-aria-components";
|
|
10
|
-
import { cx } from "@/components/utils";
|
|
10
|
+
import { cx } from "@/components/utils/cx";
|
|
11
11
|
|
|
12
12
|
const padding: Partial<Record<Placement, string>> = {
|
|
13
13
|
"top left": "px-2.5",
|
|
@@ -4,7 +4,7 @@ import { ThemeProvider } from "next-themes";
|
|
|
4
4
|
|
|
5
5
|
export function Theme({ children }: { children: React.ReactNode }) {
|
|
6
6
|
return (
|
|
7
|
-
<ThemeProvider attribute="
|
|
7
|
+
<ThemeProvider attribute="class" value={{ light: "light-mode", dark: "dark-mode" }} enableSystem>
|
|
8
8
|
{children}
|
|
9
9
|
</ThemeProvider>
|
|
10
10
|
);
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
@import "./text-styles.css";
|
|
10
10
|
@import "./typography.css";
|
|
11
11
|
|
|
12
|
+
@source "../components/application/code-snippet/code-snippet.style.css";
|
|
13
|
+
|
|
12
14
|
/*
|
|
13
15
|
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
14
16
|
so we've added these compatibility styles to make sure everything still
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
@custom-variant dark (&:where(
|
|
32
|
+
@custom-variant dark (&:where(.dark-mode, .dark-mode *));
|
|
31
33
|
@custom-variant label (& [data-label]);
|
|
32
34
|
@custom-variant focus-input-within (&:has(input:focus));
|
|
33
35
|
|