@yamada-ui/react 2.3.0-dev-20261027074222 → 2.3.0-dev-20261028024203

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 (36) hide show
  1. package/dist/cjs/components/bubble/bubble.cjs +163 -0
  2. package/dist/cjs/components/bubble/bubble.cjs.map +1 -0
  3. package/dist/cjs/components/bubble/bubble.style.cjs +143 -0
  4. package/dist/cjs/components/bubble/bubble.style.cjs.map +1 -0
  5. package/dist/cjs/components/bubble/index.cjs +18 -0
  6. package/dist/cjs/components/bubble/namespace.cjs +28 -0
  7. package/dist/cjs/components/bubble/namespace.cjs.map +1 -0
  8. package/dist/cjs/components/prose/prose.cjs +1 -1
  9. package/dist/cjs/components/prose/prose.cjs.map +1 -1
  10. package/dist/cjs/core/css/conditions.cjs +4 -4
  11. package/dist/cjs/core/css/conditions.cjs.map +1 -1
  12. package/dist/cjs/index.cjs +125 -99
  13. package/dist/cjs/index.cjs.map +1 -1
  14. package/dist/esm/components/bubble/bubble.js +157 -0
  15. package/dist/esm/components/bubble/bubble.js.map +1 -0
  16. package/dist/esm/components/bubble/bubble.style.js +144 -0
  17. package/dist/esm/components/bubble/bubble.style.js.map +1 -0
  18. package/dist/esm/components/bubble/index.js +4 -0
  19. package/dist/esm/components/bubble/namespace.js +16 -0
  20. package/dist/esm/components/bubble/namespace.js.map +1 -0
  21. package/dist/esm/components/prose/prose.js +1 -1
  22. package/dist/esm/components/prose/prose.js.map +1 -1
  23. package/dist/esm/core/css/conditions.js +4 -4
  24. package/dist/esm/core/css/conditions.js.map +1 -1
  25. package/dist/esm/index.js +107 -95
  26. package/dist/esm/index.js.map +1 -1
  27. package/dist/types/components/bubble/bubble.d.ts +89 -0
  28. package/dist/types/components/bubble/bubble.style.d.ts +79 -0
  29. package/dist/types/components/bubble/index.d.ts +4 -0
  30. package/dist/types/components/bubble/namespace.d.ts +7 -0
  31. package/dist/types/components/chart/cartesian-chart.style.d.ts +1 -1
  32. package/dist/types/components/chart/polar-chart.style.d.ts +1 -1
  33. package/dist/types/components/prose/prose.d.ts +1 -1
  34. package/dist/types/core/css/conditions.d.ts +10 -10
  35. package/dist/types/index.d.ts +53 -49
  36. package/package.json +2 -2
