@altimateai/ui-components 0.0.72 → 0.0.73

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.
@@ -69,15 +69,15 @@ function Nc({ className: e, ...n }) {
69
69
  "data-slot": "input-group",
70
70
  role: "group",
71
71
  className: G(
72
- "al-group/input-group al-border-input dark:al-bg-input/30 al-shadow-xs al-relative al-flex al-w-full al-items-center al-rounded-md al-border al-outline-none al-transition-[color,box-shadow]",
73
- "al-h-9 has-[>textarea]:al-h-auto",
72
+ "al-group/input-group al-border-input al-bg-background al-relative al-flex al-w-full al-items-center al-overflow-hidden al-rounded-md al-border al-outline-none al-transition-[color,box-shadow]",
73
+ "al-h-10 has-[>textarea]:al-h-auto",
74
74
  // Variants based on alignment.
75
75
  "has-[>[data-align=inline-start]]:[&>input]:al-pl-2",
76
76
  "has-[>[data-align=inline-end]]:[&>input]:al-pr-2",
77
77
  "has-[>[data-align=block-start]]:al-h-auto has-[>[data-align=block-start]]:al-flex-col has-[>[data-align=block-start]]:[&>input]:al-pb-3",
78
78
  "has-[>[data-align=block-end]]:al-h-auto has-[>[data-align=block-end]]:al-flex-col has-[>[data-align=block-end]]:[&>input]:al-pt-3",
79
- // Focus state.
80
- "has-[[data-slot=input-group-control]:focus-visible]:al-ring-ring has-[[data-slot=input-group-control]:focus-visible]:al-ring-1",
79
+ // Focus state - matches Input component styles.
80
+ "has-[[data-slot=input-group-control]:focus-visible]:al-ring-ring has-[[data-slot=input-group-control]:focus-visible]:al-ring-2 has-[[data-slot=input-group-control]:focus-visible]:al-ring-offset-2 has-[[data-slot=input-group-control]:focus-visible]:al-ring-offset-background",
81
81
  // Error state.
82
82
  "has-[[data-slot][aria-invalid=true]]:al-ring-destructive/20 has-[[data-slot][aria-invalid=true]]:al-border-destructive dark:has-[[data-slot][aria-invalid=true]]:al-ring-destructive/40",
83
83
  e
@@ -87,12 +87,12 @@ function Nc({ className: e, ...n }) {
87
87
  );
88
88
  }
89
89
  const _c = pt(
90
- "al-text-muted-foreground al-flex al-h-auto al-cursor-text al-select-none al-items-center al-gap-2 al-py-1.5 al-text-sm al-font-medium al-group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:al-rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:al-size-4",
90
+ "al-text-muted-foreground al-flex al-cursor-text al-select-none al-items-center al-gap-2 al-text-sm al-font-medium al-group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:al-rounded-[calc(var(--radius)-5px)] [&>svg:not([class*=size-])]:al-size-4",
91
91
  {
92
92
  variants: {
93
93
  align: {
94
- "inline-start": "al-order-first al-pl-3 has-[>button]:al-ml-[-0.45rem] has-[>kbd]:al-ml-[-0.35rem]",
95
- "inline-end": "al-order-last al-pr-3 has-[>button]:al-mr-[-0.4rem] has-[>kbd]:al-mr-[-0.35rem]",
94
+ "inline-start": "al-order-first al-pl-3 al-pr-1 has-[>button]:al-ml-[-0.45rem] has-[>kbd]:al-ml-[-0.35rem]",
95
+ "inline-end": "al-order-last al-pl-1 al-pr-3 has-[>button]:al-mr-[-0.4rem] has-[>kbd]:al-mr-[-0.35rem]",
96
96
  "block-start": "[.border-b]:al-pb-3 al-order-first al-w-full al-justify-start al-px-3 al-pt-3 al-group-has-[>input]/input-group:pt-2.5",
97
97
  "block-end": "[.border-t]:al-pt-3 al-order-last al-w-full al-justify-start al-px-3 al-pb-3 al-group-has-[>input]/input-group:pb-2.5"
98
98
  }
@@ -127,7 +127,7 @@ const Ac = pt("al-flex al-items-center al-gap-2 al-text-sm al-shadow-none", {
127
127
  size: {
128
128
  xs: "al-h-6 al-gap-1 al-rounded-[calc(var(--radius)-5px)] al-px-2 has-[>svg]:al-px-2 [&>svg:not([class*=size-])]:al-size-3.5",
129
129
  sm: "al-h-8 al-gap-1.5 al-rounded-md al-px-2.5 has-[>svg]:al-px-2.5",
130
- icon: "!al-size-6 al-rounded-[calc(var(--radius)-5px)] al-p-0 has-[>svg]:al-p-0"
130
+ icon: "!al-size-7 al-rounded-[calc(var(--radius)-5px)] al-p-0 has-[>svg]:al-p-0"
131
131
  }
132
132
  },
133
133
  defaultVariants: {
@@ -170,7 +170,7 @@ function Rc({ className: e, ...n }) {
170
170
  {
171
171
  "data-slot": "input-group-control",
172
172
  className: G(
173
- "al-flex-1 al-rounded-none al-border-0 al-bg-transparent al-shadow-none focus-visible:!al-ring-offset-0 focus-visible:!al-ring-0 dark:al-bg-transparent",
173
+ "al-flex-1 !al-h-full al-py-0 al-rounded-none al-border-0 al-bg-transparent al-shadow-none focus-visible:!al-ring-offset-0 focus-visible:!al-ring-0 dark:al-bg-transparent",
174
174
  e
175
175
  ),
176
176
  ...n
@@ -2967,13 +2967,12 @@ const Fa = (e, t) => {
2967
2967
  const Qd = [["path", { d: "M10.585 10.587a2 2 0 0 0 2.829 2.828", key: "svg-0" }], ["path", { d: "M16.681 16.673a8.717 8.717 0 0 1 -4.681 1.327c-3.6 0 -6.6 -2 -9 -6c1.272 -2.12 2.712 -3.678 4.32 -4.674m2.86 -1.146a9.055 9.055 0 0 1 1.82 -.18c3.6 0 6.6 2 9 6c-.666 1.11 -1.379 2.067 -2.138 2.87", key: "svg-1" }], ["path", { d: "M3 3l18 18", key: "svg-2" }]], Jd = gl("outline", "eye-off", "EyeOff", Qd), ef = At(
2968
2968
  ({ className: e, ...t }, n) => {
2969
2969
  const [a, r] = Ne(!1);
2970
- return /* @__PURE__ */ u.jsxs(Bi, { children: [
2970
+ return /* @__PURE__ */ u.jsxs(Bi, { className: e, children: [
2971
2971
  /* @__PURE__ */ u.jsx(
2972
2972
  Hi,
2973
2973
  {
2974
2974
  ref: n,
2975
2975
  type: a ? "text" : "password",
2976
- className: e,
2977
2976
  ...t
2978
2977
  }
2979
2978
  ),
@@ -42,7 +42,7 @@ export default {
42
42
  } as Meta<typeof InputGroup>;
43
43
 
44
44
  export const Default: StoryFn = () => (
45
- <div className="al-grid al-w-full al-max-w-sm al-gap-6">
45
+ <div className="al-grid al-w-full al-max-w-sm al-gap-6 al-p-4">
46
46
  <InputGroup>
47
47
  <InputGroupInput placeholder="Search..." />
48
48
  <InputGroupAddon>
@@ -109,7 +109,7 @@ export const Default: StoryFn = () => (
109
109
 
110
110
  // Alignment Variations
111
111
  export const AlignmentVariations: StoryFn = () => (
112
- <div className="al-w-96 al-space-y-6">
112
+ <div className="al-w-96 al-space-y-6 al-p-4">
113
113
  <div>
114
114
  <label className="al-text-sm al-font-medium al-block al-mb-2">Inline Start</label>
115
115
  <InputGroup>
@@ -155,7 +155,7 @@ export const AlignmentVariations: StoryFn = () => (
155
155
 
156
156
  // Button Variations
157
157
  export const ButtonVariations: StoryFn = () => (
158
- <div className="al-w-96 al-space-y-4">
158
+ <div className="al-w-96 al-space-y-4 al-p-4">
159
159
  <InputGroup>
160
160
  <InputGroupInput placeholder="Enter text to copy" defaultValue="https://example.com" />
161
161
  <InputGroupAddon align="inline-end">
@@ -181,7 +181,7 @@ export const ButtonVariations: StoryFn = () => (
181
181
 
182
182
  // Text Variations
183
183
  export const TextVariations: StoryFn = () => (
184
- <div className="al-w-96 al-space-y-4">
184
+ <div className="al-w-96 al-space-y-4 al-p-4">
185
185
  <InputGroup>
186
186
  <InputGroupAddon>
187
187
  <InputGroupText>$</InputGroupText>
@@ -220,7 +220,7 @@ export const TextVariations: StoryFn = () => (
220
220
 
221
221
  // Complex Interactions
222
222
  export const ComplexInteractions: StoryFn = () => (
223
- <div className="al-w-96 al-space-y-4">
223
+ <div className="al-w-96 al-space-y-4 al-p-4">
224
224
  <InputGroup>
225
225
  <InputGroupAddon>
226
226
  <IconGlobe className="al-size-4" />
@@ -263,7 +263,7 @@ export const ComplexInteractions: StoryFn = () => (
263
263
 
264
264
  // Textarea Variations
265
265
  export const TextareaVariations: StoryFn = () => (
266
- <div className="al-w-96 al-space-y-4">
266
+ <div className="al-w-96 al-space-y-4 al-p-4">
267
267
  <div className="al-grid al-w-full al-max-w-md al-gap-4">
268
268
  <InputGroup>
269
269
  <InputGroupTextarea
@@ -296,7 +296,7 @@ export const TextareaVariations: StoryFn = () => (
296
296
 
297
297
  // State Variations
298
298
  export const StateVariations: StoryFn = () => (
299
- <div className="al-w-96 al-space-y-4">
299
+ <div className="al-w-96 al-space-y-4 al-p-4">
300
300
  <div>
301
301
  <label className="al-text-sm al-font-medium al-block al-mb-2">Normal State</label>
302
302
  <InputGroup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.72",
3
+ "version": "0.0.73",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"