@goat-bravos/intern-hub-layout 1.0.5 → 1.2.0

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 (64) hide show
  1. package/.editorconfig +17 -0
  2. package/.vscode/extensions.json +4 -0
  3. package/.vscode/launch.json +20 -0
  4. package/.vscode/mcp.json +9 -0
  5. package/.vscode/tasks.json +42 -0
  6. package/README.md +629 -254
  7. package/angular.json +40 -0
  8. package/ng-package.json +11 -0
  9. package/package.json +24 -16
  10. package/src/libs/layouts/header/header.component.html +58 -0
  11. package/src/libs/layouts/header/header.component.scss +108 -0
  12. package/src/libs/layouts/header/header.component.ts +70 -0
  13. package/src/libs/layouts/sidebar/sidebar.component.html +28 -0
  14. package/src/libs/layouts/sidebar/sidebar.component.scss +44 -0
  15. package/src/libs/layouts/sidebar/sidebar.component.ts +55 -0
  16. package/src/libs/shared/components/approval/approval-list/approval-list.component.html +19 -0
  17. package/src/libs/shared/components/approval/approval-list/approval-list.component.scss +24 -0
  18. package/src/libs/shared/components/approval/approval-list/approval-list.component.ts +19 -0
  19. package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.html +21 -0
  20. package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.scss +28 -0
  21. package/src/libs/shared/components/approval/approval-list-item/approval-list-item.component.ts +20 -0
  22. package/src/libs/shared/components/approval/approval-list-item/approval-list-item.model.ts +8 -0
  23. package/src/libs/shared/components/button/button-container/button-container.component.html +20 -0
  24. package/src/libs/shared/components/button/button-container/button-container.component.scss +49 -0
  25. package/src/libs/shared/components/button/button-container/button-container.component.ts +34 -0
  26. package/src/libs/shared/components/button/button-container/button-container.model.ts +58 -0
  27. package/src/libs/shared/components/button/label-button/label-button.component.html +11 -0
  28. package/src/libs/shared/components/button/label-button/label-button.component.scss +13 -0
  29. package/src/libs/shared/components/button/label-button/label-button.component.ts +18 -0
  30. package/src/libs/shared/components/functional-label/functional-label.component.html +36 -0
  31. package/src/libs/shared/components/functional-label/functional-label.component.scss +56 -0
  32. package/src/libs/shared/components/functional-label/functional-label.component.ts +141 -0
  33. package/src/libs/shared/components/icon/icon.component.html +12 -0
  34. package/src/libs/shared/components/icon/icon.component.scss +11 -0
  35. package/src/libs/shared/components/icon/icon.component.ts +61 -0
  36. package/src/libs/shared/components/input/input-calendar/input-calendar.component.html +52 -0
  37. package/src/libs/shared/components/input/input-calendar/input-calendar.component.scss +98 -0
  38. package/src/libs/shared/components/input/input-calendar/input-calendar.component.ts +126 -0
  39. package/src/libs/shared/components/input/input-label/input-label.component.html +0 -0
  40. package/src/libs/shared/components/input/input-label/input-label.component.scss +0 -0
  41. package/src/libs/shared/components/input/input-label/input-label.component.ts +0 -0
  42. package/src/libs/shared/components/input/input-stepper/input-stepper.component.html +62 -0
  43. package/src/libs/shared/components/input/input-stepper/input-stepper.component.scss +211 -0
  44. package/src/libs/shared/components/input/input-stepper/input-stepper.component.ts +73 -0
  45. package/src/libs/shared/components/input/input-text/input-text.component.html +40 -0
  46. package/src/libs/shared/components/input/input-text/input-text.component.scss +143 -0
  47. package/src/libs/shared/components/input/input-text/input-text.component.ts +63 -0
  48. package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.html +15 -0
  49. package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.scss +70 -0
  50. package/src/libs/shared/components/pop-up/pop-up-confirm/pop-up-confirm.component.ts +29 -0
  51. package/src/libs/shared/components/table/table-body/table-body.component.html +18 -0
  52. package/src/libs/shared/components/table/table-body/table-body.component.scss +6 -0
  53. package/src/libs/shared/components/table/table-body/table-body.component.ts +17 -0
  54. package/src/libs/shared/components/table/table-header/table-header.component.html +27 -0
  55. package/src/libs/shared/components/table/table-header/table-header.component.scss +91 -0
  56. package/src/libs/shared/components/table/table-header/table-header.component.ts +25 -0
  57. package/src/public-api.ts +34 -0
  58. package/tsconfig.json +38 -0
  59. package/tsconfig.lib.json +17 -0
  60. package/tsconfig.lib.prod.json +11 -0
  61. package/tsconfig.spec.json +15 -0
  62. package/fesm2022/goat-bravos-intern-hub-layout.mjs +0 -561
  63. package/fesm2022/goat-bravos-intern-hub-layout.mjs.map +0 -1
  64. package/types/goat-bravos-intern-hub-layout.d.ts +0 -189
