@infonomic/uikit 1.0.0 → 1.0.2
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 +37 -0
- package/dist/components/avatar/avatar.d.ts +3 -1
- package/dist/components/avatar/avatar.d.ts.map +1 -1
- package/dist/components/avatar/avatar.js +2 -2
- package/dist/components/notifications/alert.d.ts.map +1 -1
- package/dist/components/notifications/alert.js +36 -40
- package/dist/components/notifications/toast.d.ts +1 -1
- package/dist/components/notifications/toast.d.ts.map +1 -1
- package/dist/components/notifications/toast.js +2 -2
- package/dist/components/scroll-area/scroll-area_module.css +1 -1
- package/dist/icons/close-icon.d.ts.map +1 -1
- package/dist/icons/danger-icon.d.ts +1 -1
- package/dist/icons/danger-icon.d.ts.map +1 -1
- package/dist/icons/danger-icon.js +2 -5
- package/dist/icons/info-icon.d.ts +1 -1
- package/dist/icons/info-icon.d.ts.map +1 -1
- package/dist/icons/info-icon.js +2 -5
- package/dist/icons/primary-icon.d.ts +1 -1
- package/dist/icons/primary-icon.d.ts.map +1 -1
- package/dist/icons/primary-icon.js +1 -1
- package/dist/icons/success-icon.d.ts +1 -1
- package/dist/icons/success-icon.d.ts.map +1 -1
- package/dist/icons/success-icon.js +2 -5
- package/dist/icons/types/icon.d.ts +0 -1
- package/dist/icons/types/icon.d.ts.map +1 -1
- package/dist/icons/warning-icon.d.ts +1 -1
- package/dist/icons/warning-icon.d.ts.map +1 -1
- package/dist/icons/warning-icon.js +2 -5
- package/dist/styles/styles.css +2592 -1
- package/dist/styles/styles.css.map +1 -0
- package/dist/styles/typography.css +394 -1
- package/dist/styles/typography.css.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widgets/datepicker/datepicker.js +23 -9
- package/package.json +9 -3
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# UI Kit Prototype
|
|
2
|
+
|
|
3
|
+
A UI kit prototype that relies on CSS Modules for component styling, while playing nicely with front-end frameworks that use [Tailwind CSS](https://tailwindcss.com/).
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
We created this repo because while we appreciate Tailwind CSS for front-end development of PoC and smaller applications, we don't feel it belongs in a component library. Tailwind CSS as a ['programmatic' atomic CSS system](https://css-tricks.com/lets-define-exactly-atomic-css/#aa-programmatic) - is brilliant at what it does in preventing CSS rot and gradual CSS bloat - as well as making it clear how a layout or front-end component has been styled. It's also the ulitmate expression of what [Thierry Koblentz](https://www.smashingmagazine.com/author/thierry-koblentz/) was talking about in his 2103 article, [Challenging CSS Best Practices](https://www.smashingmagazine.com/2013/10/challenging-css-best-practices-atomic-approach/).
|
|
8
|
+
|
|
9
|
+
It just doesn't belong in UI kits and libraries.
|
|
10
|
+
|
|
11
|
+
## Design Goals
|
|
12
|
+
|
|
13
|
+
We built this with the following goals in mind:
|
|
14
|
+
|
|
15
|
+
1. We'd like a structure and style system that will work with any framework -[React](https://react.dev/), [Vue.js](https://vuejs.org/), [Solid](https://www.solidjs.com/), [Svelte](https://svelte.dev/) etc.
|
|
16
|
+
2. We'd like to be able to easily target various front-end meta frameworks, from [Astro](https://astro.build/), to [Next.js](https://nextjs.org/) to [React Router v7](https://reactrouter.com/) (formerly Remix) - and even plain old HTML/CSS.
|
|
17
|
+
3. We'd like a good developer experience (DX), allowing us to develop our components in the 'kit' via tests and Storybook, as well as in a monorepo within the front-end target framework itself (Next.js, Vue etc.).
|
|
18
|
+
4. We'd like our components' styles to be easily overridable - whether via 'style' attributes, Tailwind, regular CSS classnames and stylesheets, or any other style system being used by the front-end. We'd especially like to be able to override a component's styles without having to use CSS !important.
|
|
19
|
+
|
|
20
|
+
## Getting Started
|
|
21
|
+
|
|
22
|
+
Install packages
|
|
23
|
+
|
|
24
|
+
`npm install @infonomic/uikit`
|
|
25
|
+
|
|
26
|
+
or...
|
|
27
|
+
|
|
28
|
+
`pnpm add @infonomic/uikit`
|
|
29
|
+
|
|
30
|
+
And then in your application...
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
import { Button, Card, Container, Section } from '@infonomic/uikit/react
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
At the moment docs are in the main repo and stories are available via Storybook.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAM9B,eAAO,MAAM,MAAM,GAAI,cAAc;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAG,KAAK,CAAC,GAAG,CAAC,OASrE,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Avatar } from "radix-ui";
|
|
4
4
|
import avatar_module from "./avatar.module.js";
|
|
5
5
|
const url = 'https://picsum.photos/150';
|
|
6
|
-
const avatar_Avatar = ()=>/*#__PURE__*/ jsxs(Avatar.Root, {
|
|
6
|
+
const avatar_Avatar = ({ initials })=>/*#__PURE__*/ jsxs(Avatar.Root, {
|
|
7
7
|
className: avatar_module["avatar-root"],
|
|
8
8
|
children: [
|
|
9
9
|
/*#__PURE__*/ jsx(Avatar.Image, {
|
|
@@ -16,7 +16,7 @@ const avatar_Avatar = ()=>/*#__PURE__*/ jsxs(Avatar.Root, {
|
|
|
16
16
|
delayMs: 600,
|
|
17
17
|
children: /*#__PURE__*/ jsx("span", {
|
|
18
18
|
className: avatar_module["avatar-text"],
|
|
19
|
-
children:
|
|
19
|
+
children: initials
|
|
20
20
|
})
|
|
21
21
|
})
|
|
22
22
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/alert.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAS9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAI/C,MAAM,WAAW,UAAU;IACzB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAC1B;AAWD,eAAO,MAAM,KAAK,GAAkB,mEASjC,UAAU,GAAG;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAA;CACtC,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAqEvB,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import { useEffect, useState } from "react";
|
|
4
3
|
import classnames from "classnames";
|
|
5
|
-
import {
|
|
4
|
+
import { useEffect, useState } from "react";
|
|
6
5
|
import { CloseIcon } from "../../icons/close-icon.js";
|
|
7
6
|
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
8
7
|
import { InfoIcon } from "../../icons/info-icon.js";
|
|
9
8
|
import { SuccessIcon } from "../../icons/success-icon.js";
|
|
10
9
|
import { WarningIcon } from "../../icons/warning-icon.js";
|
|
10
|
+
import { Button } from "../button/button.js";
|
|
11
11
|
import alert_module from "./alert.module.js";
|
|
12
12
|
const alertIcons = {
|
|
13
13
|
primary: WarningIcon,
|
|
@@ -35,48 +35,44 @@ const alert_Alert = function({ ref, intent = 'success', icon = true, close = tru
|
|
|
35
35
|
[alert_module.fade]: fade
|
|
36
36
|
}),
|
|
37
37
|
...rest,
|
|
38
|
-
children: null != title ? /*#__PURE__*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
icon
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/*#__PURE__*/ jsx("
|
|
50
|
-
|
|
51
|
-
children: /*#__PURE__*/ jsx("span", {
|
|
52
|
-
children: title
|
|
53
|
-
})
|
|
54
|
-
}),
|
|
55
|
-
true === close && /*#__PURE__*/ jsx(Button, {
|
|
56
|
-
intent: intent,
|
|
57
|
-
variant: "filled",
|
|
58
|
-
"aria-label": "Close",
|
|
59
|
-
className: classnames(alert_module.close),
|
|
60
|
-
type: "button",
|
|
61
|
-
onClick: handleOnClose,
|
|
62
|
-
...rest,
|
|
63
|
-
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
64
|
-
height: "12px",
|
|
65
|
-
width: "12px"
|
|
66
|
-
})
|
|
38
|
+
children: null != title ? /*#__PURE__*/ jsxs("div", {
|
|
39
|
+
className: alert_module["alert-with-title"],
|
|
40
|
+
children: [
|
|
41
|
+
/*#__PURE__*/ jsxs("div", {
|
|
42
|
+
className: classnames(alert_module.header),
|
|
43
|
+
children: [
|
|
44
|
+
icon && /*#__PURE__*/ jsx(Icon, {
|
|
45
|
+
className: alert_module.icon
|
|
46
|
+
}),
|
|
47
|
+
/*#__PURE__*/ jsx("div", {
|
|
48
|
+
className: classnames(alert_module.title),
|
|
49
|
+
children: /*#__PURE__*/ jsx("span", {
|
|
50
|
+
children: title
|
|
67
51
|
})
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
52
|
+
}),
|
|
53
|
+
true === close && /*#__PURE__*/ jsx(Button, {
|
|
54
|
+
intent: intent,
|
|
55
|
+
variant: "filled",
|
|
56
|
+
"aria-label": "Close",
|
|
57
|
+
className: classnames(alert_module.close),
|
|
58
|
+
type: "button",
|
|
59
|
+
onClick: handleOnClose,
|
|
60
|
+
...rest,
|
|
61
|
+
children: /*#__PURE__*/ jsx(CloseIcon, {
|
|
62
|
+
height: "12px",
|
|
63
|
+
width: "12px"
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
}),
|
|
68
|
+
/*#__PURE__*/ jsx("div", {
|
|
69
|
+
className: classnames(alert_module.content),
|
|
70
|
+
children: children
|
|
71
|
+
})
|
|
72
|
+
]
|
|
76
73
|
}) : /*#__PURE__*/ jsxs(Fragment, {
|
|
77
74
|
children: [
|
|
78
75
|
icon && /*#__PURE__*/ jsx(Icon, {
|
|
79
|
-
useSprite: true,
|
|
80
76
|
className: alert_module.icon
|
|
81
77
|
}),
|
|
82
78
|
/*#__PURE__*/ jsx("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { Toast as ToastPrimitive } from 'radix-ui';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { IconType, Intent, OnOpenChange, Position } from './@types/toast.js';
|
|
4
4
|
export interface ToastProps extends React.InputHTMLAttributes<HTMLLIElement> {
|
|
5
5
|
intent?: Intent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/toast.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/notifications/toast.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,KAAK,MAAM,OAAO,CAAA;AAOzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAUjF,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,aAAa,CAAC;IAC1E,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,YAAY,CAAA;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,6CAA0B,CAAA;AACpD,eAAO,MAAM,aAAa,4GAA0B,CAAA;AAIpD,eAAO,MAAM,KAAK,GAAkB,kGAYjC,UAAU,GAAG;IACd,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC,CAAA;CACrC,sBAqEA,CAAA"}
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useFocusTrap, useMergedRef } from "@mantine/hooks";
|
|
4
4
|
import classnames from "classnames";
|
|
5
|
-
import react from "react";
|
|
6
5
|
import { Toast as external_radix_ui_Toast } from "radix-ui";
|
|
6
|
+
import react from "react";
|
|
7
|
+
import { CloseIcon } from "../../icons/close-icon.js";
|
|
7
8
|
import { DangerIcon } from "../../icons/danger-icon.js";
|
|
8
9
|
import { InfoIcon } from "../../icons/info-icon.js";
|
|
9
10
|
import { SuccessIcon } from "../../icons/success-icon.js";
|
|
10
11
|
import { WarningIcon } from "../../icons/warning-icon.js";
|
|
11
12
|
import { Button } from "../button/button.js";
|
|
12
13
|
import toast_module from "./toast.module.js";
|
|
13
|
-
import { CloseIcon } from "../../icons/close-icon.js";
|
|
14
14
|
const toastIcons = {
|
|
15
15
|
success: SuccessIcon,
|
|
16
16
|
info: InfoIcon,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"close-icon.d.ts","sourceRoot":"","sources":["../../src/icons/close-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"close-icon.d.ts","sourceRoot":"","sources":["../../src/icons/close-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,SAAS;2CAA0C,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAoB5F,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { IconProps } from './types/icon.js';
|
|
3
|
-
export declare const DangerIcon: ({ className, svgClassName,
|
|
3
|
+
export declare const DangerIcon: ({ className, svgClassName, ...rest }: IconProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=danger-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"danger-icon.d.ts","sourceRoot":"","sources":["../../src/icons/danger-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"danger-icon.d.ts","sourceRoot":"","sources":["../../src/icons/danger-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,UAAU,GAAI,sCAAsC,SAAS,KAAG,KAAK,CAAC,GAAG,CAAC,OAUtF,CAAA"}
|
|
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { IconElement } from "./icon-element.js";
|
|
4
4
|
import icons_module from "./icons.module.js";
|
|
5
|
-
const
|
|
6
|
-
const DangerIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
5
|
+
const DangerIcon = ({ className, svgClassName, ...rest })=>{
|
|
7
6
|
const applied = classnames(icons_module["fill-danger"], svgClassName);
|
|
8
7
|
return /*#__PURE__*/ jsx(IconElement, {
|
|
9
8
|
className: classnames('danger-icon', className),
|
|
@@ -13,9 +12,7 @@ const DangerIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
|
13
12
|
focusable: "false",
|
|
14
13
|
"aria-hidden": "true",
|
|
15
14
|
viewBox: "0 0 24 24",
|
|
16
|
-
children:
|
|
17
|
-
href: `/sprite.svg#${spriteID}`
|
|
18
|
-
}) : /*#__PURE__*/ jsx("path", {
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
16
|
d: "M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"
|
|
20
17
|
})
|
|
21
18
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { IconProps } from './types/icon.js';
|
|
3
|
-
export declare const InfoIcon: ({ className, svgClassName,
|
|
3
|
+
export declare const InfoIcon: ({ className, svgClassName, ...rest }: IconProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=info-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-icon.d.ts","sourceRoot":"","sources":["../../src/icons/info-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"info-icon.d.ts","sourceRoot":"","sources":["../../src/icons/info-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,QAAQ,GAAI,sCAAsC,SAAS,KAAG,KAAK,CAAC,GAAG,CAAC,OAUpF,CAAA"}
|
package/dist/icons/info-icon.js
CHANGED
|
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { IconElement } from "./icon-element.js";
|
|
4
4
|
import icons_module from "./icons.module.js";
|
|
5
|
-
const
|
|
6
|
-
const InfoIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
5
|
+
const InfoIcon = ({ className, svgClassName, ...rest })=>{
|
|
7
6
|
const applied = classnames(icons_module["fill-info"], svgClassName);
|
|
8
7
|
return /*#__PURE__*/ jsx(IconElement, {
|
|
9
8
|
className: classnames('info-icon', className),
|
|
@@ -13,9 +12,7 @@ const InfoIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
|
13
12
|
focusable: "false",
|
|
14
13
|
"aria-hidden": "true",
|
|
15
14
|
viewBox: "0 0 24 24",
|
|
16
|
-
children:
|
|
17
|
-
href: `/sprite.svg#${spriteID}`
|
|
18
|
-
}) : /*#__PURE__*/ jsx("path", {
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
16
|
d: "M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"
|
|
20
17
|
})
|
|
21
18
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { IconProps } from './types/icon.js';
|
|
3
|
-
export declare const PrimaryIcon: ({ className, svgClassName,
|
|
3
|
+
export declare const PrimaryIcon: ({ className, svgClassName, ...rest }: IconProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=primary-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primary-icon.d.ts","sourceRoot":"","sources":["../../src/icons/primary-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"primary-icon.d.ts","sourceRoot":"","sources":["../../src/icons/primary-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAMhD,eAAO,MAAM,WAAW,GAAI,sCAAsC,SAAS,KAAG,KAAK,CAAC,GAAG,CAAC,OAUvF,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { IconElement } from "./icon-element.js";
|
|
4
4
|
import icons_module from "./icons.module.js";
|
|
5
|
-
const PrimaryIcon = ({ className, svgClassName,
|
|
5
|
+
const PrimaryIcon = ({ className, svgClassName, ...rest })=>{
|
|
6
6
|
const applied = classnames(icons_module["fill-primary"], svgClassName);
|
|
7
7
|
return /*#__PURE__*/ jsx(IconElement, {
|
|
8
8
|
className: classnames('primary-icon', className),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { IconProps } from './types/icon.js';
|
|
3
|
-
export declare const SuccessIcon: ({ className, svgClassName,
|
|
3
|
+
export declare const SuccessIcon: ({ className, svgClassName, ...rest }: IconProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=success-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"success-icon.d.ts","sourceRoot":"","sources":["../../src/icons/success-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"success-icon.d.ts","sourceRoot":"","sources":["../../src/icons/success-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,WAAW,GAAI,sCAAsC,SAAS,KAAG,KAAK,CAAC,GAAG,CAAC,OAUvF,CAAA"}
|
|
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { IconElement } from "./icon-element.js";
|
|
4
4
|
import icons_module from "./icons.module.js";
|
|
5
|
-
const
|
|
6
|
-
const SuccessIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
5
|
+
const SuccessIcon = ({ className, svgClassName, ...rest })=>{
|
|
7
6
|
const applied = classnames(icons_module["fill-success"], svgClassName);
|
|
8
7
|
return /*#__PURE__*/ jsx(IconElement, {
|
|
9
8
|
className: classnames('success-icon', className),
|
|
@@ -13,9 +12,7 @@ const SuccessIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
|
13
12
|
focusable: "false",
|
|
14
13
|
"aria-hidden": "true",
|
|
15
14
|
viewBox: "0 0 24 24",
|
|
16
|
-
children:
|
|
17
|
-
href: `/sprite.svg#${spriteID}`
|
|
18
|
-
}) : /*#__PURE__*/ jsx("path", {
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
16
|
d: "M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
|
|
20
17
|
})
|
|
21
18
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/icons/types/icon.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/icons/types/icon.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { IconProps } from './types/icon.js';
|
|
3
|
-
export declare const WarningIcon: ({ className, svgClassName,
|
|
3
|
+
export declare const WarningIcon: ({ className, svgClassName, ...rest }: IconProps) => React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=warning-icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"warning-icon.d.ts","sourceRoot":"","sources":["../../src/icons/warning-icon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"warning-icon.d.ts","sourceRoot":"","sources":["../../src/icons/warning-icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAEhD,eAAO,MAAM,WAAW,GAAI,sCAAsC,SAAS,KAAG,KAAK,CAAC,GAAG,CAAC,OAUvF,CAAA"}
|
|
@@ -2,8 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classnames from "classnames";
|
|
3
3
|
import { IconElement } from "./icon-element.js";
|
|
4
4
|
import icons_module from "./icons.module.js";
|
|
5
|
-
const
|
|
6
|
-
const WarningIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
5
|
+
const WarningIcon = ({ className, svgClassName, ...rest })=>{
|
|
7
6
|
const applied = classnames(icons_module["fill-warning"], svgClassName);
|
|
8
7
|
return /*#__PURE__*/ jsx(IconElement, {
|
|
9
8
|
className: classnames('warning-icon', className),
|
|
@@ -13,9 +12,7 @@ const WarningIcon = ({ className, svgClassName, useSprite, ...rest })=>{
|
|
|
13
12
|
focusable: "false",
|
|
14
13
|
"aria-hidden": "true",
|
|
15
14
|
viewBox: "0 0 24 24",
|
|
16
|
-
children:
|
|
17
|
-
href: `/sprite.svg#${spriteID}`
|
|
18
|
-
}) : /*#__PURE__*/ jsx("path", {
|
|
15
|
+
children: /*#__PURE__*/ jsx("path", {
|
|
19
16
|
d: "M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"
|
|
20
17
|
})
|
|
21
18
|
})
|