@khipu/design-system 0.2.0-alpha.3 → 0.2.0-alpha.4

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.
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * AUTO-GENERATED FILE - DO NOT EDIT MANUALLY
13
13
  * Source: design-system/src/tokens/tokens.json
14
- * Generated: 2026-05-13T19:14:37.483Z
14
+ * Generated: 2026-05-14T19:34:35.577Z
15
15
  *
16
16
  * To regenerate:
17
17
  * cd design-system && npm run tokens:generate
@@ -147,9 +147,9 @@
147
147
  --kds-letter-spacing-widest: 1px;
148
148
 
149
149
  /* Button typography */
150
- --kds-typography-button-font-size: 0.9375rem;
150
+ --kds-typography-button-font-size: 0.875rem;
151
151
  --kds-typography-button-font-weight: 500;
152
- --kds-typography-button-line-height: 26px;
152
+ --kds-typography-button-line-height: 1.5;
153
153
  --kds-typography-button-letter-spacing: 0.46px;
154
154
 
155
155
  /* Typography margins */
@@ -199,10 +199,10 @@
199
199
  --kds-spacing-input-padding-y: 16px;
200
200
  --kds-spacing-input-padding-x: 12px;
201
201
  --kds-spacing-input-padding: 16px 12px;
202
- --kds-spacing-button-padding-y: 8px;
203
- --kds-spacing-button-padding-x: 22px;
204
- --kds-spacing-button-padding: 8px 22px;
205
- --kds-spacing-button-min-height: 50px;
202
+ --kds-spacing-button-padding-y: 0;
203
+ --kds-spacing-button-padding-x: 16px;
204
+ --kds-spacing-button-padding: 0 16px;
205
+ --kds-spacing-button-min-height: 44px;
206
206
  --kds-spacing-button-icon-size: 20px;
207
207
  --kds-spacing-sidebar-width: 280px;
208
208
  --kds-spacing-sidebar-width-collapsed: 72px;
@@ -241,7 +241,7 @@
241
241
  --kds-radius-full: 9999px;
242
242
 
243
243
  /* Component-specific radii */
244
- --kds-radius-button: 4px;
244
+ --kds-radius-button: 10px;
245
245
  --kds-radius-input: 4px;
246
246
  --kds-radius-card: 14px;
247
247
  --kds-radius-modal: 20px;
@@ -643,6 +643,7 @@ body.dark {
643
643
  /* Scroll Container Utilities */
644
644
  --kds-scroll-sm-height: 280px;
645
645
  --kds-scroll-md-height: 420px;
646
+
646
647
  --kds-scroll-lg-height: 600px;
647
648
 
648
649
  /* Stage Layout */
@@ -821,34 +822,37 @@ a.kds-btn {
821
822
  justify-content: center;
822
823
  gap: 8px;
823
824
  text-align: center;
825
+ width: 100%;
824
826
 
825
827
  /* Typography - Using design tokens */
826
828
  font-family: var(--kds-font-family-secondary);
827
- font-weight: var(--kds-font-weight-medium); /* 500, no 600 */
828
- font-size: var(--kds-typography-button-font-size); /* 0.9375rem = 15px */
829
- line-height: var(--kds-typography-button-line-height); /* 26px, no 1 */
829
+ font-weight: var(--kds-font-weight-medium); /* 500 */
830
+ font-size: var(--kds-typography-button-font-size); /* 0.875rem = 14px */
831
+ line-height: var(--kds-typography-button-line-height); /* 1.5 */
830
832
  letter-spacing: var(--kds-typography-button-letter-spacing); /* 0.46px */
831
833
  text-transform: uppercase;
832
834
 
833
835
  /* Spacing - Using design tokens */
834
- padding: var(--kds-spacing-button-padding); /* 8px 22px */
835
- min-height: var(--kds-spacing-button-min-height); /* 50px */
836
- height: auto; /* Remove fixed height, let content + padding define it */
836
+ padding: var(--kds-spacing-button-padding); /* 0 16px */
837
+ height: var(--kds-spacing-button-min-height); /* 44px */
837
838
 
838
839
  /* Border - Using design token */
839
- border-radius: var(--kds-radius-button); /* 4px */
840
+ border-radius: var(--kds-radius-button); /* 10px */
840
841
  border: none;
841
842
 
842
843
  /* Interaction */
843
844
  cursor: pointer;
844
- transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
845
- box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1),
846
- border-color 250ms cubic-bezier(0.4, 0, 0.2, 1),
847
- color 250ms cubic-bezier(0.4, 0, 0.2, 1);
845
+ transition: background .15s, box-shadow .15s, transform .05s;
848
846
  box-sizing: border-box;
849
847
  vertical-align: middle;
850
848
  }
