@uxf/ui 1.0.0-beta.10 → 1.0.0-beta.13

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 (132) hide show
  1. package/avatar/avatar.d.ts +14 -0
  2. package/avatar/avatar.jsx +10 -0
  3. package/avatar/avatar.stories.d.ts +8 -0
  4. package/avatar/avatar.stories.jsx +29 -0
  5. package/avatar/theme.d.ts +5 -0
  6. package/avatar/theme.js +2 -0
  7. package/button/button.css +75 -0
  8. package/button/button.d.ts +1 -0
  9. package/button/button.jsx +17 -0
  10. package/button/button.stories.jsx +59 -0
  11. package/{stories → button}/button.stories.tsx +1 -1
  12. package/button/button.tsx +36 -0
  13. package/button/index.js +0 -1
  14. package/button/index.ts +2 -0
  15. package/button/theme.d.ts +4 -1
  16. package/button/theme.js +0 -1
  17. package/button/theme.ts +20 -0
  18. package/image-gallery/components/close-button.d.ts +6 -0
  19. package/image-gallery/components/close-button.jsx +13 -0
  20. package/image-gallery/components/close-button.tsx +19 -0
  21. package/image-gallery/components/dot.d.ts +6 -0
  22. package/image-gallery/components/dot.jsx +12 -0
  23. package/image-gallery/components/dot.tsx +17 -0
  24. package/image-gallery/components/gallery.d.ts +11 -0
  25. package/image-gallery/components/gallery.jsx +74 -0
  26. package/image-gallery/components/gallery.tsx +67 -0
  27. package/image-gallery/components/icon-chevron-left.d.ts +3 -0
  28. package/image-gallery/components/icon-chevron-left.jsx +12 -0
  29. package/image-gallery/components/icon-chevron-left.tsx +18 -0
  30. package/image-gallery/components/icon-chevron-right.d.ts +3 -0
  31. package/image-gallery/components/icon-chevron-right.jsx +12 -0
  32. package/image-gallery/components/icon-chevron-right.tsx +18 -0
  33. package/image-gallery/components/icon-close.d.ts +3 -0
  34. package/image-gallery/components/icon-close.jsx +12 -0
  35. package/image-gallery/components/icon-close.tsx +22 -0
  36. package/image-gallery/components/next-button.d.ts +6 -0
  37. package/image-gallery/components/next-button.jsx +13 -0
  38. package/image-gallery/components/next-button.tsx +19 -0
  39. package/image-gallery/components/previous-button.d.ts +6 -0
  40. package/image-gallery/components/previous-button.jsx +13 -0
  41. package/image-gallery/components/previous-button.tsx +19 -0
  42. package/image-gallery/context.d.ts +10 -0
  43. package/image-gallery/context.jsx +12 -0
  44. package/image-gallery/context.tsx +17 -0
  45. package/image-gallery/image-gallery.d.ts +6 -0
  46. package/image-gallery/image-gallery.jsx +58 -0
  47. package/image-gallery/image-gallery.stories.d.ts +13 -0
  48. package/image-gallery/image-gallery.stories.jsx +29 -0
  49. package/image-gallery/image-gallery.stories.tsx +33 -0
  50. package/image-gallery/image-gallery.tsx +59 -0
  51. package/image-gallery/image.d.ts +4 -0
  52. package/image-gallery/image.jsx +12 -0
  53. package/image-gallery/image.tsx +19 -0
  54. package/image-gallery/index.d.ts +3 -0
  55. package/image-gallery/index.js +25 -0
  56. package/image-gallery/index.ts +3 -0
  57. package/image-gallery/types.d.ts +6 -0
  58. package/image-gallery/types.js +2 -0
  59. package/image-gallery/types.ts +6 -0
  60. package/image-gallery/use-image.d.ts +2 -0
  61. package/image-gallery/use-image.js +16 -0
  62. package/image-gallery/use-image.ts +17 -0
  63. package/input/index.d.ts +12 -0
  64. package/input/index.js +19 -0
  65. package/input/index.ts +14 -0
  66. package/input/input-basic.css +18 -0
  67. package/input/input-element.d.ts +8 -0
  68. package/input/input-element.jsx +11 -0
  69. package/input/input-element.tsx +30 -0
  70. package/input/input-left-addon.d.ts +6 -0
  71. package/input/input-left-addon.jsx +10 -0
  72. package/input/input-left-addon.tsx +12 -0
  73. package/input/input-left-element.d.ts +6 -0
  74. package/input/input-left-element.jsx +10 -0
  75. package/input/input-left-element.tsx +11 -0
  76. package/input/input-right-addon.d.ts +6 -0
  77. package/input/input-right-addon.jsx +10 -0
  78. package/input/input-right-addon.tsx +11 -0
  79. package/input/input-right-element.d.ts +6 -0
  80. package/input/input-right-element.jsx +10 -0
  81. package/input/input-right-element.tsx +11 -0
  82. package/input/input.css +75 -0
  83. package/input/input.d.ts +9 -0
  84. package/input/input.jsx +65 -0
  85. package/input/input.stories.d.ts +14 -0
  86. package/input/input.stories.jsx +78 -0
  87. package/input/input.stories.tsx +79 -0
  88. package/input/input.tsx +70 -0
  89. package/input/theme.d.ts +6 -0
  90. package/input/theme.js +2 -0
  91. package/input/theme.ts +7 -0
  92. package/package.json +8 -34
  93. package/text-input/index.d.ts +1 -0
  94. package/{storybook → text-input}/index.js +1 -2
  95. package/text-input/index.ts +1 -0
  96. package/text-input/text-input.css +29 -0
  97. package/text-input/text-input.d.ts +22 -0
  98. package/text-input/text-input.jsx +32 -0
  99. package/text-input/text-input.stories.d.ts +9 -0
  100. package/text-input/text-input.stories.jsx +55 -0
  101. package/text-input/text-input.stories.tsx +72 -0
  102. package/text-input/text-input.tsx +99 -0
  103. package/tsconfig.json +7 -0
  104. package/tsconfig.tsbuildinfo +1 -0
  105. package/types/form-control-props.d.ts +24 -0
  106. package/types/form-control-props.js +2 -0
  107. package/types/form-control-props.ts +35 -0
  108. package/types/index.d.ts +1 -0
  109. package/types/index.js +17 -0
  110. package/types/index.ts +1 -0
  111. package/utils/action.d.ts +2 -0
  112. package/utils/action.js +11 -0
  113. package/utils/action.ts +14 -0
  114. package/utils/component-structure-analyzer.css +28 -0
  115. package/utils/component-structure-analyzer.d.ts +6 -0
  116. package/utils/component-structure-analyzer.jsx +10 -0
  117. package/utils/component-structure-analyzer.tsx +12 -0
  118. package/utils/cx.d.ts +3 -0
  119. package/utils/cx.js +54 -0
  120. package/utils/cx.ts +56 -0
  121. package/utils/forwardRef.d.ts +12 -0
  122. package/utils/forwardRef.js +10 -0
  123. package/utils/forwardRef.ts +30 -0
  124. package/{storybook → utils}/storybook-config.d.ts +3 -6
  125. package/{storybook/storybook-config.js → utils/storybook-config.jsx} +5 -5
  126. package/utils/storybook-config.tsx +42 -0
  127. package/button/button.js +0 -17
  128. package/button/button.stories.js +0 -33
  129. package/storybook/index.d.ts +0 -1
  130. package/tailwindui/button.css +0 -51
  131. package/types.d.ts +0 -3
  132. package/types.js +0 -3
