@drivy/cobalt 0.50.4 → 0.51.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.
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
2
  import cx from 'classnames';
3
3
 
4
- const Note = ({ children, fullWidth = false, className }) => (React.createElement("div", { className: cx("cobalt-Note", className, {
4
+ const Note = ({ children, fullWidth = false, className, isError = false, }) => (React.createElement("div", { className: cx("cobalt-Note", className, {
5
5
  "cobalt-Note--fullWidth": fullWidth,
6
+ "cobalt-Note--error": isError,
6
7
  }) }, children));
7
8
 
8
9
  export { Note, Note as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/components/Note/index.tsx"],"sourcesContent":["import React from \"react\"\nimport cx from \"classnames\"\n\nexport interface NoteProps {\n children: React.ReactNode\n /**\n * will fill available width\n * @default false\n */\n fullWidth?: boolean\n className?: string\n}\n\nexport const Note = ({ children, fullWidth = false, className }: NoteProps) => (\n <div\n className={cx(\"cobalt-Note\", className, {\n \"cobalt-Note--fullWidth\": fullWidth,\n })}\n >\n {children}\n </div>\n)\n\nexport default Note\n"],"names":[],"mappings":";;;AAaa,MAAA,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,SAAS,GAAG,KAAK,EAAE,SAAS,EAAa,MACxE,KACE,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE;AACtC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CAAC,EAED,EAAA,QAAQ,CACL;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Note/index.tsx"],"sourcesContent":["import React from \"react\"\nimport cx from \"classnames\"\n\nexport interface NoteProps {\n children: React.ReactNode\n /**\n * will fill available width\n * @default false\n */\n fullWidth?: boolean\n className?: string\n isError?: boolean\n}\n\nexport const Note = ({\n children,\n fullWidth = false,\n className,\n isError = false,\n}: NoteProps) => (\n <div\n className={cx(\"cobalt-Note\", className, {\n \"cobalt-Note--fullWidth\": fullWidth,\n \"cobalt-Note--error\": isError,\n })}\n >\n {children}\n </div>\n)\n\nexport default Note\n"],"names":[],"mappings":";;;AAcO,MAAM,IAAI,GAAG,CAAC,EACnB,QAAQ,EACR,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,OAAO,GAAG,KAAK,GACL,MACV,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE;AACtC,QAAA,wBAAwB,EAAE,SAAS;AACnC,QAAA,oBAAoB,EAAE,OAAO;AAC9B,KAAA,CAAC,EAED,EAAA,QAAQ,CACL;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivy/cobalt",
3
- "version": "0.50.4",
3
+ "version": "0.51.0",
4
4
  "description": "Opinionated design system for Drivy's projects.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/src/index.d.ts",
@@ -75,7 +75,7 @@
75
75
  "eslint": "8.57.1",
76
76
  "eslint-plugin-storybook": "^0.11.2",
77
77
  "file-loader": "6.2.0",
78
- "fs-extra": "11.2.0",
78
+ "fs-extra": "11.3.0",
79
79
  "html-entities": "2.5.2",
80
80
  "jest": "29.7.0",
81
81
  "jest-environment-jsdom": "29.7.0",
@@ -1,15 +1,9 @@
1
1
  .cobalt- {
2
2
  &Note {
3
- @include c-text-body-md;
4
- @include text-color(info);
5
- @include bg-color(info);
3
+ @apply c-text-body-md c-bg-info c-text-info c-p-sm c-rounded-lg;
6
4
 
7
5
  display: inline-block;
8
6
 
9
- padding: spacing(sm);
10
-
11
- border-radius: border-radius(lg);
12
-
13
7
  a {
14
8
  color: inherit;
15
9
  }
@@ -18,4 +12,8 @@
18
12
  &Note--fullWidth {
19
13
  display: block;
20
14
  }
15
+
16
+ &Note--error {
17
+ @apply c-bg-errorAlt c-text-error;
18
+ }
21
19
  }
@@ -7,6 +7,7 @@ export interface NoteProps {
7
7
  */
8
8
  fullWidth?: boolean;
9
9
  className?: string;
10
+ isError?: boolean;
10
11
  }
11
- export declare const Note: ({ children, fullWidth, className }: NoteProps) => React.JSX.Element;
12
+ export declare const Note: ({ children, fullWidth, className, isError, }: NoteProps) => React.JSX.Element;
12
13
  export default Note;
@@ -1 +1 @@
1
- {"version":3,"file":"getCobaltTailwindcssConfig.js","sources":["../../utils/getCobaltTailwindcssConfig.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireGetCobaltTailwindcssConfig } from \"/Users/cedric/Dev/drivy/cobalt/utils/getCobaltTailwindcssConfig.js\";\nvar getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();\nexport { getCobaltTailwindcssConfigExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);"],"names":[],"mappings":";;;AAEA,IAAI,iCAAiC,GAAG,iCAAiC,EAAE,CAAC;AAE5E,iCAAe,aAAa,uBAAuB,CAAC,iCAAiC,CAAC;;;;"}
1
+ {"version":3,"file":"getCobaltTailwindcssConfig.js","sources":["../../utils/getCobaltTailwindcssConfig.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireGetCobaltTailwindcssConfig } from \"/Users/thibaudesnouf/sources/cobalt/utils/getCobaltTailwindcssConfig.js\";\nvar getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();\nexport { getCobaltTailwindcssConfigExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);"],"names":[],"mappings":";;;AAEA,IAAI,iCAAiC,GAAG,iCAAiC,EAAE,CAAC;AAE5E,iCAAe,aAAa,uBAAuB,CAAC,iCAAiC,CAAC;;;;"}
@@ -58,28 +58,26 @@ function requireTailwindcssGenerators () {
58
58
  const widthTheme = theme("borderWidth");
59
59
  const widthUtilities = Object.keys(widthTheme).reduce((acc, propName) => {
60
60
  const modifier = propName === "DEFAULT" ? "" : `-${propName}`;
61
- // add default solid style only if width is not 0
62
- const styleProp =
63
- widthTheme[propName] === "0" ? {} : { borderStyle: "solid" };
64
61
  acc[`.border${modifier}`] = {
65
62
  borderWidth: widthTheme[propName],
66
- ...styleProp,
63
+ // add default solid style only if width is not 0
64
+ ...(widthTheme[propName] === "0" ? {} : { borderStyle: "solid" }),
67
65
  };
68
66
  acc[`.border-t${modifier}`] = {
69
67
  borderTopWidth: widthTheme[propName],
70
- ...styleProp,
68
+ ...(widthTheme[propName] === "0" ? {} : { borderTopStyle: "solid" }),
71
69
  };
72
70
  acc[`.border-r${modifier}`] = {
73
71
  borderRightWidth: widthTheme[propName],
74
- ...styleProp,
72
+ ...(widthTheme[propName] === "0" ? {} : { borderRightStyle: "solid" }),
75
73
  };
76
74
  acc[`.border-b${modifier}`] = {
77
75
  borderBottomWidth: widthTheme[propName],
78
- ...styleProp,
76
+ ...(widthTheme[propName] === "0" ? {} : { borderBottomStyle: "solid" }),
79
77
  };
80
78
  acc[`.border-l${modifier}`] = {
81
79
  borderLeftWidth: widthTheme[propName],
82
- ...styleProp,
80
+ ...(widthTheme[propName] === "0" ? {} : { borderLeftStyle: "solid" }),
83
81
  };
84
82
  return acc
85
83
  }, {});
@@ -90,6 +88,10 @@ function requireTailwindcssGenerators () {
90
88
  const styleTheme = theme("borderStyle");
91
89
  const styleUtilities = Object.keys(styleTheme).reduce((acc, propName) => {
92
90
  acc[`.border-${propName}`] = { borderStyle: styleTheme[propName] };
91
+ acc[`.border-t-${propName}`] = { borderTopStyle: styleTheme[propName] };
92
+ acc[`.border-r-${propName}`] = { borderRightStyle: styleTheme[propName] };
93
+ acc[`.border-b-${propName}`] = { borderBottomStyle: styleTheme[propName] };
94
+ acc[`.border-l-${propName}`] = { borderLeftStyle: styleTheme[propName] };
93
95
  return acc
94
96
  }, {});
95
97
  addUtilities(styleUtilities);
@@ -112,7 +114,7 @@ function requireTailwindcssGenerators () {
112
114
  if (typeof colorProp === "string") {
113
115
  acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {
114
116
  [cssProperty]: colorProp,
115
- ...cssProperty2 ? { [cssProperty2]: colorProp } : {},
117
+ ...(cssProperty2 ? { [cssProperty2]: colorProp } : {}),
116
118
  };
117
119
  } else {
118
120
  Object.keys(colorProp).map((colorState) => {
@@ -120,26 +122,32 @@ function requireTailwindcssGenerators () {
120
122
  if (colorState === COLOR_STATES.DEFAULT) {
121
123
  acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {
122
124
  [cssProperty]: subColorProp,
123
- ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},
125
+ ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),
124
126
  };
125
- } else if (colorState === COLOR_STATES.HOVER && enableInteractiveColors) {
127
+ } else if (
128
+ colorState === COLOR_STATES.HOVER &&
129
+ enableInteractiveColors
130
+ ) {
126
131
  acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {
127
132
  [cssProperty]: subColorProp,
128
- ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},
133
+ ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),
129
134
  };
130
135
  acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {
131
136
  [cssProperty]: subColorProp,
132
- ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},
137
+ ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),
133
138
  };
134
- } else if (colorState === COLOR_STATES.PRESS && enableInteractiveColors) {
139
+ } else if (
140
+ colorState === COLOR_STATES.PRESS &&
141
+ enableInteractiveColors
142
+ ) {
135
143
  acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {
136
144
  [cssProperty]: subColorProp,
137
- ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},
145
+ ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),
138
146
  };
139
147
  } else if (typeof subColorProp === "string") {
140
148
  acc[`.${classPrefix}-${propName}-${colorState}`] = {
141
149
  [cssProperty]: subColorProp,
142
- ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},
150
+ ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),
143
151
  };
144
152
  } else {
145
153
  Object.keys(colorProp).map((subColorState) => {
@@ -147,21 +155,27 @@ function requireTailwindcssGenerators () {
147
155
  if (subColorState === COLOR_STATES.DEFAULT) {
148
156
  acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {
149
157
  [cssProperty]: subSubColorProp,
150
- ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},
158
+ ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),
151
159
  };
152
- } else if (subColorState === COLOR_STATES.HOVER && enableInteractiveColors) {
160
+ } else if (
161
+ subColorState === COLOR_STATES.HOVER &&
162
+ enableInteractiveColors
163
+ ) {
153
164
  acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {
154
165
  [cssProperty]: subSubColorProp,
155
- ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},
166
+ ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),
156
167
  };
157
168
  acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {
158
169
  [cssProperty]: subSubColorProp,
159
- ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},
170
+ ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),
160
171
  };
161
- } else if (subColorState === COLOR_STATES.PRESS && enableInteractiveColors) {
172
+ } else if (
173
+ subColorState === COLOR_STATES.PRESS &&
174
+ enableInteractiveColors
175
+ ) {
162
176
  acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {
163
177
  [cssProperty]: subSubColorProp,
164
- ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},
178
+ ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),
165
179
  };
