@drivy/cobalt 1.1.2 → 1.1.4
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/cjs/tokens/icons.js +1 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/components/Form/Slider.js +0 -1
- package/components/Form/Slider.js.map +1 -1
- package/components/Icon/__generated__/SmilingFaceIcon.js +21 -0
- package/components/Icon/__generated__/SmilingFaceIcon.js.map +1 -0
- package/components/Icon/__generated__/StarHalfIcon.js +2 -2
- package/components/Icon/__generated__/StarHalfIcon.js.map +1 -1
- package/components/Icon/__generated__/StarIcon.js +2 -2
- package/components/Icon/__generated__/StarIcon.js.map +1 -1
- package/icons/index.js +1 -0
- package/icons/index.js.map +1 -1
- package/icons/smiling-face.js +4 -0
- package/icons/smiling-face.js.map +1 -0
- package/icons/smiling-face.svg +1 -0
- package/icons/star-half.js +1 -1
- package/icons/star-half.svg +1 -1
- package/icons/star.js +1 -1
- package/icons/star.svg +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +15 -15
- package/styles/components/BasicCell/index.scss +8 -10
- package/styles/components/BulletList/index.scss +3 -3
- package/styles/components/Buttons/DefaultButton/index.scss +1 -1
- package/styles/components/Buttons/GhostButton/index.scss +2 -4
- package/styles/components/Buttons/index.scss +9 -9
- package/styles/components/Calendar/CalendarDayPicker/index.scss +10 -11
- package/styles/components/Calendar/CalendarRangePicker/index.scss +20 -21
- package/styles/components/Calendar/CalendarView/index.scss +11 -13
- package/styles/components/Callout/index.scss +5 -16
- package/styles/components/Card/index.scss +11 -17
- package/styles/components/Cell/index.scss +6 -4
- package/styles/components/Chip/index.scss +8 -10
- package/styles/components/ContainedIcon/index.scss +11 -11
- package/styles/components/EmptyState/index.scss +6 -12
- package/styles/components/Flash/index.scss +7 -13
- package/styles/components/Form/Autocomplete/index.scss +1 -3
- package/styles/components/Form/CheckablePill.scss +9 -19
- package/styles/components/Form/Checkmark.scss +14 -23
- package/styles/components/Form/ComposedField.scss +2 -2
- package/styles/components/Form/Fieldset.scss +6 -9
- package/styles/components/Form/Hint.scss +4 -8
- package/styles/components/Form/RadioWithDetails.scss +11 -16
- package/styles/components/Form/Select.scss +2 -2
- package/styles/components/Form/Stepper.scss +7 -8
- package/styles/components/Form/TextArea.scss +4 -4
- package/styles/components/Form/TextInput.scss +2 -2
- package/styles/components/Form/ToggleSwitch.scss +12 -15
- package/styles/components/Form/field.scss +8 -6
- package/styles/components/Form/form.scss +8 -12
- package/styles/components/Helper/index.scss +4 -9
- package/styles/components/Icon/index.scss +4 -6
- package/styles/components/Pagination/index.scss +1 -1
- package/styles/components/PhotoDropzone/index.scss +9 -12
- package/styles/components/Pill/index.scss +7 -17
- package/styles/components/PlateNumber/index.scss +1 -7
- package/styles/components/Popover/index.scss +20 -19
- package/styles/components/PriceTable/index.scss +6 -5
- package/styles/components/ProgressBanner/index.scss +5 -18
- package/styles/components/ProgressBar/index.scss +6 -16
- package/styles/components/ProgressCircular/index.scss +5 -5
- package/styles/components/Rating/index.scss +4 -5
- package/styles/components/Sidepanel/index.scss +4 -4
- package/styles/components/TabBar/index.scss +10 -9
- package/styles/components/Tabs/index.scss +1 -2
- package/styles/components/Tag/index.scss +11 -23
- package/styles/core/global-variables.scss +1 -1
- package/tokens/icons.js +1 -0
- package/tokens/icons.js.map +1 -1
- package/types/src/components/Form/Autocomplete/index.d.ts +1 -1
- package/types/src/components/Form/TextInput.d.ts +1 -1
- package/types/src/components/Icon/__generated__/SmilingFaceIcon.d.ts +10 -0
- package/types/src/components/Icon/__generated__/index.d.ts +1 -0
- package/types/src/components/Icon/index.d.ts +1 -1
- package/types/src/icons/index.d.ts +1 -0
- package/types/src/tokens/index.d.ts +1 -0
- package/utils/getCobaltTailwindcssConfig.js.map +1 -1
package/cjs/tokens/icons.js
CHANGED
|
@@ -253,6 +253,7 @@ const icons = {
|
|
|
253
253
|
skiRack: "ski-rack.svg",
|
|
254
254
|
slider: "slider.svg",
|
|
255
255
|
smartphone: "smartphone.svg",
|
|
256
|
+
smilingFace: "smiling-face.svg",
|
|
256
257
|
snowTire: "snow-tire.svg",
|
|
257
258
|
socialFacebook: "social-facebook.svg",
|
|
258
259
|
socialLinkedin: "social-linkedin.svg",
|
package/cjs/tokens/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -24,7 +24,6 @@ const Slider = ({ defaultValue: _defaultValue, value: _value, min, max, disabled
|
|
|
24
24
|
return [0];
|
|
25
25
|
}
|
|
26
26
|
const [sliderValue, setSliderValue] = useState(() => initValue());
|
|
27
|
-
console.log("className", className);
|
|
28
27
|
return (React.createElement(FieldWrapper, { ...restProps, status: status, label: label, hint: hint },
|
|
29
28
|
React.createElement(Slider$1.Root, { ...restProps, className: cx("cobalt-slider", className, {
|
|
30
29
|
"cobalt-slider--disabled": disabled,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../../src/components/Form/Slider.tsx"],"sourcesContent":["import React, { PropsWithChildren, useState } from \"react\"\nimport { Slider as ArkSlider, SliderRootProps } from \"@ark-ui/react\"\nimport cx from \"classnames\"\nimport { FieldWrapper, FieldWrapperProps } from \"./field\"\n\nexport type SliderPropsType<T extends number | number[]> = {\n /**\n * mandatory for A11y\n */\n value?: T\n defaultValue?: T\n ariaLabel: string\n /**\n * values interval\n */\n step?: number\n disabled?: boolean\n /**\n * Listener called when the value is changed\n */\n onValueChange?: (newValue: T) => void\n /**\n * Function used to visually display the slider value\n */\n renderValue?: (\n value: T,\n status: FieldWrapperProps[\"status\"]\n ) => React.ReactElement\n\n onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void\n} & FieldWrapperProps &\n Omit<SliderRootProps, \"value\" | \"defaultValue\" | \"onValueChange\">\n\nconst Slider = <T extends number | number[]>({\n defaultValue: _defaultValue,\n value: _value,\n min,\n max,\n disabled,\n onValueChange,\n renderValue,\n ariaLabel,\n hint,\n label,\n status,\n className,\n ...restProps\n}: SliderPropsType<T>) => {\n const value: number[] | undefined = Array.isArray(_value)\n ? _value\n : _value !== undefined && !isNaN(_value)\n ? [_value]\n : undefined\n const defaultValue: number[] | undefined = Array.isArray(_defaultValue)\n ? _defaultValue\n : _defaultValue !== undefined && !isNaN(_defaultValue)\n ? [_defaultValue]\n : undefined\n function initValue(): number[] {\n if (value !== undefined) return value\n if (defaultValue !== undefined) return defaultValue\n if (min !== undefined) return [min]\n return [0]\n }\n\n const [sliderValue, setSliderValue] = useState(() => initValue())\n\n
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../../src/components/Form/Slider.tsx"],"sourcesContent":["import React, { PropsWithChildren, useState } from \"react\"\nimport { Slider as ArkSlider, SliderRootProps } from \"@ark-ui/react\"\nimport cx from \"classnames\"\nimport { FieldWrapper, FieldWrapperProps } from \"./field\"\n\nexport type SliderPropsType<T extends number | number[]> = {\n /**\n * mandatory for A11y\n */\n value?: T\n defaultValue?: T\n ariaLabel: string\n /**\n * values interval\n */\n step?: number\n disabled?: boolean\n /**\n * Listener called when the value is changed\n */\n onValueChange?: (newValue: T) => void\n /**\n * Function used to visually display the slider value\n */\n renderValue?: (\n value: T,\n status: FieldWrapperProps[\"status\"]\n ) => React.ReactElement\n\n onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void\n} & FieldWrapperProps &\n Omit<SliderRootProps, \"value\" | \"defaultValue\" | \"onValueChange\">\n\nconst Slider = <T extends number | number[]>({\n defaultValue: _defaultValue,\n value: _value,\n min,\n max,\n disabled,\n onValueChange,\n renderValue,\n ariaLabel,\n hint,\n label,\n status,\n className,\n ...restProps\n}: SliderPropsType<T>) => {\n const value: number[] | undefined = Array.isArray(_value)\n ? _value\n : _value !== undefined && !isNaN(_value)\n ? [_value]\n : undefined\n const defaultValue: number[] | undefined = Array.isArray(_defaultValue)\n ? _defaultValue\n : _defaultValue !== undefined && !isNaN(_defaultValue)\n ? [_defaultValue]\n : undefined\n function initValue(): number[] {\n if (value !== undefined) return value\n if (defaultValue !== undefined) return defaultValue\n if (min !== undefined) return [min]\n return [0]\n }\n\n const [sliderValue, setSliderValue] = useState(() => initValue())\n\n return (\n <FieldWrapper {...restProps} status={status} label={label} hint={hint}>\n <ArkSlider.Root\n {...restProps}\n className={cx(\"cobalt-slider\", className, {\n \"cobalt-slider--disabled\": disabled,\n \"cobalt-slider--withHint\": hint,\n })}\n thumbAlignment=\"contain\"\n disabled={disabled}\n aria-label={[ariaLabel]}\n value={sliderValue}\n min={min}\n max={max}\n // Need to force disbplaying in smaller spaces like popovers\n thumbSize={{\n width: 24,\n height: 24,\n }}\n onValueChange={({ value: newValueArr }) => {\n setSliderValue(newValueArr)\n const newValue =\n newValueArr.length === 1 ? newValueArr[0] : newValueArr\n onValueChange && onValueChange(newValue as T)\n }}\n >\n <ArkSlider.Label className={FieldWrapper.labelClassName}>\n {label}\n </ArkSlider.Label>\n {renderValue && (\n <div className=\"cobalt-slider__value-container\">\n {renderValue(\n (sliderValue.length === 1 ? sliderValue[0] : sliderValue) as T,\n status\n )}\n </div>\n )}\n <ArkSlider.Control>\n <ArkSlider.Track>\n <ArkSlider.Range />\n </ArkSlider.Track>\n {sliderValue.map((_v, i) => (\n <ArkSlider.Thumb key={i} index={i}>\n <ArkSlider.HiddenInput />\n </ArkSlider.Thumb>\n ))}\n </ArkSlider.Control>\n </ArkSlider.Root>\n </FieldWrapper>\n )\n}\n\nexport default Slider\n\nexport const SliderValueMeta = ({ children }: PropsWithChildren) => {\n return <span className=\"cobalt-slider__value-meta\">{children}</span>\n}\n"],"names":["ArkSlider"],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import capitalize from '../../utils/capitalize.js';
|
|
3
|
+
import 'lodash.throttle';
|
|
4
|
+
import cx from 'classnames';
|
|
5
|
+
|
|
6
|
+
const iconSource = "smilingFace";
|
|
7
|
+
const SmilingFaceIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
8
|
+
const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
|
|
9
|
+
[`cobalt-Icon--color${capitalize(color)}`]: color,
|
|
10
|
+
"cobalt-Icon--size16": size === 16,
|
|
11
|
+
"cobalt-Icon--size20": size === 20,
|
|
12
|
+
"cobalt-Icon--size32": size === 32,
|
|
13
|
+
"cobalt-Icon--contained": contained,
|
|
14
|
+
});
|
|
15
|
+
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
|
|
16
|
+
return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
17
|
+
React.createElement("path", { fillRule: "evenodd", d: "M19.8 11.678a8.182 8.182 0 1 1-16.364 0 8.182 8.182 0 0 1 16.363 0m1.818 0c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10m-14.546-.455a.91.91 0 1 1 1.818 0h1.819a2.727 2.727 0 1 0-5.455 0zm4.546 4.546a4.6 4.6 0 0 1-4.174-2.652l-1.653.758a6.42 6.42 0 0 0 5.827 3.712 6.42 6.42 0 0 0 5.826-3.712l-1.653-.758a4.6 4.6 0 0 1-4.173 2.652m3.636-5.455a.91.91 0 0 0-.909.91h-1.818a2.727 2.727 0 0 1 5.454 0h-1.818a.91.91 0 0 0-.909-.91", clipRule: "evenodd" })));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { SmilingFaceIcon as default };
|
|
21
|
+
//# sourceMappingURL=SmilingFaceIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SmilingFaceIcon.js","sources":["../../../../src/components/Icon/__generated__/SmilingFaceIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"smilingFace\"\nconst SmilingFaceIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path\n fillRule=\"evenodd\"\n d=\"M19.8 11.678a8.182 8.182 0 1 1-16.364 0 8.182 8.182 0 0 1 16.363 0m1.818 0c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10m-14.546-.455a.91.91 0 1 1 1.818 0h1.819a2.727 2.727 0 1 0-5.455 0zm4.546 4.546a4.6 4.6 0 0 1-4.174-2.652l-1.653.758a6.42 6.42 0 0 0 5.827 3.712 6.42 6.42 0 0 0 5.826-3.712l-1.653-.758a4.6 4.6 0 0 1-4.173 2.652m3.636-5.455a.91.91 0 0 0-.909.91h-1.818a2.727 2.727 0 0 1 5.454 0h-1.818a.91.91 0 0 0-.909-.91\"\n clipRule=\"evenodd\"\n />\n </svg>\n )\n}\nexport default SmilingFaceIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,aAAa,CAAA;AAChC,MAAM,eAAe,GAAG,CAAC,EACvB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,kcAAkc,EACpc,QAAQ,EAAC,SAAS,EAClB,CAAA,CACE,CACP,CAAA;AACH;;;;"}
|
|
@@ -13,8 +13,8 @@ const StarHalfIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
|
13
13
|
"cobalt-Icon--contained": contained,
|
|
14
14
|
});
|
|
15
15
|
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
|
|
16
|
-
return wrap(React.createElement("svg", {
|
|
17
|
-
React.createElement("path", { d: "M12
|
|
16
|
+
return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
17
|
+
React.createElement("path", { d: "M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025" })));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { StarHalfIcon as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarHalfIcon.js","sources":["../../../../src/components/Icon/__generated__/StarHalfIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"starHalf\"\nconst StarHalfIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg
|
|
1
|
+
{"version":3,"file":"StarHalfIcon.js","sources":["../../../../src/components/Icon/__generated__/StarHalfIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"starHalf\"\nconst StarHalfIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025\" />\n </svg>\n )\n}\nexport default StarHalfIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,UAAU,CAAA;AAC7B,MAAM,YAAY,GAAG,CAAC,EACpB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,qMAAqM,EAAG,CAAA,CAC5M,CACP,CAAA;AACH;;;;"}
|
|
@@ -13,8 +13,8 @@ const StarIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
|
13
13
|
"cobalt-Icon--contained": contained,
|
|
14
14
|
});
|
|
15
15
|
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
|
|
16
|
-
return wrap(React.createElement("svg", {
|
|
17
|
-
React.createElement("path", {
|
|
16
|
+
return wrap(React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
17
|
+
React.createElement("path", { d: "M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z" })));
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export { StarIcon as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StarIcon.js","sources":["../../../../src/components/Icon/__generated__/StarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"star\"\nconst StarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg
|
|
1
|
+
{"version":3,"file":"StarIcon.js","sources":["../../../../src/components/Icon/__generated__/StarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"star\"\nconst StarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n return wrap(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\">\n <path d=\"M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z\" />\n </svg>\n )\n}\nexport default StarIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,MAAM,CAAA;AACzB,MAAM,QAAQ,GAAG,CAAC,EAChB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AACD,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IACD,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,KAAK,EAAC,4BAA4B,EAAC,OAAO,EAAC,WAAW,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,kUAAkU,EAAG,CAAA,CACzU,CACP,CAAA;AACH;;;;"}
|
package/icons/index.js
CHANGED
|
@@ -248,6 +248,7 @@ export { default as shop } from './shop.js';
|
|
|
248
248
|
export { default as skiRack } from './ski-rack.js';
|
|
249
249
|
export { default as slider } from './slider.js';
|
|
250
250
|
export { default as smartphone } from './smartphone.js';
|
|
251
|
+
export { default as smilingFace } from './smiling-face.js';
|
|
251
252
|
export { default as snowTire } from './snow-tire.js';
|
|
252
253
|
export { default as socialFacebook } from './social-facebook.js';
|
|
253
254
|
export { default as socialLinkedin } from './social-linkedin.js';
|
package/icons/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var smilingFace = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path fill-rule=\"evenodd\" d=\"M19.8 11.678a8.182 8.182 0 1 1-16.364 0 8.182 8.182 0 0 1 16.363 0m1.818 0c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10m-14.546-.455a.91.91 0 1 1 1.818 0h1.819a2.727 2.727 0 1 0-5.455 0zm4.546 4.546a4.6 4.6 0 0 1-4.174-2.652l-1.653.758a6.42 6.42 0 0 0 5.827 3.712 6.42 6.42 0 0 0 5.826-3.712l-1.653-.758a4.6 4.6 0 0 1-4.173 2.652m3.636-5.455a.91.91 0 0 0-.909.91h-1.818a2.727 2.727 0 0 1 5.454 0h-1.818a.91.91 0 0 0-.909-.91\" clip-rule=\"evenodd\"/></svg>";
|
|
2
|
+
|
|
3
|
+
export { smilingFace as default };
|
|
4
|
+
//# sourceMappingURL=smiling-face.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smiling-face.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M19.8 11.678a8.182 8.182 0 1 1-16.364 0 8.182 8.182 0 0 1 16.363 0m1.818 0c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10 10 4.477 10 10m-14.546-.455a.91.91 0 1 1 1.818 0h1.819a2.727 2.727 0 1 0-5.455 0zm4.546 4.546a4.6 4.6 0 0 1-4.174-2.652l-1.653.758a6.42 6.42 0 0 0 5.827 3.712 6.42 6.42 0 0 0 5.826-3.712l-1.653-.758a4.6 4.6 0 0 1-4.173 2.652m3.636-5.455a.91.91 0 0 0-.909.91h-1.818a2.727 2.727 0 0 1 5.454 0h-1.818a.91.91 0 0 0-.909-.91" clip-rule="evenodd"/></svg>
|
package/icons/star-half.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var starHalf = "<svg
|
|
1
|
+
var starHalf = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025\"/></svg>";
|
|
2
2
|
|
|
3
3
|
export { starHalf as default };
|
|
4
4
|
//# sourceMappingURL=star-half.js.map
|
package/icons/star-half.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 18.941V1.771a.2.2 0 0 0-.181.115L8.8 8.316a.2.2 0 0 1-.151.113L1.885 9.462a.2.2 0 0 0-.113.338l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .097-.025"/></svg>
|
package/icons/star.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var star = "<svg
|
|
1
|
+
var star = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z\"/></svg>";
|
|
2
2
|
|
|
3
3
|
export { star as default };
|
|
4
4
|
//# sourceMappingURL=star.js.map
|
package/icons/star.svg
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12.181 1.886a.2.2 0 0 0-.362 0l-3.018 6.43a.2.2 0 0 1-.151.113L1.885 9.463a.2.2 0 0 0-.113.337l4.908 5.03a.2.2 0 0 1 .054.172l-1.157 7.091a.2.2 0 0 0 .294.208l6.032-3.335a.2.2 0 0 1 .194 0l6.032 3.335a.2.2 0 0 0 .294-.207l-1.157-7.092a.2.2 0 0 1 .055-.172l4.907-5.03a.2.2 0 0 0-.113-.338L15.35 8.43a.2.2 0 0 1-.15-.113z"/></svg>
|
package/index.js
CHANGED
|
@@ -304,6 +304,7 @@ export { default as ShopIcon } from './components/Icon/__generated__/ShopIcon.js
|
|
|
304
304
|
export { default as SkiRackIcon } from './components/Icon/__generated__/SkiRackIcon.js';
|
|
305
305
|
export { default as SliderIcon } from './components/Icon/__generated__/SliderIcon.js';
|
|
306
306
|
export { default as SmartphoneIcon } from './components/Icon/__generated__/SmartphoneIcon.js';
|
|
307
|
+
export { default as SmilingFaceIcon } from './components/Icon/__generated__/SmilingFaceIcon.js';
|
|
307
308
|
export { default as SnowTireIcon } from './components/Icon/__generated__/SnowTireIcon.js';
|
|
308
309
|
export { default as SocialFacebookIcon } from './components/Icon/__generated__/SocialFacebookIcon.js';
|
|
309
310
|
export { default as SocialLinkedinIcon } from './components/Icon/__generated__/SocialLinkedinIcon.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivy/cobalt",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Opinionated design system for Drivy's projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"*.scss"
|
|
10
10
|
],
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=22.14.0"
|
|
13
13
|
},
|
|
14
14
|
"module": "src/index.js",
|
|
15
15
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"url": "https://github.com/TimPetricola"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@ark-ui/react": "4.9.
|
|
22
|
+
"@ark-ui/react": "4.9.2",
|
|
23
23
|
"@juggle/resize-observer": "3.4.0",
|
|
24
24
|
"@lottiefiles/react-lottie-player": "3.5.4",
|
|
25
25
|
"@react-spring/web": "9.7.5",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"date-fns": "2.30.0",
|
|
29
29
|
"lodash.throttle": "4.1.1",
|
|
30
30
|
"media-typer": "1.1.0",
|
|
31
|
-
"nanoid": "5.
|
|
32
|
-
"postcss": "8.5.
|
|
31
|
+
"nanoid": "5.1.4",
|
|
32
|
+
"postcss": "8.5.3",
|
|
33
33
|
"tailwindcss": "3.4.17",
|
|
34
34
|
"tippy.js": "6.3.7"
|
|
35
35
|
},
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@getaround-eu/prettier-config": "1.2.1",
|
|
44
44
|
"@getaround-eu/stylelint-config": "3.0.1",
|
|
45
45
|
"@getaround-eu/ts-config": "2.2.1",
|
|
46
|
-
"@rollup/plugin-commonjs": "28.0.
|
|
46
|
+
"@rollup/plugin-commonjs": "28.0.3",
|
|
47
47
|
"@rollup/plugin-json": "6.1.0",
|
|
48
|
-
"@rushstack/eslint-patch": "1.
|
|
48
|
+
"@rushstack/eslint-patch": "1.11.0",
|
|
49
49
|
"@storybook/addon-essentials": "7.6.20",
|
|
50
50
|
"@storybook/addons": "7.6.17",
|
|
51
51
|
"@storybook/blocks": "7.6.20",
|
|
@@ -59,14 +59,14 @@
|
|
|
59
59
|
"@types/jest": "29.5.14",
|
|
60
60
|
"@types/lodash.throttle": "4.1.9",
|
|
61
61
|
"@types/media-typer": "1.1.3",
|
|
62
|
-
"@types/node": "
|
|
62
|
+
"@types/node": "22.13.10",
|
|
63
63
|
"@types/react": "18.3.18",
|
|
64
64
|
"@types/react-dom": "18.3.5",
|
|
65
|
-
"autoprefixer": "10.4.
|
|
66
|
-
"core-js": "3.
|
|
65
|
+
"autoprefixer": "10.4.21",
|
|
66
|
+
"core-js": "3.41.0",
|
|
67
67
|
"css-loader": "7.1.2",
|
|
68
68
|
"eslint": "8.57.1",
|
|
69
|
-
"eslint-plugin-storybook": "^0.11.
|
|
69
|
+
"eslint-plugin-storybook": "^0.11.6",
|
|
70
70
|
"file-loader": "6.2.0",
|
|
71
71
|
"fs-extra": "11.3.0",
|
|
72
72
|
"html-entities": "2.5.2",
|
|
@@ -82,14 +82,14 @@
|
|
|
82
82
|
"react-dom": "18.3.1",
|
|
83
83
|
"react-syntax-highlighter": "15.6.1",
|
|
84
84
|
"react-test-renderer": "18.3.1",
|
|
85
|
-
"react-textarea-autosize": "8.5.
|
|
85
|
+
"react-textarea-autosize": "8.5.8",
|
|
86
86
|
"regenerator-runtime": "0.14.1",
|
|
87
87
|
"remark-gfm": "^3.0.1",
|
|
88
88
|
"rollup": "2.79.2",
|
|
89
89
|
"rollup-plugin-copy": "3.5.0",
|
|
90
90
|
"rollup-plugin-svgo": "2.0.0",
|
|
91
91
|
"rollup-plugin-typescript2": "0.36.0",
|
|
92
|
-
"sass": "1.
|
|
92
|
+
"sass": "1.86.0",
|
|
93
93
|
"sass-loader": "13.3.3",
|
|
94
94
|
"sharp": "0.33.5",
|
|
95
95
|
"sharp-cli": "5.1.0",
|
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
"stylelint": "15.11.0",
|
|
99
99
|
"svg2vectordrawable": "2.9.1",
|
|
100
100
|
"svgo": "3.3.2",
|
|
101
|
-
"ts-jest": "29.2.
|
|
102
|
-
"tsx": "4.19.
|
|
101
|
+
"ts-jest": "29.2.6",
|
|
102
|
+
"tsx": "4.19.3",
|
|
103
103
|
"typescript": "5.4.5"
|
|
104
104
|
},
|
|
105
105
|
"keywords": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.cobalt- {
|
|
2
2
|
&BasicCell {
|
|
3
|
-
@
|
|
3
|
+
@apply c-text-base;
|
|
4
4
|
|
|
5
5
|
display: flex;
|
|
6
6
|
align-items: center;
|
|
@@ -14,17 +14,16 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&BasicCell__Title {
|
|
17
|
-
@
|
|
18
|
-
@include text-color(base);
|
|
17
|
+
@apply c-text-title-sm c-text-base;
|
|
19
18
|
margin-bottom: 0;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
&BasicCell__Content {
|
|
23
|
-
@
|
|
22
|
+
@apply c-text-body-md;
|
|
24
23
|
}
|
|
25
24
|
|
|
26
25
|
&BasicCell__Thumb {
|
|
27
|
-
@
|
|
26
|
+
@apply c-bg-neutralAlt;
|
|
28
27
|
|
|
29
28
|
display: flex;
|
|
30
29
|
flex-direction: column;
|
|
@@ -42,22 +41,21 @@
|
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
&BasicCell__Thumb--square {
|
|
45
|
-
|
|
44
|
+
@apply c-rounded-lg;
|
|
46
45
|
}
|
|
47
46
|
|
|
48
47
|
&BasicCell__LeftAddon {
|
|
49
|
-
|
|
48
|
+
@apply c-pr-sm;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
51
|
&BasicCell__RightAddonIcon {
|
|
53
|
-
|
|
52
|
+
@apply c-pl-sm;
|
|
54
53
|
margin-left: auto;
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
&BasicCell--large {
|
|
58
57
|
.cobalt-BasicCell__Title {
|
|
59
|
-
@
|
|
60
|
-
margin-bottom: spacing("2xs");
|
|
58
|
+
@apply c-text-title-sm c-mb-2xs;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
.cobalt-BasicCell__Thumb {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
align-items: center;
|
|
5
5
|
|
|
6
6
|
&:not(:last-child) {
|
|
7
|
-
|
|
7
|
+
@apply c-mb-sm;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.cobalt-BulletList--iconPositionTop & {
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&BulletListItem__Icon {
|
|
16
|
+
@apply c-mr-xs;
|
|
16
17
|
display: flex;
|
|
17
18
|
flex-shrink: 0;
|
|
18
|
-
margin-right: spacing(xs);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
&BulletListItem__Content {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
svg,
|
|
27
27
|
use,
|
|
28
28
|
g {
|
|
29
|
-
|
|
29
|
+
fill: theme("semanticFillColor.subdued");
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
&--selected:focus,
|
|
51
51
|
&--selected:active,
|
|
52
52
|
&--selected {
|
|
53
|
+
@apply c-border-accent;
|
|
53
54
|
@include semantic-color(buttonBackground, selected, background-color);
|
|
54
55
|
@include semantic-color(buttonLabel, selected, color);
|
|
55
|
-
@include border-color(accent);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -22,12 +22,10 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&.cob-Button__ghost--standalone {
|
|
25
|
-
|
|
26
|
-
margin-right: #{spacing(md) * -1};
|
|
25
|
+
@apply c--mx-md;
|
|
27
26
|
|
|
28
27
|
&.cob-Button--large {
|
|
29
|
-
|
|
30
|
-
margin-right: #{spacing(lg) * -1};
|
|
28
|
+
@apply c--mx-lg;
|
|
31
29
|
}
|
|
32
30
|
}
|
|
33
31
|
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
$height: 40px,
|
|
29
29
|
$line-height: 20px,
|
|
30
30
|
$font-size: 16px,
|
|
31
|
-
$horizontal-padding: spacing
|
|
31
|
+
$horizontal-padding: theme("spacing.md")
|
|
32
32
|
);
|
|
33
33
|
|
|
34
34
|
position: relative;
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
text-align: center;
|
|
46
46
|
white-space: normal;
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
@apply c-rounded-md;
|
|
49
49
|
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
user-select: none;
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
margin-bottom: -2px;
|
|
83
83
|
|
|
84
84
|
&--left {
|
|
85
|
-
|
|
85
|
+
@apply c-mr-xs;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
&--right {
|
|
89
|
-
|
|
89
|
+
@apply c-ml-xs;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&--rounded {
|
|
121
|
-
|
|
121
|
+
@apply c-rounded-full;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&--fullWidth {
|
|
@@ -134,16 +134,16 @@
|
|
|
134
134
|
$height: 56px,
|
|
135
135
|
$line-height: 24px,
|
|
136
136
|
$font-size: 18px,
|
|
137
|
-
$horizontal-padding: spacing
|
|
137
|
+
$horizontal-padding: theme("spacing.lg")
|
|
138
138
|
);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.cobalt-buttons-group {
|
|
143
|
+
@apply c--mt-sm;
|
|
143
144
|
display: flex;
|
|
144
145
|
flex-wrap: wrap;
|
|
145
146
|
align-items: center;
|
|
146
|
-
margin-top: -#{spacing(sm)};
|
|
147
147
|
|
|
148
148
|
&--right {
|
|
149
149
|
justify-content: flex-end;
|
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
&__item {
|
|
157
|
-
|
|
157
|
+
@apply c-mt-sm;
|
|
158
158
|
|
|
159
159
|
&:not(.cobalt-buttons-group__item--fullWidth):not(
|
|
160
160
|
.cobalt-buttons-group__item--xs\:fullWidth
|
|
161
161
|
) {
|
|
162
|
-
|
|
162
|
+
@apply c-mr-sm;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
&--fullWidth {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
content: "";
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
@apply c-rounded-full;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
position: relative;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
&__months-container {
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
|
|
32
|
-
gap
|
|
32
|
+
@apply c-gap-sm;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -42,13 +42,12 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&__month {
|
|
45
|
-
@
|
|
45
|
+
@apply c-bg-secondary;
|
|
46
46
|
flex: 1;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&__month-header {
|
|
50
|
-
@
|
|
51
|
-
@include text-color(base);
|
|
50
|
+
@apply c-text-title-sm c-text-base;
|
|
52
51
|
margin-bottom: 12px;
|
|
53
52
|
padding: 4px;
|
|
54
53
|
|
|
@@ -74,7 +73,7 @@
|
|
|
74
73
|
}
|
|
75
74
|
|
|
76
75
|
&__month__day-header {
|
|
77
|
-
@
|
|
76
|
+
@apply c-text-subdued;
|
|
78
77
|
flex: 1;
|
|
79
78
|
|
|
80
79
|
text-align: center;
|
|
@@ -111,7 +110,7 @@
|
|
|
111
110
|
}
|
|
112
111
|
|
|
113
112
|
&--today {
|
|
114
|
-
@
|
|
113
|
+
@apply c-text-accent;
|
|
115
114
|
font-weight: 600;
|
|
116
115
|
}
|
|
117
116
|
|
|
@@ -123,18 +122,18 @@
|
|
|
123
122
|
&:not(&--disabled):not(&--selected):hover
|
|
124
123
|
.cobalt-CalendarDayPicker__day-inner:after {
|
|
125
124
|
@include disk;
|
|
126
|
-
@
|
|
125
|
+
@apply c-bg-accentAlt;
|
|
127
126
|
}
|
|
128
127
|
|
|
129
128
|
&--selected .cobalt-CalendarDayPicker__day-inner:after {
|
|
130
129
|
@include disk;
|
|
131
|
-
@
|
|
130
|
+
@apply c-bg-accent;
|
|
132
131
|
|
|
133
132
|
box-shadow: var(--c-background-accentAlt) 0 2px 6px 0;
|
|
134
133
|
}
|
|
135
134
|
|
|
136
135
|
&--selected .cobalt-CalendarDayPicker__day-inner {
|
|
137
|
-
@
|
|
136
|
+
@apply c-text-inversed;
|
|
138
137
|
font-weight: 600;
|
|
139
138
|
}
|
|
140
139
|
|
|
@@ -152,7 +151,7 @@
|
|
|
152
151
|
|
|
153
152
|
margin: 0;
|
|
154
153
|
|
|
155
|
-
|
|
154
|
+
@apply c-py-none c-px-sm;
|
|
156
155
|
|
|
157
156
|
height: 0;
|
|
158
157
|
|