@acorex/styles 21.0.0-next.66 → 21.0.0-next.68

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} +12 -37
  2. package/components/{_actionsheet.scss → _actionsheet.css} +13 -9
  3. package/components/{_check-box.scss → _check-box.css} +8 -24
  4. package/components/{_drop-down.scss → _drop-down.css} +18 -17
  5. package/components/_editor-container copy.css +267 -0
  6. package/components/_editor-container.css +82 -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 +11 -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 +3071 -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 -11
  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;
@@ -38,21 +27,15 @@
38
27
  font-weight: bolder;
39
28
  text-transform: uppercase;
40
29
  padding-block: var(--ax-comp-action-item-padding-block, 0.25rem);
41
- padding-inline: var(
42
- --ax-comp-action-item-padding-inline,
43
- calc(var(--ax-comp-action-item-padding-inline, 0.875rem) / 3 * 2)
44
- );
30
+ padding-inline: var(--ax-comp-action-item-padding-inline, calc(var(--ax-comp-action-item-padding-inline, 0.875rem) / 3 * 2));
45
31
  }
46
-
47
32
  ax-divider {
48
33
  display: block;
49
34
  background-color: rgba(var(--ax-sys-color-border-lightest-surface));
50
35
  }
51
-
52
36
  ax-text {
53
37
  white-space: nowrap;
54
38
  }
55
-
56
39
  .ax-action-item {
57
40
  display: flex;
58
41
  align-items: center;
@@ -67,17 +50,13 @@
67
50
  cursor: not-allowed;
68
51
  opacity: 0.5;
69
52
  }
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
- }
53
+ &:hover:not(.ax-state-disabled, .ax-state-selected) {
54
+ background-color: rgba(var(--ax-sys-color-surface));
55
+ ax-prefix,
56
+ ax-suffix {
57
+ opacity: 1;
78
58
  }
79
59
  }
80
-
81
60
  & > div {
82
61
  display: flex;
83
62
  align-items: center;
@@ -87,18 +66,14 @@
87
66
  gap: 0.5rem;
88
67
  }
89
68
  }
90
-
91
69
  ax-prefix {
92
70
  display: flex;
93
71
  gap: 0.5rem;
94
72
  }
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
- }
73
+ ax-suffix ax-text {
74
+ color: rgba(var(--ax-sys-body-text-color));
75
+ opacity: 0.5;
76
+ font-weight: lighter;
102
77
  }
103
78
  }
104
79
  }
@@ -1,21 +1,25 @@
1
1
  .ax-action-sheet-panel {
2
2
  --ax-comp-action-sheet-border-radius-size: var(--ax-sys-border-radius);
3
-
4
3
  overflow: hidden;
5
4
  border-top-left-radius: var(--ax-comp-action-sheet-border-radius-size);
6
5
  border-top-right-radius: var(--ax-comp-action-sheet-border-radius-size);
7
6
  background-color: rgba(var(--ax-sys-color-surface-lowest));
8
7
  --ax-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
9
- --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
-
8
+ --ax-shadow-colored: 0 10px 15px -3px var(--ax-shadow-color),
9
+ 0 4px 6px -4px var(--ax-shadow-color);
10
+ box-shadow: 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
11
  animation: 1s both ax-fadeInUp;
13
12
  animation-duration: var(--ax-sys-transition-duration);
13
+ }
14
14
 
15
- @keyframes ax-fadeInUp {
16
- from {
17
- transform: translate3d(0, 100%, 0);
18
- opacity: 0;
19
- }
15
+ @keyframes ax-fadeInUp {
16
+ from {
17
+ transform: translate3d(0, 100%, 0);
18
+ opacity: 0;
19
+ }
20
+ to {
21
+ transform: translate3d(0, 0, 0);
22
+ opacity: 1;
20
23
  }
21
24
  }
25
+
@@ -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,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;
@@ -29,28 +27,27 @@
29
27
  border-width: 1px;
30
28
  border-color: rgba(var(--ax-sys-color-border-lightest-surface));
31
29
  background-color: rgba(var(--ax-sys-color-lightest-surface));
32
- --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
33
- --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);
30
+ --ax-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1),
31
+ 0 2px 4px -2px rgb(0 0 0 / 0.1);
32
+ --ax-shadow-colored: 0 4px 6px -1px var(--ax-shadow-color),
33
+ 0 2px 4px -2px var(--ax-shadow-color);
34
+ box-shadow: 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
35
  border-top-left-radius: var(--ax-comp-drop-down-border-top-left-radius, var(--ax-sys-border-radius));
