@drivy/cobalt 2.0.0-beta.2 → 2.0.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivy/cobalt",
3
- "version": "2.0.0-beta.2",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "Opinionated design system for Drivy's projects.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/src/index.d.ts",
@@ -138,7 +138,7 @@
138
138
  }
139
139
 
140
140
  &--disabled {
141
- color: var(--c-navy-200);
141
+ @apply c-text-outline;
142
142
 
143
143
  cursor: auto;
144
144
  }
@@ -137,12 +137,11 @@
137
137
  }
138
138
 
139
139
  .cobalt-CalendarRangePicker__day-notification {
140
+ @apply c-bg-onSurface;
140
141
  width: 4px;
141
142
  height: 4px;
142
143
 
143
144
  border-radius: 50%;
144
-
145
- background-color: var(--c-navy-300);
146
145
  }
147
146
 
148
147
  &--today {
@@ -161,7 +160,7 @@
161
160
  }
162
161
 
163
162
  &--disabled {
164
- @apply c-text-disabled;
163
+ @apply c-text-outline;
165
164
 
166
165
  text-decoration: line-through;
167
166
  }
@@ -41,7 +41,7 @@ $daySize: theme("spacing.md");
41
41
  }
42
42
 
43
43
  &--semi-highlighted {
44
- @apply c-text-onSurfaceContainerVariant c-bg-surfaceContainerVariant;
44
+ @apply c-text-onTertiaryContainer c-bg-tertiaryContainer;
45
45
  }
46
46
 
47
47
  &--past {
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .cobalt-radio-with-details__description {
46
- @apply c-text-onSurfaceContainerVariant;
46
+ @apply c-text-onSurfaceVariant;
47
47
  font-family: font-family(base);
48
48
  font-size: 14px;
49
49
  line-height: 20px;
@@ -16,13 +16,16 @@
16
16
  line-height: 20px;
17
17
 
18
18
  background-color: theme("semanticStateColor.interactive.DEFAULT");
19
- background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2000000'><polygon points='0,0 100,0 50,50'/></svg>");
20
19
  background-size: 10px;
21
20
  background-position: calc(100% - 12px) 19px;
22
21
  background-repeat: no-repeat;
23
22
 
24
23
  appearance: none;
25
24
 
25
+ &:not([readonly]):not([disabled]) {
26
+ background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' fill='%2000000'><polygon points='0,0 100,0 50,50'/></svg>");
27
+ }
28
+
26
29
  // select placeholder
27
30
  &:invalid {
28
31
  @apply c-text-onSurfaceVariant;
@@ -21,7 +21,7 @@
21
21
  }
22
22
 
23
23
  &__value-meta {
24
- @apply c-text-onSurfaceContainerVariant;
24
+ @apply c-text-onSurfaceVariant;
25
25
  }
26
26
 
27
27
  &__value-container {
@@ -32,6 +32,10 @@
32
32
  .cobalt-slider__value-container {
33
33
  @apply c-text-onSurfaceContainerVariant;
34
34
  }
35
+
36
+ .cobalt-slider__value-meta {
37
+ @apply c-text-onSurfaceContainerVariant;
38
+ }
35
39
  }
36
40
 
37
41
  [data-part="control"] {
@@ -1 +1 @@
1
- {"version":3,"file":"getCobaltTailwindcssConfig.js","sources":["../../utils/getCobaltTailwindcssConfig.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireGetCobaltTailwindcssConfig } from \"/Users/cedric/Dev/drivy/cobalt/utils/getCobaltTailwindcssConfig.js\";\nvar getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();\nexport { getCobaltTailwindcssConfigExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);"],"names":[],"mappings":";;;AAEA,IAAI,iCAAiC,GAAG,iCAAiC,EAAE,CAAC;AAE5E,iCAAe,aAAa,uBAAuB,CAAC,iCAAiC,CAAC;;;;"}
1
+ {"version":3,"file":"getCobaltTailwindcssConfig.js","sources":["../../utils/getCobaltTailwindcssConfig.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireGetCobaltTailwindcssConfig } from \"/Users/thibaudesnouf/sources/cobalt/utils/getCobaltTailwindcssConfig.js\";\nvar getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();\nexport { getCobaltTailwindcssConfigExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);"],"names":[],"mappings":";;;AAEA,IAAI,iCAAiC,GAAG,iCAAiC,EAAE,CAAC;AAE5E,iCAAe,aAAa,uBAAuB,CAAC,iCAAiC,CAAC;;;;"}