@shohojdhara/atomix 0.2.7 → 0.2.8

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 (37) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/atomix.css +332 -54
  3. package/dist/atomix.min.css +2 -2
  4. package/dist/index.d.ts +286 -10
  5. package/dist/index.esm.js +451 -124
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +451 -124
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.min.js +1 -1
  10. package/dist/index.min.js.map +1 -1
  11. package/dist/themes/applemix.css +332 -54
  12. package/dist/themes/applemix.min.css +2 -2
  13. package/dist/themes/boomdevs.css +331 -53
  14. package/dist/themes/boomdevs.min.css +2 -2
  15. package/dist/themes/esrar.css +332 -54
  16. package/dist/themes/esrar.min.css +2 -2
  17. package/dist/themes/flashtrade.css +1636 -512
  18. package/dist/themes/flashtrade.min.css +113 -7
  19. package/dist/themes/mashroom.css +331 -53
  20. package/dist/themes/mashroom.min.css +2 -2
  21. package/dist/themes/shaj-default.css +331 -53
  22. package/dist/themes/shaj-default.min.css +2 -2
  23. package/package.json +1 -1
  24. package/src/components/Button/Button.stories.tsx +174 -0
  25. package/src/components/Button/Button.tsx +238 -78
  26. package/src/components/Card/Card.stories.tsx +202 -0
  27. package/src/components/Card/Card.tsx +248 -77
  28. package/src/components/Form/Input.stories.tsx +228 -2
  29. package/src/components/Tooltip/Tooltip.tsx +68 -66
  30. package/src/lib/composables/useButton.ts +37 -5
  31. package/src/lib/composables/useInput.ts +39 -1
  32. package/src/lib/constants/components.ts +53 -0
  33. package/src/lib/types/components.ts +278 -4
  34. package/src/styles/01-settings/_settings.tooltip.scss +2 -2
  35. package/src/styles/06-components/_components.button.scss +100 -0
  36. package/src/styles/06-components/_components.card.scss +219 -1
  37. package/src/styles/06-components/_components.tooltip.scss +89 -66
package/CHANGELOG.md CHANGED
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.8] - 2025-01-28
11
+
10
12
  ## [0.2.7] - 2025-01-27
11
13
 
12
14
  ## [0.1.25] - 2025-07-02
