@gridui/preferences 1.2.0 → 2.0.0

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/README.md CHANGED
@@ -1,15 +1,11 @@
1
1
  # @gridui/preferences
2
2
 
3
- Core family. Public API: `PreferenceLabels`, `PreferenceLanguage`, `PreferencesControls`, `PreferencesControlsProps`.
3
+ Controls family. Public API: `PreferenceLabels`, `PreferenceLanguage`, `PreferencesControls`, `PreferencesControlsProps`.
4
4
 
5
5
  Import components from `@gridui/preferences` and load these styles in order:
6
6
 
7
7
  ```css
8
8
  @import "@gridui/theme/styles.css";
9
- @import "@gridui/button/styles.css";
10
- @import "@gridui/overlay/styles.css";
11
- @import "@gridui/dropdown-menu/styles.css";
12
- @import "@gridui/tooltip/styles.css";
13
9
  @import "@gridui/preferences/styles.css";
14
10
  ```
15
11
 
@@ -17,7 +13,17 @@ Overlay supplies the selection indicator used by both presentations. The dropdow
17
13
  presentation also composes DropdownMenu and Tooltip. Applications own routes,
18
14
  labels, state persistence, and branding.
19
15
 
20
- See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/preferences/.changeset/history).
16
+ See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-controls/preferences/.changeset/history).
17
+
18
+ ## Styles
19
+
20
+ Load Theme once. Use `@gridui/preferences/styled` for automatic component CSS in
21
+ CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/preferences/styles.css`.
22
+ Both entries expose the same root API. The standalone stylesheet includes component
23
+ dependency styles; Theme/reset remain separate. See the
24
+ [integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
25
+ for static HTML loading, SSR limits, and avoiding duplicate CSS.
26
+
21
27
 
22
28
  ## Preferences
23
29
 
@@ -45,3 +51,16 @@ coordinates form state with data or page regions.
45
51
  Language links use each item's `locale` as native `lang` and `hrefLang`. Optional
46
52
  `dir` accepts `ltr`, `rtl`, or `auto` (default). Labels remain caller-provided;
47
53
  GridUI does not translate or infer font assets from a locale.
54
+
55
+ ## Local color scopes
56
+
57
+ Pass `portalContainer` to PreferencesControls to mount its dropdowns and tooltips
58
+ inside a `data-gridui-color-variant` region. The default remains the document body.
59
+ Inline content continues inheriting from its actual DOM parent.
60
+
61
+ ## Sizing and density
62
+
63
+ size controls owned inline choices, language links and dropdown triggers; it defaults to medium. density independently controls dropdown option rows and defaults to comfortable. These choices never infer locale policy, persistence or application state.
64
+
65
+ See the [shared sizing contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/sizing.md)
66
+ for native attributes, scope precedence, tokens and target behavior.
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "@gridui/tooltip";
5
5
  import { useState } from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  var PreferenceMenu = (props) => {
8
- const { label, icon, children, selectionAppearance } = props;
8
+ const { label, icon, children, selectionAppearance, container, size = "medium", density = "comfortable" } = props;
9
9
  const [
10
10
  menuOpen,
11
11
  setMenuOpen
@@ -39,7 +39,7 @@ var PreferenceMenu = (props) => {
39
39
  Button,
40
40
  {
41
41
  variant: "quiet",
42
- size: "small",
42
+ size,
43
43
  layout: "icon",
44
44
  "aria-label": label,
45
45
  children: icon
@@ -50,6 +50,7 @@ var PreferenceMenu = (props) => {
50
50
  /* @__PURE__ */ jsx(
51
51
  TooltipContent,
52
52
  {
53
+ container,
53
54
  align: "end",
54
55
  children: label
55
56
  }
@@ -60,6 +61,8 @@ var PreferenceMenu = (props) => {
60
61
  /* @__PURE__ */ jsx(
61
62
  DropdownMenuContent,
62
63
  {
64
+ density,
65
+ container,
63
66
  selectionAppearance,
64
67
  children
65
68
  }
@@ -88,7 +91,7 @@ var preferencesOptionsStyles = cva(cn(
88
91
  "gridui-preferences-options",
89
92
  "gridui-u-preferences--flex gridui-u-preferences--flex-wrap gridui-u-preferences--items-stretch gridui-u-preferences--gap-px gridui-u-preferences--border gridui-u-preferences--border-solid gridui-u-preferences--border-border gridui-u-preferences--rounded-control gridui-u-preferences--bg-border",
90
93
  "gridui-u-preferences--*:flex-[1_1_auto] gridui-u-preferences--*:min-w-0 gridui-u-preferences--*:max-w-full gridui-u-preferences--*:rounded-none gridui-u-preferences--*:border-0 gridui-u-preferences--*:bg-background gridui-u-preferences--*:whitespace-normal gridui-u-preferences--*:wrap-anywhere",
91
- "gridui-u-preferences--[&_>_a]:inline-flex gridui-u-preferences--[&_>_a]:min-h-gridui-control-small gridui-u-preferences--[&_>_a]:items-center gridui-u-preferences--[&_>_a]:justify-center gridui-u-preferences--[&_>_a]:gap-gridui-4 gridui-u-preferences--[&_>_a]:py-gridui-4 gridui-u-preferences--[&_>_a]:px-gridui-8 gridui-u-preferences--[&_>_a]:text-foreground gridui-u-preferences--[&_>_a]:no-underline gridui-u-preferences--[&_>_a]:type-ui",
94
+ "gridui-u-preferences--[&_>_a]:inline-flex gridui-u-preferences--[&_>_a]:min-h-(--gridui-preferences-min) gridui-u-preferences--[&_>_a]:items-center gridui-u-preferences--[&_>_a]:justify-center gridui-u-preferences--[&_>_a]:gap-gridui-4 gridui-u-preferences--[&_>_a]:py-(--gridui-preferences-block) gridui-u-preferences--[&_>_a]:px-(--gridui-preferences-inline) gridui-u-preferences--[&_>_a]:text-foreground gridui-u-preferences--[&_>_a]:no-underline gridui-u-preferences--[&_>_a]:type-ui",
92
95
  "gridui-u-preferences--*:aria-[current=page]:text-foreground gridui-u-preferences--*:aria-pressed:text-foreground"
93
96
  ), {
94
97
  variants: {
@@ -111,7 +114,7 @@ import { TooltipProvider } from "@gridui/tooltip";
111
114
  import { Globe, Laptop, Moon, Sun } from "lucide-react";
112
115
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
113
116
  var DropdownPreferences = (props) => {
114
- const { labels, theme, onThemeChange, languageLinks, selectionAppearance } = props;
117
+ const { labels, theme, onThemeChange, languageLinks, selectionAppearance, portalContainer } = props;
115
118
  const themeIcons = {
116
119
  system: Laptop,
117
120
  dark: Moon,
@@ -126,6 +129,9 @@ var DropdownPreferences = (props) => {
126
129
  /* @__PURE__ */ jsxs2(
127
130
  PreferenceMenu,
128
131
  {
132
+ size: props.size,
133
+ density: props.density,
134
+ container: portalContainer,
129
135
  selectionAppearance,
130
136
  label: labels.language,
131
137
  icon: /* @__PURE__ */ jsx2(
@@ -152,6 +158,9 @@ var DropdownPreferences = (props) => {
152
158
  /* @__PURE__ */ jsxs2(
153
159
  PreferenceMenu,
154
160
  {
161
+ size: props.size,
162
+ density: props.density,
163
+ container: portalContainer,
155
164
  selectionAppearance,
156
165
  label: labels.appearance,
157
166
  icon: /* @__PURE__ */ jsx2(
@@ -212,10 +221,11 @@ import { THEME as THEME2 } from "@gridui/theme/theme";
212
221
  import { Check } from "lucide-react";
213
222
  import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
214
223
  var InlinePreferences = (props) => {
215
- const { labels, theme, onThemeChange, languageLinks, selectionAppearance } = props;
224
+ const { labels, theme, onThemeChange, languageLinks, selectionAppearance, size = "medium" } = props;
216
225
  return /* @__PURE__ */ jsxs3(
217
226
  "div",
218
227
  {
228
+ "data-size": size,
219
229
  className: cn3(preferencesInlineStyles()),
220
230
  children: [
221
231
  /* @__PURE__ */ jsxs3(
@@ -266,7 +276,7 @@ var InlinePreferences = (props) => {
266
276
  return /* @__PURE__ */ jsx3(
267
277
  Button2,
268
278
  {
269
- size: "small",
279
+ size,
270
280
  variant: "quiet",
271
281
  "aria-pressed": theme === value,
272
282
  endIcon: /* @__PURE__ */ jsx3(
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/preferences-controls/menu.tsx", "../src/preferences-controls/style.ts", "../src/preferences-controls/dropdown.tsx", "../src/preferences-controls/inline.tsx", "../src/preferences-controls/preferences-controls.tsx"],
4
- "sourcesContent": ["/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Menu\n */\n\nimport { Button } from \"@gridui/button\";\nimport { DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuTrigger } from \"@gridui/dropdown-menu\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"@gridui/tooltip\";\nimport { type FC, type ReactNode, useState } from \"react\";\n\nexport type PreferenceMenuProps = Pick<DropdownMenuContentProps, \"selectionAppearance\"> & {\n readonly label: string;\n readonly icon: ReactNode;\n readonly children: ReactNode;\n};\n\nexport const PreferenceMenu: FC<PreferenceMenuProps> = (props: PreferenceMenuProps) => {\n const { label, icon, children, selectionAppearance } = props;\n const [\n menuOpen,\n setMenuOpen,\n ] = useState(false);\n const [\n hintOpen,\n setHintOpen,\n ] = useState(false);\n return (<DropdownMenu\n open={menuOpen}\n onOpenChange={(open) => {\n setMenuOpen(open);\n if (open) {\n setHintOpen(false);\n }\n }}\n >\n <Tooltip\n open={hintOpen && !menuOpen}\n onOpenChange={setHintOpen}\n >\n <TooltipTrigger>\n <DropdownMenuTrigger\n asChild\n >\n <Button\n variant=\"quiet\"\n size=\"small\"\n layout=\"icon\"\n aria-label={label}\n >\n {icon}\n </Button>\n </DropdownMenuTrigger>\n </TooltipTrigger>\n <TooltipContent\n align=\"end\"\n >\n {label}\n </TooltipContent>\n </Tooltip>\n <DropdownMenuContent\n selectionAppearance={selectionAppearance}\n >\n {children}\n </DropdownMenuContent>\n </DropdownMenu>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const preferencesStyles = cva(cn(\n \"gridui-preferences\",\n \"gridui-u-preferences--flex gridui-u-preferences--flex-wrap gridui-u-preferences--gap-gridui-8\",\n));\n\nexport const preferencesInlineStyles = cva(cn(\n \"gridui-preferences-inline\",\n \"gridui-u-preferences--grid gridui-u-preferences--gap-gridui-24\",\n));\n\nexport const preferencesLabelStyles = cva(cn(\n \"gridui-preferences-label\",\n \"gridui-u-preferences--m-0 gridui-u-preferences--text-muted gridui-u-preferences--type-caption\",\n));\n\nexport const preferencesOptionsStyles = cva(cn(\n \"gridui-preferences-options\",\n \"gridui-u-preferences--flex gridui-u-preferences--flex-wrap gridui-u-preferences--items-stretch gridui-u-preferences--gap-px gridui-u-preferences--border gridui-u-preferences--border-solid gridui-u-preferences--border-border gridui-u-preferences--rounded-control gridui-u-preferences--bg-border\",\n \"gridui-u-preferences--*:flex-[1_1_auto] gridui-u-preferences--*:min-w-0 gridui-u-preferences--*:max-w-full gridui-u-preferences--*:rounded-none gridui-u-preferences--*:border-0 gridui-u-preferences--*:bg-background gridui-u-preferences--*:whitespace-normal gridui-u-preferences--*:wrap-anywhere\",\n \"gridui-u-preferences--[&_>_a]:inline-flex gridui-u-preferences--[&_>_a]:min-h-gridui-control-small gridui-u-preferences--[&_>_a]:items-center gridui-u-preferences--[&_>_a]:justify-center gridui-u-preferences--[&_>_a]:gap-gridui-4 gridui-u-preferences--[&_>_a]:py-gridui-4 gridui-u-preferences--[&_>_a]:px-gridui-8 gridui-u-preferences--[&_>_a]:text-foreground gridui-u-preferences--[&_>_a]:no-underline gridui-u-preferences--[&_>_a]:type-ui\",\n \"gridui-u-preferences--*:aria-[current=page]:text-foreground gridui-u-preferences--*:aria-pressed:text-foreground\",\n), {\n variants: {\n selectionAppearance: {\n filled: \"gridui-u-preferences--*:aria-[current=page]:bg-selection-background gridui-u-preferences--*:aria-pressed:bg-selection-background\",\n indicator: \"\",\n },\n },\n defaultVariants: {\n selectionAppearance: \"filled\",\n },\n});\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Dropdown\n */\n\nimport { PreferenceMenu } from \"./menu\";\nimport { preferencesStyles } from \"./style\";\nimport type { PreferencesViewOptions } from \"./types\";\nimport { DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem } from \"@gridui/dropdown-menu\";\nimport { cn } from \"@gridui/style-utils\";\nimport { isTheme } from \"@gridui/theme/preference\";\nimport { THEME } from \"@gridui/theme/theme\";\nimport { TooltipProvider } from \"@gridui/tooltip\";\nimport { Globe, Laptop, Moon, Sun } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type DropdownPreferencesProps = PreferencesViewOptions;\n\nexport const DropdownPreferences: FC<DropdownPreferencesProps> = (props: DropdownPreferencesProps) => {\n const { labels, theme, onThemeChange, languageLinks, selectionAppearance } = props;\n const themeIcons = {\n system: Laptop,\n dark: Moon,\n light: Sun,\n };\n const ThemeIcon = themeIcons[theme];\n return (<TooltipProvider>\n <div\n className={cn(preferencesStyles())}\n >\n <PreferenceMenu\n selectionAppearance={selectionAppearance}\n label={labels.language}\n icon={(<Globe\n aria-hidden=\"true\"\n />)}\n >\n <DropdownMenuLabel>\n {labels.language}\n </DropdownMenuLabel>\n {languageLinks.map((link) => {\n return (<DropdownMenuItem\n key={link.key}\n asChild\n >\n {link}\n </DropdownMenuItem>);\n })}\n </PreferenceMenu>\n <PreferenceMenu\n selectionAppearance={selectionAppearance}\n label={labels.appearance}\n icon={(<ThemeIcon\n aria-hidden=\"true\"\n />)}\n >\n <DropdownMenuLabel>\n {labels.appearance}\n </DropdownMenuLabel>\n <DropdownMenuRadioGroup\n value={theme}\n onValueChange={(value) => {\n if (isTheme(value)) {\n onThemeChange(value);\n }\n }}\n >\n <DropdownMenuRadioItem\n value={THEME.SYSTEM}\n >\n {labels.system}\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem\n value={THEME.LIGHT}\n >\n {labels.light}\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem\n value={THEME.DARK}\n >\n {labels.dark}\n </DropdownMenuRadioItem>\n </DropdownMenuRadioGroup>\n </PreferenceMenu>\n </div>\n </TooltipProvider>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Inline\n */\n\nimport { preferencesInlineStyles, preferencesLabelStyles, preferencesOptionsStyles } from \"./style\";\nimport type { PreferencesViewOptions } from \"./types\";\nimport { Button } from \"@gridui/button\";\nimport { overlayListIndicatorStyles } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { THEME } from \"@gridui/theme/theme\";\nimport { Check } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type InlinePreferencesProps = PreferencesViewOptions;\n\nexport const InlinePreferences: FC<InlinePreferencesProps> = (props: InlinePreferencesProps) => {\n const { labels, theme, onThemeChange, languageLinks, selectionAppearance } = props;\n return (<div\n className={cn(preferencesInlineStyles())}\n >\n <div\n role=\"group\"\n aria-label={labels.language}\n >\n <p\n className={cn(preferencesLabelStyles())}\n >\n {labels.language}\n </p>\n <div\n className={cn(preferencesOptionsStyles({ selectionAppearance }))}\n >\n {languageLinks}\n </div>\n </div>\n <div\n role=\"group\"\n aria-label={labels.appearance}\n >\n <p\n className={cn(preferencesLabelStyles())}\n >\n {labels.appearance}\n </p>\n <div\n className={cn(preferencesOptionsStyles({ selectionAppearance }))}\n >\n {([\n THEME.SYSTEM,\n THEME.LIGHT,\n THEME.DARK,\n ] as const).map((value) => {\n return (<Button\n key={value}\n size=\"small\"\n variant=\"quiet\"\n aria-pressed={theme === value}\n endIcon={(<span\n className={overlayListIndicatorStyles()}\n >\n {theme === value ? (<Check\n size={16}\n />) : null}\n </span>)}\n onClick={() => {\n return void onThemeChange(value);\n }}\n >\n {labels[value]}\n </Button>);\n })}\n </div>\n </div>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Preferences Controls\n */\n\nimport { DropdownPreferences } from \"./dropdown\";\nimport { InlinePreferences } from \"./inline\";\nimport type { PreferenceLanguage } from \"./language\";\nimport type { PreferencesOptions } from \"./types\";\nimport { overlayListIndicatorStyles } from \"@gridui/overlay\";\nimport { Check } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type PreferencesControlsProps = PreferencesOptions & {\n readonly presentation?: \"dropdown\" | \"inline\";\n readonly languages: readonly PreferenceLanguage[];\n};\n\nexport const PreferencesControls: FC<PreferencesControlsProps> = (props: PreferencesControlsProps) => {\n const { presentation = \"dropdown\", languages, ...options } = props;\n const languageLinks = languages.map((language) => {\n return (<a\n key={language.locale}\n href={language.href}\n hrefLang={language.locale}\n lang={language.locale}\n dir={language.dir ?? \"auto\"}\n aria-current={language.current ? \"page\" : undefined}\n onClick={language.onSelect}\n >\n <span\n className=\"gridui-u-preferences--min-w-0 gridui-u-preferences--flex-1\"\n >\n {language.label}\n </span>\n <span\n className={overlayListIndicatorStyles()}\n aria-hidden=\"true\"\n >\n {language.current ? (<Check\n size={16}\n />) : null}\n </span>\n </a>);\n });\n\n if (presentation === \"inline\") {\n return (<InlinePreferences\n {...options}\n languageLinks={languageLinks}\n />);\n }\n return (<DropdownPreferences\n {...options}\n languageLinks={languageLinks}\n />);\n};\n"],
5
- "mappings": ";AAOA,SAAS,cAAc;AACvB,SAAS,cAAc,qBAAoD,2BAA2B;AACtG,SAAS,SAAS,gBAAgB,sBAAsB;AACxD,SAAkC,gBAAgB;AA2B1C,SAQY,KARZ;AAnBD,IAAM,iBAA0C,CAAC,UAA+B;AACnF,QAAM,EAAE,OAAO,MAAM,UAAU,oBAAoB,IAAI;AACvD,QAAM;AAAA,IACF;AAAA,IACA;AAAA,EACJ,IAAI,SAAS,KAAK;AAClB,QAAM;AAAA,IACF;AAAA,IACA;AAAA,EACJ,IAAI,SAAS,KAAK;AAClB,SAAQ;AAAA,IAAC;AAAA;AAAA,MACL,MAAM;AAAA,MACN,cAAc,CAAC,SAAS;AACpB,oBAAY,IAAI;AAChB,YAAI,MAAM;AACN,sBAAY,KAAK;AAAA,QACrB;AAAA,MACJ;AAAA,MAEA;AAAA;AAAA,UAAC;AAAA;AAAA,YACG,MAAM,YA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;AAAA;AAAA,cACV,IAAM;AAAA;AAAA,UACV;AAAA;AAAA;AAAA,MApBK,SAAS;AAAA,IAqBlB;AAAA,EACJ,CAAC;AAED,MAAI,iBAAiB,UAAU;AAC3B,WAAQ,gBAAAC;AAAA,MAAC;AAAA;AAAA,QACJ,GAAG;AAAA,QACJ;AAAA;AAAA,IACJ;AAAA,EACJ;AACA,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ;AAAA;AAAA,EACJ;AACJ;",
4
+ "sourcesContent": ["/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Menu\n */\n\nimport type { Size } from \"@gridui/theme\";\nimport { Button } from \"@gridui/button\";\nimport { DropdownMenu, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuTrigger } from \"@gridui/dropdown-menu\";\nimport { Tooltip, TooltipContent, TooltipTrigger } from \"@gridui/tooltip\";\nimport { type FC, type ReactNode, useState } from \"react\";\n\nexport type PreferenceMenuProps = Pick<DropdownMenuContentProps, \"selectionAppearance\" | \"container\" | \"density\"> & {\n readonly size?: Size | undefined;\n readonly label: string;\n readonly icon: ReactNode;\n readonly children: ReactNode;\n};\n\nexport const PreferenceMenu: FC<PreferenceMenuProps> = (props: PreferenceMenuProps) => {\n const { label, icon, children, selectionAppearance, container, size = \"medium\", density = \"comfortable\" } = props;\n const [\n menuOpen,\n setMenuOpen,\n ] = useState(false);\n const [\n hintOpen,\n setHintOpen,\n ] = useState(false);\n return (<DropdownMenu\n open={menuOpen}\n onOpenChange={(open) => {\n setMenuOpen(open);\n if (open) {\n setHintOpen(false);\n }\n }}\n >\n <Tooltip\n open={hintOpen && !menuOpen}\n onOpenChange={setHintOpen}\n >\n <TooltipTrigger>\n <DropdownMenuTrigger\n asChild\n >\n <Button\n variant=\"quiet\"\n size={size}\n layout=\"icon\"\n aria-label={label}\n >\n {icon}\n </Button>\n </DropdownMenuTrigger>\n </TooltipTrigger>\n <TooltipContent\n container={container}\n align=\"end\"\n >\n {label}\n </TooltipContent>\n </Tooltip>\n <DropdownMenuContent\n density={density}\n container={container}\n selectionAppearance={selectionAppearance}\n >\n {children}\n </DropdownMenuContent>\n </DropdownMenu>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const preferencesStyles = cva(cn(\n \"gridui-preferences\",\n \"gridui-u-preferences--flex gridui-u-preferences--flex-wrap gridui-u-preferences--gap-gridui-8\",\n));\n\nexport const preferencesInlineStyles = cva(cn(\n \"gridui-preferences-inline\",\n \"gridui-u-preferences--grid gridui-u-preferences--gap-gridui-24\",\n));\n\nexport const preferencesLabelStyles = cva(cn(\n \"gridui-preferences-label\",\n \"gridui-u-preferences--m-0 gridui-u-preferences--text-muted gridui-u-preferences--type-caption\",\n));\n\nexport const preferencesOptionsStyles = cva(cn(\n \"gridui-preferences-options\",\n \"gridui-u-preferences--flex gridui-u-preferences--flex-wrap gridui-u-preferences--items-stretch gridui-u-preferences--gap-px gridui-u-preferences--border gridui-u-preferences--border-solid gridui-u-preferences--border-border gridui-u-preferences--rounded-control gridui-u-preferences--bg-border\",\n \"gridui-u-preferences--*:flex-[1_1_auto] gridui-u-preferences--*:min-w-0 gridui-u-preferences--*:max-w-full gridui-u-preferences--*:rounded-none gridui-u-preferences--*:border-0 gridui-u-preferences--*:bg-background gridui-u-preferences--*:whitespace-normal gridui-u-preferences--*:wrap-anywhere\",\n \"gridui-u-preferences--[&_>_a]:inline-flex gridui-u-preferences--[&_>_a]:min-h-(--gridui-preferences-min) gridui-u-preferences--[&_>_a]:items-center gridui-u-preferences--[&_>_a]:justify-center gridui-u-preferences--[&_>_a]:gap-gridui-4 gridui-u-preferences--[&_>_a]:py-(--gridui-preferences-block) gridui-u-preferences--[&_>_a]:px-(--gridui-preferences-inline) gridui-u-preferences--[&_>_a]:text-foreground gridui-u-preferences--[&_>_a]:no-underline gridui-u-preferences--[&_>_a]:type-ui\",\n \"gridui-u-preferences--*:aria-[current=page]:text-foreground gridui-u-preferences--*:aria-pressed:text-foreground\",\n), {\n variants: {\n selectionAppearance: {\n filled: \"gridui-u-preferences--*:aria-[current=page]:bg-selection-background gridui-u-preferences--*:aria-pressed:bg-selection-background\",\n indicator: \"\",\n },\n },\n defaultVariants: {\n selectionAppearance: \"filled\",\n },\n});\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Dropdown\n */\n\nimport { PreferenceMenu } from \"./menu\";\nimport { preferencesStyles } from \"./style\";\nimport type { PreferencesViewOptions } from \"./types\";\nimport { DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem } from \"@gridui/dropdown-menu\";\nimport { cn } from \"@gridui/style-utils\";\nimport { isTheme } from \"@gridui/theme/preference\";\nimport { THEME } from \"@gridui/theme/theme\";\nimport { TooltipProvider } from \"@gridui/tooltip\";\nimport { Globe, Laptop, Moon, Sun } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type DropdownPreferencesProps = PreferencesViewOptions;\n\nexport const DropdownPreferences: FC<DropdownPreferencesProps> = (props: DropdownPreferencesProps) => {\n const { labels, theme, onThemeChange, languageLinks, selectionAppearance, portalContainer } = props;\n const themeIcons = {\n system: Laptop,\n dark: Moon,\n light: Sun,\n };\n const ThemeIcon = themeIcons[theme];\n return (<TooltipProvider>\n <div\n className={cn(preferencesStyles())}\n >\n <PreferenceMenu\n size={props.size}\n density={props.density}\n container={portalContainer}\n selectionAppearance={selectionAppearance}\n label={labels.language}\n icon={(<Globe\n aria-hidden=\"true\"\n />)}\n >\n <DropdownMenuLabel>\n {labels.language}\n </DropdownMenuLabel>\n {languageLinks.map((link) => {\n return (<DropdownMenuItem\n key={link.key}\n asChild\n >\n {link}\n </DropdownMenuItem>);\n })}\n </PreferenceMenu>\n <PreferenceMenu\n size={props.size}\n density={props.density}\n container={portalContainer}\n selectionAppearance={selectionAppearance}\n label={labels.appearance}\n icon={(<ThemeIcon\n aria-hidden=\"true\"\n />)}\n >\n <DropdownMenuLabel>\n {labels.appearance}\n </DropdownMenuLabel>\n <DropdownMenuRadioGroup\n value={theme}\n onValueChange={(value) => {\n if (isTheme(value)) {\n onThemeChange(value);\n }\n }}\n >\n <DropdownMenuRadioItem\n value={THEME.SYSTEM}\n >\n {labels.system}\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem\n value={THEME.LIGHT}\n >\n {labels.light}\n </DropdownMenuRadioItem>\n <DropdownMenuRadioItem\n value={THEME.DARK}\n >\n {labels.dark}\n </DropdownMenuRadioItem>\n </DropdownMenuRadioGroup>\n </PreferenceMenu>\n </div>\n </TooltipProvider>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Inline\n */\n\nimport { preferencesInlineStyles, preferencesLabelStyles, preferencesOptionsStyles } from \"./style\";\nimport type { PreferencesViewOptions } from \"./types\";\nimport { Button } from \"@gridui/button\";\nimport { overlayListIndicatorStyles } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { THEME } from \"@gridui/theme/theme\";\nimport { Check } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type InlinePreferencesProps = PreferencesViewOptions;\n\nexport const InlinePreferences: FC<InlinePreferencesProps> = (props: InlinePreferencesProps) => {\n const { labels, theme, onThemeChange, languageLinks, selectionAppearance, size = \"medium\" } = props;\n return (<div\n data-size={size}\n className={cn(preferencesInlineStyles())}\n >\n <div\n role=\"group\"\n aria-label={labels.language}\n >\n <p\n className={cn(preferencesLabelStyles())}\n >\n {labels.language}\n </p>\n <div\n className={cn(preferencesOptionsStyles({ selectionAppearance }))}\n >\n {languageLinks}\n </div>\n </div>\n <div\n role=\"group\"\n aria-label={labels.appearance}\n >\n <p\n className={cn(preferencesLabelStyles())}\n >\n {labels.appearance}\n </p>\n <div\n className={cn(preferencesOptionsStyles({ selectionAppearance }))}\n >\n {([\n THEME.SYSTEM,\n THEME.LIGHT,\n THEME.DARK,\n ] as const).map((value) => {\n return (<Button\n key={value}\n size={size}\n variant=\"quiet\"\n aria-pressed={theme === value}\n endIcon={(<span\n className={overlayListIndicatorStyles()}\n >\n {theme === value ? (<Check\n size={16}\n />) : null}\n </span>)}\n onClick={() => {\n return void onThemeChange(value);\n }}\n >\n {labels[value]}\n </Button>);\n })}\n </div>\n </div>\n </div>);\n};\n", "/**\n * @author WMXPY\n * @package Preferences\n * @namespace PreferencesControls\n * @description Preferences Controls\n */\n\nimport { DropdownPreferences } from \"./dropdown\";\nimport { InlinePreferences } from \"./inline\";\nimport type { PreferenceLanguage } from \"./language\";\nimport type { PreferencesOptions } from \"./types\";\nimport { overlayListIndicatorStyles } from \"@gridui/overlay\";\nimport { Check } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type PreferencesControlsProps = PreferencesOptions & {\n readonly presentation?: \"dropdown\" | \"inline\";\n readonly languages: readonly PreferenceLanguage[];\n};\n\nexport const PreferencesControls: FC<PreferencesControlsProps> = (props: PreferencesControlsProps) => {\n const { presentation = \"dropdown\", languages, ...options } = props;\n const languageLinks = languages.map((language) => {\n return (<a\n key={language.locale}\n href={language.href}\n hrefLang={language.locale}\n lang={language.locale}\n dir={language.dir ?? \"auto\"}\n aria-current={language.current ? \"page\" : undefined}\n onClick={language.onSelect}\n >\n <span\n className=\"gridui-u-preferences--min-w-0 gridui-u-preferences--flex-1\"\n >\n {language.label}\n </span>\n <span\n className={overlayListIndicatorStyles()}\n aria-hidden=\"true\"\n >\n {language.current ? (<Check\n size={16}\n />) : null}\n </span>\n </a>);\n });\n\n if (presentation === \"inline\") {\n return (<InlinePreferences\n {...options}\n languageLinks={languageLinks}\n />);\n }\n return (<DropdownPreferences\n {...options}\n languageLinks={languageLinks}\n />);\n};\n"],
5
+ "mappings": ";AAQA,SAAS,cAAc;AACvB,SAAS,cAAc,qBAAoD,2BAA2B;AACtG,SAAS,SAAS,gBAAgB,sBAAsB;AAC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,SAAS,8BAAAE,mCAAkC;AAC3C,SAAS,SAAAC,cAAa;AAWN,SASJ,OAAAC,MATI,QAAAC,aAAA;AAHT,IAAM,sBAAoD,CAAC,UAAoC;AAClG,QAAM,EAAE,eAAe,YAAY,WAAW,GAAG,QAAQ,IAAI;AAC7D,QAAM,gBAAgB,UAAU,IAAI,CAAC,aAAa;AAC9C,WAAQ,gBAAAA;AAAA,MAAC;AAAA;AAAA,QAEL,MAAM,SAAS;AAAA,QACf,UAAU,SAAS;AAAA,QACnB,MAAM,SAAS;AAAA,QACf,KAAK,SAAS,OAAO;AAAA,QACrB,gBAAc,SAAS,UAAU,SAAS;AAAA,QAC1C,SAAS,SAAS;AAAA,QAElB;AAAA,0BAAAD;AAAA,YAAC;AAAA;AAAA,cACG,WAAU;AAAA,cAET,mBAAS;AAAA;AAAA,UACd;AAAA,UACA,gBAAAA;AAAA,YAAC;AAAA;AAAA,cACG,WAAWF,4BAA2B;AAAA,cACtC,eAAY;AAAA,cAEX,mBAAS,UAAW,gBAAAE;AAAA,gBAACD;AAAA,gBAAA;AAAA,kBAClB,MAAM;AAAA;AAAA,cACV,IAAM;AAAA;AAAA,UACV;AAAA;AAAA;AAAA,MApBK,SAAS;AAAA,IAqBlB;AAAA,EACJ,CAAC;AAED,MAAI,iBAAiB,UAAU;AAC3B,WAAQ,gBAAAC;AAAA,MAAC;AAAA;AAAA,QACJ,GAAG;AAAA,QACJ;AAAA;AAAA,IACJ;AAAA,EACJ;AACA,SAAQ,gBAAAA;AAAA,IAAC;AAAA;AAAA,MACJ,GAAG;AAAA,MACJ;AAAA;AAAA,EACJ;AACJ;",
6
6
  "names": ["cn", "jsx", "jsxs", "Button", "cn", "THEME", "jsx", "jsxs", "overlayListIndicatorStyles", "Check", "jsx", "jsxs"]
7
7
  }
@@ -4,9 +4,11 @@
4
4
  * @namespace PreferencesControls
5
5
  * @description Menu
6
6
  */
7
+ import type { Size } from "@gridui/theme";
7
8
  import { type DropdownMenuContentProps } from "@gridui/dropdown-menu";
8
9
  import { type FC, type ReactNode } from "react";
9
- export type PreferenceMenuProps = Pick<DropdownMenuContentProps, "selectionAppearance"> & {
10
+ export type PreferenceMenuProps = Pick<DropdownMenuContentProps, "selectionAppearance" | "container" | "density"> & {
11
+ readonly size?: Size | undefined;
10
12
  readonly label: string;
11
13
  readonly icon: ReactNode;
12
14
  readonly children: ReactNode;
@@ -4,6 +4,7 @@
4
4
  * @namespace PreferencesControls
5
5
  * @description Types
6
6
  */
7
+ import type { Size, Density } from "@gridui/theme";
7
8
  import type { DropdownMenuContentProps } from "@gridui/dropdown-menu";
8
9
  import type { THEME } from "@gridui/theme/theme";
9
10
  import type { ReactElement } from "react";
@@ -15,6 +16,9 @@ export type PreferenceLabels = {
15
16
  readonly dark: string;
16
17
  };
17
18
  export type PreferencesOptions = {
19
+ readonly size?: Size | undefined;
20
+ readonly density?: Density | undefined;
21
+ readonly portalContainer?: DropdownMenuContentProps["container"];
18
22
  /** Selection presentation for language and theme options in both dropdown and inline layouts. */
19
23
  readonly selectionAppearance?: DropdownMenuContentProps["selectionAppearance"];
20
24
  readonly labels: PreferenceLabels;
package/dist/styled.js ADDED
@@ -0,0 +1,6 @@
1
+ import "@gridui/button/styled";
2
+ import "@gridui/overlay/styled";
3
+ import "@gridui/dropdown-menu/styled";
4
+ import "@gridui/tooltip/styled";
5
+ import "./styles.local.css";
6
+ export * from "./index.js";
package/dist/styles.css CHANGED
@@ -1,3 +1,687 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer utilities {
5
+ .gridui-u-button--pointer-events-none {
6
+ pointer-events: none;
7
+ }
8
+ .gridui-u-button--inline-flex {
9
+ display: inline-flex;
10
+ }
11
+ .gridui-u-button--size-\(--_gridui-button-min\) {
12
+ width: var(--_gridui-button-min);
13
+ height: var(--_gridui-button-min);
14
+ }
15
+ .gridui-u-button--h-full {
16
+ height: 100%;
17
+ }
18
+ .gridui-u-button--w-fit {
19
+ width: fit-content;
20
+ }
21
+ .gridui-u-button--w-full {
22
+ width: 100%;
23
+ }
24
+ .gridui-u-button--w-gridui-64 {
25
+ width: var(--gridui-space-64);
26
+ }
27
+ .gridui-u-button--w-gridui-control-large {
28
+ width: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
29
+ }
30
+ .gridui-u-button--w-gridui-control-medium {
31
+ width: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
32
+ }
33
+ .gridui-u-button--w-gridui-control-small {
34
+ width: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
35
+ }
36
+ .gridui-u-button--max-w-full {
37
+ max-width: 100%;
38
+ }
39
+ .gridui-u-button--min-w-0 {
40
+ min-width: 0px;
41
+ }
42
+ .gridui-u-button--min-w-gridui-24 {
43
+ min-width: var(--gridui-space-24);
44
+ }
45
+ .gridui-u-button--flex-1 {
46
+ flex: 1;
47
+ }
48
+ .gridui-u-button--shrink-0 {
49
+ flex-shrink: 0;
50
+ }
51
+ .gridui-u-button--cursor-pointer {
52
+ cursor: pointer;
53
+ }
54
+ .gridui-u-button--flex-col {
55
+ flex-direction: column;
56
+ }
57
+ .gridui-u-button--items-center {
58
+ align-items: center;
59
+ }
60
+ .gridui-u-button--items-stretch {
61
+ align-items: stretch;
62
+ }
63
+ .gridui-u-button--justify-between {
64
+ justify-content: space-between;
65
+ }
66
+ .gridui-u-button--justify-center {
67
+ justify-content: center;
68
+ }
69
+ .gridui-u-button--justify-start {
70
+ justify-content: flex-start;
71
+ }
72
+ .gridui-u-button--gap-0 {
73
+ gap: 0px;
74
+ }
75
+ .gridui-u-button--gap-gridui-8 {
76
+ gap: var(--gridui-space-8);
77
+ }
78
+ .gridui-u-button--gap-gridui-32 {
79
+ gap: var(--gridui-space-32);
80
+ }
81
+ .gridui-u-button--self-stretch {
82
+ align-self: stretch;
83
+ }
84
+ .gridui-u-button--rounded-control {
85
+ border-radius: var(--gridui-control-radius);
86
+ }
87
+ .gridui-u-button--rounded-none {
88
+ border-radius: 0;
89
+ }
90
+ .gridui-u-button--border-0 {
91
+ border-style: var(--tw-border-style);
92
+ border-width: 0px;
93
+ }
94
+ .gridui-u-button--border-b {
95
+ border-bottom-style: var(--tw-border-style);
96
+ border-bottom-width: 1px;
97
+ }
98
+ .gridui-u-button--border-accent-background {
99
+ border-color: var(--gridui-accent-background);
100
+ }
101
+ .gridui-u-button--border-control-border {
102
+ border-color: var(--gridui-control-border);
103
+ }
104
+ .gridui-u-button--border-foreground {
105
+ border-color: var(--gridui-foreground);
106
+ }
107
+ .gridui-u-button--bg-accent-background {
108
+ background-color: var(--gridui-accent-background);
109
+ }
110
+ .gridui-u-button--bg-selection-background {
111
+ background-color: var(--gridui-selection-background);
112
+ }
113
+ .gridui-u-button--bg-transparent {
114
+ background-color: transparent;
115
+ }
116
+ .gridui-u-button--p-0 {
117
+ padding: 0px;
118
+ }
119
+ .gridui-u-button--px-0 {
120
+ padding-inline: 0px;
121
+ }
122
+ .gridui-u-button--px-gridui-8 {
123
+ padding-inline: var(--gridui-space-8);
124
+ }
125
+ .gridui-u-button--px-gridui-16 {
126
+ padding-inline: var(--gridui-space-16);
127
+ }
128
+ .gridui-u-button--px-gridui-24 {
129
+ padding-inline: var(--gridui-space-24);
130
+ }
131
+ .gridui-u-button--py-gridui-4 {
132
+ padding-block: var(--gridui-space-4);
133
+ }
134
+ .gridui-u-button--py-gridui-8 {
135
+ padding-block: var(--gridui-space-8);
136
+ }
137
+ .gridui-u-button--py-gridui-16 {
138
+ padding-block: var(--gridui-space-16);
139
+ }
140
+ .gridui-u-button--text-center {
141
+ text-align: center;
142
+ }
143
+ .gridui-u-button--text-left {
144
+ text-align: left;
145
+ }
146
+ .gridui-u-button--text-start {
147
+ text-align: start;
148
+ }
149
+ .gridui-u-button--type-supporting {
150
+ font: var(--gridui-type-supporting);
151
+ font-family: var(--gridui-font-body);
152
+ letter-spacing: normal;
153
+ }
154
+ .gridui-u-button--type-ui {
155
+ font: var(--gridui-type-ui);
156
+ font-family: var(--gridui-font-body);
157
+ letter-spacing: normal;
158
+ }
159
+ .gridui-u-button--wrap-anywhere {
160
+ overflow-wrap: anywhere;
161
+ }
162
+ .gridui-u-button--text-accent-foreground {
163
+ color: var(--gridui-accent-foreground);
164
+ }
165
+ .gridui-u-button--text-foreground {
166
+ color: var(--gridui-foreground);
167
+ }
168
+ .gridui-u-button--no-underline {
169
+ text-decoration-line: none;
170
+ }
171
+ .gridui-u-button--\[transition-property\:var\(--gridui-motion-transition\,color\,background-color\,border-color\,text-decoration-color\,fill\,stroke\)\] {
172
+ transition-property: var(--gridui-motion-transition,color,background-color,border-color,text-decoration-color,fill,stroke);
173
+ }
174
+ .gridui-u-button--duration-\[calc\(var\(--gridui-motion-duration-quick\)\*var\(--gridui-motion-factor\,1\)\)\] {
175
+ --tw-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
176
+ transition-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
177
+ }
178
+ .gridui-u-button--ease-\(--gridui-motion-ease-out\) {
179
+ --tw-ease: var(--gridui-motion-ease-out);
180
+ transition-timing-function: var(--gridui-motion-ease-out);
181
+ }
182
+ .gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size\)\] {
183
+ --gridui-button-icon-size: var(--gridui-icon-size);
184
+ }
185
+ .gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size-large\)\] {
186
+ --gridui-button-icon-size: var(--gridui-icon-size-large);
187
+ }
188
+ .gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-32\)\] {
189
+ --gridui-button-icon-size: var(--gridui-space-32);
190
+ }
191
+ .gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-48\)\] {
192
+ --gridui-button-icon-size: var(--gridui-space-48);
193
+ }
194
+ @media (hover: hover) {
195
+ .gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:hover\:bg-accent-hover:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):hover {
196
+ background-color: var(--gridui-accent-hover);
197
+ }
198
+ }
199
+ .gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-accent-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
200
+ background-color: var(--gridui-accent-pressed);
201
+ }
202
+ .gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-surface-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
203
+ background-color: var(--gridui-surface-pressed);
204
+ }
205
+ .gridui-u-button--disabled\:cursor-not-allowed:disabled {
206
+ cursor: not-allowed;
207
+ }
208
+ .gridui-u-button--aria-disabled\:cursor-not-allowed[aria-disabled="true"] {
209
+ cursor: not-allowed;
210
+ }
211
+ .gridui-u-button--data-disabled\:cursor-not-allowed[data-disabled] {
212
+ cursor: not-allowed;
213
+ }
214
+ .gridui-u-button--data-gridui-busy\:cursor-wait[data-gridui-busy] {
215
+ cursor: wait;
216
+ }
217
+ @media (prefers-reduced-motion: reduce) {
218
+ .gridui-u-button--motion-reduce\:transition-none {
219
+ transition-property: none;
220
+ }
221
+ }
222
+ .gridui-u-button--\[\&_\>_span\]\:whitespace-nowrap > span {
223
+ white-space: nowrap;
224
+ }
225
+ .gridui-u-button--\[\&_\>_span\]\:\[writing-mode\:vertical-rl\] > span {
226
+ writing-mode: vertical-rl;
227
+ }
228
+ .gridui-u-button--\[\&_svg\]\:pointer-events-none svg {
229
+ pointer-events: none;
230
+ }
231
+ .gridui-u-button--\[\&_svg\]\:h-\(--gridui-button-icon-size\) svg {
232
+ height: var(--gridui-button-icon-size);
233
+ }
234
+ .gridui-u-button--\[\&_svg\]\:w-\(--gridui-button-icon-size\) svg {
235
+ width: var(--gridui-button-icon-size);
236
+ }
237
+ .gridui-u-button--\[\&_svg\]\:shrink-0 svg {
238
+ flex-shrink: 0;
239
+ }
240
+ }
241
+ @layer components {
242
+ .gridui-button {
243
+ min-height: var(--_gridui-button-min);
244
+ border: 1px solid transparent;
245
+ }
246
+ .gridui-button-cell {
247
+ border: 0;
248
+ }
249
+ .gridui-button-label-content {
250
+ display: inline-flex;
251
+ min-width: 0;
252
+ flex-direction: inherit;
253
+ align-items: inherit;
254
+ justify-content: inherit;
255
+ gap: inherit;
256
+ }
257
+ .gridui-button-body {
258
+ display: inline-flex;
259
+ flex: 1;
260
+ min-width: 0;
261
+ flex-direction: inherit;
262
+ align-items: inherit;
263
+ justify-content: inherit;
264
+ gap: inherit;
265
+ }
266
+ .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-start-region > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-end-region > .gridui-button-content {
267
+ opacity: 0.5;
268
+ }
269
+ .gridui-button-start-region {
270
+ min-width: calc(var(--gridui-button-icon-size) + var(--gridui-space-16));
271
+ border-inline-end: 1px solid;
272
+ border-color: inherit;
273
+ }
274
+ .gridui-button-end-region {
275
+ border-inline-start: 1px solid;
276
+ border-color: inherit;
277
+ }
278
+ @media (prefers-reduced-motion: no-preference) {
279
+ .gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]) .gridui-button-end-icon {
280
+ transition: var(--gridui-motion-transition, transform calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out));
281
+ }
282
+ .gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):hover .gridui-button-end-icon {
283
+ transform: var(--gridui-motion-transform, translate(var(--gridui-space-4), calc(-1 * var(--gridui-space-4))));
284
+ }
285
+ .gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):dir(rtl):hover .gridui-button-end-icon {
286
+ transform: var(--gridui-motion-transform, translate(calc(-1 * var(--gridui-space-4)), calc(-1 * var(--gridui-space-4))));
287
+ }
288
+ }
289
+ .gridui-button-medium {
290
+ --_gridui-button-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
291
+ padding-block: var(--gridui-space-8);
292
+ padding-inline: var(--gridui-space-16);
293
+ }
294
+ .gridui-button-small {
295
+ --_gridui-button-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
296
+ padding-block: var(--gridui-space-4);
297
+ padding-inline: var(--gridui-space-8);
298
+ }
299
+ .gridui-button-large {
300
+ --_gridui-button-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
301
+ padding-block: var(--gridui-space-8);
302
+ padding-inline: var(--gridui-space-24);
303
+ }
304
+ .gridui-button-extra-large {
305
+ --_gridui-button-min: max(var(--gridui-control-min-height-extra-large), var(--gridui-target-min-size));
306
+ padding-block: var(--gridui-space-16);
307
+ padding-inline: var(--gridui-space-24);
308
+ }
309
+ .gridui-button-group {
310
+ container: gridui-button-group / inline-size;
311
+ min-width: 0;
312
+ }
313
+ .gridui-button-group-items {
314
+ display: grid;
315
+ grid-auto-flow: column;
316
+ grid-auto-columns: minmax(0, 1fr);
317
+ align-items: stretch;
318
+ }
319
+ .gridui-button-group-items[data-layout="standard"] {
320
+ gap: var(--gridui-space-8);
321
+ }
322
+ .gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
323
+ position: absolute;
324
+ inset-block: 0;
325
+ inset-inline-start: 0;
326
+ width: 1px;
327
+ background: var(--gridui-button-group-border, var(--gridui-border));
328
+ pointer-events: none;
329
+ content: "";
330
+ }
331
+ @container gridui-button-group (max-width: 20rem) {
332
+ .gridui-button-group-items {
333
+ grid-auto-flow: row;
334
+ grid-auto-rows: 1fr;
335
+ }
336
+ .gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
337
+ inset-block: 0 auto;
338
+ inset-inline: 0;
339
+ width: auto;
340
+ height: 1px;
341
+ }
342
+ }
343
+ }
344
+ @layer utilities {
345
+ .gridui-button-group-items > [data-gridui-button-group-item] {
346
+ position: relative;
347
+ width: 100%;
348
+ height: 100%;
349
+ min-width: 0;
350
+ }
351
+ .gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item] {
352
+ padding-block: var(--gridui-button-group-padding-block, var(--_gridui-button-group-block, var(--gridui-space-8)));
353
+ border: 0;
354
+ border-radius: 0;
355
+ }
356
+ }
357
+ @layer components {
358
+ .gridui-button-group-items > [data-size="small"] {
359
+ --_gridui-button-group-block: var(--gridui-space-4);
360
+ }
361
+ .gridui-button-group-items > [data-size="extra-large"] {
362
+ --_gridui-button-group-block: var(--gridui-space-16);
363
+ }
364
+ }
365
+ @property --tw-border-style {
366
+ syntax: "*";
367
+ inherits: false;
368
+ initial-value: solid;
369
+ }
370
+ @property --tw-duration {
371
+ syntax: "*";
372
+ inherits: false;
373
+ }
374
+ @property --tw-ease {
375
+ syntax: "*";
376
+ inherits: false;
377
+ }
378
+ @layer properties {
379
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
380
+ *, ::before, ::after, ::backdrop {
381
+ --tw-border-style: solid;
382
+ --tw-duration: initial;
383
+ --tw-ease: initial;
384
+ }
385
+ }
386
+ }
387
+
388
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
389
+ @layer properties;
390
+ @layer theme, base, components, utilities;
391
+ @layer utilities {
392
+ .gridui-u-overlay--z-\(--gridui-z-popover\) {
393
+ z-index: var(--gridui-z-popover);
394
+ }
395
+ .gridui-u-overlay--flex {
396
+ display: flex;
397
+ }
398
+ .gridui-u-overlay--inline-flex {
399
+ display: inline-flex;
400
+ }
401
+ .gridui-u-overlay--size-gridui-16 {
402
+ width: var(--gridui-space-16);
403
+ height: var(--gridui-space-16);
404
+ }
405
+ .gridui-u-overlay--min-w-0 {
406
+ min-width: 0px;
407
+ }
408
+ .gridui-u-overlay--shrink-0 {
409
+ flex-shrink: 0;
410
+ }
411
+ .gridui-u-overlay--cursor-pointer {
412
+ cursor: pointer;
413
+ }
414
+ .gridui-u-overlay--items-center {
415
+ align-items: center;
416
+ }
417
+ .gridui-u-overlay--justify-center {
418
+ justify-content: center;
419
+ }
420
+ .gridui-u-overlay--gap-gridui-8 {
421
+ gap: var(--gridui-space-8);
422
+ }
423
+ .gridui-u-overlay--rounded-control {
424
+ border-radius: var(--gridui-control-radius);
425
+ }
426
+ .gridui-u-overlay--border {
427
+ border-style: var(--tw-border-style);
428
+ border-width: 1px;
429
+ }
430
+ .gridui-u-overlay--border-solid {
431
+ --tw-border-style: solid;
432
+ border-style: solid;
433
+ }
434
+ .gridui-u-overlay--border-border {
435
+ border-color: var(--gridui-border);
436
+ }
437
+ .gridui-u-overlay--bg-background {
438
+ background-color: var(--gridui-background);
439
+ }
440
+ .gridui-u-overlay--p-0 {
441
+ padding: 0px;
442
+ }
443
+ .gridui-u-overlay--px-gridui-8 {
444
+ padding-inline: var(--gridui-space-8);
445
+ }
446
+ .gridui-u-overlay--type-data {
447
+ font: var(--gridui-type-data);
448
+ font-family: var(--gridui-font-body);
449
+ letter-spacing: normal;
450
+ font-variant-numeric: tabular-nums;
451
+ }
452
+ .gridui-u-overlay--type-caption {
453
+ font: var(--gridui-type-caption);
454
+ font-family: var(--gridui-font-body);
455
+ letter-spacing: normal;
456
+ }
457
+ .gridui-u-overlay--wrap-anywhere {
458
+ overflow-wrap: anywhere;
459
+ }
460
+ .gridui-u-overlay--whitespace-normal {
461
+ white-space: normal;
462
+ }
463
+ .gridui-u-overlay--text-foreground {
464
+ color: var(--gridui-foreground);
465
+ }
466
+ .gridui-u-overlay--text-inherit {
467
+ color: inherit;
468
+ }
469
+ .gridui-u-overlay--text-muted {
470
+ color: var(--gridui-muted);
471
+ }
472
+ .gridui-u-overlay--no-underline {
473
+ text-decoration-line: none;
474
+ }
475
+ .gridui-u-overlay--aria-selected\:bg-selection-background[aria-selected="true"] {
476
+ background-color: var(--gridui-selection-background);
477
+ }
478
+ .gridui-u-overlay--aria-\[current\=page\]\:bg-selection-background[aria-current="page"] {
479
+ background-color: var(--gridui-selection-background);
480
+ }
481
+ .gridui-u-overlay--data-disabled\:pointer-events-none[data-disabled] {
482
+ pointer-events: none;
483
+ }
484
+ .gridui-u-overlay--data-disabled\:opacity-50[data-disabled] {
485
+ opacity: 50%;
486
+ }
487
+ .gridui-u-overlay--data-\[state\=checked\]\:bg-selection-background[data-state="checked"] {
488
+ background-color: var(--gridui-selection-background);
489
+ }
490
+ }
491
+ @layer components {
492
+ .gridui-overlay-surface {
493
+ --gridui-surface-offset-x: 0px;
494
+ --gridui-surface-offset-y: 0px;
495
+ --gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
496
+ --gridui-overlay-fill-mode: both;
497
+ transform-origin: var(--gridui-overlay-origin, center);
498
+ }
499
+ .gridui-overlay-dialog {
500
+ --gridui-overlay-fill-mode: none;
501
+ transform-origin: center;
502
+ }
503
+ .gridui-overlay-tooltip {
504
+ --gridui-overlay-enter-duration: var(--gridui-motion-duration-quick);
505
+ }
506
+ .gridui-overlay-floating[data-side="bottom"] {
507
+ --gridui-surface-offset-y: calc(-1 * var(--gridui-motion-distance));
508
+ }
509
+ .gridui-overlay-floating[data-side="top"] {
510
+ --gridui-surface-offset-y: var(--gridui-motion-distance);
511
+ }
512
+ .gridui-overlay-floating[data-side="left"] {
513
+ --gridui-surface-offset-x: var(--gridui-motion-distance);
514
+ }
515
+ .gridui-overlay-floating[data-side="right"] {
516
+ --gridui-surface-offset-x: calc(-1 * var(--gridui-motion-distance));
517
+ }
518
+ .gridui-overlay-surface[data-state="closed"] {
519
+ pointer-events: none;
520
+ }
521
+ .gridui-overlay-surface:not([data-side="none"]):is([data-state="open"], [data-state="delayed-open"], [data-state="instant-open"]) {
522
+ animation: var(--gridui-motion-animation, gridui-surface-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
523
+ }
524
+ .gridui-overlay-surface:not([data-side="none"])[data-state="closed"] {
525
+ animation: var(--gridui-motion-animation, gridui-surface-exit calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
526
+ }
527
+ .gridui-overlay-backdrop {
528
+ background: var(--gridui-backdrop);
529
+ @supports (color: color-mix(in lab, red, red)) {
530
+ background: color-mix(in srgb, var(--gridui-backdrop) var(--gridui-backdrop-opacity), transparent);
531
+ }
532
+ --gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
533
+ --gridui-overlay-exit-duration: var(--gridui-motion-duration-quick);
534
+ --gridui-overlay-fill-mode: none;
535
+ }
536
+ .gridui-overlay-backdrop-deliberate {
537
+ --gridui-overlay-enter-duration: var(--gridui-motion-duration-deliberate);
538
+ --gridui-overlay-exit-duration: var(--gridui-motion-duration-normal);
539
+ --gridui-overlay-fill-mode: both;
540
+ }
541
+ .gridui-overlay-backdrop[data-state="open"] {
542
+ animation: var(--gridui-motion-animation, gridui-fade-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
543
+ }
544
+ .gridui-overlay-backdrop[data-state="closed"] {
545
+ animation: var(--gridui-motion-animation, gridui-fade-exit calc(var(--gridui-overlay-exit-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
546
+ }
547
+ @media (prefers-reduced-motion: reduce) {
548
+ .gridui-overlay-surface:not([data-side="none"])[data-state], .gridui-overlay-backdrop[data-state] {
549
+ animation: none;
550
+ }
551
+ }
552
+ .gridui-overlay-list {
553
+ --gridui-overlay-row-min: var(--gridui-control-min-height-medium);
554
+ --gridui-overlay-row-padding: var(--gridui-space-8);
555
+ }
556
+ .gridui-overlay-density-compact {
557
+ --gridui-overlay-row-min: var(--gridui-control-min-height-small);
558
+ --gridui-overlay-row-padding: var(--gridui-space-4);
559
+ }
560
+ .gridui-overlay-density-comfortable {
561
+ --gridui-overlay-row-min: var(--gridui-control-min-height-medium);
562
+ --gridui-overlay-row-padding: var(--gridui-space-8);
563
+ }
564
+ .gridui-overlay-list-item {
565
+ min-block-size: max(var(--gridui-overlay-row-min, var(--gridui-control-min-height-medium)), var(--gridui-target-min-size));
566
+ padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
567
+ }
568
+ .gridui-overlay-list-label {
569
+ padding-block: var(--gridui-overlay-row-padding, var(--gridui-space-8));
570
+ }
571
+ }
572
+ @property --tw-border-style {
573
+ syntax: "*";
574
+ inherits: false;
575
+ initial-value: solid;
576
+ }
577
+ @layer properties {
578
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
579
+ *, ::before, ::after, ::backdrop {
580
+ --tw-border-style: solid;
581
+ }
582
+ }
583
+ }
584
+
585
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
586
+ @layer theme, base, components, utilities;
587
+ @layer theme {
588
+ :root, :host {
589
+ --spacing: 0.25rem;
590
+ }
591
+ }
592
+ @layer utilities {
593
+ .gridui-u-dropdown-menu--flex {
594
+ display: flex;
595
+ }
596
+ .gridui-u-dropdown-menu--max-h-\(--radix-dropdown-menu-content-available-height\) {
597
+ max-height: var(--radix-dropdown-menu-content-available-height);
598
+ }
599
+ .gridui-u-dropdown-menu--max-w-\[calc\(100vw-2\*var\(--gridui-page-gutter\)\)\] {
600
+ max-width: calc(100vw - 2 * var(--gridui-page-gutter));
601
+ }
602
+ .gridui-u-dropdown-menu--min-w-0 {
603
+ min-width: 0px;
604
+ }
605
+ .gridui-u-dropdown-menu--min-w-44 {
606
+ min-width: calc(var(--spacing) * 44);
607
+ }
608
+ .gridui-u-dropdown-menu--flex-1 {
609
+ flex: 1;
610
+ }
611
+ .gridui-u-dropdown-menu--items-center {
612
+ align-items: center;
613
+ }
614
+ .gridui-u-dropdown-menu--gap-gridui-8 {
615
+ gap: var(--gridui-space-8);
616
+ }
617
+ .gridui-u-dropdown-menu--overflow-y-auto {
618
+ overflow-y: auto;
619
+ }
620
+ }
621
+ @layer components {
622
+ .gridui-dropdown-content {
623
+ --gridui-overlay-origin: var(--radix-dropdown-menu-content-transform-origin);
624
+ }
625
+ .gridui-dropdown-content[data-morph-measuring][data-state="open"][data-side] {
626
+ animation: none;
627
+ }
628
+ @supports (clip-path: inset(0)) {
629
+ .gridui-dropdown-content[data-morph-ready][data-state="open"][data-side] {
630
+ animation: var(--gridui-motion-animation, gridui-menu-morph calc(var(--gridui-motion-duration-normal) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out));
631
+ }
632
+ }
633
+ @media (prefers-reduced-motion: reduce) {
634
+ .gridui-dropdown-content[data-morph-ready][data-state="open"][data-side] {
635
+ animation: none;
636
+ }
637
+ }
638
+ @keyframes gridui-menu-morph {
639
+ from {
640
+ clip-path: var(--gridui-menu-morph-clip);
641
+ opacity: 0.6;
642
+ transform: translate(var(--gridui-menu-morph-offset));
643
+ }
644
+ to {
645
+ clip-path: inset(0);
646
+ opacity: 1;
647
+ transform: translate(0, 0);
648
+ }
649
+ }
650
+ }
651
+
652
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
653
+ @layer theme, base, components, utilities;
654
+ @layer utilities {
655
+ .gridui-u-tooltip--z-\(--gridui-z-tooltip\) {
656
+ z-index: var(--gridui-z-tooltip);
657
+ }
658
+ .gridui-u-tooltip--box-border {
659
+ box-sizing: border-box;
660
+ }
661
+ .gridui-u-tooltip--w-max {
662
+ width: max-content;
663
+ }
664
+ .gridui-u-tooltip--max-w-\[min\(20rem\,var\(--radix-tooltip-content-available-width\)\)\] {
665
+ max-width: min(20rem, var(--radix-tooltip-content-available-width));
666
+ }
667
+ .gridui-u-tooltip--p-gridui-8 {
668
+ padding: var(--gridui-space-8);
669
+ }
670
+ .gridui-u-tooltip--type-supporting {
671
+ font: var(--gridui-type-supporting);
672
+ font-family: var(--gridui-font-body);
673
+ letter-spacing: normal;
674
+ }
675
+ .gridui-u-tooltip--wrap-anywhere {
676
+ overflow-wrap: anywhere;
677
+ }
678
+ }
679
+ @layer components {
680
+ .gridui-tooltip-content {
681
+ --gridui-overlay-origin: var(--radix-tooltip-content-transform-origin);
682
+ }
683
+ }
684
+
1
685
  /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
686
  @layer properties;
3
687
  @layer theme, base, components, utilities;
@@ -97,8 +781,8 @@
97
781
  .gridui-u-preferences--\[\&_\>_a\]\:inline-flex > a {
98
782
  display: inline-flex;
99
783
  }
100
- .gridui-u-preferences--\[\&_\>_a\]\:min-h-gridui-control-small > a {
101
- min-height: var(--gridui-control-min-height-small);
784
+ .gridui-u-preferences--\[\&_\>_a\]\:min-h-\(--gridui-preferences-min\) > a {
785
+ min-height: var(--gridui-preferences-min);
102
786
  }
103
787
  .gridui-u-preferences--\[\&_\>_a\]\:items-center > a {
104
788
  align-items: center;
@@ -109,11 +793,11 @@
109
793
  .gridui-u-preferences--\[\&_\>_a\]\:gap-gridui-4 > a {
110
794
  gap: var(--gridui-space-4);
111
795
  }
112
- .gridui-u-preferences--\[\&_\>_a\]\:px-gridui-8 > a {
113
- padding-inline: var(--gridui-space-8);
796
+ .gridui-u-preferences--\[\&_\>_a\]\:px-\(--gridui-preferences-inline\) > a {
797
+ padding-inline: var(--gridui-preferences-inline);
114
798
  }
115
- .gridui-u-preferences--\[\&_\>_a\]\:py-gridui-4 > a {
116
- padding-block: var(--gridui-space-4);
799
+ .gridui-u-preferences--\[\&_\>_a\]\:py-\(--gridui-preferences-block\) > a {
800
+ padding-block: var(--gridui-preferences-block);
117
801
  }
118
802
  .gridui-u-preferences--\[\&_\>_a\]\:type-ui > a {
119
803
  font: var(--gridui-type-ui);
@@ -127,6 +811,22 @@
127
811
  text-decoration-line: none;
128
812
  }
129
813
  }
814
+ @layer components {
815
+ [data-size].gridui-preferences-inline {
816
+ --gridui-preferences-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
817
+ --gridui-preferences-block: var(--gridui-space-8);
818
+ --gridui-preferences-inline: var(--gridui-space-16);
819
+ }
820
+ [data-size="small"].gridui-preferences-inline {
821
+ --gridui-preferences-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
822
+ --gridui-preferences-block: var(--gridui-space-4);
823
+ --gridui-preferences-inline: var(--gridui-space-8);
824
+ }
825
+ [data-size="large"].gridui-preferences-inline {
826
+ --gridui-preferences-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
827
+ --gridui-preferences-inline: var(--gridui-space-24);
828
+ }
829
+ }
130
830
  @property --tw-border-style {
131
831
  syntax: "*";
132
832
  inherits: false;
@@ -0,0 +1,157 @@
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, base, components, utilities;
4
+ @layer utilities {
5
+ .gridui-u-preferences--m-0 {
6
+ margin: 0px;
7
+ }
8
+ .gridui-u-preferences--flex {
9
+ display: flex;
10
+ }
11
+ .gridui-u-preferences--grid {
12
+ display: grid;
13
+ }
14
+ .gridui-u-preferences--min-w-0 {
15
+ min-width: 0px;
16
+ }
17
+ .gridui-u-preferences--flex-1 {
18
+ flex: 1;
19
+ }
20
+ .gridui-u-preferences--flex-wrap {
21
+ flex-wrap: wrap;
22
+ }
23
+ .gridui-u-preferences--items-stretch {
24
+ align-items: stretch;
25
+ }
26
+ .gridui-u-preferences--gap-gridui-8 {
27
+ gap: var(--gridui-space-8);
28
+ }
29
+ .gridui-u-preferences--gap-gridui-24 {
30
+ gap: var(--gridui-space-24);
31
+ }
32
+ .gridui-u-preferences--gap-px {
33
+ gap: 1px;
34
+ }
35
+ .gridui-u-preferences--rounded-control {
36
+ border-radius: var(--gridui-control-radius);
37
+ }
38
+ .gridui-u-preferences--border {
39
+ border-style: var(--tw-border-style);
40
+ border-width: 1px;
41
+ }
42
+ .gridui-u-preferences--border-solid {
43
+ --tw-border-style: solid;
44
+ border-style: solid;
45
+ }
46
+ .gridui-u-preferences--border-border {
47
+ border-color: var(--gridui-border);
48
+ }
49
+ .gridui-u-preferences--bg-border {
50
+ background-color: var(--gridui-border);
51
+ }
52
+ .gridui-u-preferences--type-caption {
53
+ font: var(--gridui-type-caption);
54
+ font-family: var(--gridui-font-body);
55
+ letter-spacing: normal;
56
+ }
57
+ .gridui-u-preferences--text-muted {
58
+ color: var(--gridui-muted);
59
+ }
60
+ :is(.gridui-u-preferences--\*\:max-w-full > *) {
61
+ max-width: 100%;
62
+ }
63
+ :is(.gridui-u-preferences--\*\:min-w-0 > *) {
64
+ min-width: 0px;
65
+ }
66
+ :is(.gridui-u-preferences--\*\:flex-\[1_1_auto\] > *) {
67
+ flex: 1 1 auto;
68
+ }
69
+ :is(.gridui-u-preferences--\*\:rounded-none > *) {
70
+ border-radius: 0;
71
+ }
72
+ :is(.gridui-u-preferences--\*\:border-0 > *) {
73
+ border-style: var(--tw-border-style);
74
+ border-width: 0px;
75
+ }
76
+ :is(.gridui-u-preferences--\*\:bg-background > *) {
77
+ background-color: var(--gridui-background);
78
+ }
79
+ :is(.gridui-u-preferences--\*\:wrap-anywhere > *) {
80
+ overflow-wrap: anywhere;
81
+ }
82
+ :is(.gridui-u-preferences--\*\:whitespace-normal > *) {
83
+ white-space: normal;
84
+ }
85
+ :is(.gridui-u-preferences--\*\:aria-pressed\:bg-selection-background > *)[aria-pressed="true"] {
86
+ background-color: var(--gridui-selection-background);
87
+ }
88
+ :is(.gridui-u-preferences--\*\:aria-pressed\:text-foreground > *)[aria-pressed="true"] {
89
+ color: var(--gridui-foreground);
90
+ }
91
+ :is(.gridui-u-preferences--\*\:aria-\[current\=page\]\:bg-selection-background > *)[aria-current="page"] {
92
+ background-color: var(--gridui-selection-background);
93
+ }
94
+ :is(.gridui-u-preferences--\*\:aria-\[current\=page\]\:text-foreground > *)[aria-current="page"] {
95
+ color: var(--gridui-foreground);
96
+ }
97
+ .gridui-u-preferences--\[\&_\>_a\]\:inline-flex > a {
98
+ display: inline-flex;
99
+ }
100
+ .gridui-u-preferences--\[\&_\>_a\]\:min-h-\(--gridui-preferences-min\) > a {
101
+ min-height: var(--gridui-preferences-min);
102
+ }
103
+ .gridui-u-preferences--\[\&_\>_a\]\:items-center > a {
104
+ align-items: center;
105
+ }
106
+ .gridui-u-preferences--\[\&_\>_a\]\:justify-center > a {
107
+ justify-content: center;
108
+ }
109
+ .gridui-u-preferences--\[\&_\>_a\]\:gap-gridui-4 > a {
110
+ gap: var(--gridui-space-4);
111
+ }
112
+ .gridui-u-preferences--\[\&_\>_a\]\:px-\(--gridui-preferences-inline\) > a {
113
+ padding-inline: var(--gridui-preferences-inline);
114
+ }
115
+ .gridui-u-preferences--\[\&_\>_a\]\:py-\(--gridui-preferences-block\) > a {
116
+ padding-block: var(--gridui-preferences-block);
117
+ }
118
+ .gridui-u-preferences--\[\&_\>_a\]\:type-ui > a {
119
+ font: var(--gridui-type-ui);
120
+ font-family: var(--gridui-font-body);
121
+ letter-spacing: normal;
122
+ }
123
+ .gridui-u-preferences--\[\&_\>_a\]\:text-foreground > a {
124
+ color: var(--gridui-foreground);
125
+ }
126
+ .gridui-u-preferences--\[\&_\>_a\]\:no-underline > a {
127
+ text-decoration-line: none;
128
+ }
129
+ }
130
+ @layer components {
131
+ [data-size].gridui-preferences-inline {
132
+ --gridui-preferences-min: max(var(--gridui-control-min-height-medium), var(--gridui-target-min-size));
133
+ --gridui-preferences-block: var(--gridui-space-8);
134
+ --gridui-preferences-inline: var(--gridui-space-16);
135
+ }
136
+ [data-size="small"].gridui-preferences-inline {
137
+ --gridui-preferences-min: max(var(--gridui-control-min-height-small), var(--gridui-target-min-size));
138
+ --gridui-preferences-block: var(--gridui-space-4);
139
+ --gridui-preferences-inline: var(--gridui-space-8);
140
+ }
141
+ [data-size="large"].gridui-preferences-inline {
142
+ --gridui-preferences-min: max(var(--gridui-control-min-height-large), var(--gridui-target-min-size));
143
+ --gridui-preferences-inline: var(--gridui-space-24);
144
+ }
145
+ }
146
+ @property --tw-border-style {
147
+ syntax: "*";
148
+ inherits: false;
149
+ initial-value: solid;
150
+ }
151
+ @layer properties {
152
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
153
+ *, ::before, ::after, ::backdrop {
154
+ --tw-border-style: solid;
155
+ }
156
+ }
157
+ }
package/docs/catalog.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "name": "@gridui/preferences",
4
- "version": "1.2.0",
5
- "category": "core",
4
+ "version": "2.0.0",
5
+ "category": "controls",
6
6
  "description": "GridUI React preferences",
7
7
  "usage": "Overlay supplies the selection indicator used by both presentations. The dropdown presentation also composes DropdownMenu and Tooltip. Applications own routes, labels, state persistence, and branding.",
8
8
  "documentation": [
@@ -40,9 +40,10 @@
40
40
  "@gridui/tooltip/styles.css",
41
41
  "@gridui/preferences/styles.css"
42
42
  ],
43
+ "styledImport": "@gridui/preferences/styled",
43
44
  "examples": [
44
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/preferences/stories/getting-started.mdx",
45
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/preferences/stories/preferences.mdx",
46
- "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/preferences/stories/preferences.stories.tsx"
45
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/preferences/stories/getting-started.mdx",
46
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/preferences/stories/preferences.mdx",
47
+ "https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/preferences/stories/preferences.stories.tsx"
47
48
  ]
48
49
  }
@@ -11,14 +11,28 @@ import "@gridui/theme/styles.css";
11
11
  import "@gridui/preferences/styles.css";
12
12
  ```
