funuicss 3.8.6 → 3.8.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.
- package/css/fun.css +393 -89
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/package.json +1 -1
- package/ui/accordion/Accordion.js +3 -1
- package/ui/button/Button.d.ts +2 -1
- package/ui/button/Button.js +8 -7
- package/ui/div/Div.d.ts +3 -1
- package/ui/div/Div.js +2 -2
- package/ui/form/Form.d.ts +68 -0
- package/ui/form/Form.js +658 -0
- package/ui/input/FileUpload.js +370 -21
- package/ui/input/Input.d.ts +35 -1
- package/ui/input/Input.js +1041 -41
- package/ui/products/CartModal.d.ts +0 -2
- package/ui/products/CartModal.js +59 -39
- package/ui/products/ProductCard.js +9 -22
- package/ui/products/ProductDetail.js +111 -80
- package/ui/products/ProductLoader.d.ts +3 -0
- package/ui/products/ProductLoader.js +22 -0
- package/ui/products/Store.d.ts +32 -7
- package/ui/products/Store.js +393 -94
- package/ui/progress/Bar.js +2 -2
- package/ui/theme/theme.d.ts +4 -0
- package/ui/theme/theme.js +336 -133
package/css/fun.css
CHANGED
|
@@ -1690,6 +1690,7 @@ border-radius: var(--borderRadius);
|
|
|
1690
1690
|
}
|
|
1691
1691
|
|
|
1692
1692
|
|
|
1693
|
+
|
|
1693
1694
|
.fixed_top_navbar , .fixedTop {
|
|
1694
1695
|
position: fixed;
|
|
1695
1696
|
top: 0;
|
|
@@ -2562,27 +2563,17 @@ select:focus {
|
|
|
2562
2563
|
align-items: center;
|
|
2563
2564
|
gap: 0.375rem;
|
|
2564
2565
|
font-size: var(--smallFont);
|
|
2565
|
-
margin-top: 0.25rem;
|
|
2566
|
-
padding-left: 0.25rem;
|
|
2567
2566
|
color: var(--text-color);
|
|
2568
2567
|
opacity: 0.7;
|
|
2569
2568
|
animation: slideDown 0.2s ease;
|
|
2570
2569
|
}
|
|
2571
2570
|
|
|
2572
|
-
|
|
2573
|
-
from {
|
|
2574
|
-
opacity: 0;
|
|
2575
|
-
transform: translateY(-0.25rem);
|
|
2576
|
-
}
|
|
2577
|
-
to {
|
|
2578
|
-
opacity: 0.7;
|
|
2579
|
-
transform: translateY(0);
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2571
|
+
|
|
2582
2572
|
|
|
2583
2573
|
.helper-icon {
|
|
2584
2574
|
display: inline-flex;
|
|
2585
2575
|
align-items: center;
|
|
2576
|
+
line-height: 0;
|
|
2586
2577
|
}
|
|
2587
2578
|
|
|
2588
2579
|
/* Status helper text colors */
|
|
@@ -4452,8 +4443,10 @@ opacity: 1;
|
|
|
4452
4443
|
min-height: 100vh;
|
|
4453
4444
|
transition: 0.5s;
|
|
4454
4445
|
overflow: auto;
|
|
4455
|
-
backdrop-filter: blur(
|
|
4446
|
+
backdrop-filter: blur(9px);
|
|
4456
4447
|
/* The x overflow is hidden form smooth slide transitions */
|
|
4448
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
4449
|
+
|
|
4457
4450
|
overflow-x: hidden;
|
|
4458
4451
|
}
|
|
4459
4452
|
.modal.top-right{
|
|
@@ -4487,11 +4480,6 @@ opacity: 1;
|
|
|
4487
4480
|
align-items: flex-end !important;
|
|
4488
4481
|
}
|
|
4489
4482
|
|
|
4490
|
-
.modal.backdrop {
|
|
4491
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
4492
|
-
}
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
4483
|
|
|
4496
4484
|
.modal-title {
|
|
4497
4485
|
height: fit-content;
|
|
@@ -4503,12 +4491,11 @@ opacity: 1;
|
|
|
4503
4491
|
gap: 1rem;
|
|
4504
4492
|
}
|
|
4505
4493
|
.modal-content {
|
|
4506
|
-
background: var(--
|
|
4494
|
+
background: var(--page-bg);
|
|
4507
4495
|
backdrop-filter: blur(20rem) ;
|
|
4508
4496
|
max-width: 700px;
|
|
4509
4497
|
padding: 1rem 1.5rem;
|
|
4510
4498
|
border-radius: 0.5rem;
|
|
4511
|
-
box-shadow: var(--card);
|
|
4512
4499
|
height: fit-content ;
|
|
4513
4500
|
|
|
4514
4501
|
}
|
|
@@ -5561,17 +5548,43 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
5561
5548
|
|
|
5562
5549
|
|
|
5563
5550
|
/* store */
|
|
5551
|
+
/* Hero Section */
|
|
5552
|
+
.store-hero-section {
|
|
5553
|
+
position: relative;
|
|
5554
|
+
width: 100%;
|
|
5555
|
+
background-size: cover;
|
|
5556
|
+
background-position: center;
|
|
5557
|
+
background-repeat: no-repeat;
|
|
5558
|
+
display: flex;
|
|
5559
|
+
align-items: center;
|
|
5560
|
+
justify-content: center;
|
|
5561
|
+
overflow: hidden;
|
|
5562
|
+
}
|
|
5564
5563
|
|
|
5565
|
-
.
|
|
5566
|
-
|
|
5567
|
-
|
|
5564
|
+
.hero-overlay {
|
|
5565
|
+
position: absolute;
|
|
5566
|
+
top: 0;
|
|
5567
|
+
left: 0;
|
|
5568
|
+
width: 100%;
|
|
5569
|
+
height: 100%;
|
|
5570
|
+
z-index: 1;
|
|
5571
|
+
transition: opacity 0.3s ease;
|
|
5572
|
+
}
|
|
5573
|
+
|
|
5574
|
+
.hero-content {
|
|
5575
|
+
position: relative;
|
|
5576
|
+
z-index: 2;
|
|
5577
|
+
padding: 2rem;
|
|
5578
|
+
width: 100%;
|
|
5568
5579
|
}
|
|
5569
5580
|
|
|
5570
|
-
|
|
5581
|
+
|
|
5582
|
+
/* Products Grid */
|
|
5571
5583
|
.funui_products_grid {
|
|
5572
5584
|
display: grid;
|
|
5573
5585
|
grid-gap: 2rem;
|
|
5574
|
-
padding:
|
|
5586
|
+
padding: 0;
|
|
5587
|
+
width: 100%;
|
|
5575
5588
|
}
|
|
5576
5589
|
|
|
5577
5590
|
/* For devices smaller than 640px */
|
|
@@ -5600,16 +5613,6 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
5600
5613
|
}
|
|
5601
5614
|
}
|
|
5602
5615
|
|
|
5603
|
-
/* Product card */
|
|
5604
|
-
.funui_products_product_card {
|
|
5605
|
-
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
5606
|
-
}
|
|
5607
|
-
|
|
5608
|
-
.funui_products_product_card:hover {
|
|
5609
|
-
transform: translateY(-4px);
|
|
5610
|
-
}
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
5616
|
/* Product Card Container */
|
|
5614
5617
|
.funui_store_product-card {
|
|
5615
5618
|
overflow: hidden;
|
|
@@ -5620,13 +5623,14 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
5620
5623
|
}
|
|
5621
5624
|
|
|
5622
5625
|
|
|
5623
|
-
|
|
5626
|
+
|
|
5627
|
+
/* Image Container */
|
|
5624
5628
|
.funui_store_image-container {
|
|
5625
5629
|
position: relative;
|
|
5626
5630
|
width: 100%;
|
|
5627
5631
|
padding-top: 100%; /* Creates 1:1 aspect ratio square */
|
|
5628
5632
|
overflow: hidden;
|
|
5629
|
-
background-color: var(lighter);
|
|
5633
|
+
background-color: var(--lighter, #f8fafc);
|
|
5630
5634
|
}
|
|
5631
5635
|
|
|
5632
5636
|
.funui_store_image-container img {
|
|
@@ -5670,7 +5674,8 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
5670
5674
|
.funui_store_badge {
|
|
5671
5675
|
padding: 4px 10px;
|
|
5672
5676
|
border-radius: 12px;
|
|
5673
|
-
font-size:
|
|
5677
|
+
font-size: 0.75rem;
|
|
5678
|
+
font-weight: 600;
|
|
5674
5679
|
text-transform: uppercase;
|
|
5675
5680
|
letter-spacing: 0.5px;
|
|
5676
5681
|
color: white;
|
|
@@ -5679,118 +5684,417 @@ background-color: rgba(0, 0, 0, 0.2);
|
|
|
5679
5684
|
}
|
|
5680
5685
|
|
|
5681
5686
|
.funui_store_badge.new {
|
|
5682
|
-
background-color: var(--success);
|
|
5687
|
+
background-color: var(--success, #10b981);
|
|
5683
5688
|
}
|
|
5684
5689
|
|
|
5685
5690
|
.funui_store_badge.sale {
|
|
5686
|
-
background-color: #ef4444;
|
|
5691
|
+
background-color: #ef4444;
|
|
5687
5692
|
}
|
|
5688
5693
|
|
|
5689
5694
|
.funui_store_badge.discount {
|
|
5690
|
-
background-color: #3b82f6;
|
|
5695
|
+
background-color: #3b82f6;
|
|
5691
5696
|
}
|
|
5692
5697
|
|
|
5693
|
-
/* Product Info */
|
|
5694
|
-
.funui_store_product-info {
|
|
5695
|
-
flex: 1;
|
|
5696
|
-
display: flex;
|
|
5697
|
-
flex-direction: column;
|
|
5698
|
-
}
|
|
5699
|
-
|
|
5700
|
-
.funui_store_product-category {
|
|
5701
|
-
font-size: 12px;
|
|
5702
|
-
text-transform: uppercase;
|
|
5703
|
-
letter-spacing: 0.5px;
|
|
5704
|
-
opacity: 0.8;
|
|
5705
|
-
}
|
|
5706
5698
|
|
|
5707
|
-
.funui_store_product-name {
|
|
5708
|
-
display: -webkit-box;
|
|
5709
|
-
-webkit-line-clamp: 2;
|
|
5710
|
-
-webkit-box-orient: vertical;
|
|
5711
|
-
overflow: hidden;
|
|
5712
|
-
}
|
|
5713
5699
|
|
|
5714
5700
|
/* Prices */
|
|
5715
5701
|
.funui_store_price-container {
|
|
5716
5702
|
display: flex;
|
|
5717
5703
|
align-items: center;
|
|
5718
5704
|
gap: 8px;
|
|
5719
|
-
margin-bottom:
|
|
5705
|
+
margin-bottom: 0.75rem;
|
|
5706
|
+
}
|
|
5707
|
+
|
|
5708
|
+
.funui_store_price {
|
|
5709
|
+
font-size: 1.25rem;
|
|
5710
|
+
font-weight: 700;
|
|
5711
|
+
color: var(--text, #1e293b);
|
|
5720
5712
|
}
|
|
5721
5713
|
|
|
5714
|
+
.funui_store_compare-price {
|
|
5715
|
+
font-size: 0.875rem;
|
|
5716
|
+
color: var(--text-light, #64748b);
|
|
5717
|
+
text-decoration: line-through;
|
|
5718
|
+
}
|
|
5719
|
+
|
|
5720
|
+
.funui_store_discount-percent {
|
|
5721
|
+
font-size: 0.875rem;
|
|
5722
|
+
font-weight: 600;
|
|
5723
|
+
color: var(--success, #10b981);
|
|
5724
|
+
}
|
|
5725
|
+
|
|
5726
|
+
/* Stock Info */
|
|
5722
5727
|
.funui_store_stock-info.out {
|
|
5723
|
-
color: #
|
|
5728
|
+
color: #dc2626;
|
|
5724
5729
|
}
|
|
5725
5730
|
|
|
5726
5731
|
.funui_store_stock-info.low {
|
|
5727
|
-
color: #
|
|
5732
|
+
color: #d97706;
|
|
5728
5733
|
}
|
|
5729
5734
|
|
|
5730
5735
|
.funui_store_stock-info.in {
|
|
5731
|
-
color: #
|
|
5736
|
+
color: #059669;
|
|
5732
5737
|
}
|
|
5733
5738
|
|
|
5734
5739
|
|
|
5735
5740
|
|
|
5736
|
-
|
|
5737
|
-
/* Cart container */
|
|
5741
|
+
/* Cart Icon */
|
|
5738
5742
|
.cart-icon {
|
|
5739
5743
|
position: relative;
|
|
5740
5744
|
background: none;
|
|
5741
5745
|
border: none;
|
|
5742
5746
|
cursor: pointer;
|
|
5743
|
-
padding:
|
|
5747
|
+
padding: 0.75rem;
|
|
5748
|
+
border-radius: 50%;
|
|
5749
|
+
transition: all 0.2s ease;
|
|
5744
5750
|
display: flex;
|
|
5745
5751
|
align-items: center;
|
|
5746
5752
|
justify-content: center;
|
|
5747
5753
|
}
|
|
5748
5754
|
|
|
5749
|
-
|
|
5755
|
+
.cart-icon:hover {
|
|
5756
|
+
color: var(--primary) !important;
|
|
5757
|
+
}
|
|
5758
|
+
|
|
5759
|
+
.cart-icon:disabled {
|
|
5760
|
+
opacity: 0.5;
|
|
5761
|
+
cursor: not-allowed;
|
|
5762
|
+
}
|
|
5763
|
+
|
|
5750
5764
|
.cart-badge {
|
|
5751
5765
|
position: absolute;
|
|
5752
5766
|
top: 0;
|
|
5753
5767
|
right: 0;
|
|
5754
|
-
min-width:
|
|
5755
|
-
height:
|
|
5756
|
-
|
|
5757
|
-
color: white;
|
|
5758
|
-
border-radius: 9px;
|
|
5759
|
-
font-size: 10px;
|
|
5768
|
+
min-width: 33px;
|
|
5769
|
+
height: 33px;
|
|
5770
|
+
border-radius: 11px;
|
|
5760
5771
|
display: flex;
|
|
5761
5772
|
align-items: center;
|
|
5762
5773
|
justify-content: center;
|
|
5774
|
+
font-size: 0.75rem;
|
|
5775
|
+
font-weight: 700;
|
|
5776
|
+
color: white;
|
|
5763
5777
|
transform: translate(30%, -30%);
|
|
5764
5778
|
}
|
|
5765
5779
|
|
|
5766
|
-
/*
|
|
5767
|
-
.
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5780
|
+
/* Search and Header */
|
|
5781
|
+
.store-header {
|
|
5782
|
+
background: white;
|
|
5783
|
+
padding: 1.5rem;
|
|
5784
|
+
border-radius: 12px;
|
|
5785
|
+
margin-bottom: 2rem;
|
|
5786
|
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
|
|
5787
|
+
border: 1px solid var(--border-color, #e2e8f0);
|
|
5771
5788
|
}
|
|
5772
5789
|
|
|
5773
|
-
.
|
|
5774
|
-
|
|
5775
|
-
height: 100%;
|
|
5776
|
-
object-fit: cover;
|
|
5777
|
-
transition: transform 0.3s ease;
|
|
5790
|
+
.store-search-container {
|
|
5791
|
+
margin-bottom: 1.5rem;
|
|
5778
5792
|
}
|
|
5779
5793
|
|
|
5780
|
-
|
|
5781
|
-
|
|
5794
|
+
|
|
5795
|
+
/* Filter Options */
|
|
5796
|
+
.filter-options {
|
|
5797
|
+
display: flex;
|
|
5798
|
+
flex-direction: column;
|
|
5782
5799
|
}
|
|
5783
5800
|
|
|
5784
|
-
.
|
|
5801
|
+
.filter-option {
|
|
5802
|
+
cursor: pointer;
|
|
5803
|
+
transition: all 0.2s ease;
|
|
5804
|
+
font-size: var(--smallerFont);
|
|
5805
|
+
padding: 0.3rem;
|
|
5806
|
+
border-radius: 0.3rem;
|
|
5807
|
+
}
|
|
5808
|
+
|
|
5809
|
+
.filter-option:hover {
|
|
5810
|
+
background-color: var(--lighter);
|
|
5811
|
+
color: var(--primary);
|
|
5812
|
+
}
|
|
5813
|
+
|
|
5814
|
+
/* Mobile Filters Button */
|
|
5815
|
+
.mobile-filters-button {
|
|
5785
5816
|
width: 100%;
|
|
5786
|
-
|
|
5817
|
+
margin-bottom: 1.5rem;
|
|
5818
|
+
}
|
|
5819
|
+
|
|
5820
|
+
|
|
5821
|
+
|
|
5822
|
+
.pagination-numbers {
|
|
5823
|
+
display: flex;
|
|
5824
|
+
gap: 0.25rem;
|
|
5825
|
+
align-items: center;
|
|
5826
|
+
}
|
|
5827
|
+
|
|
5828
|
+
/* Accordion Custom Styles */
|
|
5829
|
+
.store-accordion-item {
|
|
5830
|
+
border: 1px solid var(--border-color, #e2e8f0);
|
|
5831
|
+
border-radius: 8px;
|
|
5832
|
+
margin-bottom: 0.75rem;
|
|
5833
|
+
overflow: hidden;
|
|
5834
|
+
background: white;
|
|
5835
|
+
}
|
|
5836
|
+
|
|
5837
|
+
.store-accordion-header {
|
|
5838
|
+
padding: 1rem;
|
|
5839
|
+
cursor: pointer;
|
|
5840
|
+
display: flex;
|
|
5841
|
+
align-items: center;
|
|
5842
|
+
justify-content: space-between;
|
|
5843
|
+
transition: background-color 0.2s ease;
|
|
5844
|
+
font-weight: 600;
|
|
5845
|
+
color: var(--text, #1e293b);
|
|
5846
|
+
}
|
|
5847
|
+
|
|
5848
|
+
.store-accordion-header:hover {
|
|
5849
|
+
background-color: var(--lighter, #f8fafc);
|
|
5850
|
+
}
|
|
5851
|
+
|
|
5852
|
+
.store-accordion-content {
|
|
5853
|
+
padding: 0;
|
|
5854
|
+
max-height: 0;
|
|
5855
|
+
overflow: hidden;
|
|
5856
|
+
transition: all 0.3s ease;
|
|
5857
|
+
}
|
|
5858
|
+
|
|
5859
|
+
.store-accordion-content.open {
|
|
5860
|
+
padding: 1rem;
|
|
5861
|
+
max-height: 500px;
|
|
5862
|
+
}
|
|
5863
|
+
|
|
5864
|
+
/* Scrollbar styling for filters sidebar */
|
|
5865
|
+
.store-filters-sidebar::-webkit-scrollbar {
|
|
5866
|
+
width: 6px;
|
|
5867
|
+
}
|
|
5868
|
+
|
|
5869
|
+
.store-filters-sidebar::-webkit-scrollbar-track {
|
|
5870
|
+
background: var(--lighter, #f1f5f9);
|
|
5871
|
+
border-radius: 3px;
|
|
5872
|
+
}
|
|
5873
|
+
|
|
5874
|
+
.store-filters-sidebar::-webkit-scrollbar-thumb {
|
|
5875
|
+
background: var(--light, #cbd5e1);
|
|
5876
|
+
border-radius: 3px;
|
|
5877
|
+
}
|
|
5878
|
+
|
|
5879
|
+
.store-filters-sidebar::-webkit-scrollbar-thumb:hover {
|
|
5880
|
+
background: var(--text-light, #94a3b8);
|
|
5881
|
+
}
|
|
5882
|
+
|
|
5883
|
+
/* Responsive Design */
|
|
5884
|
+
@media (max-width: 1024px) {
|
|
5885
|
+
.store-layout {
|
|
5886
|
+
gap: 1.5rem;
|
|
5887
|
+
}
|
|
5888
|
+
|
|
5889
|
+
.store-filters-sidebar {
|
|
5890
|
+
width: 250px;
|
|
5891
|
+
min-width: 250px;
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
.hero-title {
|
|
5895
|
+
font-size: 2.75rem;
|
|
5896
|
+
}
|
|
5897
|
+
|
|
5898
|
+
.hero-description {
|
|
5899
|
+
font-size: 1.125rem;
|
|
5900
|
+
}
|
|
5901
|
+
}
|
|
5902
|
+
|
|
5903
|
+
@media (max-width: 768px) {
|
|
5904
|
+
.store-hero-section {
|
|
5905
|
+
height: 50vh;
|
|
5906
|
+
min-height: 400px;
|
|
5907
|
+
}
|
|
5908
|
+
|
|
5909
|
+
.hero-title {
|
|
5910
|
+
font-size: 2.25rem;
|
|
5911
|
+
}
|
|
5912
|
+
|
|
5913
|
+
.hero-description {
|
|
5914
|
+
font-size: 1rem;
|
|
5915
|
+
}
|
|
5916
|
+
|
|
5917
|
+
.store-main-content {
|
|
5918
|
+
padding: 1.5rem 0;
|
|
5919
|
+
}
|
|
5920
|
+
|
|
5921
|
+
.store-layout {
|
|
5922
|
+
flex-direction: column;
|
|
5923
|
+
gap: 1.5rem;
|
|
5924
|
+
}
|
|
5925
|
+
|
|
5926
|
+
.store-filters-sidebar {
|
|
5927
|
+
width: 100%;
|
|
5928
|
+
min-width: 100%;
|
|
5929
|
+
position: static;
|
|
5930
|
+
max-height: none;
|
|
5931
|
+
margin-right: 0;
|
|
5932
|
+
}
|
|
5933
|
+
|
|
5934
|
+
.store-products-area {
|
|
5935
|
+
width: 100%;
|
|
5936
|
+
}
|
|
5937
|
+
|
|
5938
|
+
.funui_products_grid {
|
|
5939
|
+
gap: 1rem;
|
|
5940
|
+
}
|
|
5941
|
+
}
|
|
5942
|
+
|
|
5943
|
+
@media (max-width: 640px) {
|
|
5944
|
+
.store-hero-section {
|
|
5945
|
+
height: 40vh;
|
|
5946
|
+
min-height: 350px;
|
|
5947
|
+
}
|
|
5948
|
+
|
|
5949
|
+
.hero-title {
|
|
5950
|
+
font-size: 1.875rem;
|
|
5951
|
+
}
|
|
5952
|
+
|
|
5953
|
+
.hero-description {
|
|
5954
|
+
font-size: 0.9375rem;
|
|
5955
|
+
}
|
|
5956
|
+
|
|
5957
|
+
.store-main-container {
|
|
5958
|
+
padding: 0 0.75rem;
|
|
5959
|
+
}
|
|
5960
|
+
|
|
5961
|
+
.store-main-content {
|
|
5962
|
+
padding: 1rem 0;
|
|
5963
|
+
}
|
|
5964
|
+
|
|
5965
|
+
.funui_store_product-info {
|
|
5966
|
+
padding: 1rem;
|
|
5967
|
+
}
|
|
5968
|
+
|
|
5969
|
+
.funui_store_product-name {
|
|
5970
|
+
font-size: 0.9375rem;
|
|
5971
|
+
}
|
|
5972
|
+
|
|
5973
|
+
.funui_store_price {
|
|
5974
|
+
font-size: 1.125rem;
|
|
5975
|
+
}
|
|
5976
|
+
}
|
|
5977
|
+
|
|
5978
|
+
@media (max-width: 480px) {
|
|
5979
|
+
.store-hero-section {
|
|
5980
|
+
min-height: 300px;
|
|
5981
|
+
}
|
|
5982
|
+
|
|
5983
|
+
.hero-title {
|
|
5984
|
+
font-size: 1.5rem;
|
|
5985
|
+
}
|
|
5986
|
+
|
|
5987
|
+
.hero-content {
|
|
5988
|
+
padding: 1.5rem;
|
|
5989
|
+
}
|
|
5990
|
+
|
|
5991
|
+
.funui_products_grid {
|
|
5992
|
+
gap: 0.75rem;
|
|
5993
|
+
}
|
|
5994
|
+
|
|
5995
|
+
.funui_store_product-actions {
|
|
5996
|
+
flex-direction: column;
|
|
5997
|
+
gap: 0.5rem;
|
|
5998
|
+
}
|
|
5999
|
+
}
|
|
6000
|
+
|
|
6001
|
+
|
|
6002
|
+
/* Spinner Animation */
|
|
6003
|
+
.spin {
|
|
6004
|
+
animation: spin 1s linear infinite;
|
|
6005
|
+
}
|
|
6006
|
+
|
|
6007
|
+
@keyframes spin {
|
|
6008
|
+
from {
|
|
6009
|
+
transform: rotate(0deg);
|
|
6010
|
+
}
|
|
6011
|
+
to {
|
|
6012
|
+
transform: rotate(360deg);
|
|
6013
|
+
}
|
|
6014
|
+
}
|
|
6015
|
+
|
|
6016
|
+
.flex-center {
|
|
5787
6017
|
display: flex;
|
|
5788
6018
|
align-items: center;
|
|
5789
6019
|
justify-content: center;
|
|
5790
|
-
background-color: var(--lighter);
|
|
5791
6020
|
}
|
|
5792
6021
|
|
|
5793
6022
|
|
|
6023
|
+
|
|
6024
|
+
|
|
6025
|
+
/* Spinner Animation */
|
|
6026
|
+
.spin {
|
|
6027
|
+
animation: spin 1s linear infinite;
|
|
6028
|
+
}
|
|
6029
|
+
|
|
6030
|
+
@keyframes spin {
|
|
6031
|
+
from {
|
|
6032
|
+
transform: rotate(0deg);
|
|
6033
|
+
}
|
|
6034
|
+
to {
|
|
6035
|
+
transform: rotate(360deg);
|
|
6036
|
+
}
|
|
6037
|
+
}
|
|
6038
|
+
|
|
6039
|
+
|
|
6040
|
+
|
|
6041
|
+
/* Responsive Design */
|
|
6042
|
+
@media (max-width: 768px) {
|
|
6043
|
+
.store-hero-section {
|
|
6044
|
+
height: 40vh;
|
|
6045
|
+
min-height: 300px;
|
|
6046
|
+
}
|
|
6047
|
+
|
|
6048
|
+
.hero-title {
|
|
6049
|
+
font-size: 2rem;
|
|
6050
|
+
}
|
|
6051
|
+
|
|
6052
|
+
.hero-description {
|
|
6053
|
+
font-size: 1rem;
|
|
6054
|
+
}
|
|
6055
|
+
|
|
6056
|
+
.funui_products_grid {
|
|
6057
|
+
gap: 1rem;
|
|
6058
|
+
}
|
|
6059
|
+
|
|
6060
|
+
.store-main-content {
|
|
6061
|
+
padding: 1rem;
|
|
6062
|
+
}
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6065
|
+
@media (max-width: 480px) {
|
|
6066
|
+
.hero-title {
|
|
6067
|
+
font-size: 1.75rem;
|
|
6068
|
+
}
|
|
6069
|
+
|
|
6070
|
+
.hero-description {
|
|
6071
|
+
font-size: 0.9rem;
|
|
6072
|
+
}
|
|
6073
|
+
|
|
6074
|
+
.store-hero-section {
|
|
6075
|
+
min-height: 250px;
|
|
6076
|
+
}
|
|
6077
|
+
}
|
|
6078
|
+
|
|
6079
|
+
|
|
6080
|
+
/* Custom scrollbar for filters sidebar */
|
|
6081
|
+
.store-filters-sidebar::-webkit-scrollbar {
|
|
6082
|
+
width: 6px;
|
|
6083
|
+
}
|
|
6084
|
+
|
|
6085
|
+
.store-filters-sidebar::-webkit-scrollbar-track {
|
|
6086
|
+
background: #f1f1f1;
|
|
6087
|
+
border-radius: 3px;
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
.store-filters-sidebar::-webkit-scrollbar-thumb {
|
|
6091
|
+
background: #c1c1c1;
|
|
6092
|
+
border-radius: 3px;
|
|
6093
|
+
}
|
|
6094
|
+
|
|
6095
|
+
.store-filters-sidebar::-webkit-scrollbar-thumb:hover {
|
|
6096
|
+
background: #a1a1a1;
|
|
6097
|
+
}
|
|
5794
6098
|
|
|
5795
6099
|
/* components */
|
|
5796
6100
|
.image-scaler-container {
|
package/index.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export { default as Footer } from "./ui/footer/Footer";
|
|
|
60
60
|
export { default as Feature } from "./ui/feature/Feature";
|
|
61
61
|
export { default as Store } from "./ui/products/Store";
|
|
62
62
|
export { default as Empty } from "./ui/empty/Empty";
|
|
63
|
+
export { default as Form } from "./ui/form/Form";
|
|
63
64
|
export { default as Cookie } from "./js/Cookie";
|
|
64
65
|
export { useVariable, useAsset, useAssetType, useAssetValue, useAssets, useVariables, } from "./ui/theme/theme";
|
|
65
66
|
export { FunGet } from "./js/Fun";
|
package/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.View = exports.ScrollInView = exports.Accordion = exports.Flex = exports.RichText = exports.Carousel = exports.Video = exports.SideBar = exports.ChartPie = exports.Lines = exports.Bars = exports.FullCenteredPage = exports.CircleGroup = exports.Circle = exports.Hr = exports.Section = exports.RowFlex = exports.Tip = exports.AppBar = exports.ToolTip = exports.Notification = exports.FunLoader = exports.ProgressBar = exports.DropMenu = exports.DropItem = exports.Dropdown = exports.DropDown = exports.DropUp = exports.UnAuthorized = exports.NotFound = exports.StepLine = exports.StepHeader = exports.Step = exports.StepContainer = exports.Div = exports.Text = exports.List = exports.Table = exports.Modal = exports.Loader = exports.SearchableInput = exports.Input = exports.Col = exports.Grid = exports.Container = exports.BreadCrumb = exports.Card = exports.Button = exports.ThemeProvider = exports.Alert = void 0;
|
|
7
|
-
exports.GoogleAnalytics = exports.FunGet = exports.useVariables = exports.useAssets = exports.useAssetValue = exports.useAssetType = exports.useAsset = exports.useVariable = exports.Cookie = exports.Empty = exports.Store = exports.Feature = exports.Footer = exports.FileUpload = exports.Select = exports.ScrollToTop = exports.FlexItem = exports.Slider = exports.Vista = exports.Calendar = exports.DatePicker = void 0;
|
|
7
|
+
exports.GoogleAnalytics = exports.FunGet = exports.useVariables = exports.useAssets = exports.useAssetValue = exports.useAssetType = exports.useAsset = exports.useVariable = exports.Cookie = exports.Form = exports.Empty = exports.Store = exports.Feature = exports.Footer = exports.FileUpload = exports.Select = exports.ScrollToTop = exports.FlexItem = exports.Slider = exports.Vista = exports.Calendar = exports.DatePicker = void 0;
|
|
8
8
|
var Alert_1 = require("./ui/alert/Alert");
|
|
9
9
|
Object.defineProperty(exports, "Alert", { enumerable: true, get: function () { return __importDefault(Alert_1).default; } });
|
|
10
10
|
var theme_1 = require("./ui/theme/theme");
|
|
@@ -129,6 +129,8 @@ var Store_1 = require("./ui/products/Store");
|
|
|
129
129
|
Object.defineProperty(exports, "Store", { enumerable: true, get: function () { return __importDefault(Store_1).default; } });
|
|
130
130
|
var Empty_1 = require("./ui/empty/Empty");
|
|
131
131
|
Object.defineProperty(exports, "Empty", { enumerable: true, get: function () { return __importDefault(Empty_1).default; } });
|
|
132
|
+
var Form_1 = require("./ui/form/Form");
|
|
133
|
+
Object.defineProperty(exports, "Form", { enumerable: true, get: function () { return __importDefault(Form_1).default; } });
|
|
132
134
|
// js
|
|
133
135
|
var Cookie_1 = require("./js/Cookie");
|
|
134
136
|
Object.defineProperty(exports, "Cookie", { enumerable: true, get: function () { return __importDefault(Cookie_1).default; } });
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.8.
|
|
2
|
+
"version": "3.8.8",
|
|
3
3
|
"name": "funuicss",
|
|
4
4
|
"description": "React and Next.js component UI Library for creating Easy and good looking websites with fewer lines of code. Elevate your web development experience with our cutting-edge React/Next.js component UI Library. Craft stunning websites effortlessly, boasting both seamless functionality and aesthetic appeal—all achieved with minimal lines of code. Unleash the power of simplicity and style in your projects!",
|
|
5
5
|
"main": "index.js",
|
|
@@ -259,7 +259,7 @@ var AccordionItem = function (_a) {
|
|
|
259
259
|
};
|
|
260
260
|
return (react_1.default.createElement("div", { className: getContainerClasses(), style: {
|
|
261
261
|
marginBottom: getSpacingValue(globalProps.gap) || '0.5rem',
|
|
262
|
-
overflow: '
|
|
262
|
+
overflow: 'visible', // Add overflow hidden to prevent content overflow
|
|
263
263
|
} },
|
|
264
264
|
react_1.default.createElement("div", { className: "accordion-header ".concat(titleClass || ''), onClick: !disabled ? function () { return onToggle(index); } : undefined, role: "button", tabIndex: disabled ? -1 : 0, "aria-expanded": isOpen, onKeyDown: function (e) {
|
|
265
265
|
if (!disabled && (e.key === 'Enter' || e.key === ' ')) {
|
|
@@ -283,6 +283,8 @@ var AccordionItem = function (_a) {
|
|
|
283
283
|
react_1.default.createElement("div", { className: "accordion-content ".concat(contentClass || '', " ").concat(isOpen ? 'open' : ''), style: {
|
|
284
284
|
maxHeight: isOpen ? '10000px' : '0',
|
|
285
285
|
overflow: 'visible',
|
|
286
|
+
opacity: isOpen ? 1 : 0,
|
|
287
|
+
visibility: isOpen ? 'visible' : 'hidden',
|
|
286
288
|
transition: "max-height ".concat(animationDuration, "ms ").concat(animationEasing),
|
|
287
289
|
padding: isOpen ? getSpacingValue(globalProps.padding) || '0.5rem 0' : '0',
|
|
288
290
|
backgroundColor: globalProps.contentBg ? getBgClass(globalProps.contentBg) : '',
|
package/ui/button/Button.d.ts
CHANGED
|
@@ -37,11 +37,12 @@ interface ButtonProps {
|
|
|
37
37
|
isLoading?: boolean;
|
|
38
38
|
variant?: string;
|
|
39
39
|
url?: string;
|
|
40
|
+
type?: 'button' | 'submit' | 'reset';
|
|
40
41
|
disabled?: boolean;
|
|
41
42
|
status?: 'success' | 'warning' | 'info' | 'error';
|
|
42
43
|
children?: React.ReactNode;
|
|
43
44
|
style?: React.CSSProperties;
|
|
44
45
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
45
46
|
}
|
|
46
|
-
export default function Button({ variant, color, bg, funcss, startIcon, endIcon, stringPrefix, stringSuffix, prefix, suffix, iconSize, iconLineHeight, text, rounded, raised, height, width, float, hoverUp, fullWidth, outlined, small, hoverless, smaller, big, bigger, jumbo, flat, hoverNone, fillAnimation, fillDirection, fillTextColor, outlineSize, isLoading, status, bold, children, style, url, onClick, disabled, ...rest }: ButtonProps): React.JSX.Element;
|
|
47
|
+
export default function Button({ variant, color, bg, funcss, startIcon, endIcon, stringPrefix, stringSuffix, prefix, suffix, iconSize, iconLineHeight, text, rounded, raised, height, width, float, hoverUp, fullWidth, outlined, small, hoverless, smaller, big, bigger, jumbo, flat, hoverNone, fillAnimation, fillDirection, fillTextColor, type, outlineSize, isLoading, status, bold, children, style, url, onClick, disabled, ...rest }: ButtonProps): React.JSX.Element;
|
|
47
48
|
export {};
|