@frontile/theme 0.18.13 → 0.18.14

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.
@@ -152,7 +152,7 @@ declare const appLayout: import("tailwind-variants").TVReturnType<{
152
152
  pageHeaderTitle: string;
153
153
  pageHeaderDescription: string;
154
154
  pageHeaderActions: string;
155
- aside: string;
155
+ aside: string[];
156
156
  mobileAside: string;
157
157
  asideToggle: string[];
158
158
  region: string;
@@ -1 +1 @@
1
- {"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../src/components/app-layout.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA2K1C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CA6lBb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,MAAM,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
1
+ {"version":3,"file":"app-layout.d.ts","sourceRoot":"","sources":["../../src/components/app-layout.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AA2K1C,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8CAmmBb,CAAC;AAEH,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,MAAM,MAAM,cAAc,GAAG,MAAM,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/components/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAgF9C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uIAuHR,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/components/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAmF9C,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uIAuHR,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,IAAI,CAAC,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AASxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,iBAAS,QAAQ,CAAC,MAAM,GAAE,YAAiB,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAgEtE;AAeD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,oBAAoB,CAAC;AASxC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,iBAAS,QAAQ,CAAC,MAAM,GAAE,YAAiB,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAuEtE;AAeD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -1456,7 +1456,10 @@ const BY_VARIANT = {
1456
1456
  // A circle that centers an icon, sized from the design artifact: the circle
1457
1457
  // diameter, the icon inside it, and for `plain` a tighter box with no circle.
1458
1458
  // The icon is the `svg` the block contains, so it needs no size class of its
1459
- // own. These are the artifact's pixel values, not the `size-icon-*` ramp, which
1459
+ // own. Its size is important: a Font Awesome glyph gets an unlayered
1460
+ // `.svg-inline--fa { width; height }` from the library, which beats any layered
1461
+ // utility, so without `!` the glyph would keep Font Awesome's size.
1462
+ // These are the artifact's pixel values, not the `size-icon-*` ramp, which
1460
1463
  // follows the label text. Outline draws its ring as an inset shadow in the
1461
1464
  // icon color, 0.5px at 4xs up to 2.5px at 3xl.
1462
1465
  //
@@ -1467,16 +1470,16 @@ const icon = tv({
1467
1470
  base: 'box-border inline-flex shrink-0 items-center justify-center rounded-full align-middle',
1468
1471
  variants: {
1469
1472
  size: {
1470
- '4xs': 'size-4 [&_svg]:size-[8px]',
1471
- '3xs': 'size-5 [&_svg]:size-[10px]',
1472
- '2xs': 'size-6 [&_svg]:size-[12px]',
1473
- xs: 'size-8 [&_svg]:size-[16px]',
1474
- sm: 'size-10 [&_svg]:size-[20px]',
1475
- md: 'size-12 [&_svg]:size-[28px]',
1476
- lg: 'size-16 [&_svg]:size-[32px]',
1477
- xl: 'size-18 [&_svg]:size-[40px]',
1478
- '2xl': 'size-20 [&_svg]:size-[48px]',
1479
- '3xl': 'size-24 [&_svg]:size-[56px]'
1473
+ '4xs': 'size-4 [&_svg]:size-[8px]!',
1474
+ '3xs': 'size-5 [&_svg]:size-[10px]!',
1475
+ '2xs': 'size-6 [&_svg]:size-[12px]!',
1476
+ xs: 'size-8 [&_svg]:size-[16px]!',
1477
+ sm: 'size-10 [&_svg]:size-[20px]!',
1478
+ md: 'size-12 [&_svg]:size-[28px]!',
1479
+ lg: 'size-16 [&_svg]:size-[32px]!',
1480
+ xl: 'size-18 [&_svg]:size-[40px]!',
1481
+ '2xl': 'size-20 [&_svg]:size-[48px]!',
1482
+ '3xl': 'size-24 [&_svg]:size-[56px]!'
1480
1483
  },
1481
1484
  color: {
1482
1485
  neutral: '',
@@ -3985,7 +3988,9 @@ const appLayout = tv({
3985
3988
  // Literal `lg:block` here, not tied to `breakpoint`: the aside is a
3986
3989
  // wide-viewport affordance regardless of where the sidebar collapses.
3987
3990
  // Below `lg` the same block renders in a Drawer instead (`mobileAside`).
3988
- aside: 'col-start-3 row-start-2 hidden w-72 shrink-0 overflow-y-auto p-4 font-body text-body-sm lg:block',
3991
+ // Its `data-state` drives the motion (`Aside` keeps it mounted until the
3992
+ // exit ends); `data-animated=false` and reduced motion turn it off.
3993
+ aside: ['col-start-3 row-start-2 hidden w-72 shrink-0 overflow-y-auto overflow-x-clip p-4 font-body text-body-sm lg:block', 'data-[animated=true]:data-[state=open]:animate-[frontile-aside-in_200ms_ease-out]', 'data-[animated=true]:data-[state=closed]:animate-[frontile-aside-out_200ms_ease-in_forwards]', 'motion-reduce:animate-none'],
3989
3994
  // The aside's `aside` element inside the drawer: as tall as the drawer.
3990
3995
  mobileAside: 'min-h-0 flex-1 overflow-y-auto p-4 font-body text-body-sm',
3991
3996
  asideToggle: iconButton,