package/utils/cx.ts ADDED
@@ -0,0 +1,56 @@
1
+ export type ClassArray = ClassValue[];
2
+ export type ClassValue = ClassArray | Record<string, any> | string | number | null | boolean | undefined;
3
+
4
+ function toVal(mix: ClassValue) {
5
+ let k;
6
+ let y;
7
+ let str = "";
8
+
9
+ if (typeof mix === "string" || typeof mix === "number") {
10
+ str += mix;
11
+ } else if (typeof mix === "object") {
12
+ if (Array.isArray(mix)) {
13
+ for (k = 0; k < mix.length; k++) {
14
+ if (mix[k]) {
15
+ if ((y = toVal(mix[k]))) {
16
+ if (str) {
17
+ str += " ";
18
+ }
19
+ str += y;
20
+ }
21
+ }
22
+ }
23
+ } else {
24
+ for (k in mix) {
25
+ if (mix?.[k]) {
26
+ if (str) {
27
+ str += " ";
28
+ }
29
+ str += k;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ return str;
36
+ }
37
+
38
+ export function cx(...classes: ClassValue[]): string {
39
+ let i = 0;
40
+ let tmp;
41
+ let x;
42
+ let str = "";
43
+
44
+ while (i < classes.length) {
45
+ if ((tmp = classes[i++])) {
46
+ if ((x = toVal(tmp))) {
47
+ if (str) {
48
+ str += " ";
49
+ }
50
+ str += x;
51
+ }
52
+ }
53
+ }
54
+
55
+ return str;
56
+ }
@@ -0,0 +1,12 @@
1
+ import { ForwardedRef, ForwardRefExoticComponent, PropsWithoutRef, ReactElement, RefAttributes } from 'react';
2
+ export declare type ForwardRefRenderFunction<T, P> = {
3
+ (props: P, ref: ForwardedRef<T>): ReactElement | null;
4
+ displayName?: string;
5
+ /** defaultProps are not supported on render functions */
6
+ defaultProps?: never;
7
+ /** propTypes are not supported on render functions */
8
+ propTypes?: never;
9
+ /** used by Chakra */
10
+ id?: string;
11
+ };
12
+ export declare const forwardRef: <T, P>(name: string, render: ForwardRefRenderFunction<T, P>) => ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.forwardRef = void 0;
4
+ const react_1 = require("react");
5
+ const forwardRef = (name, render) => {
6
+ const Component = (0, react_1.forwardRef)(render);
7
+ Component.displayName = name;
8
+ return Component;
9
+ };
10
+ exports.forwardRef = forwardRef;
@@ -0,0 +1,30 @@
1
+ import {
2
+ ForwardedRef,
3
+ forwardRef as reactForwardRef,
4
+ ForwardRefExoticComponent,
5
+ PropsWithoutRef,
6
+ ReactElement,
7
+ RefAttributes,
8
+ } from 'react';
9
+
10
+ export type ForwardRefRenderFunction<T, P> = {
11
+ (props: P, ref: ForwardedRef<T>): ReactElement | null;
12
+ displayName?: string;
13
+ // explicit rejected with `never` required due to
14
+ // https://github.com/microsoft/TypeScript/issues/36826
15
+ /** defaultProps are not supported on render functions */
16
+ defaultProps?: never;
17
+ /** propTypes are not supported on render functions */
18
+ propTypes?: never;
19
+ /** used by Chakra */
20
+ id?: string;
21
+ };
22
+
23
+ export const forwardRef = <T, P>(
24
+ name: string,
25
+ render: ForwardRefRenderFunction<T, P>
26
+ ): ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> => {
27
+ const Component = reactForwardRef(render);
28
+ Component.displayName = name;
29
+ return Component;
30
+ };
@@ -1,5 +1,5 @@
1
- import { ButtonColors, ButtonSizes, ButtonVariants } from "@uxf/ui/button";
2
1
  import { ReactNode } from "react";
2
+ import { ButtonColors, ButtonSizes, ButtonVariants } from "../button";
3
3
  export declare const defaultConfig: StorybookConfig;
4
4
  export interface StorybookConfig {
5
5
  Button: {
@@ -7,12 +7,9 @@ export interface StorybookConfig {
7
7
  variants: Array<keyof ButtonVariants>;
8
8
  colors: Array<keyof ButtonColors>;
9
9
  };
10
+ Input: {};
10
11
  }
11
- export declare function useStorybookConfig(key: keyof StorybookConfig): {
12
- sizes: (keyof ButtonSizes)[];
13
- variants: (keyof ButtonVariants)[];
14
- colors: (keyof ButtonColors)[];
15
- };
12
+ export declare function useStorybookConfig<T extends keyof StorybookConfig>(key: T): StorybookConfig[T];
16
13
  interface StorybookContextProviderProps {
17
14
  config: StorybookConfig;
18
15
  children: ReactNode;
@@ -24,23 +24,23 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.StorybookContextProvider = exports.useStorybookConfig = exports.defaultConfig = void 0;
27
- var react_1 = __importStar(require("react"));
27
+ const react_1 = __importStar(require("react"));
28
28
  exports.defaultConfig = {
29
29
  Button: {
30
30
  sizes: ["xs", "sm", "default", "lg", "xl"],
31
- colors: ["default", "secondary"],
31
+ colors: ["default", "white", "success", "warning", "error"],
32
32
  variants: ["outlined", "default"],
33
33
  },
34
+ Input: {},
34
35
  };
35
36
  // Context
36
- var Context = react_1.default.createContext(exports.defaultConfig);
37
+ const Context = react_1.default.createContext(exports.defaultConfig);
37
38
  // consumer
38
39
  function useStorybookConfig(key) {
39
40
  return (0, react_1.useContext)(Context)[key];
40
41
  }
41
42
  exports.useStorybookConfig = useStorybookConfig;
42
43
  function StorybookContextProvider(props) {
43
- return (react_1.default.createElement(Context.Provider, { value: props.config }, props.children));
44
+ return (<Context.Provider value={props.config}>{props.children}</Context.Provider>);
44
45
  }
45
46
  exports.StorybookContextProvider = StorybookContextProvider;
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Rvcnlib29rLWNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zdG9yeWJvb2svc3Rvcnlib29rLWNvbmZpZy50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFDQSw2Q0FBcUQ7QUFFeEMsUUFBQSxhQUFhLEdBQW9CO0lBQzVDLE1BQU0sRUFBRTtRQUNOLEtBQUssRUFBRSxDQUFDLElBQUksRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLElBQUksRUFBRSxJQUFJLENBQUM7UUFDMUMsTUFBTSxFQUFFLENBQUMsU0FBUyxFQUFFLFdBQVcsQ0FBQztRQUNoQyxRQUFRLEVBQUUsQ0FBQyxVQUFVLEVBQUUsU0FBUyxDQUFDO0tBQ2xDO0NBQ0YsQ0FBQztBQVVGLFVBQVU7QUFDVixJQUFNLE9BQU8sR0FBRyxlQUFLLENBQUMsYUFBYSxDQUFDLHFCQUFhLENBQUMsQ0FBQztBQUVuRCxXQUFXO0FBQ1gsU0FBZ0Isa0JBQWtCLENBQUMsR0FBMEI7SUFDM0QsT0FBTyxJQUFBLGtCQUFVLEVBQUMsT0FBTyxDQUFDLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDbEMsQ0FBQztBQUZELGdEQUVDO0FBUUQsU0FBZ0Isd0JBQXdCLENBQUMsS0FBb0M7SUFDM0UsT0FBTyxDQUNMLDhCQUFDLE9BQU8sQ0FBQyxRQUFRLElBQUMsS0FBSyxFQUFFLEtBQUssQ0FBQyxNQUFNLElBQUcsS0FBSyxDQUFDLFFBQVEsQ0FBb0IsQ0FDM0UsQ0FBQztBQUNKLENBQUM7QUFKRCw0REFJQyJ9
@@ -0,0 +1,42 @@
1
+ import React, { ReactNode, useContext } from "react";
2
+ import { ButtonColors, ButtonSizes, ButtonVariants } from "../button";
3
+
4
+ export const defaultConfig: StorybookConfig = {
5
+ Button: {
6
+ sizes: ["xs", "sm", "default", "lg", "xl"],
7
+ colors: ["default", "white", "success", "warning", "error"],
8
+ variants: ["outlined", "default"],
9
+ },
10
+ Input: {},
11
+ };
12
+
13
+ export interface StorybookConfig {
14
+ Button: {
15
+ sizes: Array<keyof ButtonSizes>;
16
+ variants: Array<keyof ButtonVariants>;
17
+ colors: Array<keyof ButtonColors>;
18
+ };
19
+ Input: {};
20
+ }
21
+
22
+ // Context
23
+ const Context = React.createContext(defaultConfig);
24
+
25
+ // consumer
26
+ export function useStorybookConfig<T extends keyof StorybookConfig>(
27
+ key: T
28
+ ): StorybookConfig[T] {
29
+ return useContext(Context)[key];
30
+ }
31
+
32
+ // Provider
33
+ interface StorybookContextProviderProps {
34
+ config: StorybookConfig;
35
+ children: ReactNode;
36
+ }
37
+
38
+ export function StorybookContextProvider(props: StorybookContextProviderProps) {
39
+ return (
40
+ <Context.Provider value={props.config}>{props.children}</Context.Provider>
41
+ );
42
+ }
package/button/button.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var react_1 = __importDefault(require("react"));
7
- var cx_1 = require("@uxf/core/utils/cx");
8
- function Button(props) {
9
- var _a, _b, _c;
10
- var className = (0, cx_1.cx)("button", "button--color-".concat((_a = props.color) !== null && _a !== void 0 ? _a : "default"), "button--size-".concat((_b = props.size) !== null && _b !== void 0 ? _b : "default"), "button--variant-".concat((_c = props.variant) !== null && _c !== void 0 ? _c : "default"), props.disabled && "button--disabled", props.loading && "button--loading");
11
- return (react_1.default.createElement("button", { type: "button", className: className },
12
- props.startAdornment,
13
- props.children,
14
- props.endAdornment));
15
- }
16
- exports.default = Button;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2J1dHRvbi9idXR0b24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsZ0RBQXlDO0FBRXpDLHlDQUF3QztBQWF4QyxTQUFTLE1BQU0sQ0FBQyxLQUFrQjs7SUFDaEMsSUFBTSxTQUFTLEdBQUcsSUFBQSxPQUFFLEVBQ2xCLFFBQVEsRUFDUix3QkFBaUIsTUFBQSxLQUFLLENBQUMsS0FBSyxtQ0FBSSxTQUFTLENBQUUsRUFDM0MsdUJBQWdCLE1BQUEsS0FBSyxDQUFDLElBQUksbUNBQUksU0FBUyxDQUFFLEVBQ3pDLDBCQUFtQixNQUFBLEtBQUssQ0FBQyxPQUFPLG1DQUFJLFNBQVMsQ0FBRSxFQUMvQyxLQUFLLENBQUMsUUFBUSxJQUFJLGtCQUFrQixFQUNwQyxLQUFLLENBQUMsT0FBTyxJQUFJLGlCQUFpQixDQUNuQyxDQUFDO0lBRUYsT0FBTyxDQUNMLDBDQUFRLElBQUksRUFBQyxRQUFRLEVBQUMsU0FBUyxFQUFFLFNBQVM7UUFDdkMsS0FBSyxDQUFDLGNBQWM7UUFDcEIsS0FBSyxDQUFDLFFBQVE7UUFDZCxLQUFLLENBQUMsWUFBWSxDQUNaLENBQ1YsQ0FBQztBQUNKLENBQUM7QUFFRCxrQkFBZSxNQUFNLENBQUMifQ==
@@ -1,33 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Loading = exports.Disabled = exports.Default = void 0;
7
- var react_1 = __importDefault(require("react"));
8
- var button_1 = require("@uxf/ui/button");
9
- var storybook_1 = require("@uxf/ui/storybook");
10
- var react_2 = require("react");
11
- exports.default = {
12
- title: "UI/Button",
13
- component: button_1.Button,
14
- };
15
- function Default() {
16
- var config = (0, storybook_1.useStorybookConfig)("Button");
17
- return (react_1.default.createElement("div", { className: "space-y-2" }, config.variants.map(function (variant) { return (react_1.default.createElement(react_2.Fragment, { key: variant }, config.colors.map(function (color) { return (react_1.default.createElement(react_2.Fragment, { key: color }, config.sizes.map(function (size) { return (react_1.default.createElement("div", null,
18
- react_1.default.createElement(button_1.Button, { key: size, variant: variant, color: color, size: size }, "Button"))); }))); }))); })));
19
- }
20
- exports.Default = Default;
21
- function Disabled() {
22
- var config = (0, storybook_1.useStorybookConfig)("Button");
23
- return (react_1.default.createElement("div", { className: "space-y-2" }, config.variants.map(function (variant) { return (react_1.default.createElement(react_2.Fragment, { key: variant }, config.colors.map(function (color) { return (react_1.default.createElement(react_2.Fragment, { key: color }, config.sizes.map(function (size) { return (react_1.default.createElement("div", null,
24
- react_1.default.createElement(button_1.Button, { key: size, variant: variant, color: color, size: size, disabled: true }, "Button"))); }))); }))); })));
25
- }
26
- exports.Disabled = Disabled;
27
- function Loading() {
28
- var config = (0, storybook_1.useStorybookConfig)("Button");
29
- return (react_1.default.createElement("div", { className: "space-y-2" }, config.variants.map(function (variant) { return (react_1.default.createElement(react_2.Fragment, { key: variant }, config.colors.map(function (color) { return (react_1.default.createElement(react_2.Fragment, { key: color }, config.sizes.map(function (size) { return (react_1.default.createElement("div", null,
30
- react_1.default.createElement(button_1.Button, { key: size, variant: variant, color: color, size: size, loading: true }, "Button"))); }))); }))); })));
31
- }
32
- exports.Loading = Loading;
33
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnN0b3JpZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYnV0dG9uL2J1dHRvbi5zdG9yaWVzLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxnREFBMEI7QUFDMUIseUNBQXdDO0FBQ3hDLCtDQUF1RDtBQUN2RCwrQkFBaUM7QUFFakMsa0JBQWU7SUFDYixLQUFLLEVBQUUsV0FBVztJQUNsQixTQUFTLEVBQUUsZUFBTTtDQUNsQixDQUFDO0FBRUYsU0FBZ0IsT0FBTztJQUNyQixJQUFNLE1BQU0sR0FBRyxJQUFBLDhCQUFrQixFQUFDLFFBQVEsQ0FBQyxDQUFDO0lBRTVDLE9BQU8sQ0FDTCx1Q0FBSyxTQUFTLEVBQUMsV0FBVyxJQUN2QixNQUFNLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxVQUFDLE9BQU8sSUFBSyxPQUFBLENBQ2hDLDhCQUFDLGdCQUFRLElBQUMsR0F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0osQ0FBQztBQTVCRCwwQkE0QkMifQ==
@@ -1 +0,0 @@
1
- export * from "./storybook-config";
@@ -1,51 +0,0 @@
1
- .button {
2
- @apply inline-flex shadow-sm items-center shadow-sm font-medium rounded focus:outline-none focus:ring-2 focus:ring-offset-2;
3
-
4
- &.button--disabled {
5
- @apply pointer-events-none opacity-40;
6
- }
7
-
8
- &.button--size-xs {
9
- @apply px-2.5 py-1.5 text-xs;
10
- }
11
-
12
- &.button--size-sm {
13
- @apply px-3 py-2 text-sm leading-4;
14
- }
15
-
16
- &.button--size-default {
17
- @apply px-4 py-2 text-sm;
18
- }
19
-
20
- &.button--size-lg {
21
- @apply px-4 py-2 text-base;
22
- }
23
-
24
- &.button--size-xl {
25
- @apply px-6 py-3 border text-base;
26
- }
27
-
28
- &.button--variant-outlined {
29
- @apply border bg-white;
30
-
31
- &.button--color-default {
32
- @apply border-primary-300 text-primary-700 hover:bg-primary-50 focus:ring-primary-500;
33
- }
34
-
35
- &.button--color-secondary {
36
- @apply border-secondary-300 text-secondary-700 hover:bg-secondary-50 focus:ring-secondary-500;
37
- }
38
- }
39
-
40
- &.button--variant-default {
41
- @apply border-transparent text-white;
42
-
43
- &.button--color-default {
44
- @apply bg-primary-500 hover:bg-primary-600 focus:ring-primary-400;
45
- }
46
-
47
- &.button--color-secondary {
48
- @apply bg-secondary-500 hover:bg-secondary-600 focus:ring-secondary-400;
49
- }
50
- }
51
- }
package/types.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export declare type Classes<T extends string> = {
2
- [key in T]: string;
3
- };
package/types.js DELETED
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9