166
180
  }
167
181
  });
@@ -1 +1 @@
1
- {"version":3,"file":"tailwindcssGenerators.js","sources":["../../utils/tailwindcssGenerators.js"],"sourcesContent":["const breakpoints = require(\"../src/tokens/breakpoints.json\")\nconst { hasProp } = require(\"./helpers\")\n\nconst COLOR_STATES = {\n DEFAULT: \"DEFAULT\",\n HOVER: \"hover\",\n PRESS: \"press\",\n}\n\nconst textGenerator = ({ addUtilities, theme }) => {\n const textTheme = theme(\"customText\")\n const mediaQueries = {}\n const textUtilities = Object.keys(textTheme).reduce((acc, propName) => {\n const props = textTheme[propName]\n acc[`.text-${propName}`] = {\n fontFamily: props.fontFamily,\n fontSize: props.fontSize,\n lineHeight: props.lineHeight,\n }\n ;[\"fontWeight\", \"textTransform\", \"color\", \"letterSpacing\"].forEach(\n (cssPropName) => {\n if (props[cssPropName]) {\n acc[`.text-${propName}`][cssPropName] = props[cssPropName]\n }\n }\n )\n if (props.from) {\n Object.keys(props.from).forEach((breakpoint) => {\n const breakpointRule = `@media (min-width: ${breakpoints[breakpoint]})`\n if (!hasProp(mediaQueries, breakpointRule)) {\n mediaQueries[breakpointRule] = {}\n }\n mediaQueries[breakpointRule] = {\n ...mediaQueries[breakpointRule],\n [`.text-${propName}`]: props.from[breakpoint],\n }\n })\n }\n return acc\n }, {})\n // For CSS priority, we have to put media queries after all text utilities\n addUtilities(\n { ...textUtilities, ...mediaQueries },\n { variants: [\"responsive\"] }\n )\n}\n\nconst borderWidthGenerator = ({ addUtilities, theme }) => {\n const widthTheme = theme(\"borderWidth\")\n const widthUtilities = Object.keys(widthTheme).reduce((acc, propName) => {\n const modifier = propName === \"DEFAULT\" ? \"\" : `-${propName}`\n // add default solid style only if width is not 0\n const styleProp =\n widthTheme[propName] === \"0\" ? {} : { borderStyle: \"solid\" }\n acc[`.border${modifier}`] = {\n borderWidth: widthTheme[propName],\n ...styleProp,\n }\n acc[`.border-t${modifier}`] = {\n borderTopWidth: widthTheme[propName],\n ...styleProp,\n }\n acc[`.border-r${modifier}`] = {\n borderRightWidth: widthTheme[propName],\n ...styleProp,\n }\n acc[`.border-b${modifier}`] = {\n borderBottomWidth: widthTheme[propName],\n ...styleProp,\n }\n acc[`.border-l${modifier}`] = {\n borderLeftWidth: widthTheme[propName],\n ...styleProp,\n }\n return acc\n }, {})\n addUtilities(widthUtilities)\n}\n\nconst borderStyleGenerator = ({ addUtilities, theme }) => {\n const styleTheme = theme(\"borderStyle\")\n const styleUtilities = Object.keys(styleTheme).reduce((acc, propName) => {\n acc[`.border-${propName}`] = { borderStyle: styleTheme[propName] }\n return acc\n }, {})\n addUtilities(styleUtilities)\n}\n\nconst getSemanticColorGenerator = ({\n type,\n classPrefix,\n selectorSuffix = \"\",\n cssProperty,\n cssProperty2,\n enableInteractiveColors = true,\n}) => {\n return ({ addUtilities, theme }) => {\n const themeProps = theme(type)\n if (!themeProps)\n throw new Error(`Didn't found theme properties for \"${type}\".`)\n const utilities = Object.keys(themeProps).reduce((acc, propName) => {\n const colorProp = themeProps[propName]\n if (typeof colorProp === \"string\") {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: colorProp,\n ...cssProperty2 ? { [cssProperty2]: colorProp } : {},\n }\n } else {\n Object.keys(colorProp).map((colorState) => {\n const subColorProp = colorProp[colorState]\n if (colorState === COLOR_STATES.DEFAULT) {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},\n }\n } else if (colorState === COLOR_STATES.HOVER && enableInteractiveColors) {\n acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},\n }\n acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},\n }\n } else if (colorState === COLOR_STATES.PRESS && enableInteractiveColors) {\n acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},\n }\n } else if (typeof subColorProp === \"string\") {\n acc[`.${classPrefix}-${propName}-${colorState}`] = {\n [cssProperty]: subColorProp,\n ...cssProperty2 ? { [cssProperty2]: subColorProp } : {},\n }\n } else {\n Object.keys(colorProp).map((subColorState) => {\n const subSubColorProp = colorProp[colorState][subColorState]\n if (subColorState === COLOR_STATES.DEFAULT) {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},\n }\n } else if (subColorState === COLOR_STATES.HOVER && enableInteractiveColors) {\n acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},\n }\n acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},\n }\n } else if (subColorState === COLOR_STATES.PRESS && enableInteractiveColors) {\n acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...cssProperty2 ? { [cssProperty2]: subSubColorProp } : {},\n }\n }\n })\n }\n })\n }\n return acc\n }, {})\n addUtilities(utilities)\n }\n}\n\nmodule.exports = {\n text: textGenerator,\n borderWidth: borderWidthGenerator,\n borderStyle: borderStyleGenerator,\n getSemanticColorGenerator,\n}\n"],"names":["require$$1"],"mappings":";;;;;;;;;AAAA,CAAA,MAAM,WAAW,GAAG,WAAA;CACpB,MAAM,EAAE,OAAO,EAAE,GAAGA,cAAA,GAAA;;AAEpB,CAAA,MAAM,YAAY,GAAG;GACnB,OAAO,EAAE,SAAS;GAClB,KAAK,EAAE,OAAO;GACd,KAAK,EAAE,OAAO;AAChB,GAAA;;CAEA,MAAM,aAAa,GAAG,CAAC,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK;AACnD,GAAE,MAAM,SAAS,G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tailwindcssGenerators.js"],"sourcesContent":["const breakpoints = require(\"../src/tokens/breakpoints.json\")\nconst { hasProp } = require(\"./helpers\")\n\nconst COLOR_STATES = {\n DEFAULT: \"DEFAULT\",\n HOVER: \"hover\",\n PRESS: \"press\",\n}\n\nconst textGenerator = ({ addUtilities, theme }) => {\n const textTheme = theme(\"customText\")\n const mediaQueries = {}\n const textUtilities = Object.keys(textTheme).reduce((acc, propName) => {\n const props = textTheme[propName]\n acc[`.text-${propName}`] = {\n fontFamily: props.fontFamily,\n fontSize: props.fontSize,\n lineHeight: props.lineHeight,\n }\n ;[\"fontWeight\", \"textTransform\", \"color\", \"letterSpacing\"].forEach(\n (cssPropName) => {\n if (props[cssPropName]) {\n acc[`.text-${propName}`][cssPropName] = props[cssPropName]\n }\n }\n )\n if (props.from) {\n Object.keys(props.from).forEach((breakpoint) => {\n const breakpointRule = `@media (min-width: ${breakpoints[breakpoint]})`\n if (!hasProp(mediaQueries, breakpointRule)) {\n mediaQueries[breakpointRule] = {}\n }\n mediaQueries[breakpointRule] = {\n ...mediaQueries[breakpointRule],\n [`.text-${propName}`]: props.from[breakpoint],\n }\n })\n }\n return acc\n }, {})\n // For CSS priority, we have to put media queries after all text utilities\n addUtilities(\n { ...textUtilities, ...mediaQueries },\n { variants: [\"responsive\"] }\n )\n}\n\nconst borderWidthGenerator = ({ addUtilities, theme }) => {\n const widthTheme = theme(\"borderWidth\")\n const widthUtilities = Object.keys(widthTheme).reduce((acc, propName) => {\n const modifier = propName === \"DEFAULT\" ? \"\" : `-${propName}`\n acc[`.border${modifier}`] = {\n borderWidth: widthTheme[propName],\n // add default solid style only if width is not 0\n ...(widthTheme[propName] === \"0\" ? {} : { borderStyle: \"solid\" }),\n }\n acc[`.border-t${modifier}`] = {\n borderTopWidth: widthTheme[propName],\n ...(widthTheme[propName] === \"0\" ? {} : { borderTopStyle: \"solid\" }),\n }\n acc[`.border-r${modifier}`] = {\n borderRightWidth: widthTheme[propName],\n ...(widthTheme[propName] === \"0\" ? {} : { borderRightStyle: \"solid\" }),\n }\n acc[`.border-b${modifier}`] = {\n borderBottomWidth: widthTheme[propName],\n ...(widthTheme[propName] === \"0\" ? {} : { borderBottomStyle: \"solid\" }),\n }\n acc[`.border-l${modifier}`] = {\n borderLeftWidth: widthTheme[propName],\n ...(widthTheme[propName] === \"0\" ? {} : { borderLeftStyle: \"solid\" }),\n }\n return acc\n }, {})\n addUtilities(widthUtilities)\n}\n\nconst borderStyleGenerator = ({ addUtilities, theme }) => {\n const styleTheme = theme(\"borderStyle\")\n const styleUtilities = Object.keys(styleTheme).reduce((acc, propName) => {\n acc[`.border-${propName}`] = { borderStyle: styleTheme[propName] }\n acc[`.border-t-${propName}`] = { borderTopStyle: styleTheme[propName] }\n acc[`.border-r-${propName}`] = { borderRightStyle: styleTheme[propName] }\n acc[`.border-b-${propName}`] = { borderBottomStyle: styleTheme[propName] }\n acc[`.border-l-${propName}`] = { borderLeftStyle: styleTheme[propName] }\n return acc\n }, {})\n addUtilities(styleUtilities)\n}\n\nconst getSemanticColorGenerator = ({\n type,\n classPrefix,\n selectorSuffix = \"\",\n cssProperty,\n cssProperty2,\n enableInteractiveColors = true,\n}) => {\n return ({ addUtilities, theme }) => {\n const themeProps = theme(type)\n if (!themeProps)\n throw new Error(`Didn't found theme properties for \"${type}\".`)\n const utilities = Object.keys(themeProps).reduce((acc, propName) => {\n const colorProp = themeProps[propName]\n if (typeof colorProp === \"string\") {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: colorProp,\n ...(cssProperty2 ? { [cssProperty2]: colorProp } : {}),\n }\n } else {\n Object.keys(colorProp).map((colorState) => {\n const subColorProp = colorProp[colorState]\n if (colorState === COLOR_STATES.DEFAULT) {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),\n }\n } else if (\n colorState === COLOR_STATES.HOVER &&\n enableInteractiveColors\n ) {\n acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),\n }\n acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),\n }\n } else if (\n colorState === COLOR_STATES.PRESS &&\n enableInteractiveColors\n ) {\n acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {\n [cssProperty]: subColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),\n }\n } else if (typeof subColorProp === \"string\") {\n acc[`.${classPrefix}-${propName}-${colorState}`] = {\n [cssProperty]: subColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subColorProp } : {}),\n }\n } else {\n Object.keys(colorProp).map((subColorState) => {\n const subSubColorProp = colorProp[colorState][subColorState]\n if (subColorState === COLOR_STATES.DEFAULT) {\n acc[`.${classPrefix}-${propName}${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),\n }\n } else if (\n subColorState === COLOR_STATES.HOVER &&\n enableInteractiveColors\n ) {\n acc[`.${classPrefix}-${propName}:hover${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),\n }\n acc[`.${classPrefix}-${propName}:focus${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),\n }\n } else if (\n subColorState === COLOR_STATES.PRESS &&\n enableInteractiveColors\n ) {\n acc[`.${classPrefix}-${propName}:active${selectorSuffix}`] = {\n [cssProperty]: subSubColorProp,\n ...(cssProperty2 ? { [cssProperty2]: subSubColorProp } : {}),\n }\n }\n })\n }\n })\n }\n return acc\n }, {})\n addUtilities(utilities)\n }\n}\n\nmodule.exports = {\n text: textGenerator,\n borderWidth: borderWidthGenerator,\n bor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