@tolle_/tolle-ui 0.0.11-beta → 0.0.14-beta

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.
@@ -2,7 +2,7 @@ import { type VariantProps } from 'class-variance-authority';
2
2
  import * as i0 from "@angular/core";
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
5
- size?: "xs" | "sm" | "default" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
5
+ size?: "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
6
6
  block?: boolean | null | undefined;
7
7
  readonly?: boolean | null | undefined;
8
8
  disabled?: boolean | null | undefined;
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DropdownItemComponent {
3
+ class: string;
4
+ protected readonly cn: (c1: string, c2: string) => string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownItemComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownItemComponent, "tolle-dropdown-item", never, { "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], true, never>;
7
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DropdownLabelComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownLabelComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownLabelComponent, "tolle-dropdown-label", never, {}, {}, never, ["*"], true, never>;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DropdownMenuComponent {
4
+ templateRef: TemplateRef<any>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMenuComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMenuComponent, "tolle-dropdown-menu", never, {}, {}, never, ["*"], true, never>;
7
+ }
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DropdownSeparatorComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSeparatorComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSeparatorComponent, "tolle-dropdown-separator", never, {}, {}, never, never, true, never>;
5
+ }
@@ -0,0 +1,19 @@
1
+ import { ElementRef, OnDestroy, ViewContainerRef } from '@angular/core';
2
+ import { DropdownMenuComponent } from './dropdown-menu.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class DropdownTriggerDirective implements OnDestroy {
5
+ private el;
6
+ private vcr;
7
+ menu: DropdownMenuComponent;
8
+ private cleanup?;
9
+ private isOpen;
10
+ private menuElement?;
11
+ constructor(el: ElementRef, vcr: ViewContainerRef);
12
+ toggle(): void;
13
+ private open;
14
+ private close;
15
+ private outsideClick;
16
+ ngOnDestroy(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownTriggerDirective, never>;
18
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownTriggerDirective, "[tolleDropdownTrigger]", never, { "menu": { "alias": "tolleDropdownTrigger"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -21,6 +21,7 @@ export declare class InputComponent implements ControlValueAccessor {
21
21
  setDisabledState(isDisabled: boolean): void;
22
22
  onInputChange(event: Event): void;
23
23
  protected readonly cn: typeof cn;
24
+ get computedContainerClass(): string;
24
25
  get computedInputClass(): string;
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
26
27
  static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "tolle-input", never, { "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "error": { "alias": "error"; "required": false; }; "size": { "alias": "size"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["[prefix]", "[suffix]"], true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolle_/tolle-ui",
3
- "version": "0.0.11-beta",
3
+ "version": "0.0.14-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/public-api.d.ts CHANGED
@@ -31,3 +31,8 @@ export * from './lib/button-group.component';
31
31
  export * from './lib/date-range-picker.component';
32
32
  export * from './lib/range-calendar.component';
33
33
  export * from './lib/theme.service';
34
+ export * from './lib/dropdown-item.component';
35
+ export * from './lib/dropdown-label.component';
36
+ export * from './lib/dropdown-menu.component';
37
+ export * from './lib/dropdown-separator.component';
38
+ export * from './lib/dropdown-trigger.directive';
package/theme.css CHANGED
@@ -110,34 +110,48 @@
110
110
  /* 4. COMPONENT OVERRIDES */
111
111
  /* -------------------------------------------------------------------------- */
112
112
  @layer components {
113
- /* Interactive Element Transitions */
114
- tolle-input input,
113
+ /* Updated: Target the container div (tolle-input > div) instead of the input tag */
114
+ tolle-input > div,
115
115
  tolle-select button,
116
- tolle-masked-input input,
117
- tolle-date-picker tolle-masked-input input {
116
+ tolle-masked-input > div,
117
+ tolle-date-picker tolle-masked-input > div {
118
118
  box-shadow: var(--input-shadow);
119
- transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1);
119
+ transition: box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms ease;
120
120
  }
121
121
 
122
- tolle-input input:focus,
122
+ /* When the container is focused-within, we clear the shadow and let the ring handle the focus */
123
+ tolle-input > div:focus-within,
123
124
  tolle-select button:focus,
124
- tolle-masked-input input:focus {
125
+ tolle-masked-input > div:focus-within {
125
126
  box-shadow: 0 0 #0000;
126
127
  }
127
128
 
129
+ /* Remove shadow from the native input since the container now handles the elevation */
130
+ tolle-input input,
131
+ tolle-masked-input input {
132
+ box-shadow: none !important;
133
+ background: transparent;
134
+ }
135
+
128
136
  /* Dark Mode specific component adjustments */
129
137
  .dark tolle-card {
130
138
  background-color: var(--secondary);
131
139
  border-color: var(--border);
132
140
  }
133
141
 
134
- .dark tolle-input,
142
+ /* Dark mode backgrounds for form components */
143
+ .dark tolle-input > div,
135
144
  .dark tolle-select button {
136
145
  background-color: transparent;
137
146
  }
138
147
 
139
- /* Icon sizing inside buttons */
140
- tolle-button svg { @apply w-4 h-4; }
148
+ /* Icon sizing inside buttons and input slots */
149
+ tolle-button svg,
150
+ tolle-input [prefix] svg,
151
+ tolle-input [suffix] svg {
152
+ @apply w-4 h-4;
153
+ }
154
+
141
155
  .h-8 svg { @apply w-3.5 h-3.5; }
142
156
 
143
157
  /* Compact Select Items */