@yahoo/uds 3.1.1 → 3.2.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.
Files changed (52) hide show
  1. package/dist/chunk-4EBGHMCT.js +2 -0
  2. package/dist/chunk-Z4AA4AEN.cjs +2 -0
  3. package/dist/client/index.cjs +2 -2
  4. package/dist/client/index.js +3 -3
  5. package/dist/experimental/index.cjs +2 -2
  6. package/dist/experimental/index.d.cts +6 -3
  7. package/dist/experimental/index.d.ts +6 -3
  8. package/dist/experimental/index.js +2 -1
  9. package/dist/{index-flTAmVAB.d.cts → index-CJrnI6Gt.d.cts} +9 -3
  10. package/dist/{index-CkNxDpv3.d.ts → index-DLk9RGCE.d.ts} +9 -3
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.d.cts +1 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/metafile-cjs.json +1 -1
  16. package/dist/metafile-esm.json +1 -1
  17. package/dist/tailwind/plugin.cjs +1 -1
  18. package/dist/tailwind/plugin.d.cts +21 -6
  19. package/dist/tailwind/plugin.d.ts +21 -6
  20. package/dist/tailwind/plugin.js +2 -2
  21. package/dist/tailwind/purger.cjs +1 -1
  22. package/dist/tailwind/purger.js +1 -1
  23. package/dist/tailwind/utils.cjs +1 -1
  24. package/dist/tailwind/utils.js +1 -1
  25. package/dist/tokens/automation/configs.cjs +1 -1
  26. package/dist/tokens/automation/configs.d.cts +1 -1
  27. package/dist/tokens/automation/configs.d.ts +1 -1
  28. package/dist/tokens/automation/configs.js +1 -1
  29. package/dist/tokens/automation/properties.cjs +1 -1
  30. package/dist/tokens/automation/properties.d.cts +1 -1
  31. package/dist/tokens/automation/properties.d.ts +1 -1
  32. package/dist/tokens/automation/properties.js +1 -1
  33. package/dist/tokens/index.cjs +1 -1
  34. package/dist/tokens/index.d.cts +2 -2
  35. package/dist/tokens/index.d.ts +2 -2
  36. package/dist/tokens/index.js +1 -1
  37. package/package.json +1 -1
  38. package/cli/ButtonFile.mock.tsx +0 -15
  39. package/dist/VStack-BwpcIbVt.d.cts +0 -145
  40. package/dist/VStack-nWg63Lkd.d.ts +0 -145
  41. package/dist/chunk-2MWXGM7N.cjs +0 -2
  42. package/dist/chunk-2RHIQTMH.js +0 -2
  43. package/dist/chunk-3HJAKD7X.cjs +0 -3
  44. package/dist/chunk-7DDAOT2K.cjs +0 -2
  45. package/dist/chunk-DCM7GPZ6.js +0 -2
  46. package/dist/chunk-HBZLHJEI.js +0 -2
  47. package/dist/chunk-PLGFYRZJ.js +0 -3
  48. package/dist/chunk-YTMZSL6D.cjs +0 -1
  49. package/dist/index-BpFK6gZ_.d.cts +0 -202
  50. package/dist/index-Bt0lNpiB.d.ts +0 -202
  51. package/dist/types-Dbgbylmg.d.cts +0 -10245
  52. package/dist/types-Dbgbylmg.d.ts +0 -10245
@@ -1,6 +1,7 @@
1
1
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
2
2
  import { CSSRuleObject } from 'tailwindcss/types/config';
