@opengovsg/oui-theme 0.0.12 → 0.0.13

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 (69) hide show
  1. package/dist/{chunk-OXGFRESN.js → chunk-33K2SFQM.js} +4 -4
  2. package/dist/chunk-33K2SFQM.js.map +1 -0
  3. package/dist/{chunk-YES4V53K.mjs → chunk-FTUBU2ZU.mjs} +4 -4
  4. package/dist/chunk-FTUBU2ZU.mjs.map +1 -0
  5. package/dist/components/badge.d.mts +2 -182
  6. package/dist/components/badge.d.ts +2 -182
  7. package/dist/components/banner.d.mts +1 -78
  8. package/dist/components/banner.d.ts +1 -78
  9. package/dist/components/button.d.mts +1 -123
  10. package/dist/components/button.d.ts +1 -123
  11. package/dist/components/calendar.d.mts +1 -107
  12. package/dist/components/calendar.d.ts +1 -107
  13. package/dist/components/combo-box-fuzzy.d.mts +1 -32
  14. package/dist/components/combo-box-fuzzy.d.ts +1 -32
  15. package/dist/components/combo-box.d.mts +2 -146
  16. package/dist/components/combo-box.d.ts +2 -146
  17. package/dist/components/date-field.d.mts +9 -150
  18. package/dist/components/date-field.d.ts +9 -150
  19. package/dist/components/date-field.js +2 -2
  20. package/dist/components/date-field.mjs +1 -1
  21. package/dist/components/date-picker.d.mts +1 -50
  22. package/dist/components/date-picker.d.ts +1 -50
  23. package/dist/components/date-range-picker.d.mts +1 -68
  24. package/dist/components/date-range-picker.d.ts +1 -68
  25. package/dist/components/field-group.d.mts +2 -109
  26. package/dist/components/field-group.d.ts +2 -109
  27. package/dist/components/field.d.mts +3 -103
  28. package/dist/components/field.d.ts +3 -103
  29. package/dist/components/govt-banner.d.mts +44 -75
  30. package/dist/components/govt-banner.d.ts +44 -75
  31. package/dist/components/index.d.mts +1 -1
  32. package/dist/components/index.d.ts +1 -1
  33. package/dist/components/index.js +2 -2
  34. package/dist/components/index.mjs +1 -1
  35. package/dist/components/input.d.mts +1 -45
  36. package/dist/components/input.d.ts +1 -45
  37. package/dist/components/list-box.d.mts +1 -87
  38. package/dist/components/list-box.d.ts +1 -87
  39. package/dist/components/menu.d.mts +4 -198
  40. package/dist/components/menu.d.ts +4 -198
  41. package/dist/components/popover.d.mts +2 -46
  42. package/dist/components/popover.d.ts +2 -46
  43. package/dist/components/select.d.mts +19 -197
  44. package/dist/components/select.d.ts +19 -197
  45. package/dist/components/skip-nav-link.d.mts +1 -15
  46. package/dist/components/skip-nav-link.d.ts +1 -15
  47. package/dist/components/spinner.d.mts +1 -74
  48. package/dist/components/spinner.d.ts +1 -74
  49. package/dist/components/tabs.d.mts +9 -198
  50. package/dist/components/tabs.d.ts +9 -198
  51. package/dist/components/tag-field.d.mts +1 -79
  52. package/dist/components/tag-field.d.ts +1 -79
  53. package/dist/components/text-area.d.mts +1 -62
  54. package/dist/components/text-area.d.ts +1 -62
  55. package/dist/components/toggle.d.mts +1 -68
  56. package/dist/components/toggle.d.ts +1 -68
  57. package/dist/index.d.mts +0 -1
  58. package/dist/index.d.ts +0 -1
  59. package/dist/index.js +2 -2
  60. package/dist/index.mjs +1 -1
  61. package/dist/utils/classes.d.mts +1 -27
  62. package/dist/utils/classes.d.ts +1 -27
  63. package/dist/utils/index.d.mts +0 -1
  64. package/dist/utils/index.d.ts +0 -1
  65. package/dist/utils/tv.d.mts +1 -12
  66. package/dist/utils/tv.d.ts +1 -12
  67. package/package.json +7 -6
  68. package/dist/chunk-OXGFRESN.js.map +0 -1
  69. package/dist/chunk-YES4V53K.mjs.map +0 -1
