@nation-a/ui 0.14.0 → 0.15.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.
@@ -1213,6 +1213,18 @@ html:not(#\#),body:not(#\#) {
1213
1213
  background: var(--colors-background-heybee-primary-default);
1214
1214
  }
1215
1215
 
1216
+ .bg_background\.static\.blackAlpha\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1217
+ background: var(--colors-background-static-black-alpha-default);
1218
+ }
1219
+
1220
+ .c_content\.neutral\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1221
+ color: var(--colors-content-neutral-default);
1222
+ }
1223
+
1224
+ .bg_background\.static\.whiteAlpha\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1225
+ background: var(--colors-background-static-white-alpha-default);
1226
+ }
1227
+
1216
1228
  .bg_background\.neutral\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1217
1229
  background: var(--colors-background-neutral-default);
1218
1230
  }
@@ -1249,10 +1261,6 @@ html:not(#\#),body:not(#\#) {
1249
1261
  color: var(--colors-content-heybee-primary-default);
1250
1262
  }
1251
1263
 
1252
- .c_content\.neutral\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1253
- color: var(--colors-content-neutral-default);
1254
- }
1255
-
1256
1264
  .c_content\.danger\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1257
1265
  color: var(--colors-content-danger-default);
1258
1266
  }
@@ -1354,6 +1362,18 @@ html:not(#\#),body:not(#\#) {
1354
1362
  padding-block: var(--spacing-4);
1355
1363
  }
1356
1364
 
1365
+ .h_14:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1366
+ height: var(--sizes-14);
1367
+ }
1368
+
1369
+ .w_14:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1370
+ width: var(--sizes-14);
1371
+ }
1372
+
1373
+ .bx-sh_overlay:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1374
+ box-shadow: var(--shadows-overlay);
1375
+ }
1376
+
1357
1377
  .w_7:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1358
1378
  width: var(--sizes-7);
1359
1379
  }
@@ -1538,10 +1558,6 @@ html:not(#\#),body:not(#\#) {
1538
1558
  padding: var(--spacing-1);
1539
1559
  }
1540
1560
 
1541
- .w_14:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1542
- width: var(--sizes-14);
1543
- }
1544
-
1545
1561
  .bg_content\.neutral\.bold:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1546
1562
  background: var(--colors-content-neutral-bold);
1547
1563
  }
@@ -1640,10 +1656,6 @@ html:not(#\#),body:not(#\#) {
1640
1656
  color: var(--colors-content-static-black-default);
1641
1657
  }
1642
1658
 
1643
- .bg_background\.static\.blackAlpha\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1644
- background: var(--colors-background-static-black-alpha-default);
1645
- }
1646
-
1647
1659
  .c_content\.static\.white\.default:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1648
1660
  color: var(--colors-content-static-white-default);
1649
1661
  }
@@ -1668,10 +1680,6 @@ html:not(#\#),body:not(#\#) {
1668
1680
  padding-inline: var(--spacing-3);
1669
1681
  }
1670
1682
 
1671
- .bx-sh_overlay:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1672
- box-shadow: var(--shadows-overlay);
1673
- }
1674
-
1675
1683
  .trs_opacity_0\.2s_ease:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
1676
1684
  transition: opacity 0.2s ease;
1677
1685
  }
@@ -2960,6 +2968,18 @@ html:not(#\#),body:not(#\#) {
2960
2968
  }
2961
2969
  }
2962
2970
 
