@bitrise/bitkit-v2 0.3.315 → 0.3.316
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.
|
@@ -16,6 +16,7 @@ var progressSlotRecipe = defineSlotRecipe({
|
|
|
16
16
|
range: {
|
|
17
17
|
height: "full",
|
|
18
18
|
minWidth: "4",
|
|
19
|
+
"[data-scope=\"progress\"][data-part=\"root\"][data-value=\"0\"] &": { minWidth: 0 },
|
|
19
20
|
transitionDuration: "moderate",
|
|
20
21
|
transitionProperty: "width",
|
|
21
22
|
transitionTimingFunction: "ease-out"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Progress.recipe.ts"],"sourcesContent":["import { progressAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst progressSlotRecipe = defineSlotRecipe({\n className: 'progress',\n slots: progressAnatomy.keys(),\n base: {\n // The radius and the clipping live on the root so a consumer-supplied\n // `borderRadius` style prop lands on the element that actually rounds.\n root: {\n overflow: 'hidden',\n width: 'full',\n },\n track: {\n position: 'relative',\n width: 'full',\n },\n range: {\n height: 'full',\n // Keeps a sliver of the range visible at very low values (Figma: min-width 4px)
|
|
1
|
+
{"version":3,"file":"Progress.recipe.js","names":[],"sources":["../../../lib/theme/slot-recipes/Progress.recipe.ts"],"sourcesContent":["import { progressAnatomy } from '@chakra-ui/react/anatomy';\nimport { defineSlotRecipe } from '@chakra-ui/react/styled-system';\n\nconst progressSlotRecipe = defineSlotRecipe({\n className: 'progress',\n slots: progressAnatomy.keys(),\n base: {\n // The radius and the clipping live on the root so a consumer-supplied\n // `borderRadius` style prop lands on the element that actually rounds.\n root: {\n overflow: 'hidden',\n width: 'full',\n },\n track: {\n position: 'relative',\n width: 'full',\n },\n range: {\n height: 'full',\n // Keeps a sliver of the range visible at very low values (Figma: min-width 4px)…\n minWidth: '4',\n // …but exactly 0 has to render nothing. A coloured stub at 0% reads as progress\n // that hasn't happened yet — wrong on a usage meter sitting next to \"0 / 3,000\".\n '[data-scope=\"progress\"][data-part=\"root\"][data-value=\"0\"] &': {\n minWidth: 0,\n },\n transitionDuration: 'moderate',\n transitionProperty: 'width',\n transitionTimingFunction: 'ease-out',\n },\n },\n variants: {\n roundedEdges: {\n both: {\n root: { borderRadius: '2' },\n },\n end: {\n root: { borderEndEndRadius: '2', borderStartEndRadius: '2' },\n },\n none: {},\n start: {\n root: { borderEndStartRadius: '2', borderStartStartRadius: '2' },\n },\n },\n size: {\n '1': {\n track: { height: '1' },\n },\n '2': {\n track: { height: '2' },\n },\n '4': {\n track: { height: '4' },\n },\n '6': {\n track: { height: '6' },\n },\n '8': {\n track: { height: '8' },\n },\n '12': {\n track: { height: '12' },\n },\n '16': {\n track: { height: '16' },\n },\n },\n trackColor: {\n neutral: {\n track: { background: 'color/neutral/moderate' },\n },\n transparent: {\n track: { background: 'color/transparent' },\n },\n },\n },\n // With a neutral track the range's trailing edge stays square — the track behind it\n // carries the shape, and the root clips the leading edge. With a transparent track\n // the range *is* the visible bar, so it has to reproduce the root's rounding itself.\n compoundVariants: [\n {\n roundedEdges: 'both',\n trackColor: 'transparent',\n css: { range: { borderRadius: '2' } },\n },\n {\n roundedEdges: 'start',\n trackColor: 'transparent',\n css: { range: { borderEndStartRadius: '2', borderStartStartRadius: '2' } },\n },\n {\n roundedEdges: 'end',\n trackColor: 'transparent',\n css: { range: { borderEndEndRadius: '2', borderStartEndRadius: '2' } },\n },\n ],\n defaultVariants: {\n roundedEdges: 'both',\n size: '8',\n trackColor: 'neutral',\n },\n});\n\nexport default progressSlotRecipe;\n"],"mappings":";;;AAGA,IAAM,qBAAqB,iBAAiB;CAC1C,WAAW;CACX,OAAO,gBAAgB,KAAK;CAC5B,MAAM;EAGJ,MAAM;GACJ,UAAU;GACV,OAAO;EACT;EACA,OAAO;GACL,UAAU;GACV,OAAO;EACT;EACA,OAAO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