@rojaostudio/ds 2.0.0-next.15 → 2.0.0-next.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rojaostudio/ds",
3
- "version": "2.0.0-next.15",
3
+ "version": "2.0.0-next.16",
4
4
  "type": "module",
5
5
  "description": "Rojão Design System — componentes React, estilos e alvo React Native. O motor vive em @rojaostudio/ds-core.",
6
6
  "license": "MIT",
@@ -190,7 +190,7 @@
190
190
  "@radix-ui/react-toggle": "^1.1.18",
191
191
  "@radix-ui/react-toggle-group": "^1.1.19",
192
192
  "@radix-ui/react-tooltip": "^1.2.16",
193
- "@rojaostudio/ds-core": "1.1.0-next.7"
193
+ "@rojaostudio/ds-core": "1.1.0-next.8"
194
194
  },
195
195
  "scripts": {
196
196
  "build": "pnpm run build:tokens && pnpm run build:themes && pnpm run build:rds && pnpm run build:native && tsup",
@@ -2677,10 +2677,10 @@ input:focus-visible + .rds-checkbox__box {
2677
2677
  * an 8 dot. Selected fills the card with the brand. Disabled is the same card at half opacity (as in Figma).
2678
2678
  * tile: a grid cell, 16 inside, centred: the icon, then the label 14/20 semibold and the description 12/16 (8 below
2679
2679
  * the icon). Selected fills it with the brand, the icon square at 10% of choice-card/icon/background/selected, the
2680
- * description at 70%, and a 16 check (11 glyph) 8 from the top right corner.
2680
+ * description at full opacity, and a 16 check (11 glyph) 8 from the top right corner.
2681
2681
  * preview: 8 inside, the picture on top (16:9, a 1px border, corners radius/container, a 24 placeholder icon), then
2682
2682
  * the label 16/24 semibold and the description 14/20, 4 in from the sides. Selected keeps the surface: a 2px border
2683
- * in the brand, the description at 70% and a 20 check (12 glyph) in the picture's bottom right corner.
2683
+ * in the brand, the description at full opacity and a 20 check (12 glyph) in the picture's bottom right corner.
2684
2684
  * The group stacks rows 8 apart; tiles and previews go in a grid (cells of at least 160 and 240), 8 apart.
2685
2685
  */
2686
2686
  .rds-choice-card-group {
@@ -2872,11 +2872,6 @@ input:focus-visible + .rds-checkbox__box {
2872
2872
  color: var(--choice-card-icon-color-selected);
2873
2873
  }
2874
2874
 
2875
- .rds-choice-card--tile.rds-choice-card--selected .rds-choice-card__description,
2876
- .rds-choice-card--preview.rds-choice-card--selected .rds-choice-card__description {
2877
- color: color-mix(in srgb, var(--_description) 70%, transparent);
2878
- }
2879
-
2880
2875
  .rds-choice-card--tile .rds-choice-card__check {
2881
2876
  position: absolute;
2882
2877
  top: calc(var(--space-8) - var(--border-width));
@@ -4301,7 +4296,7 @@ input:focus-visible + .rds-checkbox__box {
4301
4296
  * FilterChip (Forms collection, filter-chip/*): 32 tall, pill, 12 inside, 4 between icon, label and count;
4302
4297
  * label 14/20 medium. inactive: card fill and a hairline; hover: muted fill, strong hairline; active: the brand
4303
4298
  * at 12% over what is behind, brand border and label; disabled: the whole chip at 50%, the label at 40%.
4304
- * The count reads at 60% of the label. Icon 14, in the label's colour.
4299
+ * The count reads in the label's colour, at full opacity. Icon 14, in the label's colour.
4305
4300
  */
4306
4301
  .rds-filter-chip-group {
4307
4302
  display: flex;
@@ -4392,7 +4387,6 @@ input:focus-visible + .rds-checkbox__box {
4392
4387
  }
4393
4388
 
4394
4389
  .rds-filter-chip__count {
4395
- color: color-mix(in srgb, currentColor 60%, transparent);
4396
4390
  font-variant-numeric: tabular-nums;
4397
4391
  }
4398
4392
 
@@ -183,7 +183,7 @@
183
183
  /* chat */
184
184
  --attachment-background: var(--surface-card);
185
185
  --attachment-border: var(--border-default);
186
- --attachment-border-error: var(--colors-state-error);
186
+ --attachment-border-error: var(--border-error);
187
187
  --attachment-description: var(--text-muted);
188
188
  --attachment-error: var(--text-error);
189
189
  --attachment-media: var(--surface-muted);
@@ -551,7 +551,7 @@
551
551
  --input-border-default: var(--border-strong);
552
552
  --input-border-hover: var(--border-strong-hover);
553
553
  --input-border-focus: var(--focus-ring);
554
- --input-border-error: var(--colors-state-error);
554
+ --input-border-error: var(--border-error);
555
555
  --input-border-disabled: var(--border-default);
556
556
  --input-value-default: var(--text-body);
557
557
  --input-value-disabled: var(--text-disabled);
@@ -580,7 +580,7 @@
580
580
  --textarea-border-default: var(--border-strong);
581
581
  --textarea-border-hover: var(--border-strong-hover);
582
582
  --textarea-border-focus: var(--focus-ring);
583
- --textarea-border-error: var(--colors-state-error);
583
+ --textarea-border-error: var(--border-error);
584
584
  --textarea-border-disabled: var(--border-default);
585
585
  --textarea-value-default: var(--text-body);
586
586
  --textarea-value-disabled: var(--text-disabled);
@@ -601,7 +601,7 @@
601
601
  --select-border-default: var(--border-strong);
602
602
  --select-border-hover: var(--border-strong-hover);
603
603
  --select-border-focus: var(--focus-ring);
604
- --select-border-error: var(--colors-state-error);
604
+ --select-border-error: var(--border-error);
605
605
  --select-border-disabled: var(--border-default);
606
606
  --select-value-default: var(--text-body);
607
607
  --select-value-disabled: var(--text-disabled);
@@ -629,7 +629,7 @@
629
629
  --checkbox-control-background-checked-disabled: var(--text-disabled);
630
630
  --checkbox-control-border-default: var(--border-strong);
631
631
  --checkbox-control-border-hover: var(--border-strong-hover);
632
- --checkbox-control-border-error: var(--colors-state-error);
632
+ --checkbox-control-border-error: var(--border-error);
633
633
  --checkbox-control-border-disabled: var(--border-default);
634
634
  --checkbox-control-mark: var(--text-on-secondary);
635
635
  --checkbox-control-mark-disabled: var(--surface-card);
@@ -650,7 +650,7 @@
650
650
  --radio-control-background-checked-disabled: var(--text-disabled);
651
651
  --radio-control-border-default: var(--border-strong);
652
652
  --radio-control-border-hover: var(--border-strong-hover);
653
- --radio-control-border-error: var(--colors-state-error);
653
+ --radio-control-border-error: var(--border-error);
654
654
  --radio-control-border-disabled: var(--border-default);
655
655
  --radio-control-dot: var(--text-on-secondary);
656
656
  --radio-control-dot-disabled: var(--surface-card);
@@ -717,7 +717,7 @@
717
717
  --otp-slot-background-disabled: var(--surface-disabled);
718
718
  --otp-slot-border-default: var(--border-strong);
719
719
  --otp-slot-border-active: var(--focus-ring);
720
- --otp-slot-border-error: var(--colors-state-error);
720
+ --otp-slot-border-error: var(--border-error);
721
721
  --otp-slot-border-disabled: var(--border-default);
722
722
  --combobox-empty: var(--text-muted);
723
723
  --calendar-background: var(--surface-card);
@@ -749,7 +749,7 @@
749
749
  --file-input-area-border-default: var(--border-strong);
750
750
  --file-input-area-border-hover: var(--focus-ring);
751
751
  --file-input-area-border-focus: var(--focus-ring);
752
- --file-input-area-border-error: var(--colors-state-error);
752
+ --file-input-area-border-error: var(--border-error);
753
753
  --file-input-area-border-disabled: var(--border-default);
754
754
  --file-input-area-icon-default: var(--colors-primary-default);
755
755
  --file-input-area-icon-disabled: var(--text-disabled);
@@ -772,7 +772,7 @@
772
772
  --chip-input-border-default: var(--border-strong);
773
773
  --chip-input-border-hover: var(--border-strong-hover);
774
774
  --chip-input-border-focus: var(--focus-ring);
775
- --chip-input-border-error: var(--colors-state-error);
775
+ --chip-input-border-error: var(--border-error);
776
776
  --chip-input-border-disabled: var(--border-default);
777
777
  --chip-input-value-default: var(--text-body);
778
778
  --chip-input-value-disabled: var(--text-disabled);
@@ -791,7 +791,7 @@
791
791
  --number-input-border-default: var(--border-strong);
792
792
  --number-input-border-hover: var(--border-strong-hover);
793
793
  --number-input-border-focus: var(--focus-ring);
794
- --number-input-border-error: var(--colors-state-error);
794
+ --number-input-border-error: var(--border-error);
795
795
  --number-input-border-disabled: var(--border-default);
796
796
  --number-input-value-default: var(--text-body);
797
797
  --number-input-value-disabled: var(--text-disabled);
@@ -812,7 +812,7 @@
812
812
  --color-input-border-default: var(--border-strong);
813
813
  --color-input-border-hover: var(--border-strong-hover);
814
814
  --color-input-border-focus: var(--focus-ring);
815
- --color-input-border-error: var(--colors-state-error);
815
+ --color-input-border-error: var(--border-error);
816
816
  --color-input-border-disabled: var(--border-default);
817
817
  --color-input-value-default: var(--text-body);
818
818
  --color-input-value-disabled: var(--text-disabled);
@@ -973,7 +973,7 @@
973
973
  --navmenu-trigger-background-open: var(--surface-muted);
974
974
  --navmenu-trigger-label: var(--text-body);
975
975
  --tabs-soon-background: var(--surface-muted);
976
- --tabs-soon-text: var(--text-disabled);
976
+ --tabs-soon-text: var(--text-subtle);
977
977
  --tabs-dot-background: var(--colors-state-success);
978
978
  --tabs-dot-indicator: var(--colors-state-success);
979
979
  --sidebar-section-label: var(--text-subtle);
@@ -65,7 +65,7 @@
65
65
  --border-strong: #71717a;
66
66
  --border-strong-hover: #52525b;
67
67
  --colors-state-info: #2196f3;
68
- --text-on-info: #ffffff;
68
+ --text-on-info: #000000;
69
69
  --colors-state-warning: #ff9800;
70
70
  --colors-state-warning-strong: #dc7f00;
71
71
  --text-on-warning: #000000;
@@ -80,7 +80,7 @@
80
80
  --surface-neutral: #f4f4f5;
81
81
  --text-neutral: #27272a;
82
82
  --chart-series-1: #5a6478;
83
- --chart-series-2: #dc7f00;
83
+ --chart-series-2: #bd6a00;
84
84
  --chart-series-3: #009688;
85
85
  --chart-series-4: #bc4ad0;
86
86
  --chart-series-5: #379c3d;
@@ -104,6 +104,7 @@
104
104
  --colors-state-neutral-strong: #52525b;
105
105
  --text-on-primary-subtle: #ffffff4d;
106
106
  --surface-tint-subtle: #f4f6f9;
107
+ --border-error: #c50003;
107
108
  --rojao-primary: #1b2a4a;
108
109
  --rojao-secondary: #1b2a4a;
109
110
  --rojao-accent: #ff6a00;
@@ -186,6 +187,7 @@
186
187
  --colors-state-neutral-strong: #a1a1aa;
187
188
  --text-on-primary-subtle: #0000004d;
188
189
  --surface-tint-subtle: #002445;
190
+ --border-error: #ff6c5c;
189
191
  }
190
192
 
191
193
  .ds-plate, [data-rds-plate] {
@@ -265,5 +267,6 @@
265
267
  --colors-state-info-strong: #8cc6ff;
266
268
  --colors-state-neutral-strong: #a1a1aa;
267
269
  --surface-tint-subtle: #ffffff0d;
270
+ --border-error: #ffa598;
268
271
  }
269
272
  }