@@ -0,0 +1,49 @@
1
+ // Button Container Component - System Design Format
2
+
3
+ .button-container {
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ gap: 8px;
8
+ border-radius: var(--radius-md);
9
+ cursor: pointer;
10
+ padding: 8px 16px;
11
+ border: none;
12
+ font-weight: 500;
13
+ transition:
14
+ filter 0.15s ease,
15
+ transform 0.1s ease;
16
+
17
+ // Hover: sáng hơn một chút
18
+ &:hover {
19
+ filter: brightness(1.1);
20
+ }
21
+
22
+ // Active/Pressing: tối hơn một chút
23
+ &:active {
24
+ filter: brightness(0.9);
25
+ transform: scale(0.98);
26
+ }
27
+
28
+ // Focus state
29
+ &:focus {
30
+ outline: 2px solid var(--brand-600);
31
+ outline-offset: 2px;
32
+ }
33
+ }
34
+
35
+ .button-content {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ white-space: nowrap;
40
+ overflow: hidden;
41
+ text-overflow: ellipsis;
42
+ }
43
+
44
+ .button-icon {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ flex-shrink: 0;
49
+ }
@@ -0,0 +1,34 @@
1
+ import { Component, Input, Output, EventEmitter } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { ButtonSize, BUTTON_SIZE_MAP } from './button-container.model';
4
+
5
+ @Component({
6
+ selector: 'app-button-container',
7
+ standalone: true,
8
+ imports: [CommonModule],
9
+ templateUrl: './button-container.component.html',
10
+ styleUrls: ['./button-container.component.scss'],
11
+ })
12
+ export class ButtonContainerComponent {
13
+ @Input() size: ButtonSize = 'md';
14
+ @Input() content = '';
15
+
16
+ @Input() fontSize?: string;
17
+
18
+ @Input() leftIcon?: string;
19
+ @Input() rightIcon?: string;
20
+
21
+ @Input() color = 'var(--brand-100)';
22
+ @Input() backgroundColor = 'var(--utility-900)';
23
+ @Input() borderColor = 'var(--brand-100)';
24
+
25
+ @Output() buttonClick = new EventEmitter<any>();
26
+
27
+ get sizeStyle() {
28
+ return BUTTON_SIZE_MAP[this.size];
29
+ }
30
+
31
+ handleClick(): any {
32
+ this.buttonClick.emit();
33
+ }
34
+ }
@@ -0,0 +1,58 @@
1
+ export interface ButtonContainerInterface {
2
+ size: ButtonSize;
3
+ leftIcon?: string;
4
+ rightIcon?: string;
5
+ content: string;
6
+ event?: string;
7
+ fontSize?: string;
8
+ color?: string;
9
+ backgroundColor?: string;
10
+ borderColor?: string;
11
+ }
12
+
13
+ export type ButtonSize = 'xs' | 'sm' | 'md' | 'lg';
14
+
15
+ export interface ButtonSizeConfig {
16
+ minWidth: string;
17
+ minHeight: string;
18
+ fontSize: string;
19
+ iconSize: string;
20
+ contentWidth: string;
21
+ contentHeight: string;
22
+ }
23
+
24
+ export const BUTTON_SIZE_MAP: Record<ButtonSize, ButtonSizeConfig> = {
25
+ xs: {
26
+ minWidth: '47px',
27
+ minHeight: '24px',
28
+ fontSize: 'var(--font-xs)',
29
+ iconSize: '14px',
30
+ contentWidth: '32px',
31
+ contentHeight: '16px',
32
+ },
33
+ sm: {
34
+ minWidth: '96px',
35
+ minHeight: '28px',
36
+ fontSize: 'var(--font-sm)',
37
+ iconSize: '16px',
38
+ contentWidth: '44px',
39
+ contentHeight: '20px',
40
+ },
41
+ md: {
42
+ minWidth: '116px',
43
+ minHeight: '36px',
44
+ fontSize: 'var(--font-sm)',
45
+ iconSize: '20px',
46
+ contentWidth: '52px',
47
+ contentHeight: '20px',
48
+ },
49
+ lg: {
50
+ minWidth: '120px',
51
+ minHeight: '44px',
52
+ fontSize: 'var(--font-sm)',
53
+ iconSize: '20px',
54
+ contentWidth: '52px',
55
+ contentHeight: '20px',
56
+ },
57
+ };
58
+
@@ -0,0 +1,11 @@
1
+ <button
2
+ [style.background-color]="bgColor"
3
+ [style.border-color]="borderColor"
4
+ [style.color]="textColor"
5
+ [style.width]="width"
6
+ [style.height]="height"
7
+ class="label-button"
8
+ type="button"
9
+ >
10
+ {{ label }}
11
+ </button>
@@ -0,0 +1,13 @@
1
+ .label-button {
2
+ padding: 16px 8px;
3
+ border-radius: 16px;
4
+ border: 1px solid var(--border-color);
5
+ background-color: var(--bg-color);
6
+ font-size: var(--font-xs);
7
+ font-weight: var(--font-weight-medium);
8
+ line-height: var(--line-height-xs);
9
+ display: flex;
10
+ justify-content: center;
11
+ align-items: center;
12
+ text-align: center;
13
+ }
@@ -0,0 +1,18 @@
1
+ import { Component, Input } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+
4
+ @Component({
5
+ selector: 'app-label-button',
6
+ standalone: true,
7
+ imports: [CommonModule],
8
+ templateUrl: './label-button.component.html',
9
+ styleUrls: ['./label-button.component.scss'],
10
+ })
11
+ export class LabelButtonComponent {
12
+ @Input() label: string = '';
13
+ @Input() bgColor: string = '';
14
+ @Input() borderColor: string = '';
15
+ @Input() width: string = '100%';
16
+ @Input() height: string = '28px';
17
+ @Input() textColor: string = 'var(--neutral-100)';
18
+ }
@@ -0,0 +1,36 @@
1
+ <div
2
+ class="functional-label"
3
+ (click)="handleClick($event)"
4
+ (keydown.enter)="handleClick($event)"
5
+ (keydown.space)="handleClick($event)"
6
+ [attr.tabindex]="routerLink ? null : 0"
7
+ [attr.role]="routerLink ? null : 'button'"
8
+ [style.background-color]="currentBackgroundColor"
9
+ [style.border-radius]="currentBorderRadius"
10
+ [style.width]="width"
11
+ [style.height]="height"
12
+ >
13
+ @if (hasIconLeft && iconLeftData) {
14
+ <app-icon
15
+ [iconData]="iconLeftData"
16
+ [width]="widthIconLeft"
17
+ [height]="heightIconLeft"
18
+ [colorIconHover]="colorIconLeftHover"
19
+ [backgroundColorHover]="backgroundColorHover"
20
+ ></app-icon>
21
+ }
22
+ <a
23
+ [routerLink]="routerLink"
24
+ [style.color]="currentColorContent"
25
+ [style.width]="widthContent"
26
+ [style.height]="heightContent"
27
+ >{{ content }}</a
28
+ >
29
+ @if (hasIconRight && iconRightData) {
30
+ <app-icon
31
+ [iconData]="iconRightData"
32
+ [colorIconHover]="colorIconRightHover"
33
+ [backgroundColorHover]="backgroundColorHover"
34
+ ></app-icon>
35
+ }
36
+ </div>
@@ -0,0 +1,56 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+
6
+ .functional-label {
7
+ display: flex;
8
+ align-items: center;
9
+ justify-content: center;
10
+
11
+ height: 40px;
12
+ padding: 0;
13
+ cursor: pointer;
14
+ box-sizing: border-box;
15
+ transition: all 0.25s ease;
16
+
17
+ app-icon {
18
+ display: flex;
19
+ flex-shrink: 0;
20
+ justify-content: center;
21
+ width: 44px;
22
+ }
23
+
24
+ a {
25
+ max-width: 0;
26
+ opacity: 0;
27
+ visibility: hidden;
28
+ white-space: nowrap;
29
+ overflow: hidden;
30
+ text-decoration: none;
31
+ color: var(--neutral-color-400);
32
+ transform: translateX(-10px);
33
+ transition: all 0.25s ease;
34
+ display: flex;
35
+ justify-content: flex-start;
36
+ align-items: center;
37
+ }
38
+ }
39
+
40
+ // Khi Sidebar mở rộng (Hover vào wrapper)
41
+ :host-context(.sidebar-wrapper:hover) {
42
+ .functional-label {
43
+ justify-content: flex-start;
44
+ padding-left: 8px;
45
+
46
+ a {
47
+ opacity: 1;
48
+ visibility: visible;
49
+ max-width: 200px;
50
+ transform: translateX(0);
51
+ color: var(--brand-600);
52
+ flex: 1;
53
+ text-align: center;
54
+ }
55
+ }
56
+ }
@@ -0,0 +1,141 @@
1
+ import {
2
+ Component,
3
+ Input,
4
+ Output,
5
+ EventEmitter,
6
+ HostListener,
7
+ } from '@angular/core';
8
+ import { CommonModule } from '@angular/common';
9
+ import { RouterModule } from '@angular/router';
10
+ import { IconComponent, IconData } from '../icon/icon.component';
11
+
12
+ @Component({
13
+ selector: 'app-functional-label',
14
+ standalone: true,
15
+ imports: [CommonModule, RouterModule, IconComponent],
16
+ templateUrl: './functional-label.component.html',
17
+ styleUrls: ['./functional-label.component.scss'],
18
+ })
19
+ export class FunctionalLabelComponent {
20
+ @Input() iconLeft?: IconData | string;
21
+ @Input() iconRight?: IconData | string;
22
+
23
+ @Input() colorIconLeft?: string;
24
+ @Input() colorIconRight?: string;
25
+ @Input() widthIconLeft?: string = '20px';
26
+ @Input() heightIconLeft?: string = '20px';
27
+ @Input() widthIconRight?: string = '20px';
28
+ @Input() heightIconRight?: string = '20px';
29
+
30
+ @Input() colorIconLeftHover?: string;
31
+ @Input() colorIconRightHover?: string;
32
+ @Input() colorContentHover?: string;
33
+ @Input() backgroundColorHover?: string;
34
+ @Input() borderRadiusHover?: string;
35
+
36
+ @Input() content: string = '';
37
+ @Input() colorContent?: string;
38
+ @Input() widthContent?: string = '100%';
39
+ @Input() heightContent?: string = '100%';
40
+
41
+ @Input() backgroundColor?: string;
42
+ @Input() borderRadius?: string;
43
+ @Input() width?: string;
44
+ @Input() height?: string;
45
+
46
+ @Input() routerLink?: string;
47
+ @Input() isSidebarExpanded: boolean = false;
48
+
49
+ @Output() clicked = new EventEmitter<Event>();
50
+
51
+ isHovered: boolean = false;
52
+
53
+ @HostListener('mouseenter')
54
+ onMouseEnter() {
55
+ this.isHovered = true;
56
+ }
57
+
58
+ @HostListener('mouseleave')
59
+ onMouseLeave() {
60
+ this.isHovered = false;
61
+ }
62
+
63
+ get currentBackgroundColor(): string | undefined {
64
+ return this.isHovered
65
+ ? this.backgroundColorHover || this.backgroundColor
66
+ : this.backgroundColor;
67
+ }
68
+
69
+ get currentBorderRadius(): string | undefined {
70
+ return this.isHovered
71
+ ? this.borderRadiusHover || this.borderRadius
72
+ : this.borderRadius;
73
+ }
74
+
75
+ get currentColorContent(): string | undefined {
76
+ return this.isHovered
77
+ ? this.colorContentHover || this.colorContent
78
+ : this.colorContent;
79
+ }
80
+
81
+ get hasIconLeft(): boolean {
82
+ return !!this.iconLeft;
83
+ }
84
+
85
+ get hasIconRight(): boolean {
86
+ return !!this.iconRight;
87
+ }
88
+
89
+ // ✅ Chỉ giữ 1 iconLeftData
90
+ get iconLeftData(): IconData | undefined {
91
+ if (!this.iconLeft) return undefined;
92
+
93
+ const color =
94
+ this.isHovered || this.isSidebarExpanded
95
+ ? this.colorIconLeftHover || this.colorIconLeft
96
+ : this.colorIconLeft;
97
+
98
+ if (typeof this.iconLeft === 'string') {
99
+ return {
100
+ icon: this.iconLeft,
101
+ colorIcon: color,
102
+ width: this.widthIconLeft,
103
+ height: this.heightIconLeft,
104
+ };
105
+ }
106
+ return {
107
+ ...this.iconLeft,
108
+ colorIcon: color || this.iconLeft.colorIcon,
109
+ };
110
+ }
111
+
112
+ // ✅ Chỉ giữ 1 iconRightData
113
+ get iconRightData(): IconData | undefined {
114
+ if (!this.iconRight) return undefined;
115
+
116
+ const color =
117
+ this.isHovered || this.isSidebarExpanded
118
+ ? this.colorIconRightHover || this.colorIconRight
119
+ : this.colorIconRight;
120
+
121
+ if (typeof this.iconRight === 'string') {
122
+ return {
123
+ icon: this.iconRight,
124
+ colorIcon: color,
125
+ width: this.widthIconRight,
126
+ height: this.heightIconRight,
127
+ };
128
+ }
129
+ return {
130
+ ...this.iconRight,
131
+ colorIcon: color || this.iconRight.colorIcon,
132
+ };
133
+ }
134
+
135
+ handleClick(event: Event): void {
136
+ if (!this.routerLink) {
137
+ event.preventDefault();
138
+ this.clicked.emit(event);
139
+ }
140
+ }
141
+ }
@@ -0,0 +1,12 @@
1
+ <i
2
+ class="icon"
3
+ [ngClass]="iconClass"
4
+ [style.color]="iconColor"
5
+ [style.width]="iconWidth"
6
+ [style.height]="iconHeight"
7
+ [attr.tabindex]="iconRouterLink ? null : 0"
8
+ [attr.role]="iconRouterLink ? null : 'button'"
9
+ (click)="handleClick($event)"
10
+ (keydown.enter)="handleClick($event)"
11
+ (keydown.space)="handleClick($event)"
12
+ ></i>
@@ -0,0 +1,11 @@
1
+ // icon.component.scss
2
+ :host {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ line-height: 1;
7
+
8
+ .icon {
9
+ transition: color 0.25s ease;
10
+ }
11
+ }
@@ -0,0 +1,61 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { RouterModule } from '@angular/router';
4
+
5
+ export interface IconData {
6
+ icon: string;
7
+ colorIcon?: string;
8
+ routerLink?: string;
9
+ width?: string;
10
+ height?: string;
11
+ }
12
+
13
+ @Component({
14
+ selector: 'app-icon',
15
+ standalone: true,
16
+ imports: [CommonModule, RouterModule],
17
+ templateUrl: './icon.component.html',
18
+ styleUrls: ['./icon.component.scss'],
19
+ })
20
+ export class IconComponent {
21
+ @Input() iconData?: IconData;
22
+ @Input() icon?: string;
23
+ @Input() colorIcon?: string;
24
+ @Input() routerLink?: string;
25
+ @Input() width?: string = '20px';
26
+ @Input() height?: string = '20px';
27
+ @Input() colorIconHover?: string;
28
+ @Input() backgroundColorHover?: string;
29
+
30
+ @Output() clicked = new EventEmitter<Event>();
31
+
32
+ get iconClass(): string {
33
+ if (this.iconData?.icon) {
34
+ return this.iconData.icon;
35
+ }
36
+ return this.icon || '';
37
+ }
38
+
39
+ get iconColor(): string | undefined {
40
+ return this.iconData?.colorIcon || this.colorIcon;
41
+ }
42
+
43
+ get iconWidth(): string {
44
+ return this.iconData?.width || this.width || '20px';
45
+ }
46
+
47
+ get iconHeight(): string {
48
+ return this.iconData?.height || this.height || '20px';
49
+ }
50
+
51
+ get iconRouterLink(): string | undefined {
52
+ return this.iconData?.routerLink || this.routerLink;
53
+ }
54
+
55
+ handleClick(event: Event): void {
56
+ if (!this.iconRouterLink) {
57
+ event.preventDefault();
58
+ this.clicked.emit(event);
59
+ }
60
+ }
61
+ }
@@ -0,0 +1,52 @@
1
+ <div class="input-form" [style.width]="width">
2
+ <label class="input-form-label">
3
+ <div class="input-form-label-header">
4
+ <span>{{ headerInput }}</span>
5
+ @if (required) {
6
+ <span class="required-mark">*</span>
7
+ }
8
+ </div>
9
+ <div class="calendar-input-wrapper">
10
+ <input
11
+ type="text"
12
+ class="input-form-field"
13
+ [placeholder]="placeholder"
14
+ [readonly]="readonly"
15
+ [required]="required"
16
+ [value]="displayValue"
17
+ (input)="onDisplayInput($event)"
18
+ maxlength="10"
19
+ />
20
+ <button
21
+ type="button"
22
+ class="calendar-icon-btn"
23
+ (click)="openDatePicker()"
24
+ [disabled]="readonly"
25
+ >
26
+ <svg
27
+ xmlns="http://www.w3.org/2000/svg"
28
+ width="16"
29
+ height="16"
30
+ viewBox="0 0 24 24"
31
+ fill="none"
32
+ stroke="currentColor"
33
+ stroke-width="2"
34
+ stroke-linecap="round"
35
+ stroke-linejoin="round"
36
+ >
37
+ <rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect>
38
+ <line x1="16" y1="2" x2="16" y2="6"></line>
39
+ <line x1="8" y1="2" x2="8" y2="6"></line>
40
+ <line x1="3" y1="10" x2="21" y2="10"></line>
41
+ </svg>
42
+ </button>
43
+ <input
44
+ #hiddenDateInput
45
+ type="date"
46
+ class="hidden-date-input"
47
+ [value]="value"
48
+ (change)="onDatePickerChange($event)"
49
+ />
50
+ </div>
51
+ </label>
52
+ </div>
@@ -0,0 +1,98 @@
1
+ // Calendar Input Form Component - System Design Format
2
+
3
+ .input-form {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 6px;
7
+ }
8
+
9
+ .input-form-label {
10
+ display: block;
11
+ font-size: var(--font-sm);
12
+ font-weight: 700;
13
+ color: var(--neutral-color-700);
14
+ margin-bottom: 4px;
15
+ }
16
+
17
+ .input-form-label-header {
18
+ display: flex;
19
+ align-items: center;
20
+ margin-bottom: 4px;
21
+ }
22
+
23
+ .required-mark {
24
+ color: var(--utility-600);
25
+ margin-left: 2px;
26
+ }
27
+
28
+ .calendar-input-wrapper {
29
+ position: relative;
30
+ display: flex;
31
+ align-items: center;
32
+ }
33
+
34
+ .input-form-field {
35
+ padding: 8px 40px 8px 12px;
36
+ border: 1px solid var(--neutral-color-200);
37
+ border-radius: var(--radius-md);
38
+ font-size: var(--font-sm);
39
+ color: var(--neutral-color-700);
40
+ height: 36px;
41
+ width: 100%;
42
+ box-sizing: border-box;
43
+ background-color: var(--neutral-color-10);
44
+ transition:
45
+ border-color 0.2s ease,
46
+ box-shadow 0.2s ease;
47
+
48
+ &::placeholder {
49
+ color: var(--neutral-color-400);
50
+ }
51
+
52
+ &:focus {
53
+ outline: none;
54
+ border-color: var(--brand-500);
55
+ box-shadow: 0 0 0 2px rgba(39, 64, 180, 0.15);
56
+ }
57
+
58
+ &:read-only {
59
+ background-color: var(--neutral-color-25);
60
+ cursor: not-allowed;
61
+ }
62
+ }
63
+
64
+ .calendar-icon-btn {
65
+ position: absolute;
66
+ right: 8px;
67
+ top: 50%;
68
+ transform: translateY(-50%);
69
+ background: none;
70
+ border: none;
71
+ padding: 4px;
72
+ cursor: pointer;
73
+ color: var(--neutral-color-500);
74
+ display: flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ border-radius: var(--radius-sm);
78
+ transition:
79
+ color 0.2s ease,
80
+ background-color 0.2s ease;
81
+
82
+ &:hover:not(:disabled) {
83
+ background-color: var(--neutral-color-50);
84
+ }
85
+
86
+ &:disabled {
87
+ cursor: not-allowed;
88
+ opacity: 0.5;
89
+ }
90
+ }
91
+
92
+ .hidden-date-input {
93
+ position: absolute;
94
+ opacity: 0;
95
+ width: 0;
96
+ height: 0;
97
+ pointer-events: none;
98
+ }