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.
Files changed (88) hide show
  1. package/dist/index.mjs +19 -0
  2. package/package.json +10 -8
  3. package/templates/default/package.json +20 -21
  4. package/templates/default/src/app/home-screen.tsx +3 -4
  5. package/templates/default/src/app/layout.tsx +6 -14
  6. package/templates/default/src/components/foundations/featured-icon/featured-icons.tsx +1 -1
  7. package/templates/default/src/components/marketing/header-navigation/base-components/nav-menu-item.tsx +1 -1
  8. package/templates/default/src/components/marketing/header-navigation/components/header.tsx +1 -1
  9. package/templates/default/src/components/marketing/header-navigation/dropdown-header-navigation.tsx +1 -1
  10. package/templates/default/src/components/shared/avatar/avatar-label-group.tsx +1 -1
  11. package/templates/default/src/components/shared/avatar/avatar-profile-photo.tsx +1 -1
  12. package/templates/default/src/components/shared/avatar/avatar.tsx +1 -1
  13. package/templates/default/src/components/shared/avatar/base-components/avatar-add-button.tsx +1 -1
  14. package/templates/default/src/components/shared/avatar/base-components/avatar-company-icon.tsx +1 -1
  15. package/templates/default/src/components/shared/avatar/base-components/avatar-online-indicator.tsx +1 -1
  16. package/templates/default/src/components/shared/avatar/base-components/verified-tick.tsx +1 -1
  17. package/templates/default/src/components/shared/badges/badge-groups.tsx +1 -1
  18. package/templates/default/src/components/shared/badges/badges.tsx +1 -1
  19. package/templates/default/src/components/shared/button-group/button-group.tsx +1 -1
  20. package/templates/default/src/components/shared/buttons/app-store-buttons-outline.tsx +1 -1
  21. package/templates/default/src/components/shared/buttons/app-store-buttons.tsx +1 -1
  22. package/templates/default/src/components/shared/buttons/button-utility.tsx +1 -1
  23. package/templates/default/src/components/shared/buttons/button.tsx +3 -2
  24. package/templates/default/src/components/shared/buttons/close-button.tsx +1 -1
  25. package/templates/default/src/components/shared/buttons/social-button.tsx +1 -1
  26. package/templates/default/src/components/shared/checkbox/checkbox.tsx +1 -1
  27. package/templates/default/src/components/shared/dropdown/dropdown.tsx +28 -19
  28. package/templates/default/src/components/shared/form/hook-form.tsx +75 -0
  29. package/templates/default/src/components/shared/{inputs → input}/hint-text.tsx +1 -1
  30. package/templates/default/src/components/shared/{inputs/input → input}/index.tsx +4 -4
  31. package/templates/default/src/components/shared/{inputs/input → input}/input-payment.tsx +5 -5
  32. package/templates/default/src/components/shared/{inputs/input → input}/input-with-button.tsx +5 -5
  33. package/templates/default/src/components/shared/{inputs/input → input}/input-with-dropdown.tsx +5 -5
  34. package/templates/default/src/components/shared/{inputs/input → input}/input-with-prefix.tsx +5 -5
  35. package/templates/default/src/components/shared/{inputs → input}/label.tsx +1 -1
  36. package/templates/default/src/components/shared/progress-indicators/progress-circles.tsx +1 -1
  37. package/templates/default/src/components/shared/progress-indicators/progress-indicators.tsx +1 -1
  38. package/templates/default/src/components/shared/radio-buttons/radio-buttons.tsx +1 -1
  39. package/templates/default/src/components/shared/radio-groups/radio-group-avatar.tsx +1 -1
  40. package/templates/default/src/components/shared/radio-groups/radio-group-checkbox.tsx +1 -1
  41. package/templates/default/src/components/shared/radio-groups/radio-group-icon-card.tsx +1 -1
  42. package/templates/default/src/components/shared/radio-groups/radio-group-icon-simple.tsx +1 -1
  43. package/templates/default/src/components/shared/radio-groups/radio-group-payment-icon.tsx +1 -1
  44. package/templates/default/src/components/shared/radio-groups/radio-group-radio-button.tsx +1 -1
  45. package/templates/default/src/components/shared/{input-dropdown → select}/combobox.tsx +10 -10
  46. package/templates/default/src/components/shared/{input-dropdown → select}/multi-select.tsx +167 -167
  47. package/templates/default/src/components/shared/{input-dropdown → select}/popover.tsx +3 -3
  48. package/templates/default/src/components/shared/select/select-item.tsx +70 -0
  49. package/templates/default/src/components/shared/{input-dropdown/select.tsx → select/select-native.tsx} +2 -2
  50. package/templates/default/src/components/shared/select/select.tsx +143 -0
  51. package/templates/default/src/components/shared/slider/slider.tsx +1 -1
  52. package/templates/default/src/components/shared/tags/base-components/tag-checkbox.tsx +1 -1
  53. package/templates/default/src/components/shared/tags/base-components/tag-close-x.tsx +1 -1
  54. package/templates/default/src/components/shared/tags/tags.tsx +1 -1
  55. package/templates/default/src/components/shared/{inputs/textarea → textarea}/textarea.tsx +3 -3
  56. package/templates/default/src/components/shared/toggle/toggle.tsx +1 -1
  57. package/templates/default/src/components/shared/tooltips/tooltips.tsx +1 -1
  58. package/templates/default/src/providers/theme.tsx +1 -1
  59. package/templates/default/src/styles/globals.css +3 -1
  60. package/templates/default/src/styles/theme.css +392 -380
  61. package/templates/default/src/styles/typography.css +20 -20
  62. package/dist/commands/add.js +0 -339
  63. package/dist/commands/init.js +0 -436
  64. package/dist/helper/download-tar-api.js +0 -129
  65. package/dist/helper/download-tar.js +0 -81
  66. package/dist/helper/find-css-file.js +0 -19
  67. package/dist/helper/formatText.js +0 -37
  68. package/dist/helper/get-components-api.js +0 -47
  69. package/dist/helper/get-components-list.js +0 -62
  70. package/dist/helper/get-components.js +0 -19
  71. package/dist/helper/get-config.js +0 -163
  72. package/dist/helper/get-package-info.js +0 -99
  73. package/dist/helper/get-pkg-manager.js +0 -16
  74. package/dist/helper/get-project.js +0 -176
  75. package/dist/helper/install-template.js +0 -29
  76. package/dist/helper/match-color-css.js +0 -82
  77. package/dist/helper/update-color-css.js +0 -134
  78. package/dist/index.js +0 -25
  79. package/dist/package.json +0 -50
  80. package/dist/res/components.json +0 -520
  81. package/dist/res/config.json +0 -3
  82. package/templates/default/src/components/shared/input-dropdown/dropdown-item.tsx +0 -98
  83. package/templates/default/src/components/shared/input-dropdown/input-dropdown.tsx +0 -172
  84. package/templates/default/src/fonts/GeistMonoVF.woff +0 -0
  85. package/templates/default/src/fonts/GeistVF.woff +0 -0
  86. package/templates/default/src/styles/colors.css +0 -805
  87. /package/templates/default/src/components/shared/{inputs → file-upload-trigger}/file-upload-trigger.tsx +0 -0
  88. /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/inputs/hint-text";
8
- import Label from "@/components/shared/inputs/label";
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="data-theme" enableColorScheme enableSystem>
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([data-theme=dark], [data-theme=dark] *));
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