@acorex/styles 21.0.3-next.33 → 21.0.3-next.35

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 (82) hide show
  1. package/components/{_action-item.scss → _action-item.css} +13 -35
  2. package/components/{_actionsheet.scss → _actionsheet.css} +15 -8
  3. package/components/{_check-box.scss → _check-box.css} +8 -24
  4. package/components/{_conversation-picker-popup.scss → _conversation-picker-popup.css} +0 -1
  5. package/components/{_drop-down.scss → _drop-down.css} +12 -17
  6. package/components/_editor-container.css +69 -0
  7. package/components/_general-button.css +62 -0
  8. package/components/{_list.scss → _list.css} +25 -56
  9. package/components/_radio.css +33 -0
  10. package/components/{_ripple.scss → _ripple.css} +8 -8
  11. package/components/{_table.scss → _table.css} +20 -23
  12. package/components/{_uploader.scss → _uploader.css} +1 -20
  13. package/components/index.css +12 -0
  14. package/icons/fontawesome/_variables.css +229 -0
  15. package/icons/fontawesome/index.css +557 -0
  16. package/icons/huge/huge-bulk/_variables.css +211 -0
  17. package/icons/huge/huge-bulk/index.css +522 -0
  18. package/icons/huge/huge-duotone/_variables.css +211 -0
  19. package/icons/huge/huge-duotone/index.css +519 -0
  20. package/icons/huge/huge-solid-rounded/_variables.css +211 -0
  21. package/icons/huge/huge-solid-rounded/index.css +519 -0
  22. package/icons/huge/huge-solid-sharp/_variables.css +213 -0
  23. package/icons/huge/huge-solid-sharp/index.css +519 -0
  24. package/icons/huge/huge-solid-standard/_variables.css +211 -0
  25. package/icons/huge/huge-solid-standard/index.css +518 -0
  26. package/icons/huge/huge-stroke-rounded/_variables.css +211 -0
  27. package/icons/huge/huge-stroke-rounded/index.css +517 -0
  28. package/icons/huge/huge-stroke-sharp/_variables.css +142 -0
  29. package/icons/huge/huge-stroke-sharp/index.css +517 -0
  30. package/icons/huge/huge-stroke-standard/_variables.css +141 -0
  31. package/icons/huge/huge-stroke-standard/index.css +517 -0
  32. package/icons/huge/huge-twotone/_variables.css +211 -0
  33. package/icons/huge/huge-twotone/index.css +518 -0
  34. package/icons/material/_variables.css +229 -0
  35. package/icons/material/index.css +575 -0
  36. package/index.css +2 -0
  37. package/package.json +7 -4
  38. package/tailwind-base.js +0 -4
  39. package/themes/default.css +3656 -0
  40. package/base/_preflight.scss +0 -421
  41. package/base/index.scss +0 -15
  42. package/components/_editor-container.scss +0 -293
  43. package/components/_general-button.scss +0 -75
  44. package/components/_radio.scss +0 -51
  45. package/components/index.scss +0 -12
  46. package/generators/index.js +0 -1
  47. package/generators/tailwind-class-generator.js +0 -68
  48. package/icons/fontawesome/_variables.scss +0 -227
  49. package/icons/fontawesome/index.scss +0 -714
  50. package/icons/huge/huge-bulk/_variables.scss +0 -209
  51. package/icons/huge/huge-bulk/index.scss +0 -656
  52. package/icons/huge/huge-duotone/_variables.scss +0 -209
  53. package/icons/huge/huge-duotone/index.scss +0 -657
  54. package/icons/huge/huge-solid-rounded/_variables.scss +0 -209
  55. package/icons/huge/huge-solid-rounded/index.scss +0 -643
  56. package/icons/huge/huge-solid-sharp/_variables.scss +0 -209
  57. package/icons/huge/huge-solid-sharp/index.scss +0 -656
  58. package/icons/huge/huge-solid-standard/_variables.scss +0 -209
  59. package/icons/huge/huge-solid-standard/index.scss +0 -656
  60. package/icons/huge/huge-stroke-rounded/_variables.scss +0 -209
  61. package/icons/huge/huge-stroke-rounded/index.scss +0 -656
  62. package/icons/huge/huge-stroke-sharp/_variables.scss +0 -209
  63. package/icons/huge/huge-stroke-sharp/index.scss +0 -656
  64. package/icons/huge/huge-stroke-standard/_variables.scss +0 -209
  65. package/icons/huge/huge-stroke-standard/index.scss +0 -656
  66. package/icons/huge/huge-twotone/_variables.scss +0 -209
  67. package/icons/huge/huge-twotone/index.scss +0 -656
  68. package/icons/material/_variables.scss +0 -227
  69. package/icons/material/index.scss +0 -718
  70. package/index.scss +0 -7
  71. package/mixins/_editor-looks.scss +0 -32
  72. package/mixins/_media.scss +0 -73
  73. package/mixins/_scroll-bar.scss +0 -35
  74. package/mixins/_util.scss +0 -19
  75. package/mixins/index.scss +0 -4
  76. package/themes/default.scss +0 -74
  77. package/utils/_theme-generator.scss +0 -238
  78. package/utils/_utils.scss +0 -278
  79. package/utils/index.scss +0 -2
  80. package/variables/_colors.scss +0 -14
  81. package/variables/_looks.scss +0 -1
  82. package/variables/index.scss +0 -2