2971
+ @media (hover: hover) and (pointer: fine) {
2972
+ .hover\:bg_background\.static\.blackAlpha\.selected:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2973
+ background: var(--colors-background-static-black-alpha-selected);
2974
+ }
2975
+ }
2976
+
2977
+ @media (hover: hover) and (pointer: fine) {
2978
+ .hover\:bg_background\.static\.whiteAlpha\.selected:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2979
+ background: var(--colors-background-static-white-alpha-selected);
2980
+ }
2981
+ }
2982
+
2963
2983
  @media (hover: hover) and (pointer: fine) {
2964
2984
  .hover\:bg_background\.neutral\.selected:is(:hover, [data-hover]):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) {
2965
2985
  background: var(--colors-background-neutral-selected);
@@ -41,6 +41,8 @@ export declare const buttonRecipe: import('../../../styled-system/types').Recipe
41
41
  heyd_primary: {};
42
42
  heyd_secondary: {};
43
43
  heybee_primary: {};
44
+ blackAlpha: {};
45
+ whiteAlpha: {};
44
46
  neutral: {};
45
47
  danger: {};
46
48
  warning: {};
@@ -289,7 +289,7 @@ declare const _default: import('react').MemoExoticComponent<(<C extends "symbol"
289
289
  ref?: import('react').Ref<HTMLButtonElement> | undefined;
290
290
  } & import('../../../styled-system/types').WithCss & {
291
291
  variant?: "outline" | "solid" | "light" | undefined;
292
- color?: "neutral" | "neuroid_primary" | "neuroid_secondary" | "zoltarina_primary" | "zoltarina_secondary" | "heyd_primary" | "heyd_secondary" | "heybee_primary" | "danger" | "warning" | "success" | "informative" | undefined;
292
+ color?: "neutral" | "neuroid_primary" | "neuroid_secondary" | "zoltarina_primary" | "zoltarina_secondary" | "heyd_primary" | "heyd_secondary" | "heybee_primary" | "blackAlpha" | "whiteAlpha" | "danger" | "warning" | "success" | "informative" | undefined;
293
293
  size?: "sm" | "md" | "lg" | "xs" | undefined;
294
294
  radius?: "md" | "lg" | "full" | undefined;
295
295
  fullWidth?: boolean | undefined;
@@ -0,0 +1,7 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as Fab } from './index';
3
+ declare const meta: Meta<typeof Fab>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const DefaultIconButton: Story;
7
+ export declare const LoadingIconButton: Story;
@@ -0,0 +1,55 @@
1
+ import { RecipeVariantProps } from '../../../styled-system/css';
2
+ export type FabVariantProps = RecipeVariantProps<typeof fabRecipe>;
3
+ export declare const fabRecipe: import('../../../styled-system/types').RecipeRuntimeFn<{
4
+ color: {
5
+ neuroid_primary: {
6
+ background: "background.neuroidPrimary.default";
7
+ color: "content.neutral.bold";
8
+ _hover: {
9
+ background: "background.neuroidPrimary.selected";
10
+ };
11
+ };
12
+ zoltarina_primary: {
13
+ background: "background.zoltarinaPrimary.default";
14
+ color: "content.static.black.bold";
15
+ _hover: {
16
+ background: "background.zoltarinaPrimary.selected";
17
+ };
18
+ };
19
+ heyd_primary: {
20
+ background: "background.heydPrimary.default";
21
+ color: "content.static.black.bold";
22
+ _hover: {
23
+ background: "background.heydPrimary.selected";
24
+ };
25
+ };
26
+ heybee_primary: {
27
+ background: "background.heybeePrimary.default";
28
+ color: "content.static.black.bold";
29
+ _hover: {
30
+ background: "background.heybeePrimary.selected";
31
+ };
32
+ };
33
+ blackAlpha: {
34
+ background: "background.static.blackAlpha.default";
35
+ color: "content.neutral.default";
36
+ _hover: {
37
+ background: "background.static.blackAlpha.selected";
38
+ };
39
+ };
40
+ whiteAlpha: {
41
+ background: "background.static.whiteAlpha.default";
42
+ color: "content.neutral.default";
43
+ _hover: {
44
+ background: "background.static.whiteAlpha.selected";
45
+ };
46
+ };
47
+ neutral: {
48
+ background: "background.neutral.default";
49
+ color: "content.neutral.bold";
50
+ _hover: {
51
+ background: "background.neutral.selected";
52
+ };
53
+ };
54
+ };
55
+ }>;
@@ -0,0 +1,11 @@
1
+ import { HTMLStyledProps } from '../../../styled-system/jsx';
2
+ import { FabVariantProps } from './fab.recipe';
3
+ export type FabProps = HTMLStyledProps<'button'> & FabVariantProps & {
4
+ loading?: boolean;
5
+ };
6
+ declare const _default: import('react').MemoExoticComponent<(<C extends "symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any> = "button">(props: {
7
+ as?: C | undefined;
8
+ } & Omit<Omit<FabProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "ref"> & Omit<import('react').PropsWithoutRef<import('react').ComponentProps<C>>, "as" | "key" | keyof import('react').ButtonHTMLAttributes<HTMLButtonElement> | "loading" | "css"> & {
9
+ ref?: import('react').Ref<import('react').ElementRef<C>> | undefined;
10
+ }) => React.ReactElement)>;
11
+ export default _default;
@@ -46,6 +46,8 @@ export declare const iconButtonRecipe: import('../../../styled-system/types').Re
46
46
  zoltarina_primary: {};
47
47
  heyd_primary: {};
48
48
  heybee_primary: {};
49
+ blackAlpha: {};
50
+ whiteAlpha: {};
49
51
  neutral: {};
50
52
  };
51
53
  size: {
@@ -15,4 +15,5 @@ export { default as Select, type SelectProps, createListCollection } from './Sel
15
15
  export { default as RadioGroup, type RadioGroupProps } from './RadioGroup';
16
16
  export { default as Checkbox, type CheckboxProps } from './Checkbox';
17
17
  export { default as Switch, type SwitchProps } from './Switch';
18
+ export { default as Fab, type FabProps } from './Fab';
18
19
  export * from './Layout';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nation-a/ui",
3
- "version": "0.14.0",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/index.cjs",
@@ -20,8 +20,8 @@
20
20
  "react-dom": "^18.3.1",
21
21
  "react-hot-toast": "^2.5.2",
22
22
  "react-lottie": "^1.2.10",
23
- "@nation-a/tokens": "0.2.3",
24
- "@nation-a/icons": "0.2.0"
23
+ "@nation-a/icons": "0.2.0",
24
+ "@nation-a/tokens": "0.2.3"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@chromatic-com/storybook": "^3",