@pexip/components 16.9.0 → 16.11.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.
- package/CHANGELOG.md +29 -0
- package/README.md +3 -118
- package/design-tokens/base/palette.variables.scss +11 -0
- package/design-tokens/generated/Icons.ts +2 -1
- package/design-tokens/generated/icons/breakout-rooms-16.json +7 -0
- package/design-tokens/generated/icons/breakout-rooms-16.svg +16 -0
- package/design-tokens/generated/icons/breakout-rooms-16.svg.d.ts +5 -0
- package/design-tokens/tokens/zIndex.tokens.scss +22 -0
- package/design-tokens/tokens.scss +1 -0
- package/dist/components.js +1 -1
- package/dist/components.mjs +2842 -2831
- package/dist/style.css +1 -1
- package/dist/types/design-tokens/generated/Icons.d.ts.map +1 -1
- package/dist/types/src/components/elements/Divider/Divider.d.ts.map +1 -1
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts +1 -0
- package/dist/types/src/components/elements/Draggable/Draggable.view.d.ts.map +1 -1
- package/dist/types/src/components/modules/Menu/Menu.d.ts +1 -0
- package/dist/types/src/components/modules/Menu/Menu.d.ts.map +1 -1
- package/dist/types/src/components/modules/Modal/Modal.d.ts +4 -3
- package/dist/types/src/components/modules/Modal/Modal.d.ts.map +1 -1
- package/dist/types/src/components/modules/NumberStepInput/NumberStepInput.d.ts.map +1 -1
- package/dist/types/src/components/modules/Select/Select.d.ts.map +1 -1
- package/dist/types/src/components/modules/Table/ExpanderCell.d.ts +2 -0
- package/dist/types/src/components/modules/Table/ExpanderCell.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/types/elements.d.ts +1 -1
- package/dist/types/src/types/elements.d.ts.map +1 -1
- package/dist/types/src/utils/testIds.d.ts +4 -1
- package/dist/types/src/utils/testIds.d.ts.map +1 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3353033: Move `isDisabled` from `MultiselectOption` to `Option`.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- acd55a9: Allow ExpanderCell to take textVariant prop.
|
|
12
|
+
- 267898b: adds onPointerDownCapture prop to Menu component, which is passed to
|
|
13
|
+
the dropdown list
|
|
14
|
+
- c3f46b6: add missing breakout-rooms-16 icon
|
|
15
|
+
- 3353033: Fix Checkbox color for indeterminate state.
|
|
16
|
+
- Updated dependencies [bcfa59f]
|
|
17
|
+
- @pexip/signal@16.6.0
|
|
18
|
+
- @pexip/hooks@16.4.2
|
|
19
|
+
|
|
20
|
+
## 16.10.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- 7f59a752: Adds `data-testid` attributes to `BreakoutRoom`-related components.
|
|
25
|
+
- dfd80cb1: Update color palette of `Button` variant "bordered" in light theme
|
|
26
|
+
- fe6ce452: - Simplifies css class hierarchy of `Divider` component
|
|
27
|
+
- Adds `onPointerMoveExtra` prop to `Draggable`. A callback to be ran on
|
|
28
|
+
`pointermove` event.
|
|
29
|
+
- 8b6184da: Export TextProps type.
|
|
30
|
+
- 237ed011: Support `withScrollbars` prop in `Modal`.
|
|
31
|
+
|
|
3
32
|
## 16.9.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@pexip/components`
|
|
2
2
|
|
|
3
3
|
Shared UI component library based on Pexip's design system.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
[Figma - Style guide](https://www.figma.com/file/opMo7dh4FO56qqGsozGzv2/Pexip-prototype?node-id=43%3A403)
|
|
5
|
+
## Install
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Current state is published to
|
|
11
|
-
|
|
12
|
-
### [https://main--5f6dd462e70810002208a2c9.chromatic.com/](https://main--5f6dd462e70810002208a2c9.chromatic.com/)
|
|
7
|
+
`npm install @pexip/components`
|
|
13
8
|
|
|
14
9
|
## Usage
|
|
15
10
|
|
|
@@ -29,113 +24,3 @@ import '@pexip/components/src/fonts.css';
|
|
|
29
24
|
// Import other global styles
|
|
30
25
|
import '@pexip/components/dist/index.css';
|
|
31
26
|
```
|
|
32
|
-
|
|
33
|
-
## Development
|
|
34
|
-
|
|
35
|
-
When developing new components for this library, please run Storybook to view
|
|
36
|
-
the components.
|
|
37
|
-
|
|
38
|
-
[See the documentation here](../storybook/README.md).
|
|
39
|
-
|
|
40
|
-
### Creating new components
|
|
41
|
-
|
|
42
|
-
Create new components in the `/src/components` folder and add it to the correct
|
|
43
|
-
category.
|
|
44
|
-
[See the documentation about the folders in Storybook](https://main--5f6dd462e70810002208a2c9.chromatic.com/?path=/story/overview-getting-started--page#development).
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
src
|
|
48
|
-
|__components
|
|
49
|
-
|__elements
|
|
50
|
-
|__Component
|
|
51
|
-
|__Component.tsx
|
|
52
|
-
|__Component.module.scss
|
|
53
|
-
|__Component.tokens.scss
|
|
54
|
-
|__stories
|
|
55
|
-
|__Component.stories.tsx
|
|
56
|
-
|__foundation
|
|
57
|
-
|__modules
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
#### Setting up a new component
|
|
61
|
-
|
|
62
|
-
Create a `*.tsx` file to write the component in React/JSX format. Read about the
|
|
63
|
-
repo's [best practices for React](../../docs/react.md).
|
|
64
|
-
|
|
65
|
-
**Component.tsx**
|
|
66
|
-
|
|
67
|
-
```tsx
|
|
68
|
-
import React from 'react';
|
|
69
|
-
|
|
70
|
-
export const Button: React.FC<{text: string}> = ({text}) => (
|
|
71
|
-
<button>{text}</button>
|
|
72
|
-
);
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
To view and test the component, create a `*.stories.tsx` file under the
|
|
76
|
-
`stories` folder in that component's folder and it should appear in Storybook
|
|
77
|
-
given the correct title, e.g. `Elements/Component` appears under the Elements
|
|
78
|
-
tab.
|
|
79
|
-
|
|
80
|
-
#### Styling
|
|
81
|
-
|
|
82
|
-
For styling, the project uses the CSS modules. To add styling to the components,
|
|
83
|
-
create a `*.module.scss` file to be used in the `.tsx` file, and a
|
|
84
|
-
`*.tokens.scss` file for generating CSS variables.
|
|
85
|
-
|
|
86
|
-
**Component.tokens.scss**
|
|
87
|
-
|
|
88
|
-
```scss
|
|
89
|
-
@import '../../../../design-tokens/variables.scss';
|
|
90
|
-
|
|
91
|
-
:root {
|
|
92
|
-
// Creates a global variable --button-size
|
|
93
|
-
@include create-token(button-size, 40px);
|
|
94
|
-
}
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
**Component.module.scss**
|
|
98
|
-
|
|
99
|
-
```scss
|
|
100
|
-
// Relative path to the exported variables.scss
|
|
101
|
-
@import '../../../../design-tokens/variables.scss';
|
|
102
|
-
|
|
103
|
-
.button {
|
|
104
|
-
border: 0;
|
|
105
|
-
background: 0;
|
|
106
|
-
|
|
107
|
-
// Rewritten as a CSS variable `height: var(--button-size)`
|
|
108
|
-
height: get-token(button-size);
|
|
109
|
-
}
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
**Component.tsx**
|
|
113
|
-
|
|
114
|
-
```tsx
|
|
115
|
-
import React from 'react';
|
|
116
|
-
|
|
117
|
-
import styles from './Component.module.scss';
|
|
118
|
-
|
|
119
|
-
export const Button: React.FC<{text: string}> = ({text}) => (
|
|
120
|
-
<button
|
|
121
|
-
/*
|
|
122
|
-
* Property is derived from the CSS class
|
|
123
|
-
* defined in Components.modules.scss
|
|
124
|
-
*/
|
|
125
|
-
className={styles.button}
|
|
126
|
-
>
|
|
127
|
-
{text}
|
|
128
|
-
</button>
|
|
129
|
-
);
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Exporting the new component
|
|
133
|
-
|
|
134
|
-
Add the newly created component in `/src/index.ts` folder so that it may be used
|
|
135
|
-
from the library.
|
|
136
|
-
|
|
137
|
-
```ts
|
|
138
|
-
export {Component} from './components/elements/Component/Component';
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
The component should now be usable from the `@pexip/components` library.
|
|
@@ -20,6 +20,17 @@ $secondary-color-800: color-hex('deep-blue-80');
|
|
|
20
20
|
$secondary-color-900: color-hex('deep-blue-90');
|
|
21
21
|
$secondary-color-1000: color-hex('deep-blue-100');
|
|
22
22
|
|
|
23
|
+
$bordered-color-100: color-hex('white');
|
|
24
|
+
$bordered-color-200: color-hex('neutral-10');
|
|
25
|
+
$bordered-color-300: color-hex('neutral-20');
|
|
26
|
+
$bordered-color-400: color-hex('neutral-30');
|
|
27
|
+
$bordered-color-500: color-hex('neutral-40');
|
|
28
|
+
$bordered-color-600: color-hex('neutral-50');
|
|
29
|
+
$bordered-color-700: color-hex('neutral-60');
|
|
30
|
+
$bordered-color-800: color-hex('neutral-80');
|
|
31
|
+
$bordered-color-900: color-hex('neutral-90');
|
|
32
|
+
$bordered-color-1000: color-hex('neutral-100');
|
|
33
|
+
|
|
23
34
|
$error-bg-color: color-hex('signal-red');
|
|
24
35
|
$error-bg-color-hover: color-hex('signal-red-hover');
|
|
25
36
|
$error-text-color: color-hex('white');
|
|
@@ -38,6 +38,7 @@ import IconBilling_16 from './icons/billing-16.svg';
|
|
|
38
38
|
import IconBilling_24 from './icons/billing-24.svg';
|
|
39
39
|
import IconBlock_16 from './icons/block-16.svg';
|
|
40
40
|
import IconBlock_24 from './icons/block-24.svg';
|
|
41
|
+
import IconBreakoutRooms_16 from './icons/breakout-rooms-16.svg';
|
|
41
42
|
import IconBreakoutRooms_24 from './icons/breakout-rooms-24.svg';
|
|
42
43
|
import IconCalendar_16 from './icons/calendar-16.svg';
|
|
43
44
|
import IconCalendar_24 from './icons/calendar-24.svg';
|
|
@@ -339,7 +340,7 @@ const collection: IconCollection = {
|
|
|
339
340
|
IconBilling: {size16: IconBilling_16, size24: IconBilling_24},
|
|
340
341
|
IconBlock: {size16: IconBlock_16, size24: IconBlock_24},
|
|
341
342
|
IconBreakoutRooms: {
|
|
342
|
-
size16:
|
|
343
|
+
size16: IconBreakoutRooms_16,
|
|
343
344
|
size24: IconBreakoutRooms_24,
|
|
344
345
|
},
|
|
345
346
|
IconCalendar: {size16: IconCalendar_16, size24: IconCalendar_24},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"iconName": "breakout-rooms-16",
|
|
3
|
+
"name": "16px-breakout-rooms",
|
|
4
|
+
"pascalName": "IconBreakoutRooms_16",
|
|
5
|
+
"resource": "https://figma-alpha-api.s3.us-west-2.amazonaws.com/images/672bac1d-8c73-4cea-a50b-71c68dce5ec1",
|
|
6
|
+
"graphic": "<svg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.4545 3H3.54545C2.13909 3 1 4.20481 1 5.69231V11.0769C1 12.5644 2.13909 13.7692 3.54545 13.7692H12.4545C13.8609 13.7692 15 12.5644 15 11.0769V5.69231C15 4.20481 13.8609 3 12.4545 3ZM3 5H7V8H3V5ZM7 9H3V12H7V9ZM9 5H13V8H9V5ZM13 9H9V12H13V9Z\" fill=\"white\"/>\n</svg>\n"
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!-- FILE GENERATED BY packages/components/design-tokens/build-scripts/generate-icons.js DO NOT CHANGE -->
|
|
2
|
+
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
fill="none"
|
|
6
|
+
data-token-name="IconBreakoutRooms_16"
|
|
7
|
+
viewBox="0 0 16 16"
|
|
8
|
+
aria-hidden="true"
|
|
9
|
+
>
|
|
10
|
+
<path
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
fill-rule="evenodd"
|
|
13
|
+
d="M12.454 3H3.545C2.14 3 1 4.205 1 5.692v5.385c0 1.487 1.14 2.692 2.545 2.692h8.91c1.406 0 2.545-1.205 2.545-2.692V5.692C15 4.205 13.86 3 12.454 3ZM3 5h4v3H3V5Zm4 4H3v3h4V9Zm2-4h4v3H9V5Zm4 4H9v3h4V9Z"
|
|
14
|
+
clip-rule="evenodd"
|
|
15
|
+
/>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import '../variables.scss';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
@include create-token(components-z-index-draggable-dragging, 10000);
|
|
5
|
+
@include create-token(components-z-index-toast, 9999);
|
|
6
|
+
@include create-token(components-z-index-fullscreen-overlay, 9998);
|
|
7
|
+
@include create-token(
|
|
8
|
+
components-z-index-context-menu-position-adjuster,
|
|
9
|
+
9999
|
|
10
|
+
);
|
|
11
|
+
@include create-token(components-z-index-context-menu-click-catcher, 9998);
|
|
12
|
+
@include create-token(components-z-index-modal-mask, 999);
|
|
13
|
+
@include create-token(components-z-index-modal-positioned, 999);
|
|
14
|
+
@include create-token(components-z-index-sheet-wrapper, 999);
|
|
15
|
+
@include create-token(components-z-index-badge-counter, 500);
|
|
16
|
+
@include create-token(components-z-index-drop-content, 99);
|
|
17
|
+
@include create-token(components-z-index-scrim-top, 5);
|
|
18
|
+
@include create-token(components-z-index-tooltip, 1);
|
|
19
|
+
@include create-token(components-z-index-line-heading-text, 1);
|
|
20
|
+
@include create-token(components-z-index-line-heading-visual-line, 0);
|
|
21
|
+
@include create-token(components-z-index-file-upload-input, -1);
|
|
22
|
+
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
@import './tokens/all-sizes.tokens.scss';
|
|
5
5
|
@import './tokens/circle-sizes.tokens.scss';
|
|
6
6
|
@import './tokens/border-radius.tokens.scss';
|
|
7
|
+
@import './tokens/zIndex.tokens.scss';
|
|
7
8
|
|
|
8
9
|
/*FOUNDATION*/
|
|
9
10
|
@import '../src/components/foundation/FullSizeWindow/FullSizeWindow.tokens.scss';
|