@tolle_/tolle-ui 0.0.11-beta → 0.0.13-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?: "
|
|
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;
|
package/lib/input.component.d.ts
CHANGED
|
@@ -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
package/theme.css
CHANGED
|
@@ -110,34 +110,48 @@
|
|
|
110
110
|
/* 4. COMPONENT OVERRIDES */
|
|
111
111
|
/* -------------------------------------------------------------------------- */
|
|
112
112
|
@layer components {
|
|
113
|
-
/*
|
|
114
|
-
tolle-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
|
|
117
|
-
tolle-date-picker tolle-masked-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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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 */
|