@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.
- package/dist/{chunk-OXGFRESN.js → chunk-33K2SFQM.js} +4 -4
- package/dist/chunk-33K2SFQM.js.map +1 -0
- package/dist/{chunk-YES4V53K.mjs → chunk-FTUBU2ZU.mjs} +4 -4
- package/dist/chunk-FTUBU2ZU.mjs.map +1 -0
- package/dist/components/badge.d.mts +2 -182
- package/dist/components/badge.d.ts +2 -182
- package/dist/components/banner.d.mts +1 -78
- package/dist/components/banner.d.ts +1 -78
- package/dist/components/button.d.mts +1 -123
- package/dist/components/button.d.ts +1 -123
- package/dist/components/calendar.d.mts +1 -107
- package/dist/components/calendar.d.ts +1 -107
- package/dist/components/combo-box-fuzzy.d.mts +1 -32
- package/dist/components/combo-box-fuzzy.d.ts +1 -32
- package/dist/components/combo-box.d.mts +2 -146
- package/dist/components/combo-box.d.ts +2 -146
- package/dist/components/date-field.d.mts +9 -150
- package/dist/components/date-field.d.ts +9 -150
- package/dist/components/date-field.js +2 -2
- package/dist/components/date-field.mjs +1 -1
- package/dist/components/date-picker.d.mts +1 -50
- package/dist/components/date-picker.d.ts +1 -50
- package/dist/components/date-range-picker.d.mts +1 -68
- package/dist/components/date-range-picker.d.ts +1 -68
- package/dist/components/field-group.d.mts +2 -109
- package/dist/components/field-group.d.ts +2 -109
- package/dist/components/field.d.mts +3 -103
- package/dist/components/field.d.ts +3 -103
- package/dist/components/govt-banner.d.mts +44 -75
- package/dist/components/govt-banner.d.ts +44 -75
- package/dist/components/index.d.mts +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +2 -2
- package/dist/components/index.mjs +1 -1
- package/dist/components/input.d.mts +1 -45
- package/dist/components/input.d.ts +1 -45
- package/dist/components/list-box.d.mts +1 -87
- package/dist/components/list-box.d.ts +1 -87
- package/dist/components/menu.d.mts +4 -198
- package/dist/components/menu.d.ts +4 -198
- package/dist/components/popover.d.mts +2 -46
- package/dist/components/popover.d.ts +2 -46
- package/dist/components/select.d.mts +19 -197
- package/dist/components/select.d.ts +19 -197
- package/dist/components/skip-nav-link.d.mts +1 -15
- package/dist/components/skip-nav-link.d.ts +1 -15
- package/dist/components/spinner.d.mts +1 -74
- package/dist/components/spinner.d.ts +1 -74
- package/dist/components/tabs.d.mts +9 -198
- package/dist/components/tabs.d.ts +9 -198
- package/dist/components/tag-field.d.mts +1 -79
- package/dist/components/tag-field.d.ts +1 -79
- package/dist/components/text-area.d.mts +1 -62
- package/dist/components/text-area.d.ts +1 -62
- package/dist/components/toggle.d.mts +1 -68
- package/dist/components/toggle.d.ts +1 -68
- package/dist/index.d.mts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/utils/classes.d.mts +1 -27
- package/dist/utils/classes.d.ts +1 -27
- package/dist/utils/index.d.mts +0 -1
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/tv.d.mts +1 -12
- package/dist/utils/tv.d.ts +1 -12
- package/package.json +7 -6
- package/dist/chunk-OXGFRESN.js.map +0 -1
- package/dist/chunk-YES4V53K.mjs.map +0 -1
package/dist/utils/index.d.mts
CHANGED
|
@@ -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';
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/utils/tv.d.mts
CHANGED
|
@@ -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/dist/utils/tv.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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":[]}
|