@abydahana/aksara-ui 1.0.1 → 1.1.0

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.
package/dist/aksara.css CHANGED
@@ -60,6 +60,7 @@
60
60
  --aksara-bg-invert:#0f172a;
61
61
  --aksara-bg:var(--aksara-bg-body);
62
62
  --aksara-text-body:#172033;
63
+ --aksara-text-base:var(--aksara-text-body);
63
64
  --aksara-text-body-secondary:#64748b;
64
65
  --aksara-text-body-tertiary:#94a3b8;
65
66
  --aksara-text-subtle:#64748b;
@@ -102,6 +103,7 @@
102
103
  --aksara-bg-invert:#f8fafc;
103
104
  --aksara-bg:var(--aksara-bg-body);
104
105
  --aksara-text-body:#f8fafc;
106
+ --aksara-text-base:var(--aksara-text-body);
105
107
  --aksara-text-body-secondary:#94a3b8;
106
108
  --aksara-text-body-tertiary:#64748b;
107
109
  --aksara-text-subtle:#94a3b8;
@@ -140,12 +142,37 @@ html {
140
142
  }
141
143
  body {
142
144
  margin:0;
143
- font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
145
+ font-family:Ubuntu,Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
144
146
  font-size:1rem;
145
147
  background:var(--aksara-bg-body);
146
148
  color:var(--aksara-text-body);
147
149
  line-height:1.5
148
150
  }
151
+ h1,h2,h3,h4,h5,h6 {
152
+ margin-top:0;
153
+ margin-bottom:.5rem;
154
+ font-weight:600;
155
+ line-height:1.25;
156
+ color:inherit
157
+ }
158
+ h1 {
159
+ font-size:2rem
160
+ }
161
+ h2 {
162
+ font-size:1.75rem
163
+ }
164
+ h3 {
165
+ font-size:1.5rem
166
+ }
167
+ h4 {
168
+ font-size:1.25rem
169
+ }
170
+ h5 {
171
+ font-size:1.125rem
172
+ }
173
+ h6 {
174
+ font-size:1rem
175
+ }
149
176
  form {
150
177
  margin:0
151
178
  }