@@ -0,0 +1,163 @@
1
+ "use client";
2
+ const require_children = require("../../utils/children.cjs");
3
+ const require_factory = require("../../core/system/factory.cjs");
4
+ const require_props = require("../../core/components/props.cjs");
5
+ const require_create_component = require("../../core/components/create-component.cjs");
6
+ const require_bubble_style = require("./bubble.style.cjs");
7
+ let react = require("react");
8
+ let react_jsx_runtime = require("react/jsx-runtime");
9
+ //#region src/components/bubble/bubble.tsx
10
+ const { component, ComponentContext, PropsContext: BubblePropsContext, useComponentContext, usePropsContext: useBubblePropsContext, withContext, withProvider, useRootComponentProps } = require_create_component.createSlotComponent("bubble", require_bubble_style.bubbleStyle);
11
+ /**
12
+ * `Bubble` is a component that displays conversational content in a message bubble.
13
+ *
14
+ * @see https://yamada-ui.com/docs/components/bubble
15
+ */
16
+ const BubbleRoot = component((props) => {
17
+ const [, { colorScheme, size, variant, children, items, contentProps, endGroupProps, endItemProps, groupProps, itemProps, reactionsProps, startGroupProps, startItemProps, ...rest }] = useRootComponentProps(props, "root", { transferProps: [
18
+ "variant",
19
+ "colorScheme",
20
+ "size"
21
+ ] });
22
+ const computedChildren = (0, react.useMemo)(() => {
23
+ if (children) return children;
24
+ return items?.map((props, index) => {
25
+ if ("children" in props) {
26
+ const { children, reactions, contentProps, reactionsProps, ...rest } = props;
27
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(BubbleItem, {
28
+ ...rest,
29
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleContent, {
30
+ ...contentProps,
31
+ children
32
+ }), reactions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleReactions, {
33
+ ...reactionsProps,
34
+ children: reactions
35
+ }) : null]
36
+ }, index);
37
+ } else return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleGroup, { ...props }, index);
38
+ });
39
+ }, [children, items]);
40
+ const context = (0, react.useMemo)(() => ({
41
+ colorScheme,
42
+ size,
43
+ variant
44
+ }), [
45
+ colorScheme,
46
+ size,
47
+ variant
48
+ ]);
49
+ const componentContext = (0, react.useMemo)(() => ({
50
+ contentProps,
51
+ endGroupProps,
52
+ endItemProps,
53
+ groupProps,
54
+ itemProps,
55
+ reactionsProps,
56
+ startGroupProps,
57
+ startItemProps
58
+ }), [
59
+ groupProps,
60
+ itemProps,
61
+ contentProps,
62
+ reactionsProps,
63
+ startItemProps,
64
+ endItemProps,
65
+ startGroupProps,
66
+ endGroupProps
67
+ ]);
68
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubblePropsContext, {
69
+ value: context,
70
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext, {
71
+ value: componentContext,
72
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.div, {
73
+ ...rest,
74
+ children: computedChildren
75
+ })
76
+ })
77
+ });
78
+ }, "root")();
79
+ const BubbleGroup = component((props) => {
80
+ const [, { colorScheme, size, variant, children, direction, items, ...rest }] = useRootComponentProps(props, "group", { transferProps: [
81
+ "variant",
82
+ "colorScheme",
83
+ "size"
84
+ ] });
85
+ const computedChildren = (0, react.useMemo)(() => {
86
+ if (children) return children;
87
+ return items?.map(({ children, reactions, contentProps, reactionsProps, ...rest }, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(BubbleItem, {
88
+ ...rest,
89
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleContent, {
90
+ ...contentProps,
91
+ children
92
+ }), reactions ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleReactions, {
93
+ ...reactionsProps,
94
+ children: reactions
95
+ }) : null]
96
+ }, index));
97
+ }, [children, items]);
98
+ const context = (0, react.useMemo)(() => ({
99
+ colorScheme,
100
+ size,
101
+ variant,
102
+ direction
103
+ }), [
104
+ colorScheme,
105
+ size,
106
+ variant,
107
+ direction
108
+ ]);
109
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubblePropsContext, {
110
+ value: context,
111
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.styled.div, {
112
+ ...rest,
113
+ children: computedChildren
114
+ })
115
+ });
116
+ }, "group")(({ direction = "start", ...rest }) => {
117
+ const { endGroupProps, groupProps, startGroupProps } = useComponentContext();
118
+ return require_props.mergeProps(groupProps, direction === "start" ? startGroupProps : endGroupProps, {
119
+ direction,
120
+ ...rest
121
+ })();
122
+ });
123
+ const BubbleItem = withProvider(({ children, direction, contentProps, ...rest }) => {
124
+ const [content, customContent, reactions] = require_children.useSplitChildren(children, BubbleContent, BubbleReactions);
125
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_factory.styled.div, {
126
+ "data-direction": direction,
127
+ ...rest,
128
+ children: [customContent ?? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BubbleContent, {
129
+ ...contentProps,
130
+ children: content
131
+ }), reactions]
132
+ });
133
+ }, "item")((props) => {
134
+ const contextProps = useBubblePropsContext();
135
+ const { endItemProps, itemProps, startItemProps } = useComponentContext();
136
+ const direction = props.direction ?? contextProps?.direction ?? "start";
137
+ return require_props.mergeProps(contextProps, itemProps, direction === "start" ? startItemProps : endItemProps, {
138
+ ...props,
139
+ direction
140
+ })();
141
+ });
142
+ const BubbleContent = withContext("div", "content")(void 0, (props) => {
143
+ const { contentProps } = useComponentContext();
144
+ return require_props.mergeProps(contentProps, props)();
145
+ });
146
+ const BubbleReactions = withContext("div", "reactions")(void 0, (props) => {
147
+ const { reactionsProps } = useComponentContext();
148
+ const { placement = "end-end", ...rest } = require_props.mergeProps(reactionsProps, props)();
149
+ return {
150
+ "data-placement": placement,
151
+ ...rest
152
+ };
153
+ });
154
+ //#endregion
155
+ exports.BubbleContent = BubbleContent;
156
+ exports.BubbleGroup = BubbleGroup;
157
+ exports.BubbleItem = BubbleItem;
158
+ exports.BubblePropsContext = BubblePropsContext;
159
+ exports.BubbleReactions = BubbleReactions;
160
+ exports.BubbleRoot = BubbleRoot;
161
+ exports.useBubblePropsContext = useBubblePropsContext;
162
+
163
+ //# sourceMappingURL=bubble.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubble.cjs","names":["createSlotComponent","bubbleStyle","useMemo","styled","mergeProps","useSplitChildren"],"sources":["../../../../src/components/bubble/bubble.tsx"],"sourcesContent":["\"use client\"\n\nimport type { ReactNode } from \"react\"\nimport type {\n Direction,\n HTMLStyledProps,\n SimpleDirection,\n ThemeProps,\n} from \"../../core\"\nimport type { Merge } from \"../../utils\"\nimport type { BubbleStyle } from \"./bubble.style\"\nimport { useMemo } from \"react\"\nimport { createSlotComponent, mergeProps, styled } from \"../../core\"\nimport { useSplitChildren } from \"../../utils\"\nimport { bubbleStyle } from \"./bubble.style\"\n\nexport interface BubbleItemWithContent extends Omit<\n BubbleItemProps,\n \"children\"\n> {\n children: ReactNode\n reactions?: ReactNode\n reactionsProps?: Omit<BubbleReactionsProps, \"children\">\n}\n\nexport interface BubbleItemWithGroup\n extends\n Required<Pick<BubbleGroupProps, \"items\">>,\n Omit<BubbleGroupProps, \"children\" | \"items\"> {}\n\nexport type BubbleItem =\n | BubbleItemWithContent\n | Omit<BubbleGroupProps, \"children\" | \"direction\">\n\ninterface ComponentContext extends Pick<\n BubbleRootProps,\n | \"contentProps\"\n | \"endGroupProps\"\n | \"endItemProps\"\n | \"groupProps\"\n | \"itemProps\"\n | \"reactionsProps\"\n | \"startGroupProps\"\n | \"startItemProps\"\n> {}\n\nexport interface BubbleRootProps extends Merge<\n HTMLStyledProps,\n ThemeProps<BubbleStyle>\n> {\n /**\n * If provided, generate elements based on items.\n */\n items?: BubbleItem[]\n /**\n * The props for content component.\n */\n contentProps?: Omit<BubbleContentProps, \"children\">\n /**\n * The theme props for group component in end direction.\n */\n endGroupProps?: Omit<BubbleGroupProps, \"children\" | \"direction\" | \"items\">\n /**\n * The theme props for item component in end direction.\n */\n endItemProps?: Omit<BubbleItemProps, \"children\" | \"direction\">\n /**\n * The props for group component.\n */\n groupProps?: Omit<BubbleGroupProps, \"children\" | \"direction\" | \"items\">\n /**\n * The props for item component.\n */\n itemProps?: Omit<BubbleItemProps, \"children\" | \"direction\">\n /**\n * The props for reactions component.\n */\n reactionsProps?: Omit<BubbleReactionsProps, \"children\">\n /**\n * The theme props for group component in start direction.\n */\n startGroupProps?: Omit<BubbleGroupProps, \"children\" | \"direction\" | \"items\">\n /**\n * The theme props for item component in start direction.\n */\n startItemProps?: Omit<BubbleItemProps, \"children\" | \"direction\">\n}\n\nconst {\n component,\n ComponentContext,\n PropsContext: BubblePropsContext,\n useComponentContext,\n usePropsContext: useBubblePropsContext,\n withContext,\n withProvider,\n useRootComponentProps,\n} = createSlotComponent<BubbleItemProps, BubbleStyle, ComponentContext>(\n \"bubble\",\n bubbleStyle,\n)\n\nexport { BubblePropsContext, useBubblePropsContext }\n\n/**\n * `Bubble` is a component that displays conversational content in a message bubble.\n *\n * @see https://yamada-ui.com/docs/components/bubble\n */\nexport const BubbleRoot = component<\"div\", BubbleRootProps>((props) => {\n const [\n ,\n {\n colorScheme,\n size,\n variant,\n children,\n items,\n contentProps,\n endGroupProps,\n endItemProps,\n groupProps,\n itemProps,\n reactionsProps,\n startGroupProps,\n startItemProps,\n ...rest\n },\n ] = useRootComponentProps(props, \"root\", {\n transferProps: [\"variant\", \"colorScheme\", \"size\"],\n })\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items?.map((props, index) => {\n if (\"children\" in props) {\n const { children, reactions, contentProps, reactionsProps, ...rest } =\n props\n\n return (\n <BubbleItem key={index} {...rest}>\n <BubbleContent {...contentProps}>{children}</BubbleContent>\n {reactions ? (\n <BubbleReactions {...reactionsProps}>{reactions}</BubbleReactions>\n ) : null}\n </BubbleItem>\n )\n } else {\n return <BubbleGroup key={index} {...props} />\n }\n })\n }, [children, items])\n const context = useMemo(\n () => ({ colorScheme, size, variant }),\n [colorScheme, size, variant],\n )\n const componentContext = useMemo(\n () => ({\n contentProps,\n endGroupProps,\n endItemProps,\n groupProps,\n itemProps,\n reactionsProps,\n startGroupProps,\n startItemProps,\n }),\n [\n groupProps,\n itemProps,\n contentProps,\n reactionsProps,\n startItemProps,\n endItemProps,\n startGroupProps,\n endGroupProps,\n ],\n )\n\n return (\n <BubblePropsContext value={context}>\n <ComponentContext value={componentContext}>\n <styled.div {...rest}>{computedChildren}</styled.div>\n </ComponentContext>\n </BubblePropsContext>\n )\n}, \"root\")()\n\nexport interface BubbleGroupProps\n extends\n Merge<HTMLStyledProps, Pick<BubbleItemProps, \"direction\">>,\n ThemeProps<BubbleStyle> {\n /**\n * If provided, generate elements based on items.\n */\n items?: BubbleItemWithContent[]\n}\n\nexport const BubbleGroup = component<\"div\", BubbleGroupProps>((props) => {\n const [\n ,\n { colorScheme, size, variant, children, direction, items, ...rest },\n ] = useRootComponentProps(props, \"group\", {\n transferProps: [\"variant\", \"colorScheme\", \"size\"],\n })\n const computedChildren = useMemo(() => {\n if (children) return children\n\n return items?.map(\n (\n { children, reactions, contentProps, reactionsProps, ...rest },\n index,\n ) => (\n <BubbleItem key={index} {...rest}>\n <BubbleContent {...contentProps}>{children}</BubbleContent>\n {reactions ? (\n <BubbleReactions {...reactionsProps}>{reactions}</BubbleReactions>\n ) : null}\n </BubbleItem>\n ),\n )\n }, [children, items])\n\n const context = useMemo(\n () => ({ colorScheme, size, variant, direction }),\n [colorScheme, size, variant, direction],\n )\n\n return (\n <BubblePropsContext value={context}>\n <styled.div {...rest}>{computedChildren}</styled.div>\n </BubblePropsContext>\n )\n}, \"group\")(({ direction = \"start\", ...rest }) => {\n const { endGroupProps, groupProps, startGroupProps } = useComponentContext()\n const directionProps = direction === \"start\" ? startGroupProps : endGroupProps\n\n return mergeProps(groupProps, directionProps, { direction, ...rest })()\n})\n\nexport interface BubbleItemProps\n extends\n Omit<HTMLStyledProps, \"direction\">,\n Pick<BubbleRootProps, \"contentProps\">,\n ThemeProps<BubbleStyle> {\n /**\n * The inline direction of the bubble.\n *\n * @default 'start'\n */\n direction?: SimpleDirection\n}\n\nexport const BubbleItem = withProvider<\"div\", BubbleItemProps>(\n ({ children, direction, contentProps, ...rest }) => {\n const [content, customContent, reactions] = useSplitChildren(\n children,\n BubbleContent,\n BubbleReactions,\n )\n\n return (\n <styled.div data-direction={direction} {...rest}>\n {customContent ?? (\n <BubbleContent {...contentProps}>{content}</BubbleContent>\n )}\n\n {reactions}\n </styled.div>\n )\n },\n \"item\",\n)((props) => {\n const contextProps = useBubblePropsContext()\n const { endItemProps, itemProps, startItemProps } = useComponentContext()\n const direction = props.direction ?? contextProps?.direction ?? \"start\"\n const directionProps = direction === \"start\" ? startItemProps : endItemProps\n\n return mergeProps(contextProps, itemProps, directionProps, {\n ...props,\n direction,\n })()\n})\n\nexport interface BubbleContentProps extends HTMLStyledProps {}\n\nexport const BubbleContent = withContext<\"div\", BubbleContentProps>(\n \"div\",\n \"content\",\n)(undefined, (props) => {\n const { contentProps } = useComponentContext()\n\n return mergeProps(contentProps, props)()\n})\n\nexport interface BubbleReactionsProps extends HTMLStyledProps {\n /**\n * The placement of the reactions.\n *\n * @default 'end-end'\n */\n placement?: Exclude<Direction, \"end\" | \"start\" | `center-${string}`>\n}\n\nexport const BubbleReactions = withContext<\"div\", BubbleReactionsProps>(\n \"div\",\n \"reactions\",\n)(undefined, (props) => {\n const { reactionsProps } = useComponentContext()\n const { placement = \"end-end\", ...rest } = mergeProps(reactionsProps, props)()\n\n return { \"data-placement\": placement, ...rest }\n})\n"],"mappings":";;;;;;;;;AAwFA,MAAM,EACJ,WACA,kBACA,cAAc,oBACd,qBACA,iBAAiB,uBACjB,aACA,cACA,0BACEA,yBAAAA,oBACF,UACAC,qBAAAA,WACF;;;;;;AASA,MAAa,aAAa,WAAmC,UAAU;CACrE,MAAM,GAEJ,EACE,aACA,MACA,SACA,UACA,OACA,cACA,eACA,cACA,YACA,WACA,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AAaC,iBAAAA,iBAC1C,UACA,eACA,eACF;CAEA,OACE,iBAAA,GAAA,kBAAA,KAAA,CAACF,gBAAAA,OAAO,KAAR;EAAY,kBAAgB;EAAW,GAAI;EAA3C,UAAA,CACG,iBACC,iBAAA,GAAA,kBAAA,IAAA,CAAC,eAAD;GAAe,GAAI;GAAe,UAAA;EAAuB,CAAA,GAG1D,SACS;;AAEhB,GACA,MACF,CAAC,EAAE,UAAU;CACX,MAAM,eAAe,sBAAsB;CAC3C,MAAM,EAAE,cAAc,WAAW,mBAAmB,oBAAoB;CACxE,MAAM,YAAY,MAAM,aAAa,cAAc,aAAa;CAGhE,OAAOC,cAAAA,WAAW,cAAc,WAFT,cAAc,UAAU,iBAAiB,cAEL;EACzD,GAAG;EACH;CACF,CAAC,CAAC,CAAC;AACL,CAAC;AAID,MAAa,gBAAgB,YAC3B,OACA,SACF,CAAC,CAAC,KAAA,IAAY,UAAU;CACtB,MAAM,EAAE,iBAAiB,oBAAoB;CAE7C,OAAOA,cAAAA,WAAW,cAAc,KAAK,CAAC,CAAC;AACzC,CAAC;AAWD,MAAa,kBAAkB,YAC7B,OACA,WACF,CAAC,CAAC,KAAA,IAAY,UAAU;CACtB,MAAM,EAAE,mBAAmB,oBAAoB;CAC/C,MAAM,EAAE,YAAY,WAAW,GAAG,SAASA,cAAAA,WAAW,gBAAgB,KAAK,CAAC,CAAC;CAE7E,OAAO;EAAE,kBAAkB;EAAW,GAAG;CAAK;AAChD,CAAC"}
@@ -0,0 +1,143 @@
1
+ //#region src/components/bubble/bubble.style.ts
2
+ const bubbleStyle = require("../../core/system/config.cjs").defineComponentSlotStyle({
3
+ base: {
4
+ content: {
5
+ maxW: "full",
6
+ minW: "0",
7
+ overflowWrap: "anywhere",
8
+ py: "{space-y}",
9
+ rounded: "calc(0.5lh + {space-y} + 1px)",
10
+ textAlign: "start",
11
+ whiteSpace: "pre-wrap"
12
+ },
13
+ group: {
14
+ display: "flex",
15
+ flexDirection: "column",
16
+ gap: "sm",
17
+ minW: "0",
18
+ w: "full"
19
+ },
20
+ item: {
21
+ display: "flex",
22
+ flexDirection: "column",
23
+ maxW: "4/5",
24
+ minW: "0",
25
+ position: "relative",
26
+ w: "fit-content",
27
+ _end: {
28
+ alignSelf: "flex-end",
29
+ me: "0",
30
+ ms: "auto"
31
+ },
32
+ _start: {
33
+ alignSelf: "flex-start",
34
+ me: "auto",
35
+ ms: "0"
36
+ }
37
+ },
38
+ reactions: {
39
+ "&[data-placement$=center]": {
40
+ insetInline: "0",
41
+ mx: "auto"
42
+ },
43
+ "&[data-placement$=end]": { insetInlineEnd: "3" },
44
+ "&[data-placement$=start]": { insetInlineStart: "3" },
45
+ "&[data-placement^=end]": {
46
+ insetBlockEnd: "-2",
47
+ translateY: "50%"
48
+ },
49
+ "&[data-placement^=start]": {
50
+ insetBlockStart: "-2",
51
+ translateY: "-50%"
52
+ },
53
+ alignItems: "center",
54
+ bg: "bg.panel",
55
+ borderColor: "bg",
56
+ display: "flex",
57
+ gap: "xs",
58
+ lineHeight: "normal",
59
+ position: "absolute",
60
+ px: "1.5",
61
+ py: "0.5",
62
+ rounded: "full",
63
+ w: "max-content",
64
+ zIndex: "1"
65
+ },
66
+ root: {
67
+ alignItems: "flex-start",
68
+ display: "flex",
69
+ flexDirection: "column",
70
+ gap: "xl",
71
+ minW: "0",
72
+ w: "full"
73
+ }
74
+ },
75
+ variants: {
76
+ ghost: {
77
+ content: {
78
+ bg: "transparent",
79
+ borderColor: "transparent",
80
+ rounded: "0"
81
+ },
82
+ item: {
83
+ maxW: "full",
84
+ w: "full"
85
+ }
86
+ },
87
+ outline: { content: { layerStyle: "outline" } },
88
+ panel: { content: { bg: "bg.panel" } },
89
+ solid: { content: { layerStyle: "solid" } },
90
+ subtle: { content: { layerStyle: "subtle" } },
91
+ surface: { content: { layerStyle: "surface" } }
92
+ },
93
+ sizes: {
94
+ sm: {
95
+ content: {
96
+ "--space-y": "spaces.2",
97
+ fontSize: "sm",
98
+ px: "3"
99
+ },
100
+ reactions: {
101
+ borderWidth: "3px",
102
+ fontSize: "xs"
103
+ }
104
+ },
105
+ md: {
106
+ content: {
107
+ "--space-y": "spaces.3",
108
+ fontSize: "md",
109
+ px: "4"
110
+ },
111
+ reactions: {
112
+ borderWidth: "5px",
113
+ fontSize: "sm"
114
+ }
115
+ },
116
+ lg: {
117
+ content: {
118
+ "--space-y": "spaces.4",
119
+ fontSize: "lg",
120
+ px: "5"
121
+ },
122
+ reactions: {
123
+ borderWidth: "5px",
124
+ fontSize: "md"
125
+ }
126
+ }
127
+ },
128
+ compounds: [{
129
+ css: { content: {
130
+ px: "0",
131
+ py: "0"
132
+ } },
133
+ variant: "ghost"
134
+ }],
135
+ defaultProps: {
136
+ size: "md",
137
+ variant: "panel"
138
+ }
139
+ });
140
+ //#endregion
141
+ exports.bubbleStyle = bubbleStyle;
142
+
143
+ //# sourceMappingURL=bubble.style.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bubble.style.cjs","names":["defineComponentSlotStyle"],"sources":["../../../../src/components/bubble/bubble.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\n\nexport const bubbleStyle = defineComponentSlotStyle({\n base: {\n content: {\n maxW: \"full\",\n minW: \"0\",\n overflowWrap: \"anywhere\",\n py: \"{space-y}\",\n rounded: \"calc(0.5lh + {space-y} + 1px)\",\n textAlign: \"start\",\n whiteSpace: \"pre-wrap\",\n },\n group: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"sm\",\n minW: \"0\",\n w: \"full\",\n },\n item: {\n display: \"flex\",\n flexDirection: \"column\",\n maxW: \"4/5\",\n minW: \"0\",\n position: \"relative\",\n w: \"fit-content\",\n _end: {\n alignSelf: \"flex-end\",\n me: \"0\",\n ms: \"auto\",\n },\n _start: {\n alignSelf: \"flex-start\",\n me: \"auto\",\n ms: \"0\",\n },\n },\n reactions: {\n \"&[data-placement$=center]\": {\n insetInline: \"0\",\n mx: \"auto\",\n },\n \"&[data-placement$=end]\": {\n insetInlineEnd: \"3\",\n },\n \"&[data-placement$=start]\": {\n insetInlineStart: \"3\",\n },\n \"&[data-placement^=end]\": {\n insetBlockEnd: \"-2\",\n translateY: \"50%\",\n },\n \"&[data-placement^=start]\": {\n insetBlockStart: \"-2\",\n translateY: \"-50%\",\n },\n alignItems: \"center\",\n bg: \"bg.panel\",\n borderColor: \"bg\",\n display: \"flex\",\n gap: \"xs\",\n lineHeight: \"normal\",\n position: \"absolute\",\n px: \"1.5\",\n py: \"0.5\",\n rounded: \"full\",\n w: \"max-content\",\n zIndex: \"1\",\n },\n root: {\n alignItems: \"flex-start\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"xl\",\n minW: \"0\",\n w: \"full\",\n },\n },\n\n variants: {\n ghost: {\n content: {\n bg: \"transparent\",\n borderColor: \"transparent\",\n rounded: \"0\",\n },\n item: { maxW: \"full\", w: \"full\" },\n },\n outline: { content: { layerStyle: \"outline\" } },\n panel: { content: { bg: \"bg.panel\" } },\n solid: { content: { layerStyle: \"solid\" } },\n subtle: { content: { layerStyle: \"subtle\" } },\n surface: { content: { layerStyle: \"surface\" } },\n },\n\n sizes: {\n sm: {\n content: { \"--space-y\": \"spaces.2\", fontSize: \"sm\", px: \"3\" },\n reactions: { borderWidth: \"3px\", fontSize: \"xs\" },\n },\n md: {\n content: { \"--space-y\": \"spaces.3\", fontSize: \"md\", px: \"4\" },\n reactions: { borderWidth: \"5px\", fontSize: \"sm\" },\n },\n lg: {\n content: { \"--space-y\": \"spaces.4\", fontSize: \"lg\", px: \"5\" },\n reactions: { borderWidth: \"5px\", fontSize: \"md\" },\n },\n },\n\n compounds: [\n {\n css: { content: { px: \"0\", py: \"0\" } },\n variant: \"ghost\",\n },\n ],\n\n defaultProps: {\n size: \"md\",\n variant: \"panel\",\n },\n})\n\nexport type BubbleStyle = typeof bubbleStyle\n"],"mappings":";AAEA,MAAa,oDAAcA,CAAAA,CAAAA,yBAAyB;CAClD,MAAM;EACJ,SAAS;GACP,MA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aAAa;IAAO,UAAU;GAAK;EAClD;EACA,IAAI;GACF,SAAS;IAAE,aAAa;IAAY,UAAU;IAAM,IAAI;GAAI;GAC5D,WAAW;IAAE,aAAa;IAAO,UAAU;GAAK;EAClD;EACA,IAAI;GACF,SAAS;IAAE,aAAa;IAAY,UAAU;IAAM,IAAI;GAAI;GAC5D,WAAW;IAAE,aAAa;IAAO,UAAU;GAAK;EAClD;CACF;CAEA,WAAW,CACT;EACE,KAAK,EAAE,SAAS;GAAE,IAAI;GAAK,IAAI;EAAI,EAAE;EACrC,SAAS;CACX,CACF;CAEA,cAAc;EACZ,MAAM;EACN,SAAS;CACX;AACF,CAAC"}
@@ -0,0 +1,18 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_bubble_style = require("./bubble.style.cjs");
3
+ const require_bubble = require("./bubble.cjs");
4
+ const require_namespace = require("./namespace.cjs");
5
+ Object.defineProperty(exports, "Bubble", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return require_namespace.namespace_exports;
9
+ }
10
+ });
11
+ exports.BubbleContent = require_bubble.BubbleContent;
12
+ exports.BubbleGroup = require_bubble.BubbleGroup;
13
+ exports.BubbleItem = require_bubble.BubbleItem;
14
+ exports.BubblePropsContext = require_bubble.BubblePropsContext;
15
+ exports.BubbleReactions = require_bubble.BubbleReactions;
16
+ exports.BubbleRoot = require_bubble.BubbleRoot;
17
+ exports.bubbleStyle = require_bubble_style.bubbleStyle;
18
+ exports.useBubblePropsContext = require_bubble.useBubblePropsContext;
@@ -0,0 +1,28 @@
1
+ const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
2
+ const require_bubble = require("./bubble.cjs");
3
+ //#region src/components/bubble/namespace.ts
4
+ var namespace_exports = /* @__PURE__ */ require_runtime.__exportAll({
5
+ Content: () => require_bubble.BubbleContent,
6
+ Group: () => require_bubble.BubbleGroup,
7
+ Item: () => require_bubble.BubbleItem,
8
+ PropsContext: () => require_bubble.BubblePropsContext,
9
+ Reactions: () => require_bubble.BubbleReactions,
10
+ Root: () => require_bubble.BubbleRoot,
11
+ usePropsContext: () => require_bubble.useBubblePropsContext
12
+ });
13
+ //#endregion
14
+ exports.Content = require_bubble.BubbleContent;
15
+ exports.Group = require_bubble.BubbleGroup;
16
+ exports.Item = require_bubble.BubbleItem;
17
+ exports.PropsContext = require_bubble.BubblePropsContext;
18
+ exports.Reactions = require_bubble.BubbleReactions;
19
+ exports.Root = require_bubble.BubbleRoot;
20
+ Object.defineProperty(exports, "namespace_exports", {
21
+ enumerable: true,
22
+ get: function() {
23
+ return namespace_exports;
24
+ }
25
+ });
26
+ exports.usePropsContext = require_bubble.useBubblePropsContext;
27
+
28
+ //# sourceMappingURL=namespace.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namespace.cjs","names":[],"sources":["../../../../src/components/bubble/namespace.ts"],"sourcesContent":["export type {\n BubbleContentProps as ContentProps,\n BubbleGroupProps as GroupProps,\n BubbleItemProps as ItemProps,\n BubbleItem as ItemType,\n BubbleReactionsProps as ReactionsProps,\n BubbleRootProps as RootProps,\n} from \"./bubble\"\nexport {\n BubbleContent as Content,\n BubbleGroup as Group,\n BubbleItem as Item,\n BubblePropsContext as PropsContext,\n BubbleReactions as Reactions,\n BubbleRoot as Root,\n useBubblePropsContext as usePropsContext,\n} from \"./bubble\"\n"],"mappings":""}
@@ -4,7 +4,7 @@ const require_prose_style = require("./prose.style.cjs");
4
4
  //#region src/components/prose/prose.tsx