36
36
  border-top-right-radius: var(--ax-comp-drop-down-border-top-right-radius, var(--ax-sys-border-radius));
37
37
  border-bottom-left-radius: var(--ax-comp-drop-down-border-bottom-left-radius, var(--ax-sys-border-radius));
38
38
  border-bottom-right-radius: var(--ax-comp-drop-down-border-bottom-right-radius, var(--ax-sys-border-radius));
39
- @include mixins.media('xs') {
40
- margin: 0;
41
- }
39
+ /* Replace the @include mixin with a normal media query */
42
40
  ax-header,
43
41
  ax-footer {
44
42
  background-color: rgba(var(--ax-sys-color-lightest-surface));
45
- padding: 0.75rem /* 12px */;
43
+ padding: 0.75rem;
44
+ /* 12px */
46
45
  }
47
-
48
46
  &.ax-overlay-center {
49
47
  height: fit-content;
50
48
  width: 80vw;
51
49
  max-width: 90vh;
52
50
  }
53
-
54
51
  &.ax-overlay-actionsheet {
55
52
  height: auto;
56
53
  max-height: 85vh;
@@ -61,14 +58,18 @@
61
58
  max-height: 95vh;
62
59
  }
63
60
  }
64
-
65
61
  &.ax-overlay-full {
66
62
  width: 100vw;
67
63
  height: 100vh;
68
64
  }
69
65
  }
66
+ @media (max-width: 480px) {
67
+ .ax-overlay-pane {
68
+ margin: 0;
69
+ }
70
+ }
70
71
 
