playbook_ui 12.5.0.pre.alpha.phonerails1 → 12.6.0.pre.alpha.cssphone1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +2 -0
- data/app/pb_kits/playbook/data/menu.yml +2 -1
- data/app/pb_kits/playbook/index.js +1 -0
- data/app/pb_kits/playbook/pb_button/_button_mixins.scss +2 -2
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +1 -1
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.tsx +72 -0
- data/app/pb_kits/playbook/pb_filter/Filter/{FilterBackground.jsx → FilterBackground.tsx} +12 -14
- data/app/pb_kits/playbook/pb_filter/Filter/{FilterDouble.jsx → FilterDouble.tsx} +7 -8
- data/app/pb_kits/playbook/pb_filter/Filter/{FilterSingle.jsx → FilterSingle.tsx} +25 -25
- data/app/pb_kits/playbook/pb_filter/Filter/{FiltersPopover.jsx → FiltersPopover.tsx} +13 -11
- data/app/pb_kits/playbook/pb_filter/Filter/{ResultsCount.jsx → ResultsCount.tsx} +39 -14
- data/app/pb_kits/playbook/pb_filter/Filter/{SortMenu.jsx → SortMenu.tsx} +6 -6
- data/app/pb_kits/playbook/pb_filter/Filter/{index.jsx → index.tsx} +17 -10
- data/app/pb_kits/playbook/pb_filter/{_filter.jsx → _filter.tsx} +0 -2
- data/app/pb_kits/playbook/pb_list/_list.tsx +2 -2
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.scss +86 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_level_select.tsx +81 -0
- data/app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx +30 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.jsx +86 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_default.md +3 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_multi_level_select/helper_functions.ts +60 -0
- data/app/pb_kits/playbook/pb_multi_level_select/multi_level_select.test.jsx +40 -0
- data/app/pb_kits/playbook/pb_person_contact/{_person_contact.jsx → _person_contact.tsx} +19 -22
- data/app/pb_kits/playbook/pb_person_contact/person_contact.test.js +112 -0
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.scss +52 -16
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +21 -20
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_default.jsx +1 -0
- data/app/pb_kits/playbook/pb_popover/_popover.tsx +33 -32
- data/app/pb_kits/playbook/playbook-doc.js +2 -0
- data/app/pb_kits/playbook/tokens/_animation-curves.scss +30 -30
- data/app/pb_kits/playbook/tokens/_border_radius.scss +15 -16
- data/app/pb_kits/playbook/tokens/_colors.scss +3 -1
- data/app/pb_kits/playbook/tokens/_display.scss +6 -6
- data/app/pb_kits/playbook/tokens/_line_height.scss +7 -7
- data/app/pb_kits/playbook/tokens/_opacity.scss +10 -10
- data/app/pb_kits/playbook/tokens/_positioning.scss +11 -11
- data/app/pb_kits/playbook/tokens/_screen_sizes.scss +10 -10
- data/app/pb_kits/playbook/tokens/_shadows.scss +4 -4
- data/app/pb_kits/playbook/tokens/_spacing.scss +6 -6
- data/app/pb_kits/playbook/tokens/_transition.scss +3 -3
- data/app/pb_kits/playbook/tokens/_typography.scss +35 -46
- data/lib/playbook/version.rb +2 -2
- metadata +22 -12
- data/app/pb_kits/playbook/pb_filter/Filter/CurrentFilters.jsx +0 -76
@@ -1,11 +1,11 @@
|
|
1
1
|
/* @flow */
|
2
|
-
import React, { useEffect, useRef, useState } from
|
3
|
-
import classnames from
|
4
|
-
import { buildAriaProps, buildCss, buildDataProps } from
|
5
|
-
import { globalProps } from
|
6
|
-
import intlTelInput from
|
7
|
-
import
|
8
|
-
import
|
2
|
+
import React, { useEffect, useRef, useState } from 'react'
|
3
|
+
import classnames from 'classnames'
|
4
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
5
|
+
import { globalProps } from '../utilities/globalProps'
|
6
|
+
import intlTelInput from 'intl-tel-input'
|
7
|
+
import TextInput from '../pb_text_input/_text_input'
|
8
|
+
import 'intl-tel-input/build/js/utils.js'
|
9
9
|
|
10
10
|
declare global {
|
11
11
|
interface Window {
|
@@ -50,7 +50,7 @@ const formatAllCountries = () => {
|
|
50
50
|
formatAllCountries()
|
51
51
|
|
52
52
|
const containOnlyNumbers = (value: string) => {
|
53
|
-
return /^(
|
53
|
+
return /^[()+\-\ .\d]*$/g.test(value)
|
54
54
|
}
|
55
55
|
|
56
56
|
const PhoneNumberInput = (props: PhoneNumberInputProps) => {
|
@@ -85,7 +85,8 @@ const PhoneNumberInput = (props: PhoneNumberInputProps) => {
|
|
85
85
|
const inputRef = useRef<HTMLInputElement>()
|
86
86
|
const [inputValue, setInputValue] = useState(value)
|
87
87
|
const [itiInit, setItiInit] = useState<any>()
|
88
|
-
const [error, setError] = useState(
|
88
|
+
const [error, setError] = useState('')
|
89
|
+
const [dropDownIsOpen, setDropDownIsOpen] = useState(false)
|
89
90
|
|
90
91
|
const validateTooLongNumber = (itiInit: any) => {
|
91
92
|
const error = itiInit.getValidationError()
|
@@ -133,18 +134,17 @@ const PhoneNumberInput = (props: PhoneNumberInputProps) => {
|
|
133
134
|
|
134
135
|
useEffect(() => {
|
135
136
|
const telInputInit = new intlTelInput(inputRef.current, {
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
onlyCountries,
|
143
|
-
})
|
144
|
-
|
145
|
-
inputRef.current.addEventListener("countrychange", () =>
|
146
|
-
validateTooLongNumber(telInputInit)
|
137
|
+
separateDialCode: true,
|
138
|
+
preferredCountries,
|
139
|
+
allowDropdown: !disabled,
|
140
|
+
initialCountry,
|
141
|
+
onlyCountries,
|
142
|
+
}
|
147
143
|
)
|
144
|
+
|
145
|
+
inputRef.current.addEventListener("countrychange", () => validateTooLongNumber(telInputInit))
|
146
|
+
inputRef.current.addEventListener("open:countrydropdown", () => setDropDownIsOpen(true))
|
147
|
+
inputRef.current.addEventListener("close:countrydropdown", () => setDropDownIsOpen(false))
|
148
148
|
|
149
149
|
setItiInit(telInputInit)
|
150
150
|
}, [])
|
@@ -152,6 +152,7 @@ const PhoneNumberInput = (props: PhoneNumberInputProps) => {
|
|
152
152
|
return (
|
153
153
|
<div {...ariaProps} {...dataProps} className={classes}>
|
154
154
|
<TextInput
|
155
|
+
className={dropDownIsOpen ? 'dropdown_open' : ''}
|
155
156
|
disabled={disabled}
|
156
157
|
error={error}
|
157
158
|
id={id}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import React, { useEffect } from "react";
|
2
2
|
import ReactDOM from "react-dom";
|
3
|
-
|
4
3
|
import {
|
5
4
|
Popper,
|
6
5
|
Manager as PopperManager,
|
@@ -23,7 +22,7 @@ type PbPopoverProps = {
|
|
23
22
|
aria?: { [key: string]: string };
|
24
23
|
className?: string;
|
25
24
|
closeOnClick?: "outside" | "inside" | "any";
|
26
|
-
data?:
|
25
|
+
data?: { [key: string]: string },
|
27
26
|
id?: string;
|
28
27
|
offset?: boolean;
|
29
28
|
reference: PopperReference & any;
|
@@ -100,31 +99,31 @@ const Popover = (props: PbPopoverProps) => {
|
|
100
99
|
|
101
100
|
return (
|
102
101
|
<Popper
|
103
|
-
|
104
|
-
|
105
|
-
|
102
|
+
modifiers={popoverModifiers({ modifiers, offset })}
|
103
|
+
placement={placement}
|
104
|
+
referenceElement={referenceElement}
|
106
105
|
>
|
107
106
|
{({ placement, ref, style }) => {
|
108
107
|
return (
|
109
108
|
<div
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
109
|
+
{...ariaProps}
|
110
|
+
{...dataProps}
|
111
|
+
className={classes}
|
112
|
+
data-placement={placement}
|
113
|
+
id={id}
|
114
|
+
ref={ref}
|
115
|
+
style={Object.assign({}, style, zIndexStyle)}
|
117
116
|
>
|
118
117
|
<div
|
119
|
-
|
118
|
+
className={classnames(`${buildCss("pb_popover_tooltip")} show`)}
|
120
119
|
>
|
121
120
|
<div
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
121
|
+
className={classnames(
|
122
|
+
"pb_popover_body",
|
123
|
+
popoverSpacing,
|
124
|
+
overflowHandling
|
125
|
+
)}
|
126
|
+
style={widthHeightStyles()}
|
128
127
|
>
|
129
128
|
{children}
|
130
129
|
</div>
|
@@ -192,17 +191,17 @@ const PbReactPopover = (props: PbPopoverProps) => {
|
|
192
191
|
|
193
192
|
const popoverComponent = (
|
194
193
|
<Popover
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
194
|
+
className={className}
|
195
|
+
maxHeight={maxHeight}
|
196
|
+
maxWidth={maxWidth}
|
197
|
+
minHeight={minHeight}
|
198
|
+
minWidth={minWidth}
|
199
|
+
modifiers={modifiers}
|
200
|
+
offset={offset}
|
201
|
+
placement={placement}
|
202
|
+
referenceElement={referenceElement}
|
203
|
+
zIndex={zIndex}
|
204
|
+
{...props}
|
206
205
|
>
|
207
206
|
{children}
|
208
207
|
</Popover>
|
@@ -214,7 +213,9 @@ const PbReactPopover = (props: PbPopoverProps) => {
|
|
214
213
|
{reference && !referenceElement && (
|
215
214
|
<PopperReference>
|
216
215
|
{({ ref }) => (
|
217
|
-
<span
|
216
|
+
<span
|
217
|
+
className="pb_popover_reference_wrapper"
|
218
|
+
ref={ref}>
|
218
219
|
<reference.type {...reference.props} />
|
219
220
|
</span>
|
220
221
|
)}
|
@@ -236,4 +237,4 @@ const PbReactPopover = (props: PbPopoverProps) => {
|
|
236
237
|
);
|
237
238
|
};
|
238
239
|
|
239
|
-
export default PbReactPopover;
|
240
|
+
export default PbReactPopover;
|
@@ -57,6 +57,7 @@ import * as List from 'pb_list/docs'
|
|
57
57
|
import * as LoadingInline from 'pb_loading_inline/docs'
|
58
58
|
import * as Map from 'pb_map/docs'
|
59
59
|
import * as Message from 'pb_message/docs'
|
60
|
+
import * as MultiLevelSelect from 'pb_multi_level_select/docs'
|
60
61
|
import * as MultipleUsers from 'pb_multiple_users/docs'
|
61
62
|
import * as MultipleUsersStacked from 'pb_multiple_users_stacked/docs'
|
62
63
|
import * as Nav from 'pb_nav/docs'
|
@@ -156,6 +157,7 @@ WebpackerReact.setup({
|
|
156
157
|
...LoadingInline,
|
157
158
|
...Map,
|
158
159
|
...Message,
|
160
|
+
...MultiLevelSelect,
|
159
161
|
...MultipleUsers,
|
160
162
|
...MultipleUsersStacked,
|
161
163
|
...Nav,
|
@@ -1,37 +1,37 @@
|
|
1
|
-
$bezier: cubic-bezier(.64, 0, .35, 1);
|
1
|
+
$bezier: cubic-bezier(.64, 0, .35, 1) !default;
|
2
2
|
// +transition-timing-function(cubic-bezier(0.7, 0, 0.3, 1))
|
3
3
|
|
4
4
|
/* Default Equations */
|
5
|
-
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750);
|
6
|
-
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000);
|
7
|
-
$easeIn: cubic-bezier(0.420, 0.000, 1.000, 1.000);
|
8
|
-
$easeOut: cubic-bezier(0.000, 0.000, 0.580, 1.000);
|
9
|
-
$easeInOut: cubic-bezier(0.420, 0.000, 0.580, 1.000);
|
5
|
+
$linear: cubic-bezier(0.250, 0.250, 0.750, 0.750) !default;
|
6
|
+
$ease: cubic-bezier(0.250, 0.100, 0.250, 1.000) !default;
|
7
|
+
$easeIn: cubic-bezier(0.420, 0.000, 1.000, 1.000) !default;
|
8
|
+
$easeOut: cubic-bezier(0.000, 0.000, 0.580, 1.000) !default;
|
9
|
+
$easeInOut: cubic-bezier(0.420, 0.000, 0.580, 1.000) !default;
|
10
10
|
|
11
11
|
/* Penner Equations (approximated) originally created by @robpenner */
|
12
|
-
$easeInQuad: cubic-bezier(0.550, 0.085, 0.680, 0.530);
|
13
|
-
$easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190);
|
14
|
-
$easeInQuart: cubic-bezier(0.895, 0.030, 0.685, 0.220);
|
15
|
-
$easeInQuint: cubic-bezier(0.755, 0.050, 0.855, 0.060);
|
16
|
-
$easeInSine: cubic-bezier(0.470, 0.000, 0.745, 0.715);
|
17
|
-
$easeInExpo: cubic-bezier(0.950, 0.050, 0.795, 0.035);
|
18
|
-
$easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335);
|
19
|
-
$easeInBack: cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
12
|
+
$easeInQuad: cubic-bezier(0.550, 0.085, 0.680, 0.530) !default;
|
13
|
+
$easeInCubic: cubic-bezier(0.550, 0.055, 0.675, 0.190) !default;
|
14
|
+
$easeInQuart: cubic-bezier(0.895, 0.030, 0.685, 0.220) !default;
|
15
|
+
$easeInQuint: cubic-bezier(0.755, 0.050, 0.855, 0.060) !default;
|
16
|
+
$easeInSine: cubic-bezier(0.470, 0.000, 0.745, 0.715) !default;
|
17
|
+
$easeInExpo: cubic-bezier(0.950, 0.050, 0.795, 0.035) !default;
|
18
|
+
$easeInCirc: cubic-bezier(0.600, 0.040, 0.980, 0.335) !default;
|
19
|
+
$easeInBack: cubic-bezier(0.600, -0.280, 0.735, 0.045) !default;
|
20
20
|
|
21
|
-
$easeOutQuad: cubic-bezier(0.250, 0.460, 0.450, 0.940);
|
22
|
-
$easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000);
|
23
|
-
$easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000);
|
24
|
-
$easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
25
|
-
$easeOutSine: cubic-bezier(0.390, 0.575, 0.565, 1.000);
|
26
|
-
$easeOutExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000);
|
27
|
-
$easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000);
|
28
|
-
$easeOutBack: cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
21
|
+
$easeOutQuad: cubic-bezier(0.250, 0.460, 0.450, 0.940) !default;
|
22
|
+
$easeOutCubic: cubic-bezier(0.215, 0.610, 0.355, 1.000) !default;
|
23
|
+
$easeOutQuart: cubic-bezier(0.165, 0.840, 0.440, 1.000) !default;
|
24
|
+
$easeOutQuint: cubic-bezier(0.230, 1.000, 0.320, 1.000) !default;
|
25
|
+
$easeOutSine: cubic-bezier(0.390, 0.575, 0.565, 1.000) !default;
|
26
|
+
$easeOutExpo: cubic-bezier(0.190, 1.000, 0.220, 1.000) !default;
|
27
|
+
$easeOutCirc: cubic-bezier(0.075, 0.820, 0.165, 1.000) !default;
|
28
|
+
$easeOutBack: cubic-bezier(0.175, 0.885, 0.320, 1.275) !default;
|
29
29
|
|
30
|
-
$easeInOutQuad: cubic-bezier(0.455, 0.030, 0.515, 0.955);
|
31
|
-
$easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000);
|
32
|
-
$easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
33
|
-
$easeInOutQuint: cubic-bezier(0.860, 0.000, 0.070, 1.000);
|
34
|
-
$easeInOutSine: cubic-bezier(0.445, 0.050, 0.550, 0.950);
|
35
|
-
$easeInOutExpo: cubic-bezier(1.000, 0.000, 0.000, 1.000);
|
36
|
-
$easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860);
|
37
|
-
$easeInOutBack: cubic-bezier(0.680, -0.550, 0.265, 1.550);
|
30
|
+
$easeInOutQuad: cubic-bezier(0.455, 0.030, 0.515, 0.955) !default;
|
31
|
+
$easeInOutCubic: cubic-bezier(0.645, 0.045, 0.355, 1.000) !default;
|
32
|
+
$easeInOutQuart: cubic-bezier(0.770, 0.000, 0.175, 1.000) !default;
|
33
|
+
$easeInOutQuint: cubic-bezier(0.860, 0.000, 0.070, 1.000) !default;
|
34
|
+
$easeInOutSine: cubic-bezier(0.445, 0.050, 0.550, 0.950) !default;
|
35
|
+
$easeInOutExpo: cubic-bezier(1.000, 0.000, 0.000, 1.000) !default;
|
36
|
+
$easeInOutCirc: cubic-bezier(0.785, 0.135, 0.150, 0.860) !default;
|
37
|
+
$easeInOutBack: cubic-bezier(0.680, -0.550, 0.265, 1.550) !default;
|
@@ -1,20 +1,19 @@
|
|
1
|
-
|
2
1
|
// Border Radius
|
3
|
-
$border_rad_lightest: 1px;
|
4
|
-
$border_rad_lighter: 2px;
|
5
|
-
$border_rad_light: 4px;
|
6
|
-
$border_rad_normal: 0;
|
7
|
-
$border_rad_heavy: 5px;
|
8
|
-
$border_rad_heavier: 6px;
|
9
|
-
$border_rad_heaviest: 7px;
|
10
|
-
$border_rad_mega: 1000px;
|
11
|
-
$border_radius_xs: 4px;
|
12
|
-
$border_radius_sm: 4px;
|
13
|
-
$border_radius_md: 6px;
|
14
|
-
$border_radius_lg: 8px;
|
15
|
-
$border_radius_xl: 16px;
|
16
|
-
$border_radius_rounded: 1000px;
|
17
|
-
$border_radius_none: 0;
|
2
|
+
$border_rad_lightest: 1px !default;
|
3
|
+
$border_rad_lighter: 2px !default;
|
4
|
+
$border_rad_light: 4px !default;
|
5
|
+
$border_rad_normal: 0 !default;
|
6
|
+
$border_rad_heavy: 5px !default;
|
7
|
+
$border_rad_heavier: 6px !default;
|
8
|
+
$border_rad_heaviest: 7px !default;
|
9
|
+
$border_rad_mega: 1000px !default;
|
10
|
+
$border_radius_xs: 4px !default;
|
11
|
+
$border_radius_sm: 4px !default;
|
12
|
+
$border_radius_md: 6px !default;
|
13
|
+
$border_radius_lg: 8px !default;
|
14
|
+
$border_radius_xl: 16px !default;
|
15
|
+
$border_radius_rounded: 1000px !default;
|
16
|
+
$border_radius_none: 0 !default;
|
18
17
|
$border_radius: (
|
19
18
|
lightest: $border_rad_lightest,
|
20
19
|
lighter: $border_rad_lighter,
|
@@ -11,7 +11,7 @@ $teal: #00C4D7 !default;
|
|
11
11
|
$red: #DA0014 !default;
|
12
12
|
$red_dark: #ff4a50 !default;
|
13
13
|
$yellow: #F9BB00 !default;
|
14
|
-
$green: #
|
14
|
+
$green: #1CA05C !default;
|
15
15
|
$orange: #FD804C !default;
|
16
16
|
$default: #93a8b8 !default;
|
17
17
|
$colors: (
|
@@ -75,6 +75,8 @@ $card_colors: (
|
|
75
75
|
);
|
76
76
|
|
77
77
|
$primary-action: $primary !default;
|
78
|
+
$secondary-action: rgba($primary_action, 0.05) !default;
|
79
|
+
|
78
80
|
$action_colors: (
|
79
81
|
primary_action: $primary-action
|
80
82
|
);
|
@@ -1,9 +1,9 @@
|
|
1
|
-
$display_inline: inline;
|
2
|
-
$display_block: block;
|
3
|
-
$display_inline_block: inline-block;
|
4
|
-
$display_flex: flex;
|
5
|
-
$display_none: none;
|
6
|
-
$display_inline_flex: inline-flex;
|
1
|
+
$display_inline: inline !default;
|
2
|
+
$display_block: block !default;
|
3
|
+
$display_inline_block: inline-block !default;
|
4
|
+
$display_flex: flex !default;
|
5
|
+
$display_none: none !default;
|
6
|
+
$display_inline_flex: inline-flex !default;
|
7
7
|
$displays: (
|
8
8
|
display_none: $display_none,
|
9
9
|
display_flex: $display_flex,
|
@@ -1,10 +1,10 @@
|
|
1
|
-
$lh_tightest: 1;
|
2
|
-
$lh_tighter: 1.2;
|
3
|
-
$lh_tight: 1.4;
|
4
|
-
$lh_normal: 1.5;
|
5
|
-
$lh_loose: 1.6;
|
6
|
-
$lh_looser: 1.8;
|
7
|
-
$lh_loosest: 2;
|
1
|
+
$lh_tightest: 1 !default;
|
2
|
+
$lh_tighter: 1.2 !default;
|
3
|
+
$lh_tight: 1.4 !default;
|
4
|
+
$lh_normal: 1.5 !default;
|
5
|
+
$lh_loose: 1.6 !default;
|
6
|
+
$lh_looser: 1.8 !default;
|
7
|
+
$lh_loosest: 2 !default;
|
8
8
|
$line_height: (
|
9
9
|
tightest: $lh_tightest,
|
10
10
|
tighter: $lh_tighter,
|
@@ -1,13 +1,13 @@
|
|
1
|
-
$opacity_1: .1;
|
2
|
-
$opacity_2: .2;
|
3
|
-
$opacity_3: .3;
|
4
|
-
$opacity_4: .4;
|
5
|
-
$opacity_5: .5;
|
6
|
-
$opacity_6: .6;
|
7
|
-
$opacity_7: .7;
|
8
|
-
$opacity_8: .8;
|
9
|
-
$opacity_9: .9;
|
10
|
-
$opacity_10: 1;
|
1
|
+
$opacity_1: .1 !default;
|
2
|
+
$opacity_2: .2 !default;
|
3
|
+
$opacity_3: .3 !default;
|
4
|
+
$opacity_4: .4 !default;
|
5
|
+
$opacity_5: .5 !default;
|
6
|
+
$opacity_6: .6 !default;
|
7
|
+
$opacity_7: .7 !default;
|
8
|
+
$opacity_8: .8 !default;
|
9
|
+
$opacity_9: .9 !default;
|
10
|
+
$opacity_10: 1 !default;
|
11
11
|
$opacity: (
|
12
12
|
opacity_1: $opacity_1,
|
13
13
|
opacity_2: $opacity_2,
|
@@ -1,14 +1,14 @@
|
|
1
1
|
// z_index variables
|
2
|
-
$z_1: 100;
|
3
|
-
$z_2: 200;
|
4
|
-
$z_3: 300;
|
5
|
-
$z_4: 400;
|
6
|
-
$z_5: 500;
|
7
|
-
$z_6: 600;
|
8
|
-
$z_7: 700;
|
9
|
-
$z_8: 800;
|
10
|
-
$z_9: 900;
|
11
|
-
$z_10: 1000;
|
2
|
+
$z_1: 100 !default;
|
3
|
+
$z_2: 200 !default;
|
4
|
+
$z_3: 300 !default;
|
5
|
+
$z_4: 400 !default;
|
6
|
+
$z_5: 500 !default;
|
7
|
+
$z_6: 600 !default;
|
8
|
+
$z_7: 700 !default;
|
9
|
+
$z_8: 800 !default;
|
10
|
+
$z_9: 900 !default;
|
11
|
+
$z_10: 1000 !default;
|
12
12
|
$z_index: (
|
13
13
|
zindex_1: $z_1,
|
14
14
|
zindex_2: $z_1,
|
@@ -26,7 +26,7 @@ $z_layers: (
|
|
26
26
|
"default": 0
|
27
27
|
);
|
28
28
|
|
29
|
-
$offscreen: -9999px;
|
29
|
+
$offscreen: -9999px !default;
|
30
30
|
|
31
31
|
@function z_index_for($layer) {
|
32
32
|
@if not map-has-key($z_layers, $layer) {
|
@@ -1,13 +1,13 @@
|
|
1
|
-
$screen-xs-min: 575px;
|
2
|
-
$screen-xs-max: $screen-xs-min - 1;
|
3
|
-
$screen-sm-min: 576px;
|
4
|
-
$screen-sm-max: $screen-sm-min - 1;
|
5
|
-
$screen-md-min: 768px;
|
6
|
-
$screen-md-max: $screen-md-min - 1;
|
7
|
-
$screen-lg-min: 992px;
|
8
|
-
$screen-lg-max: $screen-lg-min - 1;
|
9
|
-
$screen-xl-min: 1200px;
|
10
|
-
$screen-xl-max: $screen-xl-min - 1;
|
1
|
+
$screen-xs-min: 575px !default;
|
2
|
+
$screen-xs-max: $screen-xs-min - 1 !default;
|
3
|
+
$screen-sm-min: 576px !default;
|
4
|
+
$screen-sm-max: $screen-sm-min - 1 !default;
|
5
|
+
$screen-md-min: 768px !default;
|
6
|
+
$screen-md-max: $screen-md-min - 1 !default;
|
7
|
+
$screen-lg-min: 992px !default;
|
8
|
+
$screen-lg-max: $screen-lg-min - 1 !default;
|
9
|
+
$screen-xl-min: 1200px !default;
|
10
|
+
$screen-xl-max: $screen-xl-min - 1 !default;
|
11
11
|
|
12
12
|
$breakpoints: (
|
13
13
|
xs: $screen-xs-min,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
@import "colors";
|
2
2
|
@import "opacity";
|
3
3
|
|
4
|
-
$shadow_none: 0 0 0 0 transparent;
|
5
|
-
$shadow_deep: 0 4px 10px 0 rgba($shadow, 0.16);
|
6
|
-
$shadow_deeper: 0 12px 28px 0 rgba($shadow, 0.18);
|
7
|
-
$shadow_deepest: 0 30px 38px 4px $shadow, 0 2px 14px 4px rgba($shadow, 0.1);
|
4
|
+
$shadow_none: 0 0 0 0 transparent !default;
|
5
|
+
$shadow_deep: 0 4px 10px 0 rgba($shadow, 0.16) !default;
|
6
|
+
$shadow_deeper: 0 12px 28px 0 rgba($shadow, 0.18) !default;
|
7
|
+
$shadow_deepest: 0 30px 38px 4px $shadow, 0 2px 14px 4px rgba($shadow, 0.1) !default;
|
8
8
|
$box_shadows: (
|
9
9
|
shadow_none: $shadow_none,
|
10
10
|
shadow_deep: $shadow_deep,
|
@@ -1,9 +1,9 @@
|
|
1
|
-
$space_xxs: 4px;
|
2
|
-
$space_xs: 8px;
|
3
|
-
$space_sm: 16px;
|
4
|
-
$space_md: 24px;
|
5
|
-
$space_lg: 32px;
|
6
|
-
$space_xl: 40px;
|
1
|
+
$space_xxs: 4px !default;
|
2
|
+
$space_xs: 8px !default;
|
3
|
+
$space_sm: 16px !default;
|
4
|
+
$space_md: 24px !default;
|
5
|
+
$space_lg: 32px !default;
|
6
|
+
$space_xl: 40px !default;
|
7
7
|
$spaces:(
|
8
8
|
space_xxs: $space_xxs,
|
9
9
|
space_xs: $space_xs,
|
@@ -1,3 +1,3 @@
|
|
1
|
-
$transition_default: 0.3s;
|
2
|
-
$transition_short: 0.15s;
|
3
|
-
$transition_cubic: 0.2s cubic-bezier(0.95, 0.05, 0.795, 0.035);
|
1
|
+
$transition_default: 0.3s !default;
|
2
|
+
$transition_short: 0.15s !default;
|
3
|
+
$transition_cubic: 0.2s cubic-bezier(0.95, 0.05, 0.795, 0.035) !default;
|
@@ -1,56 +1,45 @@
|
|
1
|
-
|
2
1
|
$font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif !default;
|
3
2
|
|
4
|
-
|
5
3
|
/* CLEAN UP AND REMOVE */
|
6
|
-
$font_jumbo: 36px;
|
7
|
-
$font_largest: 32px;
|
8
|
-
$font_larger: 28px;
|
9
|
-
$font_large: 20px;
|
10
|
-
$font_base: 16px;
|
11
|
-
$font_default: $font_base;
|
12
|
-
$font_normal: $font_base;
|
13
|
-
$font_medium: $font_base;
|
14
|
-
$font_small: 14px;
|
15
|
-
$font_smaller: 12px;
|
16
|
-
$font_smallest: 11px;
|
17
|
-
|
18
|
-
|
19
|
-
$
|
20
|
-
$
|
21
|
-
$
|
22
|
-
$
|
23
|
-
$
|
24
|
-
$
|
25
|
-
$
|
26
|
-
$
|
27
|
-
$
|
28
|
-
$
|
29
|
-
$text_smallest: $font_smallest;
|
30
|
-
|
4
|
+
$font_jumbo: 36px !default;
|
5
|
+
$font_largest: 32px !default;
|
6
|
+
$font_larger: 28px !default;
|
7
|
+
$font_large: 20px !default;
|
8
|
+
$font_base: 16px !default;
|
9
|
+
$font_default: $font_base !default;
|
10
|
+
$font_normal: $font_base !default;
|
11
|
+
$font_medium: $font_base !default;
|
12
|
+
$font_small: 14px !default;
|
13
|
+
$font_smaller: 12px !default;
|
14
|
+
$font_smallest: 11px !default;
|
15
|
+
|
16
|
+
$text_jumbo: $font_jumbo !default;
|
17
|
+
$text_largest: $font_largest !default;
|
18
|
+
$text_larger: $font_larger !default;
|
19
|
+
$text_large: $font_large !default;
|
20
|
+
$text_base: $font_base !default;
|
21
|
+
$text_default: $font_base !default;
|
22
|
+
$text_normal: $font_base !default;
|
23
|
+
$text_medium: $font_base !default;
|
24
|
+
$text_small: $font_small !default;
|
25
|
+
$text_smaller: $font_smaller !default;
|
26
|
+
$text_smallest: $font_smallest !default;
|
31
27
|
|
32
28
|
/* Headings */
|
33
|
-
$heading_1: 46px;
|
34
|
-
$heading_2: 34px;
|
35
|
-
$heading_3: $font_larger;
|
36
|
-
$heading_4: $font_base;
|
37
|
-
|
38
|
-
|
39
|
-
|
29
|
+
$heading_1: 46px !default;
|
30
|
+
$heading_2: 34px !default;
|
31
|
+
$heading_3: $font_larger !default;
|
32
|
+
$heading_4: $font_base !default;
|
40
33
|
|
41
34
|
// Letter Spacing
|
42
|
-
$lspace_tightest: -.1em;
|
43
|
-
$lspace_tighter: -.07em;
|
44
|
-
$lspace_tight: -.01em;
|
45
|
-
$lspace_normal: 0;
|
46
|
-
$lspace_loose: .03em;
|
47
|
-
$lspace_looser: .07em;
|
48
|
-
$lspace_loosest: .1em;
|
49
|
-
$lspace_super_loosest: .2em;
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
35
|
+
$lspace_tightest: -.1em !default;
|
36
|
+
$lspace_tighter: -.07em !default;
|
37
|
+
$lspace_tight: -.01em !default;
|
38
|
+
$lspace_normal: 0 !default;
|
39
|
+
$lspace_loose: .03em !default;
|
40
|
+
$lspace_looser: .07em !default;
|
41
|
+
$lspace_loosest: .1em !default;
|
42
|
+
$lspace_super_loosest: .2em !default;
|
54
43
|
|
55
44
|
/* Standard Font Weights */
|
56
45
|
$bold: 600 !default;
|
data/lib/playbook/version.rb
CHANGED