5
5
  const { PropsContext: ProsePropsContext, usePropsContext: useProsePropsContext, withContext } = require_create_component.createComponent("prose", require_prose_style.proseStyle);
6
6
  /**
7
- * `Prose` is a component that styles HTML content. By default, it renders a `div` element.
7
+ * `Prose` is a component that styles HTML content.
8
8
  *
9
9
  * @see https://yamada-ui.com/docs/components/prose
10
10
  */
@@ -1 +1 @@
1
- {"version":3,"file":"prose.cjs","names":["createComponent","proseStyle"],"sources":["../../../../src/components/prose/prose.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProseStyle } from \"./prose.style\"\nimport { createComponent } from \"../../core\"\nimport { proseStyle } from \"./prose.style\"\n\nexport interface ProseProps\n extends HTMLStyledProps<\"div\">, ThemeProps<ProseStyle> {}\n\nconst {\n PropsContext: ProsePropsContext,\n usePropsContext: useProsePropsContext,\n withContext,\n} = createComponent<ProseProps, ProseStyle>(\"prose\", proseStyle)\n\nexport { ProsePropsContext, useProsePropsContext }\n\n/**\n * `Prose` is a component that styles HTML content. By default, it renders a `div` element.\n *\n * @see https://yamada-ui.com/docs/components/prose\n */\nexport const Prose = withContext(\"div\")()\n"],"mappings":";;;;AAUA,MAAM,EACJ,cAAc,mBACd,iBAAiB,sBACjB,gBACEA,yBAAAA,gBAAwC,SAASC,oBAAAA,UAAU;;;;;;AAS/D,MAAa,QAAQ,YAAY,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"prose.cjs","names":["createComponent","proseStyle"],"sources":["../../../../src/components/prose/prose.tsx"],"sourcesContent":["\"use client\"\n\nimport type { HTMLStyledProps, ThemeProps } from \"../../core\"\nimport type { ProseStyle } from \"./prose.style\"\nimport { createComponent } from \"../../core\"\nimport { proseStyle } from \"./prose.style\"\n\nexport interface ProseProps\n extends HTMLStyledProps<\"div\">, ThemeProps<ProseStyle> {}\n\nconst {\n PropsContext: ProsePropsContext,\n usePropsContext: useProsePropsContext,\n withContext,\n} = createComponent<ProseProps, ProseStyle>(\"prose\", proseStyle)\n\nexport { ProsePropsContext, useProsePropsContext }\n\n/**\n * `Prose` is a component that styles HTML content.\n *\n * @see https://yamada-ui.com/docs/components/prose\n */\nexport const Prose = withContext(\"div\")()\n"],"mappings":";;;;AAUA,MAAM,EACJ,cAAc,mBACd,iBAAiB,sBACjB,gBACEA,yBAAAA,gBAAwC,SAASC,oBAAAA,UAAU;;;;;;AAS/D,MAAa,QAAQ,YAAY,KAAK,CAAC,CAAC"}
@@ -43,9 +43,9 @@ const attributes = {
43
43
  */
44
44
  _dark: ":host([data-mode=dark]) &, .dark &:not([data-mode]), [data-mode=dark] &:not([data-mode]), &[data-mode=dark]",
45
45
  /**
46
- * The CSS `&:is([data-end], [data-group-end])` attribute selector.
46
+ * The CSS `&:is([data-end], [data-group-end], [data-direction=end])` attribute selector.
47
47
  */
48
- _end: "&:is([data-end], [data-group-end])",
48
+ _end: "&:is([data-end], [data-group-end], [data-direction=end])",
49
49
  /**
50
50
  * The CSS `&:is([data-expanded], [aria-expanded=true])` attribute selector.
51
51
  */
@@ -151,9 +151,9 @@ const attributes = {
151
151
  */
152
152
  _rtl: "[dir=rtl] &",
153
153
  /**
154
- * The CSS `&:is([data-start], [data-group-start])` attribute selector.
154
+ * The CSS `&:is([data-start], [data-group-start], [data-direction=start])` attribute selector.
155
155
  */
156
- _start: "&:is([data-start], [data-group-start])",
156
+ _start: "&:is([data-start], [data-group-start], [data-direction=start])",
157
157
  /**
158
158
  * The CSS `&:is([data-selected], [aria-selected=true])` attribute selector.
159
159
  */
@@ -1 +1 @@
1
- {"version":3,"file":"conditions.cjs","names":[],"sources":["../../../../src/core/css/conditions.ts"],"sourcesContent":["import type { Length } from \"../../utils\"\nimport type { DOMElement } from \"../components\"\nimport type { CSSObject } from \"./index.type\"\n\ntype ReplaceSelector<\n Y extends string[],\n M extends string,\n D extends string,\n> = Y extends [infer H extends string, ...infer R extends string[]]\n ? `${H}${M extends `&${infer T}` ? `${T} ${D}` : `${M} ${D}`}${Length<R> extends 0 ? \"\" : `, `}${ReplaceSelector<R, M, D>}`\n : \"\"\n\nconst toGroup = <Y extends string>(selector: Y) =>\n [\"[role=group]\", \"[data-group]\", \".group\"]\n .map((prefix) => `${prefix}${selector.slice(1)} &`)\n .join(\", \") as ReplaceSelector<\n [\"[role=group]\", \"[data-group]\", \".group\"],\n Y,\n \"&\"\n >\n\nconst toPeer = <Y extends string>(selector?: Y) =>\n [\n ...[\"[data-peer]\", \".peer\"].flatMap((prefix) => [\n selector\n ? `&:has(~ ${prefix}${selector.slice(1)})`\n : `&:has(~ ${prefix})`,\n selector ? `${prefix}${selector.slice(1)} ~ &` : `${prefix} ~ &`,\n ]),\n ...(selector\n ? [\"[data-peer]\", \".peer\"].flatMap((prefix) => [\n `&:has(~ ${prefix} *${selector.slice(1)})`,\n `${prefix}:has(*${selector.slice(1)}) ~ &`,\n ])\n : []),\n ].join(\", \") as ReplaceSelector<[\"[data-peer]\", \".peer\"], Y, \"~ &\">\n\nexport type AnySelector =\n | `${string}${\" \" | \"#\" | \"*\" | \"+\" | \",\" | \".\" | \":\" | \">\" | \"@\" | \"[\" | \"]\" | \"~\"}${string}`\n | DOMElement\n\nexport const attributes = {\n /**\n * The CSS `&[data-inactive]` attribute selector.\n */\n _inactive: \"&[data-inactive]\",\n /**\n * The CSS `&[data-accept]` attribute selector.\n */\n _accept: \"&[data-accept]\",\n /**\n * The CSS `&[data-animated]` attribute selector.\n */\n _animated: \"&[data-animated]\",\n /**\n * The CSS `&[data-between]` attribute selector.\n */\n _between: \"&[data-between]\",\n /**\n * The CSS `&:is([data-center], [data-group-center])` attribute selector.\n */\n _center: \"&:is([data-center], [data-group-center])\",\n /**\n * The CSS `&:is([data-collapsed], :not([data-expanded]), [aria-expanded=false])` attribute selector.\n */\n _collapsed:\n \"&:is([data-collapsed], :not([data-expanded]), [aria-expanded=false])\",\n /**\n * The CSS `&[data-complete]` attribute selector.\n */\n _complete: \"&[data-complete]\",\n /**\n * The CSS `&:is([aria-current], [data-current]):not([aria-current='false'])` attribute selector.\n */\n _current: \"&:is([aria-current], [data-current]):not([aria-current='false'])\",\n /**\n * Styles for when `data-mode` is applied to any parent of this component or element.\n */\n _dark:\n \":host([data-mode=dark]) &, .dark &:not([data-mode]), [data-mode=dark] &:not([data-mode]), &[data-mode=dark]\",\n /**\n * The CSS `&:is([data-end], [data-group-end])` attribute selector.\n */\n _end: \"&:is([data-end], [data-group-end])\",\n /**\n * The CSS `&:is([data-expanded], [aria-expanded=true])` attribute selector.\n */\n _expanded: \"&:is([data-expanded], [aria-expanded=true])\",\n /**\n * The CSS `&[data-fallback]` attribute selector.\n */\n _fallback: \"&[data-fallback]\",\n /**\n * The CSS `&[data-filled]` attribute selector.\n */\n _filled: \"&[data-filled]\",\n /**\n * The CSS `&:is([data-grabbed], [aria-grabbed=true])` attribute selector.\n */\n _grabbed: \"&:is([data-grabbed], [aria-grabbed=true])\",\n /**\n * The CSS `&:is([role=grid], [data-grid])` attribute selector.\n */\n _grid: \"&:is([role=grid], [data-grid])\",\n /**\n * The CSS `&:is(:has(> [role=group]), :has(> [data-group]), :has(> .group))` attribute selector.\n */\n _hasGroup: \"&:is(:has(> [role=group]), :has(> [data-group]), :has(> .group))\",\n /**\n * The CSS `&:has(> [data-icon])` attribute selector.\n */\n _hasIcon: \"&:has(> [data-icon])\",\n /**\n * The CSS `&[data-idle]` attribute selector.\n */\n _idle: \"&[data-idle]\",\n /**\n * The CSS `&[data-incomplete]` attribute selector.\n */\n _incomplete: \"&[data-incomplete]\",\n /**\n * Styles for when `data-mode` is applied to any parent of this component or element.\n */\n _light:\n \":host([data-mode=light]) &, .light &:not([data-mode]), [data-mode=light] &:not([data-mode]), &[data-mode=light]\",\n /**\n * The CSS `&[data-loaded]` attribute selector.\n */\n _loaded: \"&[data-loaded]\",\n /**\n * The CSS `&:is([data-loading], [aria-busy=true])` attribute selector.\n */\n _loading: \"&:is([data-loading], [aria-busy=true])\",\n /**\n * The CSS `&[dir=ltr]` attribute selector.\n */\n _ltr: \"[dir=ltr] &\",\n /**\n * The CSS `&[hidden]` attribute selector.\n */\n _nativeHidden: \"&[hidden]\",\n /**\n * The CSS `&[data-not-allowed]` attribute selector.\n */\n _notAllowed: \"&[data-not-allowed]\",\n /**\n * The CSS `&[aria-current='false']` attribute selector.\n */\n _notCurrent: \"&:not([aria-current], [data-current]), &[aria-current='false']\",\n /**\n * The CSS `&:not([data-fallback])` attribute selector.\n */\n _notFallback: \"&:not([data-fallback])\",\n /**\n * The CSS `&:not(:has(> [role=group]), :has(> [data-group]), :has(> .group))` attribute selector.\n */\n _notHasGroup:\n \"&:not(:has(> [role=group]), :has(> [data-group]), :has(> .group))\",\n /**\n * The CSS `&:not([data-selected]):not([aria-selected=true])` attribute selector.\n */\n _notSelected: \"&:not([data-selected]):not([aria-selected=true])\",\n /**\n * The CSS `&[data-numeric]` attribute selector.\n */\n _numeric: \"&[data-numeric]\",\n /**\n * The CSS `&:is([open], [data-open])` attribute selector.\n */\n _open: \"&:is([open], [data-open])\",\n /**\n * The CSS `&:is([data-pressed], [aria-pressed=true])` attribute selector.\n */\n _pressed: \"&:is([data-pressed], [aria-pressed=true])\",\n /**\n * The CSS `&:is([data-range])` attribute selector.\n */\n _range: \"&:is([data-range])\",\n /**\n * The CSS `&[data-reject]` attribute selector.\n */\n _reject: \"&[data-reject]\",\n /**\n * The CSS `& .ui-ripple` attribute selector.\n */\n _ripple: \"& .ui-ripple\",\n /**\n * The CSS `&[dir=rtl]` attribute selector.\n */\n _rtl: \"[dir=rtl] &\",\n /**\n * The CSS `&:is([data-start], [data-group-start])` attribute selector.\n */\n _start: \"&:is([data-start], [data-group-start])\",\n /**\n * The CSS `&:is([data-selected], [aria-selected=true])` attribute selector.\n */\n _selected: \"&:is([data-selected], [aria-selected=true])\",\n /**\n * The CSS `&:is([hidden], [data-hidden])` attribute selector.\n */\n _hidden: \"&:is([hidden], [data-hidden])\",\n /**\n * The CSS `&[data-never]` attribute selector.\n */\n _never: \"&[data-never]\",\n} as const\n\nexport type Attributes = typeof attributes\nexport type AttributeProperty = keyof Attributes\nexport type AttributeProps = {\n [K in AttributeProperty]?: CSSObject\n}\n\nexport const attributeProperties = Object.keys(\n attributes,\n) as AttributeProperty[]\nexport const attributeSelectors = Object.values(attributes)\n\nexport const pseudoElements = {\n /**\n * The CSS `&::after` pseudo-element.\n */\n _after: \"&::after\",\n /**\n * The CSS `&::backdrop` pseudo-element.\n */\n _backdrop: \"&::backdrop\",\n /**\n * The CSS `&::before` pseudo-element.\n */\n _before: \"&::before\",\n /**\n * The CSS `&::cue` pseudo-element.\n */\n _cue: \"&::cue\",\n /**\n * The CSS `&::cue-region` pseudo-element.\n */\n _cueRegion: \"&::cue-region\",\n /**\n * The CSS `&::details-content` pseudo-element.\n */\n _detailsContent: \"&::details-content\",\n /**\n * The CSS `&::file-selector-button` pseudo-element.\n */\n _fileSelector: \"&::file-selector-button\",\n /**\n * The CSS `&::first-letter` pseudo-element.\n */\n _firstLetter: \"&::first-letter\",\n /**\n * The CSS `&::first-line` pseudo-element.\n */\n _firstLine: \"&::first-line\",\n /**\n * The CSS `&::marker` pseudo-element.\n */\n _marker: \"&::marker\",\n /**\n * The CSS `&::placeholder, &[data-placeholder]` pseudo-element.\n */\n _placeholder: \"&::placeholder, &[data-placeholder]\",\n /**\n * The CSS `&::-webkit-scrollbar, &[data-scrollbar]` pseudo-element.\n */\n _scrollbar: \"&::-webkit-scrollbar, &[data-scrollbar]\",\n /**\n * The CSS `&::-webkit-scrollbar-button` pseudo-element.\n */\n _scrollbarButton: \"&::-webkit-scrollbar-button\",\n /**\n * The CSS `&::-webkit-scrollbar-corner` pseudo-element.\n */\n _scrollbarCorner: \"&::-webkit-scrollbar-corner\",\n /**\n * The CSS `&::-webkit-scrollbar-thumb` pseudo-element.\n */\n _scrollbarThumb: \"&::-webkit-scrollbar-thumb\",\n /**\n * The CSS `&::-webkit-scrollbar-track` pseudo-element.\n */\n _scrollbarTrack: \"&::-webkit-scrollbar-track\",\n /**\n * The CSS `&::-webkit-scrollbar-track-piece` pseudo-element.\n */\n _scrollbarTrackPiece: \"&::-webkit-scrollbar-track-piece\",\n /**\n * The CSS `&::selection` pseudo-element.\n */\n _selection: \"&::selection\",\n} as const\n\nexport type PseudoElements = typeof pseudoElements\nexport type PseudoElementProperty = keyof PseudoElements\nexport type PseudoElementProps = {\n [K in PseudoElementProperty]?: CSSObject\n}\n\nexport const pseudoElementProperties = Object.keys(\n pseudoElements,\n) as PseudoElementProperty[]\nexport const pseudoElementSelectors = Object.values(pseudoElements)\n\nexport const pseudoClasses = {\n /**\n * The CSS `&:is([data-activedescendant])` pseudo-class.\n */\n _activedescendant: \"&:is([data-activedescendant])\",\n /**\n * The CSS `:any-link` pseudo-class.\n */\n _anyLink: \"&:is(:any-link, [data-any-link])\",\n /**\n * The CSS `&:autofill` pseudo-class.\n */\n _autofill: \"&:autofill\",\n /**\n * The CSS `&:is(:blank, [data-blank])` pseudo-class.\n */\n _blank: \"&:is(:blank, [data-blank])\",\n /**\n * The CSS `&:is(:checked, [data-checked], [aria-checked=true])` pseudo-class.\n */\n _checked: \"&:is(:checked, [data-checked], [aria-checked=true])\",\n /**\n * The CSS `& > *` child combinator selector.\n */\n _child: \"& > *\",\n /**\n * The CSS `& > [data-content]` child combinator attribute selector.\n */\n _content: \"& > [data-content]\",\n /**\n * The CSS `&:default` pseudo-class.\n */\n _default: \"&:default\",\n /**\n * The CSS `&:empty` pseudo-class.\n */\n _empty: \"&:empty\",\n /**\n * The CSS `&:is(:enabled, [data-enabled])` pseudo-class.\n */\n _enabled: \"&:is(:enabled, [data-enabled])\",\n /**\n * The CSS `&:nth-of-type(even)` pseudo-class.\n */\n _even: \"&:nth-of-type(even)\",\n /**\n * The CSS `&:first-of-type` pseudo-class.\n */\n _first: \"&:first-of-type\",\n /**\n * The CSS `& > *:first-child` pseudo-class.\n */\n _firstChild: \"& > *:first-child\",\n /**\n * The CSS `&:not(:focus-within, [data-focus-within])` pseudo-class.\n */\n _focusWithin: \"&:not(:focus-within, [data-focus-within])\",\n /**\n * The CSS `&:fullscreen` pseudo-class.\n */\n _fullScreen: \"&:fullscreen\",\n /**\n * The CSS `&:is([data-orientation=horizontal], [aria-orientation=horizontal])` pseudo-class.\n */\n _horizontal:\n \"&:is([data-orientation=horizontal], [aria-orientation=horizontal])\",\n /**\n * The CSS `&:where(svg:not([data-loading])), & > [data-icon]` pseudo-class.\n */\n _icon: \"&:where(svg:not([data-loading])), & > [data-icon]\",\n /**\n * The CSS `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed])` pseudo-class.\n */\n _indeterminate:\n \"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed])\",\n /**\n * The CSS `& > [data-indicator]` pseudo-class.\n */\n _indicator: \"& > [data-indicator]\",\n /**\n * The CSS `&:is(:in-range, [data-in-range])` pseudo-class.\n */\n _inRange: \"&:is(:in-range, [data-in-range])\",\n /**\n * The CSS `&:last-of-type` pseudo-class.\n */\n _last: \"&:last-of-type\",\n /**\n * The CSS `& > *:last-child` pseudo-class.\n */\n _lastChild: \"& > *:last-child\",\n /**\n * The CSS `&:is(:link, [data-link])` pseudo-class.\n */\n _link: \"&:is(:link, [data-link])\",\n /**\n * The CSS `&:modal` pseudo-class.\n */\n _modal: \"&:modal\",\n /**\n * The CSS `&:active` pseudo-class.\n */\n _nativeActive: \"&:active\",\n /**\n * The CSS `&:checked` pseudo-class.\n */\n _nativeChecked: \"&:checked\",\n /**\n * The CSS `&:is(disabled, [disabled])` pseudo-class.\n */\n _nativeDisabled: \"&:is(disabled, [disabled])\",\n /**\n * The CSS `&:focus` pseudo-class.\n */\n _nativeFocus: \"&:focus\",\n /**\n * The CSS `&:focus-visible` pseudo-class.\n */\n _nativeFocusVisible: \"&:focus-visible\",\n /**\n * The CSS `&:focus-within` pseudo-class.\n */\n _nativeFocusWithin: \"&:focus-within\",\n /**\n * The CSS `&:hover` pseudo-class.\n */\n _nativeHover: \"&:hover\",\n /**\n * The CSS `&:is([readonly], [aria-readonly=true])` pseudo-class.\n */\n _nativeReadOnly: \"&:is([readonly], [aria-readonly=true])\",\n /**\n * The CSS `&:target` pseudo-class.\n */\n _nativeTarget: \"&:target\",\n /**\n * The CSS `&:valid` pseudo-class.\n */\n _nativeValid: \"&:valid\",\n /**\n * The CSS `&:not(:checked):not([data-checked]):not([aria-checked=true])` pseudo-class.\n */\n _notChecked: \"&:not(:checked):not([data-checked]):not([aria-checked=true])\",\n /**\n * The CSS `&:not(:empty)` pseudo-class.\n */\n _notEmpty: \"&:not(:empty)\",\n /**\n * The CSS `&:not(:first-of-type)` pseudo-class.\n */\n _notFirst: \"&:not(:first-of-type)\",\n /**\n * The CSS `& > *:not(:first-child)` pseudo-class.\n */\n _notFirstChild: \"& > *:not(:first-child)\",\n /**\n * The CSS `&:not(:last-of-type)` pseudo-class.\n */\n _notLast: \"&:not(:last-of-type)\",\n /**\n * The CSS `& > *:not(:last-child)` pseudo-class.\n */\n _notLastChild: \"& > *:not(:last-child)\",\n /**\n * The CSS `&:not(:target)` pseudo-class.\n */\n _notTarget: \"&:not(:target)\",\n /**\n * The CSS `&:nth-of-type(odd)` pseudo-class.\n */\n _odd: \"&:nth-of-type(odd)\",\n /**\n * The CSS `&:only-of-type` pseudo-class.\n */\n _only: \"&:only-of-type\",\n /**\n * The CSS `&:only-child` pseudo-class.\n */\n _onlyChild: \"&:only-child\",\n /**\n * The CSS `&:is(:optional, [data-optional])` pseudo-class.\n */\n _optional: \"&:is(:optional, [data-optional])\",\n /**\n * The CSS `&:is(:out-of-range, [data-out-of-range])` pseudo-class.\n */\n _outRange: \"&:is(:out-of-range, [data-out-of-range])\",\n /**\n * The CSS `&:is(:paused, [data-paused])` pseudo-class.\n */\n _paused: \"&:is(:paused, [data-paused])\",\n /**\n * The CSS `&:picture-in-picture` pseudo-class.\n */\n _picture: \"&:picture-in-picture\",\n /**\n * The CSS `&:placeholder-shown` pseudo-class.\n */\n _placeholderShown: \"&:placeholder-shown\",\n /**\n * The CSS `&:is(:playing, [data-playing])` pseudo-class.\n */\n _playing: \"&:is(:playing, [data-playing])\",\n /**\n * The CSS `&:popover-open` pseudo-class.\n */\n _popoverOpen: \"&:popover-open\",\n /**\n * The CSS `&:is(:read-write, [data-read-write])` pseudo-class.\n */\n _readWrite: \"&:is(:read-write, [data-read-write])\",\n /**\n * The CSS `&:is(:required, [required])` pseudo-class.\n */\n _required: \"&:is(:required, [required])\",\n /**\n * The CSS `&:is(:target, [data-target])` pseudo-class.\n */\n _target: \"&:is(:target, [data-target])\",\n /**\n * The CSS `&:is(:user-invalid, [data-user-invalid])` pseudo-class.\n */\n _userInvalid: \"&:is(:user-invalid, [data-user-invalid])\",\n /**\n * The CSS `&:is(:valid, [data-valid])` pseudo-class.\n */\n _valid: \"&:is(:valid, [data-valid])\",\n /**\n * The CSS `&:is([data-orientation=vertical], [aria-orientation=vertical])` pseudo-class.\n */\n _vertical: \"&:is([data-orientation=vertical], [aria-orientation=vertical])\",\n /**\n * The CSS `&:visited` pseudo-class.\n */\n _visited: \"&:visited\",\n /**\n * The CSS `&:is(:hover, [data-hover])` pseudo-class.\n */\n _hover:\n \"&:is(:hover, [data-hover]):not(:disabled, [disabled], [aria-disabled=true], [data-disabled])\",\n /**\n * The CSS `&:is(:active, [data-active])` pseudo-class.\n */\n _active:\n \"&:is(:active, [data-active]):not(:disabled, [disabled], [aria-disabled=true], [data-disabled])\",\n /**\n * The CSS `&:is(:focus, [data-focus])` pseudo-class.\n */\n _focus: \"&:is(:focus, [data-focus])\",\n /**\n * The CSS `&:is(:focus-visible, [data-focus-visible])` pseudo-class.\n */\n _focusVisible: \"&:is(:focus-visible, [data-focus-visible])\",\n /**\n * The CSS `&:is([data-invalid], [aria-invalid=true])` attribute selector.\n */\n _invalid: \"&:is([data-invalid], [aria-invalid=true])\",\n /**\n * The CSS `&:is([readonly], [data-readonly], [aria-readonly=true])` pseudo-class.\n */\n _readOnly: \"&:is([readonly], [data-readonly], [aria-readonly=true])\",\n /**\n * The CSS `&:is(:disabled, [disabled], [data-disabled])` pseudo-class.\n */\n _disabled: \"&:is(:disabled, [disabled], [data-disabled])\",\n} as const\n\nexport type PseudoClasses = typeof pseudoClasses\nexport type PseudoClassProperty = keyof PseudoClasses\nexport type PseudoClassProps = {\n [K in PseudoClassProperty]?: CSSObject\n}\n\nexport const pseudoClassProperties = Object.keys(\n pseudoClasses,\n) as PseudoClassProperty[]\nexport const pseudoClassSelectors = Object.values(pseudoClasses)\n\nexport const groupAttributes = {\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is accepted.\n */\n _groupAccept: toGroup(attributes._accept),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is activedescendant.\n */\n _groupActivedescendant: toGroup(pseudoClasses._activedescendant),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is animated.\n */\n _groupAnimated: toGroup(attributes._animated),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is blank.\n */\n _groupBlank: toGroup(pseudoClasses._blank),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is checked.\n */\n _groupChecked: toGroup(pseudoClasses._checked),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is collapsed.\n */\n _groupCollapsed: toGroup(attributes._collapsed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is complete.\n */\n _groupComplete: toGroup(attributes._complete),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is current.\n */\n _groupCurrent: toGroup(attributes._current),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is enabled.\n */\n _groupEnabled: toGroup(pseudoClasses._enabled),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is expanded.\n */\n _groupExpanded: toGroup(attributes._expanded),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focus-within.\n */\n _groupFocusWithin: toGroup(pseudoClasses._focusWithin),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is grabbed.\n */\n _groupGrabbed: toGroup(attributes._grabbed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is horizontal.\n */\n _groupHorizontal: toGroup(pseudoClasses._horizontal),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is idle.\n */\n _groupIdle: toGroup(attributes._idle),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is incomplete.\n */\n _groupIncomplete: toGroup(attributes._incomplete),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is loaded.\n */\n _groupLoaded: toGroup(attributes._loaded),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is loading.\n */\n _groupLoading: toGroup(attributes._loading),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is open.\n */\n _groupOpen: toGroup(attributes._open),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is optional.\n */\n _groupOptional: toGroup(pseudoClasses._optional),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` has a placeholder shown.\n */\n _groupPlaceholderShown: toGroup(pseudoClasses._placeholderShown),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is pressed.\n */\n _groupPressed: toGroup(attributes._pressed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is range.\n */\n _groupRange: toGroup(attributes._range),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is read-write.\n */\n _groupReadWrite: toGroup(pseudoClasses._readWrite),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is rejected.\n */\n _groupReject: toGroup(attributes._reject),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is required.\n */\n _groupRequired: toGroup(pseudoClasses._required),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is user-invalid.\n */\n _groupUserInvalid: toGroup(pseudoClasses._userInvalid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is valid.\n */\n _groupValid: toGroup(pseudoClasses._valid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is vertical.\n */\n _groupVertical: toGroup(pseudoClasses._vertical),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is hovered.\n */\n _groupHover: toGroup(pseudoClasses._hover),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is active.\n */\n _groupActive: toGroup(pseudoClasses._active),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focused.\n */\n _groupFocus: toGroup(pseudoClasses._focus),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focused-visible.\n */\n _groupFocusVisible: toGroup(pseudoClasses._focusVisible),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is selected.\n */\n _groupSelected: toGroup(attributes._selected),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is invalid.\n */\n _groupInvalid: toGroup(pseudoClasses._invalid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is read-only.\n */\n _groupReadOnly: toGroup(pseudoClasses._readOnly),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is disabled.\n */\n _groupDisabled: toGroup(pseudoClasses._disabled),\n} as const\n\nexport type GroupAttributes = typeof groupAttributes\nexport type GroupAttributeProperty = keyof GroupAttributes\nexport type GroupAttributeProps = {\n [K in GroupAttributeProperty]?: CSSObject\n}\n\nexport const groupAttributeProperties = Object.keys(\n groupAttributes,\n) as GroupAttributeProperty[]\nexport const groupAttributeSelectors = Object.values(groupAttributes)\n\nexport const peerAttributes = {\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` exists.\n */\n _peer: toPeer(),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is accepted.\n */\n _peerAccept: toPeer(attributes._accept),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is animated.\n */\n _peerAnimated: toPeer(attributes._animated),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is blank.\n */\n _peerBlank: toPeer(pseudoClasses._blank),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is checked.\n */\n _peerChecked: toPeer(pseudoClasses._checked),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is collapsed.\n */\n _peerCollapsed: toPeer(attributes._collapsed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is complete.\n */\n _peerComplete: toPeer(attributes._complete),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is current.\n */\n _peerCurrent: toPeer(attributes._current),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is enabled.\n */\n _peerEnabled: toPeer(pseudoClasses._enabled),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is expanded.\n */\n _peerExpanded: toPeer(attributes._expanded),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focus-within.\n */\n _peerFocusWithin: toPeer(pseudoClasses._focusWithin),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is grabbed.\n */\n _peerGrabbed: toPeer(attributes._grabbed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is horizontal.\n */\n _peerHorizontal: toPeer(pseudoClasses._horizontal),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is idle.\n */\n _peerIdle: toPeer(attributes._idle),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is incomplete.\n */\n _peerIncomplete: toPeer(attributes._incomplete),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is loaded.\n */\n _peerLoaded: toPeer(attributes._loaded),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is loading.\n */\n _peerLoading: toPeer(attributes._loading),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is optional.\n */\n _peerOptional: toPeer(pseudoClasses._optional),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` has a placeholder shown.\n */\n _peerPlaceholderShown: toPeer(pseudoClasses._placeholderShown),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is pressed.\n */\n _peerPressed: toPeer(attributes._pressed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is range.\n */\n _peerRange: toPeer(attributes._range),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is read-write.\n */\n _peerReadWrite: toPeer(pseudoClasses._readWrite),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is rejected.\n */\n _peerReject: toPeer(attributes._reject),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is required.\n */\n _peerRequired: toPeer(pseudoClasses._required),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is user-invalid.\n */\n _peerUserInvalid: toPeer(pseudoClasses._userInvalid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is valid.\n */\n _peerValid: toPeer(pseudoClasses._valid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is vertical.\n */\n _peerVertical: toPeer(pseudoClasses._vertical),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is hovered.\n */\n _peerHover: toPeer(pseudoClasses._hover),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is active.\n */\n _peerActive: toPeer(pseudoClasses._active),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focused.\n */\n _peerFocus: toPeer(pseudoClasses._focus),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focused-visible.\n */\n _peerFocusVisible: toPeer(pseudoClasses._focusVisible),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is selected.\n */\n _peerSelected: toPeer(attributes._selected),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is invalid.\n */\n _peerInvalid: toPeer(pseudoClasses._invalid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is read-only.\n */\n _peerReadOnly: toPeer(pseudoClasses._readOnly),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is disabled.\n */\n _peerDisabled: toPeer(pseudoClasses._disabled),\n} as const\n\nexport type PeerAttributes = typeof peerAttributes\nexport type PeerAttributeProperty = keyof PeerAttributes\nexport type PeerAttributeProps = {\n [K in PeerAttributeProperty]?: CSSObject\n}\n\nexport const peerAttributeProperties = Object.keys(\n peerAttributes,\n) as PeerAttributeProperty[]\nexport const peerAttributeSelectors = Object.values(peerAttributes)\n\nexport const conditions = {\n ...pseudoElements,\n ...attributes,\n ...pseudoClasses,\n ...groupAttributes,\n ...peerAttributes,\n} as const\n\nexport type Conditions = typeof conditions\nexport type ConditionProperty = keyof Conditions\nexport type ConditionSelector = Conditions[ConditionProperty]\nexport type ConditionProps = {\n [K in keyof Conditions]?: CSSObject\n}\n\nexport const conditionProperties = Object.keys(\n conditions,\n) as ConditionProperty[]\nexport const conditionSelectors = Object.values(conditions)\n\nexport function getCondition(key: string) {\n return key in conditions ? conditions[key as ConditionProperty] : key\n}\n"],"mappings":";AAYA,MAAM,WAA6B,aACjC;CAAC;CAAgB;CAAgB;AAAQ,CAAC,CACvC,KAAK,WAAW,GAAG,SAAS,SAAS,MAAM,CAAC,EAAE,GAAG,CAAC,CAClD,KAAK,IAAI;AAMd,MAAM,UAA4B,aAChC,CACE,GAAG,CAAC,eAAe,OAAO,CAAC,CAAC,SAAS,WAAW,CAC9C,WACI,WAAW,SAAS,SAAS,MAAM,CAAC,EAAE,KACtC,WAAW,OAAO,IACtB,WAAW,GAAG,SAAS,SAAS,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,KAC7D,CAAC,GACD,GAAI,WACA,CAAC,eAAe,OAAO,CAAC,CAAC,SAAS,WAAW,CAC3C,WAAW,OAAO,IAAI,SAAS,MAAM,CAAC,EAAE,IACxC,GAAG,OAAO,QAAQ,SAAS,MAAM,CAAC,EAAE,MACtC,CAAC,IACD,CAAC,CACP,CAAC,CAAC,KAAK,IAAI;AAMb,MAAa,aAAa;;;;CAIxB,WAAW;;;;CAIX,SAAS;;;;CAIT,WAAW;;;;CAIX,UAAU;;;;CAIV,SAAS;;;;CAIT,YACE;;;;CAIF,WAAW;;;;CAIX,UAAU;;;;CAIV,OACE;;;;CAIF,MAAM;;;;CAIN,WAAW;;;;CAIX,WAAW;;;;CAIX,SAAS;;;;CAIT,UAAU;;;;CAIV,OAAO;;;;CAIP,WAAW;;;;CAIX,UAAU;;;;CAIV,OAAO;;;;CAIP,aAAa;;;;CAIb,QACE;;;;CAIF,SAAS;;;;CAIT,UAAU;;;;CAIV,MAAM;;;;CAIN,eAAe;;;;CAIf,aAAa;;;;CAIb,aAAa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ts"],"sourcesContent":["import type { Length } from \"../../utils\"\nimport type { DOMElement } from \"../components\"\nimport type { CSSObject } from \"./index.type\"\n\ntype ReplaceSelector<\n Y extends string[],\n M extends string,\n D extends string,\n> = Y extends [infer H extends string, ...infer R extends string[]]\n ? `${H}${M extends `&${infer T}` ? `${T} ${D}` : `${M} ${D}`}${Length<R> extends 0 ? \"\" : `, `}${ReplaceSelector<R, M, D>}`\n : \"\"\n\nconst toGroup = <Y extends string>(selector: Y) =>\n [\"[role=group]\", \"[data-group]\", \".group\"]\n .map((prefix) => `${prefix}${selector.slice(1)} &`)\n .join(\", \") as ReplaceSelector<\n [\"[role=group]\", \"[data-group]\", \".group\"],\n Y,\n \"&\"\n >\n\nconst toPeer = <Y extends string>(selector?: Y) =>\n [\n ...[\"[data-peer]\", \".peer\"].flatMap((prefix) => [\n selector\n ? `&:has(~ ${prefix}${selector.slice(1)})`\n : `&:has(~ ${prefix})`,\n selector ? `${prefix}${selector.slice(1)} ~ &` : `${prefix} ~ &`,\n ]),\n ...(selector\n ? [\"[data-peer]\", \".peer\"].flatMap((prefix) => [\n `&:has(~ ${prefix} *${selector.slice(1)})`,\n `${prefix}:has(*${selector.slice(1)}) ~ &`,\n ])\n : []),\n ].join(\", \") as ReplaceSelector<[\"[data-peer]\", \".peer\"], Y, \"~ &\">\n\nexport type AnySelector =\n | `${string}${\" \" | \"#\" | \"*\" | \"+\" | \",\" | \".\" | \":\" | \">\" | \"@\" | \"[\" | \"]\" | \"~\"}${string}`\n | DOMElement\n\nexport const attributes = {\n /**\n * The CSS `&[data-inactive]` attribute selector.\n */\n _inactive: \"&[data-inactive]\",\n /**\n * The CSS `&[data-accept]` attribute selector.\n */\n _accept: \"&[data-accept]\",\n /**\n * The CSS `&[data-animated]` attribute selector.\n */\n _animated: \"&[data-animated]\",\n /**\n * The CSS `&[data-between]` attribute selector.\n */\n _between: \"&[data-between]\",\n /**\n * The CSS `&:is([data-center], [data-group-center])` attribute selector.\n */\n _center: \"&:is([data-center], [data-group-center])\",\n /**\n * The CSS `&:is([data-collapsed], :not([data-expanded]), [aria-expanded=false])` attribute selector.\n */\n _collapsed:\n \"&:is([data-collapsed], :not([data-expanded]), [aria-expanded=false])\",\n /**\n * The CSS `&[data-complete]` attribute selector.\n */\n _complete: \"&[data-complete]\",\n /**\n * The CSS `&:is([aria-current], [data-current]):not([aria-current='false'])` attribute selector.\n */\n _current: \"&:is([aria-current], [data-current]):not([aria-current='false'])\",\n /**\n * Styles for when `data-mode` is applied to any parent of this component or element.\n */\n _dark:\n \":host([data-mode=dark]) &, .dark &:not([data-mode]), [data-mode=dark] &:not([data-mode]), &[data-mode=dark]\",\n /**\n * The CSS `&:is([data-end], [data-group-end], [data-direction=end])` attribute selector.\n */\n _end: \"&:is([data-end], [data-group-end], [data-direction=end])\",\n /**\n * The CSS `&:is([data-expanded], [aria-expanded=true])` attribute selector.\n */\n _expanded: \"&:is([data-expanded], [aria-expanded=true])\",\n /**\n * The CSS `&[data-fallback]` attribute selector.\n */\n _fallback: \"&[data-fallback]\",\n /**\n * The CSS `&[data-filled]` attribute selector.\n */\n _filled: \"&[data-filled]\",\n /**\n * The CSS `&:is([data-grabbed], [aria-grabbed=true])` attribute selector.\n */\n _grabbed: \"&:is([data-grabbed], [aria-grabbed=true])\",\n /**\n * The CSS `&:is([role=grid], [data-grid])` attribute selector.\n */\n _grid: \"&:is([role=grid], [data-grid])\",\n /**\n * The CSS `&:is(:has(> [role=group]), :has(> [data-group]), :has(> .group))` attribute selector.\n */\n _hasGroup: \"&:is(:has(> [role=group]), :has(> [data-group]), :has(> .group))\",\n /**\n * The CSS `&:has(> [data-icon])` attribute selector.\n */\n _hasIcon: \"&:has(> [data-icon])\",\n /**\n * The CSS `&[data-idle]` attribute selector.\n */\n _idle: \"&[data-idle]\",\n /**\n * The CSS `&[data-incomplete]` attribute selector.\n */\n _incomplete: \"&[data-incomplete]\",\n /**\n * Styles for when `data-mode` is applied to any parent of this component or element.\n */\n _light:\n \":host([data-mode=light]) &, .light &:not([data-mode]), [data-mode=light] &:not([data-mode]), &[data-mode=light]\",\n /**\n * The CSS `&[data-loaded]` attribute selector.\n */\n _loaded: \"&[data-loaded]\",\n /**\n * The CSS `&:is([data-loading], [aria-busy=true])` attribute selector.\n */\n _loading: \"&:is([data-loading], [aria-busy=true])\",\n /**\n * The CSS `&[dir=ltr]` attribute selector.\n */\n _ltr: \"[dir=ltr] &\",\n /**\n * The CSS `&[hidden]` attribute selector.\n */\n _nativeHidden: \"&[hidden]\",\n /**\n * The CSS `&[data-not-allowed]` attribute selector.\n */\n _notAllowed: \"&[data-not-allowed]\",\n /**\n * The CSS `&[aria-current='false']` attribute selector.\n */\n _notCurrent: \"&:not([aria-current], [data-current]), &[aria-current='false']\",\n /**\n * The CSS `&:not([data-fallback])` attribute selector.\n */\n _notFallback: \"&:not([data-fallback])\",\n /**\n * The CSS `&:not(:has(> [role=group]), :has(> [data-group]), :has(> .group))` attribute selector.\n */\n _notHasGroup:\n \"&:not(:has(> [role=group]), :has(> [data-group]), :has(> .group))\",\n /**\n * The CSS `&:not([data-selected]):not([aria-selected=true])` attribute selector.\n */\n _notSelected: \"&:not([data-selected]):not([aria-selected=true])\",\n /**\n * The CSS `&[data-numeric]` attribute selector.\n */\n _numeric: \"&[data-numeric]\",\n /**\n * The CSS `&:is([open], [data-open])` attribute selector.\n */\n _open: \"&:is([open], [data-open])\",\n /**\n * The CSS `&:is([data-pressed], [aria-pressed=true])` attribute selector.\n */\n _pressed: \"&:is([data-pressed], [aria-pressed=true])\",\n /**\n * The CSS `&:is([data-range])` attribute selector.\n */\n _range: \"&:is([data-range])\",\n /**\n * The CSS `&[data-reject]` attribute selector.\n */\n _reject: \"&[data-reject]\",\n /**\n * The CSS `& .ui-ripple` attribute selector.\n */\n _ripple: \"& .ui-ripple\",\n /**\n * The CSS `&[dir=rtl]` attribute selector.\n */\n _rtl: \"[dir=rtl] &\",\n /**\n * The CSS `&:is([data-start], [data-group-start], [data-direction=start])` attribute selector.\n */\n _start: \"&:is([data-start], [data-group-start], [data-direction=start])\",\n /**\n * The CSS `&:is([data-selected], [aria-selected=true])` attribute selector.\n */\n _selected: \"&:is([data-selected], [aria-selected=true])\",\n /**\n * The CSS `&:is([hidden], [data-hidden])` attribute selector.\n */\n _hidden: \"&:is([hidden], [data-hidden])\",\n /**\n * The CSS `&[data-never]` attribute selector.\n */\n _never: \"&[data-never]\",\n} as const\n\nexport type Attributes = typeof attributes\nexport type AttributeProperty = keyof Attributes\nexport type AttributeProps = {\n [K in AttributeProperty]?: CSSObject\n}\n\nexport const attributeProperties = Object.keys(\n attributes,\n) as AttributeProperty[]\nexport const attributeSelectors = Object.values(attributes)\n\nexport const pseudoElements = {\n /**\n * The CSS `&::after` pseudo-element.\n */\n _after: \"&::after\",\n /**\n * The CSS `&::backdrop` pseudo-element.\n */\n _backdrop: \"&::backdrop\",\n /**\n * The CSS `&::before` pseudo-element.\n */\n _before: \"&::before\",\n /**\n * The CSS `&::cue` pseudo-element.\n */\n _cue: \"&::cue\",\n /**\n * The CSS `&::cue-region` pseudo-element.\n */\n _cueRegion: \"&::cue-region\",\n /**\n * The CSS `&::details-content` pseudo-element.\n */\n _detailsContent: \"&::details-content\",\n /**\n * The CSS `&::file-selector-button` pseudo-element.\n */\n _fileSelector: \"&::file-selector-button\",\n /**\n * The CSS `&::first-letter` pseudo-element.\n */\n _firstLetter: \"&::first-letter\",\n /**\n * The CSS `&::first-line` pseudo-element.\n */\n _firstLine: \"&::first-line\",\n /**\n * The CSS `&::marker` pseudo-element.\n */\n _marker: \"&::marker\",\n /**\n * The CSS `&::placeholder, &[data-placeholder]` pseudo-element.\n */\n _placeholder: \"&::placeholder, &[data-placeholder]\",\n /**\n * The CSS `&::-webkit-scrollbar, &[data-scrollbar]` pseudo-element.\n */\n _scrollbar: \"&::-webkit-scrollbar, &[data-scrollbar]\",\n /**\n * The CSS `&::-webkit-scrollbar-button` pseudo-element.\n */\n _scrollbarButton: \"&::-webkit-scrollbar-button\",\n /**\n * The CSS `&::-webkit-scrollbar-corner` pseudo-element.\n */\n _scrollbarCorner: \"&::-webkit-scrollbar-corner\",\n /**\n * The CSS `&::-webkit-scrollbar-thumb` pseudo-element.\n */\n _scrollbarThumb: \"&::-webkit-scrollbar-thumb\",\n /**\n * The CSS `&::-webkit-scrollbar-track` pseudo-element.\n */\n _scrollbarTrack: \"&::-webkit-scrollbar-track\",\n /**\n * The CSS `&::-webkit-scrollbar-track-piece` pseudo-element.\n */\n _scrollbarTrackPiece: \"&::-webkit-scrollbar-track-piece\",\n /**\n * The CSS `&::selection` pseudo-element.\n */\n _selection: \"&::selection\",\n} as const\n\nexport type PseudoElements = typeof pseudoElements\nexport type PseudoElementProperty = keyof PseudoElements\nexport type PseudoElementProps = {\n [K in PseudoElementProperty]?: CSSObject\n}\n\nexport const pseudoElementProperties = Object.keys(\n pseudoElements,\n) as PseudoElementProperty[]\nexport const pseudoElementSelectors = Object.values(pseudoElements)\n\nexport const pseudoClasses = {\n /**\n * The CSS `&:is([data-activedescendant])` pseudo-class.\n */\n _activedescendant: \"&:is([data-activedescendant])\",\n /**\n * The CSS `:any-link` pseudo-class.\n */\n _anyLink: \"&:is(:any-link, [data-any-link])\",\n /**\n * The CSS `&:autofill` pseudo-class.\n */\n _autofill: \"&:autofill\",\n /**\n * The CSS `&:is(:blank, [data-blank])` pseudo-class.\n */\n _blank: \"&:is(:blank, [data-blank])\",\n /**\n * The CSS `&:is(:checked, [data-checked], [aria-checked=true])` pseudo-class.\n */\n _checked: \"&:is(:checked, [data-checked], [aria-checked=true])\",\n /**\n * The CSS `& > *` child combinator selector.\n */\n _child: \"& > *\",\n /**\n * The CSS `& > [data-content]` child combinator attribute selector.\n */\n _content: \"& > [data-content]\",\n /**\n * The CSS `&:default` pseudo-class.\n */\n _default: \"&:default\",\n /**\n * The CSS `&:empty` pseudo-class.\n */\n _empty: \"&:empty\",\n /**\n * The CSS `&:is(:enabled, [data-enabled])` pseudo-class.\n */\n _enabled: \"&:is(:enabled, [data-enabled])\",\n /**\n * The CSS `&:nth-of-type(even)` pseudo-class.\n */\n _even: \"&:nth-of-type(even)\",\n /**\n * The CSS `&:first-of-type` pseudo-class.\n */\n _first: \"&:first-of-type\",\n /**\n * The CSS `& > *:first-child` pseudo-class.\n */\n _firstChild: \"& > *:first-child\",\n /**\n * The CSS `&:not(:focus-within, [data-focus-within])` pseudo-class.\n */\n _focusWithin: \"&:not(:focus-within, [data-focus-within])\",\n /**\n * The CSS `&:fullscreen` pseudo-class.\n */\n _fullScreen: \"&:fullscreen\",\n /**\n * The CSS `&:is([data-orientation=horizontal], [aria-orientation=horizontal])` pseudo-class.\n */\n _horizontal:\n \"&:is([data-orientation=horizontal], [aria-orientation=horizontal])\",\n /**\n * The CSS `&:where(svg:not([data-loading])), & > [data-icon]` pseudo-class.\n */\n _icon: \"&:where(svg:not([data-loading])), & > [data-icon]\",\n /**\n * The CSS `&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed])` pseudo-class.\n */\n _indeterminate:\n \"&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed])\",\n /**\n * The CSS `& > [data-indicator]` pseudo-class.\n */\n _indicator: \"& > [data-indicator]\",\n /**\n * The CSS `&:is(:in-range, [data-in-range])` pseudo-class.\n */\n _inRange: \"&:is(:in-range, [data-in-range])\",\n /**\n * The CSS `&:last-of-type` pseudo-class.\n */\n _last: \"&:last-of-type\",\n /**\n * The CSS `& > *:last-child` pseudo-class.\n */\n _lastChild: \"& > *:last-child\",\n /**\n * The CSS `&:is(:link, [data-link])` pseudo-class.\n */\n _link: \"&:is(:link, [data-link])\",\n /**\n * The CSS `&:modal` pseudo-class.\n */\n _modal: \"&:modal\",\n /**\n * The CSS `&:active` pseudo-class.\n */\n _nativeActive: \"&:active\",\n /**\n * The CSS `&:checked` pseudo-class.\n */\n _nativeChecked: \"&:checked\",\n /**\n * The CSS `&:is(disabled, [disabled])` pseudo-class.\n */\n _nativeDisabled: \"&:is(disabled, [disabled])\",\n /**\n * The CSS `&:focus` pseudo-class.\n */\n _nativeFocus: \"&:focus\",\n /**\n * The CSS `&:focus-visible` pseudo-class.\n */\n _nativeFocusVisible: \"&:focus-visible\",\n /**\n * The CSS `&:focus-within` pseudo-class.\n */\n _nativeFocusWithin: \"&:focus-within\",\n /**\n * The CSS `&:hover` pseudo-class.\n */\n _nativeHover: \"&:hover\",\n /**\n * The CSS `&:is([readonly], [aria-readonly=true])` pseudo-class.\n */\n _nativeReadOnly: \"&:is([readonly], [aria-readonly=true])\",\n /**\n * The CSS `&:target` pseudo-class.\n */\n _nativeTarget: \"&:target\",\n /**\n * The CSS `&:valid` pseudo-class.\n */\n _nativeValid: \"&:valid\",\n /**\n * The CSS `&:not(:checked):not([data-checked]):not([aria-checked=true])` pseudo-class.\n */\n _notChecked: \"&:not(:checked):not([data-checked]):not([aria-checked=true])\",\n /**\n * The CSS `&:not(:empty)` pseudo-class.\n */\n _notEmpty: \"&:not(:empty)\",\n /**\n * The CSS `&:not(:first-of-type)` pseudo-class.\n */\n _notFirst: \"&:not(:first-of-type)\",\n /**\n * The CSS `& > *:not(:first-child)` pseudo-class.\n */\n _notFirstChild: \"& > *:not(:first-child)\",\n /**\n * The CSS `&:not(:last-of-type)` pseudo-class.\n */\n _notLast: \"&:not(:last-of-type)\",\n /**\n * The CSS `& > *:not(:last-child)` pseudo-class.\n */\n _notLastChild: \"& > *:not(:last-child)\",\n /**\n * The CSS `&:not(:target)` pseudo-class.\n */\n _notTarget: \"&:not(:target)\",\n /**\n * The CSS `&:nth-of-type(odd)` pseudo-class.\n */\n _odd: \"&:nth-of-type(odd)\",\n /**\n * The CSS `&:only-of-type` pseudo-class.\n */\n _only: \"&:only-of-type\",\n /**\n * The CSS `&:only-child` pseudo-class.\n */\n _onlyChild: \"&:only-child\",\n /**\n * The CSS `&:is(:optional, [data-optional])` pseudo-class.\n */\n _optional: \"&:is(:optional, [data-optional])\",\n /**\n * The CSS `&:is(:out-of-range, [data-out-of-range])` pseudo-class.\n */\n _outRange: \"&:is(:out-of-range, [data-out-of-range])\",\n /**\n * The CSS `&:is(:paused, [data-paused])` pseudo-class.\n */\n _paused: \"&:is(:paused, [data-paused])\",\n /**\n * The CSS `&:picture-in-picture` pseudo-class.\n */\n _picture: \"&:picture-in-picture\",\n /**\n * The CSS `&:placeholder-shown` pseudo-class.\n */\n _placeholderShown: \"&:placeholder-shown\",\n /**\n * The CSS `&:is(:playing, [data-playing])` pseudo-class.\n */\n _playing: \"&:is(:playing, [data-playing])\",\n /**\n * The CSS `&:popover-open` pseudo-class.\n */\n _popoverOpen: \"&:popover-open\",\n /**\n * The CSS `&:is(:read-write, [data-read-write])` pseudo-class.\n */\n _readWrite: \"&:is(:read-write, [data-read-write])\",\n /**\n * The CSS `&:is(:required, [required])` pseudo-class.\n */\n _required: \"&:is(:required, [required])\",\n /**\n * The CSS `&:is(:target, [data-target])` pseudo-class.\n */\n _target: \"&:is(:target, [data-target])\",\n /**\n * The CSS `&:is(:user-invalid, [data-user-invalid])` pseudo-class.\n */\n _userInvalid: \"&:is(:user-invalid, [data-user-invalid])\",\n /**\n * The CSS `&:is(:valid, [data-valid])` pseudo-class.\n */\n _valid: \"&:is(:valid, [data-valid])\",\n /**\n * The CSS `&:is([data-orientation=vertical], [aria-orientation=vertical])` pseudo-class.\n */\n _vertical: \"&:is([data-orientation=vertical], [aria-orientation=vertical])\",\n /**\n * The CSS `&:visited` pseudo-class.\n */\n _visited: \"&:visited\",\n /**\n * The CSS `&:is(:hover, [data-hover])` pseudo-class.\n */\n _hover:\n \"&:is(:hover, [data-hover]):not(:disabled, [disabled], [aria-disabled=true], [data-disabled])\",\n /**\n * The CSS `&:is(:active, [data-active])` pseudo-class.\n */\n _active:\n \"&:is(:active, [data-active]):not(:disabled, [disabled], [aria-disabled=true], [data-disabled])\",\n /**\n * The CSS `&:is(:focus, [data-focus])` pseudo-class.\n */\n _focus: \"&:is(:focus, [data-focus])\",\n /**\n * The CSS `&:is(:focus-visible, [data-focus-visible])` pseudo-class.\n */\n _focusVisible: \"&:is(:focus-visible, [data-focus-visible])\",\n /**\n * The CSS `&:is([data-invalid], [aria-invalid=true])` attribute selector.\n */\n _invalid: \"&:is([data-invalid], [aria-invalid=true])\",\n /**\n * The CSS `&:is([readonly], [data-readonly], [aria-readonly=true])` pseudo-class.\n */\n _readOnly: \"&:is([readonly], [data-readonly], [aria-readonly=true])\",\n /**\n * The CSS `&:is(:disabled, [disabled], [data-disabled])` pseudo-class.\n */\n _disabled: \"&:is(:disabled, [disabled], [data-disabled])\",\n} as const\n\nexport type PseudoClasses = typeof pseudoClasses\nexport type PseudoClassProperty = keyof PseudoClasses\nexport type PseudoClassProps = {\n [K in PseudoClassProperty]?: CSSObject\n}\n\nexport const pseudoClassProperties = Object.keys(\n pseudoClasses,\n) as PseudoClassProperty[]\nexport const pseudoClassSelectors = Object.values(pseudoClasses)\n\nexport const groupAttributes = {\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is accepted.\n */\n _groupAccept: toGroup(attributes._accept),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is activedescendant.\n */\n _groupActivedescendant: toGroup(pseudoClasses._activedescendant),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is animated.\n */\n _groupAnimated: toGroup(attributes._animated),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is blank.\n */\n _groupBlank: toGroup(pseudoClasses._blank),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is checked.\n */\n _groupChecked: toGroup(pseudoClasses._checked),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is collapsed.\n */\n _groupCollapsed: toGroup(attributes._collapsed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is complete.\n */\n _groupComplete: toGroup(attributes._complete),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is current.\n */\n _groupCurrent: toGroup(attributes._current),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is enabled.\n */\n _groupEnabled: toGroup(pseudoClasses._enabled),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is expanded.\n */\n _groupExpanded: toGroup(attributes._expanded),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focus-within.\n */\n _groupFocusWithin: toGroup(pseudoClasses._focusWithin),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is grabbed.\n */\n _groupGrabbed: toGroup(attributes._grabbed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is horizontal.\n */\n _groupHorizontal: toGroup(pseudoClasses._horizontal),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is idle.\n */\n _groupIdle: toGroup(attributes._idle),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is incomplete.\n */\n _groupIncomplete: toGroup(attributes._incomplete),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is loaded.\n */\n _groupLoaded: toGroup(attributes._loaded),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is loading.\n */\n _groupLoading: toGroup(attributes._loading),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is open.\n */\n _groupOpen: toGroup(attributes._open),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is optional.\n */\n _groupOptional: toGroup(pseudoClasses._optional),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` has a placeholder shown.\n */\n _groupPlaceholderShown: toGroup(pseudoClasses._placeholderShown),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is pressed.\n */\n _groupPressed: toGroup(attributes._pressed),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is range.\n */\n _groupRange: toGroup(attributes._range),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is read-write.\n */\n _groupReadWrite: toGroup(pseudoClasses._readWrite),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is rejected.\n */\n _groupReject: toGroup(attributes._reject),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is required.\n */\n _groupRequired: toGroup(pseudoClasses._required),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is user-invalid.\n */\n _groupUserInvalid: toGroup(pseudoClasses._userInvalid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is valid.\n */\n _groupValid: toGroup(pseudoClasses._valid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is vertical.\n */\n _groupVertical: toGroup(pseudoClasses._vertical),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is hovered.\n */\n _groupHover: toGroup(pseudoClasses._hover),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is active.\n */\n _groupActive: toGroup(pseudoClasses._active),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focused.\n */\n _groupFocus: toGroup(pseudoClasses._focus),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is focused-visible.\n */\n _groupFocusVisible: toGroup(pseudoClasses._focusVisible),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is selected.\n */\n _groupSelected: toGroup(attributes._selected),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is invalid.\n */\n _groupInvalid: toGroup(pseudoClasses._invalid),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is read-only.\n */\n _groupReadOnly: toGroup(pseudoClasses._readOnly),\n /**\n * Styles to apply when a parent element with `role=group`, `data-group` or `.group` is disabled.\n */\n _groupDisabled: toGroup(pseudoClasses._disabled),\n} as const\n\nexport type GroupAttributes = typeof groupAttributes\nexport type GroupAttributeProperty = keyof GroupAttributes\nexport type GroupAttributeProps = {\n [K in GroupAttributeProperty]?: CSSObject\n}\n\nexport const groupAttributeProperties = Object.keys(\n groupAttributes,\n) as GroupAttributeProperty[]\nexport const groupAttributeSelectors = Object.values(groupAttributes)\n\nexport const peerAttributes = {\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` exists.\n */\n _peer: toPeer(),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is accepted.\n */\n _peerAccept: toPeer(attributes._accept),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is animated.\n */\n _peerAnimated: toPeer(attributes._animated),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is blank.\n */\n _peerBlank: toPeer(pseudoClasses._blank),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is checked.\n */\n _peerChecked: toPeer(pseudoClasses._checked),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is collapsed.\n */\n _peerCollapsed: toPeer(attributes._collapsed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is complete.\n */\n _peerComplete: toPeer(attributes._complete),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is current.\n */\n _peerCurrent: toPeer(attributes._current),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is enabled.\n */\n _peerEnabled: toPeer(pseudoClasses._enabled),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is expanded.\n */\n _peerExpanded: toPeer(attributes._expanded),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focus-within.\n */\n _peerFocusWithin: toPeer(pseudoClasses._focusWithin),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is grabbed.\n */\n _peerGrabbed: toPeer(attributes._grabbed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is horizontal.\n */\n _peerHorizontal: toPeer(pseudoClasses._horizontal),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is idle.\n */\n _peerIdle: toPeer(attributes._idle),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is incomplete.\n */\n _peerIncomplete: toPeer(attributes._incomplete),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is loaded.\n */\n _peerLoaded: toPeer(attributes._loaded),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is loading.\n */\n _peerLoading: toPeer(attributes._loading),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is optional.\n */\n _peerOptional: toPeer(pseudoClasses._optional),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` has a placeholder shown.\n */\n _peerPlaceholderShown: toPeer(pseudoClasses._placeholderShown),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is pressed.\n */\n _peerPressed: toPeer(attributes._pressed),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is range.\n */\n _peerRange: toPeer(attributes._range),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is read-write.\n */\n _peerReadWrite: toPeer(pseudoClasses._readWrite),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is rejected.\n */\n _peerReject: toPeer(attributes._reject),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is required.\n */\n _peerRequired: toPeer(pseudoClasses._required),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is user-invalid.\n */\n _peerUserInvalid: toPeer(pseudoClasses._userInvalid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is valid.\n */\n _peerValid: toPeer(pseudoClasses._valid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is vertical.\n */\n _peerVertical: toPeer(pseudoClasses._vertical),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is hovered.\n */\n _peerHover: toPeer(pseudoClasses._hover),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is active.\n */\n _peerActive: toPeer(pseudoClasses._active),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focused.\n */\n _peerFocus: toPeer(pseudoClasses._focus),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is focused-visible.\n */\n _peerFocusVisible: toPeer(pseudoClasses._focusVisible),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is selected.\n */\n _peerSelected: toPeer(attributes._selected),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is invalid.\n */\n _peerInvalid: toPeer(pseudoClasses._invalid),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is read-only.\n */\n _peerReadOnly: toPeer(pseudoClasses._readOnly),\n /**\n * Styles to apply when a sibling element with `data-peer` or `.peer` is disabled.\n */\n _peerDisabled: toPeer(pseudoClasses._disabled),\n} as const\n\nexport type PeerAttributes = typeof peerAttributes\nexport type PeerAttributeProperty = keyof PeerAttributes\nexport type PeerAttributeProps = {\n [K in PeerAttributeProperty]?: CSSObject\n}\n\nexport const peerAttributeProperties = Object.keys(\n peerAttributes,\n) as PeerAttributeProperty[]\nexport const peerAttributeSelectors = Object.values(peerAttributes)\n\nexport const conditions = {\n ...pseudoElements,\n ...attributes,\n ...pseudoClasses,\n ...groupAttributes,\n ...peerAttributes,\n} as const\n\nexport type Conditions = typeof conditions\nexport type ConditionProperty = keyof Conditions\nexport type ConditionSelector = Conditions[ConditionProperty]\nexport type ConditionProps = {\n [K in keyof Conditions]?: CSSObject\n}\n\nexport const conditionProperties = Object.keys(\n conditions,\n) as ConditionProperty[]\nexport const conditionSelectors = Object.values(conditions)\n\nexport function getCondition(key: string) {\n return key in conditions ? conditions[key as ConditionProperty] : key\n}\n"],"mappings":";AAYA,MAAM,WAA6B,aACjC;CAAC;CAAgB;CAAgB;AAAQ,CAAC,CACvC,KAAK,WAAW,GAAG,SAAS,SAAS,MAAM,CAAC,EAAE,GAAG,CAAC,CAClD,KAAK,IAAI;AAMd,MAAM,UAA4B,aAChC,CACE,GAAG,CAAC,eAAe,OAAO,CAAC,CAAC,SAAS,WAAW,CAC9C,WACI,WAAW,SAAS,SAAS,MAAM,CAAC,EAAE,KACtC,WAAW,OAAO,IACtB,WAAW,GAAG,SAAS,SAAS,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,KAC7D,CAAC,GACD,GAAI,WACA,CAAC,eAAe,OAAO,CAAC,CAAC,SAA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