@askrjs/themes 0.0.4 → 0.0.7

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 (78) hide show
  1. package/dist/components/_internal/box-layout.js.map +1 -1
  2. package/dist/components/_internal/classes.js.map +1 -1
  3. package/dist/components/_internal/jsx.js.map +1 -1
  4. package/dist/components/_internal/layout.js +2 -1
  5. package/dist/components/_internal/layout.js.map +1 -1
  6. package/dist/components/_internal/merge-props.js.map +1 -1
  7. package/dist/components/_internal/pathname.js.map +1 -1
  8. package/dist/components/_internal/style.js.map +1 -1
  9. package/dist/components/alert/alert.js.map +1 -1
  10. package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
  11. package/dist/components/badge/badge.js.map +1 -1
  12. package/dist/components/block/block.js.map +1 -1
  13. package/dist/components/box/box.js.map +1 -1
  14. package/dist/components/breadcrumb/breadcrumb.a11y.js.map +1 -1
  15. package/dist/components/breadcrumb/breadcrumb.js.map +1 -1
  16. package/dist/components/button-group/button-group.js.map +1 -1
  17. package/dist/components/card/card.js.map +1 -1
  18. package/dist/components/close/close.js.map +1 -1
  19. package/dist/components/container/container.a11y.d.ts +0 -1
  20. package/dist/components/container/container.js +7 -7
  21. package/dist/components/container/container.js.map +1 -1
  22. package/dist/components/container/container.types.d.ts +2 -3
  23. package/dist/components/empty-state/empty-state.js.map +1 -1
  24. package/dist/components/field/field.js.map +1 -1
  25. package/dist/components/flex/flex.js.map +1 -1
  26. package/dist/components/header/header.a11y.js.map +1 -1
  27. package/dist/components/header/header.js.map +1 -1
  28. package/dist/components/inline/index.js.map +1 -1
  29. package/dist/components/input-group/input-group.js.map +1 -1
  30. package/dist/components/list-group/list-group.js.map +1 -1
  31. package/dist/components/nav/nav.js.map +1 -1
  32. package/dist/components/navbar/navbar-panel.js.map +1 -1
  33. package/dist/components/navbar/navbar.context.js.map +1 -1
  34. package/dist/components/navbar/navbar.js.map +1 -1
  35. package/dist/components/navbar/navbar.render.js.map +1 -1
  36. package/dist/components/navbar/navbar.shared.js.map +1 -1
  37. package/dist/components/overlays/dropdown-content.js.map +1 -1
  38. package/dist/components/pagination/pagination.js.map +1 -1
  39. package/dist/components/section/section.js.map +1 -1
  40. package/dist/components/separator/separator.a11y.js.map +1 -1
  41. package/dist/components/separator/separator.js.map +1 -1
  42. package/dist/components/shell/shell-panel.js.map +1 -1
  43. package/dist/components/shell/shell-responsive.js.map +1 -1
  44. package/dist/components/shell/shell.a11y.js.map +1 -1
  45. package/dist/components/shell/shell.js.map +1 -1
  46. package/dist/components/sidebar/sidebar-panel.js.map +1 -1
  47. package/dist/components/sidebar/sidebar-toggle.js.map +1 -1
  48. package/dist/components/sidebar/sidebar.context.js.map +1 -1
  49. package/dist/components/sidebar/sidebar.js.map +1 -1
  50. package/dist/components/sidebar/sidebar.shared.js.map +1 -1
  51. package/dist/components/skeleton/skeleton.js.map +1 -1
  52. package/dist/components/spacer/spacer.js.map +1 -1
  53. package/dist/components/spinner/spinner.js.map +1 -1
  54. package/dist/components/stack/stack.js.map +1 -1
  55. package/dist/components/theme/theme.js +13 -3
  56. package/dist/components/theme/theme.js.map +1 -1
  57. package/dist/controls.d.ts +1 -1
  58. package/dist/feedback.d.ts +1 -1
  59. package/dist/layouts.d.ts +1 -1
  60. package/dist/navs.d.ts +1 -1
  61. package/dist/shells.d.ts +1 -1
  62. package/dist/surfaces.d.ts +1 -1
  63. package/dist/themes/default/index.css +220 -141
  64. package/package.json +11 -10
  65. package/src/components/_internal/layout.ts +1 -0
  66. package/src/components/container/container.a11y.ts +0 -1
  67. package/src/components/container/container.tsx +9 -19
  68. package/src/components/container/container.types.ts +1 -3
  69. package/src/components/theme/theme.tsx +22 -1
  70. package/src/themes/default/index.css +1 -1
  71. package/src/themes/default/styles/base/utilities.css +34 -5
  72. package/src/themes/default/styles/display/coverage.css +91 -1
  73. package/src/themes/default/styles/layout/layout.css +1 -1
  74. package/src/themes/default/styles/layout/responsive-layout.css +3 -1
  75. package/src/themes/default/styles/shell/sidebar.css +22 -1
  76. package/templates/theme/index.css +1 -1
  77. package/templates/theme/styles/display/coverage.css +91 -1
  78. package/templates/theme/styles/layout/responsive-layout.css +3 -1