71
- @include mixins.darkMode() {
72
+ .dark {
72
73
  .ax-overlay-pane {
73
74
  background-color: rgba(var(--ax-sys-color-darker-surface));
74
75
  border-color: rgba(var(--ax-sys-color-border-darker-surface));
@@ -0,0 +1,267 @@
1
+ .ax-editor-container {
2
+ @apply border-default rounded-default relative flex h-9 w-full items-center justify-between gap-2 overflow-hidden border px-2 text-sm;
3
+ }
4
+
5
+ .ax-editor-container .ax-icon {
6
+ font-size: var(--ax-comp-editor-icon-font-size);
7
+ }
8
+
9
+ .ax-editor-container:has(> ax-prefix) {
10
+ padding-inline-start: 0;
11
+ }
12
+
13
+ .ax-editor-container:has(> ax-prefix) > ax-prefix:has(ax-button, .ax-editor-container) {
14
+ --ax-comp-editor-space-start-size: 0px;
15
+ }
16
+
17
+ .ax-editor-container:has(> ax-prefix) > ax-prefix {
18
+ padding-inline-start: var(--ax-comp-editor-space-start-size);
19
+ }
20
+
21
+ .ax-editor-container:has(> ax-suffix) {
22
+ padding-inline-end: 0;
23
+ }
24
+
25
+ .ax-editor-container:has(> ax-suffix) > ax-suffix:has(ax-button, .ax-editor-container) {
26
+ --ax-comp-editor-space-end-size: 0px;
27
+ }
28
+
29
+ .ax-editor-container:has(> ax-suffix) > ax-suffix {
30
+ padding-inline-end: var(--ax-comp-editor-space-end-size);
31
+ }
32
+
33
+ .ax-editor-container:not(.ax-state-disabled):focus-within {
34
+ border-color: rgba(var(--ax-comp-editor-focused-border-color));
35
+ outline-width: var(--ax-comp-editor-box-outline-width);
36
+ outline-style: solid;
37
+ outline-color: rgba(var(--ax-comp-editor-focused-border-color));
38
+ }
39
+
40
+ .ax-editor-container.ax-state-error {
41
+ border-color: rgba(var(--ax-comp-editor-error-border-color));
42
+ outline-width: var(--ax-comp-editor-box-outline-width);
43
+ outline-color: rgba(var(--ax-comp-editor-error-border-color));
44
+ outline-style: solid;
45
+ }
46
+
47
+ .ax-editor-container.ax-state-error:focus-within {
48
+ border-color: rgba(var(--ax-comp-editor-error-border-color));
49
+ }
50
+
51
+ .ax-editor-container.ax-state-error .ax-input .ax-placeholder,
52
+ .ax-editor-container.ax-state-error .ax-input::placeholder {
53
+ color: rgba(var(--ax-comp-editor-error-text-color), var(--ax-comp-editor-placeholder-opacity));
54
+ }
55
+
56
+ .ax-editor-container.ax-solid {
57
+ --ax-comp-editor-bg-color: var(--ax-sys-color-lightest-surface);
58
+ --ax-comp-editor-border-width: 1px;
59
+ }
60
+
61
+ .ax-editor-container.ax-outline {
62
+ --ax-comp-editor-bg-color: 0, 0, 0, 0;
63
+ --ax-comp-editor-border-width: 1px;
64
+ }
65
+
66
+ .ax-editor-container.ax-flat {
67
+ --ax-comp-editor-border-width: 2px;
68
+ --ax-comp-editor-border-radius: 0px;
69
+ --ax-comp-editor-box-outline-width: 0px;
70
+ border-width: 0px !important;
71
+ border-bottom-width: var(--ax-comp-editor-border-width) !important;
72
+ }
73
+
74
+ .ax-editor-container.ax-fill {
75
+ --ax-comp-editor-box-outline-width: 2px;
76
+ --ax-comp-editor-border-width: 0px;
77
+ --ax-comp-editor-bg-color: var(--ax-sys-color-surface);
78
+ --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
79
+ --ax-comp-editor-border-color: var(--ax-sys-color-border-lighter-surface);
80
+ }
81
+
82
+ .ax-editor-container.ax-none {
83
+ --ax-comp-editor-border-radius: 0px;
84
+ --ax-comp-editor-box-outline-width: 0px;
85
+ --ax-comp-editor-border-width: 0px;
86
+ --ax-comp-editor-bg-color: 0, 0, 0, 0;
87
+ --ax-comp-editor-border-color: 0, 0, 0, 0;
88
+ --ax-comp-editor-text-color: var(--ax-sys-color-on-lighter-surface);
89
+ }
90
+
91
+ .ax-editor-container .ax-editor-input {
92
+ height: 100%;
93
+ flex: 1 1 0%;
94
+ }
95
+
96
+ .ax-editor-container .ax-editor-input .ax-input {
97
+ height: 100%;
98
+ }
99
+
100
+ .ax-editor-container .ax-input {
101
+ font-size: var(--ax-comp-editor-font-size);
102
+ line-height: var(--ax-comp-editor-font-size);
103
+ color: rgba(var(--ax-comp-editor-text-color));
104
+ cursor: inherit;
105
+ }
106
+
107
+ .ax-editor-container .ax-input .ax-placeholder,
108
+ .ax-editor-container .ax-input::placeholder {
109
+ font-size: inherit;
110
+ font-weight: 400;
111
+ color: rgb(var(--ax-comp-editor-text-color), var(--ax-comp-editor-placeholder-opacity));
112
+ }
113
+
114
+ .ax-editor-container .ax-input:focus,
115
+ .ax-editor-container .ax-input:focus-visible,
116
+ .ax-editor-container .ax-input:focus-within {
117
+ outline: none;
118
+ }
119
+
120
+ .ax-editor-container.ax-state-disabled {
121
+ opacity: 0.5;
122
+ cursor: not-allowed;
123
+ }
124
+
125
+ .ax-editor-container .ax-editor-control {
126
+ display: flex;
127
+ height: 100%;
128
+ align-items: center;
129
+ justify-content: center;
130
+ padding-inline-start: 0.5rem;
131
+ font-size: 1.125rem;
132
+ line-height: 1.75rem;
133
+ color: rgba(var(--ax-comp-editor-text-color));
134
+ }
135
+
136
+ .ax-editor-container.ax-button-icon {
137
+ padding: 0 0.5rem;
138
+ }
139
+
140
+ .ax-editor-container .ax-input,
141
+ .ax-editor-container .ax-text-area {
142
+ text-align: inherit;
143
+ font-family: inherit;
144
+ font-size: inherit;
145
+ line-height: inherit;
146
+ height: 100%;
147
+ width: 100%;
148
+ flex: 1 1 0%;
149
+ background-color: transparent;
150
+ font-weight: inherit;
151
+ }
152
+
153
+ .ax-editor-container .ax-input:focus,
154
+ .ax-editor-container .ax-text-area:focus {
155
+ box-shadow: none;
156
+ }
157
+
158
+ .ax-editor-container .ax-editor-button {
159
+ font-size: var(--ax-comp-editor-button-font-size, var(--ax-comp-editor-font-size));
160
+ height: var(--ax-comp-editor-button-height, 100%);
161
+ display: flex;
162
+ align-items: center;
163
+ justify-content: center;
164
+ min-width: 1.5rem;
165
+ }
166
+
167
+ .ax-editor-container > ax-prefix,
168
+ .ax-editor-container > ax-suffix {
169
+ height: 100%;
170
+ max-width: fit-content;
171
+ }
172
+
173
+ .ax-editor-container > ax-prefix ax-button,
174
+ .ax-editor-container > ax-prefix ax-text,
175
+ .ax-editor-container > ax-prefix ax-icon,
176
+ .ax-editor-container > ax-prefix .ax-editor-container,
177
+ .ax-editor-container > ax-suffix ax-button,
178
+ .ax-editor-container > ax-suffix ax-text,
179
+ .ax-editor-container > ax-suffix ax-icon,
180
+ .ax-editor-container > ax-suffix .ax-editor-container {
181
+ display: flex;
182
+ height: 100%;
183
+ align-items: center;
184
+ justify-content: center;
185
+ border-radius: 0px;
186
+ }
187
+
188
+ .ax-editor-container > ax-prefix ax-title,
189
+ .ax-editor-container > ax-suffix ax-title {
190
+ padding-left: 1rem;
191
+ padding-right: 1rem;
192
+ }
193
+
194
+ .ax-editor-container > ax-prefix > ax-text,
195
+ .ax-editor-container > ax-suffix > ax-text {
196
+ display: flex;
197
+ align-items: center;
198
+ justify-content: center;
199
+ }
200
+
201
+ .ax-editor-container .ax-button {
202
+ height: 100% !important;
203
+ border-radius: 0px !important;
204
+ }
205
+
206
+ .ax-editor-container .ax-button.ax-button-icon {
207
+ height: 100%;
208
+ width: var(--ax-comp-editor-height);
209
+ }
210
+
211
+ .ax-editor-container ax-popover {
212
+ position: absolute;
213
+ }
214
+
215
+ .ax-xs .ax-editor-container,
216
+ .ax-editor-container.ax-xs {
217
+ --ax-comp-editor-font-size: 0.75rem;
218
+ --ax-comp-editor-space-start-size: 0.25rem;
219
+ --ax-comp-editor-space-end-size: 0.25rem;
220
+ --ax-comp-editor-button-font-size: 0.625rem;
221
+ --ax-comp-editor-gap: 0.25rem;
222
+ --ax-comp-editor-icon-font-size: 0.75rem;
223
+ }
224
+
225
+ .ax-sm .ax-editor-container,
226
+ .ax-editor-container.ax-sm {
227
+ --ax-comp-editor-font-size: 0.875rem;
228
+ --ax-comp-editor-space-start-size: 0.5rem;
229
+ --ax-comp-editor-space-end-size: 0.5rem;
230
+ --ax-comp-editor-button-font-size: 0.75rem;
231
+ --ax-comp-editor-gap: 0.375rem;
232
+ --ax-comp-editor-icon-font-size: 0.875rem;
233
+ }
234
+
235
+ .ax-md .ax-editor-container,
236
+ .ax-editor-container,
237
+ .ax-editor-container.ax-md {
238
+ --ax-comp-editor-space-start-size: 0.75rem;
239
+ --ax-comp-editor-space-end-size: 0.75rem;
240
+ --ax-comp-editor-button-font-size: 0.875rem;
241
+ --ax-comp-editor-gap: 0.5rem;
242
+ --ax-comp-editor-icon-font-size: 1rem;
243
+ }
244
+
245
+ .ax-lg .ax-editor-container,
246
+ .ax-editor-container.ax-lg {
247
+ --ax-comp-editor-font-size: 1.125rem;
248
+ --ax-comp-editor-space-start-size: 1.125rem;
249
+ --ax-comp-editor-space-end-size: 1.125rem;
250
+ --ax-comp-editor-button-font-size: 0.875rem;
251
+ --ax-comp-editor-gap: 0.625rem;
252
+ --ax-comp-editor-icon-font-size: 1.25rem;
253
+ }
254
+
255
+ .ax-xl .ax-editor-container,
256
+ .ax-editor-container.ax-xl {
257
+ --ax-comp-editor-font-size: 1.5rem;
258
+ --ax-comp-editor-space-start-size: 1.5rem;
259
+ --ax-comp-editor-space-end-size: 1.5rem;
260
+ --ax-comp-editor-button-font-size: 1rem;
261
+ --ax-comp-editor-gap: 0.75rem;
262
+ --ax-comp-editor-icon-font-size: 1.5rem;
263
+ }
264
+
265
+ ax-validation-rule {
266
+ position: absolute;
267
+ }
@@ -0,0 +1,82 @@
1
+ @import '../themes/default.css';
2
+
3
+ @layer base {
4
+ .ax-xs {
5
+ .ax-editor-container {
6
+ @apply h-7 min-h-7 px-2 py-1.5 text-xs leading-4;
7
+
8
+ .ax-content {
9
+ @apply text-xs;
10
+ }
11
+ }
12
+ }
13
+ .ax-sm {
14
+ .ax-editor-container {
15
+ @apply h-8 min-h-8 px-3 py-2 text-sm leading-5;
16
+ .ax-content {
17
+ @apply text-sm;
18
+ }
19
+ }
20
+ }
21
+ .ax-md {
22
+ .ax-editor-container {
23
+ @apply h-9 min-h-9 px-3 py-3 text-sm leading-5;
24
+ .ax-content {
25
+ @apply text-sm;
26
+ }
27
+ }
28
+ }
29
+ .ax-lg {
30
+ .ax-editor-container {
31
+ @apply h-10 min-h-10 px-4 py-2.5 text-base leading-6;
32
+ .ax-content {
33
+ @apply text-base;
34
+ }
35
+ }
36
+ }
37
+ .ax-xl {
38
+ .ax-editor-container {
39
+ @apply h-11 min-h-11 px-4 py-2.5 text-xl leading-7;
40
+ .ax-content {
41
+ @apply text-xl;
42
+ }
43
+ }
44
+ }
45
+ .ax-editor-container {
46
+ @apply rounded-default relative flex h-9 min-h-9 items-center justify-between overflow-hidden px-3 py-3 text-sm leading-5;
47
+
48
+ .ax-editor-container {
49
+ @apply p-0;
50
+ .ax-input,
51
+ .ax-editor {
52
+ @apply p-0;
53
+ }
54
+ }
55
+
56
+ .ax-input,
57
+ .ax-editor {
58
+ font-size: inherit;
59
+
60
+ @apply w-full py-2 outline-0 outline-transparent placeholder:opacity-50;
61
+ }
62
+ .ax-placeholder {
63
+ @apply opacity-50;
64
+ }
65
+
66
+ &.ax-state-error {
67
+ @apply border-danger-600! focus-within:ring-danger-600/30!;
68
+ }
69
+
70
+ &:has(.ax-general-button-control, .ax-general-button-icon) {
71
+ @apply pe-1;
72
+ }
73
+
74
+ ax-prefix,
75
+ ax-suffix {
76
+ @apply flex items-center gap-2;
77
+ }
78
+ ax-prefix {
79
+ @apply pe-2;
80
+ }
81
+ }
82
+ }
@@ -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-black/50 hover:text-black/70 dark:text-white/50 dark:hover:text-white/70;
9
+ @apply hover:bg-black/10 dark:hover:bg-white/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
+ }