playbook-ui 13.27.0-alpha.PLAY1122fixMultipleUserspaddingoverflow2844 → 13.27.0-alpha.PLAY11782916
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/dist/app/components/playbook/pb_docs/kit_example.html.erb +3 -3
- package/dist/menu.yml +2 -2
- package/dist/pb_icon/_icon.d.ts +1 -1
- package/dist/pb_select/_select.d.ts +18 -0
- package/dist/playbook-doc.js +3 -3
- package/dist/playbook-rails.js +2 -2
- package/dist/playbook.css +1 -1
- package/dist/playbook.js +3 -3
- package/dist/tokens/titles.scss +5 -1
- package/package.json +1 -1
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
<ul>
|
|
24
24
|
<% hide_button = type == "rails" ? 'flex' : 'none' %>
|
|
25
25
|
<li>
|
|
26
|
-
<%= pb_rails("button", props: { id:"copy-html-#{example_key}", icon: "copy", text: "Copy HTML", variant: "link", size: "sm", display: hide_button }) %>
|
|
26
|
+
<%= pb_rails("button", props: { id:"copy-html-#{example_key}", icon: "copy", text: "Copy HTML", classname: dark ? "dark" : "", variant: "link", size: "sm", display: hide_button }) %>
|
|
27
27
|
</li>
|
|
28
28
|
<li>
|
|
29
|
-
<%= pb_rails("button", props: { icon: "code", id:"toggle-open-opened", text: "Close Code", variant: "link", size: "sm", display: "none" }) %>
|
|
30
|
-
<%= pb_rails("button", props: { icon: "code", id:"toggle-open-closed", text: "Show Code", variant: "link", size: "sm" }) %>
|
|
29
|
+
<%= pb_rails("button", props: { icon: "code", id:"toggle-open-opened", classname: dark ? "dark" : "", text: "Close Code", variant: "link", size: "sm", display: "none" }) %>
|
|
30
|
+
<%= pb_rails("button", props: { icon: "code", id:"toggle-open-closed", classname: dark ? "dark" : "", text: "Show Code", variant: "link", size: "sm" }) %>
|
|
31
31
|
</li>
|
|
32
32
|
</ul>
|
|
33
33
|
</div>
|
package/dist/menu.yml
CHANGED
|
@@ -255,9 +255,9 @@ kits:
|
|
|
255
255
|
description: Playbook's date picker is built using flatpickr, a vanilla js library. Common date picker use cases and features have been adapted into simple prop based configuration detailed in the docs below.
|
|
256
256
|
status: "stable"
|
|
257
257
|
- name: dropdown
|
|
258
|
-
platforms: *
|
|
258
|
+
platforms: *web
|
|
259
259
|
description: ""
|
|
260
|
-
status: "
|
|
260
|
+
status: "stable"
|
|
261
261
|
- name: "multi_level_select"
|
|
262
262
|
platforms: *web
|
|
263
263
|
description: The MultiLevelSelect kit renders a multi leveled select dropdown based on data from the user.
|
package/dist/pb_icon/_icon.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactSVGElement } from 'react';
|
|
2
2
|
import { GlobalProps } from '../utilities/globalProps';
|
|
3
3
|
export declare type IconSizes = "lg" | "xs" | "sm" | "1x" | "2x" | "3x" | "4x" | "5x" | "6x" | "7x" | "8x" | "9x" | "10x" | "";
|
|
4
|
-
declare type IconProps = {
|
|
4
|
+
export declare type IconProps = {
|
|
5
5
|
aria?: {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { GlobalProps } from '../utilities/globalProps';
|
|
2
3
|
import type { InputCallback } from '../types';
|
|
4
|
+
import { IconProps } from '../pb_icon/_icon';
|
|
3
5
|
declare type SelectOption = {
|
|
4
6
|
value: string;
|
|
5
7
|
text: string;
|
|
@@ -21,6 +23,7 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
21
23
|
htmlOptions?: {
|
|
22
24
|
[key: string]: string | number | boolean | (() => void);
|
|
23
25
|
};
|
|
26
|
+
iconProps?: IconProps;
|
|
24
27
|
id?: string;
|
|
25
28
|
includeBlank?: string;
|
|
26
29
|
inline?: boolean;
|
|
@@ -32,6 +35,9 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
32
35
|
onChange: InputCallback<HTMLSelectElement>;
|
|
33
36
|
options: SelectOption[];
|
|
34
37
|
required?: boolean;
|
|
38
|
+
selectProps?: GlobalProps & {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
};
|
|
35
41
|
showArrow?: boolean;
|
|
36
42
|
value?: string;
|
|
37
43
|
} & {
|
|
@@ -142,6 +148,7 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
142
148
|
htmlOptions?: {
|
|
143
149
|
[key: string]: string | number | boolean | (() => void);
|
|
144
150
|
};
|
|
151
|
+
iconProps?: IconProps;
|
|
145
152
|
id?: string;
|
|
146
153
|
includeBlank?: string;
|
|
147
154
|
inline?: boolean;
|
|
@@ -153,6 +160,9 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
153
160
|
onChange: InputCallback<HTMLSelectElement>;
|
|
154
161
|
options: SelectOption[];
|
|
155
162
|
required?: boolean;
|
|
163
|
+
selectProps?: GlobalProps & {
|
|
164
|
+
[key: string]: any;
|
|
165
|
+
};
|
|
156
166
|
showArrow?: boolean;
|
|
157
167
|
value?: string;
|
|
158
168
|
} & {
|
|
@@ -263,6 +273,7 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
263
273
|
htmlOptions?: {
|
|
264
274
|
[key: string]: string | number | boolean | (() => void);
|
|
265
275
|
};
|
|
276
|
+
iconProps?: IconProps;
|
|
266
277
|
id?: string;
|
|
267
278
|
includeBlank?: string;
|
|
268
279
|
inline?: boolean;
|
|
@@ -274,6 +285,9 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
274
285
|
onChange: InputCallback<HTMLSelectElement>;
|
|
275
286
|
options: SelectOption[];
|
|
276
287
|
required?: boolean;
|
|
288
|
+
selectProps?: GlobalProps & {
|
|
289
|
+
[key: string]: any;
|
|
290
|
+
};
|
|
277
291
|
showArrow?: boolean;
|
|
278
292
|
value?: string;
|
|
279
293
|
} & {
|
|
@@ -382,6 +396,7 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
382
396
|
htmlOptions?: {
|
|
383
397
|
[key: string]: string | number | boolean | (() => void);
|
|
384
398
|
};
|
|
399
|
+
iconProps?: IconProps;
|
|
385
400
|
id?: string;
|
|
386
401
|
includeBlank?: string;
|
|
387
402
|
inline?: boolean;
|
|
@@ -393,6 +408,9 @@ declare const _default: React.ForwardRefExoticComponent<(Pick<{
|
|
|
393
408
|
onChange: InputCallback<HTMLSelectElement>;
|
|
394
409
|
options: SelectOption[];
|
|
395
410
|
required?: boolean;
|
|
411
|
+
selectProps?: GlobalProps & {
|
|
412
|
+
[key: string]: any;
|
|
413
|
+
};
|
|
396
414
|
showArrow?: boolean;
|
|
397
415
|
value?: string;
|
|
398
416
|
} & {
|