@basis-ng/styles 0.0.1-alpha.13 → 0.0.1-alpha.130

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 (70) hide show
  1. package/package.json +26 -36
  2. package/src/components/alert.css +58 -0
  3. package/src/components/badge.css +37 -0
  4. package/src/components/button-group.css +16 -0
  5. package/src/components/button.css +73 -0
  6. package/src/components/card.css +24 -0
  7. package/src/components/checkbox.css +66 -0
  8. package/src/components/command-options.css +17 -0
  9. package/src/components/command.css +20 -0
  10. package/src/components/dialog.css +41 -0
  11. package/src/components/drawer.css +21 -0
  12. package/src/components/input-group.css +92 -0
  13. package/src/components/input.css +49 -0
  14. package/src/components/{label.component.css → label.css} +70 -74
  15. package/src/components/menu.css +159 -0
  16. package/src/components/option.css +37 -0
  17. package/src/components/otp.css +72 -0
  18. package/src/components/popover.css +63 -0
  19. package/src/components/range.css +29 -0
  20. package/src/components/{row-item.component.css → row-item.css} +14 -14
  21. package/src/components/{row.component.css → row.css} +48 -56
  22. package/src/components/select-options.css +56 -0
  23. package/src/components/select.css +211 -0
  24. package/src/components/sheet.css +34 -0
  25. package/src/components/spinner.css +3 -0
  26. package/src/components/switch.css +48 -0
  27. package/src/components/tabs.css +52 -0
  28. package/src/components/textarea-group.css +65 -0
  29. package/src/components/textarea.css +39 -0
  30. package/src/components/tooltip.css +37 -0
  31. package/src/components/tree.css +50 -0
  32. package/src/index.css +80 -39
  33. package/src/utilities/general.css +7 -0
  34. package/src/utilities/index.css +2 -0
  35. package/src/utilities/sizes.css +7 -0
  36. package/src/components/alert.component.css +0 -71
  37. package/src/components/attached-box.component.css +0 -84
  38. package/src/components/badge.component.css +0 -58
  39. package/src/components/bottom-sheet.component.css +0 -49
  40. package/src/components/button-group.component.css +0 -20
  41. package/src/components/button.component.css +0 -165
  42. package/src/components/checkbox.component.css +0 -41
  43. package/src/components/color-picker.component.css +0 -34
  44. package/src/components/combobox-options.component.css +0 -41
  45. package/src/components/combobox.component.css +0 -10
  46. package/src/components/command-options.component.css +0 -33
  47. package/src/components/command.component.css +0 -45
  48. package/src/components/icon.component.css +0 -5
  49. package/src/components/input-group.component.css +0 -110
  50. package/src/components/input.component.css +0 -70
  51. package/src/components/menu-group.component.css +0 -18
  52. package/src/components/menu-item-checkbox.component.css +0 -32
  53. package/src/components/menu-item-radio.component.css +0 -32
  54. package/src/components/menu-item.component.css +0 -32
  55. package/src/components/menu-label.component.css +0 -4
  56. package/src/components/menu.component.css +0 -32
  57. package/src/components/option.component.css +0 -26
  58. package/src/components/range.component.css +0 -39
  59. package/src/components/select-options.component.css +0 -41
  60. package/src/components/select.component.css +0 -10
  61. package/src/components/side-sheet.component.css +0 -59
  62. package/src/components/spinner.component.css +0 -13
  63. package/src/components/switch.component.css +0 -68
  64. package/src/components/tab.component.css +0 -41
  65. package/src/components/table.component.css +0 -34
  66. package/src/components/tabs.component.css +0 -18
  67. package/src/components/textarea.component.css +0 -40
  68. package/src/components/tooltip.component.css +0 -45
  69. package/src/components/tree-node.component.css +0 -77
  70. package/src/components/tree.component.css +0 -7