@@ -3,7 +3,6 @@ export const CONTAINER_A11Y_CONTRACT = {
3
3
  slot: "data-slot" as const,
4
4
  layout: "data-ak-layout" as const,
5
5
  variant: "data-variant" as const,
6
- fluid: "data-fluid" as const,
7
6
  maxWidth: "data-max-width" as const,
8
7
  padding: "data-padding" as const,
9
8
  size: "data-size" as const,
@@ -15,7 +15,7 @@ import {
15
15
  } from "../_internal/layout";
16
16
  import type { ContainerAsChildProps, ContainerNativeProps } from "./container.types";
17
17
 
18
- const CONTAINER_WIDTH_TOKENS = new Set(["1", "2", "3", "4", "sm", "md", "lg", "xl"]);
18
+ const CONTAINER_WIDTH_TOKENS = new Set(["1", "2", "3", "4", "sm", "md", "lg", "xl", "fluid"]);
19
19
 
20
20
  function isContainerWidthToken(value: unknown): value is string {
21
21
  return typeof value === "string" && CONTAINER_WIDTH_TOKENS.has(value.trim());
@@ -45,7 +45,6 @@ export function Container(props: ContainerNativeProps | ContainerAsChildProps) {
45
45
  asChild,
46
46
  children,
47
47
  variant,
48
- fluid = false,
49
48
  maxWidth,
50
49
  padding,
51
50
  size,
@@ -56,11 +55,7 @@ export function Container(props: ContainerNativeProps | ContainerAsChildProps) {
56
55
  } = props;
57
56
 
58
57
  const responsiveVariant =
59
- fluid || (size === undefined && maxWidth === undefined)
60
- ? fluid
61
- ? "fluid"
62
- : (variant ?? "default")
63
- : undefined;
58
+ size === undefined && maxWidth === undefined ? (variant ?? "default") : undefined;
64
59
 
65
60
  const { boxProps, rest: passthroughProps } = splitBoxLayoutProps(rest);
66
61
  const layoutStyle: Record<string, string | number> = {
@@ -69,7 +64,7 @@ export function Container(props: ContainerNativeProps | ContainerAsChildProps) {
69
64
  };
70
65
  applyBoxLayoutStyles(layoutStyle, boxProps);
71
66
 
72
- const widthValue = fluid ? undefined : (maxWidth ?? size);
67
+ const widthValue = maxWidth ?? size;
73
68
  const usesInlineMaxWidth =
74
69
  boxProps.maxWidth === undefined &&
75
70
  widthValue !== undefined &&
@@ -114,20 +109,15 @@ export function Container(props: ContainerNativeProps | ContainerAsChildProps) {
114
109
  "data-slot": "container",
115
110
  "data-ak-layout": "true",
116
111
  "data-variant": responsiveVariant,
117
- "data-fluid": fluid ? "true" : undefined,
118
- "data-size": fluid
119
- ? undefined
120
- : isStaticValue(size)
121
- ? serializeResponsiveValueIf(size, isContainerWidthToken)
122
- : undefined,
112
+ "data-size": isStaticValue(size)
113
+ ? serializeResponsiveValueIf(size, isContainerWidthToken)
114
+ : undefined,
123
115
  "data-align": isStaticValue(align)
124
116
  ? serializeResponsiveValueIf(align, isContainerAlignToken)
125
117
  : undefined,
126
- "data-max-width": fluid
127
- ? undefined
128
- : isStaticValue(maxWidth)
129
- ? serializeResponsiveValueIf(maxWidth, isContainerWidthToken)
130
- : undefined,
118
+ "data-max-width": isStaticValue(maxWidth)
119
+ ? serializeResponsiveValueIf(maxWidth, isContainerWidthToken)
120
+ : undefined,
131
121
  ...(layoutClass ? { class: layoutClass } : {}),
132
122
  });
133
123
 
@@ -7,10 +7,8 @@ export type ContainerVariant = "default" | "sm" | "md" | "lg" | "xl" | "xxl" | "
7
7
  export type ContainerOwnProps = BoxLayoutOwnProps & {
8
8
  /** Bootstrap-like responsive container variant. */
9
9
  variant?: ContainerVariant;
10
- /** Makes the container span the full available width while preserving gutters. */
11
- fluid?: boolean;
12
10
  /** Radix-style container size token. */
13
- size?: LayoutResponsive<"1" | "2" | "3" | "4" | "sm" | "md" | "lg" | "xl">;
11
+ size?: LayoutResponsive<"1" | "2" | "3" | "4" | "sm" | "md" | "lg" | "xl" | "fluid">;
14
12
  /** Horizontal alignment of the constrained container. */
15
13
  align?: LayoutResponsive<"left" | "center" | "right">;
16
14
  /** Compatibility max-width override. */
@@ -1,4 +1,5 @@
1
1
  import { defineContext, readContext, state } from "@askrjs/askr";
2
+ import type { JSXElement } from "@askrjs/askr/foundations/structures";
2
3
  import { resource } from "@askrjs/askr/resources";
3
4
  import { Button } from "@askrjs/ui";
4
5
  import type { ButtonNativeProps, PressEvent } from "@askrjs/ui";
@@ -186,8 +187,9 @@ export function ThemeToggle(props: ThemeToggleProps): JSX.Element {
186
187
  darkIcon,
187
188
  systemIcon,
188
189
  });
190
+ const renderedIcon = cloneThemeToggleIcon(themedIcon);
189
191
  const content =
190
- typeof children === "function" ? children(renderContext) : (children ?? themedIcon);
192
+ typeof children === "function" ? children(renderContext) : (children ?? renderedIcon);
191
193
 
192
194
  return (
193
195
  <Button
@@ -230,6 +232,25 @@ export function resolveThemeToggleIcon(
230
232
  return getThemeIcon(theme, icons) ?? getThemeIcon(nextTheme, icons);
231
233
  }
232
234
 
235
+ function isJSXElement(value: unknown): value is JSXElement {
236
+ return (
237
+ typeof value === "object" &&
238
+ value !== null &&
239
+ "$$typeof" in value &&
240
+ "type" in value &&
241
+ "props" in value
242
+ );
243
+ }
244
+
245
+ function cloneThemeToggleIcon(icon: unknown): unknown {
246
+ if (!isJSXElement(icon)) return icon;
247
+
248
+ return {
249
+ ...icon,
250
+ props: { ...(icon.props as Record<string, unknown> | undefined) },
251
+ };
252
+ }
253
+
233
254
  function syncThemeRoot(themeChoice: ThemeName | null | undefined): void {
234
255
  if (typeof document === "undefined") {
235
256
  return;
@@ -2,9 +2,9 @@
2
2
  @import "./styles/base/reset.css";
3
3
  @import "./styles/base/typography.css";
4
4
  @import "./styles/base/icon.css";
5
- @import "./styles/base/utilities.css";
6
5
  @import "./styles/layout/layout.css";
7
6
  @import "./styles/layout/responsive-layout.css";
7
+ @import "./styles/base/utilities.css";
8
8
  @import "./styles/layout/block.css";
9
9
  @import "./styles/layout/patterns.css";
10
10
  @import "./styles/layout/aspect-ratio.css";
@@ -147,21 +147,34 @@
147
147
  row-gap: var(--ak-space-lg);
148
148
  }
149
149
 
150
- :where(.flex-col, [data-slot="flex"][data-direction="initial:column"]) {
150
+ :where(
151
+ .flex-col,
152
+ [data-slot="flex"][data-direction="initial:column"],
153
+ [data-slot="inline"][data-direction="initial:column"]
154
+ ) {
151
155
  flex-direction: column;
152
156
  }
153
157
 
154
- :where(.flex-row-reverse, [data-slot="flex"][data-direction="initial:row-reverse"]) {
158
+ :where(
159
+ .flex-row-reverse,
160
+ [data-slot="flex"][data-direction="initial:row-reverse"],
161
+ [data-slot="inline"][data-direction="initial:row-reverse"]
162
+ ) {
155
163
  flex-direction: row-reverse;
156
164
  }
157
165
 
158
- :where(.flex-col-reverse, [data-slot="flex"][data-direction="initial:column-reverse"]) {
166
+ :where(
167
+ .flex-col-reverse,
168
+ [data-slot="flex"][data-direction="initial:column-reverse"],
169
+ [data-slot="inline"][data-direction="initial:column-reverse"]
170
+ ) {
159
171
  flex-direction: column-reverse;
160
172
  }
161
173
 
162
174
  :where(
163
175
  .items-start,
164
176
  [data-slot="flex"][data-align="initial:start"],
177
+ [data-slot="inline"][data-align="initial:start"],
165
178
  [data-slot="block"][data-align="initial:start"]
166
179
  ) {
167
180
  align-items: flex-start;
@@ -170,6 +183,7 @@
170
183
  :where(
171
184
  .items-end,
172
185
  [data-slot="flex"][data-align="initial:end"],
186
+ [data-slot="inline"][data-align="initial:end"],
173
187
  [data-slot="block"][data-align="initial:end"]
174
188
  ) {
175
189
  align-items: flex-end;
@@ -178,6 +192,7 @@
178
192
  :where(
179
193
  .items-center,
180
194
  [data-slot="flex"][data-align="initial:center"],
195
+ [data-slot="inline"][data-align="initial:center"],
181
196
  [data-slot="block"][data-align="initial:center"]
182
197
  ) {
183
198
  align-items: center;
@@ -186,6 +201,7 @@
186
201
  :where(
187
202
  .items-stretch,
188
203
  [data-slot="flex"][data-align="initial:stretch"],
204
+ [data-slot="inline"][data-align="initial:stretch"],
189
205
  [data-slot="block"][data-align="initial:stretch"]
190
206
  ) {
191
207
  align-items: stretch;
@@ -194,6 +210,7 @@
194
210
  :where(
195
211
  .items-baseline,
196
212
  [data-slot="flex"][data-align="initial:baseline"],
213
+ [data-slot="inline"][data-align="initial:baseline"],
197
214
  [data-slot="block"][data-align="initial:baseline"]
198
215
  ) {
199
216
  align-items: baseline;
@@ -202,6 +219,7 @@
202
219
  :where(
203
220
  .justify-start,
204
221
  [data-slot="flex"][data-justify="initial:start"],
222
+ [data-slot="inline"][data-justify="initial:start"],
205
223
  [data-slot="block"][data-justify="initial:start"]
206
224
  ) {
207
225
  justify-content: flex-start;
@@ -210,6 +228,7 @@
210
228
  :where(
211
229
  .justify-end,
212
230
  [data-slot="flex"][data-justify="initial:end"],
231
+ [data-slot="inline"][data-justify="initial:end"],
213
232
  [data-slot="block"][data-justify="initial:end"]
214
233
  ) {
215
234
  justify-content: flex-end;
@@ -218,6 +237,7 @@
218
237
  :where(
219
238
  .justify-center,
220
239
  [data-slot="flex"][data-justify="initial:center"],
240
+ [data-slot="inline"][data-justify="initial:center"],
221
241
  [data-slot="block"][data-justify="initial:center"]
222
242
  ) {
223
243
  justify-content: center;
@@ -226,15 +246,24 @@
226
246
  :where(
227
247
  .justify-between,
228
248
  [data-slot="flex"][data-justify="initial:between"],
249
+ [data-slot="inline"][data-justify="initial:between"],
229
250
  [data-slot="block"][data-justify="initial:between"]
230
251
  ) {
231
252
  justify-content: space-between;
232
253
  }
233
254
 
234
- :where(.flex-nowrap, [data-slot="flex"][data-wrap="initial:nowrap"]) {
255
+ :where(
256
+ .flex-nowrap,
257
+ [data-slot="flex"][data-wrap="initial:nowrap"],
258
+ [data-slot="inline"][data-wrap="initial:nowrap"]
259
+ ) {
235
260
  flex-wrap: nowrap;
236
261
  }
237
262
 
238
- :where(.flex-wrap-reverse, [data-slot="flex"][data-wrap="initial:wrap-reverse"]) {
263
+ :where(
264
+ .flex-wrap-reverse,
265
+ [data-slot="flex"][data-wrap="initial:wrap-reverse"],
266
+ [data-slot="inline"][data-wrap="initial:wrap-reverse"]
267
+ ) {
239
268
  flex-wrap: wrap-reverse;
240
269
  }
@@ -19,6 +19,97 @@
19
19
  gap: var(--ak-space-md);
20
20
  }
21
21
 
22
+ [data-slot="inline"] {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ gap: var(--ak-space-md);
26
+ }
27
+
28
+ [data-slot="flex"][data-gap="initial:1"],
29
+ [data-slot="inline"][data-gap="initial:1"] {
30
+ gap: var(--ak-space-1);
31
+ }
32
+
33
+ [data-slot="flex"][data-gap="initial:2"],
34
+ [data-slot="inline"][data-gap="initial:2"] {
35
+ gap: var(--ak-space-2);
36
+ }
37
+
38
+ [data-slot="flex"][data-gap="initial:3"],
39
+ [data-slot="inline"][data-gap="initial:3"] {
40
+ gap: var(--ak-space-3);
41
+ }
42
+
43
+ [data-slot="flex"][data-gap="initial:4"],
44
+ [data-slot="inline"][data-gap="initial:4"] {
45
+ gap: var(--ak-space-4);
46
+ }
47
+
48
+ [data-slot="flex"][data-gap="initial:xs"],
49
+ [data-slot="inline"][data-gap="initial:xs"] {
50
+ gap: var(--ak-space-xs);
51
+ }
52
+
53
+ [data-slot="flex"][data-gap="initial:sm"],
54
+ [data-slot="inline"][data-gap="initial:sm"] {
55
+ gap: var(--ak-space-sm);
56
+ }
57
+
58
+ [data-slot="flex"][data-gap="initial:md"],
59
+ [data-slot="inline"][data-gap="initial:md"] {
60
+ gap: var(--ak-space-md);
61
+ }
62
+
63
+ [data-slot="flex"][data-gap="initial:lg"],
64
+ [data-slot="inline"][data-gap="initial:lg"] {
65
+ gap: var(--ak-space-lg);
66
+ }
67
+
68
+ [data-slot="flex"][data-gap="initial:xl"],
69
+ [data-slot="inline"][data-gap="initial:xl"] {
70
+ gap: var(--ak-space-xl);
71
+ }
72
+
73
+ [data-slot="flex"][data-gap-x="initial:sm"],
74
+ [data-slot="inline"][data-gap-x="initial:sm"] {
75
+ column-gap: var(--ak-space-sm);
76
+ }
77
+
78
+ [data-slot="flex"][data-gap-x="initial:md"],
79
+ [data-slot="inline"][data-gap-x="initial:md"] {
80
+ column-gap: var(--ak-space-md);
81
+ }
82
+
83
+ [data-slot="flex"][data-gap-x="initial:lg"],
84
+ [data-slot="inline"][data-gap-x="initial:lg"] {
85
+ column-gap: var(--ak-space-lg);
86
+ }
87
+
88
+ [data-slot="flex"][data-gap-y="initial:sm"],
89
+ [data-slot="inline"][data-gap-y="initial:sm"] {
90
+ row-gap: var(--ak-space-sm);
91
+ }
92
+
93
+ [data-slot="flex"][data-gap-y="initial:md"],
94
+ [data-slot="inline"][data-gap-y="initial:md"] {
95
+ row-gap: var(--ak-space-md);
96
+ }
97
+
98
+ [data-slot="flex"][data-gap-y="initial:lg"],
99
+ [data-slot="inline"][data-gap-y="initial:lg"] {
100
+ row-gap: var(--ak-space-lg);
101
+ }
102
+
103
+ [data-slot="flex"][data-wrap="initial:nowrap"],
104
+ [data-slot="inline"][data-wrap="initial:nowrap"] {
105
+ flex-wrap: nowrap;
106
+ }
107
+
108
+ [data-slot="flex"][data-wrap="initial:wrap-reverse"],
109
+ [data-slot="inline"][data-wrap="initial:wrap-reverse"] {
110
+ flex-wrap: wrap-reverse;
111
+ }
112
+
22
113
  [data-slot="section"] {
23
114
  display: block;
24
115
  }
@@ -191,7 +282,6 @@
191
282
  [data-dialog-overlay],
192
283
  [data-dismissable-layer],
193
284
  [data-dropdown-label],
194
- [data-fluid],
195
285
  [data-focus-ring],
196
286
  [data-focus-scope],
197
287
  [data-gap],
@@ -64,7 +64,7 @@
64
64
  padding-right: var(--ak-pr-initial, var(--ak-px-initial, var(--ak-layout-page-gutter)));
65
65
  }
66
66
 
67
- :where([data-slot="container"][data-fluid="true"]) {
67
+ :where([data-slot="container"][data-size="initial:fluid"]) {
68
68
  --ak-container-inline-size: 100%;
69
69
  }
70
70
 
@@ -36,7 +36,9 @@
36
36
  :where([data-slot="shell"][data-variant="sidebar"], [data-slot="shell"][data-variant="rail"])
37
37
  > :where([data-slot="shell-nav"]) {
38
38
  display: grid;
39
- align-content: start;
39
+ align-content: stretch;
40
+ flex: 0 0 100vh;
41
+ min-block-size: 100vh;
40
42
  padding: var(--ak-layout-page-gutter);
41
43
  inline-size: 100%;
42
44
  max-inline-size: 100%;
@@ -125,7 +125,7 @@
125
125
  .sidebar-group[data-align="center"],
126
126
  [data-slot="sidebar-group"][data-align="center"]
127
127
  ) {
128
- justify-items: stretch;
128
+ justify-items: center;
129
129
  }
130
130
 
131
131
  :where(.sidebar-shell, [data-slot="sidebar-shell"], .sidebar-panel, [data-slot="sidebar-panel"])
@@ -141,9 +141,27 @@
141
141
  .sidebar-group-label,
142
142
  [data-slot="sidebar-group-label"]
143
143
  ) {
144
+ inline-size: 100%;
144
145
  text-align: center;
145
146
  }
146
147
 
148
+ :where(.sidebar-shell, [data-slot="sidebar-shell"], .sidebar-panel, [data-slot="sidebar-panel"])
149
+ :where(
150
+ .navbar-group[data-align="center"],
151
+ [data-slot="navbar-group"][data-align="center"],
152
+ .sidebar-group[data-align="center"],
153
+ [data-slot="sidebar-group"][data-align="center"]
154
+ )
155
+ > :where(
156
+ .navbar-group-body,
157
+ [data-slot="navbar-group-body"],
158
+ .sidebar-group-body,
159
+ [data-slot="sidebar-group-body"]
160
+ ) {
161
+ inline-size: 100%;
162
+ justify-items: center;
163
+ }
164
+
147
165
  :where(.sidebar-shell, [data-slot="sidebar-shell"], .sidebar-panel, [data-slot="sidebar-panel"])
148
166
  :where(
149
167
  .navbar-group[data-align="end"],
@@ -207,7 +225,10 @@
207
225
  [data-slot="sidebar-group"][data-align="center"]
208
226
  )
209
227
  :where(.nav-item, .navbar-item, [data-slot="nav-item"], [data-slot="nav-link"], .sidebar-item) {
228
+ inline-size: auto;
229
+ max-inline-size: 100%;
210
230
  justify-content: center;
231
+ justify-self: center;
211
232
  }
212
233
 
213
234
  :where(.sidebar-shell, [data-slot="sidebar-shell"], .sidebar-panel, [data-slot="sidebar-panel"])
@@ -2,9 +2,9 @@
2
2
  @import "./styles/base/reset.css";
3
3
  @import "./styles/base/typography.css";
4
4
  @import "./styles/base/icon.css";
5
- @import "./styles/base/utilities.css";
6
5
  @import "./styles/layout/layout.css";
7
6
  @import "./styles/layout/responsive-layout.css";
7
+ @import "./styles/base/utilities.css";
8
8
  @import "./styles/layout/block.css";
9
9
  @import "./styles/layout/patterns.css";
10
10
  @import "./styles/layout/aspect-ratio.css";
@@ -19,6 +19,97 @@
19
19
  gap: var(--ak-space-md);
20
20
  }
21
21
 
22
+ [data-slot="inline"] {
23
+ display: flex;
24
+ flex-wrap: wrap;
25
+ gap: var(--ak-space-md);
26
+ }
27
+
28
+ [data-slot="flex"][data-gap="initial:1"],
29
+ [data-slot="inline"][data-gap="initial:1"] {
30
+ gap: var(--ak-space-1);
31
+ }
32
+
33
+ [data-slot="flex"][data-gap="initial:2"],
34
+ [data-slot="inline"][data-gap="initial:2"] {
35
+ gap: var(--ak-space-2);
36
+ }
37
+
38
+ [data-slot="flex"][data-gap="initial:3"],
39
+ [data-slot="inline"][data-gap="initial:3"] {
40
+ gap: var(--ak-space-3);
41
+ }
42
+
43
+ [data-slot="flex"][data-gap="initial:4"],
44
+ [data-slot="inline"][data-gap="initial:4"] {
45
+ gap: var(--ak-space-4);
46
+ }
47
+
48
+ [data-slot="flex"][data-gap="initial:xs"],
49
+ [data-slot="inline"][data-gap="initial:xs"] {
50
+ gap: var(--ak-space-xs);
51
+ }
52
+
53
+ [data-slot="flex"][data-gap="initial:sm"],
54
+ [data-slot="inline"][data-gap="initial:sm"] {
55
+ gap: var(--ak-space-sm);
56
+ }
57
+
58
+ [data-slot="flex"][data-gap="initial:md"],
59
+ [data-slot="inline"][data-gap="initial:md"] {
60
+ gap: var(--ak-space-md);
61
+ }
62
+
63
+ [data-slot="flex"][data-gap="initial:lg"],
64
+ [data-slot="inline"][data-gap="initial:lg"] {
65
+ gap: var(--ak-space-lg);
66
+ }
67
+
68
+ [data-slot="flex"][data-gap="initial:xl"],
69
+ [data-slot="inline"][data-gap="initial:xl"] {
70
+ gap: var(--ak-space-xl);
71
+ }
72
+
73
+ [data-slot="flex"][data-gap-x="initial:sm"],
74
+ [data-slot="inline"][data-gap-x="initial:sm"] {
75
+ column-gap: var(--ak-space-sm);
76
+ }
77
+
78
+ [data-slot="flex"][data-gap-x="initial:md"],
79
+ [data-slot="inline"][data-gap-x="initial:md"] {
80
+ column-gap: var(--ak-space-md);
81
+ }
82
+
83
+ [data-slot="flex"][data-gap-x="initial:lg"],
84
+ [data-slot="inline"][data-gap-x="initial:lg"] {
85
+ column-gap: var(--ak-space-lg);
86
+ }
87
+
88
+ [data-slot="flex"][data-gap-y="initial:sm"],
89
+ [data-slot="inline"][data-gap-y="initial:sm"] {
90
+ row-gap: var(--ak-space-sm);
91
+ }
92
+
93
+ [data-slot="flex"][data-gap-y="initial:md"],
94
+ [data-slot="inline"][data-gap-y="initial:md"] {
95
+ row-gap: var(--ak-space-md);
96
+ }
97
+
98
+ [data-slot="flex"][data-gap-y="initial:lg"],
99
+ [data-slot="inline"][data-gap-y="initial:lg"] {
100
+ row-gap: var(--ak-space-lg);
101
+ }
102
+
103
+ [data-slot="flex"][data-wrap="initial:nowrap"],
104
+ [data-slot="inline"][data-wrap="initial:nowrap"] {
105
+ flex-wrap: nowrap;
106
+ }
107
+
108
+ [data-slot="flex"][data-wrap="initial:wrap-reverse"],
109
+ [data-slot="inline"][data-wrap="initial:wrap-reverse"] {
110
+ flex-wrap: wrap-reverse;
111
+ }
112
+
22
113
  [data-slot="section"] {
23
114
  display: block;
24
115
  }
@@ -191,7 +282,6 @@
191
282
  [data-dialog-overlay],
192
283
  [data-dismissable-layer],
193
284
  [data-dropdown-label],
194
- [data-fluid],
195
285
  [data-focus-ring],
196
286
  [data-focus-scope],
197
287
  [data-gap],
@@ -36,7 +36,9 @@
36
36
  :where([data-slot="shell"][data-variant="sidebar"], [data-slot="shell"][data-variant="rail"])
37
37
  > :where([data-slot="shell-nav"]) {
38
38
  display: grid;
39
- align-content: start;
39
+ align-content: stretch;
40
+ flex: 0 0 100vh;
41
+ min-block-size: 100vh;
40
42
  padding: var(--ak-layout-page-gutter);
41
43
  inline-size: 100%;
42
44
  max-inline-size: 100%;