851
849
 
850
+ /* Active state - add subtle press effect */
851
+ button.kds-btn:active:not(:disabled),
852
+ a.kds-btn:active:not(:disabled) {
853
+ transform: translateY(1px);
854
+ }
855
+
852
856
  /* Disabled state - colores específicos en lugar de opacity */
853
857
  button.kds-btn:disabled,
854
858
  a.kds-btn:disabled {
@@ -866,18 +870,13 @@ a.kds-btn-primary {
866
870
  background: var(--kds-color-primary-main); /* #8347AD */
867
871
  color: white;
868
872
  border: none;
869
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
870
- 0px 2px 2px 0px rgba(0, 0, 0, 0.14),
871
- 0px 1px 5px 0px rgba(0, 0, 0, 0.12); /* elevation/2 */
873
+ box-shadow: 0 1px 2px rgba(131, 71, 173, .25);
872
874
  }
873
875
 
874
- /* Hover State - background más oscuro + elevation/4 */
876
+ /* Hover State - background más oscuro */
875
877
  button.kds-btn-primary:hover:not(:disabled),
876
878
  a.kds-btn-primary:hover:not(:disabled) {
877
- background: var(--kds-color-primary-dark); /* #6A3A8C */
878
- box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
879
- 0px 4px 5px 0px rgba(0, 0, 0, 0.14),
880
- 0px 1px 10px 0px rgba(0, 0, 0, 0.12); /* elevation/4 */
879
+ background: var(--kds-color-primary-dark); /* #5B3179 */
881
880
  }
882
881
 
883
882
  /* Active/Focus State */
@@ -5336,6 +5335,7 @@ dialog#surveyModal button.circle {
5336
5335
  background: var(--kds-color-background-muted);
5337
5336
  border-radius: var(--kds-radius-lg);
5338
5337
  padding: var(--kds-spacing-0-25);
5338
+ margin-bottom: var(--kds-spacing-2);
5339
5339
  display: flex;
5340
5340
  position: relative;
5341
5341
  }
@@ -5602,8 +5602,8 @@ div.kds-invoice-header,
5602
5602
  margin-top: var(--kds-spacing-1);
5603
5603
  }
5604
5604
 
5605
- .kds-invoice-code::first-letter {
5606
- text-transform: uppercase;
5605
+ .kds-invoice-code-value {
5606
+ text-transform: lowercase;
5607
5607
  }
5608
5608
 
5609
5609
  .kds-invoice-merchant {
@@ -5647,7 +5647,7 @@ div.kds-invoice-header,
5647
5647
  line-height: 1.5;
5648
5648
  letter-spacing: -0.31px;
5649
5649
  color: var(--kds-color-text-primary);
5650
- margin: 0 0 var(--kds-spacing-2);
5650
+ margin-bottom: var(--kds-spacing-2) !important;
5651
5651
  }
5652
5652
 
5653
5653
  /* -- Key-Value Grid -- */
@@ -5670,12 +5670,15 @@ div.kds-invoice-header,
5670
5670
 
5671
5671
  .kds-kv dd {
5672
5672
  margin: 0;
5673
- font-size: var(--kds-font-size-xs);
5673
+ font-size: var(--kds-font-size-sm);
5674
5674
  line-height: var(--kds-line-height-relaxed);
5675
5675
  font-weight: var(--kds-font-weight-bold);
5676
5676
  letter-spacing: normal;
5677
5677
  color: var(--kds-color-gray-800);
5678
5678
  min-width: 0;
5679
+ white-space: nowrap;
5680
+ overflow: hidden;
5681
+ text-overflow: ellipsis;
5679
5682
  }
5680
5683
 
5681
5684
  /* -- Dividers -- */
@@ -5883,7 +5886,11 @@ button.kds-btn-success::after {
5883
5886
  display: flex;
5884
5887
  flex-direction: column;
5885
5888
  gap: var(--kds-spacing-1);
5886
- margin-top: var(--kds-spacing-1);
5889
+ margin-bottom: var(--kds-spacing-1);
5890
+ }
5891
+
5892
+ .kds-bank-list:last-child {
5893
+ margin-bottom: 0;
5887
5894
  }
5888
5895
 
5889
5896
  /* -- Field group spacing -- */