@opengovsg/oui-theme 0.0.7 → 0.0.10
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-Z5EKAZRY.mjs → chunk-34YVA3CF.mjs} +2 -47
- package/dist/chunk-34YVA3CF.mjs.map +1 -0
- package/dist/chunk-4YH455F5.js +83 -0
- package/dist/chunk-4YH455F5.js.map +1 -0
- package/dist/{chunk-46ZPWKHG.js → chunk-5FOX35BG.js} +3 -3
- package/dist/{chunk-46ZPWKHG.js.map → chunk-5FOX35BG.js.map} +1 -1
- package/dist/{chunk-NEO5ZU5V.js → chunk-5ULZEGWX.js} +32 -13
- package/dist/chunk-5ULZEGWX.js.map +1 -0
- package/dist/{chunk-I7GDBJ3N.mjs → chunk-7S572BNQ.mjs} +32 -13
- package/dist/chunk-7S572BNQ.mjs.map +1 -0
- package/dist/chunk-AFHAQGRO.mjs +1 -0
- package/dist/chunk-BIXVP43C.js +66 -0
- package/dist/chunk-BIXVP43C.js.map +1 -0
- package/dist/{chunk-F7ZJVYNV.mjs → chunk-H6JUN6QG.mjs} +3 -3
- package/dist/chunk-H6JUN6QG.mjs.map +1 -0
- package/dist/chunk-KKW4VCZA.mjs +83 -0
- package/dist/chunk-KKW4VCZA.mjs.map +1 -0
- package/dist/{chunk-OUZ7DBAS.js → chunk-NPNMMEUT.js} +4 -39
- package/dist/chunk-NPNMMEUT.js.map +1 -0
- package/dist/chunk-PASP6W6Z.js +1 -0
- package/dist/{chunk-KUAGUN4H.js.map → chunk-PASP6W6Z.js.map} +1 -1
- package/dist/{chunk-2YW3O3BV.js → chunk-QGEGS5RO.js} +3 -48
- package/dist/chunk-QGEGS5RO.js.map +1 -0
- package/dist/chunk-RZ7GZGD2.js +25 -0
- package/dist/chunk-RZ7GZGD2.js.map +1 -0
- package/dist/chunk-UTOQXAFU.mjs +66 -0
- package/dist/chunk-UTOQXAFU.mjs.map +1 -0
- package/dist/{chunk-GUV5RZUP.mjs → chunk-VS4FD2JZ.mjs} +3 -38
- package/dist/chunk-VS4FD2JZ.mjs.map +1 -0
- package/dist/chunk-XRA3KMRB.mjs +25 -0
- package/dist/chunk-XRA3KMRB.mjs.map +1 -0
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.mjs +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.mjs +1 -1
- package/dist/components/calendar.d.mts +15 -37
- package/dist/components/calendar.d.ts +15 -37
- package/dist/components/calendar.js +3 -3
- package/dist/components/calendar.mjs +2 -2
- package/dist/components/combo-box.d.mts +2 -185
- package/dist/components/combo-box.d.ts +2 -185
- package/dist/components/combo-box.js +2 -4
- package/dist/components/combo-box.js.map +1 -1
- package/dist/components/combo-box.mjs +1 -3
- package/dist/components/govt-banner.js +1 -1
- package/dist/components/govt-banner.mjs +1 -1
- package/dist/components/index.d.mts +5 -2
- package/dist/components/index.d.ts +5 -2
- package/dist/components/index.js +26 -10
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +34 -18
- package/dist/components/list-box.d.mts +205 -0
- package/dist/components/list-box.d.ts +205 -0
- package/dist/components/list-box.js +15 -0
- package/dist/components/list-box.js.map +1 -0
- package/dist/components/list-box.mjs +15 -0
- package/dist/components/list-box.mjs.map +1 -0
- package/dist/components/menu.d.mts +463 -0
- package/dist/components/menu.d.ts +463 -0
- package/dist/components/menu.js +22 -0
- package/dist/components/menu.js.map +1 -0
- package/dist/components/menu.mjs +22 -0
- package/dist/components/menu.mjs.map +1 -0
- package/dist/components/popover.d.mts +73 -0
- package/dist/components/popover.d.ts +73 -0
- package/dist/components/popover.js +11 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/popover.mjs +11 -0
- package/dist/components/popover.mjs.map +1 -0
- package/dist/components/select.js +2 -2
- package/dist/components/select.mjs +1 -1
- package/dist/components/tag-field.d.mts +4 -105
- package/dist/components/tag-field.d.ts +4 -105
- package/dist/components/tag-field.js +3 -5
- package/dist/components/tag-field.js.map +1 -1
- package/dist/components/tag-field.mjs +2 -4
- package/dist/components/toggle.js +1 -1
- package/dist/components/toggle.mjs +1 -1
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +29 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +37 -21
- package/dist/utils/index.js +4 -4
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +4 -4
- package/package.json +3 -3
- package/src/tailwind.css +16 -0
- package/dist/chunk-2YW3O3BV.js.map +0 -1
- package/dist/chunk-ARRSHAJG.mjs +0 -1
- package/dist/chunk-F7ZJVYNV.mjs.map +0 -1
- package/dist/chunk-GUV5RZUP.mjs.map +0 -1
- package/dist/chunk-I7GDBJ3N.mjs.map +0 -1
- package/dist/chunk-KUAGUN4H.js +0 -1
- package/dist/chunk-NEO5ZU5V.js.map +0 -1
- package/dist/chunk-OUZ7DBAS.js.map +0 -1
- package/dist/chunk-Z5EKAZRY.mjs.map +0 -1
- /package/dist/{chunk-ARRSHAJG.mjs.map → chunk-AFHAQGRO.mjs.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/menu.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\nimport { listBoxItemStyles } from \"./list-box\"\n\nexport const menuItemStyles = tv({\n extend: listBoxItemStyles,\n slots: {\n container: \"flex flex-row items-center gap-2\",\n iconContainer: \"flex items-center\",\n icon: \"\",\n },\n variants: {\n size: {\n xs: {\n iconContainer: \"w-3.5\",\n icon: \"size-3.5\",\n },\n sm: {\n iconContainer: \"w-4\",\n icon: \"size-4\",\n },\n md: {\n iconContainer: \"w-4\",\n icon: \"size-4\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type MenuItemVariantProps = VariantProps<typeof menuItemStyles>\nexport type MenuItemVariantSlots = keyof ReturnType<typeof menuItemStyles>\n\nexport const menuStyles = tv({\n slots: {\n base: \"scrollbar-hide max-h-[inherit] overflow-x-hidden overflow-y-auto\",\n popover: \"min-w-(--trigger-width)\",\n separator: \"border-t border-gray-200\",\n },\n variants: {\n variant: {},\n size: {\n xs: \"\",\n sm: \"\",\n md: \"\",\n },\n isEmpty: {\n true: \"\",\n },\n },\n\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type MenuVariantProps = VariantProps<typeof menuStyles>\nexport type MenuVariantSlots = keyof ReturnType<typeof menuStyles>\n\nexport const menuSectionStyles = tv({\n slots: {\n base: \"\",\n header:\n \"bg-utility-ui text-base-content-strong border-base-divider-medium -mt-px truncate border-y\",\n },\n variants: {\n size: {\n xs: { header: \"prose-subhead-2 px-3 py-2\" },\n sm: { header: \"prose-subhead-2 px-3 py-2.5\" },\n md: { header: \"prose-subhead-1 px-4 py-3\" },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type MenuSectionVariantProps = VariantProps<typeof menuSectionStyles>\nexport type MenuSectionVariantSlots = keyof ReturnType<typeof menuSectionStyles>\n\nexport const menuDividerStyles = tv({\n base: \"border-base-divider-medium my-1 border-b\",\n})\n"],"mappings":";;;;;;;;AAKO,IAAM,iBAAiB,GAAG;AAAA,EAC/B,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,WAAW;AAAA,IACX,eAAe;AAAA,IACf,MAAM;AAAA,EACR;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,QACF,eAAe;AAAA,QACf,MAAM;AAAA,MACR;AAAA,MACA,IAAI;AAAA,QACF,eAAe;AAAA,QACf,MAAM;AAAA,MACR;AAAA,MACA,IAAI;AAAA,QACF,eAAe;AAAA,QACf,MAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;AAKM,IAAM,aAAa,GAAG;AAAA,EAC3B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,EACb;AAAA,EACA,UAAU;AAAA,IACR,SAAS,CAAC;AAAA,IACV,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IACN;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;AAKM,IAAM,oBAAoB,GAAG;AAAA,EAClC,OAAO;AAAA,IACL,MAAM;AAAA,IACN,QACE;AAAA,EACJ;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI,EAAE,QAAQ,4BAA4B;AAAA,MAC1C,IAAI,EAAE,QAAQ,8BAA8B;AAAA,MAC5C,IAAI,EAAE,QAAQ,4BAA4B;AAAA,IAC5C;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;AAKM,IAAM,oBAAoB,GAAG;AAAA,EAClC,MAAM;AACR,CAAC;","names":[]}
|
|
@@ -6,41 +6,6 @@ var _chunkX2UCVIR5js = require('./chunk-X2UCVIR5.js');
|
|
|
6
6
|
var _chunkUZONBJUXjs = require('./chunk-UZONBJUX.js');
|
|
7
7
|
|
|
8
8
|
// src/components/tag-field.ts
|
|
9
|
-
var tagFieldItemStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
10
|
-
slots: {
|
|
11
|
-
container: "text-base-content-strong aria-disabled:text-interaction-support-disabled-content hover:bg-interaction-muted-main-hover active:bg-interaction-muted-main-active flex cursor-pointer flex-col aria-disabled:cursor-not-allowed",
|
|
12
|
-
label: "line-clamp-1",
|
|
13
|
-
description: "text-base-content-medium"
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
xs: {
|
|
18
|
-
container: "prose-body-2 px-3 py-3",
|
|
19
|
-
description: "prose-body-2"
|
|
20
|
-
},
|
|
21
|
-
sm: {
|
|
22
|
-
container: "prose-body-2 px-3 py-3",
|
|
23
|
-
description: "prose-body-2"
|
|
24
|
-
},
|
|
25
|
-
md: { container: "prose-body-1 px-4 py-3", description: "prose-body-2" }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
compoundVariants: [
|
|
29
|
-
{
|
|
30
|
-
size: "md",
|
|
31
|
-
isSelected: true,
|
|
32
|
-
className: { container: "prose-subhead-1" }
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
size: ["sm", "xs"],
|
|
36
|
-
isSelected: true,
|
|
37
|
-
className: { container: "prose-subhead-2" }
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
size: "md"
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
9
|
var tagFieldStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
45
10
|
slots: {
|
|
46
11
|
root: "flex flex-col gap-2",
|
|
@@ -56,7 +21,8 @@ var tagFieldStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
|
56
21
|
trigger: "flex items-center aria-expanded:rotate-180",
|
|
57
22
|
description: "",
|
|
58
23
|
error: "",
|
|
59
|
-
|
|
24
|
+
popover: "rounded-t-none",
|
|
25
|
+
list: "relative z-10 max-h-80 w-(--trigger-width) overflow-y-auto p-0"
|
|
60
26
|
},
|
|
61
27
|
variants: {
|
|
62
28
|
isDisabled: {
|
|
@@ -96,6 +62,5 @@ var tagFieldStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
|
96
62
|
|
|
97
63
|
|
|
98
64
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
//# sourceMappingURL=chunk-OUZ7DBAS.js.map
|
|
65
|
+
exports.tagFieldStyles = tagFieldStyles;
|
|
66
|
+
//# sourceMappingURL=chunk-NPNMMEUT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-NPNMMEUT.js","../src/components/tag-field.ts"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACFO,IAAM,eAAA,EAAiB,iCAAA;AAAG,EAC/B,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,qBAAA;AAAA,IACN,KAAA,EAAO,EAAA;AAAA,IACP,KAAA,EAAO,uBAAA;AAAA,IACP,GAAA,EAAK;AAAA,MACH,GAAG,oCAAA;AAAA,MACH;AAAA,IACF,CAAA;AAAA,IACA,OAAA,EAAS,cAAA;AAAA,IACT,OAAA,EAAS,yBAAA;AAAA,IACT,KAAA,EAAO,qBAAA;AAAA,IACP,OAAA,EAAS,4CAAA;AAAA,IACT,WAAA,EAAa,EAAA;AAAA,IACb,KAAA,EAAO,EAAA;AAAA,IACP,OAAA,EAAS,gBAAA;AAAA,IACT,IAAA,EAAM;AAAA,EACR,CAAA;AAAA,EACA,QAAA,EAAU;AAAA,IACR,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,QACJ,KAAA,EAAO;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IACA,OAAA,EAAS,CAAC,CAAA;AAAA,IACV,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,sCAAA;AAAA,QACP,KAAA,EAAO,6CAAA;AAAA,QACP,GAAA,EAAK,oCAAA;AAAA,QACL,OAAA,EAAS,UAAA;AAAA,QACT,OAAA,EAAS;AAAA,MACX,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,yCAAA;AAAA,QACP,KAAA,EAAO,UAAA;AAAA,QACP,GAAA,EAAK,0BAAA;AAAA,QACL,OAAA,EAAS,UAAA;AAAA,QACT,OAAA,EAAS;AAAA,MACX,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,yCAAA;AAAA,QACP,KAAA,EAAO,UAAA;AAAA,QACP,GAAA,EAAK,2BAAA;AAAA,QACL,OAAA,EAAS,UAAA;AAAA,QACT,OAAA,EAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM;AAAA,EACR;AACF,CAAC,CAAA;ADID;AACA;AACE;AACF,wCAAC","file":"/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-NPNMMEUT.js","sourcesContent":[null,"import type { VariantProps } from \"tailwind-variants\"\n\nimport { focusVisibleClasses } from \"../utils\"\nimport { tv } from \"../utils/tv\"\n\nexport const tagFieldStyles = tv({\n slots: {\n root: \"flex flex-col gap-2\",\n label: \"\",\n group: \"flex-wrap items-start\",\n tag: [\n ...focusVisibleClasses,\n \"bg-interaction-main-subtle-default hover:bg-interaction-main-subtle-hover focus:bg-interaction-main-subtle-hover text-interaction-main-default flex cursor-pointer flex-row items-center gap-1 rounded-md transition\",\n ],\n tagText: \"line-clamp-1\",\n tagIcon: \"shrink-0 cursor-pointer\",\n field: \"h-auto min-w-24 p-0\",\n trigger: \"flex items-center aria-expanded:rotate-180\",\n description: \"\",\n error: \"\",\n popover: \"rounded-t-none\",\n list: \"relative z-10 max-h-80 w-(--trigger-width) overflow-y-auto p-0\",\n },\n variants: {\n isDisabled: {\n true: {\n group: \"\",\n },\n },\n variant: {},\n size: {\n xs: {\n group: \"prose-body-2 min-h-9 gap-1 px-2 py-1\",\n field: \"placeholder:prose-subhead-5 my-0.5 h-5 px-1\",\n tag: \"prose-caption-1 my-0.5 px-2 py-0.5\",\n tagIcon: \"size-3.5\",\n trigger: \"h-6 w-4\",\n },\n sm: {\n group: \"prose-body-2 min-h-10 gap-1 px-2 py-1.5\",\n field: \"h-6 px-1\",\n tag: \"prose-body-2 px-2 py-0.5\",\n tagIcon: \"size-4.5\",\n trigger: \"h-6 w-4\",\n },\n md: {\n group: \"prose-body-1 min-h-11 gap-1 px-2 py-1.5\",\n field: \"h-7 px-2\",\n tag: \"prose-subhead-2 px-2 py-1\",\n tagIcon: \"size-4.5\",\n trigger: \"h-7 w-5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type TagFieldVariantProps = VariantProps<typeof tagFieldStyles>\nexport type TagFieldSlots = keyof ReturnType<typeof tagFieldStyles>\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=chunk-PASP6W6Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-PASP6W6Z.js"],"names":[],"mappings":"AAAA","file":"/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-PASP6W6Z.js"}
|
|
@@ -14,7 +14,7 @@ var comboBoxStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
|
14
14
|
expandButton: "h-full cursor-pointer",
|
|
15
15
|
icon: "",
|
|
16
16
|
field: "h-full w-full overflow-ellipsis outline-hidden",
|
|
17
|
-
popover: "mt-0.5 w-(--trigger-width) overflow-hidden
|
|
17
|
+
popover: "mt-0.5 w-(--trigger-width) overflow-hidden rounded-t-none",
|
|
18
18
|
list: "w-unset block max-h-[300px] min-h-0 overflow-y-auto"
|
|
19
19
|
},
|
|
20
20
|
base: [],
|
|
@@ -55,50 +55,6 @@ var comboBoxStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
|
55
55
|
size: "md"
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
var comboBoxItemStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
59
|
-
slots: {
|
|
60
|
-
container: "text-base-content-strong flex cursor-pointer flex-col",
|
|
61
|
-
label: "",
|
|
62
|
-
description: "text-base-content-medium"
|
|
63
|
-
},
|
|
64
|
-
variants: {
|
|
65
|
-
size: {
|
|
66
|
-
xs: {
|
|
67
|
-
container: "prose-body-2 px-3 py-3",
|
|
68
|
-
description: "prose-body-2"
|
|
69
|
-
},
|
|
70
|
-
sm: {
|
|
71
|
-
container: "prose-body-2 px-3 py-3",
|
|
72
|
-
description: "prose-body-2"
|
|
73
|
-
},
|
|
74
|
-
md: { container: "prose-body-1 px-4 py-3", description: "prose-body-2" }
|
|
75
|
-
},
|
|
76
|
-
isFocused: {
|
|
77
|
-
true: { container: "bg-interaction-muted-main-hover" }
|
|
78
|
-
},
|
|
79
|
-
isSelected: {
|
|
80
|
-
true: { container: "bg-interaction-muted-main-active" }
|
|
81
|
-
},
|
|
82
|
-
isDisabled: {
|
|
83
|
-
true: { container: "cursor-not-allowed" }
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
compoundVariants: [
|
|
87
|
-
{
|
|
88
|
-
size: "md",
|
|
89
|
-
isSelected: true,
|
|
90
|
-
className: { container: "prose-subhead-1" }
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
size: ["sm", "xs"],
|
|
94
|
-
isSelected: true,
|
|
95
|
-
className: { container: "prose-subhead-2" }
|
|
96
|
-
}
|
|
97
|
-
],
|
|
98
|
-
defaultVariants: {
|
|
99
|
-
size: "md"
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
58
|
var comboBoxClearButtonStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
103
59
|
base: "border-base-divider-strong text-base-content-strong z-0 -ml-px cursor-pointer rounded-sm rounded-l-none border outline-hidden transition",
|
|
104
60
|
variants: {
|
|
@@ -131,6 +87,5 @@ var comboBoxClearButtonStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
|
131
87
|
|
|
132
88
|
|
|
133
89
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
//# sourceMappingURL=chunk-2YW3O3BV.js.map
|
|
90
|
+
exports.comboBoxStyles = comboBoxStyles; exports.comboBoxClearButtonStyles = comboBoxClearButtonStyles;
|
|
91
|
+
//# sourceMappingURL=chunk-QGEGS5RO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-QGEGS5RO.js","../src/components/combo-box.ts"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,sDAA4B;AAC5B;AACA;ACFO,IAAM,eAAA,EAAiB,iCAAA;AAAG,EAC/B,KAAA,EAAO;AAAA,IACL,SAAA,EAAW,mCAAA;AAAA,IACX,KAAA,EAAO,EAAA;AAAA,IACP,KAAA,EAAO,aAAA;AAAA,IACP,YAAA,EAAc,uBAAA;AAAA,IACd,IAAA,EAAM,EAAA;AAAA,IACN,KAAA,EAAO,gDAAA;AAAA,IACP,OAAA,EAAS,2DAAA;AAAA,IACT,IAAA,EAAM;AAAA,EACR,CAAA;AAAA,EACA,IAAA,EAAM,CAAC,CAAA;AAAA,EACP,QAAA,EAAU;AAAA,IACR,WAAA,EAAa;AAAA,MACX,IAAA,EAAM;AAAA,QACJ,KAAA,EAAO;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IACA,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,QACJ,YAAA,EACE;AAAA,MACJ;AAAA,IACF,CAAA;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,MAAA;AAAA,QACP,KAAA,EAAO,CAAC,4BAAA,CAAY,QAAA,CAAS,IAAA,CAAK,EAAA,EAAI,YAAY,CAAA;AAAA,QAClD,YAAA,EAAc,gBAAA;AAAA,QACd,IAAA,EAAM;AAAA,MACR,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,OAAA,EAAS,MAAA;AAAA,QACT,KAAA,EAAO,MAAA;AAAA,QACP,KAAA,EAAO,CAAC,4BAAA,CAAY,QAAA,CAAS,IAAA,CAAK,EAAA,EAAI,YAAY,CAAA;AAAA,QAClD,YAAA,EAAc,mBAAA;AAAA,QACd,IAAA,EAAM;AAAA,MACR,CAAA;AAAA,MACA,EAAA,EAAI;AAAA,QACF,KAAA,EAAO,CAAC,4BAAA,CAAY,QAAA,CAAS,IAAA,CAAK,EAAA,EAAI,YAAY,CAAA;AAAA,QAClD,KAAA,EAAO,MAAA;AAAA,QACP,YAAA,EAAc,iBAAA;AAAA,QACd,IAAA,EAAM;AAAA,MACR;AAAA,IACF;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM;AAAA,EACR;AACF,CAAC,CAAA;AAKM,IAAM,0BAAA,EAA4B,iCAAA;AAAG,EAC1C,IAAA,EAAM,0IAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,YAAA;AAAA,MACJ,EAAA,EAAI,aAAA;AAAA,MACJ,EAAA,EAAI;AAAA,IACN;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB;AAAA,IACf,IAAA,EAAM;AAAA,EACR;AACF,CAAC,CAAA;ADDD;AACA;AACE;AACA;AACF,uGAAC","file":"/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-QGEGS5RO.js","sourcesContent":[null,"import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\nimport { inputStyles } from \"./input\"\n\nexport const comboBoxStyles = tv({\n slots: {\n container: \"group isolate flex flex-col gap-2\",\n label: \"\",\n group: \"z-10 flex-1\",\n expandButton: \"h-full cursor-pointer\",\n icon: \"\",\n field: \"h-full w-full overflow-ellipsis outline-hidden\",\n popover: \"mt-0.5 w-(--trigger-width) overflow-hidden rounded-t-none\",\n list: \"w-unset block max-h-[300px] min-h-0 overflow-y-auto\",\n },\n base: [],\n variants: {\n isClearable: {\n true: {\n group: \"rounded-r-none\",\n },\n },\n isDisabled: {\n true: {\n expandButton:\n \"text-interaction-support-disabled-content cursor-default\",\n },\n },\n size: {\n xs: {\n field: \"px-3\",\n group: [inputStyles.variants.size.xs, \"gap-1 px-0\"],\n expandButton: \"-my-2 h-9 px-3\",\n icon: \"h-4 w-4\",\n },\n sm: {\n popover: \"mt-1\",\n field: \"px-3\",\n group: [inputStyles.variants.size.sm, \"gap-1 px-0\"],\n expandButton: \"-my-2.5 h-10 px-3\",\n icon: \"h-4 w-4\",\n },\n md: {\n group: [inputStyles.variants.size.md, \"gap-1 px-0\"],\n field: \"px-4\",\n expandButton: \"-my-2 h-11 px-4\",\n icon: \"h-5 w-5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type ComboBoxVariantProps = VariantProps<typeof comboBoxStyles>\nexport type ComboBoxSlots = keyof ReturnType<typeof comboBoxStyles>\n\nexport const comboBoxClearButtonStyles = tv({\n base: \"border-base-divider-strong text-base-content-strong z-0 -ml-px cursor-pointer rounded-sm rounded-l-none border outline-hidden transition\",\n variants: {\n isDisabled: {\n true: \"bg-interaction-support-disabled text-interaction-support-disabled-content cursor-default\",\n },\n isInactive: {\n true: \"text-interaction-support-disabled-content\",\n },\n isHovered: {\n true: \"bg-interaction-muted-main-hover\",\n },\n isFocused: {\n true: \"border-utility-focus-default shadow-utility-focus-default z-20 shadow-[0_0_0_1px]\",\n },\n isPressed: {\n true: \"text-base-content-strong\",\n },\n size: {\n xs: \"h-9 px-2.5\",\n sm: \"h-10 px-2.5\",\n md: \"h-11 px-3\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkUZONBJUXjs = require('./chunk-UZONBJUX.js');
|
|
4
|
+
|
|
5
|
+
// src/components/popover.ts
|
|
6
|
+
var popoverStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
7
|
+
base: "bg-utility-ui text-base-content-strong rounded-sm bg-clip-padding shadow-sm forced-colors:bg-[Canvas]",
|
|
8
|
+
variants: {
|
|
9
|
+
isEntering: {
|
|
10
|
+
true: "motion-safe:animate-in motion-safe:fade-in placement-bottom:slide-in-from-top-1 placement-top:slide-in-from-bottom-1 placement-left:slide-in-from-right-1 placement-right:slide-in-from-left-1 motion-safe:duration-200 motion-safe:ease-out"
|
|
11
|
+
},
|
|
12
|
+
isExiting: {
|
|
13
|
+
true: "motion-safe:animate-out motion-safe:fade-out placement-bottom:slide-out-to-top-1 placement-top:slide-out-to-bottom-1 placement-left:slide-out-to-right-1 placement-right:slide-out-to-left-1 ease-in motion-safe:duration-150"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var popoverArrowStyles = _chunkUZONBJUXjs.tv.call(void 0, {
|
|
18
|
+
base: "group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90 fill-utility-ui block forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
exports.popoverStyles = popoverStyles; exports.popoverArrowStyles = popoverArrowStyles;
|
|
25
|
+
//# sourceMappingURL=chunk-RZ7GZGD2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-RZ7GZGD2.js","../src/components/popover.ts"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACA;ACAO,IAAM,cAAA,EAAgB,iCAAA;AAAG,EAC9B,IAAA,EAAM,uGAAA;AAAA,EACN,QAAA,EAAU;AAAA,IACR,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,IACR,CAAA;AAAA,IACA,SAAA,EAAW;AAAA,MACT,IAAA,EAAM;AAAA,IACR;AAAA,EACF;AACF,CAAC,CAAA;AAIM,IAAM,mBAAA,EAAqB,iCAAA;AAAG,EACnC,IAAA,EAAM;AACR,CAAC,CAAA;ADDD;AACA;AACE;AACA;AACF,uFAAC","file":"/home/runner/work/oui-design-system/oui-design-system/packages/theme/dist/chunk-RZ7GZGD2.js","sourcesContent":[null,"import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\n\nexport const popoverStyles = tv({\n base: \"bg-utility-ui text-base-content-strong rounded-sm bg-clip-padding shadow-sm forced-colors:bg-[Canvas]\",\n variants: {\n isEntering: {\n true: \"motion-safe:animate-in motion-safe:fade-in placement-bottom:slide-in-from-top-1 placement-top:slide-in-from-bottom-1 placement-left:slide-in-from-right-1 placement-right:slide-in-from-left-1 motion-safe:duration-200 motion-safe:ease-out\",\n },\n isExiting: {\n true: \"motion-safe:animate-out motion-safe:fade-out placement-bottom:slide-out-to-top-1 placement-top:slide-out-to-bottom-1 placement-left:slide-out-to-right-1 placement-right:slide-out-to-left-1 ease-in motion-safe:duration-150\",\n },\n },\n})\n\nexport type PopoverVariantProps = VariantProps<typeof popoverStyles>\n\nexport const popoverArrowStyles = tv({\n base: \"group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90 fill-utility-ui block forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]\",\n})\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-4JENAMGV.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/list-box.ts
|
|
6
|
+
var listBoxItemStyles = tv({
|
|
7
|
+
slots: {
|
|
8
|
+
container: "text-base-content-strong flex cursor-pointer flex-col",
|
|
9
|
+
label: "line-clamp-1",
|
|
10
|
+
description: "text-base-content-medium"
|
|
11
|
+
},
|
|
12
|
+
variants: {
|
|
13
|
+
size: {
|
|
14
|
+
xs: {
|
|
15
|
+
container: "prose-body-2 px-3 py-3",
|
|
16
|
+
description: "prose-body-2"
|
|
17
|
+
},
|
|
18
|
+
sm: {
|
|
19
|
+
container: "prose-body-2 px-3 py-3",
|
|
20
|
+
description: "prose-body-2"
|
|
21
|
+
},
|
|
22
|
+
md: { container: "prose-body-1 px-4 py-3", description: "prose-body-2" }
|
|
23
|
+
},
|
|
24
|
+
isFocused: {
|
|
25
|
+
true: { container: "bg-interaction-muted-main-hover" }
|
|
26
|
+
},
|
|
27
|
+
isOpen: {
|
|
28
|
+
true: ""
|
|
29
|
+
},
|
|
30
|
+
isSelected: {
|
|
31
|
+
true: { container: "bg-interaction-muted-main-active" }
|
|
32
|
+
},
|
|
33
|
+
isDisabled: {
|
|
34
|
+
true: {
|
|
35
|
+
container: "text-interaction-support-disabled-content cursor-not-allowed"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
compoundVariants: [
|
|
40
|
+
{
|
|
41
|
+
isFocused: false,
|
|
42
|
+
isOpen: true,
|
|
43
|
+
className: {
|
|
44
|
+
container: "bg-interaction-muted-neutral-hover"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
size: "md",
|
|
49
|
+
isSelected: true,
|
|
50
|
+
className: { container: "prose-subhead-1" }
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
size: ["sm", "xs"],
|
|
54
|
+
isSelected: true,
|
|
55
|
+
className: { container: "prose-subhead-2" }
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
defaultVariants: {
|
|
59
|
+
size: "md"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
listBoxItemStyles
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=chunk-UTOQXAFU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/list-box.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils\"\n\nexport const listBoxItemStyles = tv({\n slots: {\n container: \"text-base-content-strong flex cursor-pointer flex-col\",\n label: \"line-clamp-1\",\n description: \"text-base-content-medium\",\n },\n variants: {\n size: {\n xs: {\n container: \"prose-body-2 px-3 py-3\",\n description: \"prose-body-2\",\n },\n sm: {\n container: \"prose-body-2 px-3 py-3\",\n description: \"prose-body-2\",\n },\n md: { container: \"prose-body-1 px-4 py-3\", description: \"prose-body-2\" },\n },\n isFocused: {\n true: { container: \"bg-interaction-muted-main-hover\" },\n },\n isOpen: {\n true: \"\",\n },\n isSelected: {\n true: { container: \"bg-interaction-muted-main-active\" },\n },\n isDisabled: {\n true: {\n container:\n \"text-interaction-support-disabled-content cursor-not-allowed\",\n },\n },\n },\n compoundVariants: [\n {\n isFocused: false,\n isOpen: true,\n className: {\n container: \"bg-interaction-muted-neutral-hover\",\n },\n },\n {\n size: \"md\",\n isSelected: true,\n className: { container: \"prose-subhead-1\" },\n },\n {\n size: [\"sm\", \"xs\"],\n isSelected: true,\n className: { container: \"prose-subhead-2\" },\n },\n ],\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type ListBoxItemVariantProps = VariantProps<typeof listBoxItemStyles>\nexport type ListBoxItemSlots = keyof ReturnType<typeof listBoxItemStyles>\n"],"mappings":";;;;;AAIO,IAAM,oBAAoB,GAAG;AAAA,EAClC,OAAO;AAAA,IACL,WAAW;AAAA,IACX,OAAO;AAAA,IACP,aAAa;AAAA,EACf;AAAA,EACA,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,QACF,WAAW;AAAA,QACX,aAAa;AAAA,MACf;AAAA,MACA,IAAI;AAAA,QACF,WAAW;AAAA,QACX,aAAa;AAAA,MACf;AAAA,MACA,IAAI,EAAE,WAAW,0BAA0B,aAAa,eAAe;AAAA,IACzE;AAAA,IACA,WAAW;AAAA,MACT,MAAM,EAAE,WAAW,kCAAkC;AAAA,IACvD;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,YAAY;AAAA,MACV,MAAM,EAAE,WAAW,mCAAmC;AAAA,IACxD;AAAA,IACA,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,WACE;AAAA,MACJ;AAAA,IACF;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB;AAAA,MACE,WAAW;AAAA,MACX,QAAQ;AAAA,MACR,WAAW;AAAA,QACT,WAAW;AAAA,MACb;AAAA,IACF;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,YAAY;AAAA,MACZ,WAAW,EAAE,WAAW,kBAAkB;AAAA,IAC5C;AAAA,IACA;AAAA,MACE,MAAM,CAAC,MAAM,IAAI;AAAA,MACjB,YAAY;AAAA,MACZ,WAAW,EAAE,WAAW,kBAAkB;AAAA,IAC5C;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;","names":[]}
|
|
@@ -6,41 +6,6 @@ import {
|
|
|
6
6
|
} from "./chunk-4JENAMGV.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/tag-field.ts
|
|
9
|
-
var tagFieldItemStyles = tv({
|
|
10
|
-
slots: {
|
|
11
|
-
container: "text-base-content-strong aria-disabled:text-interaction-support-disabled-content hover:bg-interaction-muted-main-hover active:bg-interaction-muted-main-active flex cursor-pointer flex-col aria-disabled:cursor-not-allowed",
|
|
12
|
-
label: "line-clamp-1",
|
|
13
|
-
description: "text-base-content-medium"
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
size: {
|
|
17
|
-
xs: {
|
|
18
|
-
container: "prose-body-2 px-3 py-3",
|
|
19
|
-
description: "prose-body-2"
|
|
20
|
-
},
|
|
21
|
-
sm: {
|
|
22
|
-
container: "prose-body-2 px-3 py-3",
|
|
23
|
-
description: "prose-body-2"
|
|
24
|
-
},
|
|
25
|
-
md: { container: "prose-body-1 px-4 py-3", description: "prose-body-2" }
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
compoundVariants: [
|
|
29
|
-
{
|
|
30
|
-
size: "md",
|
|
31
|
-
isSelected: true,
|
|
32
|
-
className: { container: "prose-subhead-1" }
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
size: ["sm", "xs"],
|
|
36
|
-
isSelected: true,
|
|
37
|
-
className: { container: "prose-subhead-2" }
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
defaultVariants: {
|
|
41
|
-
size: "md"
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
9
|
var tagFieldStyles = tv({
|
|
45
10
|
slots: {
|
|
46
11
|
root: "flex flex-col gap-2",
|
|
@@ -56,7 +21,8 @@ var tagFieldStyles = tv({
|
|
|
56
21
|
trigger: "flex items-center aria-expanded:rotate-180",
|
|
57
22
|
description: "",
|
|
58
23
|
error: "",
|
|
59
|
-
|
|
24
|
+
popover: "rounded-t-none",
|
|
25
|
+
list: "relative z-10 max-h-80 w-(--trigger-width) overflow-y-auto p-0"
|
|
60
26
|
},
|
|
61
27
|
variants: {
|
|
62
28
|
isDisabled: {
|
|
@@ -95,7 +61,6 @@ var tagFieldStyles = tv({
|
|
|
95
61
|
});
|
|
96
62
|
|
|
97
63
|
export {
|
|
98
|
-
tagFieldItemStyles,
|
|
99
64
|
tagFieldStyles
|
|
100
65
|
};
|
|
101
|
-
//# sourceMappingURL=chunk-
|
|
66
|
+
//# sourceMappingURL=chunk-VS4FD2JZ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tag-field.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\"\n\nimport { focusVisibleClasses } from \"../utils\"\nimport { tv } from \"../utils/tv\"\n\nexport const tagFieldStyles = tv({\n slots: {\n root: \"flex flex-col gap-2\",\n label: \"\",\n group: \"flex-wrap items-start\",\n tag: [\n ...focusVisibleClasses,\n \"bg-interaction-main-subtle-default hover:bg-interaction-main-subtle-hover focus:bg-interaction-main-subtle-hover text-interaction-main-default flex cursor-pointer flex-row items-center gap-1 rounded-md transition\",\n ],\n tagText: \"line-clamp-1\",\n tagIcon: \"shrink-0 cursor-pointer\",\n field: \"h-auto min-w-24 p-0\",\n trigger: \"flex items-center aria-expanded:rotate-180\",\n description: \"\",\n error: \"\",\n popover: \"rounded-t-none\",\n list: \"relative z-10 max-h-80 w-(--trigger-width) overflow-y-auto p-0\",\n },\n variants: {\n isDisabled: {\n true: {\n group: \"\",\n },\n },\n variant: {},\n size: {\n xs: {\n group: \"prose-body-2 min-h-9 gap-1 px-2 py-1\",\n field: \"placeholder:prose-subhead-5 my-0.5 h-5 px-1\",\n tag: \"prose-caption-1 my-0.5 px-2 py-0.5\",\n tagIcon: \"size-3.5\",\n trigger: \"h-6 w-4\",\n },\n sm: {\n group: \"prose-body-2 min-h-10 gap-1 px-2 py-1.5\",\n field: \"h-6 px-1\",\n tag: \"prose-body-2 px-2 py-0.5\",\n tagIcon: \"size-4.5\",\n trigger: \"h-6 w-4\",\n },\n md: {\n group: \"prose-body-1 min-h-11 gap-1 px-2 py-1.5\",\n field: \"h-7 px-2\",\n tag: \"prose-subhead-2 px-2 py-1\",\n tagIcon: \"size-4.5\",\n trigger: \"h-7 w-5\",\n },\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n})\n\nexport type TagFieldVariantProps = VariantProps<typeof tagFieldStyles>\nexport type TagFieldSlots = keyof ReturnType<typeof tagFieldStyles>\n"],"mappings":";;;;;;;;AAKO,IAAM,iBAAiB,GAAG;AAAA,EAC/B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,IACP,KAAK;AAAA,MACH,GAAG;AAAA,MACH;AAAA,IACF;AAAA,IACA,SAAS;AAAA,IACT,SAAS;AAAA,IACT,OAAO;AAAA,IACP,SAAS;AAAA,IACT,aAAa;AAAA,IACb,OAAO;AAAA,IACP,SAAS;AAAA,IACT,MAAM;AAAA,EACR;AAAA,EACA,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,SAAS,CAAC;AAAA,IACV,MAAM;AAAA,MACJ,IAAI;AAAA,QACF,OAAO;AAAA,QACP,OAAO;AAAA,QACP,KAAK;AAAA,QACL,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,MACA,IAAI;AAAA,QACF,OAAO;AAAA,QACP,OAAO;AAAA,QACP,KAAK;AAAA,QACL,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,MACA,IAAI;AAAA,QACF,OAAO;AAAA,QACP,OAAO;AAAA,QACP,KAAK;AAAA,QACL,SAAS;AAAA,QACT,SAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,MAAM;AAAA,EACR;AACF,CAAC;","names":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tv
|
|
3
|
+
} from "./chunk-4JENAMGV.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/popover.ts
|
|
6
|
+
var popoverStyles = tv({
|
|
7
|
+
base: "bg-utility-ui text-base-content-strong rounded-sm bg-clip-padding shadow-sm forced-colors:bg-[Canvas]",
|
|
8
|
+
variants: {
|
|
9
|
+
isEntering: {
|
|
10
|
+
true: "motion-safe:animate-in motion-safe:fade-in placement-bottom:slide-in-from-top-1 placement-top:slide-in-from-bottom-1 placement-left:slide-in-from-right-1 placement-right:slide-in-from-left-1 motion-safe:duration-200 motion-safe:ease-out"
|
|
11
|
+
},
|
|
12
|
+
isExiting: {
|
|
13
|
+
true: "motion-safe:animate-out motion-safe:fade-out placement-bottom:slide-out-to-top-1 placement-top:slide-out-to-bottom-1 placement-left:slide-out-to-right-1 placement-right:slide-out-to-left-1 ease-in motion-safe:duration-150"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
var popoverArrowStyles = tv({
|
|
18
|
+
base: "group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90 fill-utility-ui block forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]"
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
popoverStyles,
|
|
23
|
+
popoverArrowStyles
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=chunk-XRA3KMRB.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/popover.ts"],"sourcesContent":["import type { VariantProps } from \"tailwind-variants\"\n\nimport { tv } from \"../utils/tv\"\n\nexport const popoverStyles = tv({\n base: \"bg-utility-ui text-base-content-strong rounded-sm bg-clip-padding shadow-sm forced-colors:bg-[Canvas]\",\n variants: {\n isEntering: {\n true: \"motion-safe:animate-in motion-safe:fade-in placement-bottom:slide-in-from-top-1 placement-top:slide-in-from-bottom-1 placement-left:slide-in-from-right-1 placement-right:slide-in-from-left-1 motion-safe:duration-200 motion-safe:ease-out\",\n },\n isExiting: {\n true: \"motion-safe:animate-out motion-safe:fade-out placement-bottom:slide-out-to-top-1 placement-top:slide-out-to-bottom-1 placement-left:slide-out-to-right-1 placement-right:slide-out-to-left-1 ease-in motion-safe:duration-150\",\n },\n },\n})\n\nexport type PopoverVariantProps = VariantProps<typeof popoverStyles>\n\nexport const popoverArrowStyles = tv({\n base: \"group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90 fill-utility-ui block forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]\",\n})\n"],"mappings":";;;;;AAIO,IAAM,gBAAgB,GAAG;AAAA,EAC9B,MAAM;AAAA,EACN,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF,CAAC;AAIM,IAAM,qBAAqB,GAAG;AAAA,EACnC,MAAM;AACR,CAAC;","names":[]}
|
package/dist/components/badge.js
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var _chunkNL5XE6BWjs = require('../chunk-NL5XE6BW.js');
|
|
5
5
|
require('../chunk-7Y2HFACM.js');
|
|
6
6
|
require('../chunk-OLJN3WXR.js');
|
|
7
|
+
require('../chunk-ZXZSQRVC.js');
|
|
7
8
|
require('../chunk-2LTV7VB5.js');
|
|
8
9
|
require('../chunk-X2UCVIR5.js');
|
|
9
10
|
require('../chunk-ZIQLHX3U.js');
|
|
10
11
|
require('../chunk-O3I4FUFD.js');
|
|
11
|
-
require('../chunk-ZXZSQRVC.js');
|
|
12
12
|
require('../chunk-UZONBJUX.js');
|
|
13
13
|
require('../chunk-HEB3T2LL.js');
|
|
14
14
|
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
} from "../chunk-KHQ7EBS5.mjs";
|
|
5
5
|
import "../chunk-C7FUGWVY.mjs";
|
|
6
6
|
import "../chunk-M2BG3FAA.mjs";
|
|
7
|
+
import "../chunk-J2WMLIIA.mjs";
|
|
7
8
|
import "../chunk-XTHC46M2.mjs";
|
|
8
9
|
import "../chunk-SFKXXWVK.mjs";
|
|
9
10
|
import "../chunk-HAUMMW6T.mjs";
|
|
10
11
|
import "../chunk-TL5MCSZQ.mjs";
|
|
11
|
-
import "../chunk-J2WMLIIA.mjs";
|
|
12
12
|
import "../chunk-4JENAMGV.mjs";
|
|
13
13
|
import "../chunk-R6W5A7PF.mjs";
|
|
14
14
|
export {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
var _chunkOHMUYFGRjs = require('../chunk-OHMUYFGR.js');
|
|
4
4
|
require('../chunk-7Y2HFACM.js');
|
|
5
5
|
require('../chunk-OLJN3WXR.js');
|
|
6
|
+
require('../chunk-ZXZSQRVC.js');
|
|
6
7
|
require('../chunk-2LTV7VB5.js');
|
|
7
8
|
require('../chunk-X2UCVIR5.js');
|
|
8
9
|
require('../chunk-ZIQLHX3U.js');
|
|
9
10
|
require('../chunk-O3I4FUFD.js');
|
|
10
|
-
require('../chunk-ZXZSQRVC.js');
|
|
11
11
|
require('../chunk-UZONBJUX.js');
|
|
12
12
|
require('../chunk-HEB3T2LL.js');
|
|
13
13
|
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "../chunk-LB4U4MBD.mjs";
|
|
4
4
|
import "../chunk-C7FUGWVY.mjs";
|
|
5
5
|
import "../chunk-M2BG3FAA.mjs";
|
|
6
|
+
import "../chunk-J2WMLIIA.mjs";
|
|
6
7
|
import "../chunk-XTHC46M2.mjs";
|
|
7
8
|
import "../chunk-SFKXXWVK.mjs";
|
|
8
9
|
import "../chunk-HAUMMW6T.mjs";
|
|
9
10
|
import "../chunk-TL5MCSZQ.mjs";
|
|
10
|
-
import "../chunk-J2WMLIIA.mjs";
|
|
11
11
|
import "../chunk-4JENAMGV.mjs";
|
|
12
12
|
import "../chunk-R6W5A7PF.mjs";
|
|
13
13
|
export {
|
|
@@ -4,7 +4,7 @@ import * as tailwind_variants_dist_config_js from 'tailwind-variants/dist/config
|
|
|
4
4
|
|
|
5
5
|
declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
6
6
|
variant: {};
|
|
7
|
-
|
|
7
|
+
isRange: {
|
|
8
8
|
true: {
|
|
9
9
|
cell: string;
|
|
10
10
|
};
|
|
@@ -15,12 +15,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
isSelected: {
|
|
18
|
-
|
|
19
|
-
cell: string;
|
|
20
|
-
};
|
|
21
|
-
true: {
|
|
22
|
-
cell: string;
|
|
23
|
-
};
|
|
18
|
+
true: string;
|
|
24
19
|
};
|
|
25
20
|
size: {
|
|
26
21
|
sm: {
|
|
@@ -73,13 +68,14 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
73
68
|
selectors: string;
|
|
74
69
|
bottomContentWrapper: string;
|
|
75
70
|
todayButton: string;
|
|
71
|
+
errorMessage: string;
|
|
76
72
|
}, undefined, {
|
|
77
73
|
responsiveVariants?: boolean | (string | number | symbol)[] | {
|
|
78
74
|
size?: boolean | (string | number | symbol)[] | undefined;
|
|
79
75
|
variant?: boolean | (string | number | symbol)[] | undefined;
|
|
80
|
-
|
|
81
|
-
isMultipleMonths?: boolean | (string | number | symbol)[] | undefined;
|
|
76
|
+
isRange?: boolean | (string | number | symbol)[] | undefined;
|
|
82
77
|
isSelected?: boolean | (string | number | symbol)[] | undefined;
|
|
78
|
+
isMultipleMonths?: boolean | (string | number | symbol)[] | undefined;
|
|
83
79
|
} | undefined;
|
|
84
80
|
} & tailwind_variants_dist_config_js.TWMConfig & {
|
|
85
81
|
twMergeConfig: {
|
|
@@ -94,7 +90,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
94
90
|
};
|
|
95
91
|
}, {
|
|
96
92
|
variant: {};
|
|
97
|
-
|
|
93
|
+
isRange: {
|
|
98
94
|
true: {
|
|
99
95
|
cell: string;
|
|
100
96
|
};
|
|
@@ -105,12 +101,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
105
101
|
};
|
|
106
102
|
};
|
|
107
103
|
isSelected: {
|
|
108
|
-
|
|
109
|
-
cell: string;
|
|
110
|
-
};
|
|
111
|
-
true: {
|
|
112
|
-
cell: string;
|
|
113
|
-
};
|
|
104
|
+
true: string;
|
|
114
105
|
};
|
|
115
106
|
size: {
|
|
116
107
|
sm: {
|
|
@@ -163,9 +154,10 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
163
154
|
selectors: string;
|
|
164
155
|
bottomContentWrapper: string;
|
|
165
156
|
todayButton: string;
|
|
157
|
+
errorMessage: string;
|
|
166
158
|
}, tailwind_variants.TVReturnType<{
|
|
167
159
|
variant: {};
|
|
168
|
-
|
|
160
|
+
isRange: {
|
|
169
161
|
true: {
|
|
170
162
|
cell: string;
|
|
171
163
|
};
|
|
@@ -176,12 +168,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
176
168
|
};
|
|
177
169
|
};
|
|
178
170
|
isSelected: {
|
|
179
|
-
|
|
180
|
-
cell: string;
|
|
181
|
-
};
|
|
182
|
-
true: {
|
|
183
|
-
cell: string;
|
|
184
|
-
};
|
|
171
|
+
true: string;
|
|
185
172
|
};
|
|
186
173
|
size: {
|
|
187
174
|
sm: {
|
|
@@ -234,9 +221,10 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
234
221
|
selectors: string;
|
|
235
222
|
bottomContentWrapper: string;
|
|
236
223
|
todayButton: string;
|
|
224
|
+
errorMessage: string;
|
|
237
225
|
}, undefined, tailwind_variants_dist_config_js.TVConfig<{
|
|
238
226
|
variant: {};
|
|
239
|
-
|
|
227
|
+
isRange: {
|
|
240
228
|
true: {
|
|
241
229
|
cell: string;
|
|
242
230
|
};
|
|
@@ -247,12 +235,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
247
235
|
};
|
|
248
236
|
};
|
|
249
237
|
isSelected: {
|
|
250
|
-
|
|
251
|
-
cell: string;
|
|
252
|
-
};
|
|
253
|
-
true: {
|
|
254
|
-
cell: string;
|
|
255
|
-
};
|
|
238
|
+
true: string;
|
|
256
239
|
};
|
|
257
240
|
size: {
|
|
258
241
|
sm: {
|
|
@@ -284,7 +267,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
284
267
|
};
|
|
285
268
|
}, {
|
|
286
269
|
variant: {};
|
|
287
|
-
|
|
270
|
+
isRange: {
|
|
288
271
|
true: {
|
|
289
272
|
cell: string;
|
|
290
273
|
};
|
|
@@ -295,12 +278,7 @@ declare const calendarStyles: tailwind_variants.TVReturnType<{
|
|
|
295
278
|
};
|
|
296
279
|
};
|
|
297
280
|
isSelected: {
|
|
298
|
-
|
|
299
|
-
cell: string;
|
|
300
|
-
};
|
|
301
|
-
true: {
|
|
302
|
-
cell: string;
|
|
303
|
-
};
|
|
281
|
+
true: string;
|
|
304
282
|
};
|
|
305
283
|
size: {
|
|
306
284
|
sm: {
|