@openfin/ui-library 0.1.40-alpha.1657110576 → 0.1.40
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 +7 -0
- package/dist/assets/fonts/index.d.ts +6 -0
- package/dist/assets/fonts/index.js +11 -0
- package/dist/components/controls/Button/button.js +83 -0
- package/dist/components/controls/Button/button.variants.js +124 -0
- package/dist/components/controls/Button/index.js +14 -0
- package/dist/components/controls/Toggle/index.js +13 -0
- package/dist/components/controls/Toggle/toggle.js +98 -0
- package/dist/components/elements/Badge/badge.js +41 -0
- package/dist/components/elements/Badge/index.js +13 -0
- package/dist/components/elements/Icon/icon.js +56 -0
- package/dist/components/elements/Icon/icon.variants.js +60 -0
- package/dist/components/elements/Icon/index.js +13 -0
- package/dist/{types/components → components}/elements/Icon/openfin/BellIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/BellIcon.js +24 -0
- package/dist/{types/components → components}/elements/Icon/openfin/BrokenLinkIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/BrokenLinkIcon.js +21 -0
- package/dist/{types/components → components}/elements/Icon/openfin/FilterIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/FilterIcon.js +20 -0
- package/dist/{types/components → components}/elements/Icon/openfin/FloppyDiskIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/FloppyDiskIcon.js +23 -0
- package/dist/{types/components → components}/elements/Icon/openfin/LightBulbFilledIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/LightBulbFilledIcon.js +21 -0
- package/dist/{types/components → components}/elements/Icon/openfin/LightBulbOutlinedIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/LightBulbOutlinedIcon.js +20 -0
- package/dist/{types/components → components}/elements/Icon/openfin/LockedClosedFilledIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/LockedClosedFilledIcon.js +23 -0
- package/dist/{types/components → components}/elements/Icon/openfin/MinimizeIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/MinimizeIcon.js +23 -0
- package/dist/{types/components → components}/elements/Icon/openfin/OpenFinIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/OpenFinIcon.js +23 -0
- package/dist/{types/components → components}/elements/Icon/openfin/WorkspaceIcon.d.ts +1 -0
- package/dist/components/elements/Icon/openfin/WorkspaceIcon.js +26 -0
- package/dist/components/elements/Icon/openfin/index.js +22 -0
- package/dist/components/elements/Loader/index.js +13 -0
- package/dist/components/elements/Loader/loader.js +25 -0
- package/dist/components/input/BaseInput/baseInput.js +94 -0
- package/dist/components/input/BaseInput/index.js +13 -0
- package/dist/components/input/Checkbox/checkbox.js +96 -0
- package/dist/components/input/Checkbox/index.js +13 -0
- package/dist/components/input/NumberInput/index.js +13 -0
- package/dist/components/input/NumberInput/numberInput.js +108 -0
- package/dist/components/input/RawInput/index.js +13 -0
- package/dist/components/input/RawInput/rawInput.js +12 -0
- package/dist/components/input/TextInput/index.js +13 -0
- package/dist/components/input/TextInput/textInput.js +10 -0
- package/dist/components/layout/Box/box.js +50 -0
- package/dist/components/layout/Box/index.js +13 -0
- package/dist/components/layout/Box/types.js +2 -0
- package/dist/components/layout/DefinitionList/definitionList.js +49 -0
- package/dist/components/layout/DefinitionList/index.js +13 -0
- package/dist/components/system/GlobalStyles/globalStyles.js +53 -0
- package/dist/components/system/GlobalStyles/index.js +13 -0
- package/dist/components/system/HOC/index.js +2 -0
- package/dist/components/system/ThemeProvider/index.js +21 -0
- package/dist/{types/components → components}/system/ThemeProvider/lib/colors.d.ts +2 -2
- package/dist/components/system/ThemeProvider/lib/colors.js +21 -0
- package/dist/components/system/ThemeProvider/lib/config.js +6 -0
- package/dist/{types/components → components}/system/ThemeProvider/lib/constants.d.ts +1 -0
- package/dist/components/system/ThemeProvider/lib/constants.js +271 -0
- package/dist/components/system/ThemeProvider/lib/createFontFaceCss.js +43 -0
- package/dist/components/system/ThemeProvider/lib/createTheme.js +43 -0
- package/dist/components/system/ThemeProvider/lib/fonts.d.js +1 -0
- package/dist/{types/components → components}/system/ThemeProvider/lib/helpers.d.ts +1 -2
- package/dist/components/system/ThemeProvider/lib/helpers.js +54 -0
- package/dist/components/system/ThemeProvider/lib/interface.js +2 -0
- package/dist/components/system/ThemeProvider/lib/mixins.js +85 -0
- package/dist/components/system/ThemeProvider/lib/palette.js +38 -0
- package/dist/components/system/ThemeProvider/lib/types.js +2 -0
- package/dist/components/system/ThemeProvider/theme/index.js +13 -0
- package/dist/components/system/ThemeProvider/theme/openfin.js +39 -0
- package/dist/components/system/ThemeProvider/themeProvider.js +20 -0
- package/dist/components/templates/ContactCard/contactCard.js +114 -0
- package/dist/components/templates/ContactCard/index.js +13 -0
- package/dist/components/templates/utils/name.js +22 -0
- package/dist/{types/components → components}/typography/Heading/heading.d.ts +24 -24
- package/dist/components/typography/Heading/heading.js +64 -0
- package/dist/components/typography/Heading/index.js +13 -0
- package/dist/components/typography/Text/index.js +13 -0
- package/dist/components/typography/Text/text.js +21 -0
- package/dist/hooks/useColorScheme.js +33 -0
- package/dist/hooks/useMediaQuery.js +39 -0
- package/dist/hooks/usePrevious.js +12 -0
- package/dist/hooks/useTheme.js +34 -0
- package/dist/{types/index.d.ts → index.d.ts} +0 -2
- package/dist/index.js +46 -0
- package/dist/{types/lib → lib}/math.d.ts +1 -5
- package/dist/lib/math.js +24 -0
- package/dist/lib/whenFin.js +13 -0
- package/dist/lib/whenFin.spec.js +39 -0
- package/dist/react-app-env.d.js +2 -0
- package/dist/{types/storybookHelpers.d.ts → storybookHelpers.d.ts} +1 -1
- package/dist/storybookHelpers.js +58 -0
- package/package.json +70 -93
- package/dist/openfin.ui.js +0 -660
- package/dist/openfin.ui.js.LICENSE.txt +0 -14
- package/dist/types/components/input/RadioGroup/index.d.ts +0 -1
- package/dist/types/components/input/RadioGroup/radioGroup.d.ts +0 -12
- package/dist/types/components/input/RadioInput/index.d.ts +0 -1
- package/dist/types/components/input/RadioInput/radioInput.d.ts +0 -11
- /package/dist/{types/components → components}/controls/Button/button.d.ts +0 -0
- /package/dist/{types/components → components}/controls/Button/button.variants.d.ts +0 -0
- /package/dist/{types/components → components}/controls/Button/index.d.ts +0 -0
- /package/dist/{types/components → components}/controls/Toggle/index.d.ts +0 -0
- /package/dist/{types/components → components}/controls/Toggle/toggle.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Badge/badge.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Badge/index.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Icon/icon.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Icon/icon.variants.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Icon/index.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Icon/openfin/index.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Loader/index.d.ts +0 -0
- /package/dist/{types/components → components}/elements/Loader/loader.d.ts +0 -0
- /package/dist/{types/components → components}/input/BaseInput/baseInput.d.ts +0 -0
- /package/dist/{types/components → components}/input/BaseInput/index.d.ts +0 -0
- /package/dist/{types/components → components}/input/Checkbox/checkbox.d.ts +0 -0
- /package/dist/{types/components → components}/input/Checkbox/index.d.ts +0 -0
- /package/dist/{types/components → components}/input/NumberInput/index.d.ts +0 -0
- /package/dist/{types/components → components}/input/NumberInput/numberInput.d.ts +0 -0
- /package/dist/{types/components → components}/input/RawInput/index.d.ts +0 -0
- /package/dist/{types/components → components}/input/RawInput/rawInput.d.ts +0 -0
- /package/dist/{types/components → components}/input/TextInput/index.d.ts +0 -0
- /package/dist/{types/components → components}/input/TextInput/textInput.d.ts +0 -0
- /package/dist/{types/components → components}/layout/Box/box.d.ts +0 -0
- /package/dist/{types/components → components}/layout/Box/index.d.ts +0 -0
- /package/dist/{types/components → components}/layout/Box/types.d.ts +0 -0
- /package/dist/{types/components → components}/layout/DefinitionList/definitionList.d.ts +0 -0
- /package/dist/{types/components → components}/layout/DefinitionList/index.d.ts +0 -0
- /package/dist/{types/components → components}/system/GlobalStyles/globalStyles.d.ts +0 -0
- /package/dist/{types/components → components}/system/GlobalStyles/index.d.ts +0 -0
- /package/dist/{types/components → components}/system/HOC/index.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/index.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/config.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/createFontFaceCss.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/createTheme.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/interface.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/mixins.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/palette.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/lib/types.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/theme/index.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/theme/openfin.d.ts +0 -0
- /package/dist/{types/components → components}/system/ThemeProvider/themeProvider.d.ts +0 -0
- /package/dist/{types/components → components}/templates/ContactCard/contactCard.d.ts +0 -0
- /package/dist/{types/components → components}/templates/ContactCard/index.d.ts +0 -0
- /package/dist/{types/components → components}/templates/utils/name.d.ts +0 -0
- /package/dist/{types/components → components}/typography/Heading/index.d.ts +0 -0
- /package/dist/{types/components → components}/typography/Text/index.d.ts +0 -0
- /package/dist/{types/components → components}/typography/Text/text.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/useColorScheme.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/useMediaQuery.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/usePrevious.d.ts +0 -0
- /package/dist/{types/hooks → hooks}/useTheme.d.ts +0 -0
- /package/dist/{types/lib → lib}/whenFin.d.ts +0 -0
- /package/dist/{types/lib → lib}/whenFin.spec.d.ts +0 -0
package/README.md
CHANGED
|
@@ -163,6 +163,13 @@ $ yarn build && yalc push
|
|
|
163
163
|
|
|
164
164
|
- Storybook does not pick up changes after a `yalc push` and must be restarted
|
|
165
165
|
|
|
166
|
+
### Linting
|
|
167
|
+
|
|
168
|
+
```sh
|
|
169
|
+
# Husky runs this command automatically before pushing
|
|
170
|
+
$ yarn git:pre-push
|
|
171
|
+
```
|
|
172
|
+
|
|
166
173
|
## Compiling the Library
|
|
167
174
|
|
|
168
175
|
### `tsonfig.json`
|
|
@@ -0,0 +1,11 @@
|
|
|
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.Fonts = void 0;
|
|
7
|
+
const Inter_Regular_woff2_1 = __importDefault(require("./Inter-Regular.woff2"));
|
|
8
|
+
const Inter_Italic_woff2_1 = __importDefault(require("./Inter-Italic.woff2"));
|
|
9
|
+
const Inter_SemiBold_woff2_1 = __importDefault(require("./Inter-SemiBold.woff2"));
|
|
10
|
+
const Inter_SemiBoldItalic_woff2_1 = __importDefault(require("./Inter-SemiBoldItalic.woff2"));
|
|
11
|
+
exports.Fonts = { regular: Inter_Regular_woff2_1.default, italic: Inter_Italic_woff2_1.default, semiBold: Inter_SemiBold_woff2_1.default, semiBoldItalic: Inter_SemiBoldItalic_woff2_1.default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ButtonTextOnly = exports.ButtonSecondary = exports.ButtonPrimary = exports.Button = void 0;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
+
const Box_1 = require("../../layout/Box");
|
|
21
|
+
const helpers_1 = require("../../system/ThemeProvider/lib/helpers");
|
|
22
|
+
const button_variants_1 = require("./button.variants");
|
|
23
|
+
/**
|
|
24
|
+
* Button as Anchor
|
|
25
|
+
* @example <Button as="a" href="https://..." />
|
|
26
|
+
*
|
|
27
|
+
* Button with Label
|
|
28
|
+
* @example <Button label="..." />
|
|
29
|
+
*
|
|
30
|
+
* Button with Child Element
|
|
31
|
+
* @example <Button><Child /></Button>
|
|
32
|
+
*/
|
|
33
|
+
const Button = (_a) => {
|
|
34
|
+
var { label, children, size = 'base', shape = 'square', kind = 'primary', layout = 'fit', href } = _a, buttonProps = __rest(_a, ["label", "children", "size", "shape", "kind", "layout", "href"]);
|
|
35
|
+
return (jsx_runtime_1.jsx(ButtonElement, Object.assign({ as: href ? 'a' : 'button', size: size, shape: shape, kind: kind, layout: layout }, buttonProps, { children: label ? (jsx_runtime_1.jsx(ButtonLabel, Object.assign({ alignItems: "center", justifyContent: "center" }, { children: label }), void 0)) : (children) }), void 0));
|
|
36
|
+
};
|
|
37
|
+
exports.Button = Button;
|
|
38
|
+
const ButtonElement = styled_components_1.default.button `
|
|
39
|
+
/* Default values that get overridden by variants */
|
|
40
|
+
background: ${({ theme }) => theme.palette.inputBackground};
|
|
41
|
+
border: 1px solid ${({ theme }) => theme.palette.inputBackground};
|
|
42
|
+
color: ${({ theme }) => theme.palette.brandPrimaryText};
|
|
43
|
+
|
|
44
|
+
/* Inject variants */
|
|
45
|
+
${helpers_1.getVariantCSS(button_variants_1.variants, button_variants_1.Variant.size)}
|
|
46
|
+
${helpers_1.getVariantCSS(button_variants_1.variants, button_variants_1.Variant.shape)}
|
|
47
|
+
${helpers_1.getVariantCSS(button_variants_1.variants, button_variants_1.Variant.kind)}
|
|
48
|
+
${helpers_1.getVariantCSS(button_variants_1.variants, button_variants_1.Variant.layout)}
|
|
49
|
+
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
gap: ${({ theme }) => theme.px.small};
|
|
53
|
+
outline: none;
|
|
54
|
+
text-decoration: none;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
line-height: ${({ theme }) => theme.lineHeight.ui};
|
|
57
|
+
font-weight: ${({ theme }) => theme.fontWeight.bold};
|
|
58
|
+
transition: border-color var(--openfin-ui-globalTransition);
|
|
59
|
+
|
|
60
|
+
&:not(:disabled) {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:disabled,
|
|
65
|
+
&:active:disabled {
|
|
66
|
+
background: ${({ theme }) => theme.palette.inputDisabled};
|
|
67
|
+
border-color: ${({ theme }) => theme.palette.inputDisabled};
|
|
68
|
+
color: ${({ theme }) => theme.palette.inputPlaceholder};
|
|
69
|
+
cursor: not-allowed;
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
const ButtonLabel = styled_components_1.default(Box_1.Box) `
|
|
73
|
+
padding: ${({ theme }) => `0 ${theme.px.xsmall}`};
|
|
74
|
+
`;
|
|
75
|
+
/**
|
|
76
|
+
* ## Button Variants
|
|
77
|
+
*/
|
|
78
|
+
const ButtonPrimary = (props) => jsx_runtime_1.jsx(exports.Button, Object.assign({}, props, { kind: "primary" }), void 0);
|
|
79
|
+
exports.ButtonPrimary = ButtonPrimary;
|
|
80
|
+
const ButtonSecondary = (props) => jsx_runtime_1.jsx(exports.Button, Object.assign({}, props, { kind: "secondary" }), void 0);
|
|
81
|
+
exports.ButtonSecondary = ButtonSecondary;
|
|
82
|
+
const ButtonTextOnly = (props) => jsx_runtime_1.jsx(exports.Button, Object.assign({}, props, { kind: "textOnly" }), void 0);
|
|
83
|
+
exports.ButtonTextOnly = ButtonTextOnly;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.variants = exports.ButtonShape = exports.ButtonLayout = exports.ButtonSize = exports.ButtonKind = exports.Variant = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
/**
|
|
6
|
+
* Define all Button Variants here in one place.
|
|
7
|
+
* Variants should match the variants in Figma
|
|
8
|
+
*/
|
|
9
|
+
exports.Variant = {
|
|
10
|
+
shape: 'shape',
|
|
11
|
+
size: 'size',
|
|
12
|
+
kind: 'kind',
|
|
13
|
+
layout: 'layout',
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Button Type -- Describes the "role" of a button
|
|
17
|
+
*/
|
|
18
|
+
exports.ButtonKind = {
|
|
19
|
+
primary: 'primary',
|
|
20
|
+
secondary: 'secondary',
|
|
21
|
+
textOnly: 'textOnly',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Button Size
|
|
25
|
+
*/
|
|
26
|
+
exports.ButtonSize = {
|
|
27
|
+
small: 'small',
|
|
28
|
+
base: 'base',
|
|
29
|
+
large: 'large',
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Button Width
|
|
33
|
+
*/
|
|
34
|
+
exports.ButtonLayout = {
|
|
35
|
+
fit: 'fit',
|
|
36
|
+
full: 'full',
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Button Shape
|
|
40
|
+
*/
|
|
41
|
+
exports.ButtonShape = {
|
|
42
|
+
square: 'square',
|
|
43
|
+
pill: 'pill',
|
|
44
|
+
};
|
|
45
|
+
exports.variants = {
|
|
46
|
+
[exports.Variant.size]: {
|
|
47
|
+
[exports.ButtonSize.base]: styled_components_1.css `
|
|
48
|
+
padding: ${({ theme }) => `${theme.px.small} ${theme.px.large}`};
|
|
49
|
+
font-size: ${({ theme }) => theme.fontSize.base};
|
|
50
|
+
`,
|
|
51
|
+
[exports.ButtonSize.small]: styled_components_1.css `
|
|
52
|
+
padding: ${({ theme }) => `${theme.px.xsmall} ${theme.px.base}`};
|
|
53
|
+
font-size: ${({ theme }) => theme.fontSize.small};
|
|
54
|
+
`,
|
|
55
|
+
[exports.ButtonSize.large]: styled_components_1.css `
|
|
56
|
+
padding: ${({ theme }) => `${theme.px.base} ${theme.px.xlarge}`};
|
|
57
|
+
font-size: ${({ theme }) => theme.fontSize.large};
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
[exports.Variant.shape]: {
|
|
61
|
+
[exports.ButtonShape.square]: styled_components_1.css `
|
|
62
|
+
border-radius: ${({ theme }) => theme.radius.small};
|
|
63
|
+
`,
|
|
64
|
+
[exports.ButtonShape.pill]: styled_components_1.css `
|
|
65
|
+
border-radius: ${({ theme }) => theme.radius.pill};
|
|
66
|
+
`,
|
|
67
|
+
},
|
|
68
|
+
[exports.Variant.layout]: {
|
|
69
|
+
[exports.ButtonLayout.fit]: styled_components_1.css `
|
|
70
|
+
width: fit-content;
|
|
71
|
+
`,
|
|
72
|
+
[exports.ButtonLayout.full]: styled_components_1.css `
|
|
73
|
+
width: 100%;
|
|
74
|
+
`,
|
|
75
|
+
},
|
|
76
|
+
[exports.Variant.kind]: {
|
|
77
|
+
[exports.ButtonKind.primary]: styled_components_1.css `
|
|
78
|
+
background: ${({ theme }) => theme.palette.brandPrimary};
|
|
79
|
+
border-color: ${({ theme }) => theme.palette.brandPrimary};
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
background: ${({ theme }) => theme.palette.brandPrimaryHover};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:active {
|
|
86
|
+
background: ${({ theme }) => theme.palette.brandPrimaryActive};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:focus {
|
|
90
|
+
border-color: ${({ theme }) => theme.palette.brandPrimaryFocused};
|
|
91
|
+
}
|
|
92
|
+
`,
|
|
93
|
+
[exports.ButtonKind.secondary]: styled_components_1.css `
|
|
94
|
+
background: ${({ theme }) => theme.palette.brandSecondary};
|
|
95
|
+
border-color: ${({ theme }) => theme.palette.brandSecondary};
|
|
96
|
+
color: ${({ theme }) => theme.palette.brandSecondaryText};
|
|
97
|
+
|
|
98
|
+
&:hover {
|
|
99
|
+
background: ${({ theme }) => theme.palette.brandSecondaryHover};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:active {
|
|
103
|
+
background: ${({ theme }) => theme.palette.brandSecondaryActive};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:focus {
|
|
107
|
+
border-color: ${({ theme }) => theme.palette.brandSecondaryFocused};
|
|
108
|
+
}
|
|
109
|
+
`,
|
|
110
|
+
[exports.ButtonKind.textOnly]: styled_components_1.css `
|
|
111
|
+
background: transparent;
|
|
112
|
+
border-color: transparent;
|
|
113
|
+
color: ${({ theme }) => theme.palette.textDefault};
|
|
114
|
+
|
|
115
|
+
&:active {
|
|
116
|
+
opacity: 0.8;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:focus {
|
|
120
|
+
border-color: ${({ theme }) => theme.palette.inputFocused};
|
|
121
|
+
}
|
|
122
|
+
`,
|
|
123
|
+
},
|
|
124
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./button"), exports);
|
|
14
|
+
__exportStar(require("./button.variants"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./toggle"), exports);
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Toggle = void 0;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const react_1 = require("react");
|
|
20
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
21
|
+
const RawInput_1 = require("../../input/RawInput");
|
|
22
|
+
const Box_1 = require("../../layout/Box");
|
|
23
|
+
const Toggle = (_a) => {
|
|
24
|
+
var { id, label, onChange, labelSide = 'right', type = 'checkbox' } = _a, inputProps = __rest(_a, ["id", "label", "onChange", "labelSide", "type"]);
|
|
25
|
+
const [isChecked, setIsChecked] = react_1.useState(inputProps.checked);
|
|
26
|
+
react_1.useEffect(() => {
|
|
27
|
+
setIsChecked(inputProps.checked);
|
|
28
|
+
}, [inputProps.checked]);
|
|
29
|
+
return (jsx_runtime_1.jsxs(ToggleContainer, Object.assign({ labelSide: labelSide }, { children: [label ? jsx_runtime_1.jsx(ToggleLabel, Object.assign({ htmlFor: id }, { children: label }), void 0) : undefined,
|
|
30
|
+
jsx_runtime_1.jsxs(InputContainer, Object.assign({ isChecked: isChecked }, { children: [jsx_runtime_1.jsx(ToggleInput, Object.assign({}, inputProps, { id: id, type: type, onChange: (event) => {
|
|
31
|
+
setIsChecked(event.target.checked);
|
|
32
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
33
|
+
} }), void 0),
|
|
34
|
+
jsx_runtime_1.jsx(ToggleKnob, { tabIndex: -1, "aria-hidden": "true", isChecked: isChecked }, void 0)] }), void 0)] }), void 0));
|
|
35
|
+
};
|
|
36
|
+
exports.Toggle = Toggle;
|
|
37
|
+
const ToggleContainer = styled_components_1.default.div `
|
|
38
|
+
display: flex;
|
|
39
|
+
gap: ${({ theme }) => theme.px.xlarge};
|
|
40
|
+
flex-direction: ${({ labelSide }) => (labelSide === 'left' ? 'row' : 'row-reverse')};
|
|
41
|
+
line-height: ${({ theme }) => theme.px.xlarge /* Matches height of Input to vertically center text */};
|
|
42
|
+
`;
|
|
43
|
+
const InputContainer = styled_components_1.default(Box_1.Box) `
|
|
44
|
+
--px-toggle: ${({ theme }) => theme.px.xlarge};
|
|
45
|
+
--px-knob: ${({ theme }) => theme.px.base};
|
|
46
|
+
|
|
47
|
+
position: relative;
|
|
48
|
+
height: var(--px-toggle);
|
|
49
|
+
width: calc(2 * var(--px-toggle));
|
|
50
|
+
border: 1px solid
|
|
51
|
+
${({ isChecked, theme }) => isChecked ? theme.palette.brandPrimary : theme.palette.background6};
|
|
52
|
+
border-radius: calc(0.5 * var(--px-toggle));
|
|
53
|
+
|
|
54
|
+
background: ${({ isChecked, theme }) => isChecked ? theme.palette.brandPrimary : theme.palette.background6};
|
|
55
|
+
transition: background var(--openfin-ui-globalTransition),
|
|
56
|
+
border-color var(---openfin-ui-globalTransition);
|
|
57
|
+
|
|
58
|
+
&:focus-within {
|
|
59
|
+
border-color: ${({ theme }) => theme.palette.inputFocused};
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const ToggleKnob = styled_components_1.default.button `
|
|
63
|
+
position: absolute;
|
|
64
|
+
width: var(--px-knob);
|
|
65
|
+
height: var(--px-knob);
|
|
66
|
+
top: 50%;
|
|
67
|
+
left: ${({ theme }) => theme.px.xsmall};
|
|
68
|
+
transform: translateY(-50%);
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
background: ${({ isChecked, theme }) => isChecked ? theme.palette.brandPrimaryText : theme.palette.inputColor};
|
|
71
|
+
border: none;
|
|
72
|
+
outline: none;
|
|
73
|
+
transition: left var(--openfin-ui-globalTransition), background var(--openfin-ui-globalTransition);
|
|
74
|
+
pointer-events: none; /* Allow pass-thru for native input */
|
|
75
|
+
`;
|
|
76
|
+
const ToggleInput = styled_components_1.default(RawInput_1.RawInput) `
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 0;
|
|
79
|
+
left: 0;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
border: none;
|
|
84
|
+
outline: none;
|
|
85
|
+
appearance: none;
|
|
86
|
+
display: block;
|
|
87
|
+
|
|
88
|
+
&:checked + ${ToggleKnob} {
|
|
89
|
+
left: calc(100% - ${({ theme }) => theme.px.large});
|
|
90
|
+
}
|
|
91
|
+
&:disabled + ${ToggleKnob} {
|
|
92
|
+
background: ${({ theme }) => theme.palette.inputDisabled};
|
|
93
|
+
}
|
|
94
|
+
&:not(:disabled) {
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
`;
|
|
98
|
+
const ToggleLabel = styled_components_1.default.label ``;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Badge = void 0;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
+
const Box_1 = require("../../layout/Box");
|
|
21
|
+
const Badge = (_a) => {
|
|
22
|
+
var { count = 0, max } = _a, rest = __rest(_a, ["count", "max"]);
|
|
23
|
+
let value = count.toString();
|
|
24
|
+
if (max && count > max) {
|
|
25
|
+
value = `${max}+`;
|
|
26
|
+
}
|
|
27
|
+
return jsx_runtime_1.jsx(BadgeElement, Object.assign({}, rest, { children: value }), void 0);
|
|
28
|
+
};
|
|
29
|
+
exports.Badge = Badge;
|
|
30
|
+
const BadgeElement = styled_components_1.default(Box_1.Box) `
|
|
31
|
+
background: ${({ theme }) => theme.palette.statusCritical};
|
|
32
|
+
border-radius: ${({ theme }) => theme.radius.pill};
|
|
33
|
+
color: ${({ theme }) => theme._color.white};
|
|
34
|
+
font-size: ${({ theme }) => theme.fontSize.small};
|
|
35
|
+
min-width: ${({ theme }) => theme.px.xlarge};
|
|
36
|
+
padding: 2px 6px;
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
box-shadow: ${({ theme }) => theme.shadow.base};
|
|
41
|
+
`;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./badge"), exports);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Icon = void 0;
|
|
18
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
20
|
+
const Box_1 = require("../../layout/Box");
|
|
21
|
+
const ThemeProvider_1 = require("../../system/ThemeProvider");
|
|
22
|
+
const constants_1 = require("../../system/ThemeProvider/lib/constants");
|
|
23
|
+
const icon_variants_1 = require("./icon.variants");
|
|
24
|
+
exports.Icon = styled_components_1.default((_a) => {
|
|
25
|
+
var { icon, children, size = 'base', containerSize } = _a, props = __rest(_a, ["icon", "children", "size", "containerSize"]);
|
|
26
|
+
return (jsx_runtime_1.jsx(IconBox, Object.assign({}, props, { iconSize: size, containerSize: containerSize || size, justifyContent: "center", alignItems: "center" }, { children: icon ? jsx_runtime_1.jsx(IconSvg, { ariaLabel: props['aria-label'], icon: icon }, void 0) : children }), void 0));
|
|
27
|
+
}) ``;
|
|
28
|
+
const IconSvg = styled_components_1.default((_a) => {
|
|
29
|
+
var { icon, ariaLabel } = _a, props = __rest(_a, ["icon", "ariaLabel"]);
|
|
30
|
+
const SVG = constants_1.IconSet[icon];
|
|
31
|
+
return jsx_runtime_1.jsx(SVG, Object.assign({ role: "img", "aria-label": ariaLabel }, props), void 0);
|
|
32
|
+
}) ``;
|
|
33
|
+
const IconBox = styled_components_1.default(Box_1.Box) `
|
|
34
|
+
/**
|
|
35
|
+
* 1. Initialize local variables with reasonable defaults
|
|
36
|
+
*/
|
|
37
|
+
--px-default: ${({ theme }) => theme.iconSize.base};
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 2. Inject variants -- ? What are Variants
|
|
41
|
+
*/
|
|
42
|
+
${ThemeProvider_1.getVariantCSS(icon_variants_1.variants, icon_variants_1.Variant.containerSize)}
|
|
43
|
+
${ThemeProvider_1.getVariantCSS(icon_variants_1.variants, icon_variants_1.Variant.iconSize)}
|
|
44
|
+
|
|
45
|
+
width: var(--px-container, var(--px-default));
|
|
46
|
+
height: var(--px-container, var(--px-default));
|
|
47
|
+
|
|
48
|
+
/* SVG Asset */
|
|
49
|
+
& > *,
|
|
50
|
+
${IconSvg} {
|
|
51
|
+
display: block;
|
|
52
|
+
width: var(--px-icon, var(--px-default));
|
|
53
|
+
height: var(--px-icon, var(--px-default));
|
|
54
|
+
border-radius: inherit;
|
|
55
|
+
}
|
|
56
|
+
`;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.variants = exports.Variant = void 0;
|
|
4
|
+
const styled_components_1 = require("styled-components");
|
|
5
|
+
/**
|
|
6
|
+
* Define all Button Variants here in one place.
|
|
7
|
+
* Variants should match the variants in Figma
|
|
8
|
+
*/
|
|
9
|
+
exports.Variant = {
|
|
10
|
+
iconSize: 'iconSize',
|
|
11
|
+
containerSize: 'containerSize',
|
|
12
|
+
};
|
|
13
|
+
exports.variants = {
|
|
14
|
+
[exports.Variant.iconSize]: {
|
|
15
|
+
xsmall: styled_components_1.css `
|
|
16
|
+
--px-icon: ${({ theme }) => theme.iconSize.xsmall};
|
|
17
|
+
`,
|
|
18
|
+
small: styled_components_1.css `
|
|
19
|
+
--px-icon: ${({ theme }) => theme.iconSize.small};
|
|
20
|
+
`,
|
|
21
|
+
base: styled_components_1.css `
|
|
22
|
+
--px-icon: ${({ theme }) => theme.iconSize.base};
|
|
23
|
+
`,
|
|
24
|
+
large: styled_components_1.css `
|
|
25
|
+
--px-icon: ${({ theme }) => theme.iconSize.large};
|
|
26
|
+
`,
|
|
27
|
+
xlarge: styled_components_1.css `
|
|
28
|
+
--px-icon: ${({ theme }) => theme.iconSize.xlarge};
|
|
29
|
+
`,
|
|
30
|
+
xxlarge: styled_components_1.css `
|
|
31
|
+
--px-icon: ${({ theme }) => theme.iconSize.xxlarge};
|
|
32
|
+
`,
|
|
33
|
+
xxxlarge: styled_components_1.css `
|
|
34
|
+
--px-icon: ${({ theme }) => theme.iconSize.xxxlarge};
|
|
35
|
+
`,
|
|
36
|
+
},
|
|
37
|
+
[exports.Variant.containerSize]: {
|
|
38
|
+
xsmall: styled_components_1.css `
|
|
39
|
+
--px-container: ${({ theme }) => theme.iconSize.xsmall};
|
|
40
|
+
`,
|
|
41
|
+
small: styled_components_1.css `
|
|
42
|
+
--px-container: ${({ theme }) => theme.iconSize.small};
|
|
43
|
+
`,
|
|
44
|
+
base: styled_components_1.css `
|
|
45
|
+
--px-container: ${({ theme }) => theme.iconSize.base};
|
|
46
|
+
`,
|
|
47
|
+
large: styled_components_1.css `
|
|
48
|
+
--px-container: ${({ theme }) => theme.iconSize.large};
|
|
49
|
+
`,
|
|
50
|
+
xlarge: styled_components_1.css `
|
|
51
|
+
--px-container: ${({ theme }) => theme.iconSize.xlarge};
|
|
52
|
+
`,
|
|
53
|
+
xxlarge: styled_components_1.css `
|
|
54
|
+
--px-container: ${({ theme }) => theme.iconSize.xxlarge};
|
|
55
|
+
`,
|
|
56
|
+
xxxlarge: styled_components_1.css `
|
|
57
|
+
--px-container: ${({ theme }) => theme.iconSize.xxxlarge};
|
|
58
|
+
`,
|
|
59
|
+
},
|
|
60
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./icon"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.BellIcon = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
/**
|
|
17
|
+
* OVERRIDE!
|
|
18
|
+
* This replaces Radix UI BellIcon
|
|
19
|
+
*/
|
|
20
|
+
const BellIcon = (_a) => {
|
|
21
|
+
var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
|
|
22
|
+
return (jsx_runtime_1.jsx("svg", Object.assign({ width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: jsx_runtime_1.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.47306 1.22943C6.5193 1.22943 5.87291 1.98399 5.65371 2.72697C5.65207 2.72932 5.64921 2.73303 5.64485 2.73756C5.6392 2.74342 5.63264 2.74896 5.62599 2.75355C5.61926 2.75819 5.61452 2.7604 5.613 2.76102L5.61265 2.76117C5.05088 2.99251 4.39193 3.36022 3.87697 4.03357C3.35815 4.71196 3.01949 5.65571 3.01945 6.97749L5.65371 2.72697L3.01945 6.97776C3.01866 8.30165 2.87871 9.0313 2.67091 9.53439C2.48879 9.97531 2.24889 10.2658 1.912 10.6738L1.91185 10.674C1.86263 10.7336 1.81135 10.7957 1.75787 10.8612C1.14923 11.606 1.72729 12.6419 2.65986 12.6419H5.09019C5.21191 12.98 5.40726 13.2906 5.66618 13.5495C6.12827 14.0116 6.75499 14.2712 7.40848 14.2712C8.06197 14.2712 8.6887 14.0116 9.15078 13.5495C9.40971 13.2906 9.60505 12.98 9.72678 12.6419H12.2894C13.2234 12.6419 13.792 11.6008 13.1884 10.8613L13.1883 10.8612C13.1348 10.7957 13.0835 10.7336 13.0342 10.674C12.6973 10.2659 12.4574 9.9754 12.2755 9.53451C12.0678 9.03147 11.9282 8.30182 11.9282 6.97776C11.9282 5.65688 11.5891 4.71299 11.0703 4.03433C10.5553 3.36075 9.89652 2.99234 9.33499 2.76115L9.33467 2.76102C9.33409 2.76079 9.32982 2.75888 9.32313 2.75424C9.31655 2.74967 9.30981 2.74394 9.30382 2.7377C9.29875 2.73241 9.29545 2.72803 9.29363 2.72531C9.07264 1.98378 8.42691 1.22943 7.47306 1.22943ZM8.68654 12.6419H6.13042C6.1876 12.7295 6.25403 12.8115 6.3291 12.8866C6.61537 13.1729 7.00363 13.3337 7.40848 13.3337C7.81333 13.3337 8.2016 13.1729 8.48787 12.8866C8.56293 12.8115 8.62937 12.7295 8.68654 12.6419ZM6.55145 2.99716C6.69571 2.50085 7.07121 2.16693 7.47306 2.16693C7.87492 2.16693 8.2505 2.50061 8.3966 2.99785L8.39695 2.99904C8.48499 3.29575 8.72843 3.52538 8.97809 3.62806C9.45625 3.82492 9.94894 4.11119 10.3255 4.60373C10.6982 5.09119 10.9907 5.82486 10.9907 6.97776C10.9907 8.35506 11.1337 9.2255 11.4089 9.89217C11.6483 10.4723 11.9823 10.8749 12.3167 11.278C12.3653 11.3366 12.4139 11.3951 12.4622 11.4542C12.5016 11.5025 12.5046 11.5552 12.4793 11.605C12.4553 11.6524 12.3996 11.7044 12.2894 11.7044H2.65986C2.54604 11.7044 2.48955 11.6509 2.46588 11.6045C2.44119 11.5562 2.44325 11.504 2.4838 11.4544L2.48383 11.4544C2.53215 11.3952 2.58075 11.3366 2.62934 11.2781L2.62946 11.2779C2.96389 10.8748 3.29785 10.4723 3.5374 9.89229C3.81273 9.22571 3.95615 8.35533 3.95695 6.97803V6.97776C3.95695 5.82341 4.24928 5.08999 4.62165 4.60309C4.99792 4.1111 5.49044 3.82537 5.96963 3.62805C6.21661 3.52645 6.46257 3.30002 6.55111 2.99833L6.55145 2.99716Z", fill: color, role: "img" }, void 0) }), void 0));
|
|
23
|
+
};
|
|
24
|
+
exports.BellIcon = BellIcon;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.BrokenLinkIcon = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const BrokenLinkIcon = (_a) => {
|
|
17
|
+
var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
|
|
18
|
+
return (jsx_runtime_1.jsxs("svg", Object.assign({ width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: [jsx_runtime_1.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.3335 3.7002C6.05735 3.7002 5.8335 3.92405 5.8335 4.2002V27.8002C5.8335 28.0763 6.05735 28.3002 6.3335 28.3002H25.6668C25.943 28.3002 26.1668 28.0763 26.1668 27.8002V12.2335H18.1335C17.8574 12.2335 17.6335 12.0097 17.6335 11.7335V3.7002H6.3335ZM18.6335 4.4073L25.4597 11.2335H18.6335V4.4073ZM4.8335 4.2002C4.8335 3.37177 5.50507 2.7002 6.3335 2.7002H18.1335C18.2661 2.7002 18.3933 2.75287 18.487 2.84664L27.0204 11.38C27.1141 11.4737 27.1668 11.6009 27.1668 11.7335V27.8002C27.1668 28.6286 26.4953 29.3002 25.6668 29.3002H6.3335C5.50507 29.3002 4.8335 28.6286 4.8335 27.8002V4.2002Z", fill: color }, void 0),
|
|
19
|
+
jsx_runtime_1.jsx("path", { d: "M14.248 21.9084V21.8409C14.2528 21.4006 14.2966 21.0502 14.3794 20.7898C14.4647 20.5294 14.5854 20.3187 14.7417 20.1577C14.8979 19.9967 15.0861 19.8499 15.3063 19.7173C15.4483 19.6274 15.5762 19.5268 15.6898 19.4155C15.8034 19.3042 15.8934 19.1764 15.9597 19.032C16.026 18.8875 16.0591 18.7277 16.0591 18.5526C16.0591 18.3419 16.0094 18.1596 15.91 18.0057C15.8105 17.8518 15.678 17.7334 15.5123 17.6506C15.3489 17.5653 15.1666 17.5227 14.9654 17.5227C14.7831 17.5227 14.6091 17.5606 14.4434 17.6364C14.2776 17.7121 14.1403 17.8305 14.0314 17.9915C13.9225 18.1501 13.8598 18.3549 13.8432 18.6058H12.7637C12.7802 18.1797 12.888 17.8198 13.0868 17.5263C13.2857 17.2304 13.5485 17.0066 13.8752 16.8551C14.2042 16.7036 14.5676 16.6278 14.9654 16.6278C15.401 16.6278 15.7821 16.7095 16.1088 16.8729C16.4355 17.0339 16.6889 17.2599 16.8688 17.5511C17.0511 17.84 17.1422 18.1773 17.1422 18.5632C17.1422 18.8284 17.1008 19.0675 17.0179 19.2805C16.9351 19.4912 16.8167 19.6795 16.6628 19.8452C16.5113 20.0109 16.329 20.1577 16.1159 20.2855C15.9147 20.411 15.7514 20.5412 15.6259 20.6761C15.5028 20.8111 15.4128 20.9709 15.356 21.1555C15.2992 21.3402 15.2684 21.5687 15.2637 21.8409V21.9084H14.248ZM14.7843 24.0675C14.5901 24.0675 14.4232 23.9988 14.2836 23.8615C14.1439 23.7218 14.074 23.5537 14.074 23.3572C14.074 23.1631 14.1439 22.9974 14.2836 22.8601C14.4232 22.7204 14.5901 22.6506 14.7843 22.6506C14.976 22.6506 15.1417 22.7204 15.2814 22.8601C15.4235 22.9974 15.4945 23.1631 15.4945 23.3572C15.4945 23.4875 15.4614 23.607 15.3951 23.7159C15.3311 23.8224 15.2459 23.9077 15.1394 23.9716C15.0328 24.0355 14.9145 24.0675 14.7843 24.0675Z", fill: color }, void 0)] }), void 0));
|
|
20
|
+
};
|
|
21
|
+
exports.BrokenLinkIcon = BrokenLinkIcon;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.FilterIcon = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const FilterIcon = (_a) => {
|
|
17
|
+
var { color = 'currentColor' } = _a, props = __rest(_a, ["color"]);
|
|
18
|
+
return (jsx_runtime_1.jsx("svg", Object.assign({ width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props, { children: jsx_runtime_1.jsx("path", { d: "M4 6.5C4 6.36739 4.05268 6.24021 4.14645 6.14645C4.24021 6.05268 4.36739 6 4.5 6H7.5C7.63261 6 7.75979 6.05268 7.85355 6.14645C7.94732 6.24021 8 6.36739 8 6.5C8 6.63261 7.94732 6.75979 7.85355 6.85355C7.75979 6.94732 7.63261 7 7.5 7H4.5C4.36739 7 4.24021 6.94732 4.14645 6.85355C4.05268 6.75979 4 6.63261 4 6.5ZM2 3.5C2 3.36739 2.05268 3.24021 2.14645 3.14645C2.24021 3.05268 2.36739 3 2.5 3H9.5C9.63261 3 9.75979 3.05268 9.85355 3.14645C9.94732 3.24021 10 3.36739 10 3.5C10 3.63261 9.94732 3.75979 9.85355 3.85355C9.75979 3.94732 9.63261 4 9.5 4H2.5C2.36739 4 2.24021 3.94732 2.14645 3.85355C2.05268 3.75979 2 3.63261 2 3.5ZM0 0.5C0 0.367392 0.0526785 0.240215 0.146447 0.146447C0.240215 0.0526785 0.367392 0 0.5 0H11.5C11.6326 0 11.7598 0.0526785 11.8536 0.146447C11.9473 0.240215 12 0.367392 12 0.5C12 0.632608 11.9473 0.759785 11.8536 0.853553C11.7598 0.947321 11.6326 1 11.5 1H0.5C0.367392 1 0.240215 0.947321 0.146447 0.853553C0.0526785 0.759785 0 0.632608 0 0.5Z", fill: color }, void 0) }), void 0));
|
|
19
|
+
};
|
|
20
|
+
exports.FilterIcon = FilterIcon;
|