@shohojdhara/atomix 0.4.6 → 0.4.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 (61) hide show
  1. package/dist/atomix.css +61 -56
  2. package/dist/atomix.css.map +1 -1
  3. package/dist/atomix.min.css +4 -4
  4. package/dist/atomix.min.css.map +1 -1
  5. package/dist/charts.d.ts +93 -109
  6. package/dist/charts.js +141 -233
  7. package/dist/charts.js.map +1 -1
  8. package/dist/core.js +51 -46
  9. package/dist/core.js.map +1 -1
  10. package/dist/forms.js +51 -46
  11. package/dist/forms.js.map +1 -1
  12. package/dist/heavy.js +51 -46
  13. package/dist/heavy.js.map +1 -1
  14. package/dist/index.d.ts +6 -22
  15. package/dist/index.esm.js +141 -234
  16. package/dist/index.esm.js.map +1 -1
  17. package/dist/index.js +144 -237
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.min.js +1 -1
  20. package/dist/index.min.js.map +1 -1
  21. package/package.json +1 -1
  22. package/scripts/atomix-cli.js +40 -1875
  23. package/scripts/cli/commands/build-theme.js +112 -0
  24. package/scripts/cli/commands/generate.js +97 -0
  25. package/scripts/cli/commands/init.js +46 -0
  26. package/scripts/cli/internal/compiler.js +114 -0
  27. package/scripts/cli/internal/filesystem.js +58 -0
  28. package/scripts/cli/internal/generator.js +110 -0
  29. package/scripts/cli/internal/wizard.js +61 -0
  30. package/scripts/cli/utils/error.js +47 -0
  31. package/scripts/cli/utils/helpers.js +43 -0
  32. package/scripts/cli/utils/logger.js +75 -0
  33. package/scripts/cli/utils/validation.js +71 -0
  34. package/src/components/AtomixGlass/AtomixGlass.test.tsx +37 -3
  35. package/src/components/AtomixGlass/AtomixGlass.tsx +41 -29
  36. package/src/components/AtomixGlass/AtomixGlassContainer.tsx +4 -19
  37. package/src/components/AtomixGlass/__snapshots__/AtomixGlass.test.tsx.snap +216 -0
  38. package/src/components/Chart/BubbleChart.tsx +6 -2
  39. package/src/components/Chart/Chart.stories.tsx +108 -96
  40. package/src/components/Chart/ChartToolbar.tsx +6 -4
  41. package/src/components/Chart/ChartTooltip.tsx +5 -4
  42. package/src/components/Chart/GaugeChart.tsx +20 -12
  43. package/src/components/Chart/HeatmapChart.tsx +53 -23
  44. package/src/components/Chart/TreemapChart.tsx +44 -15
  45. package/src/components/Chart/index.ts +0 -2
  46. package/src/components/Chart/types.ts +4 -4
  47. package/src/components/index.ts +0 -1
  48. package/src/lib/composables/useAtomixGlass.ts +4 -1
  49. package/src/lib/composables/useAtomixGlassStyles.ts +9 -7
  50. package/src/lib/constants/components.ts +7 -7
  51. package/src/styles/01-settings/_settings.chart.scss +13 -13
  52. package/src/styles/06-components/_components.atomix-glass.scss +17 -21
  53. package/src/styles/06-components/_components.chart.scss +23 -5
  54. package/src/styles/06-components/_components.edge-panel.scss +1 -5
  55. package/src/styles/06-components/_components.modal.scss +1 -4
  56. package/src/styles/06-components/_components.navbar.scss +1 -1
  57. package/src/styles/06-components/_components.tooltip.scss +9 -5
  58. package/scripts/cli/component-generator.js +0 -564
  59. package/scripts/cli/interactive-init.js +0 -357
  60. package/scripts/cli/utils.js +0 -359
  61. package/src/components/Chart/AnimatedChart.tsx +0 -230
