@basis-ng/styles 0.0.1-alpha.2 → 0.0.1-alpha.200

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 (68) hide show
  1. package/package.json +49 -10
  2. package/src/components/alert.css +58 -0
  3. package/src/components/backdrop.css +17 -0
  4. package/src/components/badge.css +43 -0
  5. package/src/components/button-group.css +16 -0
  6. package/src/components/button.css +88 -0
  7. package/src/components/calendar.css +56 -0
  8. package/src/components/card.css +24 -0
  9. package/src/components/checkbox.css +66 -0
  10. package/src/components/command-options.css +17 -0
  11. package/src/components/command.css +20 -0
  12. package/src/components/dialog.css +41 -0
  13. package/src/components/drawer.css +112 -0
  14. package/src/components/input-group.css +138 -0
  15. package/src/components/input.css +56 -0
  16. package/{label.component.css → src/components/label.css} +70 -74
  17. package/src/components/menu.css +154 -0
  18. package/src/components/option.css +37 -0
  19. package/src/components/otp.css +64 -0
  20. package/src/components/range.css +29 -0
  21. package/{row-item.component.css → src/components/row-item.css} +14 -14
  22. package/{row.component.css → src/components/row.css} +48 -56
  23. package/src/components/select-options.css +56 -0
  24. package/src/components/select.css +230 -0
  25. package/src/components/skeleton.css +37 -0
  26. package/src/components/spinner.css +3 -0
  27. package/src/components/switch.css +48 -0
  28. package/src/components/tabs.css +84 -0
  29. package/src/components/textarea-group.css +63 -0
  30. package/src/components/textarea.css +35 -0
  31. package/src/components/tooltip.css +37 -0
  32. package/src/components/tree.css +64 -0
  33. package/src/index.css +82 -0
  34. package/src/utilities/general.css +7 -0
  35. package/src/utilities/index.css +2 -0
  36. package/src/utilities/sizes.css +7 -0
  37. package/alert.component.css +0 -71
  38. package/attached-box.component.css +0 -84
  39. package/badge.component.css +0 -58
  40. package/bottom-sheet.component.css +0 -49
  41. package/button-group.component.css +0 -20
  42. package/button.component.css +0 -177
  43. package/checkbox.component.css +0 -41
  44. package/color-picker.component.css +0 -34
  45. package/icon.component.css +0 -5
  46. package/index.css +0 -35
  47. package/input-group.component.css +0 -110
  48. package/input.component.css +0 -70
  49. package/menu-group.component.css +0 -18
  50. package/menu-item-checkbox.component.css +0 -32
  51. package/menu-item-radio.component.css +0 -32
  52. package/menu-item.component.css +0 -32
  53. package/menu-label.component.css +0 -4
  54. package/menu.component.css +0 -32
  55. package/option.component.css +0 -35
  56. package/range.component.css +0 -39
  57. package/search.component.css +0 -241
  58. package/select.component.css +0 -120
  59. package/side-sheet.component.css +0 -59
  60. package/spinner.component.css +0 -13
  61. package/switch.component.css +0 -68
  62. package/tab.component.css +0 -41
  63. package/table.component.css +0 -34
  64. package/tabs.component.css +0 -18
  65. package/textarea.component.css +0 -40
  66. package/tooltip.component.css +0 -45
  67. package/tree-node.component.css +0 -77
  68. package/tree.component.css +0 -7