@@ -590,6 +617,140 @@ img,svg,video {
590
617
  .card-footer {
591
618
  padding:1rem
592
619
  }
620
+ .bento-grid {
621
+ display:grid;
622
+ grid-template-columns:repeat(1,minmax(0,1fr));
623
+ gap:1.25rem
624
+ }
625
+ .bento-grid-2 {
626
+ display:grid;
627
+ grid-template-columns:repeat(1,minmax(0,1fr));
628
+ gap:1.25rem
629
+ }
630
+ .bento-grid-3 {
631
+ display:grid;
632
+ grid-template-columns:repeat(1,minmax(0,1fr));
633
+ gap:1.25rem
634
+ }
635
+ .bento-grid-4 {
636
+ display:grid;
637
+ grid-template-columns:repeat(1,minmax(0,1fr));
638
+ gap:1.25rem
639
+ }
640
+ @media(min-width:48rem) {
641
+ .bento-grid {
642
+ grid-template-columns:repeat(3,minmax(0,1fr))
643
+ }
644
+ .bento-grid-2 {
645
+ grid-template-columns:repeat(2,minmax(0,1fr))
646
+ }
647
+ .bento-grid-3 {
648
+ grid-template-columns:repeat(3,minmax(0,1fr))
649
+ }
650
+ .bento-grid-4 {
651
+ grid-template-columns:repeat(4,minmax(0,1fr))
652
+ }
653
+ }
654
+ .bento-card {
655
+ position:relative;
656
+ display:flex;
657
+ flex-direction:column;
658
+ justify-content:space-between;
659
+ overflow:hidden;
660
+ background:var(--aksara-surface);
661
+ color:var(--aksara-text-body);
662
+ border:1px solid var(--aksara-border-subtle);
663
+ border-radius:var(--aksara-radius-2xl);
664
+ padding:1.5rem;
665
+ transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease
666
+ }
667
+ .bento-card:hover {
668
+ box-shadow:var(--aksara-shadow-md);
669
+ border-color:var(--aksara-border);
670
+ transform:translateY(-2px)
671
+ }
672
+ .bento-col-1 {
673
+ grid-column:span 1/span 1
674
+ }
675
+ .bento-col-2 {
676
+ grid-column:span 1/span 1
677
+ }
678
+ .bento-col-3 {
679
+ grid-column:span 1/span 1
680
+ }
681
+ .bento-col-4 {
682
+ grid-column:span 1/span 1
683
+ }
684
+ .bento-row-1 {
685
+ grid-row:span 1/span 1
686
+ }
687
+ .bento-row-2 {
688
+ grid-row:span 1/span 1
689
+ }
690
+ .bento-row-3 {
691
+ grid-row:span 1/span 1
692
+ }
693
+ @media(min-width:48rem) {
694
+ .bento-col-2 {
695
+ grid-column:span 2/span 2
696
+ }
697
+ .bento-col-3 {
698
+ grid-column:span 3/span 3
699
+ }
700
+ .bento-col-4 {
701
+ grid-column:span 4/span 4
702
+ }
703
+ .bento-row-2 {
704
+ grid-row:span 2/span 2
705
+ }
706
+ .bento-row-3 {
707
+ grid-row:span 3/span 3
708
+ }
709
+ }
710
+ .bento-featured {
711
+ background:linear-gradient(135deg,var(--aksara-surface),var(--aksara-bg-subtle));
712
+ border-color:rgb(var(--aksara-primary)/.35);
713
+ box-shadow:0 0 30px rgb(var(--aksara-primary)/.08)
714
+ }
715
+ .bento-header {
716
+ display:flex;
717
+ align-items:flex-start;
718
+ justify-content:space-between;
719
+ gap:1rem;
720
+ margin-bottom:1rem
721
+ }
722
+ .bento-title {
723
+ margin:0;
724
+ font-size:1.25rem;
725
+ font-weight:700;
726
+ line-height:1.3
727
+ }
728
+ .bento-subtitle {
729
+ margin:.25rem 0 0;
730
+ font-size:.875rem;
731
+ color:var(--aksara-text-subtle);
732
+ line-height:1.4
733
+ }
734
+ .bento-body {
735
+ flex:1 1 auto
736
+ }
737
+ .bento-footer {
738
+ display:flex;
739
+ align-items:center;
740
+ justify-content:space-between;
741
+ gap:1rem;
742
+ margin-top:1.25rem
743
+ }
744
+ .bento-visual {
745
+ display:flex;
746
+ align-items:center;
747
+ justify-content:center;
748
+ border-radius:var(--aksara-radius);
749
+ overflow:hidden;
750
+ background:var(--aksara-bg-subtle);
751
+ margin-top:1rem;
752
+ min-height:120px
753
+ }
593
754
  .alert {
594
755
  position:relative;
595
756
  padding:1rem;
@@ -695,6 +856,60 @@ img,svg,video {
695
856
  opacity:.56;
696
857
  pointer-events:none
697
858
  }
859
+ .timeline {
860
+ position:relative;
861
+ padding:0;
862
+ margin:0;
863
+ list-style:none
864
+ }
865
+ .timeline::before {
866
+ content:"";
867
+ position:absolute;
868
+ inset-block:0;
869
+ inset-inline-start:.875rem;
870
+ width:2px;
871
+ background:var(--aksara-border-subtle)
872
+ }
873
+ .timeline-item {
874
+ position:relative;
875
+ display:flex;
876
+ gap:1rem;
877
+ margin-bottom:1.5rem
878
+ }
879
+ .timeline-item:last-child {
880
+ margin-bottom:0
881
+ }
882
+ .timeline-point {
883
+ position:relative;
884
+ z-index:1;
885
+ display:flex;
886
+ align-items:center;
887
+ justify-content:center;
888
+ width:1.75rem;
889
+ height:1.75rem;
890
+ border-radius:9999px;
891
+ background:var(--aksara-surface);
892
+ border:2px solid rgb(var(--aksara-primary));
893
+ color:rgb(var(--aksara-primary));
894
+ flex-shrink:0;
895
+ box-shadow:0 0 0 3px var(--aksara-surface)
896
+ }
897
+ .timeline-content {
898
+ flex:1 1 auto;
899
+ padding-top:.125rem
900
+ }
901
+ .timeline-title {
902
+ margin:0 0 .25rem;
903
+ font-size:1rem;
904
+ font-weight:700;
905
+ line-height:1.3
906
+ }
907
+ .timeline-time {
908
+ display:block;
909
+ font-size:.75rem;
910
+ color:var(--aksara-text-subtle);
911
+ margin-bottom:.5rem
912
+ }
698
913
  .navbar {
699
914
  display:flex;
700
915
  align-items:center;
@@ -955,6 +1170,15 @@ img,svg,video {
955
1170
  padding:1rem;
956
1171
  border-block-end:1px solid var(--aksara-border-subtle)
957
1172
  }
1173
+ .modal-title {
1174
+ margin-block-start:0;
1175
+ margin-block-end:0;
1176
+ margin-inline-start:0;
1177
+ margin-inline-end:0;
1178
+ font-size:1.25rem;
1179
+ font-weight:600;
1180
+ line-height:1.5
1181
+ }
958
1182
  .modal-body {
959
1183
  min-height:0;
960
1184
  overflow:auto;
@@ -1817,6 +2041,15 @@ img,svg,video {
1817
2041
  background:currentColor;
1818
2042
  opacity:.16
1819
2043
  }
2044
+ .placeholder-xs {
2045
+ min-height:.6em
2046
+ }
2047
+ .placeholder-sm {
2048
+ min-height:.8em
2049
+ }
2050
+ .placeholder-lg {
2051
+ min-height:1.2em
2052
+ }
1820
2053
  .placeholder-glow {
1821
2054
  animation:aksara-pulse 1.5s ease-in-out infinite
1822
2055
  }
@@ -1832,6 +2065,40 @@ img,svg,video {
1832
2065
  background:linear-gradient(90deg,transparent,var(--aksara-placeholder-shine),transparent);
1833
2066
  animation:aksara-placeholder-wave 1.6s linear infinite
1834
2067
  }
2068
+ .skeleton {
2069
+ display:block;
2070
+ background:var(--aksara-bg-subtle);
2071
+ border-radius:var(--aksara-radius-sm);
2072
+ position:relative;
2073
+ overflow:hidden;
2074
+ animation:aksara-pulse 1.5s ease-in-out infinite
2075
+ }
2076
+ .skeleton-text {
2077
+ height:.875rem;
2078
+ margin-bottom:.5rem;
2079
+ border-radius:var(--aksara-radius-2xs);
2080
+ width:100%
2081
+ }
2082
+ .skeleton-circle {
2083
+ border-radius:9999px;
2084
+ flex-shrink:0
2085
+ }
2086
+ .skeleton-rect {
2087
+ width:100%;
2088
+ height:100%
2089
+ }
2090
+ .skeleton-wave {
2091
+ position:relative;
2092
+ overflow:hidden
2093
+ }
2094
+ .skeleton-wave::after {
2095
+ position:absolute;
2096
+ inset:0;
2097
+ content:"";
2098
+ transform:translateX(-100%);
2099
+ background:linear-gradient(90deg,transparent,var(--aksara-placeholder-shine),transparent);
2100
+ animation:aksara-placeholder-wave 1.6s linear infinite
2101
+ }
1835
2102
  .carousel {
1836
2103
  position:relative;
1837
2104
  overflow:hidden
@@ -5041,6 +5308,9 @@ img,svg,video {
5041
5308
  .ring-primary {
5042
5309
  --aksara-ring-color:rgb(var(--aksara-primary) / 1)
5043
5310
  }
5311
+ .accent-primary {
5312
+ accent-color:rgb(var(--aksara-primary) / 1)
5313
+ }
5044
5314
  .bg-secondary\/0 {
5045
5315
  background-color:rgb(var(--aksara-secondary) / 0)
5046
5316
  }
@@ -6571,6 +6841,9 @@ img,svg,video {
6571
6841
  .ring-secondary {
6572
6842
  --aksara-ring-color:rgb(var(--aksara-secondary) / 1)
6573
6843
  }
6844
+ .accent-secondary {
6845
+ accent-color:rgb(var(--aksara-secondary) / 1)
6846
+ }
6574
6847
  .bg-success\/0 {
6575
6848
  background-color:rgb(var(--aksara-success) / 0)
6576
6849
  }
@@ -8101,6 +8374,9 @@ img,svg,video {
8101
8374
  .ring-success {
8102
8375
  --aksara-ring-color:rgb(var(--aksara-success) / 1)
8103
8376
  }
8377
+ .accent-success {
8378
+ accent-color:rgb(var(--aksara-success) / 1)
8379
+ }
8104
8380
  .bg-danger\/0 {
8105
8381
  background-color:rgb(var(--aksara-danger) / 0)
8106
8382
  }
@@ -9631,6 +9907,9 @@ img,svg,video {
9631
9907
  .ring-danger {
9632
9908
  --aksara-ring-color:rgb(var(--aksara-danger) / 1)
9633
9909
  }
9910
+ .accent-danger {
9911
+ accent-color:rgb(var(--aksara-danger) / 1)
9912
+ }
9634
9913
  .bg-warning\/0 {
9635
9914
  background-color:rgb(var(--aksara-warning) / 0)
9636
9915
  }
@@ -11161,6 +11440,9 @@ img,svg,video {
11161
11440
  .ring-warning {
11162
11441
  --aksara-ring-color:rgb(var(--aksara-warning) / 1)
11163
11442
  }
11443
+ .accent-warning {
11444
+ accent-color:rgb(var(--aksara-warning) / 1)
11445
+ }
11164
11446
  .bg-info\/0 {
11165
11447
  background-color:rgb(var(--aksara-info) / 0)
11166
11448
  }
@@ -12691,6 +12973,9 @@ img,svg,video {
12691
12973
  .ring-info {
12692
12974
  --aksara-ring-color:rgb(var(--aksara-info) / 1)
12693
12975
  }
12976
+ .accent-info {
12977
+ accent-color:rgb(var(--aksara-info) / 1)
12978
+ }
12694
12979
  .bg-dark\/0 {
12695
12980
  background-color:rgb(var(--aksara-dark) / 0)
12696
12981
  }
@@ -14221,6 +14506,9 @@ img,svg,video {
14221
14506
  .ring-dark {
14222
14507
  --aksara-ring-color:rgb(var(--aksara-dark) / 1)
14223
14508
  }
14509
+ .accent-dark {
14510
+ accent-color:rgb(var(--aksara-dark) / 1)
14511
+ }
14224
14512
  .bg-light\/0 {
14225
14513
  background-color:rgb(var(--aksara-light) / 0)
14226
14514
  }
@@ -15751,6 +16039,12 @@ img,svg,video {
15751
16039
  .ring-light {
15752
16040
  --aksara-ring-color:rgb(var(--aksara-light) / 1)
15753
16041
  }
16042
+ .accent-light {
16043
+ accent-color:rgb(var(--aksara-light) / 1)
16044
+ }
16045
+ .accent-auto {
16046
+ accent-color:auto
16047
+ }
15754
16048
  .bg-body {
15755
16049
  background-color:var(--aksara-bg-body)
15756
16050
  }
@@ -23222,6 +23516,18 @@ img,svg,video {
23222
23516
  text-overflow:ellipsis;
23223
23517
  white-space:nowrap
23224
23518
  }
23519
+ .text-balance {
23520
+ text-wrap:balance
23521
+ }
23522
+ .text-pretty {
23523
+ text-wrap:pretty
23524
+ }
23525
+ .text-wrap {
23526
+ text-wrap:wrap
23527
+ }
23528
+ .text-nowrap {
23529
+ text-wrap:nowrap
23530
+ }
23225
23531
  .leading-none {
23226
23532
  line-height:1
23227
23533
  }
@@ -23279,6 +23585,18 @@ img,svg,video {
23279
23585
  .font-900 {
23280
23586
  font-weight:900
23281
23587
  }
23588
+ .font-sans {
23589
+ font-family:Ubuntu,Inter,ui-sans-serif,system-ui,-apple-system,sans-serif
23590
+ }
23591
+ .font-serif {
23592
+ font-family:ui-serif,Georgia,Cambria,serif
23593
+ }
23594
+ .font-mono {
23595
+ font-family:var(--docs-font-mono,ui-monospace,SFMono-Regular,Menlo,monospace)
23596
+ }
23597
+ .font-monospace {
23598
+ font-family:var(--docs-font-mono,ui-monospace,SFMono-Regular,Menlo,monospace)
23599
+ }
23282
23600
  .font-thin {
23283
23601
  font-weight:100
23284
23602
  }
@@ -23864,9 +24182,85 @@ img,svg,video {
23864
24182
  .animate-pulse {
23865
24183
  animation:aksara-pulse 1.5s ease-in-out infinite
23866
24184
  }
24185
+ .backdrop-blur-none {
24186
+ backdrop-filter:blur(0)
24187
+ }
24188
+ .backdrop-blur-sm {
24189
+ backdrop-filter:blur(4px)
24190
+ }
24191
+ .backdrop-blur {
24192
+ backdrop-filter:blur(8px)
24193
+ }
24194
+ .backdrop-blur-md {
24195
+ backdrop-filter:blur(12px)
24196
+ }
24197
+ .backdrop-blur-lg {
24198
+ backdrop-filter:blur(16px)
24199
+ }
24200
+ .backdrop-blur-xl {
24201
+ backdrop-filter:blur(24px)
24202
+ }
24203
+ .backdrop-blur-2xl {
24204
+ backdrop-filter:blur(40px)
24205
+ }
24206
+ .backdrop-saturate-50 {
24207
+ backdrop-filter:saturate(50%)
24208
+ }
24209
+ .backdrop-saturate-100 {
24210
+ backdrop-filter:saturate(100%)
24211
+ }
24212
+ .backdrop-saturate-150 {
24213
+ backdrop-filter:saturate(150%)
24214
+ }
24215
+ .backdrop-saturate-200 {
24216
+ backdrop-filter:saturate(200%)
24217
+ }
24218
+ .blur-none {
24219
+ filter:blur(0)
24220
+ }
24221
+ .blur-sm {
24222
+ filter:blur(4px)
24223
+ }
24224
+ .blur {
24225
+ filter:blur(8px)
24226
+ }
24227
+ .blur-md {
24228
+ filter:blur(12px)
24229
+ }
24230
+ .blur-lg {
24231
+ filter:blur(16px)
24232
+ }
24233
+ .blur-xl {
24234
+ filter:blur(24px)
24235
+ }
24236
+ .scrollbar-none {
24237
+ scrollbar-width:none;
24238
+ -ms-overflow-style:none
24239
+ }
24240
+ .scrollbar-thin {
24241
+ scrollbar-width:thin
24242
+ }
24243
+ .container-inline {
24244
+ container-type:inline-size
24245
+ }
24246
+ .container-normal {
24247
+ container-type:normal
24248
+ }
24249
+ .\@container {
24250
+ container-type:inline-size
24251
+ }
24252
+ .scrollbar-none::-webkit-scrollbar {
24253
+ display:none
24254
+ }
24255
+ .duration-75 {
24256
+ transition-duration:75ms
24257
+ }
23867
24258
  .duration-100 {
23868
24259
  transition-duration:100ms
23869
24260
  }
24261
+ .duration-150 {
24262
+ transition-duration:150ms
24263
+ }
23870
24264
  .duration-200 {
23871
24265
  transition-duration:200ms
23872
24266
  }
@@ -33433,39 +33827,6 @@ img,svg,video {
33433
33827
  .hover\:bg-primary\/80:hover {
33434
33828
  background-color:rgb(var(--aksara-primary) / 0.8)
33435
33829
  }
33436
- .translate-y-\[-1px\] {
33437
- transform:translateY(-1px)
33438
- }
33439
- .hover\:translate-y-\[-1px\]:hover {
33440
- transform:translateY(-1px)
33441
- }
33442
- .translate-y-\[-2px\] {
33443
- transform:translateY(-2px)
33444
- }
33445
- .hover\:translate-y-\[-2px\]:hover {
33446
- transform:translateY(-2px)
33447
- }
33448
- .hover\:translate-y-\[-2px\]:hover {
33449
- transform:translateY(-2px)
33450
- }
33451
- .hover\:translate-y-\[-1px\]:hover {
33452
- transform:translateY(-1px)
33453
- }
33454
- .hover\:translate-y-\[-2px\]:hover {
33455
- transform:translateY(-2px)
33456
- }
33457
- .hover\:translate-y-\[-2px\]:hover {
33458
- transform:translateY(-2px)
33459
- }
33460
- .hover\:translate-y-\[-1px\]:hover {
33461
- transform:translateY(-1px)
33462
- }
33463
- .hover\:translate-y-\[-2px\]:hover {
33464
- transform:translateY(-2px)
33465
- }
33466
- .hover\:translate-y-\[-2px\]:hover {
33467
- transform:translateY(-2px)
33468
- }
33469
33830
  .translate-x-\[-50\%\] {
33470
33831
  transform:translateX(-50%)
33471
33832
  }
@@ -33494,6 +33855,9 @@ img,svg,video {
33494
33855
  .mx-\[-1rem\] {
33495
33856
  margin-inline:-1rem !important
33496
33857
  }
33858
+ .translate-y-\[-2px\] {
33859
+ transform:translateY(-2px)
33860
+ }
33497
33861
  .hover\:translate-y-\[-2px\]:hover {
33498
33862
  transform:translateY(-2px)
33499
33863
  }
package/dist/aksara.d.ts CHANGED
@@ -272,6 +272,10 @@ export interface AksaraNamespace {
272
272
  target?: TargetElements;
273
273
  selector?: TargetElements;
274
274
  }), options?: OffcanvasOptions): Offcanvas;
275
+ setTheme(theme: "light" | "dark" | "system"): "light" | "dark" | "system";
276
+ getTheme(): "light" | "dark" | "system";
277
+ initTheme(): "light" | "dark" | "system";
278
+ clipboard(target: string | HTMLElement, text?: string): Promise<boolean>;
275
279
  init(root?: ParentNode | Document | HTMLElement): AksaraNamespace;
276
280
  destroy(): AksaraNamespace;
277
281
  }