13
13
 
14
- Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/preferences/README.md) for shared behavior and stylesheet dependencies.
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/preferences/README.md) for shared behavior and stylesheet dependencies.
15
15
 
16
- The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/preferences/stories/preferences.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-controls/preferences/stories/preferences.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
17
 
18
18
  ## API
19
19
 
20
20
  The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
21
 
22
+ ### size
23
+
24
+ ``Size | undefined`` · Optional
25
+
26
+ Component size preset.
27
+
28
+ ### density
29
+
30
+ ``Density | undefined`` · Optional
31
+
32
+ ### portalContainer
33
+
34
+ ``Element | DocumentFragment | null | undefined`` · Optional
35
+
22
36
  ### selectionAppearance
23
37
 
24
38
  ``SelectionAppearance | undefined`` · Optional
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/preferences",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "GridUI React preferences",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -10,14 +10,19 @@
10
10
  "docs"
11
11
  ],
12
12
  "sideEffects": [
13
- "**/*.css"
13
+ "**/*.css",
14
+ "./dist/styled.js"
14
15
  ],
15
16
  "exports": {
16
17
  ".": {
17
18
  "types": "./dist/index.d.ts",
18
19
  "import": "./dist/index.js"
19
20
  },
20
- "./styles.css": "./dist/styles.css"
21
+ "./styles.css": "./dist/styles.css",
22
+ "./styled": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/styled.js"
25
+ }
21
26
  },