package/dist/atomix.css CHANGED
@@ -2368,12 +2368,76 @@ a, a:hover {
2368
2368
  .c-btn--icon {
2369
2369
  --atomix-btn-padding-x: var(--atomix-btn-padding-y);
2370
2370
  }
2371
+ .c-btn--full-width {
2372
+ width: 100%;
2373
+ }
2374
+ .c-btn--block {
2375
+ display: block;
2376
+ width: 100%;
2377
+ }
2378
+ .c-btn--loading {
2379
+ position: relative;
2380
+ pointer-events: none;
2381
+ cursor: wait;
2382
+ }
2383
+ .c-btn--loading::before {
2384
+ content: "";
2385
+ position: absolute;
2386
+ inset: 0;
2387
+ background-color: rgba(255, 255, 255, 0.5);
2388
+ border-radius: var(--atomix-btn-border-radius);
2389
+ z-index: 0;
2390
+ }
2391
+ .c-btn--active {
2392
+ --atomix-btn-bg: var(--atomix-btn-active-bg, var(--atomix-btn-hover-bg));
2393
+ --atomix-btn-color: var(--atomix-btn-active-color, var(--atomix-btn-hover-color));
2394
+ --atomix-btn-border-color: var(--atomix-btn-active-border-color, var(--atomix-btn-hover-border-color));
2395
+ box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
2396
+ }
2397
+ .c-btn--selected {
2398
+ --atomix-btn-border-width: 2px;
2399
+ --atomix-btn-border-color: var(--atomix-brand-border-subtle, var(--atomix-primary));
2400
+ box-shadow: 0 0 0 2px rgba(var(--atomix-primary-rgb, 124, 58, 237), 0.2);
2401
+ }
2402
+ .c-btn__icon {
2403
+ display: inline-flex;
2404
+ align-items: center;
2405
+ flex-shrink: 0;
2406
+ }
2407
+ .c-btn__icon--start {
2408
+ order: -1;
2409
+ }
2410
+ .c-btn__icon--end {
2411
+ order: 1;
2412
+ }
2413
+ .c-btn__label {
2414
+ display: inline-block;
2415
+ }
2416
+ .c-btn__spinner {
2417
+ display: inline-flex;
2418
+ align-items: center;
2419
+ flex-shrink: 0;
2420
+ margin-right: 0.5rem;
2421
+ }
2422
+ .c-btn__spinner:last-child {
2423
+ margin-right: 0;
2424
+ margin-left: 0.5rem;
2425
+ }
2426
+ .c-btn:focus-visible {
2427
+ outline: 2px solid var(--atomix-brand-border-subtle, var(--atomix-primary));
2428
+ outline-offset: 2px;
2429
+ box-shadow: var(--atomix-btn-focus-box-shadow);
2430
+ }
2371
2431
  .c-btn:disabled, .c-btn--disabled, fieldset:disabled .c-btn {
2372
2432
  color: var(--atomix-btn-disabled-color);
2373
2433
  pointer-events: none;
2374
2434
  background-color: var(--atomix-btn-disabled-bg);
2375
2435
  border-color: var(--atomix-btn-disabled-border-color);
2376
2436
  opacity: var(--atomix-btn-disabled-opacity);
2437
+ cursor: not-allowed;
2438
+ }
2439
+ .c-btn:disabled:focus-visible, .c-btn--disabled:focus-visible, fieldset:disabled .c-btn:focus-visible {
2440
+ outline: none;
2377
2441
  }
2378
2442
  .c-btn--glass {
2379
2443
  background-color: color-mix(in srgb, var(--atomix-btn-bg) 50%, transparent);
@@ -2381,6 +2445,22 @@ a, a:hover {
2381
2445
  .c-btn--glass:hover {
2382
2446
  background-color: color-mix(in srgb, var(--atomix-btn-hover-bg) 50%, transparent);
2383
2447
  }
2448
+ @media (prefers-reduced-motion: reduce) {
2449
+ .c-btn {
2450
+ transition: none;
2451
+ }
2452
+ .c-btn__spinner {
2453
+ animation-duration: 2s;
2454
+ }
2455
+ }
2456
+ @media (prefers-contrast: high) {
2457
+ .c-btn {
2458
+ border-width: 2px;
2459
+ }
2460
+ .c-btn:focus-visible {
2461
+ outline-width: 3px;
2462
+ }
2463
+ }
2384
2464
  .c-datepicker {
2385
2465
  --atomix-datepicker-width: 19rem;
2386
2466
  --atomix-datepicker-padding-x: 0.5rem;
@@ -2843,6 +2923,19 @@ a, a:hover {
2843
2923
  transition-timing-function: ease-in-out;
2844
2924
  transition-delay: 0s;
2845
2925
  background-color: var(--atomix-card-bg);
2926
+ display: block;
2927
+ text-decoration: none;
2928
+ color: inherit;
2929
+ }
2930
+ .c-card[href] {
2931
+ display: block;
2932
+ text-decoration: none !important;
2933
+ color: inherit !important;
2934
+ cursor: pointer;
2935
+ }
2936
+ .c-card[href]:hover, .c-card[href]:focus, .c-card[href]:visited, .c-card[href]:active {
2937
+ text-decoration: none !important;
2938
+ color: inherit !important;
2846
2939
  }
2847
2940
  .c-card__header {
2848
2941
  margin-bottom: var(--atomix-card-header-spacer-y);
@@ -2920,15 +3013,204 @@ a, a:hover {
2920
3013
  padding: var(--atomix-card-row-spacer-y) var(--atomix-card-row-spacer-x);
2921
3014
  padding-top: 0;
2922
3015
  }
3016
+ .c-card--sm {
3017
+ --atomix-card-spacer-y: 0.5rem;
3018
+ --atomix-card-spacer-x: 0.5rem;
3019
+ --atomix-card-title-font-size: var(--atomix-font-size-sm);
3020
+ --atomix-card-text-font-size: var(--atomix-font-size-xs);
3021
+ }
3022
+ .c-card--lg {
3023
+ --atomix-card-spacer-y: 1.5rem;
3024
+ --atomix-card-spacer-x: 1.5rem;
3025
+ --atomix-card-title-font-size: var(--atomix-font-size-lg);
3026
+ --atomix-card-text-font-size: var(--atomix-font-size-base);
3027
+ }
3028
+ .c-card--filled {
3029
+ background-color: var(--atomix-card-bg);
3030
+ }
3031
+ .c-card--outlined {
3032
+ background-color: transparent;
3033
+ border-width: var(--atomix-card-border-width);
3034
+ }
3035
+ .c-card--ghost {
3036
+ background-color: transparent;
3037
+ border: none;
3038
+ }
3039
+ .c-card--elevated {
3040
+ box-shadow: var(--atomix-box-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
3041
+ }
3042
+ .c-card--elevation-none {
3043
+ box-shadow: none;
3044
+ }
3045
+ .c-card--elevation-sm {
3046
+ box-shadow: var(--atomix-box-shadow-sm, 0 1px 2px rgba(0, 0, 0, 0.05));
3047
+ }
3048
+ .c-card--elevation-md {
3049
+ box-shadow: var(--atomix-box-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
3050
+ }
3051
+ .c-card--elevation-lg {
3052
+ box-shadow: var(--atomix-box-shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
3053
+ }
3054
+ .c-card--elevation-xl {
3055
+ box-shadow: var(--atomix-box-shadow-xl, 0 20px 25px rgba(0, 0, 0, 0.1));
3056
+ }
3057
+ .c-card--disabled {
3058
+ opacity: 0.6;
3059
+ cursor: not-allowed;
3060
+ pointer-events: none;
3061
+ -webkit-user-select: none;
3062
+ -moz-user-select: none;
3063
+ user-select: none;
3064
+ }
3065
+ .c-card--loading {
3066
+ position: relative;
3067
+ pointer-events: none;
3068
+ -webkit-user-select: none;
3069
+ -moz-user-select: none;
3070
+ user-select: none;
3071
+ overflow: hidden;
3072
+ }
3073
+ .c-card--loading::before {
3074
+ content: "";
3075
+ position: absolute;
3076
+ inset: 0;
3077
+ background-color: rgba(255, 255, 255, 0.7);
3078
+ -webkit-backdrop-filter: blur(1px);
3079
+ backdrop-filter: blur(1px);
3080
+ z-index: 1;
3081
+ border-radius: var(--atomix-card-border-radius);
3082
+ }
3083
+ [data-theme=dark] .c-card--loading::before, .c-card--loading.dark::before {
3084
+ background-color: rgba(0, 0, 0, 0.5);
3085
+ }
3086
+ .c-card--selected {
3087
+ --atomix-card-border-color: var(--atomix-brand-border-subtle);
3088
+ --atomix-card-border-width: 2px;
3089
+ box-shadow: var(--atomix-box-shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
3090
+ }
3091
+ .c-card--interactive {
3092
+ cursor: pointer;
3093
+ transition: all 0.2s ease-in-out;
3094
+ }
3095
+ .c-card--interactive:hover:not(.c-card--interactive--disabled) {
3096
+ transform: translateY(-2px);
3097
+ box-shadow: var(--atomix-box-shadow-lg, 0 10px 15px rgba(0, 0, 0, 0.1));
3098
+ }
3099
+ .c-card--interactive:active:not(.c-card--interactive--disabled) {
3100
+ transform: translateY(0);
3101
+ }
3102
+ .c-card--primary {
3103
+ --atomix-card-bg: var(--atomix-brand-bg-subtle);
3104
+ --atomix-card-bg-hover: var(--atomix-brand-bg-subtle);
3105
+ --atomix-card-border-color: var(--atomix-brand-border-subtle);
3106
+ --atomix-card-title-color: var(--atomix-brand-text-emphasis);
3107
+ }
3108
+ .c-card--secondary {
3109
+ --atomix-card-bg: var(--atomix-secondary-bg-subtle);
3110
+ --atomix-card-bg-hover: var(--atomix-secondary-bg-subtle);
3111
+ --atomix-card-border-color: var(--atomix-secondary-border-subtle);
3112
+ --atomix-card-title-color: var(--atomix-secondary-text-emphasis);
3113
+ }
3114
+ .c-card--success {
3115
+ --atomix-card-bg: var(--atomix-success-bg-subtle);
3116
+ --atomix-card-bg-hover: var(--atomix-success-bg-subtle);
3117
+ --atomix-card-border-color: var(--atomix-success-border-subtle);
3118
+ --atomix-card-title-color: var(--atomix-success-text-emphasis);
3119
+ }
3120
+ .c-card--info {
3121
+ --atomix-card-bg: var(--atomix-info-bg-subtle);
3122
+ --atomix-card-bg-hover: var(--atomix-info-bg-subtle);
3123
+ --atomix-card-border-color: var(--atomix-info-border-subtle);
3124
+ --atomix-card-title-color: var(--atomix-info-text-emphasis);
3125
+ }
3126
+ .c-card--warning {
3127
+ --atomix-card-bg: var(--atomix-warning-bg-subtle);
3128
+ --atomix-card-bg-hover: var(--atomix-warning-bg-subtle);
3129
+ --atomix-card-border-color: var(--atomix-warning-border-subtle);
3130
+ --atomix-card-title-color: var(--atomix-warning-text-emphasis);
3131
+ }
3132
+ .c-card--error {
3133
+ --atomix-card-bg: var(--atomix-error-bg-subtle);
3134
+ --atomix-card-bg-hover: var(--atomix-error-bg-subtle);
3135
+ --atomix-card-border-color: var(--atomix-error-border-subtle);
3136
+ --atomix-card-title-color: var(--atomix-error-text-emphasis);
3137
+ }
3138
+ .c-card--light {
3139
+ --atomix-card-bg: var(--atomix-light);
3140
+ --atomix-card-bg-hover: var(--atomix-light-hover);
3141
+ --atomix-card-border-color: var(--atomix-light);
3142
+ --atomix-card-title-color: var(--atomix-dark);
3143
+ --atomix-card-text-color: rgba(0, 0, 0, 0.7);
3144
+ }
3145
+ .c-card--dark {
3146
+ --atomix-card-bg: var(--atomix-dark);
3147
+ --atomix-card-bg-hover: var(--atomix-dark-hover);
3148
+ --atomix-card-border-color: var(--atomix-dark);
3149
+ --atomix-card-title-color: var(--atomix-light);
3150
+ --atomix-card-text-color: rgba(255, 255, 255, 0.8);
3151
+ }
2923
3152
  .c-card--glass {
2924
3153
  max-width: none;
2925
3154
  background-color: color-mix(in srgb, var(--atomix-card-bg) 50%, transparent);
2926
3155
  }
3156
+ .c-card__loading {
3157
+ position: absolute;
3158
+ inset: 0;
3159
+ display: flex;
3160
+ align-items: center;
3161
+ justify-content: center;
3162
+ z-index: 2;
3163
+ border-radius: var(--atomix-card-border-radius);
3164
+ pointer-events: none;
3165
+ }
3166
+ .c-card__spinner {
3167
+ width: 2.5rem;
3168
+ height: 2.5rem;
3169
+ border: 4px solid;
3170
+ border-color: var(--atomix-border-primary, rgba(0, 0, 0, 0.15));
3171
+ border-top-color: var(--atomix-brand-text-emphasis, var(--atomix-primary, #7c3aed));
3172
+ border-right-color: var(--atomix-brand-text-emphasis, var(--atomix-primary, #7c3aed));
3173
+ border-radius: 50%;
3174
+ animation: spin 0.8s linear infinite;
3175
+ background-color: transparent;
3176
+ flex-shrink: 0;
3177
+ box-sizing: border-box;
3178
+ display: block;
3179
+ }
3180
+ .c-card:focus-visible {
3181
+ outline: 2px solid var(--atomix-brand-border-subtle);
3182
+ outline-offset: 2px;
3183
+ }
3184
+ @media (prefers-reduced-motion: reduce) {
3185
+ .c-card {
3186
+ transition: none;
3187
+ }
3188
+ .c-card--interactive:hover:not(.c-card--disabled) {
3189
+ transform: none;
3190
+ }
3191
+ .c-card__spinner {
3192
+ animation: none;
3193
+ border-top-color: transparent;
3194
+ }
3195
+ }
3196
+ @media (prefers-contrast: high) {
3197
+ .c-card {
3198
+ border-width: 2px;
3199
+ }
3200
+ .c-card--selected {
3201
+ border-width: 3px;
3202
+ }
3203
+ }
2927
3204
  .is-elevated .c-card {
2928
3205
  box-shadow: var(--atomix-box-shadow-lg, 0 16px 48px rgba(0, 0, 0, 0.175));
2929
3206
  z-index: 1;
2930
3207
  transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
2931
3208
  }
3209
+ @keyframes spin {
3210
+ to {
3211
+ transform: rotate(360deg);
3212
+ }
3213
+ }
2932
3214
  .c-chart {
2933
3215
  --atomix-chart-primary-color: var(--atomix-primary);
2934
3216
  --atomix-chart-secondary-color: var(--atomix-secondary);
@@ -10033,24 +10315,52 @@ a, a:hover {
10033
10315
  --atomix-tooltip-bg: var(--atomix-invert-bg-subtle);
10034
10316
  --atomix-tooltip-font-size: 0.75rem;
10035
10317
  --atomix-tooltip-font-weight: 400;
10036
- --atomix-tooltip-color: var(--atomix-invert-text-emphasis);
10318
+ --atomix-tooltip-color: var(--atomix-invert-text);
10037
10319
  --atomix-tooltip-border-radius: 0.5rem;
10038
10320
  --atomix-tooltip-border-width: ;
10039
10321
  --atomix-tooltip-border-color: ;
10040
10322
  --atomix-tooltip-box-shadow: ;
10041
10323
  --atomix-tooltip-arrow-size: 0.75rem;
10324
+ --atomix-tooltip-offset: 0.75rem;
10042
10325
  position: absolute;
10043
- bottom: calc(100% + var(--atomix-tooltip-arrow-size));
10044
- left: 50%;
10045
10326
  width: -moz-max-content;
10046
10327
  width: max-content;
10047
10328
  height: -moz-max-content;
10048
10329
  height: max-content;
10049
10330
  max-width: var(--atomix-tooltip-max-width);
10050
- transform: translateX(-50%);
10051
10331
  pointer-events: none;
10052
10332
  z-index: 1000;
10053
10333
  }
10334
+ .c-tooltip--top, .c-tooltip--top-left, .c-tooltip--top-right {
10335
+ bottom: calc(100% + var(--atomix-tooltip-offset));
10336
+ transform-origin: bottom center;
10337
+ }
10338
+ .c-tooltip--bottom, .c-tooltip--bottom-left, .c-tooltip--bottom-right {
10339
+ top: calc(100% + var(--atomix-tooltip-offset));
10340
+ transform-origin: top center;
10341
+ }
10342
+ .c-tooltip--left {
10343
+ right: calc(100% + var(--atomix-tooltip-offset));
10344
+ top: 50%;
10345
+ transform: translateY(-50%);
10346
+ transform-origin: right center;
10347
+ }
10348
+ .c-tooltip--right {
10349
+ left: calc(100% + var(--atomix-tooltip-offset));
10350
+ top: 50%;
10351
+ transform: translateY(-50%);
10352
+ transform-origin: left center;
10353
+ }
10354
+ .c-tooltip--top, .c-tooltip--bottom {
10355
+ left: 50%;
10356
+ transform: translateX(-50%);
10357
+ }
10358
+ .c-tooltip--top-left, .c-tooltip--bottom-left {
10359
+ left: 0;
10360
+ }
10361
+ .c-tooltip--top-right, .c-tooltip--bottom-right {
10362
+ right: 0;
10363
+ }
10054
10364
  .c-tooltip__content {
10055
10365
  position: relative;
10056
10366
  color: var(--atomix-tooltip-color);
@@ -10059,10 +10369,12 @@ a, a:hover {
10059
10369
  padding: var(--atomix-tooltip-padding-y) var(--atomix-tooltip-padding-x);
10060
10370
  background-color: var(--atomix-tooltip-bg);
10061
10371
  border-radius: var(--atomix-tooltip-border-radius);
10372
+ box-shadow: var(--atomix-tooltip-box-shadow);
10062
10373
  z-index: 2;
10063
10374
  opacity: 0;
10375
+ pointer-events: auto;
10376
+ transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
10064
10377
  transform: scale(0.95);
10065
- transition: opacity 0.2s ease-out, transform 0.2s ease-out;
10066
10378
  }
10067
10379
  .c-tooltip__content.is-active {
10068
10380
  opacity: 1;
@@ -10070,71 +10382,37 @@ a, a:hover {
10070
10382
  }
10071
10383
  .c-tooltip__arrow {
10072
10384
  position: absolute;
10073
- bottom: calc(var(--atomix-tooltip-arrow-size) / -2);
10074
- left: 50%;
10075
- transform: translateX(-50%) rotate(45deg);
10076
10385
  width: var(--atomix-tooltip-arrow-size);
10077
10386
  height: var(--atomix-tooltip-arrow-size);
10078
10387
  background-color: var(--atomix-tooltip-bg);
10079
10388
  z-index: 1;
10080
- }
10081
- .c-tooltip--top-left {
10082
- left: auto;
10083
- right: calc(100% - var(--atomix-tooltip-arrow-size) * 2);
10084
- transform: translateX(0);
10085
- }
10086
- .c-tooltip--top-left .c-tooltip__arrow {
10087
- left: auto;
10088
- right: var(--atomix-tooltip-arrow-size);
10089
10389
  transform: rotate(45deg);
10090
10390
  }
10091
- .c-tooltip--top-right {
10092
- left: calc(100% - var(--atomix-tooltip-arrow-size) * 2);
10093
- transform: translateX(0);
10391
+ .c-tooltip--top .c-tooltip__arrow, .c-tooltip--top-left .c-tooltip__arrow, .c-tooltip--top-right .c-tooltip__arrow {
10392
+ bottom: calc(var(--atomix-tooltip-arrow-size) / -2);
10094
10393
  }
10095
- .c-tooltip--top-right .c-tooltip__arrow {
10096
- left: var(--atomix-tooltip-arrow-size);
10097
- transform: rotate(45deg);
10394
+ .c-tooltip--bottom .c-tooltip__arrow, .c-tooltip--bottom-left .c-tooltip__arrow, .c-tooltip--bottom-right .c-tooltip__arrow {
10395
+ top: calc(var(--atomix-tooltip-arrow-size) / -2);
10098
10396
  }
10099
- .c-tooltip--right {
10100
- left: calc(100% + var(--atomix-tooltip-arrow-size));
10397
+ .c-tooltip--left .c-tooltip__arrow {
10398
+ right: calc(var(--atomix-tooltip-arrow-size) / -2);
10101
10399
  top: 50%;
10102
- transform: translateY(-50%);
10400
+ transform: translateY(-50%) rotate(45deg);
10103
10401
  }
10104
10402
  .c-tooltip--right .c-tooltip__arrow {
10105
10403
  left: calc(var(--atomix-tooltip-arrow-size) / -2);
10106
10404
  top: 50%;
10107
- bottom: auto;
10108
- transform: rotate(45deg) translateY(-50%);
10109
- transform-origin: top;
10110
- }
10111
- .c-tooltip--left {
10112
- left: auto;
10113
- right: calc(100% + var(--atomix-tooltip-arrow-size));
10114
- top: 50%;
10115
- transform: translateY(-50%);
10116
- }
10117
- .c-tooltip--left .c-tooltip__arrow {
10118
- left: auto;
10119
- top: 50%;
10120
- bottom: auto;
10121
- right: calc(var(--atomix-tooltip-arrow-size) / -5);
10122
- transform: rotate(45deg) translateY(-50%);
10123
- }
10124
- .c-tooltip--bottom {
10125
- top: calc(100% + var(--atomix-tooltip-arrow-size));
10405
+ transform: translateY(-50%) rotate(45deg);
10126
10406
  }
10127
- .c-tooltip--bottom .c-tooltip__arrow {
10128
- top: calc(var(--atomix-tooltip-arrow-size) / -2);
10129
- bottom: auto;
10407
+ .c-tooltip--top .c-tooltip__arrow, .c-tooltip--bottom .c-tooltip__arrow {
10408
+ left: 50%;
10409
+ transform: translateX(-50%) rotate(45deg);
10130
10410
  }
10131
- .c-tooltip--bottom-left {
10132
- top: calc(100% + var(--atomix-tooltip-arrow-size));
10133
- left: 0;
10411
+ .c-tooltip--top-left .c-tooltip__arrow, .c-tooltip--bottom-left .c-tooltip__arrow {
10412
+ left: var(--atomix-tooltip-arrow-size);
10134
10413
  }
10135
- .c-tooltip--bottom-right {
10136
- top: calc(100% + var(--atomix-tooltip-arrow-size));
10137
- right: 0;
10414
+ .c-tooltip--top-right .c-tooltip__arrow, .c-tooltip--bottom-right .c-tooltip__arrow {
10415
+ right: var(--atomix-tooltip-arrow-size);
10138
10416
  }
10139
10417
  .c-upload {
10140
10418
  --atomix-upload-width: 31.25rem;