@@ -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
- width: 100%;
3
- background-color: var(--input-background, #e0e0e0);
4
- border-radius: var(--radius, 0.5rem);
5
- box-sizing: border-box;
6
- border-width: 1px;
7
- border-style: solid;
8
- border-color: var(--border-color, transparent);
9
- transition:
10
- opacity 0.2s,
11
- background-color 0.2s,
12
- border-color 0.2s;
13
- font-size: 1rem;
14
- color: var(--input-foreground, #798194);
15
-
16
- &::-webkit-outer-spin-button,
17
- &::-webkit-inner-spin-button {
18
- -webkit-appearance: none;
19
- margin: 0;
20
- }
21
-
22
- &[type='text'],
23
- &[type='number'] {
24
- appearance: textfield;
25
- -moz-appearance: textfield;
26
- }
27
-
28
- &:focus-visible {
29
- outline: 2px solid var(--primary, #0a0a0a);
30
- outline-offset: 2px;
31
- }
32
-
33
- &::placeholder {
34
- opacity: 0.5;
35
- }
36
-
37
- &.ng-invalid {
38
- color: var(--error-foreground, #c40000ab);
39
- background-color: var(--error, #fff0f0);
40
- border-color: var(--error-border-color, #c40000ab);
41
-
42
- &:focus-visible {
43
- outline-color: var(--error-foreground, #c40000ab);
44
- }
45
-
46
- &::placeholder {
47
- color: var(--error-foreground, #c40000ab);
48
- }
49
- }
50
-
51
- &:disabled {
52
- opacity: 0.5;
53
- pointer-events: none;
54
- }
55
-
56
- &.size-1 {
57
- padding: 0.357rem 0.5rem;
58
- font-size: 0.857rem;
59
- }
60
-
61
- &.size-2 {
62
- padding: 0.5rem 0.75rem;
63
- font-size: 1rem;
64
- }
65
-
66
- &.size-3 {
67
- padding: 0.786rem 1rem;
68
- font-size: 1.143rem;
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,26 +0,0 @@
1
- li[b-option] {
2
- display: flex;
3
- gap: 0.5rem;
4
- padding: 0.5rem 0.75rem;
5
- color: var(--foreground, #798194);
6
- box-sizing: border-box;
7
- cursor: pointer;
8
- min-width: 100%;
9
- align-items: center;
10
- border-radius: clamp(0rem, calc(var(--radius, 0.5rem) - 0.25rem), 0.5rem);
11
-
12
- &:focus,
13
- &:hover,
14
- &.cdk-option-highlighted {
15
- background-color: color-mix(
16
- in srgb,
17
- var(--foreground, #798194) 5%,
18
- var(--background, #ffffff)
19
- );
20
- }
21
-
22
- &[aria-selected='true'] {
23
- background-color: var(--primary, #0a0a0a);
24
- color: var(--primary-foreground, #ffffff);
25
- }
26
- }
@@ -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,41 +0,0 @@
1
- ul[b-select-options] {
2
- list-style: none;
3
- padding: 0.2rem;
4
- box-sizing: border-box;
5
- margin: 0;
6
- position: relative;
7
- background: var(--background, #ffffff);
8
- box-shadow: 0 0 0.25rem 0.125rem rgba(1, 1, 1, 0.01);
9
- border-radius: clamp(0rem, var(--radius, 0.5rem), 0.5rem);
10
- border: 1px solid
11
- color-mix(
12
- in srgb,
13
- var(--foreground, #798194) 10%,
14
- var(--background, #ffffff)
15
- );
16
- display: flex;
17
- flex-direction: column;
18
- gap: 0.2rem;
19
- width: 100%;
20
- overflow-y: auto;
21
- }
22
-
23
- .cdk-overlay-pane:has(ul[b-select-options]) {
24
- opacity: 1;
25
- transition: transform 150ms ease;
26
- animation: fadeIn 150ms ease;
27
-
28
- &.cdk-overlay-pane-closing {
29
- transform: translateY(0) !important;
30
- opacity: 0;
31
- transition:
32
- opacity 150ms ease,
33
- transform 150ms ease;
34
- }
35
- }
36
-
37
- @keyframes fadeIn {
38
- from {
39
- opacity: 0;
40
- }
41
- }
@@ -1,10 +0,0 @@
1
- b-select {
2
- width: 100%;
3
-
4
- button {
5
- display: flex;
6
- justify-content: space-between !important;
7
- align-items: center;
8
- width: 100%;
9
- }
10
- }
@@ -1,59 +0,0 @@
1
- b-side-sheet {
2
- position: fixed;
3
- top: 0;
4
- height: 100dvh;
5
- background-color: var(--background, #ffffff);
6
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
7
- z-index: 1001;
8
- transition:
9
- transform 0.3s ease-in-out,
10
- opacity 0.3s ease-in-out;
11
- opacity: 0;
12
- padding-top: 3.1rem;
13
-
14
- &.right {
15
- right: 0;
16
- transform: translateX(100%);
17
- border-left: 1px solid var(--border-color, #e0e0e0);
18
-
19
- &.open {
20
- opacity: 1;
21
- transform: translateX(0);
22
- }
23
- }
24
-
25
- &.left {
26
- left: 0;
27
- transform: translateX(-100%);
28
- border-right: 1px solid var(--border-color, #e0e0e0);
29
-
30
- &.open {
31
- opacity: 1;
32
- transform: translateX(0);
33
- }
34
- }
35
-
36
- .close-button {
37
- position: absolute;
38
- top: 10px;
39
- right: 10px;
40
- background: none;
41
- border: none;
42
- font-size: 24px;
43
- cursor: pointer;
44
- color: var(--foreground, #0a0a0a);
45
- padding-inline: 8px;
46
-
47
- &:hover {
48
- color: color-mix(
49
- in srgb,
50
- var(--background, #ffffff) 50%,
51
- var(--foreground, #0a0a0a) 50%
52
- );
53
- }
54
- }
55
- }
56
-
57
- html:has(b-side-sheet.open) {
58
- overflow: hidden;
59
- }
@@ -1,13 +0,0 @@
1
- b-spinner {
2
- z-index: 9999;
3
- pointer-events: none;
4
-
5
- section {
6
- pointer-events: all;
7
- display: flex;
8
- justify-content: center;
9
- align-items: center;
10
- height: 100%;
11
- width: 100%;
12
- }
13
- }
@@ -1,68 +0,0 @@
1
- input[b-switch] {
2
- appearance: none;
3
- -webkit-appearance: none;
4
- border: 1px solid var(--border, #d9d9d9);
5
- display: flex;
6
- align-items: center;
7
- cursor: pointer;
8
- border-radius: 9999px;
9
- background-color: color-mix(
10
- in srgb,
11
- var(--foreground, #798194) 5%,
12
- var(--background, #ffffff)
13
- );
14
- border: 0;
15
-
16
- &:focus-visible {
17
- outline: 2px solid var(--primary, #0a0a0a);
18
- outline-offset: 2px;
19
- }
20
-
21
- &::after {
22
- content: '';
23
- display: flex;
24
- background-color: var(--foreground, #798194);
25
- border-radius: 50%;
26
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
27
- will-change: transform;
28
- justify-content: center;
29
- align-items: center;
30
- transition: transform 0.2s;
31
- }
32
-
33
- &.default {
34
- height: 1.5rem;
35
- width: 2.5rem;
36
-
37
- &::after {
38
- height: 1rem;
39
- width: 1rem;
40
- margin: 0.25rem;
41
- }
42
- }
43
-
44
- &.large {
45
- height: 2.1rem;
46
- width: 3.7rem;
47
-
48
- &::after {
49
- height: 1.6rem;
50
- width: 1.6rem;
51
- margin: 0.25rem;
52
- }
53
- }
54
-
55
- &:checked {
56
- &.default {
57
- &::after {
58
- transform: translateX(0.9rem);
59
- }
60
- }
61
-
62
- &.large {
63
- &::after {
64
- transform: translateX(1.45rem);
65
- }
66
- }
67
- }
68
- }
@@ -1,41 +0,0 @@
1
- b-tab {
2
- height: 100%;
3
-
4
- span {
5
- display: flex;
6
- justify-content: center;
7
- align-items: center;
8
- height: 100%;
9
- padding-inline: var(--button-padding-inline, 1.9rem);
10
- border-radius: var(--radius, 0.5rem);
11
- box-sizing: border-box;
12
- gap: 0.5rem;
13
- position: relative;
14
- overflow: hidden;
15
- transition: 0.2s;
16
- width: 100%;
17
- font-size: 100%;
18
- border: none;
19
- user-select: none;
20
- border: 1px solid transparent;
21
-
22
- &:hover {
23
- cursor: pointer;
24
- }
25
-
26
- &.selected {
27
- background-color: var(--background, #ffffff);
28
- border-color: var(--border-color, transparent);
29
- }
30
-
31
- &:not(.selected) {
32
- &.highlighted {
33
- background: color-mix(
34
- in srgb,
35
- var(--foreground, #798194) 10%,
36
- var(--background, #ffffff)
37
- );
38
- }
39
- }
40
- }
41
- }
@@ -1,34 +0,0 @@
1
- b-table {
2
- display: flex;
3
- flex: 1;
4
- width: 100px;
5
- flex-direction: column;
6
- align-items: flex-start;
7
- overflow-x: auto;
8
- overscroll-behavior-inline: none;
9
- scrollbar-width: thin;
10
- border: 1px solid var(--border-color, transparent);
11
- background-color: color-mix(
12
- in srgb,
13
- var(--foreground, #798194) 5%,
14
- var(--background, #ffffff)
15
- );
16
- position: relative;
17
- height: 100%;
18
- box-sizing: border-box;
19
- border-radius: var(--radius, 0.5rem);
20
-
21
- .scroll-section {
22
- overflow-y: auto;
23
- scrollbar-width: thin;
24
- overscroll-behavior-block: none;
25
-
26
- b-row {
27
- &:first-child {
28
- .row-container {
29
- border-top: 0;
30
- }
31
- }
32
- }
33
- }
34
- }
@@ -1,18 +0,0 @@
1
- b-tabs {
2
- .tabs {
3
- display: flex;
4
- overflow-x: auto;
5
- height: 2.8rem;
6
- padding: 0.2rem;
7
- background: color-mix(
8
- in srgb,
9
- var(--foreground, #798194) 5%,
10
- var(--background, #ffffff)
11
- );
12
- box-sizing: border-box;
13
- align-items: center;
14
- border-radius: var(--radius, 0.5rem);
15
- border: 1px solid var(--border-color, transparent);
16
- gap: 0.3rem;
17
- }
18
- }