@@ -1,10 +1,8 @@
1
1
  .ax-action-list {
2
2
  display: flex;
3
3
  gap: 0.25rem;
4
-
5
4
  &.ax-action-list-horizontal {
6
5
  flex-direction: row;
7
-
8
6
  ax-divider {
9
7
  width: 0px;
10
8
  height: auto;
@@ -13,23 +11,14 @@
13
11
  }
14
12
  &.ax-action-list-vertical {
15
13
  flex-direction: column;
16
-
17
- .ax-action-item {
18
- & > div {
19
- &.ax-action-item-prefix {
20
- ax-prefix {
21
- min-width: 1rem;
22
- }
23
- }
24
- }
14
+ .ax-action-item > div.ax-action-item-prefix ax-prefix {
15
+ min-width: 1rem;
25
16
  }
26
-
27
17
  ax-divider {
28
18
  height: 1px;
29
19
  width: 100%;
30
20
  }
31
21
  }
32
-
33
22
  ax-title {
34
23
  opacity: 0.5;
35
24
  display: block;
@@ -43,16 +32,13 @@
43
32
  calc(var(--ax-comp-action-item-padding-inline, 0.875rem) / 3 * 2)
44
33
  );
45
34
  }
46
-
47
35
  ax-divider {
48
36
  display: block;
49
37
  background-color: rgba(var(--ax-sys-color-border-lightest-surface));
50
38
  }
51
-
52
39
  ax-text {
53
40
  white-space: nowrap;
54
41
  }
55
-
56
42
  .ax-action-item {
57
43
  display: flex;
58
44
  align-items: center;
@@ -67,38 +53,30 @@
67
53
  cursor: not-allowed;
68
54
  opacity: 0.5;
69
55
  }
70
-
71
- &:hover {
72
- &:not(&.ax-state-disabled, &.ax-state-selected) {
73
- background-color: rgba(var(--ax-sys-color-surface));
74
- ax-prefix,
75
- ax-suffix {
76
- opacity: 1;
77
- }
56
+ &:hover:not(.ax-state-disabled, .ax-state-selected) {
57
+ background-color: rgba(var(--ax-sys-color-surface));
58
+ ax-prefix,
59
+ ax-suffix {
60
+ opacity: 1;
78
61
  }
79
62
  }
80
-
81
63
  & > div {
82
64
  display: flex;
83
65
  align-items: center;
84
- justify-content: start;
66
+ justify-content: center;
85
67
  &.ax-action-item-prefix,
86
68
  &.ax-action-item-suffix {
87
- gap: 1rem;
69
+ gap: 0.5rem;
88
70
  }
89
71
  }
90
-
91
72
  ax-prefix {
92
73
  display: flex;
93
74
  gap: 0.5rem;
94
75
  }
95
-
96
- ax-suffix {
97
- ax-text {
98
- color: rgba(var(--ax-sys-body-text-color));
99
- opacity: 0.5;
100
- font-weight: lighter;
101
- }
76
+ ax-suffix ax-text {
77
+ color: rgba(var(--ax-sys-body-text-color));
78
+ opacity: 0.5;
79
+ font-weight: lighter;
102
80
  }
103
81
  }
104
82
  }
@@ -1,21 +1,28 @@
1
1
  .ax-action-sheet-panel {
2
+ @apply fixed! top-auto! right-auto! bottom-0! left-1/2! block! h-auto! w-auto! max-w-none!;
3
+ transform: translateX(-50%) !important;
4
+ align-items: unset !important;
5
+ justify-content: unset !important;
2
6
  --ax-comp-action-sheet-border-radius-size: var(--ax-sys-border-radius);
3
-
4
7
  overflow: hidden;
5
8
  border-top-left-radius: var(--ax-comp-action-sheet-border-radius-size);
6
9
  border-top-right-radius: var(--ax-comp-action-sheet-border-radius-size);
7
10
  background-color: rgba(var(--ax-sys-color-surface-lowest));
8
11
  --ax-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
9
12
  --ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color), 0 4px 6px -4px var(--ax-shadow-color);
10
- box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
11
-
13
+ box-shadow:
14
+ var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-shadow);
12
15
  animation: 1s both ax-fadeInUp;
13
16
  animation-duration: var(--ax-sys-transition-duration);
17
+ }
14
18
 
15
- @keyframes ax-fadeInUp {
16
- from {
17
- transform: translate3d(0, 100%, 0);
18
- opacity: 0;
19
- }
19
+ @keyframes ax-fadeInUp {
20
+ from {
21
+ transform: translate3d(0, 100%, 0);
22
+ opacity: 0;
23
+ }
24
+ to {
25
+ transform: translate3d(0, 0, 0);
26
+ opacity: 1;
20
27
  }
21
28
  }
@@ -1,19 +1,19 @@
1
- @use '../mixins/index.scss';
2
-
3
1
  .ax-checkbox {
4
2
  margin: 0px;
5
- height: 1rem /* 16px */;
6
- min-width: 1rem /* 16px */;
3
+ height: 1rem;
4
+ /* 16px */
5
+ min-width: 1rem;
6
+ /* 16px */
7
7
  cursor: pointer;
8
8
  appearance: none;
9
- border-radius: 0.25rem /* 4px */;
9
+ border-radius: 0.25rem;
10
+ /* 4px */
10
11
  border-width: 1px;
11
12
  border-color: rgba(var(--ax-sys-color-border-surface));
12
13
  background-color: rgba(var(--ax-sys-color-input-surface));
13
14
  vertical-align: middle;
14
15
  outline: 2px solid transparent;
15
16
  outline-offset: 2px;
16
-
17
17
  &:checked,
18
18
  &:indeterminate {
19
19
  border-color: rgba(var(--ax-sys-color-primary-500)) !important;
@@ -21,34 +21,18 @@
21
21
  background-size: contain;
22
22
  background-repeat: no-repeat;
23
23
  }
24
-
25
24
  &:checked {
26
25
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
27
26
  }
28
-
29
27
  &:indeterminate {
30
- background-image: url('data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==');
28
+ background-image: url("data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMCAwIDE2IDE2Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSIzIiB5PSI3IiB3aWR0aD0iMTAiIGhlaWdodD0iMiIvPjwvc3ZnPg==");
31
29
  }
32
-
33
30
  &:focus-visible,
34
31
  &:focus {
35
- box-shadow:
36
- 0px 0px 0px 2px rgba(var(--ax-sys-color-surface)),
37
- 0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
32
+ box-shadow: 0px 0px 0px 2px rgba(var(--ax-sys-color-surface)), 0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
38
33
  }
39
-
40
34
  &:disabled {
41
35
  cursor: not-allowed;
42
36
  opacity: 0.5;
43
37
  }
44
38
  }
45
-
46
- // @include darkMode() {
47
- // .ax-checkbox {
48
- // &:checked {
49
- // border-color: rgba(var(--ax-sys-color-primary-200)) !important;
50
- // background-color: rgba(var(--ax-sys-color-primary-200)) !important;
51
- // background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
52
- // }
53
- // }
54
- // }
@@ -1,4 +1,3 @@
1
- /** Composer media picker popup opened from message-list drop/paste. */
2
1
  .ax-popup-overlay.ax-conversation-composer-picker-popup {
3
2
  .ax-popup {
4
3
  max-height: min(32rem, 90dvh);
@@ -1,18 +1,16 @@
1
- @use '../variables/index.scss';
2
- @use '../mixins/' as mixins;
3
1
  .ax-drop-down {
4
2
  display: contents;
5
-
6
3
  .ax-dropdown-content {
7
4
  display: flex;
8
5
  flex: 1 1 0%;
9
6
  align-items: center;
10
7
  overflow-x: auto;
11
8
  overflow-y: hidden;
12
- font-size: 0.875rem /* 14px */;
13
- line-height: 1.25rem /* 20px */;
9
+ font-size: 0.875rem;
10
+ /* 14px */
11
+ line-height: 1.25rem;
12
+ /* 20px */
14
13
  text-transform: capitalize;
15
-
16
14
  &.ax-state-disabled {
17
15
  cursor: not-allowed;
18
16
  opacity: 0.5;
@@ -22,7 +20,7 @@
22
20
 
23
21
  .ax-overlay-pane {
24
22
  margin: 0.25rem 0;
25
- // min-width: 10rem;
23
+ /* min-width: 10rem; */
26
24
  width: 100%;
27
25
  height: fit-content;
28
26
  overflow: hidden;
@@ -31,16 +29,18 @@
31
29
  background-color: rgba(var(--ax-sys-color-lightest-surface));
32
30
  --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
33
31
  --ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color), 0 2px 4px -2px var(--ax-shadow-color);
34
- box-shadow: var(--ax-ring-offset-shadow, 0 0 #0000), var(--ax-ring-shadow, 0 0 #0000), var(--ax-shadow);
32
+ box-shadow:
33
+ var(--ax-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--ax-shadow);
35
34
  border-top-left-radius: var(--ax-comp-drop-down-border-top-left-radius, var(--ax-sys-border-radius));
36
35
  border-top-right-radius: var(--ax-comp-drop-down-border-top-right-radius, var(--ax-sys-border-radius));
37
36
  border-bottom-left-radius: var(--ax-comp-drop-down-border-bottom-left-radius, var(--ax-sys-border-radius));
38
37
  border-bottom-right-radius: var(--ax-comp-drop-down-border-bottom-right-radius, var(--ax-sys-border-radius));
39
-
38
+ /* Replace the @include mixin with a normal media query */
40
39
  ax-header,
41
40
  ax-footer {
42
41
  background-color: rgba(var(--ax-sys-color-lightest-surface));
43
- padding: 0.75rem /* 12px */;
42
+ padding: 0.75rem;
43
+ /* 12px */
44
44
  }
45
45
 
46
46
  &.ax-overlay-center {
@@ -49,21 +49,16 @@
49
49
  max-width: 90vh;
50
50
  }
51
51
 
52
- &.ax-overlay-full {
53
- width: 100vw;
54
- height: 100vh;
55
- }
56
-
57
52
  &.ax-overlay-actionsheet {
58
53
  height: auto;
59
54
  max-height: 85vh;
60
55
  width: 100vw;
61
56
  background-color: rgba(var(--ax-sys-color-lightest-surface));
62
- outline: rgba(0, 0, 0, 0.5) solid 100vmax;
57
+ outline: 1000vmax solid rgba(0, 0, 0, 0.5);
63
58
  }
64
59
  }
65
60
 
66
- @include mixins.darkMode() {
61
+ .dark {
67
62
  .ax-overlay-pane {
68
63
  background-color: rgba(var(--ax-sys-color-darker-surface));
69
64
  border-color: rgba(var(--ax-sys-color-border-darker-surface));
@@ -0,0 +1,69 @@
1
+ @import '../themes/default.css';
2
+
3
+ @layer base {
4
+ .ax-editor-container {
5
+ @apply h-9 min-h-9 px-3 py-3 text-sm;
6
+ .ax-content {
7
+ @apply text-sm;
8
+ }
9
+ }
10
+
11
+ .ax-editor-container {
12
+ @apply rounded-default relative flex h-9 min-h-9 items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
13
+
14
+ .ax-editor-container {
15
+ @apply p-0;
16
+ .ax-input,
17
+ .ax-editor {
18
+ @apply p-0;
19
+ }
20
+ }
21
+
22
+ .ax-input,
23
+ .ax-editor {
24
+ font-size: inherit;
25
+
26
+ @apply w-full flex-1 py-2 outline-0 outline-transparent;
27
+ }
28
+ .ax-placeholder {
29
+ @apply opacity-50;
30
+ }
31
+
32
+ &.ax-state-error {
33
+ @apply border-danger-600! focus-within:ring-danger-600/30!;
34
+ }
35
+
36
+ &:has(.ax-general-button-control, .ax-general-button-icon) {
37
+ @apply pe-2;
38
+ }
39
+
40
+ &:has(ax-prefix ax-button) {
41
+ @apply ps-0;
42
+ }
43
+
44
+ &:has(ax-suffix ax-button) {
45
+ @apply pe-0;
46
+ }
47
+
48
+ ax-prefix > ax-button {
49
+ @apply rounded-e-none!;
50
+ }
51
+
52
+ ax-suffix > ax-button {
53
+ @apply rounded-s-none!;
54
+ }
55
+
56
+ ax-suffix > ax-icon,
57
+ ax-prefix > ax-icon {
58
+ @apply text-muted;
59
+ }
60
+
61
+ ax-prefix,
62
+ ax-suffix {
63
+ @apply flex items-center gap-2;
64
+ }
65
+ ax-prefix {
66
+ @apply pe-2;
67
+ }
68
+ }
69
+ }
@@ -0,0 +1,62 @@
1
+ @import '../themes/default.css';
2
+
3
+ @layer base {
4
+ .ax-general-button,
5
+ .ax-general-button-icon {
6
+ @apply rounded-default inline-flex cursor-pointer items-center justify-center transition select-none;
7
+ @apply disabled:cursor-not-allowed disabled:opacity-50;
8
+ @apply text-text-default/50 hover:text-text-default/70;
9
+ @apply hover:bg-bg-default/10;
10
+ @apply focus-visible:ring-primary/30 focus-visible:ring-3 focus-visible:outline-none;
11
+ * {
12
+ @apply cursor-[inherit];
13
+ }
14
+ }
15
+
16
+ .ax-general-button {
17
+ @apply px-2 py-1 text-sm;
18
+
19
+ &.ax-xs {
20
+ @apply p-1.5 text-xs;
21
+ }
22
+
23
+ &.ax-sm {
24
+ @apply p-2 text-sm;
25
+ }
26
+
27
+ &.ax-md {
28
+ @apply p-2 text-sm;
29
+ }
30
+
31
+ &.ax-lg {
32
+ @apply p-2.5 text-lg;
33
+ }
34
+
35
+ &.ax-xl {
36
+ @apply p-2.5 text-xl;
37
+ }
38
+ }
39
+ .ax-general-button-icon {
40
+ @apply size-6 px-2 py-1 text-sm;
41
+
42
+ &.ax-xs {
43
+ @apply size-5 p-1.5 text-xs;
44
+ }
45
+
46
+ &.ax-sm {
47
+ @apply size-6 p-2 text-sm;
48
+ }
49
+
50
+ &.ax-md {
51
+ @apply size-6 p-2 text-sm;
52
+ }
53
+
54
+ &.ax-lg {
55
+ @apply size-8 p-2.5 text-lg;
56
+ }
57
+
58
+ &.ax-xl {
59
+ @apply size-9 p-2.5 text-xl;
60
+ }
61
+ }
62
+ }
@@ -1,27 +1,22 @@
1
- @use '../mixins/index.scss' as mixins;
2
- @include mixins.darkMode() {
1
+ .dark {
3
2
  .ax-list-item {
4
3
  &.ax-state-selected {
5
4
  background-color: rgba(var(--ax-sys-color-primary-800)) !important;
6
5
  color: rgba(var(--ax-sys-color-on-primary)) !important;
7
-
8
- // .ax-selected-icon {
9
- //
10
- // color: rgba(var(--ax-sys-color-on-primary));
11
- // }
12
6
  }
13
7
  }
14
8
  }
9
+
15
10
  .ax-list {
16
11
  display: flex;
17
12
  height: 100%;
18
13
  flex-direction: column;
19
14
  overflow: hidden;
20
15
  background-color: rgba(var(--ax-sys-color-surface));
21
- font-size: 0.875rem /* 14px */;
22
- line-height: 1.25rem /* 20px */;
23
- @include mixins.media('md') {
24
- max-height: 20rem /* 320px */;
16
+ font-size: 0.875rem;
17
+ line-height: 1.25rem;
18
+ .ax-md {
19
+ max-height: 20rem;
25
20
  }
26
21
  ax-header,
27
22
  ax-footer {
@@ -34,13 +29,13 @@
34
29
  ax-header {
35
30
  border-bottom-width: 1px;
36
31
  border-color: rgba(var(--ax-sys-color-border-lightest-surface), var(--tw-border-opacity));
37
- padding: 1rem /* 16px */;
38
- font-size: 1rem /* 16px */;
39
- line-height: 1.5rem /* 24px */;
32
+ padding: 1rem;
33
+ font-size: 1rem;
34
+ line-height: 1.5rem;
40
35
  font-weight: 500;
41
- @include mixins.media('md') {
42
- font-size: 1.125rem /* 18px */;
43
- line-height: 1.75rem /* 28px */;
36
+ .ax-md {
37
+ font-size: 1.125rem;
38
+ line-height: 1.75rem;
44
39
  }
45
40
  ax-prefix,
46
41
  ax-suffix {
@@ -55,53 +50,44 @@
55
50
  align-items: flex-end;
56
51
  }
57
52
  }
58
-
59
53
  ax-footer {
60
54
  border-top-width: 1px;
61
55
  }
62
-
63
56
  .ax-content {
64
57
  flex: 1 1 0%;
65
58
  overflow-y: auto;
66
59
  overflow-x: hidden;
67
-
68
60
  &.ax-list-items-container {
69
61
  height: 100%;
70
62
  overflow-y: auto;
71
- padding-top: 0.5rem /* 8px */;
72
- padding-bottom: 0.5rem /* 8px */;
73
-
63
+ padding-top: 0.5rem;
64
+ padding-bottom: 0.5rem;
74
65
  &.ax-vertical {
75
66
  display: grid;
76
67
  grid-template-columns: repeat(1, minmax(0, 1fr));
77
-
78
68
  &.ax-divide {
79
69
  border-top-width: 1px;
80
70
  border-bottom-width: 1px;
81
71
  }
82
72
  }
83
-
84
73
  &.ax-default {
85
74
  cursor: pointer;
86
-
87
75
  .ax-list-item-group {
88
76
  & > span {
89
77
  display: flex;
90
78
  align-items: center;
91
- padding: 0.75rem /* 12px */;
79
+ padding: 0.75rem;
92
80
  font-weight: 500;
93
81
  }
94
-
95
82
  & > ul {
96
- padding-left: 0.75rem /* 12px */;
97
- padding-right: 0.75rem /* 12px */;
83
+ padding-left: 0.75rem;
84
+ padding-right: 0.75rem;
98
85
  }
99
86
  .ax-list-item {
100
- margin-bottom: 0.25rem /* 4px */;
87
+ margin-bottom: 0.25rem;
101
88
  border-radius: var(--ax-sys-border-radius);
102
89
  }
103
90
  }
104
-
105
91
  .ax-list-item {
106
92
  position: relative;
107
93
  display: flex;
@@ -109,10 +95,10 @@
109
95
  user-select: none;
110
96
  align-items: center;
111
97
  justify-content: space-between;
112
- padding-inline-end: 1rem /* 16px */;
113
- padding-inline-start: 0.75rem /* 12px */;
114
- font-size: 1rem /* 16px */;
115
- line-height: 1.5rem /* 24px */;
98
+ padding-inline-end: 1rem;
99
+ padding-inline-start: 0.75rem;
100
+ font-size: 1rem;
101
+ line-height: 1.5rem;
116
102
  &:focus,
117
103
  &:focus-visible {
118
104
  outline-width: 2px;
@@ -120,31 +106,17 @@
120
106
  }
121
107
  &.ax-state-checkbox {
122
108
  .ax-checkbox-label {
123
- margin-inline-start: 0.5rem /* 8px */;
109
+ margin-inline-start: 0.5rem;
124
110
  }
125
111
  }
126
112
  &.ax-state-selected {
127
113
  background-color: rgba(var(--ax-sys-color-primary-500), var(--tw-bg-opacity)) !important;
128
114
  color: rgba(var(--ax-sys-color-on-primary), var(--tw-text-opacity)) !important;
129
-
130
- // .ax-selected-icon {
131
- //
132
- // font-size: 1.5rem /* 24px */;
133
- // line-height: 2rem /* 32px */;
134
- // color: rgba(var(--ax-sys-color-primary-500));
135
- // }
136
115
  }
137
-
138
- // &:not(.ax-check-box) {
139
- // &.ax-state-selected {
140
- // }
141
- // }
142
-
143
116
  &.ax-state-disabled {
144
117
  cursor: not-allowed;
145
118
  opacity: 0.5;
146
119
  }
147
-
148
120
  &:focus-visible,
149
121
  &:hover {
150
122
  background-color: rgba(var(--ax-sys-color-surface));
@@ -154,18 +126,15 @@
154
126
  }
155
127
  }
156
128
  }
157
-
158
129
  .ax-list-loading-container {
159
130
  display: flex;
160
131
  justify-content: center;
161
- padding: 0.5rem /* 8px */;
132
+ padding: 0.5rem;
162
133
  }
163
134
  }
164
135
  }
165
-
166
136
  .ax-search-box-container {
167
- padding: 0.5rem /* 8px */;
168
-
137
+ padding: 0.5rem;
169
138
  &.ax-state-hidden {
170
139
  display: none;
171
140
  }
@@ -0,0 +1,33 @@
1
+ .ax-radio {
2
+ margin: 0px;
3
+ height: 1rem;
4
+ min-height: 1rem;
5
+ min-width: 1rem;
6
+ width: 1rem;
7
+ cursor: pointer;
8
+ appearance: none;
9
+ border-radius: 9999px;
10
+ border-width: 1px;
11
+ border-color: rgba(var(--ax-sys-color-border-surface));
12
+ background-color: rgba(var(--ax-sys-color-input-surface));
13
+ vertical-align: middle;
14
+ outline: 2px solid transparent;
15
+ outline-offset: 2px;
16
+ &:checked {
17
+ border-color: rgba(var(--ax-sys-color-primary-500)) !important;
18
+ background-color: rgba(var(--ax-sys-color-primary-500)) !important;
19
+ background-size: contain;
20
+ background-repeat: no-repeat;
21
+ }
22
+ &:checked {
23
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
24
+ }
25
+ &:focus-visible,
26
+ &:focus {
27
+ box-shadow: 0px 0px 0px 2px rgba(var(--ax-sys-color-surface)), 0px 0px 0px 4px rgba(var(--ax-sys-color-primary-500));
28
+ }
29
+ &:disabled {
30
+ cursor: not-allowed;
31
+ opacity: 0.5;
32
+ }
33
+ }
@@ -1,13 +1,13 @@
1
+ @keyframes ripple {
2
+ to {
3
+ transform: scale(4);
4
+ opacity: 0;
5
+ }
6
+ }
7
+
1
8
  .ax-ripple {
9
+ position: absolute;
2
10
  transform: scale(0);
3
11
  animation: ripple 500ms linear;
4
- position: absolute;
5
12
  border-radius: 9999rem !important;
6
-
7
- @keyframes ripple {
8
- to {
9
- transform: scale(4);
10
- opacity: 0;
11
- }
12
- }
13
13
  }