3
3
  import { B as ButtonConfig, i as ButtonClassMap, U as UniversalTokensConfig, I as IconButtonClassMap, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-DCT-zwXQ.cjs';
4
+ import { Config } from 'tailwindcss';
4
5
  import defaultTailwindTheme from 'tailwindcss/defaultTheme';
5
6
  import '@yahoo/uds-icons/types';
6
7
  import 'motion/react';
@@ -44,17 +45,31 @@ declare function getButtonColorForProperty(property: ButtonColorProperty, { type
44
45
 
45
46
  interface TailwindPluginOptions {
46
47
  config?: UniversalTokensConfig;
47
- safelist?: string[];
48
48
  /**
49
- * Disable generating font face declarations through Tailwind
50
- * @default false
49
+ * Safelisting is a last-resort, and should only be used in situations where
50
+ * it’s impossible to scan certain content for class names. These situations
51
+ * are rare, and you should almost never need this feature.
52
+ *
53
+ * {@link https://v3.tailwindcss.com/docs/content-configuration#safelisting-classes}
51
54
  */
52
- disableFontFaceDeclarations?: boolean;
55
+ safelist?: Config['safelist'];
53
56
  /**
54
- * Generates CSS classes for visually forcing components into a pseudo state (hover, focus, etc)
57
+ * Disable generating font face declarations through Tailwind
55
58
  * @default false
56
59
  */
57
- generatePseudoStateSuffixes?: boolean;
60
+ disableFontFaceDeclarations?: boolean;
61
+ previewOptions?: {
62
+ /**
63
+ * Generates CSS classes for visually forcing components into a pseudo state (hover, focus, etc)
64
+ * @default false
65
+ */
66
+ generatePseudoStateClassModifier: boolean;
67
+ /**
68
+ * User interactions will not affect the state applied to the component
69
+ * @default false
70
+ */
71
+ forcePseudoState: boolean;
72
+ };
58
73
  }
59
74
  declare const tailwindPlugin: {
60
75
  (options: TailwindPluginOptions): {
@@ -1,6 +1,7 @@
1
1
  import * as tailwindcss_types_config from 'tailwindcss/types/config';
2
2
  import { CSSRuleObject } from 'tailwindcss/types/config';
3
3
  import { B as ButtonConfig, i as ButtonClassMap, U as UniversalTokensConfig, I as IconButtonClassMap, j as ButtonColorProperty, k as ButtonColorPropertyConfig } from '../types-DCT-zwXQ.js';
4
+ import { Config } from 'tailwindcss';
4
5
  import defaultTailwindTheme from 'tailwindcss/defaultTheme';
5
6
  import '@yahoo/uds-icons/types';
6
7
  import 'motion/react';
@@ -44,17 +45,31 @@ declare function getButtonColorForProperty(property: ButtonColorProperty, { type
44
45
 
45
46
  interface TailwindPluginOptions {
46
47
  config?: UniversalTokensConfig;
47
- safelist?: string[];
48
48
  /**
49
- * Disable generating font face declarations through Tailwind
50
- * @default false
49
+ * Safelisting is a last-resort, and should only be used in situations where
50
+ * it’s impossible to scan certain content for class names. These situations
51
+ * are rare, and you should almost never need this feature.
52
+ *
53
+ * {@link https://v3.tailwindcss.com/docs/content-configuration#safelisting-classes}
51
54
  */
52
- disableFontFaceDeclarations?: boolean;
55
+ safelist?: Config['safelist'];
53
56
  /**
54
- * Generates CSS classes for visually forcing components into a pseudo state (hover, focus, etc)
57
+ * Disable generating font face declarations through Tailwind
55
58
  * @default false
56
59
  */
57
- generatePseudoStateSuffixes?: boolean;
60
+ disableFontFaceDeclarations?: boolean;
61
+ previewOptions?: {
62
+ /**
63
+ * Generates CSS classes for visually forcing components into a pseudo state (hover, focus, etc)
64
+ * @default false
65
+ */
66
+ generatePseudoStateClassModifier: boolean;
67
+ /**
68
+ * User interactions will not affect the state applied to the component
69
+ * @default false
70
+ */
71
+ forcePseudoState: boolean;
72
+ };
58
73
  }
59
74
  declare const tailwindPlugin: {
60
75
  (options: TailwindPluginOptions): {