@jobber/components 6.106.3 → 6.106.4-CLEANUPre-396e26e.1

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/styles.css CHANGED
@@ -6719,7 +6719,6 @@ a._7BLGtYNuJOU-.zgRx3ehZ2z8-:hover {
6719
6719
  padding: var(--space-small) var(--space-base);
6720
6720
  }
6721
6721
 
6722
- @charset "UTF-8";
6723
6722
  {
6724
6723
  /* sr-only utility class for accessibility */
6725
6724
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "6.106.3",
3
+ "version": "6.106.4-CLEANUPre-396e26e.1+396e26e23",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -538,5 +538,5 @@
538
538
  "> 1%",
539
539
  "IE 10"
540
540
  ],
541
- "gitHead": "32055bb77f35ebd11e476a2b377dcc7786a728c8"
541
+ "gitHead": "396e26e232b4b137526f428f34094f6b0eaf2c65"
542
542
  }
package/rollup.config.mjs CHANGED
@@ -21,6 +21,23 @@ import nodePolyfills from "rollup-plugin-polyfill-node";
21
21
  */
22
22
  const PREBUILD_CSS = process.env.PREBUILD_CSS === "true";
23
23
 
24
+ /**
25
+ * PostCSS plugin to remove @charset declarations.
26
+ *
27
+ * The @charset rule (from react-datepicker) ends up in the middle of
28
+ * the bundled CSS when imported via postcss-import. Since @charset must be
29
+ * the first line of a CSS file to be valid, and it's unnecessary for
30
+ * HTTP-served content (Content-Type header takes precedence), we remove it.
31
+ */
32
+ const removeCharset = {
33
+ postcssPlugin: "remove-charset",
34
+ AtRule: {
35
+ charset: atRule => {
36
+ atRule.remove();
37
+ },
38
+ },
39
+ };
40
+
24
41
  export default {
25
42
  input: PREBUILD_CSS ? "src/index.ts" : `src/**/index.{ts,tsx}`,
26
43
  plugins: [
@@ -42,6 +59,7 @@ export default {
42
59
  autoModules: false,
43
60
  plugins: [
44
61
  postcssimport,
62
+ removeCharset,
45
63
  autoprefixer,
46
64
  tools({
47
65
  files: ["../design/dist/foundation.css"],