22
27
  "publishConfig": {
23
28
  "access": "public"
@@ -27,14 +32,14 @@
27
32
  "react-dom": "^19.2.0"
28
33
  },
29
34
  "dependencies": {
30
- "@gridui/button": "^5.1.0",
31
- "@gridui/dropdown-menu": "^3.0.0",
32
- "@gridui/overlay": "^2.3.0",
33
- "@gridui/style-utils": "^4.0.0",
34
- "@gridui/theme": "^3.0.0",
35
- "@gridui/tooltip": "^1.1.0",
35
+ "@gridui/button": "^6.0.0",
36
+ "@gridui/dropdown-menu": "^4.0.0",
37
+ "@gridui/overlay": "^2.5.0",
38
+ "@gridui/style-utils": "^4.1.0",
39
+ "@gridui/theme": "^5.0.0",
40
+ "@gridui/tooltip": "^1.2.1",
36
41
  "class-variance-authority": "0.7.1",
37
- "lucide-react": "1.72.0"
42
+ "lucide-react": "1.73.0"
38
43
  },
39
44
  "devDependencies": {
40
45
  "@gridui-internal/configuration": "0.0.0-internal",
@@ -49,6 +54,14 @@
49
54
  "react-dom": "19.3.1",
50
55
  "typescript": "6.0.3"
51
56
  },
57
+ "gridui": {
58
+ "styleOrder": [
59
+ "@gridui/button",
60
+ "@gridui/overlay",
61
+ "@gridui/dropdown-menu",
62
+ "@gridui/tooltip"
63
+ ]
64
+ },
52
65
  "scripts": {
53
66
  "build": "node ../../scripts/compilation/package.ts",
54
67
  "compile": "tsc --project tsconfig.json"