package/index.css DELETED
@@ -1,35 +0,0 @@
1
- @import './components/alert.component.css';
2
- @import './components/badge.component.css';
3
- @import './components/attached-box.component.css';
4
- @import './components/badge.component.css';
5
- @import './components/bottom-sheet.component.css';
6
- @import './components/button-group.component.css';
7
- @import './components/button.component.css';
8
- @import './components/checkbox.component.css';
9
- @import './components/color-picker.component.css';
10
- @import './components/icon.component.css';
11
- @import './components/input-group.component.css';
12
- @import './components/input.component.css';
13
- @import './components/label.component.css';
14
- @import './components/menu-group.component.css';
15
- @import './components/menu-item-checkbox.component.css';
16
- @import './components/menu-item-radio.component.css';
17
- @import './components/menu-item.component.css';
18
- @import './components/menu-label.component.css';
19
- @import './components/menu.component.css';
20
- @import './components/option.component.css';
21
- @import './components/range.component.css';
22
- @import './components/row-item.component.css';
23
- @import './components/row.component.css';
24
- @import './components/search.component.css';
25
- @import './components/select.component.css';
26
- @import './components/side-sheet.component.css';
27
- @import './components/spinner.component.css';
28
- @import './components/switch.component.css';
29
- @import './components/tab.component.css';
30
- @import './components/table.component.css';
31
- @import './components/tabs.component.css';
32
- @import './components/textarea.component.css';
33
- @import './components/tooltip.component.css';
34
- @import './components/tree-node.component.css';
35
- @import './components/tree.component.css';
@@ -1,110 +0,0 @@
1
- b-input-group {
2
- --exterior-padding: clamp(
3
- 1rem,
4
- calc(0.75rem + var(--radius, 0.5rem) / 2),
5
- 1.3rem
6
- );
7
-
8
- width: 100%;
9
- background-color: var(--input-background);
10
- border-radius: var(--radius, 0.5rem);
11
- box-sizing: border-box;
12
- border-width: 1px;
13
- border-style: solid;
14
- border-color: var(--border-color, transparent);
15
- transition:
16
- opacity 0.2s,
17
- padding-top 0.2s,
18
- padding-bottom 0.2s,
19
- background-color 0.2s,
20
- border-color 0.2s;
21
- font-size: 1rem;
22
- color: var(--input-foreground, #798194);
23
- display: flex;
24
- align-items: center;
25
-
26
- &:has(> *.ng-invalid) {
27
- color: var(--error-foreground, #c40000ab);
28
- background-color: var(--error, #fff0f0);
29
- border-color: var(--error-border-color, #c40000ab);
30
-
31
- i svg {
32
- stroke: var(--error-foreground, #c40000ab);
33
- }
34
-
35
- button {
36
- color: var(--error-foreground, #c40000ab);
37
- background-color: var(--error, #fff0f0);
38
- }
39
- }
40
-
41
- select,
42
- input,
43
- button,
44
- b-label input,
45
- b-label select {
46
- border-radius: 0px !important;
47
- border-width: 0px !important;
48
- }
49
-
50
- &:not(:has(b-label)) select:not(:first-child),
51
- &:not(:has(b-label)) input:not(:first-child),
52
- button:not(:first-child),
53
- b-label:not(:first-child) input,
54
- b-label:not(:first-child) select {
55
- padding-left: 0.8rem !important;
56
- }
57
-
58
- b-label:not(:first-child) label {
59
- left: 0.8rem !important;
60
- }
61
-
62
- &:not(:has(b-label)) select:not(:last-child),
63
- &:not(:has(b-label)) input:not(:last-child),
64
- button:not(:last-child),
65
- b-label:not(:last-child) input,
66
- b-label:not(:last-child) select {
67
- padding-right: 0.8rem !important;
68
- }
69
-
70
- input:first-child,
71
- button:first-child,
72
- b-label:first-child input,
73
- b-label:first-child select select:first-child,
74
- input:first-child,
75
- button:first-child,
76
- b-label:first-child input,
77
- b-label:first-child select {
78
- border-top-left-radius: var(--radius) !important;
79
- border-bottom-left-radius: var(--radius) !important;
80
- }
81
-
82
- select:last-child,
83
- input:last-child,
84
- button:last-child,
85
- b-label:last-child input,
86
- b-label:last-child select {
87
- border-top-right-radius: var(--radius) !important;
88
- border-bottom-right-radius: var(--radius) !important;
89
- }
90
-
91
- span:first-child,
92
- & > i:first-child {
93
- padding-inline: var(--exterior-padding) 0;
94
- }
95
-
96
- span:last-child,
97
- & > i:last-child {
98
- padding-inline: 0 var(--exterior-padding);
99
- }
100
-
101
- button {
102
- height: 100%;
103
- max-height: 100%;
104
- font-size: 0.88rem;
105
- }
106
-
107
- button:active {
108
- transform: scale(1) !important;
109
- }
110
- }
@@ -1,70 +0,0 @@
1
- input[b-input] {
2
- --horizontal-padding: clamp(
3
- 1rem,
4
- calc(0.75rem + var(--radius, 0.5rem) / 2),
5
- 1.5rem
6
- );
7
-
8
- width: 100%;
9
- min-height: 2.8rem;
10
- background-color: var(--input-background, #e0e0e0);
11
- border-radius: var(--radius, 0.5rem);
12
- box-sizing: border-box;
13
- padding: calc(0.9rem - 2px) var(--horizontal-padding);
14
- border-width: 1px;
15
- border-style: solid;
16
- border-color: var(--border-color, transparent);
17
- transition:
18
- opacity 0.2s,
19
- padding-top 0.2s,
20
- padding-bottom 0.2s,
21
- background-color 0.2s,
22
- border-color 0.2s;
23
- font-size: 1rem;
24
- color: var(--input-foreground, #798194);
25
-
26
- &::-webkit-outer-spin-button,
27
- &::-webkit-inner-spin-button {
28
- -webkit-appearance: none;
29
- margin: 0;
30
- }
31
-
32
- &[type='text'],
33
- &[type='number'] {
34
- appearance: textfield;
35
- -moz-appearance: textfield;
36
- }
37
-
38
- &:focus-visible {
39
- outline: 2px solid var(--primary, #0a0a0a);
40
- outline-offset: 2px;
41
- }
42
-
43
- &::placeholder {
44
- opacity: 0.5;
45
- }
46
-
47
- &.ng-invalid {
48
- color: var(--error-foreground, #c40000ab);
49
- background-color: var(--error, #fff0f0);
50
- border-color: var(--error-border-color, #c40000ab);
51
-
52
- &:focus-visible {
53
- outline-color: var(--error-foreground, #c40000ab);
54
- }
55
-
56
- &::placeholder {
57
- color: var(--error-foreground, #c40000ab);
58
- }
59
- }
60
-
61
- &.label-up {
62
- padding-top: 1.1rem;
63
- padding-bottom: 0.3rem;
64
- }
65
-
66
- &.disabled {
67
- opacity: 0.5;
68
- pointer-events: none;
69
- }
70
- }
@@ -1,18 +0,0 @@
1
- b-menu-group {
2
- display: flex;
3
- flex-direction: column;
4
- gap: 0.2rem;
5
- padding: 0.2rem;
6
-
7
- &:not(:first-child) {
8
- border-top: 1px solid var(--border-color);
9
- }
10
-
11
- &:not(:last-child) {
12
- border-bottom: 1px solid var(--border-color);
13
- }
14
- }
15
-
16
- b-menu-group + b-menu-group {
17
- border-top-width: 0 !important;
18
- }
@@ -1,32 +0,0 @@
1
- b-menu-item-checkbox {
2
- --horizontal-padding: clamp(
3
- 1rem,
4
- calc(0.75rem + var(--radius, 0.5rem) / 2),
5
- 1.5rem
6
- );
7
-
8
- display: flex;
9
- gap: 0.5rem;
10
- padding-inline: var(--horizontal-padding);
11
- height: 2.5rem;
12
- border-radius: var(--radius);
13
- cursor: pointer;
14
- min-width: 100px;
15
- align-items: center;
16
-
17
- &[aria-checked='true'],
18
- &:hover {
19
- background-color: var(--input-background);
20
- }
21
-
22
- &:focus-visible {
23
- outline: 2px solid var(--primary);
24
- outline-offset: 2px;
25
- }
26
-
27
- /* aria disabled true */
28
- &[aria-disabled='true'] {
29
- cursor: auto;
30
- opacity: 0.5;
31
- }
32
- }
@@ -1,32 +0,0 @@
1
- b-menu-item-radio {
2
- --horizontal-padding: clamp(
3
- 1rem,
4
- calc(0.75rem + var(--radius, 0.5rem) / 2),
5
- 1.5rem
6
- );
7
-
8
- display: flex;
9
- gap: 0.5rem;
10
- padding-inline: var(--horizontal-padding);
11
- height: 2.5rem;
12
- border-radius: var(--radius);
13
- cursor: pointer;
14
- min-width: 100px;
15
- align-items: center;
16
-
17
- &[aria-checked='true'],
18
- &:hover {
19
- background-color: var(--input-background);
20
- }
21
-
22
- &:focus-visible {
23
- outline: 2px solid var(--primary);
24
- outline-offset: 2px;
25
- }
26
-
27
- /* aria disabled true */
28
- &[aria-disabled='true'] {
29
- cursor: auto;
30
- opacity: 0.5;
31
- }
32
- }
@@ -1,32 +0,0 @@
1
- b-menu-item {
2
- --horizontal-padding: clamp(
3
- 1rem,
4
- calc(0.75rem + var(--radius, 0.5rem) / 2),
5
- 1.5rem
6
- );
7
-
8
- display: flex;
9
- gap: 0.5rem;
10
- padding-inline: var(--horizontal-padding);
11
- height: 2.5rem;
12
- border-radius: var(--radius);
13
- cursor: pointer;
14
- min-width: 100px;
15
- align-items: center;
16
-
17
- &:active,
18
- &:hover {
19
- background-color: var(--input-background);
20
- }
21
-
22
- &:focus-visible {
23
- outline: 2px solid var(--primary);
24
- outline-offset: 2px;
25
- }
26
-
27
- /* aria disabled true */
28
- &[aria-disabled='true'] {
29
- cursor: auto;
30
- opacity: 0.5;
31
- }
32
- }
@@ -1,4 +0,0 @@
1
- b-menu-label {
2
- font-weight: 600;
3
- padding: 0.5rem 0.75rem;
4
- }
@@ -1,32 +0,0 @@
1
- b-menu {
2
- display: flex;
3
- flex-direction: column;
4
- border-radius: var(--radius);
5
-
6
- &:not(:has(b-menu-group)) {
7
- gap: 0.2rem;
8
- }
9
- }
10
-
11
- @keyframes fadeIn {
12
- 0% {
13
- opacity: 0;
14
- }
15
- 100% {
16
- opacity: 1;
17
- }
18
- }
19
-
20
- .cdk-overlay-container b-menu {
21
- border: 1px solid var(--border-color);
22
- animation: fadeIn 0.2s ease-in;
23
- background-color: var(--background);
24
-
25
- b-menu-item {
26
- border-radius: calc(var(--radius) - 0.25rem);
27
- }
28
-
29
- &:not(:has(b-menu-group)) {
30
- padding: 0.2rem;
31
- }
32
- }
@@ -1,35 +0,0 @@
1
- b-option {
2
- margin-bottom: 0.25rem;
3
- cursor: pointer;
4
- padding: 0.5rem 0.75rem;
5
- color: var(--foreground, #798194);
6
- transition: 0.1s;
7
- border-radius: calc(var(--radius, 0.5rem) - 0.2rem);
8
-
9
- &::checkmark {
10
- display: none;
11
- }
12
-
13
- &:focus-visible {
14
- outline-width: 0;
15
- }
16
-
17
- &:hover,
18
- &:focus-visible {
19
- background-color: color-mix(
20
- in srgb,
21
- var(--foreground, #798194) 5%,
22
- var(--background, #ffffff)
23
- );
24
- }
25
-
26
- &:checked {
27
- background-color: var(--primary, #0a0a0a);
28
- color: var(--primary-foreground, #ffffff);
29
- }
30
-
31
- &:disabled {
32
- pointer-events: none;
33
- opacity: 0.5;
34
- }
35
- }
@@ -1,39 +0,0 @@
1
- input[b-range] {
2
- appearance: none;
3
- -webkit-appearance: none;
4
- width: 100%;
5
- height: 1rem;
6
- background-color: var(--input-background, #e0e0e0);
7
- border-color: var(--border-color, transparent);
8
- border-radius: var(--radius, 0.5rem);
9
- outline: none;
10
- cursor: pointer;
11
- margin: 0;
12
-
13
- &:focus-visible {
14
- &::-webkit-slider-thumb {
15
- outline: 2px solid var(--primary, #0a0a0a);
16
- outline-offset: 2px;
17
- }
18
- }
19
-
20
- &::-webkit-slider-thumb {
21
- appearance: none;
22
- -webkit-appearance: none;
23
- width: 1.5rem;
24
- height: 1.5rem;
25
- background-color: var(--primary, #0a0a0a);
26
- border-radius: var(--radius, 0.5rem);
27
- cursor: pointer;
28
- transition: background-color 0.2s;
29
- border: 1px solid var(--border-color, #d9d9d9);
30
-
31
- &:hover {
32
- background-color: color-mix(
33
- in srgb,
34
- var(--primary-foreground, #ffffff) 5%,
35
- var(--primary, #0a0a0a)
36
- );
37
- }
38
- }
39
- }
@@ -1,241 +0,0 @@
1
- b-search {
2
- width: 100%;
3
- position: relative;
4
- border-width: 1px;
5
- border-style: solid;
6
- border-color: var(--border-color, transparent);
7
- transition:
8
- opacity 0.2s,
9
- color 0.2s,
10
- border-color 0.2s;
11
- border-radius: var(--radius, 0.5rem);
12
- overflow: hidden;
13
- box-sizing: border-box;
14
- height: 2.8rem;
15
-
16
- &:has(input:focus-visible),
17
- &:has(select:focus-visible) {
18
- outline: 2px solid var(--primary, #0a0a0a);
19
- outline-offset: 2px;
20
- }
21
-
22
- label {
23
- position: absolute;
24
- z-index: 1;
25
- left: 0.8rem;
26
- top: 50%;
27
- transform: translateY(-50%);
28
- pointer-events: none;
29
- transition:
30
- top 0.2s,
31
- font-size 0.2s,
32
- transform 0.2s;
33
- }
34
-
35
- section {
36
- position: absolute;
37
- top: 50%;
38
- transform: translateY(-50%);
39
- flex: 1;
40
- padding-inline: 0.8rem 0;
41
- width: calc(100% - 3rem);
42
- background-color: color-mix(
43
- in srgb,
44
- var(--foreground, #798194) 5%,
45
- var(--background, #ffffff)
46
- );
47
- border-right-style: solid;
48
- border-right-width: 1px;
49
- border-right-color: var(--border-color, transparent);
50
- display: flex;
51
- gap: 0.8rem;
52
- padding-right: 0.8rem;
53
- box-sizing: border-box;
54
- height: 100%;
55
- transition:
56
- background-color 0.2s,
57
- border-right-color 0.2s;
58
-
59
- &.large {
60
- width: 100%;
61
- border-right: none;
62
- }
63
-
64
- input {
65
- box-sizing: border-box;
66
- font-size: 1rem;
67
- padding: 0.7rem 0;
68
- user-select: none;
69
- border: 0;
70
- background: transparent;
71
- outline: none;
72
- color: var(--input-foreground, #798194);
73
- transition: color 0.2s;
74
- cursor: pointer;
75
- user-select: none;
76
- width: 100%;
77
- font-family: 'Geist', sans-serif;
78
- height: 100%;
79
- transition: color 0.2s;
80
-
81
- &::-webkit-outer-spin-button,
82
- &::-webkit-inner-spin-button {
83
- -webkit-appearance: none;
84
- margin: 0;
85
- }
86
-
87
- &[type='text'],
88
- &[type='number'] {
89
- appearance: textfield;
90
- -moz-appearance: textfield;
91
- }
92
-
93
- &[type='password'] {
94
- font-size: 1.8rem;
95
- }
96
-
97
- &::placeholder {
98
- opacity: 0.5;
99
- }
100
- }
101
-
102
- i {
103
- cursor: pointer;
104
- }
105
- }
106
-
107
- select {
108
- -webkit-appearance: none;
109
- appearance: base-select;
110
- box-sizing: border-box;
111
- width: 100%;
112
- color: var(--input-foreground, #798194);
113
- border: none;
114
- cursor: pointer;
115
- transition:
116
- color 0.2s,
117
- background-color 0.2s;
118
- padding: 0.7rem 2.8rem 0.7rem 0.8rem;
119
- font-size: 1rem;
120
- background-color: var(--background, #ffffff);
121
- outline: none;
122
- font-family: 'Geist', sans-serif;
123
- height: 100%;
124
-
125
- &.no-options {
126
- pointer-events: none;
127
- }
128
-
129
- &::picker(select) {
130
- max-height: 200px;
131
- opacity: 1;
132
- appearance: base-select;
133
- left: 0;
134
- margin: 0.25rem 0;
135
- padding: 0.25rem 0.25rem 0rem 0.25rem;
136
- background: var(--background, #ffffff);
137
- box-shadow: 0 0 0.25rem 0.125rem rgba(1, 1, 1, 0.01);
138
- border-radius: var(--radius, 0.5rem);
139
- border: 1px solid
140
- color-mix(
141
- in srgb,
142
- var(--foreground, #798194) 10%,
143
- var(--background, #ffffff)
144
- );
145
- }
146
-
147
- &::picker-icon {
148
- display: none;
149
- }
150
- }
151
-
152
- .icon-wrapper {
153
- position: absolute;
154
- right: 0;
155
- top: 50%;
156
- transform: translateY(-50%);
157
- cursor: pointer;
158
- display: flex;
159
- height: 100%;
160
- width: 3rem;
161
- justify-content: center;
162
- align-items: center;
163
- pointer-events: none;
164
-
165
- i {
166
- &.select-has-value {
167
- pointer-events: all;
168
- cursor: pointer;
169
-
170
- &.open {
171
- transform: rotate(180deg);
172
- }
173
- }
174
-
175
- &:not(.select-has-value) {
176
- pointer-events: none;
177
- transition: transform 0.2s;
178
- }
179
-
180
- &.searching {
181
- animation: spin 1.7s linear infinite;
182
- }
183
- }
184
- }
185
-
186
- &.invalid {
187
- color: var(--error-foreground, #c40000ab);
188
- border-color: var(--error-foreground, #c40000ab);
189
-
190
- &:has(input:focus-visible),
191
- &:has(select:focus-visible) {
192
- outline-color: var(--error-foreground, #c40000ab);
193
- }
194
-
195
- select {
196
- color: var(--error-foreground, #c40000ab);
197
- background-color: var(--error, #fff0f0);
198
- }
199
-
200
- section {
201
- background-color: var(--error, #fff0f0);
202
- border-right-color: var(--error-foreground, #c40000ab);
203
-
204
- input {
205
- color: var(--error-foreground, #c40000ab);
206
-
207
- &::placeholder {
208
- color: var(--error-foreground, #c40000ab);
209
- }
210
- }
211
- }
212
- }
213
-
214
- &.label-up {
215
- label {
216
- top: 0.344rem;
217
- font-size: 0.7rem;
218
- transform: translateY(0);
219
- }
220
-
221
- section input,
222
- select {
223
- padding-top: 1.1rem;
224
- padding-bottom: 0.3rem;
225
- }
226
- }
227
-
228
- &.disabled {
229
- opacity: 0.5;
230
- pointer-events: none;
231
- }
232
- }
233
-
234
- @keyframes spin {
235
- 0% {
236
- transform: rotate(0deg);
237
- }
238
- 100% {
239
- transform: rotate(360deg);
240
- }
241
- }