@@ -6,6 +6,5 @@ export { cn } from './cn.mjs';
6
6
  export { dataAttr } from './data-attr.mjs';
7
7
  export { composeRenderProps, composeTailwindRenderProps } from './rac.mjs';
8
8
  import 'tailwind-variants';
9
- import 'tailwind-variants/dist/config.js';
10
9
  import 'tailwind-merge';
11
10
  import 'clsx';
@@ -6,6 +6,5 @@ export { cn } from './cn.js';
6
6
  export { dataAttr } from './data-attr.js';
7
7
  export { composeRenderProps, composeTailwindRenderProps } from './rac.js';
8
8
  import 'tailwind-variants';
9
- import 'tailwind-variants/dist/config.js';
10
9
  import 'tailwind-merge';
11
10
  import 'clsx';
@@ -1,16 +1,5 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
 
3
- declare const tv: tailwind_variants.CreateTV<{
4
- twMergeConfig: {
5
- extend: {
6
- theme: {};
7
- classGroups: {
8
- prose: {
9
- prose: (() => boolean)[];
10
- }[];
11
- };
12
- };
13
- };
14
- }>;
3
+ declare const tv: tailwind_variants.CreateTV;
15
4
 
16
5
  export { tv };
@@ -1,16 +1,5 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
 
3
- declare const tv: tailwind_variants.CreateTV<{
4
- twMergeConfig: {
5
- extend: {
6
- theme: {};
7
- classGroups: {
8
- prose: {
9
- prose: (() => boolean)[];
10
- }[];
11
- };
12
- };
13
- };
14
- }>;
3
+ declare const tv: tailwind_variants.CreateTV;
15
4
 
16
5
  export { tv };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengovsg/oui-theme",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "sideEffects": false,
5
5
  "files": [
6
6
  "dist",
@@ -21,12 +21,13 @@
21
21
  "./tailwind.css": "./src/tailwind.css"
22
22
  },
23
23
  "devDependencies": {
24
+ "tailwind-variants": "2.0.1",
24
25
  "@types/lodash-es": "^4.17.12",
25
26
  "@types/react": "^19.0.12",
26
27
  "@types/react-dom": "^19.0.4",
27
28
  "eslint": "^9.20.1",
28
29
  "prettier": "^3.5.3",
29
- "tailwindcss": "4.0.6",
30
+ "tailwindcss": "4.1.11",
30
31
  "tsup": "^8.3.6",
31
32
  "typescript": "5.7.3",
32
33
  "@oui/eslint-config": "0.0.0",
@@ -34,17 +35,17 @@
34
35
  "@oui/typescript-config": "0.0.0"
35
36
  },
36
37
  "dependencies": {
37
- "@tailwindcss/vite": "4.0.6",
38
+ "@tailwindcss/vite": "4.1.11",
38
39
  "clsx": "^2.1.1",
39
40
  "lodash-es": "^4.17.21",
40
41
  "react": "^19.0.0",
41
- "tailwind-merge": "^3.0.1",
42
- "tailwind-variants": "^0.3.1",
42
+ "tailwind-merge": "^3.3.1",
43
43
  "tailwindcss-react-aria-components": "^2.0.0",
44
44
  "tw-animate-css": "^1.2.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "tailwindcss": ">=4"
47
+ "tailwindcss": ">=4",
48
+ "tailwind-variants": "2.0.1"
48
49
  },
49
50
  "prettier": "@oui/prettier-config",