@@ -798,6 +798,8 @@
798
798
  &__data-point {
799
799
  cursor: pointer;
800
800
  transition: all $chart-transition-duration $chart-transition-timing;
801
+ transform-origin: center;
802
+ transform-box: fill-box;
801
803
 
802
804
  &:hover {
803
805
  opacity: 0.8;
@@ -866,6 +868,8 @@
866
868
  transition: all $chart-treemap-node-transition-duration $chart-transition-timing;
867
869
  cursor: pointer;
868
870
  shape-rendering: geometricPrecision;
871
+ transform-origin: center;
872
+ transform-box: fill-box;
869
873
 
870
874
  &:hover {
871
875
  transform: scale($chart-treemap-node-hover-scale);
@@ -907,10 +911,11 @@
907
911
  transition: all $chart-funnel-segment-transition-duration $chart-transition-timing;
908
912
  cursor: pointer;
909
913
  shape-rendering: geometricPrecision;
914
+ transform-origin: center;
910
915
 
911
916
  &:hover {
912
917
  opacity: $chart-funnel-segment-hover-opacity;
913
- filter: drop-shadow($chart-funnel-segment-hover-shadow);
918
+ filter: drop-shadow($chart-funnel-segment-hover-shadow) brightness(1.1);
914
919
  stroke-width: calc($chart-funnel-segment-border-width * 1.5);
915
920
  }
916
921
 
@@ -925,7 +930,7 @@
925
930
  dominant-baseline: middle;
926
931
  pointer-events: none;
927
932
  user-select: none;
928
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
933
+ text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
929
934
  }
930
935
 
931
936
  &__funnel-conversion {
@@ -936,7 +941,9 @@
936
941
  dominant-baseline: middle;
937
942
  pointer-events: none;
938
943
  user-select: none;
939
- opacity: 0.8;
944
+ opacity: 0.9;
945
+ letter-spacing: 0.05em;
946
+ text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
940
947
  }
941
948
 
942
949
  // Heatmap Chart Elements
@@ -949,10 +956,11 @@
949
956
  transition: all $chart-heatmap-cell-transition-duration $chart-transition-timing;
950
957
  cursor: pointer;
951
958
  shape-rendering: geometricPrecision;
959
+ transform-origin: center;
960
+ transform-box: fill-box;
952
961
 
953
962
  &:hover {
954
963
  transform: scale($chart-heatmap-cell-hover-scale);
955
- transform-origin: center;
956
964
  filter: drop-shadow($chart-heatmap-cell-hover-shadow);
957
965
  stroke-width: $chart-heatmap-cell-hover-border-width;
958
966
  z-index: 10;
@@ -960,7 +968,6 @@
960
968
 
961
969
  &--hovered {
962
970
  transform: scale($chart-heatmap-cell-hover-scale);
963
- transform-origin: center;
964
971
  filter: drop-shadow($chart-heatmap-cell-hover-shadow);
965
972
  stroke-width: $chart-heatmap-cell-hover-border-width;
966
973
  z-index: 10;
@@ -1107,6 +1114,8 @@
1107
1114
  transition: all $chart-transition-duration $chart-transition-timing;
1108
1115
  cursor: pointer;
1109
1116
  shape-rendering: geometricPrecision;
1117
+ transform-origin: center;
1118
+ transform-box: fill-box;
1110
1119
 
1111
1120
  &:hover {
1112
1121
  transform: scale(1.2);
@@ -1165,6 +1174,7 @@
1165
1174
  cursor: pointer;
1166
1175
  shape-rendering: geometricPrecision;
1167
1176
  transform-origin: center;
1177
+ transform-box: fill-box;
1168
1178
 
1169
1179
  &:hover {
1170
1180
  transform: scale(1.02);
@@ -1226,6 +1236,8 @@
1226
1236
  transition: all $chart-transition-duration $chart-transition-timing;
1227
1237
  cursor: pointer;
1228
1238
  shape-rendering: geometricPrecision;
1239
+ transform-origin: center;
1240
+ transform-box: fill-box;
1229
1241
 
1230
1242
  &:hover {
1231
1243
  transform: scale(1.2);
@@ -1250,6 +1262,8 @@
1250
1262
  transition: all $chart-transition-duration $chart-transition-timing;
1251
1263
  cursor: pointer;
1252
1264
  shape-rendering: geometricPrecision;
1265
+ transform-origin: center;
1266
+ transform-box: fill-box;
1253
1267
 
1254
1268
  &:hover {
1255
1269
  transform: scale(1.1);
@@ -1310,6 +1324,8 @@
1310
1324
  transition: all $chart-transition-duration $chart-transition-timing;
1311
1325
  cursor: pointer;
1312
1326
  shape-rendering: geometricPrecision;
1327
+ transform-origin: center;
1328
+ transform-box: fill-box;
1313
1329
 
1314
1330
  &:hover {
1315
1331
  transform: scale(1.3);
@@ -1382,6 +1398,8 @@
1382
1398
  transition: all $chart-transition-duration $chart-transition-timing;
1383
1399
  cursor: pointer;
1384
1400
  shape-rendering: geometricPrecision;
1401
+ transform-origin: center;
1402
+ transform-box: fill-box;
1385
1403
 
1386
1404
  &:hover {
1387
1405
  transform: scale(1.3);
@@ -349,16 +349,12 @@
349
349
 
350
350
  // Glass Variant Styles
351
351
  .c-edge-panel--glass {
352
- position: absolute;
353
- z-index: unset;
354
-
355
352
  .c-edge-panel__container {
356
353
  background: transparent;
357
354
  box-shadow: none;
358
355
  overflow: hidden;
359
356
  border: none;
360
357
  padding: 0;
361
- z-index: unset;
362
358
  will-change: initial;
363
359
  transform: none !important;
364
360
  border-radius: inherit;
@@ -413,7 +409,7 @@
413
409
  $background-transparency-enable: true
414
410
  );
415
411
  animation: fadeIn 0.3s ease forwards;
416
- z-index: 0;
412
+ z-index: map.get($z-layers, 1);
417
413
 
418
414
  &.is-animating-out {
419
415
  animation: fadeOut 0.3s ease forwards;
@@ -44,10 +44,7 @@
44
44
  inset: 0;
45
45
  @include square(100%);
46
46
  display: none;
47
-
48
- &:not(.c-modal--glass) {
49
- z-index: map.get($z-layers, modal);
50
- }
47
+ z-index: map.get($z-layers, modal);
51
48
 
52
49
  &__backdrop {
53
50
  position: absolute;
@@ -252,7 +252,7 @@
252
252
  &--glass {
253
253
  position: relative;
254
254
  background-color: transparent;
255
- border-bottom: none;
255
+ @include dynamic-background(var(--#{$prefix}navbar-bg), $background-transparency-enable: true);
256
256
  }
257
257
 
258
258
  &--fixed-bottom {
@@ -84,22 +84,26 @@
84
84
  }
85
85
 
86
86
  &--glass {
87
- z-index: unset;
88
87
  #{$root}__content {
89
88
  @include dynamic-background(
90
89
  var(--#{$prefix}tooltip-bg),
91
90
  $background-transparency-enable: true,
92
- $transparency: 0.4
91
+ $transparency: 0.3
93
92
  );
94
93
  }
95
94
  #{$root}__arrow {
96
95
  @include dynamic-background(
97
96
  var(--#{$prefix}tooltip-bg),
98
97
  $background-transparency-enable: true,
99
- $transparency: 0.4
98
+ $transparency: 0.3
99
+ );
100
+ }
101
+ #{$root}__arrow {
102
+ @include dynamic-background(
103
+ var(--#{$prefix}tooltip-bg),
104
+ $background-transparency-enable: true,
105
+ $transparency: 0.3
100
106
  );
101
- clip-path: polygon(0 100%, 100% 100%, 100% 0);
102
- backdrop-filter: var(--atomix-glass-container-backdrop);
103
107
  }
104
108
  }
105
109
  }