50
51
  "scripts": {
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-OXGFRESN.js","../src/components/date-field.ts"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACFO,IAAM,gBAAA,EAAkB,iCAAA;AAAG,EAChC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,qBAAA;AAAA,IACN,OAAA,EACE;AAAA,EACJ,CAAA;AAAA,EACA,QAAA,EAAU;AAAA,IACR,OAAA,EAAS,CAAC,CAAA;AAAA,IACV,aAAA,EAAe;AAAA,MACb,IAAA,EAAM;AAAA,QACJ,OAAA,EAAS;AAAA,MACX,CAAA;AAAA,MACA,KAAA,EAAO;AAAA,QACL,OAAA,EAAS;AAAA,MACX;AAAA,IACF,CAAA;AAAA,IACA,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,QACJ,OAAA,EACE;AAAA,MACJ;AAAA,IACF,CAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM;AAAA,QACJ,OAAA,EACE;AAAA,MACJ;AAAA,IACF,CAAA;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI;AAAA,QACF,IAAA,EAAM;AAAA,MACR,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,IAAA,EAAM;AAAA,MACR,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,IAAA,EAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF,CAAC,CAAA;AAKM,IAAM,gBAAA,EAAkB,iCAAA;AAAG,EAChC,MAAA,EAAQ;AACV,CAAC,CAAA;ADHD;AACA;AACE;AACA;AACF,qFAAC","file":"/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-OXGFRESN.js","sourcesContent":[null,"import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\nimport { inputStyles } from \"./input\"\n\nexport const dateInputStyles = tv({\n slots: {\n base: \"block min-w-[150px]\",\n segment:\n \"type-literal:px-0 rounded-xs inline p-0.5 text-gray-800 caret-transparent outline-0 forced-color-adjust-none dark:text-zinc-200 forced-colors:text-[ButtonText]\",\n },\n variants: {\n variant: {},\n isPlaceholder: {\n true: {\n segment: \"text-interaction-support-placeholder\",\n },\n false: {\n segment: \"text-base-content-default\",\n },\n },\n isDisabled: {\n true: {\n segment:\n \"text-interaction-support-disabled-content forced-colors:text-[GrayText]\",\n },\n },\n isFocused: {\n true: {\n segment:\n \"bg-interaction-main-default text-white dark:text-white forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]\",\n },\n },\n size: {\n xs: {\n base: \"prose-body-2 placeholder:prose-subhead-5 max-sm:prose-body-1\",\n },\n sm: {\n base: \"prose-body-2 max-sm:prose-body\",\n },\n md: {\n base: \"prose-body-1\",\n },\n },\n },\n})\n\nexport type DateInputSlots = keyof ReturnType<typeof dateInputStyles>\nexport type DateInputVariantProps = VariantProps<typeof dateInputStyles>\n\nexport const dateFieldStyles = tv({\n extend: inputStyles,\n})\n\nexport type DateFieldVariantProps = VariantProps<typeof dateFieldStyles>\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/date-field.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\nimport { inputStyles } from \"./input\"\n\nexport const dateInputStyles = tv({\n slots: {\n base: \"block min-w-[150px]\",\n segment:\n \"type-literal:px-0 rounded-xs inline p-0.5 text-gray-800 caret-transparent outline-0 forced-color-adjust-none dark:text-zinc-200 forced-colors:text-[ButtonText]\",\n },\n variants: {\n variant: {},\n isPlaceholder: {\n true: {\n segment: \"text-interaction-support-placeholder\",\n },\n false: {\n segment: \"text-base-content-default\",\n },\n },\n isDisabled: {\n true: {\n segment:\n \"text-interaction-support-disabled-content forced-colors:text-[GrayText]\",\n },\n },\n isFocused: {\n true: {\n segment:\n \"bg-interaction-main-default text-white dark:text-white forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]\",\n },\n },\n size: {\n xs: {\n base: \"prose-body-2 placeholder:prose-subhead-5 max-sm:prose-body-1\",\n },\n sm: {\n base: \"prose-body-2 max-sm:prose-body\",\n },\n md: {\n base: \"prose-body-1\",\n },\n },\n },\n})\n\nexport type DateInputSlots = keyof ReturnType<typeof dateInputStyles>\nexport type DateInputVariantProps = VariantProps<typeof dateInputStyles>\n\nexport const dateFieldStyles = tv({\n extend: inputStyles,\n})\n\nexport type DateFieldVariantProps = VariantProps<typeof dateFieldStyles>\n"],"mappings":";;;;;;;;AAKO,IAAM,kBAAkB,GAAG;AAAA,EAChC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SACE;AAAA,EACJ;AAAA,EACA,UAAU;AAAA,IACR,SAAS,CAAC;AAAA,IACV,eAAe;AAAA,MACb,MAAM;AAAA,QACJ,SAAS;AAAA,MACX;AAAA,MACA,OAAO;AAAA,QACL,SAAS;AAAA,MACX;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,QACJ,SACE;AAAA,MACJ;AAAA,IACF;AAAA,IACA,MAAM;AAAA,MACJ,IAAI;AAAA,QACF,MAAM;AAAA,MACR;AAAA,MACA,IAAI;AAAA,QACF,MAAM;AAAA,MACR;AAAA,MACA,IAAI;AAAA,QACF,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAKM,IAAM,kBAAkB,GAAG;AAAA,EAChC,QAAQ;AACV,CAAC;","names":[]}